:root {
    --void: #040814;
    --deep: #071426;
    --forest: #0d2b31;
    --moss: #2f6d5f;
    --glow: #8fffe0;
    --moon: #c9e7ff;
    --violet: #7d6bff;
    --petal: #ffc6f2;
    --gold: #ffe7a3;
    --text: #f3fbff;
    --muted: #a9c9d0;
    --glass: rgba(10, 31, 44, .68);
    --line: rgba(164, 255, 233, .22)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Nunito', Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 12% 8%, rgba(143, 255, 224, .2), transparent 28%), radial-gradient(circle at 86% 18%, rgba(125, 107, 255, .2), transparent 32%), linear-gradient(180deg, #020611 0, #071426 42%, #041112 100%);
    overflow-x: hidden
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(201, 231, 255, .55) 0 1px, transparent 1.8px);
    background-size: 74px 74px;
    opacity: .18;
    animation: stars 18s linear infinite
}

@keyframes stars {
    to {
        background-position: 140px 220px
    }
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: min(1180px, 92%);
    margin: auto
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(4, 8, 20, .76);
    border-bottom: 1px solid var(--line)
}

.topbar:before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(18px);
    z-index: -1;
    pointer-events: none
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 900;
    font-size: 25px;
    letter-spacing: .02em
}

.logo {
    width: 46px;
    height: 46px;
    border-radius: 50% 50% 46% 54%;
    display: grid;
    place-items: center;
    color: #031013;
    background: radial-gradient(circle at 35% 30%, #fff 0 8%, var(--glow) 22%, var(--violet) 72%);
    box-shadow: 0 0 28px rgba(143, 255, 224, .55), inset 0 0 18px rgba(255, 255, 255, .55)
}

.menu {
    display: none;
    position: fixed;
    top: -100vh;
    left: 0;
    right: 0;
    visibility: hidden
}

.desktop-menu {
    display: flex;
    gap: 18px;
    align-items: center
}

.menu a,
.desktop-menu a {
    color: #dffdf8;
    font-weight: 900;
    opacity: .88
}

.menu a:hover,
.desktop-menu a:hover {
    color: var(--glow);
    text-shadow: 0 0 12px rgba(143, 255, 224, .8)
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: rgba(143, 255, 224, .08);
    color: #fff;
    border-radius: 16px;
    padding: 10px 13px;
    font-size: 22px;
    cursor: pointer
}

.nav-toggle:before {
    content: "☰"
}

.btn,
.play-btn {
    border: 1px solid rgba(143, 255, 224, .45);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--glow), #9fb3ff);
    color: #031013;
    font-weight: 1000;
    padding: 13px 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 22px rgba(143, 255, 224, .32);
    cursor: pointer
}

.btn.secondary {
    background: rgba(143, 255, 224, .08);
    color: var(--text);
    box-shadow: none
}

.hero {
    position: relative;
    padding: 78px 0 70px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--glow);
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .12em
}

.hero h1,
.page-hero h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: .94;
    margin: 18px 0;
    text-shadow: 0 0 28px rgba(143, 255, 224, .18)
}

.lead {
    font-size: 20px;
    color: #c5dde5;
    line-height: 1.75
}

@keyframes pulse {
    50% {
        transform: scale(1.07);
        opacity: .52
    }
}

.notice-strip,
.warning {
    border: 1px solid rgba(143, 255, 224, .38);
    background: linear-gradient(135deg, rgba(143, 255, 224, .1), rgba(125, 107, 255, .12));
    border-radius: 24px;
    padding: 15px 18px;
    color: #ddfff7;
    font-weight: 900
}

.section,
.page-hero {
    padding: 64px 0
}

.page-hero {
    padding-bottom: 36px
}

.grid {
    display: grid;
    gap: 24px
}

.cards {
    grid-template-columns: repeat(3, 1fr)
}

.game-grid {
    grid-template-columns: repeat(4, 1fr)
}

.card,
.game-card,
.legal-box,
.faq-item,
.contact-card,
.testimonial {
    background: linear-gradient(160deg, rgba(11, 35, 49, .82), rgba(10, 17, 39, .8));
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08)
}

.card,
.legal-box,
.contact-card,
.testimonial {
    padding: 26px
}

.card {
    position: relative;
    overflow: hidden
}

.card:before,
.testimonial:before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -42px;
    top: -42px;
    background: radial-gradient(circle, var(--glow), transparent 68%);
    opacity: .18
}

