@font-face {
  font-family: 'Malu Display';
  src: url('./malu-display.woff2') format('woff2');
  font-display: swap;
}
:root {
  --hud-label-font: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --hud-number-font: 'Malu Display', 'Avenir Next', sans-serif;
}
:root {
  --paper: #fff9ed;
  --ink: #252820;
  --muted: #77796d;
  --red: #ef4a2d;
  --yellow: #ffd359;
  --line: #deded0;
  --green: #366756;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  background: #efefe5;
  background-image: radial-gradient(#d4d5c8 0.7px, transparent 0.7px);
  background-size: 12px 12px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus {
  outline: 3px solid #366756;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
.shell {
  max-width: 1200px;
  margin: auto;
  padding: 26px 32px 18px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-icon {
  flex: none;
  background: var(--red);
  color: var(--paper);
  border-radius: 12px;
  width: 43px;
  height: 43px;
  display: grid;
  align-items: center;
  justify-items: center;
  font-size: 28px;
  font-weight: 900;
}
.brand strong {
  display: block;
  font-size: 19px;
  letter-spacing: -0.5px;
}
.brand small {
  display: block;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
  letter-spacing: 2px;
}
.daily {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  border: 1px solid #cbd0bd;
  background: #e2e9d7;
  border-radius: 14px;
  padding: 7px 12px;
}
.daily b {
  color: var(--green);
}
.daily-row {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  line-height: 1.45;
}
.daily-row b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  grid-gap: 25px;
}
.arena {
  position: relative;
  height: calc(var(--view-height, 100vh) - 150px - var(--host-top, 0px) - var(--host-bottom, 0px));
  min-height: 320px;
  max-height: 740px;
  border: 2px solid var(--ink);
  border-radius: 23px;
  overflow: hidden;
  background: #c9d4c4;
  box-shadow: 6px 7px 0 rgba(36, 40, 29, 0.09);
  isolation: isolate;
}
.scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.scene canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.off {
  display: none !important;
}
.hud {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
  grid-gap: 10px;
  pointer-events: none;
}
.hud-box {
  justify-self: start;
  min-width: 0;
  width: var(--hud-box-width, max-content);
  height: var(--hud-box-height, auto);
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
  background: rgba(255, 249, 237, 0.937);
  border: 1px solid #fff;
  border-radius: 14px;
  padding: 10px 13px;
  box-shadow: 0 3px 0 rgba(39, 39, 26, 0.071);
}
.hud-caption {
  font-family: var(--hud-label-font);
  font-size: 10px;
  font-weight: 650;
  color: #6a7161;
  letter-spacing: 0.08em;
}
.hud-value {
  font-family: var(--hud-number-font);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
#score {
  display: inline-block;
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}
#late {
  font-variant-numeric: tabular-nums;
}
#remaining {
  display: inline-block;
  text-align: left;
  font-family: var(--hud-number-font);
}
.hud-box:not(.hud-right) {
  justify-content: flex-start;
  text-align: left;
}
.hud-right {
  text-align: right;
  margin-right: 0;
  justify-self: end;
}
.masthead-tools {
  display: flex;
  align-items: center;
  min-width: 0;
}
.sound-toggle {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 249, 237, 0.941);
  font-size: 19px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 0;
  touch-action: manipulation;
  box-shadow: 0 3px 0 rgba(39, 39, 26, 0.071);
}
.sound-toggle:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(39, 39, 26, 0.071);
}
.hud-value em {
  font-style: normal;
  color: var(--red);
}
.hud-tiny {
  font-family: var(--hud-label-font);
  font-size: 11px;
  margin-top: 2px;
}
#late {
  font-family: var(--hud-number-font);
  font-weight: 800;
}
#drive-clock {
  font-family: var(--hud-number-font);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.hud-value small {
  font-family: var(--hud-label-font);
  font-weight: 650;
}
.score-pill {
  position: absolute;
  top: 123px;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 7px 12px;
  font-family: var(--hud-label-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
  text-shadow:
    -1px -1px 0 var(--ink),
    1px -1px 0 var(--ink),
    -1px 1px 0 var(--ink),
    1px 1px 0 var(--ink);
  letter-spacing: 0;
  line-height: 34px;
  pointer-events: none;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.score-pill b,
.combo b {
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  transform-origin: left center;
}
.timebar {
  position: absolute;
  top: 103px;
  left: 20px;
  right: 20px;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.533);
  overflow: hidden;
  z-index: 2;
}
.timebar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transition: width 0.15s linear;
}
.hud-speed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-width: 0;
  color: var(--ink);
  white-space: nowrap;
}
.speed-icon {
  width: 28px;
  height: 28px;
  color: var(--green);
  flex: none;
}
.speed-number {
  display: inline-block;
  color: var(--yellow);
  font-family: var(--hud-number-font);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  width: 2ch;
  text-align: center;
  letter-spacing: 0;
}
.speed-unit {
  font-family: var(--hud-number-font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}
#eta {
  font-family: var(--hud-number-font);
  letter-spacing: 0;
  font-size: 22px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 7ch;
}
#eta.running-late {
  color: var(--red);
}
.combo {
  position: absolute;
  top: 123px;
  right: 20px;
  display: flex;
  align-items: center;
  padding: 7px 12px;
  line-height: 34px;
  font-family: var(--hud-label-font);
  letter-spacing: 0;
  color: var(--paper);
  text-shadow:
    -1px -1px 0 var(--ink),
    1px -1px 0 var(--ink),
    -1px 1px 0 var(--ink),
    1px 1px 0 var(--ink);
  font-size: 18px;
  font-weight: 600;
  z-index: 2;
  transition: opacity 0.2s;
  opacity: 0;
  pointer-events: none;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.toast {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 112px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 104px);
  padding: 4px 9px;
  background: rgba(33, 46, 55, 0.84);
  border: 1px solid rgba(255, 239, 208, 0.52);
  border-radius: 8px;
  text-align: center;
  color: #fff4dc;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
}
.toast small {
  display: block;
  font-size: 10px;
  color: #ffe0ae;
  margin-top: 2px;
}
.toast.show {
  opacity: 1;
}
@media (max-width: 420px) {
  .toast {
    top: 103px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}
.flash {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #fff1b7;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}
.flash.hit {
  animation: flash 0.45s ease-out;
}
@keyframes flash {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}
.controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 3;
  touch-action: none;
}
.steer-pair {
  display: flex;
}
.control {
  height: 61px;
  min-width: 68px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: rgba(255, 249, 237, 0.941);
  box-shadow: 0 4px 0 rgba(37, 40, 32, 0.396);
  font-size: 27px;
  font-weight: 900;
  user-select: none;
  touch-action: none;
}
.control:active,
.control.pressed {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(37, 40, 32, 0.396);
}
.control.brake {
  background: var(--yellow);
  font-size: 18px;
  padding: 0 25px;
}
.control span {
  display: block;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 500;
}
.braking .hud-speed {
  color: #b94721;
}
.veil {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: rgba(32, 49, 38, 0.325);
}
.start-card {
  width: 390px;
  max-width: 100%;
  text-align: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 19px;
  padding: 30px 26px 25px;
  box-shadow: 7px 8px 0 rgba(37, 40, 32, 0.388);
  transform: rotate(-1deg);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 700;
}
.eyebrow:before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.start-card h1 {
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: -3px;
  margin: 19px 0 15px;
  font-weight: 1000;
}
.start-card h1 span {
  color: var(--red);
}
.start-copy {
  font-size: 14px;
  line-height: 1.85;
  color: #666b5c;
  margin: 0;
}
.departure {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  background: #eeeee2;
  padding: 14px 9px;
  border-radius: 12px;
}
.departure div {
  font-size: 11px;
  color: var(--muted);
}
.departure b {
  font-size: 25px;
  color: var(--ink);
  display: block;
  line-height: 1.3;
}
.departure .arrow {
  font-size: 23px;
  color: var(--red);
}
.primary {
  width: 100%;
  border: 2px solid var(--ink);
  background: var(--red);
  color: var(--paper);
  font-size: 17px;
  font-weight: 850;
  padding: 14px;
  border-radius: 11px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.1s;
}
.primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}
.start-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 16px 0 0;
}
.sidebar {
  padding-top: 5px;
}
.observatory-toggle {
  display: none;
}
.sidebar h2 {
  font-size: 33px;
  line-height: 1.22;
  letter-spacing: -1.5px;
  margin: 23px 0 12px;
}
.sidebar h2 span {
  color: var(--red);
}
.editorial {
  font-size: 13px;
  color: #727668;
  line-height: 1.85;
  margin: 0 0 22px;
}
.obstacle-title {
  margin: 26px 0 11px;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}
