:root {
    --navy: #102039;
    --navy2: #162b4a;
    --ink: #152238;
    --muted: #5f6d80;
    --teal: #0f9d8f;
    --teal2: #087f75;
    --bg: #f3f7fb;
    --line: #dce5ee;
    --white: #fff;
    --shadow: 0 14px 34px rgba(21, 34, 56, .10)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.65
}

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

button {
    font: inherit
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto
}

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line)
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    font-family: Nunito, sans-serif;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -1px
}

.brand span {
    color: var(--teal)
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 600
}

.main-nav a:hover {
    color: var(--teal)
}

.nav-cta {
    background: var(--teal);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 8px
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 7px;
    padding: 8px 12px
}

.hero {
    background: var(--navy);
    color: #fff;
    padding: 88px 0
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 70px;
    align-items: center
}

.eyebrow {
    display: inline-block;
    color: var(--teal);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 10px
}

.hero .eyebrow {
    color: #7fe1d7
}

.hero h1 {
    font-family: Nunito, sans-serif;
    font-size: 52px;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin: 0 0 20px
}

.hero p {
    color: #d5dfed;
    max-width: 650px
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 30px 0
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 13px 21px;
    font-weight: 800;
    cursor: pointer
}

.btn-primary {
    background: var(--teal);
    color: #fff
}

.btn-primary:hover,
.play-btn:hover {
    background: var(--teal2)
}

.btn-secondary {
    border: 1px solid #71839e;
    color: #fff
}

.btn-light {
    background: #fff;
    color: var(--navy)
}

.trust-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #afbdd0
}

.hero-visual {
    height: 390px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 26px;
    background: radial-gradient(circle at 50% 40%, #25466f, #13233d 68%);
    overflow: hidden
}

.mini-card {
    position: absolute;
    width: 190px;
    height: 115px;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    padding: 22px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    justify-content: center
}

.mini-card b {
    font-size: 17px
}

.mini-card span {
    font-size: 13px;
    color: var(--muted)
}

.card-one {
    top: 45px;
    left: 32px;
    transform: rotate(-6deg)
}

.card-two {
    right: 25px;
    top: 135px;
    transform: rotate(6deg)
}

.card-three {
    bottom: 34px;
    left: 90px;
    transform: rotate(-2deg)
}

.visual-chip {
    position: absolute;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: 92px;
    height: 92px;
    background: var(--teal);
    border: 10px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900
}

.section-pad {
    padding: 76px 0
}

.section-head {
    max-width: 720px;
    margin-bottom: 34px
}

.section-head h2,
.how h2,
.final-cta h2 {
    font-family: Nunito, sans-serif;
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 10px
}

.section-head p {
    margin: 0;
    color: var(--muted)
}

.benefits {
    background: #e8eef5
}

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

.info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow)
}

.info-card.featured {
    border-color: var(--teal)
}

.icon-box {
    width: 38px;
    height: 38px;
    background: var(--teal);
    color: #fff;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-weight: 800
}

.info-card h3,
.game-body h3,
.steps h3,
.article-grid h3 {
    font-size: 18px;
    margin: 16px 0 6px
}

.info-card p,
.game-body p,
.steps p,
.article-grid p {
    font-size: 14px;
    color: var(--muted);
    margin: 0
}

.games {
    background: #f7faff
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px
}

.game-card {
    background: #fff;
    border-radius: 17px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow)
}

.game-art {
    height: 190px;
    display: grid;
    place-items: center;
    background: #dfe8f2
}

.game-body {
    padding: 22px
}

.tag,
.article-grid article>span {
    font-size: 11px;
    color: var(--teal);
    font-weight: 800;
    letter-spacing: .08em
}

.play-btn {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: var(--teal);
    color: #fff;
    padding: 12px;
    font-weight: 800;
    margin-top: 18px;
    cursor: pointer
}

