body.arcade-page {
  --arcade-violet: #bf8cff;
  --arcade-blue: #75b8ff;
  --arcade-green: #65e6ad;
  --arcade-ink: #07050c;
  background:
    radial-gradient(circle at 78% 5%, rgba(191, 140, 255, 0.17), transparent 28rem),
    radial-gradient(circle at 8% 22%, rgba(104, 189, 178, 0.15), transparent 30rem),
    linear-gradient(180deg, #07050c, #050b0a 72%);
}

body.arcade-page[data-theme='void'] { --teal: #b184ff; --teal-light: #eadcff; --line: rgba(177, 132, 255, .24); --arcade-violet: #ff71ce; --arcade-green: #b184ff; }
body.arcade-page[data-theme='solar'] { --teal: #ffc857; --teal-light: #fff0bf; --line: rgba(255, 200, 87, .24); --arcade-violet: #ff8a5b; --arcade-green: #ffc857; }
body.arcade-page[data-theme='ice'] { --teal: #63d8ff; --teal-light: #ddf8ff; --line: rgba(99, 216, 255, .24); --arcade-violet: #77a8ff; --arcade-green: #63d8ff; }

.arcade-shell { width: min(1240px, calc(100% - 2rem)); }

.station-hero {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.station-hero::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  top: -210px;
  border: 1px solid rgba(191, 140, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(191, 140, 255, 0.12);
  pointer-events: none;
}

.hero-copy { padding: clamp(0.35rem, 2vw, 1rem); position: relative; z-index: 1; }
.hero-copy h1 { margin: 0.55rem 0 0.8rem; font-size: clamp(2.8rem, 8vw, 6.4rem); }
.hero-copy h1 span { color: var(--arcade-violet); text-shadow: 0 0 28px rgba(191, 140, 255, 0.24); }
.hero-copy p { max-width: 720px; margin-bottom: 1.2rem; }

.pilot-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(191, 140, 255, 0.28);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(191, 140, 255, 0.055);
}

.pilot-stat { padding: 0.75rem; min-width: 0; }
.pilot-stat + .pilot-stat { border-left: 1px solid rgba(191, 140, 255, 0.2); }
.pilot-stat span { display: block; color: var(--dim); font-size: 0.52rem; letter-spacing: 0.12em; }
.pilot-stat strong { display: block; margin-top: 0.3rem; color: var(--gold); font-size: clamp(0.82rem, 2vw, 1.15rem); overflow: hidden; text-overflow: ellipsis; }

.mascot-console {
  min-height: 310px;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(4, 12, 10, 0.76);
}

.mascot-visual { position: relative; min-height: 235px; overflow: hidden; }
.mascot-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 19% 46%; filter: saturate(0.88) contrast(1.03); }
.mascot-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 54%, rgba(4, 12, 10, 0.94)); }
.mascot-level { position: absolute; left: 0.8rem; top: 0.8rem; z-index: 1; padding: 0.38rem 0.55rem; border: 1px solid var(--gold); border-radius: 7px; color: var(--gold); background: rgba(5, 11, 10, 0.82); font-size: 0.6rem; }
.fep-speech { padding: 0.9rem; color: var(--teal-light); font-size: 0.7rem; line-height: 1.55; min-height: 62px; }
.fep-speech::before { content: 'FEP > '; color: var(--gold); font-weight: 900; }

.progress-strip { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; }
.xp-track { height: 9px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: rgba(4, 11, 10, 0.86); }
.xp-fill { width: 24%; height: 100%; background: linear-gradient(90deg, var(--teal), var(--arcade-violet)); box-shadow: 0 0 14px rgba(191, 140, 255, 0.42); transition: width 240ms ease; }
.progress-strip small { color: var(--dim); font-size: 0.6rem; }
.protocol-strip { display: flex; justify-content: space-between; gap: .7rem; margin-bottom: .8rem; color: var(--arcade-green); font-size: .58rem; letter-spacing: .08em; }
.protocol-strip b { color: var(--gold); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr); gap: 1rem; margin-top: 1rem; }
.station-map { padding: 1rem; }
.station-map-head, .mission-head, .badge-head { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; margin-bottom: 0.8rem; }
.station-map-head h2, .mission-head h2, .badge-head h2 { margin: 0; font-size: 0.95rem; }
.station-map-head span, .mission-head span, .badge-head span { color: var(--dim); font-size: 0.58rem; }

