/* =========================================================
   Game page — reusable template
   Use for any individual game detail page.
   Pair with style.css and drop specific content into
   the markup blocks below.
   ========================================================= */

/* ---------- Hero ---------- */
.game-hero {
    position: relative;
    background: radial-gradient(
            ellipse at 20% 10%,
            rgba(14, 165, 233, 0.22) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse at 90% 90%,
            rgba(56, 189, 248, 0.18) 0%,
            transparent 55%
        ),
        linear-gradient(180deg, #0a1b35 0%, #0b2446 100%);
    color: #fff;
    padding: 120px 0 110px;
    overflow: hidden;
}

.game-hero-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
        radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 40% 80%, rgba(255, 255, 255, 0.75) 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 75% 50%, rgba(103, 232, 249, 0.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.6) 50%, transparent 51%);
    background-size: 600px 400px, 500px 500px, 700px 400px, 400px 600px,
        600px 500px, 400px 400px;
    opacity: 0.8;
    animation: gameStarDrift 90s linear infinite;
    pointer-events: none;
}

@keyframes gameStarDrift {
    from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    to   { background-position: -600px 0, 500px 0, -700px 0, 400px 0, 600px 0, -400px 0; }
}

.game-hero-inner {
    position: relative;
    max-width: 820px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.2s var(--ease);
}

.back-link:hover {
    color: var(--color-accent);
}

.eyebrow-light {
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(14, 165, 233, 0.35);
}

.game-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 9vw, 96px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 12px 0 20px;
    color: #fff;
    font-weight: 700;
}

.game-title-accent {
    background: linear-gradient(90deg, #67e8f9 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.game-tagline {
    font-size: 19px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 28px;
}

.game-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
}

/* ---------- Video ---------- */
.game-video-section {
    background: linear-gradient(180deg, #0b2446 0%, #ffffff 60%);
    padding: 0 0 72px;
    margin-top: -60px;
}

.game-video-wrap {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(10, 27, 53, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    background: #000;
    aspect-ratio: 16 / 9;
}

.game-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.game-video-caption {
    text-align: center;
    color: var(--color-muted);
    font-size: 14px;
    margin-top: 16px;
}

/* ---------- Overview ---------- */
.game-overview-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
    align-items: start;
}

.game-overview-grid p {
    font-size: 17px;
}

.game-facts {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 8px 24px;
    box-shadow: var(--shadow-sm);
}

.game-facts dt {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-top: 18px;
}

.game-facts dd {
    margin: 4px 0 18px;
    font-size: 15px;
    color: var(--color-text);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
}

.game-facts dd:last-of-type {
    border-bottom: none;
}

/* ---------- Concepts ---------- */
.game-concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.game-concept {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 26px 24px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        border-color 0.25s var(--ease);
    position: relative;
}

.game-concept::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent));
    border-radius: 0 0 2px 2px;
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}

.game-concept:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.game-concept:hover::before {
    opacity: 1;
}

.game-concept h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--color-brand-dark);
}

.game-concept p {
    font-size: 15px;
    margin: 0;
}

/* ---------- Gallery ---------- */
.game-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.game-gallery figure {
    margin: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.game-gallery figure:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.game-gallery img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.game-gallery figure:hover img {
    transform: scale(1.04);
}

.game-gallery figcaption {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--color-muted);
    border-top: 1px solid var(--color-border);
}

/* ---------- Audiences ---------- */
.game-audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.game-audience-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px 26px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.game-audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.game-audience-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--color-brand-dark);
}

.game-audience-card p {
    font-size: 15px;
    margin: 0;
}

/* ---------- CTA ---------- */
.game-cta {
    background: linear-gradient(180deg, #fdfefe 0%, #f1f7fb 100%);
}

.game-cta-wrap {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.game-cta-wrap .section-title {
    margin-left: auto;
    margin-right: auto;
}

.game-cta-lead {
    font-size: 18px;
    margin-bottom: 32px;
}

.game-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .game-hero {
        padding: 100px 0 84px;
    }
    .game-overview-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 720px) {
    .game-tagline {
        font-size: 17px;
    }
    .game-cta-buttons .btn {
        width: 100%;
    }
}