.obstacle-title span {
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
}
.obstacle-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.obstacle-list li {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  font-size: 12px;
}
.badge {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #e4e8d6;
  display: grid;
  align-items: center;
  justify-items: center;
  font-size: 15px;
}
.obstacle-list li b {
  margin-left: auto;
  font-size: 11px;
  color: var(--red);
}
.obstacle-list li.visited .badge {
  background: var(--yellow);
}
.safety {
  margin-top: 22px;
  border-top: 1px dashed #bdc3af;
  padding-top: 14px;
  font-size: 11px;
  color: var(--green);
  line-height: 1.8;
}
.safety strong {
  display: block;
  font-size: 12px;
}
.footer {
  display: flex;
  justify-content: space-between;
  color: #878a7d;
  font-size: 10px;
  margin-top: 20px;
}
.result-veil {
  padding: 8px;
  background: rgba(27, 39, 27, 0.733);
  overflow-y: auto;
  align-items: flex-start;
}
.result-wrap {
  width: 440px;
  max-width: 100%;
  margin: auto;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}
.result-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 17px;
  padding: 15px 18px 12px;
  position: relative;
  overflow: hidden;
}
.result-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}
.result-card h2 {
  font-size: 27px;
  letter-spacing: -1px;
  margin: 10px 0 9px;
}
.result-card h2:after {
  content: '';
  height: 5px;
  display: block;
  width: 82px;
  background: var(--red);
  margin-top: 5px;
}
.result-arrival {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #edeee2;
  border-radius: 11px;
  padding: 9px 12px;
  margin-bottom: 9px;
}
.result-arrival small {
  font-size: 11px;
  color: var(--muted);
}
.arrival-number {
  font-size: 33px;
  line-height: 1.2;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.late-stamp.ontime {
  border-color: var(--green);
  color: var(--green);
}
.late-days {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 7px;
}
.control.restart {
  width: 61px;
  min-width: 61px;
  height: 61px;
  flex: 0 0 61px;
  align-self: center;
  border-radius: 50%;
  padding: 0;
  font-size: 32px;
  line-height: 1;
  touch-action: manipulation;
}
.reward-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.reward-pop {
  position: absolute;
  width: max-content;
  max-width: 95%;
  color: #ffd359;
  font-size: 26px;
  font-weight: 950;
  text-shadow:
    1px 2px #252820,
    -1px -1px #252820;
  animation: reward-float 0.9s ease-out forwards;
  transform: translate(-50%, -100%);
}
@keyframes reward-float {
  0% {
    opacity: 1;
    transform: translate(-50%, -100%) scale(0.85);
  }
  20% {
    transform: translate(-50%, -115%) scale(1.06);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-100% - 65px)) scale(1);
  }
}
.late-stamp {
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  padding: 6px 8px;
  transform: rotate(-9deg);
  border-radius: 7px;
}
.excuse {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 800;
  margin: 0 0 9px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.result-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px dashed #c9cbbd;
  border-bottom: 1px dashed #c9cbbd;
  padding: 7px 0;
  margin-bottom: 8px;
}
.result-metrics div {
  text-align: center;
  border-right: 1px solid var(--line);
}
.result-metrics div:last-child {
  border: 0;
}
.result-metrics b {
  display: block;
  font-size: 19px;
}
.result-metrics small {
  font-size: 10px;
  color: var(--muted);
}
.encounter-heading {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 4px;
}
.encounter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.65;
}
.encounter-list li {
  display: flex;
  justify-content: space-between;
}
.result-card.ontime .encounter-list {
  columns: 2;
  column-gap: 12px;
}
.result-card.ontime .encounter-list li {
  break-inside: avoid;
}
.card-safe {
  font-size: 10px;
  color: var(--green);
  text-align: center;
  margin: 7px 0 0;
}
.result-actions {
  background: #eeefe4;
  border: 2px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  margin: 0 6px;
  padding: 8px;
  display: grid;
  grid-gap: 6px;
}
.result-actions button {
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  width: 100%;
  padding: 10px 8px;
  font-weight: 750;
  font-size: 13px;
  background: var(--paper);
}
.result-actions .again {
  background: var(--red);
  color: var(--paper);
  border: 2px solid var(--ink);
  font-size: 18px;
  padding: 14px;
  box-shadow: 0 2px 0 var(--ink);
}
.result-actions .save {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}
.result-share-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 6px;
}
.result-share-row button {
  padding: 9px 5px;
  font-size: 12px;
}
.action-feedback {
  font-size: 11px;
  color: var(--green);
  text-align: center;
  min-height: 0;
}
.action-feedback:empty {
  display: none;
}
.pause-label {
  display: none;
  position: absolute;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  padding: 15px;
  border-radius: 12px;
  z-index: 4;
  font-weight: 700;
}
.paused .pause-label {
  display: block;
}
@media (min-width: 1250px) {
  .arena {
    height: 730px;
  }
}
@media (max-width: 850px) {
  .shell {
    max-width: 660px;
    padding: 18px 16px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    display: block;
    margin-top: 20px;
    padding: 0;
    border: 1px solid #cfd3c4;
    border-radius: 15px;
    background: var(--paper);
    overflow: hidden;
  }
  .observatory-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: #e2e9d7;
    padding: 15px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 800;
    touch-action: manipulation;
  }
  .observatory-toggle:after {
    content: '▾';
    font-size: 18px;
  }
  .sidebar.mobile-collapsed .observatory-toggle:after {
    content: '▸';
  }
  .sidebar-content {
    padding: 16px;
  }
  .sidebar.mobile-collapsed .sidebar-content {
    display: none;
  }
  .sidebar h2 {
    margin-top: 19px;
  }
  .arena {
    height: calc(
      var(--view-height, 100vh) - 100px - var(--host-top, 0px) - var(--host-bottom, 0px)
    );
    min-height: 280px;
    max-height: 800px;
  }
  .masthead {
    margin-bottom: 15px;
  }
  .footer {
    margin-top: 12px;
  }
  .brand strong {
    font-size: 16px;
  }
  .brand small {
    font-size: 9px;
  }
  .daily {
    font-size: 11px;
    padding: 8px 10px;
  }
}
@media (max-width: 420px) {
  .shell {
    padding: 12px 10px;
  }
  .brand-icon {
    height: 35px;
    width: 35px;
    font-size: 24px;
  }
  .brand {
  }
  .brand strong {
    font-size: 14px;
  }
  .brand small {
    letter-spacing: 0.5px;
    font-size: 8px;
  }
  .daily {
    font-size: 10px;
    padding: 7px 8px;
    line-height: 1.4;
  }
  .arena {
    border-radius: 18px;
  }
  .hud {
    top: 12px;
    right: 12px;
    left: 12px;
  }
  .timebar {
    top: 95px;
    left: 15px;
    right: 15px;
  }
  .control.restart {
    width: 57px;
    min-width: 57px;
    height: 57px;
    flex-basis: 57px;
  }
  .combo {
    top: 123px;
  }
  .masthead {
    flex-wrap: nowrap;
  }
  .masthead-tools {
    margin-left: auto;
  }
  .sound-toggle {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
  .veil {
    padding: 18px;
  }
  .start-card {
    padding: 23px 19px 18px;
  }
  .start-card h1 {
    font-size: 43px;
  }
  .controls {
    left: 12px;
    right: 12px;
    bottom: 13px;
  }
  .control {
    min-width: 60px;
    height: 57px;
  }
  .control.brake {
    padding: 0 14px;
  }
  .result-veil {
    padding: 6px;
  }
  .result-card {
    padding: 12px 14px 10px;
  }
  .result-card h2 {
    font-size: 25px;
    margin: 8px 0;
  }
  .result-arrival {
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  .arrival-number {
    font-size: 24px;
    font-size: clamp(24px, 6.8vw, 31px);
  }
  .excuse {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .result-metrics {
    padding: 6px 0;
    margin-bottom: 7px;
  }
  .result-top {
    font-size: 9px;
    padding-bottom: 6px;
  }
  .result-actions {
    grid-gap: 5px;
    padding: 7px;
  }
  .card-safe {
    font-size: 9px;
    margin-top: 6px;
  }
  .footer {
    font-size: 9px;
  }
}
@media (max-height: 760px) {
  #start-screen {
    overflow-y: auto;
    align-items: flex-start;
  }
  .start-card {
    margin: auto;
  }
  .start-card h1 {
    margin: 12px 0 10px;
  }
  .departure {
    margin: 16px 0;
  }
  .start-hint {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .start-card {
    transform: none;
  }
  .flash.hit {
    animation: none;
  }
}
@media (max-width: 520px) {
  .hud {
    grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
    grid-gap: 6px;
  }
  .hud-box {
    padding: 8px 4px;
  }
  .hud-value {
    font-size: 20px;
  }
  #eta {
    font-size: 17px;
  }
  .hud-speed {
    padding: 0;
  }
  .speed-icon {
    width: 28px;
    height: 28px;
  }
  .speed-number {
    font-size: 40px;
  }
}
@media (max-width: 360px) {
  .score-pill,
  .combo {
    font-size: 18px;
  }
  .score-pill b,
  .combo b {
    font-size: 26px;
  }
}
@media (max-width: 560px) {
  .shell {
    padding: 12px 10px;
  }
  .brand-icon {
    height: 35px;
    width: 35px;
    font-size: 24px;
  }
  .brand {
  }
  .brand strong {
    font-size: 14px;
  }
  .brand small {
    letter-spacing: 0.5px;
    font-size: 8px;
  }
  .daily {
    font-size: 10px;
    padding: 6px 8px;
    line-height: 1.4;
  }
  .masthead {
    flex-wrap: nowrap;
  }
  .masthead-tools {
    margin-left: auto;
  }
}
.footer.site-info {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.8;
  -webkit-user-select: text;
  user-select: text;
}
.site-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--green);
}
.site-info h3 {
  margin: 16px 0 6px;
  font-size: 14px;
}
.site-info p {
  margin: 0;
  color: var(--muted);
}
.site-info ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
#start-screen {
  overflow-y: auto;
  align-items: flex-start;
}
#start-screen .start-card {
  margin: auto;
}
@supports (height: 100dvh) {
  :root {
    --view-height: 100dvh;
  }
}
.shell {
  padding-top: calc(var(--shell-top, 26px) + var(--host-top, 0px));
  padding-right: calc(var(--shell-side, 32px) + var(--host-right, 0px));
  padding-bottom: calc(var(--shell-bottom, 18px) + var(--host-bottom, 0px));
  padding-left: calc(var(--shell-side, 32px) + var(--host-left, 0px));
}
@supports (padding: env(safe-area-inset-top)) {
  :root {
    --host-top: env(safe-area-inset-top);
    --host-right: env(safe-area-inset-right);
    --host-bottom: env(safe-area-inset-bottom);
    --host-left: env(safe-area-inset-left);
  }
}
.brand-icon {
  margin-right: 11px;
}
.masthead-tools {
  margin-left: 6px;
}
.daily {
  margin-right: 8px;
}
.daily-row b {
  padding: 0 3px;
}
.eyebrow:before,
.obstacle-list .badge {
  margin-right: 8px;
}
.departure .arrow {
  margin: 0 16px;
}
.score-pill b,
.combo span {
  margin-left: 9px;
}
.steer-pair button + button {
  margin-left: 10px;
}
.scene {
  touch-action: none;
}
.session-feedback {
  font-size: 11px;
  color: var(--green);
  margin: 0 0 8px;
}
.session-feedback:empty {
  display: none;
}
.result-share-row button,
.sound-toggle {
  min-height: 44px;
  min-width: 44px;
}
#result-title:focus,
#arena:focus {
  outline: none;
}
@media (max-width: 850px) {
  .shell {
    --shell-top: 18px;
    --shell-side: 16px;
  }
}
@media (max-width: 560px) {
  .shell {
    --shell-top: 12px;
    --shell-side: 10px;
  }
  .brand-icon {
    margin-right: 7px;
  }
}
@media (max-width: 360px) {
  .controls {
    left: 8px;
    right: 8px;
  }
  .control {
    min-width: 46px;
  }
  .steer-pair button + button {
    margin-left: 5px;
  }
  .control.restart {
    width: 48px;
    min-width: 48px;
    flex-basis: 48px;
  }
  .control.brake {
    padding: 0 6px;
  }
  .arrival-number {
    font-size: 22px;
  }
}
@media (max-height: 600px) {
  .arena {
    height: calc(var(--view-height, 100vh) - 84px - var(--host-top, 0px) - var(--host-bottom, 0px));
    min-height: 250px;
  }
  .start-card h1 {
    font-size: 32px;
  }
  .start-card {
    padding: 14px;
  }
  .departure {
    margin: 8px 0;
    padding: 6px;
  }
  #start-screen {
    padding: 8px;
  }
}

#start-status:empty {
  display: none;
}
