/* Game landing pages (play/<id>/index.html, generated by build.mjs). They reuse
   the portal header from style.css (legal-header variant) and have no sidebar. */

.game-page-body {
    padding-top: var(--header-h);
}

.game-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 48px;
    outline: none;
}

.game-page .breadcrumb {
    margin-bottom: 14px;
}

/* ── hero ─────────────────────────────────────────────────────────────── */

.game-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 36px;
}

.game-hero-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

.game-hero-media:hover img,
.game-hero-media:focus-visible img {
    transform: scale(1.03);
}

.game-hero-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 9, 16, 0.25);
    transition: background 0.2s ease;
}

.game-hero-play .icon {
    width: 72px;
    height: 72px;
    padding: 18px;
    border-radius: 50%;
    background: var(--lime);
    color: #0c0d14;
    fill: currentColor;
    stroke: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-hero-media:hover .game-hero-play {
    background: rgba(8, 9, 16, 0.1);
}

.game-hero-text h1 {
    font-size: clamp(30px, 4.2vw, 44px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.game-tagline {
    margin-top: 10px;
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.4;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 22px;
}

.chip {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #c4b5ff;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
}

.chip:hover {
    background: var(--accent-2);
    color: #fff;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--lime);
    color: #0c0d14;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(198, 255, 74, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.play-btn .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
}

.play-btn:hover,
.play-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(198, 255, 74, 0.35);
}

.play-btn-secondary {
    margin-top: 18px;
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14.5px;
    background: var(--accent-2);
    color: #fff;
    box-shadow: none;
}

.play-btn-secondary:hover,
.play-btn-secondary:focus-visible {
    background: var(--accent);
    box-shadow: none;
}

.play-note {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--text-dim);
}

/* ── text + details ───────────────────────────────────────────────────── */

.game-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    align-items: start;
}

.game-text {
    line-height: 1.65;
}

.game-text h2,
.game-facts h2,
.game-more h2 {
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 12px;
}

.game-text h2 + * {
    margin-top: 0;
}

.game-text h2:not(:first-child) {
    margin-top: 32px;
}

.game-text p,
.game-text li {
    color: #c9cbd9;
    font-size: 15px;
}

.game-text p {
    margin-bottom: 12px;
}

.game-text ol,
.game-text ul {
    margin: 6px 0 0 22px;
}

.game-text ol { list-style: decimal; }
.game-text ul { list-style: disc; }

.game-text li {
    margin-bottom: 8px;
}

.game-facts {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    padding: 18px 20px 20px;
    border-radius: 14px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
}

.game-facts dl {
    display: grid;
    gap: 10px;
}

.game-facts dl > div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.4;
}

.game-facts dt {
    color: var(--text-dim);
    font-weight: 800;
}

.game-facts dd {
    color: var(--text-main);
}

/* ── more games ───────────────────────────────────────────────────────── */

.game-more {
    margin-top: 44px;
}

.game-more .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.game-page .app-footer {
    margin-top: 48px;
}

/* ── small screens ────────────────────────────────────────────────────── */

@media (max-width: 899px) {
    .game-hero,
    .game-columns {
        grid-template-columns: 1fr;
    }

    .game-hero {
        gap: 18px;
        margin-bottom: 28px;
    }

    .game-facts {
        position: static;
    }

    .game-page {
        padding: 16px 16px 40px;
    }
}

@media (max-width: 480px) {
    .play-btn {
        width: 100%;
        justify-content: center;
    }
}
