@font-face {
  font-family: Inter;
  src: url("../assets/fonts/Inter-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../assets/fonts/Inter-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../assets/fonts/Inter-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../assets/fonts/Inter-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url("../assets/fonts/PlayfairDisplay-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --blue: #5994f0;
  --ink: #172638;
  --muted: #627080;
  --border: #e3e7ec;
  --paper: #f6f7f9;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid #87b5ff;
  outline-offset: 4px;
}
button {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.site-header {
  max-width: 1296px;
  margin: auto;
  padding: 27px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand img {
  width: 96px;
  height: 35px;
  display: block;
}
.brand-divider {
  height: 24px;
  width: 1px;
  background: #d7dfe7;
}
.arcade-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.4px;
  color: #6c7989;
}
.back-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #5e6c7c;
}
.back-link .icon {
  width: 17px;
}
main {
  max-width: 1212px;
  padding: 0 30px;
  margin: 0 auto;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 39px 0 30px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.blue-dot,
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
h1 {
  font-size: 58px;
  font-weight: 600;
  letter-spacing: -3px;
  line-height: 1.05;
  margin: 14px 0 12px;
  display: flex;
  align-items: center;
  gap: 13px;
}
h1 > span {
  font-family: Playfair, Georgia, serif;
  font-weight: 500;
  color: #558ee3;
  font-style: italic;
  letter-spacing: -2px;
}
.title-trail {
  width: 67px;
  height: 33px;
  margin-left: 9px;
  fill: none;
  stroke: #8eb5eb;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-copy {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.best-score {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 20px;
}
.trophy-circle {
  width: 43px;
  height: 43px;
  background: #edf1f6;
  border: 1px solid #e3e9f1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8595ac;
}
.small-label {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.best-score strong {
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.best-score small {
  font-size: 11px;
  color: #758393;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 4px;
}
.game-shell {
  background: #111f2e;
  border: 1px solid #253445;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 30px -18px #17263855;
}
.game-toolbar {
  min-height: 64px;
  padding: 10px 22px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 560px) minmax(145px, 1fr);
  gap: 18px;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  color: #b4c2d0;
  background: #142332;
  border-bottom: 1px solid #ffffff0d;
}
.route-label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 10px;
  min-width: 0;
  white-space: nowrap;
}
.game-toolbar:has(.mission-hud:not([hidden]))
  .route-label
  > span:not(.live-dot) {
  display: none;
}
.route-label strong {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: #d0dbe7;
}
.route-label > .live-dot,
.stage-caption > .live-dot {
  background: #90ceb8;
  box-shadow: 0 0 9px #90ceb855;
}
.route-divider {
  color: #4d6074;
  margin: 0 2px;
}
.toolbar-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 7px;
  align-items: center;
}
.tool-button {
  width: 31px;
  height: 31px;
  border: 0;
  background: transparent;
  color: #98acbf;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.tool-button:hover:not(:disabled) {
  color: #fff;
  background: #ffffff12;
}
.tool-button .icon {
  width: 17px;
  height: 17px;
}
.mute-slash {
  position: absolute;
  width: 21px;
  height: 1.5px;
  background: #c6d6e5;
  transform: rotate(-45deg);
  border: 1px solid #142332;
}
.game-stage {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #152838;
  isolation: isolate;
}
#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
.game-stage.is-playing #game-canvas {
  touch-action: none;
}
.stage-caption {
  position: absolute;
  left: 26px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a2b8bf;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.7px;
  pointer-events: none;
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 35px 6%;
  background: linear-gradient(
    90deg,
    #112331f2 0%,
    #112331ca 27%,
    #11233124 61%,
    transparent 100%
  );
}
.game-overlay.centered {
  justify-content: center;
  text-align: center;
  background: #0d1e30bd;
  backdrop-filter: blur(7px);
}
.start-card {
  max-width: 345px;
}
.mission-label {
  color: #9dbdb6;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 500;
}
.game-overlay h2 {
  font-size: 39px;
  letter-spacing: -1.5px;
  font-weight: 500;
  line-height: 1.13;
  color: #f4f8fb;
  margin: 19px 0 16px;
}
.game-overlay h2 em {
  font-family: Playfair, Georgia, serif;
  color: #a9d6bd;
  font-weight: 500;
}
.game-overlay p {
  font-size: 12px;
  line-height: 1.8;
  color: #b8c7d0;
  margin: 0 0 25px;
}
.primary-button {
  background: #bce7cd;
  color: #153f34;
  border: 1px solid #c8efd7;
  min-height: 47px;
  min-width: 192px;
  border-radius: 9px;
  padding: 12px 21px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  transition:
    background 0.2s,
    transform 0.2s;
  box-shadow: 0 4px 15px #00000014;
}
.primary-button:hover {
  background: #d1f5de;
  transform: translateY(-1px);
}
.primary-button:active {
  transform: translateY(1px);
}
.primary-button .icon {
  width: 18px;
  height: 18px;
}
.start-note {
  display: block;
  font-size: 9px;
  color: #8ea5b2;
  margin-top: 14px;
}
.text-button {
  display: block;
  color: #b8cbd9;
  border: 0;
  background: transparent;
  margin: 16px auto 0;
  font-size: 11px;
  padding: 8px;
}
.text-button:hover {
  color: white;
}
.game-bottom-bar {
  min-height: 49px;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fdfdfe;
  color: #6e7b8b;
  font-size: 10px;
  border-top: 1px solid #253445;
}
.game-bottom-bar > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.desktop-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
kbd {
  font:
    10px Inter,
    Arial,
    sans-serif;
  min-width: 21px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dae1e8;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #f5f7fa;
  color: #556779;
}
.game-bottom-bar .run-length {
  margin-left: auto;
  gap: 8px;
  color: #718092;
  font-size: 9px;
}
.mobile-controls {
  display: none;
}
.game-hud {
  position: absolute;
  top: 23px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #e8f4fd;
  pointer-events: none;
  text-shadow: 0 2px 8px #0008;
}
.hud-score {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}
.hud-score > span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #b5c6d5;
}
.hud-score strong {
  font-size: 30px;
  letter-spacing: 2px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hud-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b1b2c90;
  border: 1px solid #728ba340;
  padding: 8px 13px;
  border-radius: 20px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.hud-timer .icon {
  width: 15px;
  height: 15px;
  color: #afc9d9;
}
.hud-timer.urgent {
  color: #ffb99b;
  border-color: #ffb99b80;
}
.hud-health {
  display: flex;
  gap: 7px;
  padding-top: 10px;
  min-width: 100px;
  justify-content: flex-end;
  color: #bce7cd;
}
.hud-health .icon {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke-width: 0;
}
.hud-health .lost {
  color: #546373;
}
.shield-status {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 85px;
  background: #20486ccc;
  border: 1px solid #80bdfb80;
  border-radius: 20px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c6e4ff;
  font-size: 9px;
  letter-spacing: 1px;
  white-space: nowrap;
  pointer-events: none;
}
.shield-status .icon {
  width: 14px;
  height: 14px;
}
.game-toast {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, 8px);
  color: #d0fadd;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  opacity: 0;
  transition:
    opacity 0.15s,
    transform 0.15s;
  text-shadow: 0 2px 9px #0009;
  pointer-events: none;
  white-space: nowrap;
}
.game-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.result-stats {
  display: flex;
  justify-content: center;
  gap: 43px;
  margin: 5px 0 24px;
}
.result-stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.result-stats strong {
  font-size: 33px;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.result-stats span {
  font-size: 8px;
  color: #adc1cd;
  letter-spacing: 1.3px;
}
.game-overlay p.new-best {
  margin: -8px 0 17px;
  color: #bce7cd;
  font-size: 11px;
}
.how-to-play {
  display: grid;
  grid-template-columns: 1.12fr 1fr 1.05fr 1fr;
  gap: 28px;
  padding: 33px 0 36px;
  align-items: center;
}
.how-heading .eyebrow {
  font-size: 8px;
  color: #7b8897;
  letter-spacing: 1.3px;
}
.how-heading h2 {
  font-size: 17px;
  letter-spacing: -0.5px;
  font-weight: 500;
  margin: 9px 0 0;
}
.instruction {
  display: flex;
  gap: 11px;
  align-items: center;
}
.instruction-icon {
  width: 38px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  transform: rotate(-5deg);
}
.instruction-icon .icon {
  transform: rotate(5deg);
  width: 20px;
  height: 20px;
}
.kit-icon {
  background: #e4f1e9;
  color: #50866f;
  border: 1px solid #d5e8dd;
}
.shield-icon {
  background: #e7eef9;
  color: #608ab9;
  border: 1px solid #dce6f5;
}
.heart-icon {
  background: #f9ece7;
  color: #bb8672;
  border: 1px solid #f0e1da;
}
.instruction h3 {
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 6px;
}
.instruction p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 160px;
}
.instruction p strong {
  font-weight: 500;
  color: #526678;
}
.page-footer {
  max-width: 1152px;
  border-top: 1px solid var(--border);
  margin: auto;
  padding: 22px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #7c8897;
  gap: 15px;
}
.page-footer a {
  color: #4f78ad;
  font-weight: 500;
}
.page-footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-footer .icon {
  width: 12px;
  height: 12px;
  color: #8ca7ba;
}
.touch-controls {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.touch-controls button {
  width: 52px;
  height: 48px;
  border: 1px solid #a6c8d966;
  border-radius: 13px;
  color: #e0f3ff;
  background: #152c43bb;
  pointer-events: auto;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}
.touch-controls button:active {
  background: #517ea5cc;
}
.touch-controls #move-left .icon {
  transform: rotate(180deg);
}
.touch-controls > span {
  font-size: 7px;
  letter-spacing: 1px;
  color: #c0d5e3;
  pointer-events: none;
  text-shadow: 0 1px 3px #000;
}
@media (min-width: 651px) and (hover: hover) and (pointer: fine) {
  .game-shell:not(.has-touch) .touch-controls {
    display: none;
  }
}
.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.noscript-message {
  text-align: center;
  padding: 20px;
}
.game-shell:fullscreen {
  border: 0;
  border-radius: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.game-shell:fullscreen .game-stage {
  flex: 1;
  height: auto;
}
@media (min-width: 1500px) {
  .game-stage {
    height: 540px;
  }
  .intro {
    padding-top: 48px;
    padding-bottom: 35px;
  }
  .how-to-play {
    padding-top: 39px;
    padding-bottom: 40px;
  }
}
@media (max-width: 1050px) {
  .how-to-play {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .how-heading {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .how-heading h2 {
    margin: 0;
  }
  .page-footer {
    margin: 0 30px;
  }
  .game-overlay {
    padding-left: 5%;
  }
  .game-overlay h2 {
    font-size: 35px;
  }
}
@media (max-width: 650px) {
  .site-header {
    padding: 18px 20px;
  }
  .brand {
    gap: 14px;
  }
  .brand img {
    width: 77px;
    height: 28px;
  }
  .arcade-label {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .brand-divider {
    height: 19px;
  }
  .back-link {
    font-size: 0;
    gap: 0;
  }
  .back-link .icon {
    width: 22px;
    height: 22px;
  }
  main {
    padding: 0 16px;
  }
  .intro {
    padding: 27px 3px 24px;
    gap: 8px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  h1 {
    font-size: 43px;
    margin: 12px 0 10px;
    gap: 9px;
    letter-spacing: -2px;
  }
  .title-trail {
    display: none;
  }
  .intro-copy {
    font-size: 11px;
    max-width: 210px;
  }
  .best-score {
    gap: 7px;
    padding-top: 8px;
    align-self: center;
  }
  .trophy-circle {
    width: 28px;
    height: 28px;
  }
  .trophy-circle .icon {
    width: 15px;
    height: 15px;
  }
  .small-label {
    font-size: 6px;
    letter-spacing: 0.7px;
    max-width: 61px;
    line-height: 1.6;
    margin-bottom: 3px;
  }
  .best-score strong {
    font-size: 18px;
  }
  .best-score small {
    font-size: 8px;
    margin-left: 1px;
  }
  .game-shell {
    border-radius: 13px;
  }
  .game-toolbar {
    padding: 8px 13px;
  }
  .route-label {
    gap: 7px;
  }
  .route-label strong {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .route-label > span:not(.live-dot) {
    display: none;
  }
  .toolbar-actions {
    gap: 4px;
  }
  .tool-button {
    width: 29px;
    height: 30px;
  }
  .game-stage {
    height: 495px;
  }
  .game-overlay {
    padding: 24px;
    align-items: flex-start;
    background: linear-gradient(
      180deg,
      #112331f5,
      #112331bb 36%,
      #11233110 75%
    );
  }
  .start-card {
    max-width: 100%;
  }
  .mission-label {
    font-size: 8px;
    letter-spacing: 1.6px;
  }
  .game-overlay h2 {
    font-size: 32px;
    margin: 13px 0 12px;
    line-height: 1.1;
  }
  .game-overlay p {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .primary-button {
    min-width: 175px;
    min-height: 44px;
    padding: 10px 17px;
    font-size: 11px;
  }
  .start-note {
    font-size: 8px;
    margin-top: 10px;
  }
  .stage-caption {
    font-size: 7px;
    bottom: 17px;
    left: 18px;
    letter-spacing: 1.4px;
  }
  .game-overlay.centered {
    align-items: center;
  }
  .game-bottom-bar {
    padding: 12px;
    gap: 10px;
    font-size: 9px;
  }
  .desktop-controls,
  .pause-hint {
    display: none !important;
  }
  .mobile-controls {
    display: inline;
  }
  .game-bottom-bar .run-length {
    display: none;
  }
  .game-hud {
    top: 18px;
    left: 16px;
    right: 16px;
  }
  .hud-score {
    min-width: 70px;
  }
  .hud-score strong {
    font-size: 24px;
  }
  .hud-score > span {
    font-size: 7px;
  }
  .hud-health {
    min-width: 70px;
    gap: 4px;
    padding-top: 9px;
  }
  .hud-health .icon {
    width: 17px;
    height: 17px;
  }
  .hud-timer {
    font-size: 12px;
    padding: 7px 10px;
  }
  .shield-status {
    top: 72px;
  }
  .how-to-play {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 29px 6px;
  }
  .how-heading {
    display: block;
    margin-bottom: 1px;
  }
  .how-heading h2 {
    margin-top: 8px;
    font-size: 19px;
  }
  .instruction {
    gap: 14px;
  }
  .instruction h3 {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .instruction p {
    font-size: 11px;
    max-width: none;
  }
  .instruction-icon {
    width: 40px;
    height: 43px;
  }
  .page-footer {
    margin: 0 22px;
    padding: 20px 0 25px;
    align-items: flex-start;
    font-size: 9px;
    line-height: 1.6;
  }
  .page-footer > span:last-child {
    max-width: 155px;
    align-items: flex-start;
    text-align: right;
  }
  .page-footer .icon {
    margin-top: 3px;
  }
  .result-stats strong {
    font-size: 30px;
  }
}
@media (max-width: 360px) {
  .intro {
    flex-wrap: wrap;
    row-gap: 14px;
  }
  .intro > div:first-child {
    flex-basis: 100%;
  }
  .best-score {
    padding-top: 0;
  }
  .best-score .small-label {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Driving instruments stay inside the canvas on every screen size. */
.city-brand {
  position: absolute;
  bottom: 24px;
  left: 27px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  padding: 13px 16px;
  background: #0d2237b3;
  border: 1px solid #91b0cf2b;
  border-radius: 9px;
  backdrop-filter: blur(6px);
}
.city-brand img {
  width: 92px;
  height: auto;
}
.city-brand span {
  color: #cfdfed;
  font-size: 6px;
  letter-spacing: 1.7px;
}
.drive-instruments {
  position: absolute;
  right: 25px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  pointer-events: none;
  color: #eff7ff;
  text-shadow: 0 2px 5px #0c1b2d;
  background: #10263cad;
  border: 1px solid #7e9dba42;
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(6px);
}
.speed-gauge {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.speed-gauge strong {
  font-size: 32px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.speed-gauge > span {
  font-size: 8px;
  color: #b6cadd;
  letter-spacing: 1px;
}
.drive-readings {
  padding-left: 13px;
  border-left: 1px solid #7895ad55;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  color: #cfdfed;
  font-variant-numeric: tabular-nums;
}
.drive-readings > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.drive-readings .icon {
  width: 13px;
  height: 13px;
  color: #bbe7cd;
}
.drive-readings b {
  font-weight: 500;
}
.is-3d .game-stage {
  height: 540px;
}
.is-3d .game-overlay {
  background: linear-gradient(
    90deg,
    #112331f5,
    #112331d4 25%,
    #11233135 60%,
    transparent
  );
}
.is-3d .game-overlay.centered {
  background: #0d1e30bd;
}
.game-shell:fullscreen .game-stage {
  height: auto;
}
@media (max-width: 650px) {
  .is-3d .game-stage {
    height: 495px;
  }
  .is-3d .game-overlay {
    background: linear-gradient(
      180deg,
      #112331f5,
      #112331c4 38%,
      #11233100 77%
    );
  }
  .city-brand {
    bottom: 78px;
    left: 17px;
    padding: 8px 10px;
    gap: 5px;
  }
  .city-brand img {
    width: 61px;
  }
  .city-brand span {
    font-size: 4px;
    letter-spacing: 1px;
  }
  .drive-instruments {
    bottom: 80px;
    right: 15px;
    padding: 8px 10px;
    gap: 0;
  }
  .speed-gauge strong {
    font-size: 23px;
  }
  .speed-gauge > span {
    font-size: 6px;
  }
  .drive-readings {
    display: none;
  }
  .toolbar-actions {
    gap: 1px;
  }
}
@media (min-width: 651px) {
  .has-touch .city-brand,
  .has-touch .drive-instruments {
    bottom: 80px;
  }
}

.mission-hud {
  grid-column: 2;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  justify-self: center;
  color: #eff8f8;
  padding: 3px 0;
  pointer-events: none;
}
.mission-heading {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 0.15px;
}
.mission-heading strong {
  font-weight: 500;
  min-width: 0;
  line-height: 1.5;
}
.mission-heading > .icon {
  width: 14px;
  height: 14px;
  color: #bce7cd;
}
.mission-heading > span {
  margin-left: auto;
  color: #b7d7db;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mission-progress {
  height: 4px;
  margin-top: 9px;
  background: #7694a03b;
  border-radius: 3px;
  overflow: hidden;
}
.mission-progress > span {
  height: 100%;
  display: block;
  background: #bce7cd;
  border-radius: 3px;
  width: 0;
}
.game-overlay.hospital-result {
  justify-content: flex-start;
  text-align: left;
  background: linear-gradient(
    90deg,
    #102737f5,
    #102737e6 25%,
    #10273722 70%,
    transparent
  );
  backdrop-filter: none;
}
.hospital-result .result-card {
  max-width: 365px;
}
.hospital-result h2 {
  font-size: 33px;
}
.hospital-result .result-stats {
  justify-content: flex-start;
  gap: 35px;
}
@media (max-width: 1000px) {
  .game-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    min-height: 48px;
  }
  .toolbar-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .mission-hud {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 2px 0 5px;
  }
}
@media (max-width: 650px) {
  .mission-heading {
    grid-template-columns: 12px minmax(0, 1fr) auto;
    font-size: 9px;
    gap: 6px;
  }
  .mission-heading > span {
    font-size: 8px;
  }
  .mission-heading > .icon {
    width: 11px;
    height: 11px;
  }
  .mission-progress {
    margin-top: 7px;
  }
  .game-overlay.hospital-result {
    align-items: flex-end;
    background: linear-gradient(
      0deg,
      #102737fa 0%,
      #102737ec 45%,
      #10273700 89%
    );
    padding: 18px;
  }
  .hospital-result h2 {
    font-size: 27px;
    margin: 8px 0;
  }
  .hospital-result p {
    font-size: 10px;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  .hospital-result .result-stats {
    margin: 9px 0 12px;
  }
  .hospital-result .result-stats strong {
    font-size: 25px;
  }
  .hospital-result .result-stats span {
    font-size: 7px;
  }
  .hospital-result .mission-label {
    font-size: 7px;
  }
}

/* Mascot runner controls and clear action feedback. */
.hud-timer {
  color: #ffe3a0;
  border-color: #e8bf6150;
}
.hud-timer .icon {
  color: #ffd269;
}
.touch-lanes,
.touch-actions {
  display: flex;
  gap: 8px;
  pointer-events: none;
}
.touch-controls .touch-actions button {
  width: 58px;
  height: 54px;
  gap: 1px;
  align-content: center;
}
.touch-actions small {
  font-size: 7px;
  letter-spacing: 0.7px;
}
#jump-button .icon {
  transform: rotate(-90deg);
}
#slide-button .icon {
  transform: rotate(90deg);
}
.runner-action {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #e2f5ff;
  border: 1px solid #d5efff40;
  background: #183747b3;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  pointer-events: none;
}
.runner-action[data-action="jump"] {
  color: #fff0b9;
  border-color: #ffe49b70;
}
.runner-action[data-action="slide"] {
  color: #b9efff;
  border-color: #83d8f780;
}
.has-touch .runner-action {
  bottom: 87px;
}
.game-bottom-bar > span:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
@media (max-width: 650px) {
  .touch-controls {
    left: 14px;
    right: 14px;
  }
  .touch-lanes,
  .touch-actions {
    gap: 6px;
  }
  .touch-controls button {
    width: 43px;
    height: 49px;
  }
  .touch-controls .touch-actions button {
    width: 49px;
    height: 52px;
  }
  .touch-controls > span {
    display: none;
  }
  .runner-action,
  .has-touch .runner-action {
    bottom: 86px;
    font-size: 8px;
    padding: 5px 10px;
  }
  .city-brand {
    bottom: 117px;
  }
  .drive-instruments {
    bottom: 117px;
  }
  .game-bottom-bar {
    padding: 12px;
  }
  .game-bottom-bar > span:first-child {
    font-size: 8px;
    gap: 3px;
  }
  .game-overlay h2 {
    font-size: 34px;
  }
}
@media (max-width: 360px) {
  .game-overlay {
    padding: 20px;
  }
  .game-overlay h2 {
    font-size: 26px;
  }
  .mission-heading {
    font-size: 8px;
  }
  .mission-heading > span {
    font-size: 7px;
  }
}
