@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(./assets/fonts/dm-sans-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./assets/fonts/barlow-0.woff2) format("truetype");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./assets/fonts/barlow-1.woff2) format("truetype");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./assets/fonts/barlow-2.woff2) format("truetype");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/barlow-3.woff2) format("truetype");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(./assets/fonts/barlow-4.woff2) format("truetype");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./assets/fonts/barlow-5.woff2) format("truetype");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/barlow-6.woff2) format("truetype");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(./assets/fonts/barlow-7.woff2) format("truetype");
}
:root {
  color-scheme: dark;
  --bg: oklch(0.215 0.029 234);
  --surface: oklch(0.242 0.032 234);
  --raised: oklch(0.285 0.033 234);
  --line: oklch(0.365 0.031 234);
  --ink: oklch(0.957 0.016 80);
  --muted: oklch(0.739 0.028 228);
  --lime: oklch(0.926 0.165 120);
  --lime-ink: oklch(0.245 0.045 120);
  --lilac: oklch(0.78 0.104 296);
  --apricot: oklch(0.829 0.091 59);
  --red: oklch(0.76 0.14 28);
  --z-toast: 30;
  --z-modal: 40;
  font-family: "DM Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.42;
}
svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
button,
select {
  touch-action: manipulation;
}
button,
button svg {
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    opacity 0.18s;
}
button:hover:not(:disabled) {
  filter: brightness(1.12);
}
[hidden] {
  display: none !important;
}
.app-shell {
  max-width: 1540px;
  margin: auto;
  padding: 0 36px;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 48px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.015em;
  gap: 5px;
  white-space: nowrap;
}
.wordmark span {
  color: var(--lime);
}
.wordmark svg {
  height: 29px;
  width: 23px;
  fill: var(--lime);
  margin-left: 6px;
}
.mode-nav {
  display: flex;
  align-self: stretch;
  gap: 30px;
  margin-left: 20px;
}
.nav-button {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  background: none;
  padding: 0;
  position: relative;
  color: var(--muted);
  white-space: nowrap;
}
.nav-button.selected {
  color: var(--ink);
}
.nav-button.selected:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lime);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: none;
  padding: 10px 0;
  font-weight: 500;
}
.text-button svg {
  width: 18px;
  height: 18px;
}
.icon-button {
  display: grid;
  place-items: center;
  background: none;
  width: 38px;
  height: 38px;
  color: var(--muted);
  border-radius: 6px;
}
.icon-button:hover {
  background: var(--raised);
  color: var(--ink);
}
.statusbar {
  height: 92px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 1fr;
  align-items: center;
  gap: 24px;
}
.status-item {
  position: relative;
}
.status-label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 3px;
}
.status-item > strong,
.timer-line strong {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.status-item strong span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.combo {
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
  margin-left: 12px;
}
.health-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.health-meter {
  height: 5px;
  border-radius: 2px;
  width: min(160px, 65%);
  background: var(--raised);
  overflow: hidden;
}
.health-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
}
.health-line strong {
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.timer-item {
  justify-self: end;
  min-width: 172px;
}
.timer-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.timer-line > span {
  color: var(--apricot);
}
.timer-line .icon-button {
  margin-left: auto;
  width: 30px;
  height: 30px;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.world-column {
  min-width: 0;
  background: oklch(0.19 0.032 232);
}
.arena {
  position: relative;
  aspect-ratio: 1.53;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
}
.arena:after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 26, 35, 0.85),
    transparent 36%,
    transparent 84%,
    rgba(8, 26, 35, 0.75)
  );
  z-index: -1;
}
#game-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
}
#game-canvas canvas {
  display: block;
}
.world-intro {
  position: absolute;
  top: 32px;
  left: 34px;
  pointer-events: none;
}

