:root {
  color-scheme: dark;
  --ink: #101a1b;
  --panel: #132629;
  --paper: #eef1e5;
  --muted: #a6b9b6;
  --teal: #81cabd;
  --amber: #efb650;
  --border: #66898535;
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #101b1d; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 50% -15%, #36595455, transparent 65%),
    linear-gradient(125deg, #15292c, #10191a 60%, #182425);
  display: grid;
  place-items: center;
  padding: 26px 24px;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
button:disabled { opacity: .45; cursor: wait; }
button svg { pointer-events: none; }
.game-shell { width: min(1120px, 100%); }
.game-toolbar { min-height: 60px; display: flex; align-items: center; gap: 26px; padding: 0 3px 14px; }
.wordmark { color: var(--paper); text-decoration: none; display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.wordmark > span { font: 900 31px/.8 "Barlow Condensed", Impact, sans-serif; letter-spacing: -.5px; }
.wordmark small { font: 600 10px/1 "Barlow", sans-serif; letter-spacing: 2.1px; color: var(--muted); }
.mission-tag { color: #a6b8b3; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; display: flex; align-items: center; gap: 9px; }
.signal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; box-shadow: 0 0 9px #81cabd55; display: inline-block; }
.tag-divider { color: #55716b; padding: 0 3px; }
.controller-status { margin-left: auto; max-width: 190px; overflow: hidden; text-overflow: ellipsis; color: #73988a; font-size: 8px; letter-spacing: .8px; font-weight: 600; white-space: nowrap; }
.controller-status.connected, .controller-status[data-connected="true"] { color: var(--teal); }
.toolbar-actions { display: flex; gap: 7px; }
.icon-button { height: 34px; width: 36px; display: grid; place-items: center; padding: 8px; background: #263b3b70; border: 1px solid #79958a24; border-radius: 4px; color: #c2d2ca; transition: background .15s, color .15s; }
.icon-button:hover { background: #45665c70; color: var(--paper); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#mute { font-size: 8px; font-weight: 600; line-height: 1.1; padding: 4px; }

.stage { position: relative; width: 100%; aspect-ratio: 16/9; isolation: isolate; overflow: hidden; background: #132329; border: 1px solid #78958c4d; border-radius: 8px; box-shadow: 0 26px 80px #0007, 0 1px 0 #b1c8b91c inset; }
/* The developer crop target keeps the same aperture across title and menus. */
body[data-testing="true"] .stage,
body[data-testing="true"] .stage:has(#menu:not([hidden])) { aspect-ratio: 16/9; min-height: 0; }
body[data-testing="true"] .game-shell:fullscreen .stage { flex: 0 0 auto; width: min(100%, calc((100vh - 70px) * 16 / 9)); max-height: none; margin-inline: auto; }
.testing-recorder { color: #ffc6bf; border-color: #b4534970; }
#game { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; background: #15272b; outline-offset: -4px; }
.hud { position: absolute; z-index: 2; inset: 0 0 auto; padding: 15px 18px 19px; display: flex; gap: 16px; pointer-events: none; background: linear-gradient(#102528ed, #122b29b8 67%, #11272800); }
.survivor-card { width: 19%; min-width: 118px; }
.survivor-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.survivor-heading strong { font: 800 17px/1 "Barlow Condensed", Impact, sans-serif; letter-spacing: 1px; }
.role-label { font-size: 8px; line-height: 1.2; font-weight: 700; letter-spacing: .8px; color: #c6d5cb; white-space: nowrap; }
.player-card .role-label { color: var(--amber); }
.health-row { display: flex; align-items: center; gap: 6px; }
.health-track { position: relative; height: 6px; background: #a8baaa26; border-radius: 1px; overflow: hidden; flex: 1; }
.health-fill { display: block; height: 100%; width: 100%; transition: width .18s ease; }
.player-fill { background: var(--amber); box-shadow: 0 0 8px #efb65030; }
.partner-fill { background: var(--teal); }
.health-number { font-size: 9px; font-weight: 700; min-width: 20px; text-align: right; color: #e3e7d4; font-variant-numeric: tabular-nums; }
.objective-card { flex: 1; min-width: 130px; padding-left: 15px; border-left: 1px solid #d0dcbd29; }
.mini-label { font-size: 9px; font-weight: 700; letter-spacing: 1.25px; line-height: 1.2; color: #bdcbbd; }
.objective-heading { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.route-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }
#objective { display: block; font-size: 12px; line-height: 1.25; font-weight: 600; color: #f0efd8; }
.route-track { height: 2px; background: #8ba89a4b; width: 100%; margin-top: 7px; }
.route-fill { height: 100%; width: 0%; display: block; background: var(--amber); transition: width .3s linear; }
.supplies-card { min-width: 90px; text-align: right; }
.supplies-card > .mini-label { display: flex; gap: 8px; justify-content: flex-end; }
#score { font-size: 13px; color: var(--paper); letter-spacing: 1px; line-height: .8; font-variant-numeric: tabular-nums; }
.supplies-row { display: flex; gap: 14px; align-items: center; justify-content: flex-end; margin-top: 8px; }
.supplies-row > span { display: flex; gap: 5px; align-items: center; font-size: 11px; color: #d2e0cc; }
.supplies-row svg { width: 15px; height: 15px; stroke: #c0d3bb; stroke-width: 1.4; fill: none; }
.checkpoint-mark { color: #c8b17b; font-size: 9px; }
#checkpoint-label { font-size: 8px; letter-spacing: .35px; }
.boss-bar { position: absolute; z-index: 2; top: 78px; width: 32%; left: 34%; text-align: center; pointer-events: none; }
.boss-bar > .mini-label { color: #efb8a1; }
.boss-bar .health-track { height: 5px; margin-top: 5px; background: #131c20d9; }
.boss-fill { background: #d9715d; }
.survivor-switch { position: absolute; z-index: 3; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #b49a5c70; border-radius: 4px; background: #10262be8; color: #ead7ad; font-size: 10px; font-weight: 600; }
.survivor-switch:hover { border-color: var(--amber); background: #24413df2; }
.survivor-switch kbd { color: var(--amber); border-color: #ad956457; }

.overlay { position: absolute; z-index: 5; inset: 0; }
.menu-overlay { padding: 4.5% 5.5%; display: flex; flex-direction: column; justify-content: center; overflow: auto; background: #1d3335; }
.cover-art { position: absolute; z-index: -3; inset: 0; background: #1a2a2b url("assets/cover-red-dress-9mm.png") center / cover no-repeat; }
.cover-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, #0c2025ed 0%, #12262bd1 28%, #16292e9c 50%, #15272d12 76%), linear-gradient(0deg, #101c21db, transparent 35%, #0c1a1e17); }
.menu-content { width: min(570px, 65%); position: relative; padding-bottom: 16px; flex-shrink: 0; }
.chapter-label { display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 700; letter-spacing: 2px; color: #b9d0c6; }
.chapter-label > span { height: 1px; width: 24px; background: var(--amber); }
h1 { margin: 12px 0 13px; color: #fff0d4; font: 900 clamp(52px, 7.8vw, 106px)/.84 "Barlow Condensed", Impact, sans-serif; letter-spacing: -.5px; text-shadow: 0 2px 0 #0a1b1c45; }
h1 > span { display: block; font-size: .277em; line-height: 1.2; letter-spacing: .22em; font-weight: 700; color: var(--amber); margin-top: 10px; }
.story { color: #d0dcd1; font-size: clamp(12px, 1.25vw, 15px); line-height: 1.5; margin: 0 0 24px; text-shadow: 0 1px 3px #0007; }
.character-select { width: 100%; }
.selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.selection-heading .mini-label { color: #d1dbce; font-size: 8px; letter-spacing: 1.65px; }
.switch-hint { font-size: 9px; color: #9eb5aa; display: flex; align-items: center; gap: 6px; }
.switch-hint kbd { font-size: 9px; min-width: 17px; padding: 1px 3px; }
.character-options { display: flex; gap: 8px; }
.character-button { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; text-align: left; border: 1px solid #b6cdc22e; color: var(--paper); background: #0e2226cc; border-radius: 4px; padding: 11px 9px; transition: border-color .15s, background .15s, transform .15s; }
.character-button:hover { background: #25413acc; border-color: #80a79b; transform: translateY(-1px); }
.character-button[aria-pressed="true"] { border-color: var(--amber); background: #b37b291a; box-shadow: 0 0 0 1px #efb6500a inset; }
.character-index { font: 700 21px/1 "Barlow Condensed", sans-serif; color: #97a999; padding-right: 4px; border-right: 1px solid #b7bdaa2a; }
.character-button[aria-pressed="true"] .character-index { color: var(--amber); }
.character-copy { display: flex; flex-direction: column; gap: 4px; }
.character-copy strong { font: 800 16px/1 "Barlow Condensed", Impact, sans-serif; letter-spacing: 1px; }
.character-copy small { color: #b0c1b6; font-size: 9px; line-height: 1.25; }
.selection-check { margin-left: auto; color: var(--amber); opacity: 0; font-size: 12px; }
.character-button[aria-pressed="true"] .selection-check { opacity: 1; }
.start-row { display: flex; gap: 13px; align-items: center; margin-top: 16px; }
.primary-button { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 23px; border: 1px solid #ffd79561; border-radius: 4px; background: var(--amber); color: #182a25; padding: 12px 18px; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; box-shadow: 0 4px 17px #03090a20; transition: background .15s, transform .15s; }
.primary-button:hover { background: #ffca67; transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.button-arrow { font-size: 19px; line-height: .7; font-weight: 500; letter-spacing: 0; }
.selected-note { color: #a7bfb2; font-size: 10px; }
.selected-note strong { color: #e7e4cb; font-weight: 600; }
.loading-status { color: #a0b9b0; font-size: 9px; letter-spacing: .45px; min-height: 12px; margin: 8px 0 0; }
.mission-promise { display: flex; align-items: center; gap: 8px; color: #c5cbb4; font-size: 9px; margin-top: 9px; line-height: 1.4; }
.promise-line { width: 17px; height: 1px; background: #b9995c; flex: 0 0 auto; }
.menu-edition { position: absolute; bottom: 17px; left: 5.5%; right: 5.5%; display: flex; justify-content: space-between; gap: 10px; color: #adc0b591; font-size: 7px; font-weight: 600; letter-spacing: 1.5px; }

.dialog-overlay { display: grid; place-items: safe center; padding: 24px; background: #0d2026d9; backdrop-filter: blur(7px); overflow: auto; }
.dialog-card { width: min(400px, 100%); border: 1px solid #acc8b532; border-radius: 6px; padding: 32px; background: linear-gradient(140deg, #24403de3, #142a2be8); box-shadow: 0 20px 55px #0004; text-align: left; }
.dialog-card .chapter-label { font-size: 8px; color: var(--amber); letter-spacing: 1.8px; }
h2 { font: 800 43px/.98 "Barlow Condensed", Impact, sans-serif; letter-spacing: -.4px; margin: 15px 0 12px; color: #f4ead1; }
.dialog-card p { font-size: 13px; line-height: 1.5; color: #b5c9bf; margin: 0 0 24px; }
.dialog-card .primary-button { width: 100%; }
.secondary-button { width: 100%; background: transparent; border: 1px solid #94b6a42c; border-radius: 4px; color: #c8d6c8; padding: 12px; margin-top: 9px; font-size: 11px; transition: background .15s; }
.secondary-button:hover { background: #688f791a; }
.dialog-footnote { display: flex; justify-content: center; align-items: center; gap: 5px; color: #839f93; font-size: 9px; margin-top: 17px; }
.dialog-footnote kbd { color: #a7b9aa; font-size: 8px; }
.end-stats { color: #ead7ad; font-size: 12px; line-height: 1.8; padding: 14px 0; margin: 0 0 16px; border-block: 1px solid #aac4a927; font-variant-numeric: tabular-nums; }
.end-stats:empty { display: none; }
.controls-card { width: min(560px, 100%); padding: 24px 28px; }
.help-heading { display: flex; align-items: center; justify-content: space-between; }
.close-button { background: transparent; color: #becfc1; border: 0; padding: 0 0 0 10px; font-size: 25px; line-height: 1; }
.close-button:hover { color: var(--amber); }
.controls-card h2 { font-size: 35px; margin: 11px 0 11px; }
.controls-card .controller-instructions { margin-bottom: 14px; font-size: 11px; line-height: 1.45; }
.controller-defaults { padding: 10px 12px; border: 1px solid #b1c8ac28; border-radius: 4px; background: #1026286b; }
.controller-defaults > .mini-label { font-size: 7px; color: var(--amber); letter-spacing: 1.2px; }
.controller-defaults p { font-size: 9px; margin: 6px 0 0; line-height: 2; color: #b8c9b9; }
.controller-defaults p > span, .keyboard-help p > span { margin: 0 3px; color: #638475; }
.controller-defaults kbd { font-size: 8px; min-width: 15px; padding: 2px 3px; }
.controller-bindings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 13px 0; }
.controller-bindings button { padding: 9px 10px; min-height: 33px; background: #3551477a; border: 1px solid #82a98c3b; border-radius: 3px; color: #e1e8d6; font-size: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.controller-bindings button:hover { border-color: #b8cfa56b; background: #4d6a597a; }
.controller-bindings button.active, .controller-bindings button.remapping, .controller-bindings button[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); background: #a38a4020; }
.controller-bindings button strong, .controller-bindings button kbd { color: #efd494; }
.binding-placeholder { grid-column: 1 / -1; padding: 12px 0; color: #83a694; font-size: 10px; text-align: center; }
.reset-controller { margin-top: 0; font-size: 10px; padding: 9px; }
.keyboard-help { margin-top: 13px; color: #93b39e; font-size: 9px; }
.keyboard-help summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.keyboard-help summary::before { content: "+"; color: var(--amber); font-size: 12px; }
.keyboard-help[open] summary::before { content: "−"; }
.keyboard-help p { margin: 9px 0 0; font-size: 9px; line-height: 2; }
.keyboard-help kbd { font-size: 8px; min-width: 15px; padding: 2px 3px; }

.controls-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 19px; padding: 16px 0 0; color: #a9bfb5; font-size: 10px; }
.controls-strip > span { display: flex; align-items: center; gap: 5px; }
kbd { display: inline-block; min-width: 19px; background: #233a37; border: 1px solid #57756a6b; border-bottom-color: #77917d6b; border-radius: 3px; padding: 3px 4px; color: #d4dfd0; font: 600 9px/1 "Barlow", "Segoe UI", sans-serif; text-align: center; }
.key-or { color: #56776a; padding: 0 1px; }
.switch-control { color: #d1c295; }
.switch-control kbd { border-color: #aa935d5c; color: #e6cd94; }
.game-note { margin: 15px 0 0; display: flex; justify-content: center; align-items: center; gap: 8px; color: #698a7d; font-size: 10px; letter-spacing: .2px; }
.game-note .signal-dot { width: 3px; height: 3px; background: #76957f; box-shadow: none; }
.touch-controls { display: none; justify-content: space-between; gap: 10px; padding-top: 11px; user-select: none; -webkit-user-select: none; }
.touch-movement, .touch-actions { display: flex; gap: 6px; }
.touch-button { touch-action: none; min-width: 48px; min-height: 43px; padding: 8px 10px; border: 1px solid #64857967; background: #23403b; border-radius: 5px; color: #d7e6d8; font-size: 10px; font-weight: 700; }
.touch-movement .touch-button { font-size: 23px; line-height: 1; }
.touch-fire { border-color: #a385476e; background: #755c2f; color: #ffe0a1; }
.touch-switch { color: var(--teal); }
.touch-button:active { background: #517768; }

.stage:fullscreen { border: 0; border-radius: 0; width: 100vw; height: 100vh; aspect-ratio: auto; }
.stage:fullscreen #game { object-fit: contain; }
.game-shell:fullscreen { display: flex; flex-direction: column; justify-content: center; width: 100vw; height: 100vh; background: #0d1d20; padding: 8px; }
.game-shell:fullscreen .stage { max-height: calc(100vh - 95px); flex: 1; }
.game-shell:fullscreen .game-toolbar { min-height: 35px; padding-bottom: 7px; }
.game-shell:fullscreen .controls-strip, .game-shell:fullscreen .game-note { display: none; }

@media (max-width: 980px) {
  body { padding: 20px 16px; }
  .game-toolbar { gap: 20px; }
  .mission-tag { font-size: 8px; letter-spacing: .8px; }
  .controller-status { font-size: 7px; letter-spacing: .4px; }
  .menu-content { width: 64%; }
  .menu-overlay { padding: 4% 4.5%; }
  .menu-edition { left: 4.5%; right: 4.5%; }
  h1 { margin-top: 10px; font-size: clamp(52px, 8.5vw, 90px); }
  .story { margin-bottom: 18px; }
  .hud { gap: 12px; padding: 12px 13px 17px; }
  .objective-card { padding-left: 12px; }
  .survivor-card { width: 20%; }
  .character-copy small { font-size: 8px; }
  .character-button { gap: 6px; padding: 10px 8px; }
  .start-row { margin-top: 13px; }
  .controls-strip { gap: 10px 14px; font-size: 9px; }
}

@media (max-width: 760px) {
  body { padding: 15px 10px; }
  .mission-tag { display: none; }
  .game-toolbar { min-height: 48px; padding-bottom: 11px; }
  .wordmark > span { font-size: 28px; }
  .wordmark small { font-size: 8px; letter-spacing: 1.5px; }
  .icon-button { height: 31px; width: 33px; }
  .controller-status { font-size: 6px; letter-spacing: .3px; }
  .stage:has(#menu:not([hidden])) { aspect-ratio: auto; min-height: 500px; }
  .stage:has(#menu:not([hidden])) #game { position: absolute; inset: 0; }
  .menu-overlay { padding: 27px 28px 40px; justify-content: safe flex-end; }
  .menu-content { width: min(480px, 90%); padding-bottom: 0; }
  .cover-art { background-position: 58% center; }
  .cover-shade { background: linear-gradient(90deg, #0d2228c9, #0f242876 65%, #0e212b21), linear-gradient(0deg, #112329f5, #13272ba1 55%, #18282b12); }
  h1 { font-size: 73px; margin: 12px 0 14px; }
  .story { font-size: 13px; margin-bottom: 20px; }
  .character-copy small { font-size: 9px; }
  .chapter-label { font-size: 8px; }
  .mission-promise { font-size: 9px; }
  .menu-edition { bottom: 14px; left: 28px; right: 28px; font-size: 6px; letter-spacing: 1px; }
  .hud { padding: 8px 10px 14px; gap: 9px; }
  .survivor-card { min-width: 0; width: 24%; }
  .survivor-heading strong { font-size: 14px; }
  .role-label { font-size: 6px; letter-spacing: .3px; }
  .health-number { font-size: 8px; min-width: 15px; }
  .health-track { height: 4px; }
  .objective-card { min-width: 0; padding-left: 9px; }
  .objective-card .mini-label { font-size: 6px; letter-spacing: .65px; }
  #objective { font-size: 9px; }
  .supplies-card { min-width: 62px; }
  .supplies-card .mini-label { font-size: 7px; gap: 5px; letter-spacing: .5px; }
  #score { font-size: 10px; }
  .supplies-row { gap: 9px; margin-top: 6px; }
  .supplies-row > span { font-size: 9px; }
  .supplies-row svg { width: 12px; height: 12px; }
  .route-track { margin-top: 5px; }
  .boss-bar { top: 57px; width: 40%; left: 30%; }
  .boss-bar .mini-label { font-size: 7px; }
  .dialog-card { padding: 24px; }
  .controls-card { padding: 20px 24px; }
  h2 { font-size: 35px; }
  .dialog-card p { font-size: 11px; margin-bottom: 17px; }
  .dialog-card .primary-button { min-height: 39px; font-size: 10px; }
  .dialog-footnote { display: none; }
  .game-note { font-size: 9px; margin-top: 12px; }
}

@media (max-width: 480px) {
  .stage { border-radius: 5px; }
  .wordmark { gap: 6px; }
  .wordmark small { font-size: 6px; letter-spacing: 1px; }
  .controller-status { max-width: 64px; font-size: 5px; white-space: normal; line-height: 1.5; text-align: right; }
  .toolbar-actions { gap: 4px; }
  .icon-button { width: 28px; height: 29px; padding: 6px; }
  .stage:has(#menu:not([hidden])) { min-height: 540px; }
  .menu-overlay { padding: 24px 20px 41px; }
  .menu-content { width: 100%; }
  .cover-art { background-position: 62% center; }
  .cover-shade { background: linear-gradient(0deg, #10262cf9 0%, #10262ad9 52%, #11262b2c 100%); }
  .chapter-label { font-size: 7px; letter-spacing: 1.5px; }
  h1 { font-size: 75px; }
  h1 > span { font-size: .26em; }
  .story { margin-bottom: 20px; font-size: 12px; }
  .selection-heading .mini-label { font-size: 7px; letter-spacing: 1px; }
  .switch-hint { font-size: 8px; }
  .character-options { gap: 7px; }
  .character-button { padding: 12px 9px; }
  .character-index { display: none; }
  .character-copy strong { font-size: 17px; }
  .character-copy small { font-size: 8px; }
  .primary-button { min-height: 45px; font-size: 10px; padding: 12px 14px; }
  .start-row { gap: 10px; margin-top: 15px; }
  .selected-note { font-size: 9px; }
  .menu-edition { left: 20px; right: 20px; font-size: 6px; }
  .hud { gap: 7px; padding: 7px 7px 11px; }
  .survivor-card { width: 26%; }
  .survivor-heading strong { font-size: 12px; letter-spacing: .4px; }
  .survivor-heading { gap: 3px; margin-bottom: 4px; }
  .role-label { font-size: 5px; letter-spacing: 0; }
  .health-row { gap: 3px; }
  .health-number { font-size: 7px; }
  .objective-card { padding-left: 6px; }
  .objective-card .mini-label { font-size: 5px; letter-spacing: .4px; }
  #objective { font-size: 7px; }
  .supplies-card { min-width: 48px; }
  .supplies-card .mini-label { font-size: 5px; }
  #score { font-size: 8px; letter-spacing: .3px; }
  .supplies-row { gap: 5px; }
  .supplies-row > span { font-size: 7px; gap: 2px; }
  .supplies-row svg { width: 10px; height: 10px; }
  .checkpoint-mark { font-size: 7px; }
  #checkpoint-label { font-size: 6px; }
  .controls-strip { gap: 8px 12px; padding-top: 12px; }
  .controls-strip kbd { font-size: 8px; min-width: 17px; }
  .dialog-overlay { padding: 13px; }
  .dialog-card { padding: 19px; }
  .dialog-card .chapter-label { font-size: 7px; }
  h2 { margin: 11px 0 8px; font-size: 30px; }
  .dialog-card p { font-size: 10px; margin-bottom: 12px; }
  .dialog-card .primary-button { min-height: 33px; padding: 9px 12px; font-size: 9px; }
  .secondary-button { margin-top: 6px; padding: 8px; font-size: 10px; }
  .end-stats { padding: 8px 0; margin-bottom: 10px; font-size: 10px; }
  .controls-card { padding: 17px; }
  .controls-card h2 { font-size: 28px; margin: 9px 0; }
  .controls-card .controller-instructions { font-size: 9px; margin-bottom: 9px; }
  .controller-defaults { padding: 7px 9px; }
  .controller-defaults p { font-size: 8px; }
  .controller-bindings { gap: 5px; margin: 9px 0; }
  .controller-bindings button { font-size: 8px; min-height: 29px; padding: 7px; }
  .keyboard-help { font-size: 8px; margin-top: 9px; }
}

@media (hover: none), (pointer: coarse) {
  .touch-controls { display: flex; }
  .survivor-switch { display: none; }
  .controls-strip { display: none; }
  .game-note { margin-top: 12px; }
}

@media (max-width: 390px) {
  .touch-button { min-width: 39px; padding: 8px 7px; font-size: 8px; }
  .touch-movement .touch-button { font-size: 21px; }
  .touch-movement, .touch-actions { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
/* Campaign access and local co-op fit outside the fixed recording aperture. */
.hub-toolbar-button { border:1px solid #65756b; border-radius:6px; background:#172c30; color:#ecd6ae; font:700 10px system-ui; min-height:34px; padding:0 10px; cursor:pointer; }
.hub-toolbar-button:hover,.hub-toolbar-button:focus-visible { background:#2c4548; outline:2px solid #ddb87b; outline-offset:2px; }
.coop-choice { display:flex; flex-wrap:wrap; align-items:center; gap:8px; color:#f0d9b4; font:600 12px system-ui; margin:12px 0; }
.coop-choice span { font:400 10px system-ui; color:#adc4bd; }
.coop-choice input { accent-color:#d7b07b; }
.controller-player-choice { display:flex; align-items:center; gap:12px; font-size:13px; margin:12px 0; }
.controller-player-choice select { color:#eddfc7; background:#13282e; border:1px solid #6e877c; padding:7px; border-radius:5px; }
@media(max-width:650px) { .hub-toolbar-button{padding:0 5px;font-size:8px;}.game-toolbar{gap:6px;} .coop-choice span{width:100%;} }
