* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f5efe6 0%, #e8dccc 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(200, 160, 100, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 95% 70%, rgba(180, 140, 80, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 40% 85%, rgba(160, 130, 70, 0.1) 0%, transparent 40%),
        repeating-linear-gradient(45deg, transparent 0px, transparent 30px, rgba(150, 120, 70, 0.03) 30px, rgba(150, 120, 70, 0.03) 31px),
        repeating-linear-gradient(-45deg, transparent 0px, transparent 40px, rgba(140, 110, 60, 0.02) 40px, rgba(140, 110, 60, 0.02) 41px);
    pointer-events: none;
    z-index: 0;
}

.gear-decoration {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.gear {
    position: absolute;
    border: 2px solid rgba(160, 130, 80, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.gear::before, .gear::after {
    content: '';
    position: absolute;
    background: rgba(160, 130, 80, 0.15);
    border-radius: 20%;
}

.gear-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    border-width: 3px;
}

.gear-1::before {
    width: 60px;
    height: 60px;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
}

.gear-1::after {
    width: 60px;
    height: 60px;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
}

.gear-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    border-width: 2px;
    animation-duration: 15s;
    animation-direction: reverse;
}

.gear-2::before {
    width: 40px;
    height: 40px;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
}

.gear-2::after {
    width: 40px;
    height: 40px;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
}

.gear-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 5%;
    border-width: 2px;
    animation-duration: 12s;
}

.gear-3::before {
    width: 30px;
    height: 30px;
    top: 50%;
    left: -15px;
    transform: translateY(-50%);
}

.gear-3::after {
    width: 30px;
    height: 30px;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.container {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 250, 240, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(160, 130, 80, 0.2) inset;
    padding: 2.5rem 3rem;
    border: 1px solid rgba(180, 150, 100, 0.3);
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid rgba(160, 130, 80, 0.3);
    padding-bottom: 1.2rem;
}

.header h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #5e4a34;
    text-shadow: 0 2px 10px rgba(160, 130, 80, 0.2);
    display: inline-block;
    position: relative;
}

.header h1::after {
    content: '⚙️';
    font-size: 2.5rem;
    margin-left: 15px;
    filter: drop-shadow(0 2px 5px #b88a4b);
    display: inline-block;
    animation: rotate 10s linear infinite;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.title-row h2 {
    margin-top: -1.5rem;
    font-size: 2rem;
    font-weight: 600;
    color: #5e4a34;
    border-left: 6px solid #b88a4b;
    padding-left: 20px;
}

.search-box {
    margin-top: -0.5rem;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    border: 1px solid #c0a070;
    padding: 4px 4px 4px 20px;
    width: 260px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-box input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    padding: 8px 0;
    width: 1px;
    flex: 1;
    background: transparent;
    color: #5e4a34;
}

.search-box input::placeholder {
    color: #a8987a;
}

.search-box button {
    background: #8f734b;
    border: 1px solid #b88a4b;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.search-box button:hover {
    background: #a5855a;
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 0 3.5rem;
}

.game-card {
    background: white;
    border-radius: 30px;
    padding: 2rem 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(160, 130, 80, 0.2) inset;
    transition: all 0.3s ease;
    border: 1px solid rgba(180, 140, 80, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(160, 130, 80, 0.15), 0 0 0 1px #b88a4b inset;
}

.game-title {
    font-size: 2rem;
    font-weight: 600;
    color: #5e4a34;
    min-width: 200px;
}

.difficulty {
    color: #f5b642;
    font-size: 1.4rem;
    letter-spacing: 6px;
    min-width: 150px;
    text-align: center;
}

.play-btn {
    background: #8f734b;
    border: none;
    color: white;
    padding: 14px 40px;
    border-radius: 40px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    min-width: 160px;
    border: 1px solid #b88a4b;
}

.play-btn:hover {
    background: #a5855a;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(160, 130, 80, 0.3);
}

.load-more {
    text-align: center;
    margin: 3rem 0 2.5rem;
}

.load-more button {
    background: transparent;
    border: 2px solid #8f734b;
    color: #5e4a34;
    padding: 14px 50px;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(255, 250, 240, 0.5);
    letter-spacing: 2px;
}

.load-more button:hover {
    background: #8f734b;
    color: white;
    border-color: #b88a4b;
    transform: scale(1.02);
}

.footer {
    text-align: center;
    padding: 2rem 0 0.5rem;
    border-top: 2px solid rgba(160, 130, 80, 0.3);
    color: #5e4a34;
    font-size: 1rem;
}

.footer p {
    margin: 0.8rem 0;
}

.footer a {
    color: #8f734b;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: 0.2s;
}

.footer a:hover {
    color: #b88a4b;
    text-decoration: underline;
}

@media (max-width: 800px) {
    .title-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .search-box {
        width: 100%;
    }

    .game-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 2rem;
    }
    
    .game-title {
        min-width: auto;
    }
    
    .difficulty {
        min-width: auto;
    }
    
    .play-btn {
        width: 100%;
    }
    
    .container {
        padding: 1.5rem;
    }
}