.memory-art {
    grid-template-columns: repeat(2, 68px);
    gap: 10px;
    background: #e5ebff
}

.memory-art span {
    height: 58px;
    background: #fff;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 25px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08)
}

.tap-art {
    background: #182b46
}

.target-dot {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #ff6b65;
    box-shadow: 0 0 0 18px rgba(255, 255, 255, .12)
}

.slide-art {
    grid-template-columns: repeat(3, 52px);
    gap: 6px;
    background: #ddd0b6
}

.slide-art span {
    height: 52px;
    background: #6e4f35;
    color: #fff;
    border-radius: 5px;
    display: grid;
    place-items: center;
    font-weight: 800
}

.dice-art {
    display: flex;
    gap: 22px;
    background: #dff1ea
}

.dice-art span {
    font-size: 78px;
    color: #17334c
}

.sequence-art {
    display: flex;
    gap: 10px;
    background: #f5ead7
}

.sequence-art span {
    width: 58px;
    height: 58px;
    border-radius: 9px;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800
}

.xo-art {
    grid-template-columns: repeat(2, 72px);
    gap: 5px;
    background: #dceaf8
}

.xo-art span {
    height: 72px;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 36px;
    font-weight: 900
}

.how {
    background: #e6edf5
}

.how-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 55px;
    align-items: center
}

.about-panel {
    margin-top: 28px
}

.about-screen {
    height: 250px;
    border-radius: 14px;
    background: #102039;
    padding: 22px;
    color: #fff
}

.screen-title {
    font-size: 12px;
    letter-spacing: .15em
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px
}

.screen-grid i {
    height: 78px;
    border-radius: 9px;
    background: linear-gradient(135deg, #0f9d8f, #5a79d8)
}

.steps {
    display: grid;
    gap: 18px;
    grid-auto-flow: column;
}

.steps article {
    display: flex;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 22px;
    box-shadow: var(--shadow)
}

.steps article>span {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--teal);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800
}

.steps h3 {
    margin: 0 0 4px
}

.safety-strip {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-size: 13px
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px
}

.article-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    overflow: hidden;
    padding-bottom: 22px;
    box-shadow: var(--shadow)
}

.article-grid article>span,
.article-grid h3,
.article-grid p {
    margin-left: 20px;
    margin-right: 20px
}

.article-art {
    height: 180px;
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: .08em
}

.art-a {
    background: #dbe7ff
}

.art-b {
    background: #f7dfcf
}

.art-c {
    background: #d7f1ec
}

.final-cta {
    background: #0f1d34;
    color: #fff;
    text-align: center;
    padding: 72px 20px
}

.final-cta p {
    color: #c2cedf;
    margin-bottom: 25px
}

.site-footer {
    background: #182741;
    color: #c3cfdf;
    padding: 52px 0 20px
}

.brand.light {
    color: #fff
}

.footer-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px
}

.footer-grid p {
    font-size: 13px
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px
}

.copyright {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #33435d;
    font-size: 12px
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 100
}

.modal.open {
    display: block
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 24, .75)
}

.modal-dialog {
    position: relative;
    width: min(620px, calc(100% - 30px));
    max-height: 90vh;
    overflow: auto;
    margin: 5vh auto;
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    z-index: 2
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    border: 0;
    background: none;
    font-size: 32px;
    cursor: pointer
}

.game-stage {
    min-height: 290px;
    margin-top: 18px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #edf3f8;
    padding: 18px
}

.game-status {
    text-align: center;
    font-weight: 800;
    margin: 15px
}

.memory-board {
    display: grid;
    grid-template-columns: repeat(4, 64px);
    gap: 8px
}

.memory-card {
    height: 64px;
    border: 0;
    border-radius: 8px;
    background: var(--navy);
    color: transparent;
    font-size: 25px
}

.memory-card.revealed,
.memory-card.matched {
    background: #fff;
    color: var(--ink)
}

.reaction-box {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 12px;
    background: #d9e3ed;
    font-weight: 800;
    font-size: 22px
}