.tiny-light {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}
.world-intro h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 0.99;
  letter-spacing: -0.015em;
}
.world-intro p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 12px;
}
.live-heading {
  position: absolute;
  left: 28px;
  top: 24px;
  pointer-events: none;
}
.live-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.live-heading h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.12;
}
.board-legend {
  position: absolute;
  right: 24px;
  top: 24px;
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}
.board-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
}
.lime {
  background: var(--lime);
}
.lilac {
  background: var(--lilac);
}
.queue-indicator {
  position: absolute;
  left: 25px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.queue-indicator > span > strong {
  font-size: 15px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.queue-indicator svg {
  width: 17px;
  height: 17px;
}
.queue-dots {
  display: flex;
  gap: 3px;
  margin-left: 5px;
}
.queue-dots i {
  height: 13px;
  width: 3px;
  border-radius: 1px;
  background: var(--line);
}
.queue-dots i.filled {
  background: var(--lime);
}
.queue-dots i.danger {
  background: var(--red);
}
.event-banner {
  position: absolute;
  bottom: 20px;
  right: 20px;
  max-width: 67%;
  padding: 9px 13px;
  background: oklch(0.28 0.055 40);
  border: 1px solid oklch(0.57 0.093 40);
  border-radius: 5px;
  font-size: 12px;
  color: var(--apricot);
}
.world-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-size: 14px;
  color: var(--muted);
}
.loading-orbit {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--lime);
  animation: spin 1.2s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.cache-rack {
  margin: 0 18px 0;
  padding: 19px 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: oklch(0.226 0.036 232);
  min-height: 104px;
}
.cache-title {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 155px;
}
.cache-title > span {
  color: var(--lime);
  margin-top: 4px;
}
.cache-title svg {
  width: 23px;
  height: 23px;
}
.cache-title h2 {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.cache-title h2 > span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.cache-title p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 140px;
}
.cache-slots {
  display: flex;
  gap: 7px;
  min-width: 0;
  flex: 1;
  overflow: auto;
  padding: 4px;
}
.cache-slot {
  height: 69px;
  min-width: 73px;
  flex: 1;
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
}
.cache-slot.empty {
  border-style: dashed;
  color: var(--muted);
}
.cache-slot.empty:disabled {
  opacity: 1;
}
.cache-slot.empty > span {
  font-size: 22px;
  line-height: 1;
}
.cache-slot.empty small {
  font-size: 10px;
}
.cache-slot.occupied {
  border-color: color-mix(in oklch, var(--slot-color) 55%, var(--line));
  background: color-mix(in oklch, var(--slot-color) 5%, var(--bg));
  color: var(--ink);
}
.cache-slot.pinned {
  border-color: var(--slot-color);
  box-shadow: inset 0 0 0 1px var(--slot-color);
}
.cache-slot .cache-name {
  font-size: 11px;
  white-space: nowrap;
}
.cache-slot .ttl {
  font-family: monospace;
  font-size: 10px;
  color: var(--slot-color);
}
.ttl-bar {
  height: 2px;
  width: 100%;
  background: var(--line);
  margin-top: 3px;
}
.ttl-bar i {
  display: block;
  height: 100%;
  background: var(--slot-color);
  width: 100%;
}
.cache-slot .pin-mark {
  position: absolute;
  top: 5px;
  right: 5px;
  color: var(--slot-color);
}
.pin-mark svg {
  width: 10px;
  height: 10px;
}
.cache-glyph {
  font-size: 13px;
  font-weight: 600;
  color: var(--slot-color);
  line-height: 1;
}
.world-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 22px;
  font-size: 10px;
  color: var(--muted);
}
.world-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mission-dock {
  border-left: 1px solid var(--line);
  background: var(--surface);
  padding: 27px 23px 22px;
  display: flex;
  flex-direction: column;
}
.mission-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.level-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
}
.stars-small {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 3px;
}
.mission-dock > h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 39px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.mission-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 13px 0 18px;
}
.objective > div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  gap: 10px;
  margin-bottom: 5px;
}
.objective > div > span:last-child {
  color: var(--muted);
  white-space: nowrap;
}
progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  display: block;
  background: var(--raised);
  border-radius: 3px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: var(--raised);
}
progress::-webkit-progress-value {
  background: var(--lime);
  border-radius: 3px;
}
progress::-moz-progress-bar {
  background: var(--lime);
}
#preflight {
  margin-top: 23px;
}
.difficulty-switch {
  display: flex;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  gap: 3px;
}
.difficulty-switch button {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border-radius: 3px;
  font-size: 12px;
  padding: 5px 8px;
}
.difficulty-switch button.selected {
  color: var(--ink);
  background: var(--raised);
}
.callsign-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  padding: 12px 1px 10px;
  font-size: 12px;
  color: var(--muted);
}
.callsign-button > span:last-child {
  margin-left: auto;
}
.callsign-button svg {
  width: 14px;
  height: 14px;
}
.primary-button {
  width: 100%;
  background: var(--lime);
  color: var(--lime-ink);
  border-radius: 6px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  gap: 15px;
  min-height: 48px;
}
.primary-button:hover {
  background: oklch(0.96 0.17 120);
}
.start-note {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 9px;
}
.upgrades-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 23px;
}
.upgrades-header h3 {
  font-size: 12px;
  font-weight: 500;
}
.bits {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--apricot);
  font-size: 12px;
}
.bits svg {
  width: 13px;
  height: 13px;
}
.bits > span:last-child {
  font-size: 10px;
  color: var(--muted);
}
.upgrade {
  display: flex;
  gap: 11px;
  width: 100%;
  align-items: center;
  background: none;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  text-align: left;
}
.upgrade > span:first-child {
  width: 33px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--lime);
  background: color-mix(in oklch, var(--lime) 7%, var(--surface));
}
.upgrade > span:first-child svg {
  width: 21px;
  height: 21px;
}
.upgrade-copy {
  flex: 1;
}
.upgrade-copy b {
  display: block;
  font-weight: 500;
  font-size: 13px;
}
.upgrade-copy small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.upgrade-price {
  color: var(--apricot);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.upgrade-price svg {
  width: 12px;
  height: 12px;
}
.upgrade:disabled {
  opacity: 0.48;
}
.upgrade-list.ready .upgrade:disabled {
  opacity: 0.68;
}
.tactical-controls {
  margin-top: 12px;
}
.tactical-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  background: none;
  text-align: left;
}
.tactical-button > span:first-child {
  color: var(--lilac);
}
.tactical-button b {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.tactical-button small {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
kbd {
  font-family: inherit;
  font-size: 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 4px;
  color: var(--muted);
  margin-left: auto;
}
.mentor-note {
  display: flex;
  gap: 10px;
  padding-top: 22px;
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.mentor-note > span {
  color: var(--lime);
}
.mentor-note svg {
  width: 17px;
  height: 17px;
}
.quiet-button {
  background: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  padding: 13px 0 0;
}
.quiet-button svg {
  width: 13px;
  height: 13px;
}
.campaign-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.chapter-label {
  min-width: 143px;
}
.chapter-label > span {
  font-size: 12px;
  font-weight: 500;
}
.chapter-label > small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.level-buttons {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: space-between;
}
.level-button {
  position: relative;
  width: 38px;
  height: 41px;
  flex-shrink: 0;
  clip-path: polygon(50% 0, 95% 23%, 95% 77%, 50% 100%, 5% 77%, 5% 23%);
  background: var(--raised);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.level-button.selected {
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
}
.level-button.complete:not(.selected) {
  background: oklch(0.35 0.07 137);
  color: var(--lime);
}
.level-button:disabled {
  opacity: 0.48;
}
.level-button svg {
  width: 12px;
  height: 12px;
}
.level-button:focus-visible {
  clip-path: none;
  border-radius: 5px;
}
.campaign-strip > .text-button {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  padding: 20px 0 28px;
}
.site-footer > a {
  color: var(--ink);
}
.site-footer > a span {
  color: var(--muted);
  padding-left: 7px;
}
.site-footer button {
  background: none;
  padding: 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 12px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: var(--z-toast);
  background: var(--lime);
  color: var(--bg);
  padding: 12px;
}
.skip:focus {
  top: 15px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 7px;
  font-size: 13px;
  max-width: calc(100% - 32px);
  box-shadow: 0 4px 8px #0004;
}
.noscript {
  position: fixed;
  inset: 30%;
  background: var(--surface);
  padding: 30px;
  z-index: var(--z-modal);
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  box-shadow: none;
}
dialog::backdrop {
  background: rgba(3, 15, 21, 0.82);
}
.dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
}

.dialog-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 14px;
  padding-right: 20px;
}
.dialog-copy {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.65;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.dialog-actions > * {
  flex: 1;
}
.secondary-button {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 500;
  min-height: 44px;
}
.dialog-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 15px;
}
.help-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.help-steps li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.help-steps li:before {
  counter-increment: step;
  content: counter(step);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--raised);
  color: var(--lime);
  border-radius: 50%;
  font-size: 12px;
}
.help-steps b {
  font-size: 14px;
  font-weight: 600;
}
.help-steps p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.6;
}
.shortcut-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
}
.shortcut-list kbd {
  margin-right: 4px;
}
.name-preview {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  padding: 25px 10px;
  color: var(--lime);
  font-size: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
select {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px;
  width: 100%;
  min-height: 43px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.settings-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.settings-row input {
  width: 19px;
  height: 19px;
  accent-color: var(--lime);
}
.board-filters {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.board-filters select {
  font-size: 12px;
  padding: 8px;
}
.board-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.board-table th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.board-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.board-table th:last-child,
.board-table td:last-child {
  text-align: right;
}
.board-table td:first-child {
  color: var(--muted);
  width: 33px;
}
.board-table tbody tr:first-child td {
  color: var(--lime);
}
.board-empty {
  padding: 32px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.board-empty svg {
  width: 34px;
  height: 34px;
  color: var(--apricot);
  margin: 0 auto 15px;
}
.board-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.result-stars {
  color: var(--lime);
  font-size: 38px;
  letter-spacing: 8px;
  margin: 8px 0 14px;
}
.result-score {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 58px;
  font-weight: 600;
  line-height: 1;
  color: var(--lime);
}
.result-score-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.result-grid b {
  font-size: 20px;
  font-weight: 500;
  display: block;
}
.result-grid span {
  font-size: 11px;
  color: var(--muted);
}
.result-insight {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.result-insight strong {
  color: var(--ink);
  font-weight: 500;
}
.submit-status {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}
.level-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 20px 0;
}
.map-level {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--bg);
  text-align: left;
  min-height: 106px;
}
.map-level b {
  display: block;
  font-size: 24px;
  font-family: "Barlow Condensed", sans-serif;
  color: var(--lime);
}
.map-level span {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.map-level small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
}
.map-level.selected {
  border-color: var(--lime);
}
.lesson-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 19px 0;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 19px 0;
}
.lesson-diagram b {
  color: var(--lime);
  font-weight: 500;
}
.learning-list {
  padding-left: 17px;
  color: var(--muted);
  font-size: 13px;
}
.learning-list li {
  margin-bottom: 10px;
}
.learning-list strong {
  color: var(--ink);
  font-weight: 500;
}
.link-text {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.storage-warning {
  color: var(--apricot);
}
@media (min-width: 1500px) {
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .mission-dock {
    padding: 30px 28px;
  }
  .arena {
    aspect-ratio: 1.7;
  }
  .mission-description {
    font-size: 14px;
  }
  .upgrade {
    padding: 17px 0;
  }
  .world-intro {
    top: 35px;
    left: 39px;
  }
  .world-intro h1 {
    font-size: 67px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    padding: 0 22px;
  }
  .topbar {
    gap: 28px;
  }
  .mode-nav {
    gap: 22px;
    margin-left: 0;
  }
  .nav-actions {
    gap: 10px;
  }
  .leaderboard-open > span:last-child {
    display: none;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .mission-dock {
    padding: 24px 19px;
  }
  .arena {
    min-height: 480px;
    aspect-ratio: auto;
  }
  .world-intro {
    left: 25px;
    top: 28px;
  }
  .world-intro h1 {
    font-size: 48px;
  }
  .board-legend {
    display: none;
  }
  .cache-rack {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cache-title {
    align-items: center;
    gap: 9px;
  }
  .cache-title > span {
    margin: 0;
  }
  .cache-title > div {
    display: flex;
    align-items: baseline;
    gap: 15px;
  }
  .cache-title p {
    max-width: none;
    margin: 0;
  }
  .cache-slots {
    min-height: 77px;
  }
  .chapter-label {
    display: none;
  }
  .world-footer > span:last-child {
    display: none;
  }
  .mission-description {
    font-size: 12px;
  }
  .upgrades-header {
    margin-top: 20px;
    padding-top: 17px;
  }
  .upgrade {
    padding: 12px 0;
  }
}
@media (max-width: 820px) {
  .app-shell {
    padding: 0 18px;
  }
  .topbar {
    height: 76px;
    gap: 22px;
  }
  .wordmark {
    font-size: 29px;
  }
  .mode-nav {
    gap: 16px;
  }
  .nav-button {
    font-size: 13px;
  }
  .nav-actions {
    gap: 3px;
  }
  .leaderboard-open {
    padding: 10px;
  }
  .statusbar {
    gap: 14px;
    height: 84px;
  }
  .status-item > strong,
  .timer-line strong {
    font-size: 23px;
  }
  .status-label {
    font-size: 10px;
  }
  .timer-item {
    min-width: 142px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 245px;
  }
  .mission-dock {
    padding: 22px 17px;
  }
  .mission-dock > h2 {
    font-size: 32px;
  }
  .world-intro h1 {
    font-size: 42px;
  }

  .arena {
    min-height: 445px;
  }
  .cache-title > div {
    display: block;
  }
  .cache-title p {
    font-size: 10px;
  }
  .cache-rack {
    padding: 13px 12px;
    margin: 0 12px;
    gap: 7px;
  }
  .cache-slot {
    min-width: 64px;
  }
  .world-footer {
    padding: 12px 16px;
  }
  .health-meter {
    width: 64px;
  }
  .campaign-strip {
    gap: 15px;
  }
  .level-buttons {
    gap: 4px;
  }
  .level-button {
    width: 30px;
    height: 34px;
    font-size: 10px;
  }
  .campaign-strip > .text-button {
    font-size: 10px;
  }
  .event-banner {
    bottom: 49px;
    right: 12px;
    max-width: calc(100% - 24px);
    font-size: 10px;
  }
  .queue-indicator {
    bottom: 16px;
    left: 15px;
  }
  .site-footer {
    font-size: 9px;
  }
}
@media (max-width: 680px) {
  .app-shell {
    padding: 0 14px;
  }
  .topbar {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
    padding-top: 16px;
  }
  .wordmark {
    font-size: 29px;
  }
  .nav-actions {
    order: 2;
    margin-left: auto;
    gap: 6px;
  }
  .mode-nav {
    order: 3;
    width: 100%;
    height: 49px;
    justify-content: center;
    gap: 36px;
    margin-top: 7px;
  }
  .nav-button {
    font-size: 14px;
  }
  .statusbar {
    height: 81px;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 10px;
  }
  .status-label {
    font-size: 10px;
  }
  .health-item {
    display: none;
  }
  .timer-item {
    min-width: 117px;
  }
  .timer-line {
    gap: 5px;
  }
  .timer-line > span svg {
    width: 16px;
    height: 16px;
  }
  .status-item > strong,
  .timer-line strong {
    font-size: 23px;
  }
  .status-item strong span {
    font-size: 11px;
  }
  .combo {
    font-size: 11px;
    margin-left: 5px;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
  }
  .arena {
    min-height: 0;
    height: auto;
    aspect-ratio: 1.03;
  }
  .world-intro {
    top: 20px;
    left: 21px;
  }

  .world-intro h1 {
    font-size: 44px;
  }
  .world-intro p {
    font-size: 12px;
    margin-top: 8px;
  }
  .live-heading {
    left: 19px;
    top: 18px;
  }
  .live-heading h1 {
    font-size: 30px;
  }
  .live-heading > span {
    font-size: 10px;
  }
  .board-legend {
    display: flex;
    right: 17px;
    top: 18px;
    gap: 8px;
    font-size: 9px;
  }
  .world-intro ~ .board-legend {
    display: none;
  }
  .queue-indicator {
    font-size: 10px;
  }
  .queue-dots {
    gap: 2px;
  }
  .queue-dots i {
    height: 10px;
    width: 3px;
  }
  .cache-rack {
    margin: 0 12px;
    padding: 13px 12px;
    gap: 9px;
    min-height: 0;
  }
  .cache-title > div {
    display: flex;
  }
  .cache-title h2 {
    font-size: 13px;
  }
  .cache-title p {
    font-size: 9px;
  }
  .cache-title svg {
    width: 18px;
    height: 18px;
  }
  .cache-slot {
    min-width: 64px;
    height: 65px;
  }
  .cache-slots {
    min-height: 0;
  }
  .world-footer {
    padding: 12px 16px;
    font-size: 9px;
  }
  .mission-dock {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .mission-top {
    grid-column: 1/-1;
    margin-bottom: 8px;
  }
  .mission-dock > h2 {
    grid-column: 1/-1;
    font-size: 36px;
  }
  .mission-description {
    grid-column: 1/-1;
    font-size: 13px;
    margin: 10px 0 17px;
  }
  .objective {
    grid-column: 1/-1;
  }
  .objective > div {
    font-size: 11px;
  }
  #preflight {
    grid-column: 1/-1;
    margin-top: 18px;
  }
  .difficulty-switch {
    max-width: none;
  }
  .difficulty-switch button {
    padding: 7px;
  }
  .callsign-button {
    padding: 13px 1px;
  }
  .primary-button {
    padding: 14px 16px;
    font-size: 15px;
  }
  .start-note {
    font-size: 11px;
  }
  .upgrades-header {
    grid-column: 1/-1;
  }
  .upgrade-list {
    grid-column: 1/-1;
  }
  .upgrade {
    padding: 14px 0;
  }
  .upgrade-copy b {
    font-size: 14px;
  }
  .upgrade-copy small {
    font-size: 11px;
  }
  .upgrade-price {
    font-size: 14px;
  }
  .upgrade > span:first-child {
    width: 38px;
  }
  .tactical-controls {
    grid-column: 1/-1;
    display: flex;
    gap: 15px;
  }
  .tactical-button {
    flex: 1;
  }
  .tactical-button kbd {
    display: none;
  }
  .tactical-button b {
    font-size: 12px;
  }
  .tactical-button small {
    font-size: 10px;
  }
  .mentor-note {
    grid-column: 1/-1;
    padding-top: 20px;
    font-size: 12px;
  }
  .quiet-button {
    grid-column: 1/-1;
    font-size: 12px;
    padding-top: 15px;
  }
  .campaign-strip {
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 14px;
    padding: 13px 0;
  }
  .chapter-label {
    display: block;
    flex: 1;
    order: 1;
  }
  .campaign-strip > .text-button {
    order: 2;
    font-size: 12px;
  }
  .level-buttons {
    order: 3;
    flex-basis: 100%;
    gap: 4px;
  }
  .level-button {
    width: calc((100% - 44px) / 12);
    height: 34px;
    max-width: 38px;
    font-size: 10px;
  }
  .site-footer {
    flex-direction: column;
    gap: 8px;
    font-size: 10px;
    padding: 17px 0 25px;
  }
  .site-footer > a span {
    padding-left: 3px;
  }
  .event-banner {
    font-size: 10px;
  }
  .form-grid {
    gap: 10px;
  }
  dialog {
    padding: 29px 23px;
    max-height: calc(100dvh - 32px);
  }
  .dialog-title {
    font-size: 34px;
  }
  .dialog-actions {
    gap: 9px;
  }
  .dialog-actions > .primary-button {
    font-size: 13px;
  }
  .board-filters {
    flex-wrap: wrap;
  }
  .board-filters select {
    flex: 1;
    min-width: 100px;
  }
  .level-map {
    gap: 7px;
  }
  .map-level {
    padding: 10px;
  }
  .map-level span {
    font-size: 10px;
  }
  .lesson-diagram {
    font-size: 10px;
  }
  .result-score {
    font-size: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .loading-orbit {
    animation: none;
  }
}
/* Readable control typography; condensed type is reserved for the game identity. */
.game-page .mission-dock > h2,
.game-page .practice-coach h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.game-page .mission-description,
.game-page .upgrade-copy b,
.game-page .tactical-button b {
  font-size: 0.9375rem;
}
.game-page .upgrade-copy b,
.game-page .tactical-button b {
  font-weight: 600;
}
.game-page .status-label,
.game-page .level-label,
.game-page .objective > div,
.game-page .difficulty-switch button,
.game-page .callsign-button,
.game-page .upgrades-header h3,
.game-page .quiet-button,
.game-page .chapter-label > span,
.game-page .campaign-strip > .text-button {
  font-size: 0.875rem;
}
.game-page .upgrade-copy small,
.game-page .tactical-button small,
.game-page .objective-rule,
.game-page .mentor-note,
.game-page .start-note,
.game-page .cache-title p,
.game-page .cache-slot .cache-name,
.game-page .chapter-label > small {
  font-size: 0.8125rem;
}
.game-page .board-legend,
.game-page .world-footer,
.game-page .site-footer,
.game-page .cache-slot.empty small,
.game-page .cache-slot .ttl {
  font-size: 0.75rem;
}
.game-page .nav-button,
.game-page .primary-button {
  font-size: 1rem;
  font-weight: 600;
}
.game-page .upgrade-list.ready .upgrade:disabled {
  opacity: 0.85;
}
.world-column {
  display: flex;
  flex-direction: column;
}
.arena {
  flex: 1 0 auto;
}
.cache-rack,
.world-footer {
  flex-shrink: 0;
}
/* Allocate the desktop viewport to the board instead of stacking fixed heights.
   Small screens and browser zoom retain normal document scrolling. */
@media (min-width: 1160px) and (min-height: 850px) {
  .game-page .app-shell {
    max-width: 1720px;
    height: 100dvh;
    display: grid;
    grid-template-rows: 72px minmax(0, 1fr) 40px;
    padding-inline: 32px;
  }
  .game-page main {
    display: grid;
    grid-template-rows: 80px minmax(0, 1fr) 70px;
    min-height: 0;
  }
  .game-page .topbar,
  .game-page .statusbar {
    height: auto;
  }
  .game-page .game-layout {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  .game-page .world-column {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 112px 40px;
  }
  .game-page .arena {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
  }
  .game-page .cache-rack {
    min-height: 0;
    padding: 12px 16px;
  }
  .game-page .cache-slot {
    max-width: 115px;
  }
  .game-page .world-footer {
    padding: 8px 20px;
    line-height: 1.3;
  }
  .game-page .mission-dock {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 20px 24px;
  }
  .game-page .mission-top {
    margin-bottom: 6px;
  }
  .game-page .mission-description {
    margin: 8px 0 12px;
    line-height: 1.45;
  }
  .game-page #preflight {
    margin-top: 12px;
  }
  .game-page .difficulty-switch button {
    padding: 6px 8px;
  }
  .game-page .callsign-button {
    padding-block: 8px;
  }
  .game-page .start-note {
    margin-top: 6px;
  }
  .game-page .practice-link {
    min-height: 36px;
    padding-block: 8px;
  }
  .game-page .upgrades-header {
    margin-top: 12px;
    padding-top: 12px;
  }
  .game-page .upgrade {
    padding-block: 10px;
  }
  .game-page .mentor-note {
    padding-top: 12px;
  }
  .game-page .campaign-strip {
    margin-top: 0;
    padding-block: 12px;
  }
  .game-page .site-footer {
    padding-block: 10px;
    line-height: 20px;
  }
}
@media (max-width: 680px) {
  .arena {
    flex: none;
  }
  .world-intro h1 {
    font-size: 38px;
  }
  .world-intro p {
    font-size: 11px;
  }
}
@media (max-width: 680px) {
  .statusbar {
    grid-template-columns: 1.15fr 0.9fr 1fr 1.4fr;
    gap: 8px;
  }
  .health-item {
    display: block;
  }
  .health-line {
    gap: 5px;
    flex-wrap: wrap;
  }
  .health-line strong {
    font-size: 16px;
  }
  .health-meter {
    width: 100%;
    height: 3px;
  }
  .health-line strong span {
    font-size: 10px;
  }
  .status-item > strong,
  .timer-line strong {
    font-size: 21px;
  }
  .status-label {
    font-size: 9px;
  }
  .timer-item {
    min-width: 0;
  }
  .timer-line {
    gap: 4px;
  }
  .timer-line .icon-button {
    width: 24px;
  }
  .timer-line > span svg {
    width: 14px;
    height: 14px;
  }
  .world-intro ~ .board-legend {
    display: none;
  }
}

.mobile-actions {
  display: none;
}
@media (max-width: 680px) {
  .mode-nav {
    gap: 18px;
  }
  .mode-nav .nav-button {
    font-size: 13px;
  }
}
@media (max-width: 680px) {
  .is-playing .statusbar {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
  }
  .is-playing .mobile-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    gap: 6px;
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .mobile-actions button {
    flex: 1;
    min-width: 0;
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: var(--raised);
    border-radius: 5px;
    color: var(--lime);
    font-size: 10px;
  }
  .mobile-actions button svg {
    width: 19px;
    height: 19px;
  }
  .mobile-actions button b {
    font-weight: 500;
    color: var(--apricot);
  }
  .is-playing .app-shell {
    padding-bottom: 80px;
  }
  .is-playing .toast {
    bottom: 90px;
  }
}

.mobile-launch {
  display: none;
}
@media (max-width: 680px) {
  .app-shell {
    padding-bottom: 80px;
  }
  body:not(.is-playing) .mobile-launch {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .mobile-launch > span {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
  }
  .mobile-launch .primary-button {
    flex: 1;
    width: auto;
    min-height: 44px;
    padding: 10px 15px;
    font-size: 14px;
    justify-content: center;
  }
}

/* The lesson uses the actual controls, with one available action at a time. */
.objective-rule {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 8px;
}
.practice-link {
  justify-content: center;
  width: 100%;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  padding: 10px 0;
}
.help-goal {
  padding: 4px 0;
  margin: 22px 0;
  line-height: 1.5;
}
.help-goal p,
.help-details p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}
.help-details {
  border-block: 1px solid var(--line);
  padding: 15px 0;
  margin-bottom: 20px;
}
.help-details summary {
  cursor: pointer;
  font-size: 14px;
}
.practice-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--lime);
  margin-bottom: 16px;
}
.practice-topline button {
  color: var(--muted);
  font-size: 11px;
  min-height: 32px;
}
.practice-coach h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}
#practice-copy {
  font-size: 15px;
  line-height: 1.55;
  margin-top: 14px;
}
.practice-state {
  font-size: 12px;
  color: var(--lime);
  margin: 16px 0;
}
.practice-target {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
  border-radius: 5px;
  background-color: color-mix(in oklch, var(--lime) 8%, var(--surface));
}
.is-practicing .mission-top,
.is-practicing #mission-title,
.is-practicing .mission-description,
.is-practicing .objective,
.is-practicing .mentor-note,
.is-practicing #learn-open,
.is-practicing #upgrade-cache,
.is-practicing #upgrade-speed,
.is-practicing #mobile-upgrade-cache,
.is-practicing #mobile-upgrade-speed {
  display: none;
}
.is-practicing .upgrade,
.is-practicing .tactical-button {
  padding: 15px 6px;
}
.is-practicing .upgrade-list {
  margin-top: 8px;
}
.is-practicing .tactical-button:disabled {
  opacity: 0.42;
}
.is-practicing .cache-slot:disabled {
  opacity: 1;
}
.is-practicing #timer {
  font-size: 24px;
}
@media (max-width: 680px) {
  .world-intro p {
    max-width: 230px;
  }
  .is-practicing .game-layout {
    display: flex;
    flex-direction: column;
  }
  .is-practicing .mission-dock {
    order: -1;
    display: block;
    padding: 14px 18px 16px;
    border-bottom: 1px solid var(--line);
  }
  .is-practicing .mission-dock .upgrades-header,
  .is-practicing #upgrade-list,
  .is-practicing #tactical-controls {
    display: none;
  }
  .practice-topline {
    margin-bottom: 6px;
  }
  .practice-coach h2 {
    font-size: 29px;
  }
  #practice-copy {
    font-size: 14px;
    line-height: 1.45;
    margin-top: 8px;
  }
  .practice-state {
    margin: 10px 0 0;
    font-size: 11px;
  }
  #practice-next {
    margin-top: 12px;
    min-height: 44px;
  }
  .is-practicing .live-heading {
    display: none;
  }
  .is-practicing .arena {
    min-height: 275px;
    height: 300px;
  }
  .is-practicing .mobile-actions {
    padding-inline: 16px;
    gap: 12px;
  }
  .is-practicing #timer {
    font-size: 19px;
  }
  .is-practicing .toast {
    display: none;
  }
}

/* Mission context follows its heading; it is not a heading of its own. */
.game-page .mission-top {
  margin: 12px 0 0;
}
.game-page .mission-top .level-label {
  font-weight: 500;
  color: var(--muted);
}
