:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f0eddf;
  background: #141012;
  font-synthesis: none;
  --cream: #f0eddf;
  --lime: #d9f25d;
  --pink: #f15aa9;
  --muted: #91878c;
  --line: #3a3036;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(ellipse at 55% 18%, #302027 0%, #1c1419 42%, #141012 76%);
}
button, kbd { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid var(--cream); outline-offset: 5px; }
button:disabled { cursor: default; }
.hidden { display: none !important; }
.arcade { width: min(1480px, calc(100% - 72px)); margin: 0 auto; padding: 28px 0 22px; }
.masthead { display: flex; align-items: center; gap: 28px; min-height: 65px; margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.brand-mark { width: 48px; height: 48px; border: 1px solid #776e64; background: var(--lime); color: #1e2013; display: grid; place-content: center; position: relative; font-family: Impact, "Arial Narrow", sans-serif; font-size: 26px; transform: rotate(-5deg); }
.brand-mark span { position: absolute; right: 1px; bottom: 0; font-size: 10px; }
h1 { font-family: Impact, "Arial Narrow", sans-serif; font-size: 37px; font-weight: 900; letter-spacing: -.8px; line-height: .95; margin: 0; }
.title-dot { color: var(--pink); }
.brand p { margin: 9px 0 0; font-size: 8px; letter-spacing: 2.1px; color: #b7a9af; font-weight: 700; }
.masthead-note { margin: 1px auto 0; display: flex; align-items: center; gap: 9px; color: #a6979e; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.live-dot { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px #d9f22d33; vertical-align: middle; }
.utility-controls { display: flex; align-items: center; gap: 8px; }
.utility-button { min-height: 35px; padding: 0 14px; border: 1px solid #4a3d44; background: #261c23; color: #c7bdc1; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; white-space: nowrap; transition: border-color .15s, color .15s; }
.utility-button:hover { border-color: var(--lime); color: var(--lime); }
.utility-button[aria-pressed="true"] { border-color: #78823d; color: var(--lime); }
.utility-button span { margin-left: 9px; font-size: 14px; }
.cabinet { padding: 0 7px; border: 1px solid #49363f; background: #21181c; box-shadow: 0 20px 60px #0005, 0 0 0 5px #ffffff02; }
.cabinet-label, .cabinet-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8f7d85; font-size: 8px; line-height: 1.6; font-weight: 700; letter-spacing: 1.5px; }
.cabinet-label { height: 26px; padding: 0 5px; }
.cabinet-label span:first-child { color: #b9aaa7; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: #1e1822; border: 1px solid #0a090a; container-type: inline-size; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.overlay { position: absolute; inset: 0; padding: 4.3% 5.5%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(90deg, #17121bf5 0%, #18111bea 26%, #1a131aac 44%, #1a131a18 67%, transparent 82%); }
.overlay > * { position: relative; max-width: 60%; }
.eyebrow { display: flex; gap: 9px; align-items: center; color: var(--lime); font-size: clamp(8px, .8vw, 11px); letter-spacing: 2px; font-weight: 800; margin: 0 0 20px; }
.eyebrow > span { font-size: 15px; }
.game-title { margin: 0 0 16px; font-family: Impact, "Arial Narrow", "Franklin Gothic Condensed", sans-serif; font-weight: 900; font-style: italic; font-stretch: condensed; font-size: clamp(62px, 9.6vw, 145px); line-height: .79; letter-spacing: -5px; color: var(--cream); text-shadow: 3px 3px 0 #ef62ad; transform: rotate(-3deg); transform-origin: left center; }
.game-title > span { display: block; color: var(--lime); position: relative; margin-top: 8px; text-shadow: 3px 3px 0 #616b24; }
.title-star { display: inline-block; color: var(--pink); font-size: .29em; vertical-align: top; margin: 7px 0 0 11px; text-shadow: none; }
.premise { margin: 15px 0 9px; font-size: clamp(14px, 1.75vw, 25px); line-height: 1.2; font-weight: 800; letter-spacing: -.6px; }
.intro-copy { color: #b7a9b6; margin: 0 0 23px; font-size: clamp(9px, .91vw, 13px); line-height: 1.7; }
.start-button, .overlay button { display: flex; align-items: center; justify-content: space-between; gap: 38px; min-height: 48px; padding: 14px 22px; border: 1px solid #e5ff83; background: var(--lime); color: #1c2011; box-shadow: 4px 4px 0 #747d3d; font-size: clamp(10px, .9vw, 13px); font-weight: 900; letter-spacing: 1.1px; transition: transform .15s, box-shadow .15s, background .15s; }
.start-button:hover, .overlay button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #747d3d; background: #e8ff88; }
.start-button:active, .overlay button:active { transform: translate(4px, 4px); box-shadow: none; }
.start-button span { font-size: 23px; line-height: 1; }
.overlay-controls { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 18px; color: #8e808b; font-size: clamp(7px, .63vw, 9px); font-weight: 700; letter-spacing: .9px; }
.overlay-controls kbd { color: #bbaab8; border: 0; background: none; padding: 0 2px; box-shadow: none; }
.overlay h2:not(.game-title) { margin: 0 0 18px; font-family: Impact, "Arial Narrow", sans-serif; color: var(--lime); font-size: clamp(35px, 6vw, 88px); line-height: 1; }
.overlay p:not([class]) { line-height: 1.6; font-size: clamp(12px, 1.4vw, 20px); }
.cabinet-bottom { min-height: 30px; padding: 4px 6px; }
.cabinet-bottom > span:first-child { display: flex; align-items: center; gap: 8px; }
#status { letter-spacing: 1.05px; color: #aa989f; }
.cabinet-id { color: #685b62; white-space: nowrap; }
.instruction-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 22px 3px 0; }
.control { display: flex; align-items: center; gap: 7px; color: #a7979f; font-size: 8px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
kbd { display: inline-block; min-width: 23px; height: 22px; padding: 4px 5px; border: 1px solid #51444c; border-radius: 2px; box-shadow: 0 2px 0 #0b080a; background: #2b2127; color: #d3c8ce; text-align: center; font-size: 10px; letter-spacing: .4px; line-height: 12px; }
.key-group { display: flex; gap: 5px; align-items: center; }
.key-group > span { color: #61525c; }
.footer-aside { margin-left: auto; color: #71616b; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.mobile-controls { display: none; justify-content: space-between; gap: 20px; padding: 18px 0 4px; user-select: none; -webkit-user-select: none; }
.mobile-controls button { touch-action: none; border: 1px solid #59404e; background: #2e2029; color: var(--cream); border-radius: 6px; min-width: 44px; min-height: 44px; font-weight: 700; }
.mobile-controls button:active, .mobile-controls button.active { color: #17170e; background: var(--lime); }
.touch-direction { display: grid; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(2, 44px); gap: 4px; }
.touch-direction button { font-size: 21px; }
.touch-direction button:first-child { grid-column: 2; }
.touch-direction button:nth-child(2) { grid-column: 1; grid-row: 2; }
.touch-direction button:nth-child(3) { grid-column: 2; grid-row: 2; }
.touch-direction button:nth-child(4) { grid-column: 3; grid-row: 2; }
.touch-actions { display: grid; grid-template-columns: repeat(2, minmax(65px, 90px)); gap: 5px; }
.touch-actions button { font-size: 9px; letter-spacing: .7px; padding: 6px 10px; }
.touch-actions button span { display: block; margin-top: 4px; color: #a992a0; font-size: 8px; }
.touch-actions button:first-child { border-color: #829442; color: var(--lime); }
.touch-actions button:nth-child(2), .touch-actions button:nth-child(3) { color: #ff91c6; }
.arcade:fullscreen { width: 100vw; height: 100vh; max-width: none; padding: 12px 20px; display: flex; flex-direction: column; background: #141012; }
.arcade:fullscreen .masthead { min-height: 30px; margin-bottom: 10px; flex-shrink: 0; }
.arcade:fullscreen .brand, .arcade:fullscreen .masthead-note { display: none; }
.arcade:fullscreen .utility-controls { margin-left: auto; }
.arcade:fullscreen .cabinet { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.arcade:fullscreen .stage { flex: 1; min-height: 0; aspect-ratio: auto; }
.arcade:fullscreen canvas { width: 100%; height: 100%; object-fit: contain; }
.arcade:fullscreen .cabinet-label, .arcade:fullscreen .cabinet-bottom, .arcade:fullscreen .mobile-controls { flex-shrink: 0; }
.arcade:fullscreen .instruction-bar { padding-top: 10px; flex-shrink: 0; }

@media (min-width: 1600px) {
  .arcade { padding-top: 34px; }
  .masthead { margin-bottom: 28px; }
}
@media (max-width: 1100px) {
  .arcade { width: calc(100% - 40px); padding-top: 20px; }
  .masthead { gap: 18px; margin-bottom: 18px; }
  .masthead-note { display: none; }
  .utility-controls { margin-left: auto; }
  .instruction-bar { gap: 12px 18px; }
  .footer-aside { display: none; }
  .overlay { padding: 3.5% 5%; }
  .eyebrow { margin-bottom: 13px; letter-spacing: 1.4px; }
  .game-title { font-size: 10.1vw; }
  .premise { margin-top: 10px; }
  .intro-copy { margin-bottom: 14px; }
  .start-button, .overlay button { min-height: 39px; padding: 10px 15px; }
  .overlay-controls { margin-top: 13px; }
}
@media (pointer: coarse), (max-width: 640px) {
  .mobile-controls { display: flex; }
}
@media (max-width: 700px) {
  .arcade { width: calc(100% - 22px); padding: 16px 0; }
  .masthead { gap: 10px; min-height: 42px; margin-bottom: 16px; }
  .brand { gap: 10px; }
  .brand-mark { width: 34px; height: 36px; font-size: 22px; }
  h1 { font-size: 26px; }
  .brand p { font-size: 5px; letter-spacing: 1.4px; margin-top: 6px; }
  .utility-controls { gap: 5px; }
  .utility-button { min-height: 30px; padding: 0 8px; font-size: 7px; letter-spacing: .6px; }
  .utility-button span { display: none; }
  .cabinet { padding: 0 4px; }
  .cabinet-label { height: 22px; font-size: 6px; letter-spacing: 1px; }
  .cabinet-bottom { font-size: 6px; letter-spacing: .6px; min-height: 25px; padding: 4px; }
  .cabinet-id { display: none; }
  .overlay { padding: 4% 5%; }
  .eyebrow { font-size: 6px; letter-spacing: 1px; gap: 5px; margin-bottom: 10px; }
  .eyebrow > span { font-size: 8px; }
  .game-title { margin-bottom: 9px; font-size: 10.8vw; letter-spacing: -2px; text-shadow: 2px 2px 0 #ef62ad; }
  .game-title > span { margin-top: 5px; text-shadow: 2px 2px 0 #616b24; }
  .title-star { margin-left: 5px; }
  .premise { font-size: 12px; margin: 6px 0 11px; letter-spacing: -.2px; }
  .intro-copy { display: none; }
  .start-button, .overlay button { min-height: 31px; padding: 7px 10px; font-size: 7px; gap: 15px; letter-spacing: .6px; box-shadow: 3px 3px 0 #747d3d; }
  .start-button span { font-size: 15px; }
  .overlay-controls { margin-top: 10px; font-size: 5px; letter-spacing: .5px; }
  .overlay-controls span:first-child { display: none; }
  .instruction-bar { padding-top: 15px; gap: 11px 14px; }
  .control { font-size: 6px; letter-spacing: .5px; gap: 5px; }
  kbd { font-size: 8px; min-width: 19px; height: 19px; padding: 3px 4px; }
}
@media (max-width: 400px) {
  .brand-mark { display: none; }
  h1 { font-size: 22px; }
  .brand p { letter-spacing: .5px; }
  .utility-button { padding: 0 6px; font-size: 6px; }
  .eyebrow { font-size: 5px; margin-bottom: 8px; }
  .premise { font-size: 10px; margin-bottom: 9px; }
  .overlay-controls { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* The desktop cabinet always fits the client area, including its keyboard guide. */
.desktop-game, .desktop-game body { height: 100%; min-height: 0; overflow: hidden; }
.desktop-game .arcade {
  width: min(calc(100vw - 32px), calc((100dvh - 182px) * 16 / 9 + 16px), 1496px);
  height: 100dvh;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.desktop-game .masthead { height: 52px; min-height: 52px; margin: 0; flex-shrink: 0; }
.desktop-game .masthead-note { display: none; }
.desktop-game .utility-controls { margin-left: auto; }
.desktop-game .cabinet { padding: 0 7px; flex-shrink: 0; }
.desktop-game .cabinet-label { height: 24px; }
.desktop-game .cabinet-bottom { height: 28px; min-height: 28px; }
.desktop-game .cabinet-bottom > span:first-child { min-width: 0; }
.desktop-game #status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-game .stage { border: 0; outline: 1px solid #0a090a; container-type: inline-size; }
.desktop-game .instruction-bar { height: 32px; padding: 0 3px; gap: 12px 16px; flex-wrap: nowrap; flex-shrink: 0; }
.desktop-game .footer-aside, .desktop-game .mobile-controls { display: none; }
.desktop-game .overlay { padding: 3.5% 5%; }
.desktop-game .eyebrow { font-size: clamp(7px, .86cqw, 11px); margin-bottom: 1.5cqw; }
.desktop-game .game-title { font-size: 11.3cqw; margin-bottom: 1.25cqw; letter-spacing: -.39cqw; }
.desktop-game .game-title > span { margin-top: .63cqw; }
.desktop-game .premise { font-size: 1.95cqw; margin: 1.17cqw 0 .7cqw; }
.desktop-game .intro-copy { font-size: 1.02cqw; margin-bottom: 1.8cqw; }
.desktop-game .overlay button { font-size: 1.02cqw; min-height: 3.75cqw; padding: 1.09cqw 1.72cqw; }
.desktop-game .overlay-controls { font-size: .7cqw; margin-top: 1.4cqw; }
.desktop-game .overlay h2:not(.game-title) { font-size: 6.88cqw; margin-bottom: 1.4cqw; }
.desktop-game .overlay p:not([class]) { font-size: 1.56cqw; }

.route-picker { width: 42%; max-width: 430px; margin: 0 0 15px; }
.route-picker label { display: block; margin-bottom: 7px; color: #ec9ac8; font-size: 8px; font-weight: 800; letter-spacing: 1.5px; }
.route-picker select { width: 100%; border: 1px solid #846478; border-radius: 0; padding: 10px 24px 10px 10px; background: #281e29; color: #f0eddf; font: 700 10px Arial, sans-serif; cursor: pointer; }
.route-picker select:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.overlay .secondary-button { margin-top: 14px; background: #29202c; border-color: #8c687e; color: #ebbbd5; box-shadow: 3px 3px 0 #493043; min-height: 32px; padding: 9px 14px; font-size: 9px; }
.touch-actions button[data-key="KeyE"], .touch-actions button[data-key="KeyF"] { min-height: 38px; color: #ffd6a3; border-color: #a47c59; }
.desktop-game .game-title { font-size: 10cqw; }
.desktop-game .premise { margin-top: .8cqw; }
.desktop-game .intro-copy { margin-bottom: 1cqw; }
.desktop-game .route-picker { margin-bottom: 1.2cqw; }
.desktop-game .route-picker label { font-size: .65cqw; margin-bottom: .45cqw; }
.desktop-game .route-picker select { font-size: .82cqw; padding: .75cqw 20px .75cqw .75cqw; }
.desktop-game .overlay .secondary-button { margin-top: 1.1cqw; padding: .7cqw 1.1cqw; min-height: 2.5cqw; font-size: .8cqw; }
@media (max-width: 1100px) {
  .route-picker { margin-bottom: 10px; width: 47%; }
  .route-picker label { font-size: 6px; margin-bottom: 4px; letter-spacing: .8px; }
  .route-picker select { font-size: 8px; padding: 7px 18px 7px 7px; }
}
@media (max-width: 700px) {
  .route-picker { width: 50%; margin-bottom: 7px; }
  .route-picker label { font-size: 5px; }
  .route-picker select { font-size: 6px; padding: 5px; }
  .overlay .game-title { font-size: 9vw; }
  .overlay .premise { font-size: 9px; margin: 3px 0 6px; }
  .overlay .overlay-controls { display: none; }
  .overlay .secondary-button { margin-top: 6px; min-height: 24px; padding: 5px 8px; font-size: 7px; }
}

.overlay .text-button, .desktop-game .overlay .text-button {
  display: inline; min-height: 0; padding: 0; border: 0; box-shadow: none;
  background: transparent; color: #e2a9ce; font-size: .76cqw; letter-spacing: .08cqw;
}
.overlay .text-button:hover { color: #f5e0ad; transform: none; text-decoration: underline; }
.overlay.credits-overlay, .desktop-game .overlay.credits-overlay {
  padding: 3% 5% 2%; align-items: center; justify-content: flex-start;
  background: linear-gradient(90deg,#211329bd,#170f23f2 25%,#170f23f2 75%,#211329bd);
  text-align: center;
}
.credits-overlay > * { max-width: 100%; width: 100%; }
.credits-heading { flex-shrink: 0; }
.credits-heading .eyebrow { justify-content: center; margin: 0 0 .6cqw; font-size: .8cqw; }
.overlay .credits-heading h2, .desktop-game .overlay .credits-heading h2 { margin: 0 0 .5cqw; color: #f7e7b5; font-size: 4.2cqw; letter-spacing: -.13cqw; }
.credits-subtitle { color: #de9bc7; font-size: .8cqw; letter-spacing: .18cqw; margin: 0 0 1.4cqw; }
.credits-window { flex: 1; min-height: 0; overflow: hidden; position: relative; border-top: 1px solid #9a698255; border-bottom: 1px solid #9a698255; mask-image: linear-gradient(transparent,#000 9%,#000 91%,transparent); }
.credits-roll { position: absolute; top: 0; left: 0; width: 100%; will-change: transform; }
.credit-card { padding: 2.1cqw 3cqw 3cqw; }
.credit-role { color: #ee9fce; font-size: .95cqw; font-weight: 800; letter-spacing: .18cqw; margin: 0 0 1cqw; }
.credit-card h3 { color: #fff0db; font-size: 3.35cqw; line-height: 1.13; margin: 0 0 1cqw; }
.credit-note { color: #c9b8d0; font-size: 1.2cqw; line-height: 1.6; margin: 0; }
.credit-aside { color: #bca2bd; font-size: 1cqw; margin-top: 1cqw; }
.special-credit { margin: 2cqw 8cqw; padding: 3cqw 1cqw; border: 1px solid #c8a36888; background: #65482a30; }
.special-credit h3 { color: #f5d389; font-size: 4cqw; }
.special-credit .credit-role { color: #e2ee95; }
.credits-controls { flex-shrink: 0; padding-top: 1.2cqw; display: flex; align-items: center; justify-content: center; gap: 1.2cqw; flex-wrap: wrap; }
#credits-progress { color: #bba5bd; font-size: .75cqw; letter-spacing: .05cqw; width: 18cqw; }
.credits-controls small { color: #927e9d; font-size: .7cqw; flex-basis: 100%; }
.overlay .credits-controls button, .desktop-game .overlay .credits-controls button { padding: .6cqw 1.2cqw; min-height: 2.8cqw; font-size: .8cqw; box-shadow: 2px 2px 0 #635a37; }
.overlay .credits-controls button[aria-pressed="true"] { background: #f2b3d4; }

.phone-hint, .pad-label, .mobile-stats { display: none; }
.touch-layout[data-game-screen="playing"] .mobile-stats { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 10px; padding: 6px 8px; font-size: 12px; line-height: 1.3; background: #251b26; color: #ecc7db; }
.touch-layout .mobile-stats strong { color: #e3ed91; }
.touch-layout[data-game-screen="playing"] .stage canvas { object-fit: contain; }
.touch-layout:not([data-game-screen="playing"]) .cabinet-bottom, .touch-layout[data-game-screen="paused"] .overlay-controls { display: none; }
/* Phones keep their menus readable and their game separate from the thumbs. */
.touch-layout body { min-width: 320px; overscroll-behavior: none; }
.touch-layout .arcade { width: 100%; margin: 0; padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
.touch-layout .masthead { margin: 0 0 10px; min-height: 44px; gap: 8px; flex-wrap: wrap; }
.touch-layout .brand-mark, .touch-layout .brand p, .touch-layout .masthead-note, .touch-layout .instruction-bar { display: none; }
.touch-layout h1 { font-size: 25px; letter-spacing: -1px; }
.touch-layout .utility-controls { gap: 5px; margin-left: auto; flex-wrap: wrap; }
.touch-layout .utility-button { min-width: 44px; min-height: 44px; padding: 7px; font-size: 11px; letter-spacing: 0; }
.touch-layout .utility-button span { display: none; }
.touch-layout .cabinet { padding: 0; border: 0; }
.touch-layout .cabinet-label, .touch-layout .cabinet-id { display: none; }
.touch-layout .cabinet-bottom { font-size: 12px; min-height: 40px; letter-spacing: 0; line-height: 1.3; padding: 8px; }
.touch-layout #status { letter-spacing: 0; }
.touch-layout .stage { border: 0; }
.touch-layout:not([data-game-screen="playing"]) .stage { min-height: 530px; aspect-ratio: auto; }
.touch-layout:not([data-game-screen="playing"]) .stage canvas { position: absolute; inset: 0; object-fit: cover; }
.touch-layout .overlay { position: relative; min-height: inherit; height: 100%; padding: 24px 20px; background: linear-gradient(110deg,#17121bf5,#18111bdd 60%,#1a131a88); }
.touch-layout .overlay > * { max-width: 100%; flex-shrink: 0; }
.touch-layout .eyebrow { font-size: 12px; letter-spacing: 1px; margin-bottom: 18px; }
.touch-layout .eyebrow > span { font-size: 14px; }
.touch-layout .overlay .game-title { font-size: 76px; letter-spacing: -3px; margin: 0 0 18px; }
.touch-layout .overlay .premise { font-size: 20px; line-height: 1.2; margin: 10px 0; }
.touch-layout .intro-copy { display: block; font-size: 14px; line-height: 1.45; margin-bottom: 16px; }
.touch-layout .route-picker { width: 100%; max-width: 440px; margin-bottom: 18px; }
.touch-layout .route-picker label { font-size: 12px; letter-spacing: .7px; margin-bottom: 8px; }
.touch-layout .route-picker select { min-height: 44px; font-size: 16px; padding: 9px 24px 9px 9px; }
.touch-layout .overlay button, .touch-layout .overlay .secondary-button { min-height: 44px; font-size: 14px; padding: 11px 14px; gap: 12px; letter-spacing: .3px; }
.touch-layout .overlay .overlay-controls { display: flex; margin-top: 12px; font-size: 12px; }
.touch-layout .overlay .text-button { min-height: 44px; font-size: 12px; letter-spacing: .4px; padding: 8px 0; text-align: left; }
.touch-layout .overlay h2:not(.game-title) { font-size: 42px; margin-bottom: 14px; }
.touch-layout .overlay p:not([class]) { font-size: 16px; line-height: 1.45; }
.touch-layout .mobile-controls { display: none; }
.touch-layout[data-game-screen="playing"] .mobile-controls { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 0 0; }
.touch-layout .touch-direction { position: relative; display: grid; width: 132px; height: 132px; grid-template: repeat(3,44px) / repeat(3,44px); gap: 0; border-radius: 50%; background: #241b24; touch-action: none; }
.touch-layout .touch-direction button { min-width: 44px; min-height: 44px; font-size: 24px; border-radius: 12px; padding: 0; }
.touch-layout .touch-direction button:nth-child(1) { grid-area: 1 / 2; }
.touch-layout .touch-direction button:nth-child(2) { grid-area: 2 / 1; }
.touch-layout .touch-direction button:nth-child(3) { grid-area: 3 / 2; }
.touch-layout .touch-direction button:nth-child(4) { grid-area: 2 / 3; }
.touch-layout .pad-label { display: grid; place-items: center; grid-area: 2 / 2; color: #baa4b3; font-size: 11px; pointer-events: none; }
.touch-layout .touch-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.touch-layout .touch-actions button { min-width: 0; min-height: 54px; padding: 7px 3px; font-size: 12px; letter-spacing: .3px; touch-action: none; }
.touch-layout .touch-actions button span { font-size: 9px; letter-spacing: 0; margin-top: 4px; }
.touch-layout .mobile-controls button.active, .touch-layout .mobile-controls button.active span { color: #17170e; background: var(--lime); }
.touch-layout .phone-hint { display: block; font-size: 13px; line-height: 1.4; color: #bca9b7; text-align: center; margin: 12px 4px 0; }
.touch-layout .overlay.credits-overlay { height: 570px; min-height: 570px; padding: 16px 12px; }
.touch-layout .credits-overlay > * { flex-shrink: 1; }
.touch-layout .credits-heading, .touch-layout .credits-controls { flex-shrink: 0; }
.touch-layout .credits-heading .eyebrow { font-size: 12px; margin: 0 0 8px; }
.touch-layout .overlay .credits-heading h2 { font-size: 28px; margin-bottom: 8px; }
.touch-layout .credits-subtitle { font-size: 12px; letter-spacing: 1px; margin-bottom: 12px; }
.touch-layout .credit-card { padding: 20px 12px 28px; }
.touch-layout .credit-role { font-size: 13px; letter-spacing: 1px; margin-bottom: 10px; }
.touch-layout .credit-card h3 { font-size: 28px; margin-bottom: 10px; }
.touch-layout .credit-note { font-size: 14px; line-height: 1.5; }
.touch-layout .credit-aside { font-size: 13px; margin-top: 10px; }
.touch-layout .special-credit { margin: 20px 8px; }
.touch-layout .credits-controls { gap: 8px; padding-top: 12px; }
.touch-layout #credits-progress { width: 100%; font-size: 12px; }
.touch-layout .credits-controls small { display: none; }
.touch-layout .overlay .credits-controls button { font-size: 12px; min-height: 44px; padding: 8px; }
.touch-layout .arcade:fullscreen { overflow: auto; height: 100dvh; display: block; }
@media (max-width: 380px) {
  .touch-layout .brand { display: none; }
  .touch-layout[data-game-screen="title"] .stage { min-height: 440px; }
  .touch-layout[data-game-screen="title"] .overlay { padding: 18px; }
  .touch-layout[data-game-screen="title"] .game-title { font-size: 64px; }
  .touch-layout[data-game-screen="title"] .intro-copy { display: none; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .touch-layout .arcade { padding-top: max(4px,env(safe-area-inset-top)); padding-bottom: max(4px,env(safe-area-inset-bottom)); }
  .touch-layout .masthead { margin-bottom: 4px; }
  .touch-layout:not([data-game-screen="playing"]) .stage { min-height: 280px; }
  .touch-layout:not([data-game-screen="playing"]) .overlay { min-height: 280px; padding: 16px 24px; }
  .touch-layout[data-game-screen="title"] .overlay { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 8px 24px; }
  .touch-layout[data-game-screen="title"] .game-title { grid-area: 1 / 1 / 4 / 2; font-size: 68px; }
  .touch-layout[data-game-screen="title"] .eyebrow, .touch-layout[data-game-screen="title"] .intro-copy { display: none; }
  .touch-layout[data-game-screen="title"] .premise { grid-column: 1; font-size: 16px; margin: 0; }
  .touch-layout[data-game-screen="title"] .route-picker { grid-area: 1 / 2; margin: 0; }
  .touch-layout[data-game-screen="title"] #start-button { grid-area: 2 / 2; }
  .touch-layout[data-game-screen="title"] .overlay-controls { grid-area: 3 / 2; margin: 0; }
  .touch-layout[data-game-screen="playing"] .arcade { height: 100dvh; display: grid; grid-template-columns: 132px minmax(0,1fr) 152px; grid-template-rows: 44px minmax(0,1fr); gap: 4px 8px; align-items: center; }
  .touch-layout[data-game-screen="playing"] .masthead { grid-area: 1 / 1 / 2 / 4; margin: 0; }
  .touch-layout[data-game-screen="playing"] .cabinet { grid-area: 2 / 2; width: 100%; max-height: 100%; }
  .touch-layout[data-game-screen="playing"] .stage { max-height: calc(100dvh - 90px); }
  .touch-layout[data-game-screen="playing"] .mobile-controls { display: contents; }
  .touch-layout[data-game-screen="playing"] .touch-direction { grid-area: 2 / 1; }
  .touch-layout[data-game-screen="playing"] .touch-actions { grid-area: 2 / 3; }
  .touch-layout[data-game-screen="playing"] .cabinet-bottom, .touch-layout .phone-hint { display: none; }
  .touch-layout .overlay.credits-overlay { height: calc(100dvh - 56px); min-height: 280px; }
  .touch-layout .credits-heading .eyebrow, .touch-layout .credits-subtitle { display: none; }
  .touch-layout .overlay .credits-heading h2 { font-size: 22px; }
  .touch-layout[data-game-screen="paused"] .overlay { min-height: 280px; padding: 12px 20px; }
  .touch-layout[data-game-screen="paused"] .eyebrow { margin-bottom: 8px; }
  .touch-layout[data-game-screen="paused"] .overlay h2 { font-size: 32px; margin-bottom: 6px; }
  .touch-layout[data-game-screen="paused"] .overlay p:not([class]) { font-size: 14px; margin: 8px 0; }
}