.room-map { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-areas: 'pulse pulse memory memory debug debug' 'terminal terminal runner runner radio radio' '. boss boss boss boss .' ; gap: 0.7rem; position: relative; }
.room-node { min-height: 142px; border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem; color: var(--dim); background: rgba(8, 21, 18, 0.82); text-align: left; display: flex; flex-direction: column; transition: 170ms ease; position: relative; overflow: hidden; }
.room-node::after { content: ''; position: absolute; width: 64px; height: 64px; right: -26px; bottom: -26px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.12; }
.room-node:hover, .room-node:focus-visible, .room-node.active { transform: translateY(-3px); border-color: var(--arcade-violet); background: rgba(191, 140, 255, 0.09); outline: 0; }
.room-node[data-game='reaction'] { grid-area: pulse; }
.room-node[data-game='memory'] { grid-area: memory; }
.room-node[data-game='bug'] { grid-area: debug; }
.room-node[data-game='terminal'] { grid-area: terminal; }
.room-node[data-game='runner'] { grid-area: runner; }
.room-node[data-game='radio'] { grid-area: radio; }
.room-node[data-game='boss'] { grid-area: boss; }
.room-code { color: var(--gold); font-size: 0.54rem; letter-spacing: 0.14em; }
.room-icon { margin: 0.75rem 0 0.55rem; color: var(--arcade-violet); font-size: 1.4rem; font-weight: 1000; }
.room-node strong { color: var(--teal-light); font-size: 0.75rem; }
.room-node small { margin-top: 0.35rem; line-height: 1.45; font-size: 0.58rem; }
.room-state { margin-top: auto; padding-top: 0.65rem; color: var(--arcade-green); font-size: 0.53rem; }
.room-node.locked .room-state { color: var(--dim); }
.room-node.locked { opacity: .56; filter: grayscale(.45); }
.room-node.locked:hover { transform: none; border-color: var(--line); }
.radio-room { box-shadow: inset 0 0 34px rgba(117, 184, 255, .035); }
.boss-room:not(.locked) { border-color: rgba(255, 95, 125, .52); box-shadow: inset 0 0 42px rgba(255, 95, 125, .06); }

