:root { color-scheme: dark; --ink: #11151c; --paper: #f3f5f2; --blue: #2567dd; --green: #b8e65e; --line: #3d4650; }
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: var(--ink); color: var(--paper); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.page-header { min-height: 70px; padding: 16px max(24px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.back-link { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; font-weight: 700; }
.back-link img { width: 20px; height: 20px; filter: invert(1); }
.studio-link { font-size: 12px; text-decoration: none; color: #bfc8d1; }
main { max-width: 1440px; margin: auto; padding: 30px 24px 24px; }
.game-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 24px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; }
h1 { margin: 10px 0 0; font-size: 42px; line-height: 1.08; font-weight: 800; }
h1 span { color: var(--green); }
.build-label { color: #bfc8d1; font-size: 12px; padding-bottom: 4px; }
.player { background: #000; border: 1px solid var(--line); }
.stream-surface { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 240px); min-height: 160px; overflow: hidden; min-width: 0; }
.poster { width: 100%; height: 100%; position: relative; }
.game-image { width: 100%; height: 100%; object-fit: contain; display: block; }
.poster-controls { position: absolute; inset: auto 0 0; padding: 24px; display: flex; justify-content: center; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.play-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 30px; border: 0; border-radius: 4px; background: var(--green); color: var(--ink); font-size: 16px; font-weight: 700; }
.play-button:hover { background: #d0f598; }
.play-button img { width: 22px; height: 22px; }
.player-toolbar { display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 0 max(10px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); background: var(--ink); flex: 0 0 auto; }
.toolbar-title { font-size: 13px; font-weight: 700; white-space: nowrap; }
.session-status { flex: 1; min-width: 0; font-size: 12px; color: #bfc8d1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-actions { display: flex; gap: 8px; margin-left: auto; }
.icon-button { display: grid; place-items: center; height: 44px; width: 44px; border: 0; border-radius: 4px; background: transparent; }
.icon-button:hover { background: #303943; }
.icon-button:disabled { opacity: .5; cursor: progress; }
.icon-button img { width: 20px; height: 20px; filter: invert(1); }
.stop-button:hover { background: #713a39; }
.player.is-playing { position: fixed; z-index: 100; inset: 0; width: 100%; height: 100vh; height: 100dvh; display: flex; flex-direction: column; border: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.is-playing .stream-surface { aspect-ratio: auto; flex: 1 1 0; min-height: 0; max-height: none; }
.stream-surface iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
body.session-open { overflow: hidden; }
.game-summary { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 20px 0; }
.game-summary p { margin: 0; font-size: 18px; line-height: 1.5; }
.game-summary a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #bfc8d1; text-decoration: none; white-space: nowrap; }
.game-summary a img { width: 16px; height: 16px; filter: invert(1); }
.session-note { display: flex; gap: 12px 28px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; line-height: 1.6; color: #9faab6; }
footer { display: flex; gap: 16px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 24px; padding: 22px 24px; font-size: 11px; color: #9faab6; }
@media (max-width: 600px) { main { padding: 24px 12px; } .page-header { padding-inline: 12px; } h1 { font-size: 32px; } .game-heading { align-items: start; flex-direction: column; gap: 12px; } .game-summary { flex-direction: column; align-items: start; gap: 12px; } .poster-controls { padding: 12px; } .play-button { min-height: 48px; font-size: 14px; padding-inline: 24px; } .toolbar-title { display: none; } footer { padding-inline: 12px; } }
@media (max-height: 500px) { .player-toolbar { min-height: 44px; } .toolbar-title { display: none; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
