/* Game details only. Existing offer values, copy, navigation and media behavior are preserved. */
body.game-detail-page {
    --game-mint: #b3ead2;
    --game-muted: #a4afbd;
    --game-line: rgba(255,255,255,.075);
    background: radial-gradient(ellipse at 85% 0, rgba(112,145,181,.1), transparent 38rem), #0b0e13;
    color: #eff3f6;
}
.game-detail-shell { width: min(1408px, calc(100% - 32px)); margin-inline: auto; padding: 28px 0 40px; }
.game-detail-back { color: var(--game-muted); font-size: .8rem; font-weight: 550; text-decoration: none; text-align: right; line-height: 1.5; }
.game-detail-back:hover { color: var(--game-mint); }
.game-detail-page .seo-breadcrumbs { margin: 0 0 26px; }
.game-detail-page .seo-breadcrumbs ol { font-size: .7rem; gap: 8px; color: #85919f; }
.game-detail-page .seo-breadcrumbs li { min-width: 0; overflow-wrap: anywhere; }
.game-detail-page .seo-breadcrumbs a { color: #a2b5ac; text-decoration: none; }
.game-detail-page .seo-breadcrumbs a:hover { color: var(--game-mint); text-decoration: underline; text-underline-offset: 3px; }
.game-detail-page .seo-breadcrumbs li:not(:last-child)::after { margin-left: 8px; color: #48535f; }
.game-detail-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.game-detail-navigation .seo-breadcrumbs { margin: 0; }
.game-detail-hero {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas: "heading heading" "art offer"; align-items: start; gap: 24px 28px;
}
.game-detail-heading { grid-area: heading; min-width: 0; }
.game-detail-art { grid-area: art; display: grid; gap: 14px; min-width: 0; }
.game-detail-media { min-width: 0; overflow: hidden; border: 1px solid var(--game-line); border-radius: 10px; background: #10151c; }
.game-detail-media picture { display: block; width: 100%; aspect-ratio: 16 / 9; }
.game-detail-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-detail-cover-fallback { display: grid; place-content: center; gap: 10px; aspect-ratio: 16 / 9; padding: 24px; text-align: center; color: var(--game-muted); }
.game-detail-cover-fallback strong { color: #eef3f6; font-size: 1.15rem; }
.game-detail-cover-fallback[hidden] { display: none !important; }
.game-detail-summary {
    grid-area: offer; min-width: 0; padding: clamp(16px, 2.4vw, 30px);
    border: 1px solid rgba(179,234,210,.18); border-radius: 10px;
    background: linear-gradient(145deg, #192a29, #11171e 78%);
}
.game-detail-page:not([data-offer-status="active"]) .game-detail-summary {
    border-color: rgba(230,190,135,.19);
    background: linear-gradient(145deg, #282522, #11171e 78%);
}
.game-detail-kicker { margin: 0 0 12px; color: #a2c8b8; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.game-detail-hero h1 { margin: 0; font-size: clamp(2rem, 3.4vw, 3.4rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.08; overflow-wrap: anywhere; }
.game-detail-lead { margin: 15px 0 0; max-width: 66ch; color: var(--game-muted); font-size: .88rem; line-height: 1.65; }
.game-detail-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.game-detail-facts > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--game-line); border-radius: 5px; background: #141b22; color: #b7c2cd; font-size: .67rem; font-weight: 550; line-height: 1.25; }
.game-detail-facts .game-detail-genre { padding-left: 6px; }
.genre-sprite { display: inline-grid; place-items: center; width: 14px; height: 14px; flex: 0 0 14px; overflow: hidden; border-radius: 3px; background: #334a40; }
.genre-sprite::before { content: ""; width: 8px; height: 8px; background: #c5e0d3; }
.genre-action::before { clip-path: polygon(48% 0,60% 36%,100% 36%,66% 56%,78% 100%,48% 72%,18% 100%,30% 56%,0 36%,38% 36%); }
.genre-adventure::before { clip-path: polygon(50% 0,100% 100%,50% 72%,0 100%); }
.genre-indie::before { border-radius: 2px; transform: rotate(45deg); }
.genre-strategy::before { clip-path: polygon(50% 0,100% 30%,82% 100%,18% 100%,0 30%); }
.genre-sim::before { width: 3px; height: 3px; border-radius: 1px; box-shadow: 5px 0 #c5e0d3, 0 5px #c5e0d3, 5px 5px #c5e0d3; }
.genre-rpg::before { clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%); }
.genre-racing::before { width: 10px; height: 6px; border-radius: 4px 4px 2px 2px; }
.genre-sport::before, .genre-generic::before { border-radius: 50%; }
.genre-puzzle::before { clip-path: polygon(0 0,44% 0,44% 28%,72% 28%,72% 56%,100% 56%,100% 100%,0 100%); }
.game-detail-keyfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.game-detail-keyfacts div { min-width: 0; }
.game-detail-keyfacts dt { margin-bottom: 5px; color: #8f9dab; font-size: .65rem; font-weight: 450; }
.game-detail-keyfacts dd { margin: 0; color: #d4dce3; font-size: .83rem; line-height: 1.45; font-weight: 550; overflow-wrap: anywhere; }
.game-detail-keyfacts div:first-child dd { color: var(--game-mint); font-size: 1.08rem; font-weight: 650; line-height: 1.3; }
.game-detail-page:not([data-offer-status="active"]) .game-detail-keyfacts div:first-child dd,
.game-detail-page:not([data-offer-status="active"]) .game-detail-kicker { color: #e6be87; }
.game-detail-actions { display: grid; gap: 7px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--game-line); }
.game-detail-cta { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 7px; background: var(--game-mint); color: #0d2118 !important; font-size: .88rem; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; transition: background 160ms ease; }
.game-detail-cta:hover { background: #cdf5e3; }
.game-detail-page:not([data-offer-status="active"]) .game-detail-cta { border-color: #6b5842; background: #302820; color: #f0d4ae !important; }
.game-detail-page:not([data-offer-status="active"]) .game-detail-cta:hover { background: #3e3227; }
.game-detail-actions .claim-counter { justify-self: center; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: #8b97a5; font-size: .65rem; font-weight: 450; box-shadow: none; }
.game-detail-actions .prime-trial-cta { width: auto; justify-self: center; min-height: 36px; margin: 0; padding: 5px 8px; border: 0; border-radius: 0; background: none; box-shadow: none; color: #aeb9c6; font-size: .72rem; font-weight: 550; text-decoration: underline; text-decoration-color: #4d6259; text-underline-offset: 4px; }
.game-detail-actions .prime-trial-cta:hover { color: var(--game-mint); background: none; transform: none; }
.game-detail-section-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin: 32px 0 26px; padding: 10px 0; border-top: 1px solid var(--game-line); border-bottom: 1px solid var(--game-line); }
.game-detail-section-nav a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 7px 0; color: #a9b6c2; font-size: .8rem; font-weight: 550; text-decoration: none; }
.game-detail-section-nav a:hover { color: var(--game-mint); }
.game-detail-section-nav span { padding: 2px 5px; border-radius: 4px; background: rgba(179,234,210,.07); color: #a8c9ba; font-size: .65rem; }
#game-description, #game-offer-details, #game-screenshots { scroll-margin-top: 24px; }
.game-detail-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 350px); align-items: start; gap: 28px; }
.game-detail-panel { min-width: 0; padding: 26px; border: 1px solid var(--game-line); border-radius: 10px; background: #11171e; }
.game-detail-panel h2 { margin: 0 0 18px; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.3; overflow-wrap: anywhere; }
.game-detail-panel > h2:not(:first-child) { margin-top: 30px; }
.game-detail-description { max-width: 80ch; white-space: pre-line; color: #b5bfcc; font-size: .9rem; line-height: 1.9; overflow-wrap: anywhere; }
.game-detail-translation-note { margin: 12px 0 0; color: #8d9aa8; font-size: .7rem; line-height: 1.5; }
.game-detail-editorial { display: grid; grid-template-columns: minmax(140px, .45fr) minmax(0, 1fr); gap: 16px 24px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--game-line); }
.game-detail-editorial h2 { grid-column: 1 / -1; margin: 0 0 4px; }
.game-detail-editorial h3 { margin: 0; color: #c4ded2; font-size: .8rem; font-weight: 600; line-height: 1.65; }
.game-detail-editorial p { margin: 0; color: #a8b5c3; font-size: .84rem; line-height: 1.7; }
.game-detail-status-note { padding: 12px 15px; border-left: 2px solid var(--game-mint); color: #bed4c9; background: rgba(179,234,210,.05); }
.game-detail-list { display: grid; gap: 0; margin: 0; }
.game-detail-list div { display: grid; gap: 5px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--game-line); }
.game-detail-list div:first-child { padding-top: 0; }
.game-detail-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.game-detail-list dt { color: #8f9caa; font-size: .68rem; }
.game-detail-list dd { margin: 0; color: #cbd5de; font-size: .82rem; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.game-detail-subheading { margin: 24px 0 16px; padding-top: 23px; border-top: 1px solid var(--game-line); color: #e6edf1; font-size: .95rem; font-weight: 650; }
.game-detail-trust { display: grid; gap: 7px; margin-top: 24px; padding: 15px; border: 1px solid rgba(179,234,210,.1); border-radius: 7px; background: rgba(179,234,210,.035); color: #8e9eaa; font-size: .7rem; line-height: 1.65; }
.game-detail-trust strong { color: #b5cbbf; font-weight: 550; }
.game-detail-languages { display: flex; flex-wrap: wrap; gap: 6px; }
.game-detail-languages span { padding: 6px 8px; border: 1px solid var(--game-line); border-radius: 5px; background: #18212a; color: #aab8c5; font-size: .69rem; }
.game-detail-languages .has-full-audio { border-color: rgba(179,234,210,.13); color: #b8dec9; background: rgba(179,234,210,.06); }
.game-detail-screenshots { margin-top: 28px; }
.game-detail-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.game-detail-gallery a { display: block; min-width: 0; overflow: hidden; border-radius: 7px; background: #0a0e13; }
.game-detail-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: filter 160ms ease; }
.game-detail-gallery a:hover img { filter: brightness(1.12); }
.game-detail-page .seo-section { padding: 30px 0; border-color: var(--game-line); margin-top: 26px; }
.game-detail-page .seo-section-header h2 { font-size: 1.4rem; font-weight: 650; letter-spacing: -.025em; }
.game-detail-page .seo-section-header p { color: var(--game-muted); font-size: .86rem; }
.game-detail-page .seo-offer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.game-detail-page .seo-offer-card { border-color: var(--game-line); border-radius: 9px; background: #11171e; }
.game-detail-page .seo-offer-body { padding: 16px; }
.game-detail-page .seo-offer-body h2 { font-size: 1rem; font-weight: 650; letter-spacing: -.02em; }
.game-detail-page .seo-offer-body > p { font-size: .78rem; line-height: 1.65; }
.game-detail-page .seo-offer-badges span { border-color: var(--game-line); border-radius: 4px; background: rgba(179,234,210,.04); color: #abcbbb; font-size: .6rem; }
.game-detail-page .seo-offer-facts { gap: 10px; }
.game-detail-page .seo-offer-facts dt { font-size: .64rem; color: #8a99a8; }
.game-detail-page .seo-offer-facts dd { font-size: .72rem; font-weight: 500; }
.game-detail-page .seo-offer-actions { gap: 8px; }
.game-detail-page .seo-button { min-height: 40px; border: 1px solid rgba(179,234,210,.14); border-radius: 6px; background: rgba(179,234,210,.065); color: #c1e4d3; font-size: .73rem; font-weight: 600; }
.game-detail-page .seo-button.is-secondary { border-color: var(--game-line); color: #a3b0be; background: transparent; }
.game-detail-page .seo-related-links { margin-top: 28px; padding-top: 24px; border-color: var(--game-line); }
.game-detail-page .seo-related-links h2 { font-size: 1.35rem; }
.game-detail-page .seo-related-links a { font-size: .82rem; font-weight: 550; }
.game-detail-footer { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px 20px; margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--game-line); color: #8998a6; font-size: .72rem; line-height: 1.6; }
.game-detail-footer a { color: #9baebf; text-decoration: none; }
.game-detail-footer a:hover { color: var(--game-mint); }
.game-detail-affiliate-note { flex-basis: 100%; color: #8593a1; font-size: .65rem; }
.game-detail-page a:focus-visible, .game-detail-page button:focus-visible { outline: 2px solid var(--game-mint); outline-offset: 4px; }
@media (max-width: 1100px) {
    .game-detail-hero { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .game-detail-content { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
    .game-detail-panel { padding: 22px; }
    .game-detail-editorial { grid-template-columns: 1fr; gap: 8px; }
    .game-detail-editorial h3 { margin-top: 10px; }
    .game-detail-page .seo-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .game-detail-hero, .game-detail-content { grid-template-columns: 1fr; }
    .game-detail-hero { grid-template-areas: "heading" "offer" "art"; gap: 18px; }
    .game-detail-keyfacts { gap: 16px 24px; }
    .game-detail-content { gap: 20px; }
    .game-detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
    .game-detail-list div, .game-detail-list div:first-child { padding: 0 0 12px; }
    .game-detail-list div:last-child { border-bottom: 1px solid var(--game-line); }
    .game-detail-gallery { display: flex; overflow-x: auto; gap: 10px; padding: 4px 4px 10px; scroll-snap-type: x proximity; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #34443e transparent; }
    .game-detail-gallery a { flex: 0 0 78%; scroll-snap-align: start; }
    .game-detail-section-nav { column-gap: 22px; }
}
@media (max-width: 620px) {
    .game-detail-shell { width: calc(100% - 22px); padding-top: 20px; }
    .game-detail-navigation { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
    .game-detail-back { max-width: none; font-size: .7rem; text-align: left; }
    .game-detail-page .seo-breadcrumbs ol { font-size: .65rem; }
    .game-detail-page .seo-breadcrumbs { margin-bottom: 0; }
    .game-detail-hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .game-detail-kicker { font-size: .6rem; }
    .game-detail-lead { font-size: .82rem; line-height: 1.65; }
    .game-detail-facts > span { font-size: .63rem; }
    .game-detail-keyfacts { gap: 16px; }
    .game-detail-keyfacts dd { font-size: .77rem; }
    .game-detail-keyfacts div:first-child dd { font-size: .95rem; }
    .game-detail-cta { padding: 12px 15px; font-size: .82rem; }
    .game-detail-section-nav { margin: 25px 0 22px; column-gap: 20px; padding: 10px 4px; }
    .game-detail-section-nav a { font-size: .73rem; }
    .game-detail-panel { padding: 20px 17px; }
    .game-detail-description { font-size: .85rem; line-height: 1.8; }
    .game-detail-list { gap: 12px 18px; }
    .game-detail-list dd { font-size: .77rem; }
    .game-detail-page .seo-offer-grid { grid-template-columns: 1fr; }
    .game-detail-footer { gap: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .game-detail-cta, .game-detail-gallery img { transition: none; }
}

/* Media on detail pages uses the same viewer and trailer dialog as the site. */
.game-detail-trailer button,
.game-detail-load-screenshots {
    display: inline-flex; align-items: center; gap: .6rem;
    min-height: 44px; padding: 9px 16px; border: 1px solid #36554a; border-radius: 7px;
    background: #192b27; color: #c6e7d8; font: inherit; font-weight: 650; cursor: pointer;
}
.game-detail-trailer button:hover,
.game-detail-load-screenshots:hover { background: #233a32; }
.game-detail-load-screenshots:disabled { cursor: wait; }
.game-detail-gallery[hidden],
.game-detail-load-screenshots[hidden],
.game-detail-media-status[hidden] { display: none; }
.game-detail-media-status { margin: 12px 0 0; color: var(--game-muted); }
.game-detail-screenshots { margin-bottom: 26px; }

.game-detail-keyfacts div:first-child .game-detail-original-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    margin-top: 6px;
    color: var(--game-muted);
    font-size: .75rem;
    font-weight: 450;
    line-height: 1.5;
}
.game-detail-original-price s { text-decoration-thickness: 1px; }