.side-stack { display: grid; gap: 1rem; }
.mission-panel, .badge-panel { padding: 1rem; }
.mission-list { display: grid; gap: 0.55rem; }
.mission { padding: 0.7rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(104, 189, 178, 0.045); }
.mission-top { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--teal-light); font-size: 0.62rem; }
.mission-top b { color: var(--gold); }
.mission-track { height: 5px; margin-top: 0.55rem; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.mission-track i { display: block; width: 0; height: 100%; background: var(--teal); }
.mission small { display: block; margin-top: 0.45rem; color: var(--dim); font-size: 0.54rem; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
.badge { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--dim); background: rgba(255, 255, 255, 0.025); font-size: 1.05rem; text-align: center; }
.badge small { display: block; margin-top: 0.22rem; font-size: 0.43rem; }
.badge.unlocked { color: var(--gold); border-color: var(--line-gold); background: rgba(255, 210, 105, 0.08); }

.play-deck { margin-top: 1rem; overflow: hidden; }
.game-tabs { display: flex; gap: 0.45rem; padding: 0.75rem; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.game-tab { flex: 0 0 auto; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.7rem; background: rgba(12, 25, 23, 0.78); color: var(--dim); font-size: 0.62rem; }
.game-tab:hover, .game-tab:focus-visible, .game-tab.active { color: var(--gold); border-color: var(--arcade-violet); background: rgba(191, 140, 255, 0.1); outline: 0; }
.game { display: none; min-height: 420px; padding: clamp(1rem, 3vw, 2rem); }
.game.active { display: grid; }
.game-copy { max-width: 630px; margin: 0 auto 1rem; text-align: center; }
.game-copy p { font-size: 0.73rem; }
.game-status { min-height: 26px; color: var(--gold); font-size: 0.72rem; text-align: center; }
.reaction-zone { width: min(100%, 680px); min-height: 230px; margin: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(104, 189, 178, 0.05); color: var(--teal-light); display: grid; place-items: center; padding: 1rem; text-align: center; }
.reaction-zone.waiting { background: rgba(255, 123, 123, 0.12); border-color: rgba(255, 123, 123, 0.45); }
.reaction-zone.ready { background: rgba(104, 189, 178, 0.24); border-color: var(--teal); box-shadow: inset 0 0 45px rgba(104, 189, 178, 0.1); }
.memory-grid { width: min(100%, 400px); margin: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.memory-pad { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 18px; background: rgba(104, 189, 178, 0.07); color: var(--dim); font-size: 1.4rem; }
.memory-pad:nth-child(2) { background: rgba(255, 210, 105, 0.06); }
.memory-pad:nth-child(3) { background: rgba(191, 140, 255, 0.07); }
.memory-pad:nth-child(4) { background: rgba(255, 123, 123, 0.06); }
.memory-pad.flash, .memory-pad:active { border-color: var(--gold); background: var(--gold); color: #08110f; box-shadow: 0 0 30px rgba(255, 210, 105, 0.3); }
.bug-window { width: min(100%, 760px); margin: auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.code-line { width: 100%; display: grid; grid-template-columns: 2rem 1fr; gap: 0.7rem; border: 0; border-bottom: 1px solid rgba(104, 189, 178, 0.1); padding: 0.72rem 0.85rem; background: #07110f; color: var(--dim); text-align: left; font-size: 0.7rem; }
.code-line:last-child { border-bottom: 0; }
.code-line:hover, .code-line:focus-visible { background: rgba(104, 189, 178, 0.08); color: var(--teal-light); outline: 0; }
.code-line .no { color: #49635e; }
.code-line.found { color: var(--gold); background: rgba(255, 210, 105, 0.08); }
.code-line.missed { color: #ff8fa4; background: rgba(255, 95, 125, 0.06); }
.game-actions { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1rem; }

.protocol-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 1rem; margin-top: 1rem; }
.story-panel, .pilot-card-panel, .store-panel { padding: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: .9rem; }
.section-head h2 { margin: .25rem 0 0; font-size: 1rem; }
.section-head small { color: var(--dim); font-size: .55rem; }
.story-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.story-entry { min-height: 120px; padding: .75rem; border: 1px solid var(--line); border-radius: 11px; color: var(--dim); background: rgba(104, 189, 178, .04); text-align: left; }
.story-entry span { display: block; color: var(--gold); font-size: .52rem; }
.story-entry strong { display: block; margin: .6rem 0 .35rem; color: var(--teal-light); font-size: .66rem; }
.story-entry small { font-size: .54rem; line-height: 1.45; }
.story-entry:hover, .story-entry:focus-visible, .story-entry.active { border-color: var(--arcade-violet); background: rgba(191, 140, 255, .09); outline: 0; }
.story-entry.locked { opacity: .42; filter: grayscale(.6); }
.story-reader { min-height: 72px; margin-top: .7rem; padding: .8rem; border-left: 2px solid var(--arcade-violet); color: var(--teal-light); background: rgba(191, 140, 255, .045); font-size: .65rem; line-height: 1.65; }
.pilot-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; min-height: 112px; padding: .85rem; border: 1px solid var(--line-gold); border-radius: 13px; background: linear-gradient(135deg, rgba(255, 210, 105, .09), rgba(191, 140, 255, .07)); }
.pilot-card-mark { width: 54px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 1.4rem; font-weight: 1000; }
.pilot-card span { display: block; color: var(--dim); font-size: .48rem; letter-spacing: .12em; }
.pilot-card strong { display: block; margin: .25rem 0; color: var(--teal-light); font-size: .74rem; }
.pilot-card small { color: var(--gold); font-size: .52rem; }
.pilot-card-score { text-align: right; }
.pilot-card-score b { color: var(--gold); font-size: 1rem; }
.callsign-form { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .55rem; margin-top: .7rem; }
.callsign-form label { color: var(--dim); font-size: .55rem; }
.callsign-form input { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: .62rem; color: var(--teal-light); background: rgba(4, 12, 10, .72); }
.callsign-form .btn { min-height: 38px; padding: .45rem .65rem; font-size: .55rem; }
.btn.wide { width: 100%; margin-top: .55rem; }
.store-panel { margin-top: 1rem; }
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.store-item { padding: .75rem; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); }
.store-item.equipped { border-color: var(--gold); background: rgba(255, 210, 105, .055); }
.store-item strong, .store-item small { display: block; }
.store-item strong { margin-top: .65rem; color: var(--teal-light); font-size: .67rem; }
.store-item small { min-height: 34px; margin: .3rem 0 .65rem; color: var(--dim); font-size: .54rem; }
.store-item .btn { width: 100%; min-height: 36px; padding: .4rem; font-size: .55rem; }
.theme-chip { height: 50px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); }
.theme-chip.signal { background: linear-gradient(135deg, #07110f, #68bdb2); }
.theme-chip.void { background: linear-gradient(135deg, #090512, #b184ff); }
.theme-chip.solar { background: linear-gradient(135deg, #160e05, #ffc857); }
.theme-chip.ice { background: linear-gradient(135deg, #03131b, #63d8ff); }

.terminal-game { width: min(100%, 780px); margin: auto; border: 1px solid rgba(101, 230, 173, 0.36); border-radius: 14px; overflow: hidden; background: #030908; box-shadow: inset 0 0 44px rgba(101, 230, 173, 0.035); }
.terminal-log { min-height: 220px; max-height: 300px; overflow-y: auto; padding: 1rem; color: #8fd9c4; font-size: 0.72rem; line-height: 1.75; white-space: pre-wrap; }
.terminal-log span, .terminal-log b { color: var(--gold); }
.terminal-log .command { color: var(--teal-light); }
.terminal-log .success { color: var(--gold); }
.terminal-log .error { color: #ff8fa4; }
.terminal-form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.65rem; align-items: center; padding: 0.75rem; border-top: 1px solid var(--line); }
.terminal-form label { color: var(--arcade-green); font-size: 0.66rem; }
.terminal-form input { min-width: 0; border: 0; outline: 0; color: var(--teal-light); background: transparent; font-size: 0.72rem; }
.terminal-form .btn { min-height: 34px; padding: 0.45rem 0.65rem; font-size: 0.58rem; }
.terminal-hints { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 0.75rem 0.75rem; }
.terminal-hints button { border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem 0.55rem; color: var(--dim); background: rgba(104, 189, 178, 0.045); font-size: 0.58rem; }
.terminal-hints button:hover, .terminal-hints button:focus-visible { color: var(--gold); border-color: var(--gold); outline: 0; }

.runner-frame { width: min(100%, 820px); margin: auto; border: 1px solid rgba(191, 140, 255, 0.36); border-radius: 14px; overflow: hidden; background: #05080e; position: relative; }
#runnerCanvas { display: block; width: 100%; height: auto; aspect-ratio: 8 / 3; touch-action: manipulation; }
.runner-overlay { position: absolute; inset: 0; display: grid; place-content: center; gap: 0.5rem; text-align: center; background: rgba(4, 8, 14, 0.66); pointer-events: none; }
.runner-overlay strong { color: var(--gold); font-size: clamp(1rem, 4vw, 1.6rem); }
.runner-overlay span { color: var(--teal-light); font-size: 0.58rem; letter-spacing: 0.12em; }
.runner-overlay.hidden { display: none; }
.runner-controls { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1rem; }
.runner-jump { min-width: 120px; min-height: 42px; border: 1px solid var(--arcade-violet); border-radius: 9px; color: var(--teal-light); background: rgba(191, 140, 255, 0.1); font-weight: 900; }

.radio-console, .boss-console { width: min(100%, 800px); margin: auto; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; background: rgba(3, 9, 8, .88); }
.now-playing { display: grid; gap: .28rem; text-align: center; }
.now-playing span { color: var(--arcade-blue); font-size: .53rem; letter-spacing: .14em; }
.now-playing strong { color: var(--teal-light); font-size: .85rem; }
.now-playing small { color: var(--dim); font-size: .58rem; }
.drift-lane { height: 76px; margin: 1rem 0; border: 1px solid var(--line); border-radius: 10px; position: relative; overflow: hidden; background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(104,189,178,.06) 40px); }
.sync-zone { position: absolute; left: 43%; width: 14%; top: 0; bottom: 0; background: rgba(255, 210, 105, .15); border-inline: 1px solid var(--gold); }
.drift-lane b { position: absolute; left: 0; top: 13px; width: 12px; height: 50px; border-radius: 999px; background: var(--arcade-violet); box-shadow: 0 0 18px var(--arcade-violet); }
.radio-score { display: flex; justify-content: space-between; color: var(--dim); font-size: .59rem; }
.radio-score b { color: var(--gold); }
.boss-health { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; color: var(--dim); font-size: .55rem; }
.boss-health > div { height: 8px; border: 1px solid rgba(255,95,125,.35); border-radius: 999px; overflow: hidden; }
.boss-health i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #ff5f7d, var(--gold)); transition: width .25s; }
.boss-health b { color: #ff8fa4; }
.boss-arena { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 1rem; text-align: center; }
.boss-arena > strong { color: var(--gold); font-size: .75rem; }
.boss-sequence { min-height: 38px; display: flex; justify-content: center; gap: .5rem; }
.boss-sequence span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--arcade-violet); border-radius: 7px; color: var(--teal-light); background: rgba(191,140,255,.08); }
.boss-code { width: 48px; height: 44px; border: 1px solid var(--arcade-violet); border-radius: 8px; color: var(--teal-light); background: rgba(191,140,255,.1); font-weight: 900; }
.boss-code:hover, .boss-code:focus-visible { border-color: var(--gold); color: var(--gold); outline: 0; }
.boss-sequence span.hidden-code { color: transparent; }
.boss-core { width: 130px; aspect-ratio: 1; border: 1px solid #ff5f7d; border-radius: 50%; color: #ff8fa4; background: radial-gradient(circle, rgba(255,95,125,.18), rgba(8,5,12,.94) 66%); box-shadow: 0 0 34px rgba(255,95,125,.16); font-weight: 1000; }
.boss-core.ready { color: #07110f; border-color: var(--gold); background: var(--gold); box-shadow: 0 0 42px rgba(255,210,105,.58); animation: coreReady .62s ease infinite alternate; }
.boss-core:not(:disabled):active { transform: scale(.96); }
@keyframes coreReady { to { transform: scale(1.05); } }

.arcade-toast { position: fixed; z-index: 40; right: 1rem; bottom: 1rem; max-width: min(360px, calc(100% - 2rem)); padding: 0.85rem 1rem; border: 1px solid var(--gold); border-radius: 10px; color: var(--teal-light); background: rgba(5, 14, 12, 0.96); box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48); font-size: 0.66rem; line-height: 1.5; opacity: 0; transform: translateY(16px); pointer-events: none; transition: 180ms ease; }
.arcade-toast.show { opacity: 1; transform: translateY(0); }
.mission.complete { border-color: var(--line-gold); background: rgba(255, 210, 105, 0.07); }
.mission.complete .mission-track i { width: 100%; background: var(--gold); }
.mission.complete small { color: var(--gold); }
.mascot-console.react { animation: mascotReact 480ms ease; }
@keyframes mascotReact { 50% { transform: translateY(-5px) rotate(-0.5deg); border-color: var(--gold); } }

@media (max-width: 880px) {
  .station-hero, .dashboard-grid, .protocol-grid { grid-template-columns: 1fr; }
  .mascot-console { min-height: 260px; grid-template-columns: minmax(180px, 0.65fr) 1fr; grid-template-rows: 1fr; }
  .mascot-visual { min-height: 260px; }
  .fep-speech { align-self: center; }
}

@media (max-width: 640px) {
  .arcade-shell { width: min(100% - 0.75rem, 1240px); }
  .pilot-bar { grid-template-columns: repeat(2, 1fr); }
  .pilot-stat:nth-child(3) { border-left: 0; border-top: 1px solid rgba(191, 140, 255, 0.2); }
  .pilot-stat:nth-child(4) { border-top: 1px solid rgba(191, 140, 255, 0.2); }
  .room-map { grid-template-columns: 1fr; grid-template-areas: 'pulse' 'memory' 'debug' 'terminal' 'runner' 'radio' 'boss'; }
  .room-node { min-height: 126px; }
  .mascot-console { grid-template-columns: 1fr; grid-template-rows: 210px auto; }
  .mascot-visual { min-height: 210px; }
  .game { min-height: 470px; }
  .terminal-form { grid-template-columns: 1fr auto; }
  .terminal-form label { grid-column: 1 / -1; }
  .runner-controls { position: sticky; bottom: 0.5rem; z-index: 4; }
  .story-timeline, .store-grid { grid-template-columns: repeat(2, 1fr); }
  .callsign-form { grid-template-columns: 1fr auto; }
  .callsign-form label { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .story-timeline, .store-grid { grid-template-columns: 1fr; }
  .pilot-card { grid-template-columns: auto 1fr; }
  .pilot-card-score { grid-column: 1 / -1; text-align: left; }
}
