:root {
    /* Tomamos los mismos tokens de color que usa index (definidos en global.css) */
    --page-bg: var(--cd-bg);
    --panel: var(--cd-panel);
    --panel-soft: var(--cd-contrast);
    --text: var(--cd-text);
    --muted: var(--cd-muted);
    --accent: var(--cd-accent);
    --accent-strong: #ff7141;
    --line: var(--cd-border);
    --shadow: var(--cd-shadow);
    --radius: var(--cd-radius);
    --chip-bg: var(--cd-chip-muted);
    --chip-text: var(--cd-text);
    --hero-bg-start: var(--cd-panel);
    --hero-bg-end: var(--cd-contrast);
    --hero-text: var(--cd-text);
    --card-surface: var(--cd-panel);
}

body.game-template {
    background: var(--page-bg);
    color: var(--text);
    font-family: inherit;
    letter-spacing: inherit;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.game-page {
    padding-top: 84px;
    background: var(--page-bg);
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.24rem;
    font-weight: 800;
    font-size: 12px;
    color: var(--accent);
    margin: 0 0 10px;
}

.game-hero {
    position: relative;
    padding: 96px 0 84px;
    color: var(--hero-text);
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(140deg, var(--hero-bg-start), var(--hero-bg-end));
}

.hero-grid {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.hero-copy {
    flex: 1 1 55%;
    min-width: 340px;
    max-width: 720px;
}

.hero-photo {
    flex: 0 0 38%;
    min-width: 300px;
    max-width: 480px;
}

.hero-photo figure {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    height: 100%;
}

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

.hero-booking {
    margin-top: 28px;
}

.hero-copy h1 {
    font-family: title, sans-serif;
    font-size: clamp(38px, 6vw, 62px);
    letter-spacing: 0.18rem;
    line-height: 1.05;
    margin: 0 0 12px;
}

.hero-path {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-path a {
    color: var(--hero-text);
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rating-stars {
    display: inline-flex;
    gap: 4px;
}

.rating-stars svg {
    width: 22px;
    height: 22px;
    fill: var(--accent);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.rating-copy {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.rating-score {
    font-weight: 800;
    color: var(--hero-text);
    font-size: 17px;
}

.rating-score span {
    color: var(--muted);
    font-weight: 600;
}

.rating-note {
    display: block;
}

.hero-lede {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 640px;
    margin: 10px 0 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--chip-bg);
    color: var(--chip-text);
    font-weight: 700;
    font-size: 13px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--chip-bg);
    color: var(--chip-text);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.pill.muted {
    background: var(--chip-bg);
    color: var(--muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}


.booking-card {
    background: var(--card-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 20px 22px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 110px;
    color: var(--text);
}

.booking-head h3 {
    margin: 6px 0 6px;
    font-size: 24px;
}

.booking-head-inline {
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.booking-sub {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.booking-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 12px;
    text-align: center;
}

.booking-facts span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.booking-facts strong {
    display: block;
    color: var(--text);
    font-size: 16px;
}

.booking-difficulty {
    margin: 4px 0 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--line);
}

.booking-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.booking-label span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.booking-label strong {
    color: #fff;
}

.diff-meter {
    margin-top: 8px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.diff-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    border-radius: inherit;
}

.booking-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.button-primary.wide {
    width: 100%;
    justify-content: center;
}


.trailer-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trailer-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.trailer-head h2 {
    margin: 6px 0 6px;
    font-size: clamp(28px, 4vw, 36px);
}

.trailer-copy {
    margin: 0;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.6;
}

.trailer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trailer-box {
    margin-top: 10px;
}

.trailer-box video,
.trailer-embed iframe {
    width: 100%;
    max-width: 1040px;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 18px;
    box-shadow: var(--shadow);
    background: #000;
}

.gallery-section {
    padding: 90px 0;
    background: var(--page-bg);
    color: var(--text);
}

.gallery-head h2 {
    margin: 4px 0 6px;
    font-size: clamp(28px, 4vw, 38px);
}

.gallery-head p {
    margin: 0;
    color: var(--muted);
    max-width: 620px;
}

.gallery-grid {
    margin: 24px auto 0;
    width: min(1240px, 96vw);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    justify-items: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
    max-width: 420px;
    width: 100%;
}

.gallery-grid:only-child .gallery-item,
.gallery-grid .gallery-item:only-child {
    max-width: 520px;
    margin: 0 auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-grid.single {
    grid-template-columns: 1fr;
    justify-items: center;
}

.gallery-grid.single .gallery-item {
    max-width: 520px;
    width: 100%;
}

.cta-block {
    padding: 80px 0 96px;
    background: radial-gradient(circle at 20% 30%, rgba(255, 113, 65, 0.18), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(215, 166, 93, 0.16), transparent 36%),
        var(--page-bg);
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 24px;
    box-shadow: var(--shadow);
}

.cta-card h2 {
    margin: 4px 0 6px;
    font-size: clamp(26px, 3.4vw, 34px);
}

.cta-card p {
    margin: 0;
    color: var(--muted);
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 820px) {
    .hero-grid {
        flex-direction: column;
        align-items: center;
    }

    .hero-copy,
    .hero-photo {
        min-width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .booking-card {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .game-hero {
        padding: 120px 0 70px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .button-primary,
    .button-ghost {
        width: 100%;
        justify-content: center;
    }

    .story-section {
        padding: 70px 0;
    }

    .trailer-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-card {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .hero-path {
        flex-wrap: wrap;
    }

    .hero-lede {
        font-size: 16px;
    }
}