.section-title {
    font-size: clamp(30px, 4vw, 52px);
    margin: 0 0 16px
}

.top-carousel {
    padding: 34px 0 0
}

.carousel-shell {
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: 20px;
    background: rgba(4, 17, 26, .66);
    box-shadow: 0 0 44px rgba(143, 255, 224, .13)
}

.carousel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px
}

.carousel-head h2 {
    margin: 0;
    font-size: 28px
}

.carousel-actions {
    display: flex;
    gap: 9px
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(143, 255, 224, .09);
    color: #fff;
    font-size: 24px;
    cursor: pointer
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow: hidden;
    scroll-behavior: smooth;
    align-items: stretch
}

.carousel-track .game-card {
    flex: 0 0 255px;
    min-height: 455px;
    display: flex;
    flex-direction: column
}

.carousel-track .game-card img {
    height: 231px;
    aspect-ratio: auto;
    flex-shrink: 0
}

.carousel-track .game-card h3 {
    min-height: 50px;
    flex-shrink: 0
}

.carousel-track .game-card .tags {
    flex: 1;
    align-content: flex-start
}

.carousel-track .game-card .play-btn {
    margin-top: auto;
    flex-shrink: 0
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    overflow: hidden
}

.game-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 24px;
    filter: saturate(1.05) contrast(1.05)
}

.game-card h3 {
    min-height: 50px;
    margin: 15px 8px 8px;
    font-size: 18px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.badge18 {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    background: #071426;
    color: #fff;
    border: 2px solid var(--glow);
    box-shadow: 0 0 16px rgba(143, 255, 224, .55);
    border-radius: 999px;
    font-weight: 1000;
    padding: 7px 10px
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 8px;
    min-height: 34px;
    margin-top: auto
}

.tag {
    font-size: 12px;
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(143, 255, 224, .1);
    border: 1px solid rgba(143, 255, 224, .18);
    color: #dffdf8
}

.game-card .play-btn {
    width: calc(100% - 16px);
    margin: 10px 8px 8px
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0
}

.filter {
    border: 1px solid var(--line);
    background: rgba(143, 255, 224, .08);
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer
}

.filter.active {
    background: var(--glow);
    color: #031013
}

.game-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 26px
}

.iframe-wrap {
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    min-height: 580px
}

.iframe-wrap iframe {
    width: 100%;
    height: 620px;
    border: 0
}

.description {
    line-height: 1.75;
    color: #d8edf2
}

.description p {
    display: block !important
}

.faq-item {
    padding: 0;
    overflow: hidden
}

.faq-q {
    width: 100%;
    background: none;
    border: 0;
    color: #fff;
    text-align: left;
    padding: 22px;
    font-size: 18px;
    font-weight: 1000;
    cursor: pointer
}

.faq-a {
    display: none;
    padding: 0 22px 22px;
    color: #c5dde5;
    line-height: 1.7
}

.faq-item.open .faq-a {
    display: block
}

.form {
    display: grid;
    gap: 15px
}

.input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(2, 8, 18, .72);
    color: #fff;
    padding: 15px;
    font: inherit;
    outline: none
}

.input:focus,
textarea:focus {
    border-color: var(--glow);
    box-shadow: 0 0 0 4px rgba(143, 255, 224, .1)
}

textarea {
    min-height: 160px
}

.success {
    display: none;
    color: var(--glow);
    font-weight: 1000
}

.testimonials {
    grid-template-columns: repeat(3, 1fr)
}

.testimonial {
    position: relative
}

.testimonial strong {
    color: var(--glow)
}

.footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 7, 15, .9);
    padding: 38px 0;
    color: #b9d5dc
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 24px
}

.footer a {
    display: block;
    margin: 8px 0;
    color: #e9fffb
}

