:root {
    --bg: #07131a;
    --surface: #0e1f29;
    --surface-soft: #142c39;
    --panel: rgba(19, 44, 57, 0.84);
    --text: #d9edf5;
    --muted: #9db5c1;
    --line: rgba(153, 206, 219, 0.18);
    --primary: #ff8a3d;
    --primary-deep: #cf5a10;
    --secondary: #70f0d2;
    --accent: #ffe38a;
    --shadow: 0 24px 60px rgba(1, 9, 13, 0.35);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    overflow-x: clip;
    background:
        radial-gradient(circle at top left, rgba(112, 240, 210, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 138, 61, 0.18), transparent 22%),
        linear-gradient(180deg, #07131a, #091820 38%, #0c1820 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.eyebrow { letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary); font-size: 0.76rem; font-weight: 700; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 13px 20px;
    border: 1px solid transparent;
    transition: 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
    background: linear-gradient(135deg, var(--primary), #ffb44c);
    color: #101214;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(255, 138, 61, 0.24);
}
.button-ghost {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--line);
    color: var(--text);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(7, 19, 26, 0.76);
    border-bottom: 1px solid var(--line);
}
.header-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 84px;
    min-width: 0;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-lockup strong { display: block; font-size: 1rem; }
.brand-lockup small { display: block; color: var(--muted); font-size: 0.78rem; max-width: 260px; }
.main-nav { display: flex; justify-content: center; gap: 22px; min-width: 0; }
.main-nav a { color: var(--muted); font-weight: 600; }
.main-nav a.is-active, .main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.age-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: rgba(112, 240, 210, 0.08);
    color: var(--secondary);
    font-weight: 700;
}
.menu-toggle, .mobile-menu { display: none; }

.hero { padding: 72px 0 36px; }
.hero-grid,
.split-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: stretch;
}
.hero-copy,
.feature-panel,
.section-panel,
.game-card,
.policy-shell,
.legal-article,
.cookie-banner,
.age-panel,
.contact-strip {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}
.hero-copy,
.feature-panel,
.section-panel,
.policy-shell,
.legal-article,
.age-panel,
.contact-strip { border-radius: var(--radius-lg); }
.hero-copy { padding: 38px; }
.hero-copy h1,
.page-header h1,
.legal-article h1,
.game-hero h1 { margin: 12px 0 14px; font-size: clamp(2.5rem, 4vw, 4.4rem); line-height: 0.95; }
.hero-copy p,
.page-header p,
.legal-article p,
.game-hero p { color: var(--muted); line-height: 1.7; }
.hero-actions,
.stack-actions,
.card-actions,
.cookie-actions,
.age-modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}
.highlight {
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
}
.highlight strong { display: block; margin-bottom: 6px; }
.feature-panel {
    padding: 18px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}
.feature-panel img {
    width: 100%;
    min-height: 420px;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 22px;
    background: #151b24;
}

.section { padding: 24px 0 34px; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.section-header h2 { margin: 0; font-size: clamp(1.7rem, 2vw, 2.5rem); }
.section-header p { margin: 6px 0 0; color: var(--muted); max-width: 720px; }
.section-panel { padding: 28px; }

.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.game-card { overflow: hidden; border-radius: var(--radius-lg); }
.game-card__media img { aspect-ratio: 1 / 0.78; width: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.04); }
.game-card__body { padding: 22px; }
.game-card__topline { display: flex; justify-content: space-between; gap: 14px; color: var(--secondary); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.game-card h3 { margin: 12px 0; font-size: 1.55rem; }
.game-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.tag-list,
.meta-list,
.legal-points,
.footer-list { list-style: none; padding: 0; margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag-list li {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(112, 240, 210, 0.1);
    color: var(--secondary);
}
.card-actions { margin-top: 20px; }

.how-grid,
.meta-grid,
.support-grid,
.footer-grid,
.facts-grid {
    display: grid;
    gap: 18px;
}
.how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.support-grid { grid-template-columns: repeat(2, 1fr); }
.facts-grid { grid-template-columns: repeat(3, 1fr); }
.step-card,
.meta-card,
.support-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    padding: 22px;
}
.split-grid > .section-panel,
.how-grid > article,
.meta-grid > article {
    min-width: 0;
}
.step-card,
.meta-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.step-card span,
.meta-card strong { color: var(--accent); }
.step-card span {
    display: block;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}
.step-card h3,
.meta-card h3,
.meta-card strong {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.2;
}
.step-card p,
.meta-card p,
.support-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.48;
}

.contact-strip {
    margin: 22px auto 50px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.contact-strip > div {
    min-width: 0;
    flex: 1 1 520px;
}
.contact-strip p { margin: 0; color: var(--muted); }
.contact-strip .button { flex-shrink: 0; }

.page-header,
.game-hero,
.age-shell,
.legal-shell { padding: 54px 0 30px; }
.page-header__inner,
.game-hero__inner,
.age-panel,
.legal-article { padding: 34px; }
.page-header__inner,
.game-hero__inner { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); }
.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.filters input,
.filters select {
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    padding: 0 18px;
}

