* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --c1: #C87533;
    --c2: #D4956B;
    --c3: #8B4513;
    --c4: #A0522D;
    --bg: #FDF8F3;
    --bg2: #F7EDE3;
    --bg3: #EEDCCC;
    --text: #2D1810;
    --text2: #6B4C3B;
    --text3: #9C7A65;
    --glow: rgba(200, 117, 51, .35);
    --glow2: rgba(200, 117, 51, .15);
    --glass: rgba(255, 255, 255, .6);
    --glass2: rgba(255, 255, 255, .85);
    --border: rgba(200, 117, 51, .2);
    --r: 20px
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden
}

.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden
}

.ambient .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 20s ease-in-out infinite
}

.ambient .orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: rgba(200, 117, 51, .08);
    top: -10%;
    right: -5%;
    animation-delay: 0s
}

.ambient .orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: rgba(212, 149, 107, .07);
    bottom: 10%;
    left: -8%;
    animation-delay: -7s
}

.ambient .orb:nth-child(3) {
    width: 300px;
    height: 300px;
    background: rgba(160, 82, 45, .05);
    top: 40%;
    right: 20%;
    animation-delay: -14s
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    33% {
        transform: translate(30px, -20px) scale(1.05)
    }

    66% {
        transform: translate(-20px, 30px) scale(.95)
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(1.4);
    background: rgba(253, 248, 243, .88);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 20px rgba(200, 117, 51, .06)
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none
}

.logo-wrap img {
    height: 38px
}

.logo-text {
    font-weight: 800;
    font-size: 18px;
    background: linear-gradient(135deg, var(--c1), var(--c3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.nav-links {
    display: flex;
    gap: 4px
}

.nav-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all .3s
}

.nav-links a:hover {
    color: var(--c1);
    background: rgba(200, 117, 51, .08)
}

.nav-links a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c4));
    box-shadow: 0 4px 16px var(--glow2)
}

.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 72px 24px 48px
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(200, 117, 51, .1), rgba(200, 117, 51, .04));
    border: 1px solid rgba(200, 117, 51, .2);
    font-size: 12px;
    font-weight: 600;
    color: var(--c1);
    margin-bottom: 24px;
    letter-spacing: .5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(200, 117, 51, .06)
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c1);
    box-shadow: 0 0 10px var(--c1);
    animation: pulse2 2s infinite
}

@keyframes pulse2 {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px var(--c1)
    }

    50% {
        opacity: .5;
        box-shadow: 0 0 4px var(--c1)
    }
}

.hero h1 {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px
}

.hero h1 .grad {
    background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative
}

.hero h1 .grad::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--c2), transparent);
    border-radius: 2px
}

.hero p {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text2);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.75
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
    flex-wrap: wrap
}

.stat {
    text-align: center;
    position: relative;
    padding: 16px 24px
}

.stat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(200, 117, 51, .06), transparent);
    border: 1px solid rgba(200, 117, 51, .1)
}

.stat-num {
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--c1), var(--c3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.stat-label {
    font-size: 10px;
    color: var(--text3);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600
}

.section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px
}

.section-head {
    text-align: center;
    margin-bottom: 48px
}

.section-head h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 10px
}

.section-head p {
    color: var(--text3);
    font-size: 14px
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px
}

.game-card {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--glass2);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(200, 117, 51, .06);
    transition: all .45s cubic-bezier(.25, .8, .25, 1);
    display: flex;
    flex-direction: column
}

.game-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r);
    z-index: 0;
    background: linear-gradient(135deg, rgba(200, 117, 51, .15), transparent 50%, rgba(200, 117, 51, .08));
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(200, 117, 51, .12), 0 0 40px rgba(200, 117, 51, .06), 0 0 0 1px rgba(200, 117, 51, .2)
}

.game-card:hover::before {
    opacity: 1
}

.game-card:hover .card-thumb {
    transform: scale(1.08)
}

.game-card:hover .play-overlay {
    opacity: 1
}

.game-card:hover .card-emoji {
    text-shadow: 0 0 60px rgba(200, 117, 51, .5)
}

.card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden
}

