/* Standalone game pages share the catalogue's branding, with a focused dark player. */
body[data-page="game"]{--ink:#f4f4f5;--muted:#babac2;--border:#4c4c52;--surface:#292929;background:#292929;color:var(--ink);min-height:100vh;color-scheme:dark}
.game-topbar{height:72px;display:flex;align-items:center;gap:24px;padding:12px 32px;background:#242424}
.game-topbar .header-brand{font-size:1.375rem;white-space:nowrap}
.game-topbar .header-brand-accent{color:var(--lime)}
.game-topbar .header-brand-mark{width:36px;height:36px;flex-basis:36px;background:var(--lime);color:#263719}
.game-back{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;color:var(--lime);font-size:.875rem;font-weight:600;border-radius:8px}
.game-back:hover{background:#3b3b3f}
.game-topbar-actions{display:flex;gap:8px;margin-left:auto}
.game-topbar-actions .icon-button{background:#3b3b3f;color:#f4f4f5}
.game-topbar-actions .icon-button:hover{background:#505056}
.game-main{max-width:1600px;width:100%;margin:0 auto;padding:16px 32px 32px}
.game-stage{min-width:0}
.game-stage .player-shell{height:calc(100svh - 148px);min-height:480px;max-height:880px;aspect-ratio:auto;background:#101012;border-radius:16px}
body[data-page="game"] .game-stage .player-shell:has(>.player-overlay){height:auto;max-height:none}
.game-stage .player-backdrop{filter:none;transform:none;opacity:.8;z-index:-1;object-fit:cover}
.game-stage .player-overlay{position:relative;inset:0;display:flex;align-items:flex-start;justify-content:flex-end;text-align:left;padding:40px;gap:0;min-height:clamp(480px,calc(100svh - 148px),880px);height:auto;background:linear-gradient(90deg,#000c,#0002 80%)}
.game-launch-info{width:100%;max-width:680px;display:flex;flex-direction:column;align-items:flex-start;gap:0}
.game-launch-info .player-cover{width:120px;height:120px;object-fit:cover;border:0;border-radius:16px;transform:none;margin:0 0 16px;box-shadow:0 8px 24px #0004}
.game-launch-info h1{font-size:1.875rem;line-height:2.25rem;font-weight:500;letter-spacing:-.015em;overflow-wrap:anywhere;color:#fff;margin:0 0 8px}
.game-launch-stats{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:8px;color:#d4d4da;font-size:.875rem;line-height:1.25rem}
.game-rating{display:inline-flex;align-items:center;gap:4px}
.game-rating .icon{width:16px;height:16px;fill:currentColor;stroke:none}
.game-age{border:1px solid #a9a9af;border-radius:8px;padding:2px 8px}
.game-launch-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:1rem;line-height:1.5rem;color:#e1e1e5}
.game-launch-meta a{display:flex;align-items:center;gap:6px;min-height:24px}
.game-launch-meta a:hover{color:var(--lime)}
.game-launch-meta .icon{width:20px;height:20px}
.game-launch-meta>span::before{content:'·';margin-right:12px;color:#babac2}
.game-launch-info .button{min-width:176px;min-height:50px;margin-top:24px;font-size:1rem;border-radius:8px;padding:12px 24px}
.game-launch-info .button-lime{background:#50d143;color:#10280c}
.game-launch-info .button-lime:hover{background:#65de59}
.game-launch-info .button-lime:disabled{opacity:.65}
.game-launch-info>p{color:#f4f4f5}
.game-stage .player-shell iframe{width:100%;height:100%;border:0;display:block;background:#000}
.game-stage .player-status{margin:8px 0 0;padding:0;color:#babac2;font-size:.875rem;line-height:1.5;min-height:0}
.game-stage .player-status:empty{display:none}
.game-disclosure{display:flex;flex-wrap:wrap;gap:4px 12px;margin:8px 0 0;color:#babac2;font-size:.8125rem;line-height:1.5}
.game-disclosure a{color:#c6ee7c;text-decoration:underline;text-underline-offset:3px}
.game-playing-title h1{font-size:1.25rem;line-height:1.5;letter-spacing:0;margin-top:16px;overflow-wrap:anywhere}
.game-similar{margin:24px 0 32px}
.game-similar .section-heading{margin-bottom:16px;align-items:center}
.game-similar h2{font-size:1.5rem}
body[data-page="game"] .text-link{font-size:.875rem;color:var(--lime)}
body[data-page="game"] .game-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px}
body[data-page="game"] .card-art{border-radius:12px}
body[data-page="game"] .card-caption h3{font-size:1rem;line-height:1.5;letter-spacing:0}
body[data-page="game"] .card-caption p{font-size:.875rem;color:#babac2}
body[data-page="game"] .play-hover{color:#242424}
body[data-page="game"] .save-button{width:44px;height:44px;color:#292929}
.game-details{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:8px 0;scroll-margin-top:24px}
.game-details>summary{padding:16px 4px;cursor:pointer;font-size:1rem;font-weight:600}
.game-details .game-copy{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;margin:8px 0 24px}
.game-details .game-copy h2{color:#f4f4f5;font-size:1.25rem;margin:24px 0 12px}
.game-details .game-copy p,.game-details .game-copy li{font-size:1rem;color:#babac2;line-height:1.7}
.game-details .game-copy a{color:var(--lime);text-decoration:underline;text-underline-offset:3px}
.game-details .game-copy .quiet{font-size:.875rem}
.game-details .tip{background:#35353a;border-color:var(--border)}
.game-details .game-facts{display:block;padding:0 0 8px;background:none;border:0;border-radius:0}
.game-details .game-facts dd,.game-details .control-row{font-size:.875rem;color:#babac2}
.game-details .game-facts h2{margin-top:24px}
.game-details .game-tags{margin-top:24px}
.game-details .game-tags h2{display:block}
.game-details .chip{background:#3b3b3f;border:0;font-size:.875rem;color:#f4f4f5!important;text-decoration:none!important;margin:0 6px 8px 0}
.game-details .chip:hover{background:#505056}
.game-footer{max-width:1600px;margin:0 auto;padding:24px 32px 32px;display:flex;flex-wrap:wrap;gap:8px 24px;color:#babac2;font-size:.875rem}
.game-footer a{display:flex;align-items:center;min-height:44px}
.game-footer a:hover{color:var(--lime)}
.game-options{position:fixed;inset:80px 24px auto auto;margin:0;width:360px;max-width:calc(100vw - 24px);max-height:calc(100svh - 96px);padding:16px;border:1px solid #55555c;border-radius:16px;background:#353539;color:#f4f4f5;box-shadow:0 16px 48px #0006;overflow:auto}
.game-options::backdrop{background:#0006}
body[data-page="game"]:has(.game-options[open]){overflow:hidden}
.game-options-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.game-options-top h2{font-size:1rem;line-height:1.5}
.game-options .icon-button:hover{background:#4b4b52}
.game-options-info{display:flex;gap:12px;align-items:center;padding:0 8px 16px;border-bottom:1px solid var(--border)}
.game-options-info img{width:64px;height:64px;object-fit:cover;flex-shrink:0;border-radius:12px}
.game-options-info>div{min-width:0}
.game-options-title{display:block;font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
.game-options-info span{display:block;color:#babac2;font-size:.875rem;line-height:1.5}
.game-options nav{display:grid;padding:8px 0;border-bottom:1px solid var(--border)}
.game-options nav>a,.game-options nav>button{display:flex;gap:12px;align-items:center;text-align:left;width:100%;min-height:48px;padding:12px 8px;border-radius:8px;background:none;color:#f4f4f5;font-size:.875rem;line-height:1.5}
.game-options nav>a:hover,.game-options nav>button:hover{background:#4b4b52}
.game-options nav>button:disabled{cursor:default;opacity:.45;background:none}
.game-options nav>button[aria-pressed="true"]{color:var(--lime)}
.game-options nav>button[aria-pressed="true"] .icon{fill:#c6ee7c33}
.game-options nav .icon{width:22px;height:22px;flex-shrink:0}
.game-options-language{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px 8px 0;font-size:.875rem}
.game-options-language select{width:160px;min-height:44px;padding:8px;border:1px solid #6b6b73;border-radius:8px;background:#45454b;color:#fff}
.game-options [data-copy-fallback]{margin:16px 8px 0}
.game-options [data-copy-fallback] label{display:block;margin-bottom:8px;font-size:.875rem}
.game-options input{width:100%;padding:12px;background:#242424;color:#fff;border:1px solid #6b6b73;border-radius:8px;font-size:.875rem}
.game-menu-status{font-size:.875rem;line-height:1.5;color:var(--lime);margin:12px 8px 0}
.game-menu-status:empty{display:none}
body[data-page="game"] .toast{left:50%;background:var(--lime);color:#242424;white-space:normal;text-align:center}
body[data-page="game"] :focus-visible{outline:2px solid var(--lime);outline-offset:3px}
.game-stage .player-shell:fullscreen{min-height:0;max-height:none;width:100vw;height:100vh;border-radius:0}
@media(max-width:900px){.game-topbar{padding:12px 24px;gap:16px}.game-main{padding:16px 24px 24px}.game-details .game-copy{grid-template-columns:1fr;gap:16px}.game-details .game-facts{max-width:600px}.game-footer{padding:16px 24px 24px}}
@media(max-width:600px){.game-topbar{height:auto;min-height:64px;gap:8px;padding:8px 12px;flex-wrap:wrap}.game-topbar .header-brand{font-size:1.125rem}.game-topbar .header-brand-mark{display:none}.game-back{order:3;flex-basis:100%;min-height:32px;padding:4px 0}.game-topbar-actions{gap:4px}.game-main{padding:12px}.game-stage .player-shell,.game-stage .player-shell[data-orientation="portrait"]{height:66svh;min-height:460px;max-height:800px;aspect-ratio:auto;border-radius:12px}.game-stage .player-overlay{min-height:clamp(460px,66svh,800px);padding:24px 20px;background:linear-gradient(0deg,#000e,#0005 90%)}.game-launch-info{gap:0}.game-launch-info .player-cover{width:88px;height:88px;border-radius:12px}.game-launch-info h1{font-size:1.5rem;line-height:2rem}.game-launch-meta{font-size:.875rem;gap:4px 12px}.game-launch-meta>span::before{margin-right:8px}.game-launch-info .button{width:auto;min-width:176px;max-width:100%;margin-top:16px}.game-similar{margin:24px 0}.game-similar h2{font-size:1.25rem}body[data-page="game"] .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}body[data-page="game"] .card-caption h3{font-size:.9375rem}body[data-page="game"] .card-caption p{font-size:.8125rem}.game-options{inset:12px 12px auto auto;max-height:calc(100svh - 24px)}.game-footer{padding:12px 16px 24px;gap:8px 16px}.game-details .game-copy{gap:8px}.game-stage .player-shell:fullscreen,.game-stage .player-shell[data-orientation="portrait"]:fullscreen{height:100vh;min-height:0;max-height:none}}
@media(max-height:600px) and (min-width:601px){.game-stage .player-shell{height:calc(100svh - 96px);min-height:300px}.game-stage .player-overlay{min-height:clamp(300px,calc(100svh - 96px),880px);padding:24px}.game-launch-info{gap:0}.game-launch-info .player-cover{width:64px;height:64px}.game-launch-info h1{font-size:1.5rem;line-height:2rem}}