.game-hero__inner {
    display: grid;
    gap: 22px;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
}
.game-preview {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
}
.game-frame {
    width: 100%;
    flex: 1 1 100%;
    min-height: 0;
    background: #090d12;
    overflow: hidden;
}
.game-frame iframe {
    display: block;
    width: 100% !important;
    min-width: 100%;
    height: 100% !important;
    min-height: 100%;
    border: 0;
    background: #090d12;
}
.game-preview__note {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    color: var(--muted);
    font-size: 0.92rem;
    border-top: 1px solid var(--line);
    flex: 0 0 auto;
}
.meta-list li,
.legal-points li {
    border-top: 1px solid var(--line);
    padding: 16px 0;
    color: var(--muted);
}
.meta-list li:first-child,
.legal-points li:first-child { border-top: 0; padding-top: 0; }

.legal-shell { display: grid; gap: 18px; }
.legal-article h1 { font-size: clamp(2rem, 3vw, 3.1rem); }
.legal-article h2 { margin: 28px 0 12px; font-size: 1.25rem; }
.legal-article ul { margin: 0; padding-left: 18px; color: var(--muted); }
.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.legal-nav a {
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

.age-panel { max-width: 760px; margin: 0 auto; }
.age-panel form { display: grid; gap: 16px; margin-top: 20px; }
.age-panel label { display: grid; gap: 8px; }
.age-panel input {
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    padding: 0 16px;
}
.age-note {
    margin-top: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    padding: 18px;
    color: var(--muted);
}

.site-footer { margin-top: 52px; padding: 32px 0 50px; border-top: 1px solid var(--line); }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; align-items: start; }
.site-footer h2 { margin: 0 0 12px; font-size: 1rem; }
.site-footer p { color: var(--muted); line-height: 1.7; }
.footer-list li + li { margin-top: 10px; }
.footer-list a { color: var(--muted); }
.footer-list a:hover { color: var(--text); }
.footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    margin: 0 auto;
    width: min(860px, calc(100% - 32px));
    border-radius: 24px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}
.cookie-banner p { margin: 8px 0 0; color: var(--muted); }

.age-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 16px;
}
.age-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 10, 0.78);
    backdrop-filter: blur(12px);
}
.age-modal__panel {
    position: relative;
    max-width: 540px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #0d1f29, #102531);
    padding: 32px;
    box-shadow: var(--shadow);
}
.age-modal__panel h2 { margin: 10px 0 14px; font-size: clamp(1.7rem, 2.2vw, 2.4rem); }
.age-modal__panel p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }

[hidden] { display: none !important; }

@media (max-width: 1024px) {
    .hero-grid,
    .split-grid,
    .game-hero__inner,
    .footer-grid,
    .how-grid,
    .meta-grid,
    .support-grid,
    .facts-grid {
        grid-template-columns: 1fr 1fr;
    }
    .game-preview {
        min-height: 680px;
    }
    .header-shell { grid-template-columns: auto auto 1fr; }
    .main-nav, .header-actions { display: none; }
    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 5px;
        margin-left: auto;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: transparent;
        padding: 12px;
    }
    .menu-toggle span {
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: var(--text);
    }
    .mobile-menu { display: block; }
    .mobile-menu-panel {
        display: grid;
        gap: 10px;
        padding: 0 0 16px;
    }
    .mobile-menu-panel a {
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 14px 16px;
        background: rgba(255,255,255,0.03);
    }
}

@media (max-width: 768px) {
    .hero-copy,
    .feature-panel,
    .section-panel,
    .policy-shell,
    .legal-article,
    .age-panel,
    .contact-strip,
    .page-header__inner,
    .game-hero__inner {
        padding: 24px;
    }
    .hero-grid,
    .split-grid,
    .game-grid,
    .game-hero__inner,
    .footer-grid,
    .how-grid,
    .meta-grid,
    .support-grid,
    .facts-grid {
        grid-template-columns: 1fr;
    }
    .highlights { grid-template-columns: 1fr; }
    .cookie-banner,
    .contact-strip,
    .footer-meta,
    .section-header {
        display: grid;
    }
    .feature-panel img { min-height: 300px; }
    .game-preview { min-height: 560px; }
    .game-frame { min-height: 0; }
    .game-frame iframe {
        height: 100% !important;
        min-height: 100%;
    }
}

@media (max-width: 360px) {
    .container { width: min(calc(100% - 24px), var(--container)); }
    .hero-copy h1,
    .page-header h1,
    .legal-article h1,
    .game-hero h1 { font-size: 2.1rem; }
}