.card-thumb-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--bg2) 0%, var(--bg3) 100%)
}

.card-emoji {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    z-index: 1;
    transition: text-shadow .4s;
    text-shadow: 0 0 30px rgba(200, 117, 51, .2)
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
    position: relative;
    z-index: 1
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(200, 117, 51, .15), rgba(139, 69, 19, .2));
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity .35s
}

.play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--c1), var(--c4));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(200, 117, 51, .4), 0 0 20px rgba(200, 117, 51, .2);
    transition: transform .3s
}

.play-btn:hover {
    transform: scale(1.1)
}

.play-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    margin-left: 3px
}

.card-body {
    padding: 20px 22px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1
}

.card-tag {
    display: inline-flex;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--c1);
    background: linear-gradient(135deg, rgba(200, 117, 51, .1), rgba(200, 117, 51, .05));
    padding: 4px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(200, 117, 51, .12)
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text)
}

.card-desc {
    font-size: 13px;
    color: var(--text3);
    line-height: 1.65;
    flex: 1
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(200, 117, 51, .08)
}

.card-meta span {
    font-size: 11px;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500
}

.card-actions {
    display: flex;
    gap: 10px;
    padding: 0 22px 20px;
    position: relative;
    z-index: 1
}

.btn-play,
.btn-guide {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .3s;
    letter-spacing: .3px
}

.btn-play {
    background: linear-gradient(135deg, var(--c1), var(--c4));
    color: #fff;
    box-shadow: 0 4px 20px var(--glow2)
}

.btn-play:hover {
    box-shadow: 0 8px 32px var(--glow);
    transform: translateY(-2px)
}

.btn-play svg,
.btn-guide svg {
    width: 16px;
    height: 16px
}

.btn-guide {
    background: var(--glass);
    color: var(--c1);
    border: 1px solid var(--border);
    backdrop-filter: blur(6px)
}

.btn-guide:hover {
    background: rgba(200, 117, 51, .08);
    border-color: rgba(200, 117, 51, .3);
    transform: translateY(-2px)
}

.btn-guide.disabled {
    opacity: .45;
    pointer-events: none;
    cursor: default;
    color: var(--text3);
    border-color: rgba(200, 117, 51, .1)
}

.cta-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 24px
}

.cta-box {
    background: linear-gradient(135deg, rgba(200, 117, 51, .08), rgba(212, 149, 107, .04));
    border: 1px solid rgba(200, 117, 51, .18);
    border-radius: 24px;
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(200, 117, 51, .06)
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 117, 51, .08), transparent);
    top: -60px;
    right: -60px;
    filter: blur(40px)
}

.cta-box::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 149, 107, .06), transparent);
    bottom: -40px;
    left: -40px;
    filter: blur(40px)
}

.cta-box h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1
}

.cta-box p {
    color: var(--text2);
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 1
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 36px;
    background: linear-gradient(135deg, var(--c1), var(--c4));
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: all .3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px var(--glow2)
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 44px var(--glow)
}

footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center
}

footer p {
    font-size: 12px;
    color: var(--text3)
}

footer a {
    color: var(--c1);
    text-decoration: none;
    font-weight: 600
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background .2s
}

.menu-toggle:hover {
    background: rgba(200, 117, 51, .08)
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c1);
    border-radius: 2px;
    transition: all .3s;
    margin: 5px 0
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 248, 243, .97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(200, 117, 51, .08);
    padding: 8px 16px 16px;
    z-index: 99
}

.mobile-nav.open {
    display: block;
    animation: slideDown .3s ease
}

.mobile-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--text2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: all .2s
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--c1);
    background: rgba(200, 117, 51, .08)
}

.mobile-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c4))
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media(max-width:768px) {
    .nav-links {
        display: none
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center
    }

    .games-grid {
        grid-template-columns: 1fr
    }

    .hero {
        padding: 48px 20px 32px
    }

    .hero-stats {
        gap: 16px
    }

    .stat {
        padding: 12px 16px
    }

    .cta-box {
        padding: 36px 24px
    }

    .card-actions {
        flex-direction: column;
        gap: 8px
    }
}