:root {
  color-scheme: light;
  --blue: #087fea;
  --navy: #063d6a;
  --deep: #032f56;
  --accent: #f5ff38;
  --text: #fff;
  --muted: #c4e3fa;
  --line: #87c6ef70;
  --display: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-family: Arial, Helvetica, sans-serif;
  background: #91c9f8;
  color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
/* Keep the header margin inside the body so its background reaches the top. */
body { display: flow-root; margin: 0; min-height: 100vh; background: linear-gradient(180deg,#087ff0 0,#188bf0 570px,#85bfff 1100px,#e8f4ff 100%); }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 94% 23%,transparent 0 125px,#d5f5ff45 126px 128px,transparent 129px 137px,#d5f5ff25 138px 140px,transparent 141px),radial-gradient(circle at -8% 68%,transparent 0 280px,#d5f5ff30 281px 284px,transparent 285px 298px,#d5f5ff30 299px 300px,transparent 301px); }
button,input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .45; cursor: default; }
button,a,input,summary { outline-offset: 5px; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline: 3px solid white; box-shadow: 0 0 0 6px #06477a; }
a { color: inherit; text-decoration: none; }
button,a { -webkit-tap-highlight-color: transparent; }
button:not(:disabled),a { transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
button:not(:disabled):active { transform: translateY(2px); }
[hidden] { display: none !important; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; position: relative; margin: 14px 15px 0; min-height: 65px; padding: 8px max(3.4vw,18px); border: 3px solid var(--accent); border-radius: 40px; background: #073d66e8; box-shadow: 0 4px 0 #084c88,inset 0 0 0 2px #397da6; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 30px; font-style: italic; letter-spacing: 2px; color: var(--accent); text-shadow: 2px 2px #002c4f; white-space: nowrap; }
.brand>span:last-child { margin-left: -3px; }
.brand-icon { display: flex; align-items: center; gap: 1px; font: 20px Arial,sans-serif; letter-spacing: -5px; padding-right: 14px; }
.brand-icon i { font-size: 14px; font-style: normal; transform: translateY(-6px); }
nav { display: flex; gap: 14px; }
nav :is(a,button) { background: transparent; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--accent); padding: 8px 18px; border-radius: 30px; color: var(--accent); font-size: 11px; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; box-shadow: inset 0 0 0 2px #06375c,inset 0 0 0 3px #f5ff3870; }
nav :is(a,button):hover,nav :is(a,button)[aria-current=page] { background: #f5ff3828; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.session-actions { margin: 0; display: flex; }
.logout-button { display: grid; place-items: center; width: 32px; height: 32px; background: transparent; border: 1px solid #94c6e6; border-radius: 5px; color: #c4e3fa; }
.logout-button svg { width: 18px; height: 18px; }
.logout-button:hover { background: #2b6c9a; color: #fff; }
nav :is(a,button) span[aria-hidden] { padding-left: 7px; }
.language-switch { display: inline-flex; border: 1px solid #94c6e6; border-radius: 5px; padding: 3px; gap: 2px; }
.language-switch button { border: 0; border-radius: 2px; background: transparent; color: #b8d9ef; padding: 6px 7px; font: 700 10px/1 Arial,sans-serif; letter-spacing: .5px; }
.language-switch button:hover { color: white; background: #2b6c9a; }
.language-switch button[aria-pressed=true] { background: var(--accent); color: #073d66; }
main { position: relative; max-width: 1440px; padding: 0 max(4.6vw,24px); margin: auto; }
.page-status { padding: 90px 0; font-size: 18px; }
.edition-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 25px 5px 20px; }
.breadcrumb { display: flex; align-items: center; gap: 15px; font-size: 12px; }
.breadcrumb a { color: #d1eafd; }
.breadcrumb h1 { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .8px; color: var(--accent); margin: 0; text-shadow: 1px 2px #155395; }
.breadcrumb>span { color: #b9e2ff; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: var(--accent); box-shadow: 0 0 6px #f5ff3880; }
.play-layout { display: flex; justify-content: center; }
.player { width: min(100%,1040px); min-width: 0; background: #002c52; border: 3px solid var(--accent); padding: 5px; border-radius: 19px; box-shadow: 0 5px 0 #03466b,0 12px 25px #00539b30,inset 0 0 0 1px #b7e2ff; }
.stage { position: relative; overflow: hidden; background: #000; border: 1px solid #91d9ff; border-radius: 10px; }
.game-screen { aspect-ratio: 4/3; position: relative; min-width: 0; overflow: clip; background: #000; }
#game-mount,#game-mount iframe { position: absolute; inset: 0; display: block; border: 0; width: 100%; height: 100%; }
/* Focus may scroll an overflow:hidden layer; clip keeps the loading view fixed. */
.game-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: clip; background: linear-gradient(165deg,#0f8bec,#0759ae 65%,#b2dcff); }
.poster-wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; padding: 30px; opacity: .45; transform: rotate(-10deg) scale(1.13); }
.poster-wall img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #c6f3ff; box-shadow: 0 0 0 3px #70c5ff,0 0 25px #9bd9ff; min-height: 0; }
.poster-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center,#005bb8b0,#0468c6b5 50%,#073f8ae8 100%); }
.overlay-content { position: relative; z-index: 1; width: 100%; max-width: 440px; padding: 26px; text-align: center; }
.eyebrow { font-size: 10px; letter-spacing: 2.5px; font-weight: 700; color: var(--accent); }
.arcade-title { font-family: var(--display); font-size: clamp(38px,5vw,70px); font-style: italic; letter-spacing: 1px; line-height: 1.1; margin: 18px auto 32px; color: #fff; text-shadow: 3px 4px #073f74; }
.original-logo { display: block; width: min(100%,350px); max-height: min(280px,36vw); object-fit: contain; margin: auto; height: auto; filter: drop-shadow(0 6px 0 #00295280); }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: 15px; padding: 14px 34px; border: 3px solid var(--accent); border-radius: 45px; background: #164b6be0; color: var(--accent); font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; box-shadow: inset 0 0 0 3px #285574,inset 0 0 0 5px var(--accent),0 4px 0 #063a6b; }
.primary:hover { background: #f5ff38; color: #043a68; box-shadow: inset 0 0 0 3px #f5ff38,inset 0 0 0 5px #043a68,0 4px 0 #063a6b; }
.play-button { min-width: 205px; padding-block: 17px; font-size: 26px; }
.play-icon { font: 17px Arial,sans-serif; }
.overlay-content p { color: #e1f2ff; font-size: 12px; line-height: 1.65; margin: 20px 0 0; }
.overlay-content h2 { font-family: var(--display); font-size: 29px; font-weight: 400; letter-spacing: .5px; margin: 15px 0 0; text-shadow: 1px 2px #00427e; }
.player-toolbar { position: absolute; inset: auto 0 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 18px 10px 6px; background: linear-gradient(transparent,#0009); transition: opacity .18s,transform .18s; color: white; }
.stage[data-session=playing] .player-toolbar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.stage[data-session=playing][data-toolbar=visible] .player-toolbar { opacity: 1; transform: none; pointer-events: auto; }
.stage[data-session=loading] .player-toolbar { display: none; }
.stage:is(.expanded,:fullscreen) .player-toolbar { padding: 24px 18px 10px; }
.stage:is(.expanded,:fullscreen) .icon-button,.stage:is(.expanded,:fullscreen) .volume-button { width: 44px; height: 44px; }
.player-toolbar #state,.player-toolbar .button-label,#volume-value { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.volume-control { display: flex; align-items: center; gap: 0; }
.player-actions { display: flex; gap: 4px; margin-left: auto; }
.icon-button,.volume-button { position: relative; display: grid; place-items: center; flex-shrink: 0; padding: 7px; width: 36px; height: 36px; border: 0; border-radius: 2px; background: transparent; color: #fff; }
.icon-button svg,.volume-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:not(:disabled):hover,.volume-button:hover { background: #ffffff14; }
.player-toolbar button[aria-label]::after { content: attr(aria-label); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 6px 8px; border-radius: 3px; background: #141414ed; color: #fff; font: 11px/1.3 Arial,sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; }
.player-toolbar button:not(:disabled):is(:hover,:focus-visible)::after { opacity: 1; }
.player-actions .icon-button::after { left: auto; right: 0; transform: none; }
.player-toolbar .volume-button[aria-label]::after { left: 0; transform: none; }
.collapse-icon,#fullscreen[aria-pressed=true] .expand-icon { display: none; }
#fullscreen[aria-pressed=true] .collapse-icon { display: block; }
#volume { appearance: none; width: 0; height: 28px; padding: 0; border: 0; margin: 0; background: transparent; cursor: pointer; opacity: 0; transition: width .15s,opacity .15s,margin .15s; }
.volume-control:is(:hover,:focus-within) #volume { width: 76px; margin: 0 8px; opacity: 1; }
#volume::-webkit-slider-runnable-track { height: 3px; border-radius: 0; background: linear-gradient(to right,#fff var(--volume,100%),#ffffff50 var(--volume,100%)); }
#volume::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 0; border-radius: 50%; background: #fff; }
#volume::-moz-range-track { height: 3px; background: #ffffff50; }
#volume::-moz-range-progress { height: 3px; background: #fff; }
#volume::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; }
#volume:focus-visible { outline: 1px solid #fff; outline-offset: 3px; box-shadow: none; }
@media (hover:none) { .volume-control #volume { width: 76px; margin: 0 8px; opacity: 1; } }
@media (prefers-reduced-motion:reduce) { .player-toolbar,#volume { transition: none; } }
.controls { position: relative; padding: 16px 20px 18px; background: linear-gradient(145deg,#054674e6,#064276c9); border: 2px solid var(--accent); border-radius: 22px; box-shadow: inset 0 0 0 3px #0877be,inset 0 0 0 4px #f5ff3885,0 5px 0 #155da2; }
.section-kicker { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; letter-spacing: 1.4px; font-weight: 700; color: #ddf2ff; padding-bottom: 10px; border-bottom: 1px solid #9dd4f780; }
.section-kicker>span:first-child { color: var(--accent); }
.controls h2 { font-family: var(--display); font-weight: 400; text-align: center; text-transform: uppercase; font-size: 35px; letter-spacing: 1px; line-height: 1.1; margin: 14px 0 18px; color: var(--accent); text-shadow: 2px 2px #052d54; }
.pad { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,63px); gap: 2px; width: 228px; margin: 0 auto; }
.pad-key { position: relative; display: grid; place-items: center; min-width: 0; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; }
.pad-key:hover { background: #87c6ef20; border-color: #87c6ef70; }
.pad-key.listening { border-color: var(--accent); background: #f5ff3825; box-shadow: 0 0 0 2px #f5ff3840; }
.pad-key.long-key b { font-size: 11px; white-space: nowrap; }
.step-art { display: block; width: 64px; height: 64px; background-repeat: no-repeat; filter: drop-shadow(0 3px 2px #001d54a0); }
.pad-key b { position: absolute; bottom: 0; right: 0; display: grid; place-items: center; min-width: 23px; height: 24px; padding: 2px 5px; background: #063664; color: white; border: 1px solid #a3d8ff; border-bottom: 3px solid #5798c6; border-radius: 5px; font-size: 17px; line-height: 1; box-shadow: 0 2px 4px #001b4790; }
.pad-key.upperLeft { grid-area: 1/1; }
.pad-key.upperRight { grid-area: 1/3; }
.pad-key.center { grid-area: 2/2; }
.pad-key.center b { border-color: var(--accent); color: var(--accent); }
.pad-key.lowerLeft { grid-area: 3/1; }
.pad-key.lowerRight { grid-area: 3/3; }
.pad-caption { display: flex; justify-content: space-between; width: 228px; margin: 13px auto 18px; color: #b9def7; font-size: 8px; letter-spacing: 1.5px; }
.controls-help { border-top: 1px solid var(--line); }
.key-settings { margin: 0 0 16px; text-align: center; }
.key-settings p { min-height: 30px; margin: 0 0 7px; font-size: 11px; line-height: 1.45; color: #d3ebfc; }
.reset-keys { padding: 6px 10px; border: 1px solid #8bc7ee80; border-radius: 5px; background: #063d6a; font-size: 10px; color: #d3ebfc; }
.reset-keys:hover { border-color: var(--accent); color: var(--accent); }
.controls-help summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 2px; list-style: none; cursor: pointer; color: var(--accent); font-size: 12px; font-weight: 700; }
.controls-help summary::-webkit-details-marker { display: none; }
.controls-help summary::after { content: ''; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.controls-help[open] summary { padding-bottom: 14px; }
.controls-help[open] summary::after { transform: rotate(225deg); }
.guide { border-top: 1px solid var(--line); }
.guide>div { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.guide>div>b { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font: 10px Arial,sans-serif; margin-top: 1px; }
.guide p { font-size: 11px; line-height: 1.65; color: #cce8fc; margin: 0; }
.guide strong { display: block; color: #fff; font-size: 12px; margin-bottom: 4px; }
kbd { font: 11px/1.25 ui-monospace,monospace; display: inline-block; border: 1px solid #d0eaff; border-bottom-width: 2px; border-radius: 4px; color: #fff; background: #063861; padding: 1px 5px; min-width: 20px; text-align: center; margin: 0 1px; }
.back-hint { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 9px; color: #c6e8ff; }
.catalog { margin-top: 37px; padding: 22px; border: 2px solid #d2edff; border-radius: 22px; background: #d9eeff75; box-shadow: inset 0 0 0 2px #1675ce70,0 5px 0 #368bd33b; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 15px 20px; background: #074c7ee8; border: 2px solid var(--accent); box-shadow: inset 0 0 0 2px #075080,inset 0 0 0 3px #f5ff3880; border-radius: 40px; }
.catalog-heading .eyebrow { font-size: 8px; letter-spacing: 2px; }
.catalog h2 { font-family: var(--display); font-size: 25px; font-weight: 400; letter-spacing: .3px; margin: 4px 0 0; }
.catalog h2>#count { color: var(--accent); font: inherit; margin-left: 3px; }
.search { display: flex; align-items: center; gap: 8px; min-width: 170px; width: 240px; border: 1px solid #9ac7e6; background: #032e54b5; border-radius: 25px; padding: 9px 13px; }
.search:focus-within { border-color: var(--accent); }
.search>span { font: 24px/1 Arial,sans-serif; color: var(--accent); }
.search input { min-width: 0; width: 100%; border: 0; background: transparent; color: white; font-size: 12px; outline: none; }
.search input::placeholder { color: #b8d8ed; }
.mode-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 23px; }
.filter-chip { border: 2px solid #1066b2; border-radius: 25px; background: #e4f3ffe8; color: #084b81; padding: 8px 14px; font-size: 11px; font-weight: 700; }
.filter-chip:hover { background: #fff; border-color: #043c6c; }
.filter-chip[aria-pressed=true] { background: #063e6e; color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 1px #1762a2; }
.catalog-caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 2px 18px; font-size: 10px; color: #124c7a; }
.catalog-caption p { margin: 0; }
.catalog-caption>span { font-weight: 700; }
.catalog-caption>span span[aria-hidden] { margin-left: 6px; }
.tracks { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px 12px; }
.track { min-width: 0; border: 1px solid #bce2fa; border-radius: 10px; overflow: hidden; background: #074776ed; box-shadow: 0 3px 0 #356fa950; }
.cover { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #1368a4; border-bottom: 2px solid #b1d9f4; }
.cover img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.track:hover .cover img { transform: scale(1.04); }
.track:hover { border-color: var(--accent); }
.cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 35px; color: var(--accent); }
.track-info { padding: 11px 10px 13px; }
.track h3 { font-size: 12px; line-height: 1.35; margin: 0; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.track-meta { display: flex; align-items: center; gap: 5px; font: 10px ui-monospace,monospace; color: #b5ddf7; margin-top: 7px; }
.track-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #78b9e43b; }
.mode-tag { display: inline-flex; align-items: center; gap: 5px; border: 0; border-left: 2px solid #74b6e1; border-radius: 0; padding: 4px 0 4px 6px; background: #073858; color: #e7f5ff; font: 700 10px/1.25 Arial,sans-serif; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }
.mode-tag b { display: grid; place-items: center; align-self: stretch; min-width: 19px; margin-block: -4px; padding: 4px 6px 4px 4px; color: #073858; background: var(--accent); clip-path: polygon(0 0,100% 0,100% 72%,75% 100%,0 100%); font: 800 11px/1 ui-monospace,monospace; letter-spacing: 0; }
.mode-tag.without-level { border-right: 2px solid #74b6e1; padding-right: 6px; }
.mode-tag.active { border-color: var(--accent); background: #164d74; box-shadow: 0 1px 0 var(--accent); }
.empty-state { padding: 55px 15px; text-align: center; color: #093d6c; border: 2px dashed #448cc5; border-radius: 15px; }
.empty-state>span { font-size: 40px; }
.empty-state h3 { font-family: var(--display); font-size: 26px; font-weight: 400; }
.empty-state p { font-size: 13px; }
.text-button { border: 0; background: transparent; font-size: 11px; padding: 12px; text-decoration: underline; text-underline-offset: 4px; color: var(--accent); }
.empty-state .text-button { color: #064a82; font-weight: 700; }
.diagnostics { color: #164b75; border-top: 1px solid #2267a063; margin-top: 35px; padding: 15px 4px; font-size: 11px; }
.diagnostics summary { display: flex; justify-content: space-between; cursor: pointer; }
.diagnostics pre { max-height: 180px; overflow: auto; font: 10px/1.5 ui-monospace,monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.diagnostics .text-button { color: #174b74; padding-left: 0; }
.load-symbol { display: grid; grid-template-columns: repeat(3,22px); grid-template-rows: repeat(3,22px); gap: 3px; width: max-content; margin: 0 auto 18px; color: var(--accent); }
.load-symbol span:nth-child(1) { grid-area: 1/1; }
.load-symbol span:nth-child(2) { grid-area: 1/3; }
.load-symbol span:nth-child(3) { grid-area: 2/2; }
.load-symbol span:nth-child(4) { grid-area: 3/1; }
.load-symbol span:nth-child(5) { grid-area: 3/3; }
.load-symbol span { animation: pulse 1.4s ease-in-out infinite; }
.load-symbol span:nth-child(2n) { animation-delay: .3s; }
.load-symbol span:nth-child(3) { animation-delay: .6s; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.85); } }
.load-progress { margin: 22px auto 0; max-width: 310px; }
progress { width: 100%; height: 10px; display: block; border: 1px solid var(--accent); border-radius: 10px; padding: 2px; background: #06447b; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #06447b; border-radius: 10px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 10px; }
progress:not([value]) { background: linear-gradient(90deg,#06447b 20%,#f5ff38 50%,#06447b 80%); background-size: 200% 100%; animation: progress 1.8s linear infinite; }
progress:not([value])::-webkit-progress-bar { background: transparent; }
@keyframes progress { to { background-position: -200% 0; } }
.progress-meta { display: flex; justify-content: space-between; margin-top: 9px; font: 10px ui-monospace,monospace; color: #d8edff; }
.load-steps { display: flex; justify-content: space-between; gap: 10px; padding: 0; list-style: none; max-width: 310px; margin: 25px auto 0; font: 12px ui-monospace,monospace; color: #a0cbec; }
.load-steps li { display: flex; flex-direction: column; gap: 6px; }
.load-steps li span { font: 10px Arial,sans-serif; }
.load-steps li.active { color: var(--accent); }
.load-steps li.done { color: #fff; }
.overlay-content .load-note { font-size: 10px; color: #c7e5ff; margin-top: 22px; }
.error-icon { display: block; font-size: 45px; color: var(--accent); }
#error-content .primary { margin-top: 20px; }
#error-content .text-button { display: block; margin: 8px auto 0; }
.library-heading { padding: 65px 3px 40px; }
.library-heading h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px,5vw,65px); letter-spacing: 1px; margin: 15px 0; color: var(--accent); text-shadow: 2px 3px #034e9e; }
.library-heading h1>span:last-child { color: #fff; }
.library-heading p { font-size: 15px; color: #e7f4ff; }
.editions-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; margin-bottom: 110px; }
.edition-card { position: relative; display: flex; align-items: end; overflow: hidden; width: 100%; min-width: 0; aspect-ratio: 3.1; min-height: 190px; background: #0563b9; border: 3px solid var(--accent); border-radius: 23px; padding: 16px 20px; box-shadow: 0 5px 0 #084c88,inset 0 0 0 4px #216da8; }
.edition-card .poster-wall { opacity: .35; padding: 12px; }
.edition-card .poster-shade { z-index: 2; background: linear-gradient(90deg,#003768b3,#00376815 65%),linear-gradient(0deg,#003768 0,#003768b0 18%,#0656a000 65%); }
.edition-logo { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); display: block; width: 73.8%; height: 118.8%; object-fit: contain; opacity: .88; filter: drop-shadow(0 6px 8px #001a3b50); pointer-events: none; }
.card-copy { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.card-copy .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
.edition-card h2 { font-family: var(--display); font-size: 23px; font-style: italic; font-weight: 400; letter-spacing: .5px; margin: 5px 0 0; text-shadow: 1px 2px #003057; }
.card-arrow { display: grid; place-items: center; flex-shrink: 0; width: 37px; height: 37px; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); background: #0b4b6bd9; font-size: 23px; box-shadow: inset 0 0 0 2px #0b4b6b,inset 0 0 0 3px var(--accent); }
.arrow-icon { display: inline-block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.touch-controls { display: none; place-items: center; padding: 12px; background: radial-gradient(ellipse at 50% 65%,#ffffff05,transparent 75%),#06070a; border: 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.stage[data-touch=on] .touch-controls { display: grid; }
.stage[data-touch=on],.touch-controls * { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.touch-pad { display: grid; width: min(100%,260px,37dvh); aspect-ratio: 1; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(3,minmax(0,1fr)); gap: 5px; justify-self: center; }
.touch-key { display: grid; place-items: center; min-width: 0; min-height: 44px; padding: 3px; border: 1px solid #ffffff0c; border-radius: 15px; background: #ffffff03; touch-action: none; }
.touch-key .step-art { width: 100%; height: 100%; pointer-events: none; filter: grayscale(1) contrast(.75) brightness(1.1); opacity: .55; transition: opacity .08s,filter .08s; }
.touch-key.upperLeft { grid-area: 1/1; }
.touch-key.upperRight { grid-area: 1/3; }
.touch-key.center { grid-area: 2/2; }
.touch-key.lowerLeft { grid-area: 3/1; }
.touch-key.lowerRight { grid-area: 3/3; }
.touch-controls .is-pressed { border-color: #ffffff70; background: #ffffff12; box-shadow: 0 0 18px #ffffff12; transform: none; }
.touch-controls .is-pressed .step-art { opacity: 1; filter: grayscale(1) contrast(.9) brightness(1.5); }
.touch-controls button:not(:disabled):active { transform: none; }
#touch-toggle[aria-pressed=true] { color: var(--accent); }
#touch-layout { display: none; }
#touch-layout[aria-pressed=true] { color: var(--accent); }
.touch-instructions { display: none; color: var(--muted); font-size: 12px; line-height: 1.6; }
body[data-touch=on] .touch-instructions { display: block; }
body.player-expanded { overflow: hidden; overscroll-behavior: none; background: #06070a; }
html:has(body.player-expanded) { background: #06070a; overscroll-behavior: none; }
body.player-expanded::before { display: none; }
body.player-expanded :is(.site-header,footer,.edition-heading,.controls,.catalog,.diagnostics) { visibility: hidden; }
body.player-expanded .catalog { display: none; }
.stage[data-session=playing][data-touch=on] .game-screen::after { content: ''; position: absolute; z-index: 2; inset: auto 0 0; height: 18px; background: linear-gradient(transparent,#06070a); pointer-events: none; }
.edition-card:hover { box-shadow: 0 5px 0 #084c88,0 0 0 3px #d6edff; transform: translateY(-3px); }
.login-main { min-height: calc(100dvh - 100px); display: grid; place-items: center; padding-block: 40px; }
.login-card { width: min(100%,440px); padding: 32px; background: #073d66ee; border: 3px solid var(--accent); border-radius: 25px; box-shadow: 0 6px 0 #084c88,inset 0 0 0 3px #397da6; }
.login-logo { display: block; width: 190px; height: 100px; object-fit: contain; margin: 0 auto 26px; }
.login-card h1 { font: 400 39px/1.1 var(--display); color: var(--accent); margin: 14px 0; }
.login-card p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.login-card form { display: grid; gap: 9px; margin-top: 24px; }
.login-card label { font-size: 12px; font-weight: 700; }
.login-card input { min-width: 0; width: 100%; margin-bottom: 9px; padding: 12px 13px; border: 1px solid #87c6ef; border-radius: 7px; background: #002c52; color: #fff; font-size: 16px; }
.login-card .primary { margin-top: 10px; width: 100%; }
.login-card #login-error { margin: 0; color: #fff3a4; }
.not-found { padding: 95px 0; }
.not-found h1 { font-family: var(--display); font-size: 42px; font-weight: 400; max-width: 550px; line-height: 1.25; }
.not-found .primary { margin-top: 15px; }
footer { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; max-width: 1440px; margin: 45px auto 0; padding: 25px max(4.6vw,24px) 30px; border-top: 2px solid #91bddf; color: #155080; font-size: 11px; }
.footer-brand { font-family: var(--display); font-size: 18px; letter-spacing: 1px; color: #0b4476; }
.footer-credit { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: underline; text-underline-offset: 4px; }
.footer-links a:hover { color: #062d50; }

.controls-dialog { width: min(440px,calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px; background: #064276; color: var(--text); overscroll-behavior: contain; box-shadow: 0 20px 80px #00152790; }
.controls-dialog::backdrop { background: #001323b8; backdrop-filter: blur(5px); }
.controls-dialog .controls { visibility: visible; }
.controls-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.controls-dialog-heading h2 { margin: 0; font-size: 32px; text-align: left; }
.controls-dialog .section-kicker { margin-bottom: 20px; }
.controls-dialog #close-controls { width: 40px; height: 40px; }
body.controls-open { overflow: hidden; }