.reaction-box.ready {
    background: #25b98a;
    color: #fff
}

.slide-board {
    display: grid;
    grid-template-columns: repeat(3, 82px);
    gap: 7px
}

.slide-tile {
    height: 82px;
    border: 0;
    border-radius: 8px;
    background: var(--navy2);
    color: #fff;
    font-weight: 800;
    font-size: 22px
}

.slide-tile.empty {
    background: transparent
}

.dice-wrap {
    text-align: center
}

.dice-values {
    font-size: 80px
}

.choice-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center
}

.choice-row button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 800
}

.ttt-board {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: 5px
}

.ttt-board button {
    height: 80px;
    border: 0;
    background: #fff;
    font-size: 34px;
    font-weight: 900
}

.legal-page main {
    padding: 70px 0
}

.legal-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 38px;
    box-shadow: var(--shadow)
}

.legal-wrap h1 {
    font-family: Nunito;
    font-size: 32px
}

.legal-wrap h2 {
    font-size: 24px;
    margin-top: 28px
}

.legal-wrap p,
.legal-wrap li {
    color: var(--muted)
}

@media(max-width:900px) {
    .main-nav {
        display: none;
        position: absolute;
        left: 20px;
        right: 20px;
        top: 66px;
        background: #fff;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch
    }

    .main-nav.open {
        display: flex
    }

    .menu-toggle {
        display: block
    }

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

    .hero h1 {
        font-size: 42px
    }

    .hero-visual {
        height: 350px
    }

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

    .footer-links {
        justify-content: flex-start
    }
}

@media(max-width:620px) {
    .container {
        width: min(100% - 28px, 1180px)
    }

    .hero {
        padding: 62px 0
    }

    .hero h1 {
        font-size: 32px
    }

    .section-head h2,
    .how h2,
    .final-cta h2 {
        font-size: 24px
    }

    .benefit-grid,
    .game-grid,
    .article-grid {
        grid-template-columns: 1fr
    }

    .hero-visual {
        height: 330px
    }

    .mini-card {
        width: 160px
    }

    .card-one {
        left: 10px
    }

    .card-two {
        right: 8px
    }

    .card-three {
        left: 45px
    }

    .trust-row {
        display: grid;
        gap: 6px;
        grid-auto-flow: column;
    }

    .memory-board {
        grid-template-columns: repeat(4, 54px)
    }

    .memory-card {
        height: 54px
    }
}

/* Image-based visual update */
.hero-visual {
    background: #0a1427;
    isolation: isolate
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(6, 13, 27, .78));
    z-index: 1;
    pointer-events: none
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.hero-image-note {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    background: rgba(10, 20, 39, .82);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column
}

.hero-image-note strong {
    font-size: 16px;
    color: #fff
}

.hero-image-note span {
    font-size: 12px;
    color: #d5dfed
}

.game-art {
    overflow: hidden;
    background: #dfe8f2
}

.game-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease
}

.game-card:hover .game-art img {
    transform: scale(1.035)
}

.lobby-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #102039;
    box-shadow: var(--shadow)
}

.lobby-card img {
    width: 100%;
    height: 310px;
    display: block;
    object-fit: cover;
    object-position: center
}

.lobby-card::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent, rgba(8, 17, 33, .92));
    pointer-events: none
}

.lobby-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column
}

.lobby-caption span {
    font-size: 11px;
    letter-spacing: .16em;
    color: #7fe1d7;
    font-weight: 800
}

.lobby-caption strong {
    font-size: 18px
}

.article-art {
    overflow: hidden;
    background: #dbe7ff
}

.article-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease
}

.article-grid article:hover .article-art img {
    transform: scale(1.04)
}

@media(max-width:620px) {
    .hero-visual {
        height: 290px
    }

    .hero-image-note {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 13px
    }

    .lobby-card img {
        height: 240px
    }
}