.age-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.age-box {
    width: min(560px, 100%);
    background: linear-gradient(160deg, #0d2b31, #071426);
    border: 1px solid var(--glow);
    border-radius: 34px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 0 90px rgba(143, 255, 224, .28)
}

.age-box h2 {
    font-size: 42px;
    margin: 0 0 10px
}

@media(max-width:980px) {

    .hero-grid,
    .game-layout,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .game-grid,
    .cards,
    .testimonials {
        grid-template-columns: repeat(2, 1fr)
    }

    .nav-toggle {
        display: block
    }

    .desktop-menu {
        display: none
    }

    .menu {
        display: none;
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: rgba(5, 16, 30, 0.98);
        border: 1px solid var(--line);
        border-top: none;
        border-radius: 0 0 24px 24px;
        padding: 14px;
        z-index: 9999;
        box-shadow: 0 16px 40px rgba(0,0,0,.6);
        visibility: hidden
    }

    .menu.open {
        display: flex;
        top:0;
        visibility: visible
    }

    .menu a {
        padding: 12px;
        border-radius: 16px;
        background: rgba(143, 255, 224, .07)
    }

    .nav>.btn {
        display: none
    }

    .carousel-track .game-card {
        flex-basis: 220px;
        min-height: 420px
    }

    .carousel-track .game-card img {
        height: 196px
    }
}

@media(max-width:580px) {

    .game-grid,
    .cards,
    .testimonials {
        grid-template-columns: 1fr
    }

    .hero {
        padding: 46px 0
    }

    .btn,
    .play-btn {
        width: 100%
    }

    .lead {
        font-size: 17px
    }
}

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

.spirit-bg span {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 42% 58%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--glow) 38%, transparent 72%);
    filter: blur(.2px);
    box-shadow: 0 0 22px rgba(143, 255, 224, .75);
    opacity: .55;
    animation: spiritFly 18s linear infinite
}

.spirit-bg span:nth-child(1) {
    left: 8%;
    top: 82%;
    animation-duration: 22s
}

.spirit-bg span:nth-child(2) {
    left: 24%;
    top: 72%;
    animation-duration: 17s;
    animation-delay: -5s;
    transform: scale(.7)
}

.spirit-bg span:nth-child(3) {
    left: 51%;
    top: 88%;
    animation-duration: 24s;
    animation-delay: -9s;
    transform: scale(1.2)
}

.spirit-bg span:nth-child(4) {
    left: 78%;
    top: 76%;
    animation-duration: 19s;
    animation-delay: -3s;
    transform: scale(.85)
}

.spirit-bg span:nth-child(5) {
    left: 92%;
    top: 84%;
    animation-duration: 26s;
    animation-delay: -12s;
    transform: scale(.65)
}

@keyframes spiritFly {
    0% {
        translate: 0 0;
        opacity: 0
    }

    12% {
        opacity: .58
    }

    45% {
        translate: 38px -42vh
    }

    70% {
        translate: -28px -70vh;
        opacity: .48
    }

    100% {
        translate: 24px -112vh;
        opacity: 0
    }
}

body>*:not(.spirit-bg) {
    position: relative;
    z-index: 1
}

.hero-forest {
    min-height: 420px;
    border-radius: 42px;
    border: 1px solid var(--line);
    background: radial-gradient(circle at 50% 35%, rgba(143, 255, 224, .24), transparent 28%), linear-gradient(160deg, rgba(13, 43, 49, .9), rgba(8, 14, 34, .82));
    box-shadow: 0 0 60px rgba(143, 255, 224, .16);
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 34px
}

.hero-forest:before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -16px;
    height: 48%;
    
}

.hero-forest h2 {
    font-size: 46px;
    margin: 0;
    text-shadow: 0 0 24px var(--glow)
}

.hero-forest p {
    color: #c5dde5;
    font-weight: 900
}

.spirit-mark {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, var(--glow) 42%, transparent 72%);
    box-shadow: 0 0 34px rgba(143, 255, 224, .75);
    left: 20%;
    top: 24%;
    animation: floatSpirit 5s ease-in-out infinite
}

.spirit-mark.small {
    width: 28px;
    height: 28px;
    left: 74%;
    top: 30%;
    animation-delay: -1.8s
}

.spirit-mark.tiny {
    width: 18px;
    height: 18px;
    left: 62%;
    top: 68%;
    animation-delay: -3s
}

@keyframes floatSpirit {
    50% {
        transform: translateY(-18px) translateX(10px);
        opacity: .72
    }
}

.stars {
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 20px;
    text-shadow: 0 0 14px rgba(255, 231, 163, .45);
    margin-bottom: 12px
}

.quote-spark {
    position: absolute;
    right: 22px;
    top: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--glow);
    background: rgba(143, 255, 224, .08);
    border: 1px solid var(--line);
    box-shadow: 0 0 20px rgba(143, 255, 224, .18)
}

.testimonial {
    padding-top: 34px;
    overflow: hidden
}

.testimonial:after {
    content: "";
    position: absolute;
    left: 24px;
    bottom: -34px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 107, 255, .24), transparent 70%)
}