:root {
  font: 16px/1.5 system-ui, sans-serif;
  color: #fff3d8;
  background: #103743;
  color-scheme: dark;
  --paper: #fff3d8;
  --muted: #c5d8d5;
  --ink: #14353f;
  --gold: #ffce80;
  --dark: #132d37;
  --edge: #6a9293;
  --field-edge: #d3a875;
  --capture: 0%;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0 }
a { color: inherit; text-underline-offset: .23em }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #fff3d8; outline-offset: 3px }
button {
  color: var(--paper);
  font: 750 15px/1.1 system-ui, sans-serif;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  background: #224b54;
  border: 1px solid #7d9997;
}
button:hover { background: #2b6167 }
button:active { background: #387179 }
svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.mast { border-bottom: 1px solid #65929366; background: #12323d }
.mast nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 48px, 1492px);
  margin-inline: auto;
  gap: clamp(12px, 4vw, 52px);
  min-height: 45px;
}
.mast nav a { width: fit-content; font-size: 15px; font-weight: 720; text-decoration-color: #9dbcb7 }
.mast nav a:last-child { justify-self: end }
.mast .brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--gold); padding-inline: .16em }
main > h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.55rem);
  line-height: .96;
  letter-spacing: -.077em;
  font-weight: 950;
  margin: 9px auto 9px;
  width: min(100% - 48px, 1492px);
}
.garage {
  max-width: 1540px;
  margin: auto;
  display: grid;
  grid-template-columns: clamp(120px, 13vw, 192px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 26px);
  padding: 0 24px;
}
.ledger {
  align-self: start;
  min-width: 0;
  color: var(--muted);
  border-top: 3px solid var(--field-edge);
  border-bottom: 1px solid #6a929388;
  padding: 12px 0 13px;
}
.ledger strong { font-size: 15px; letter-spacing: -.02em }
.ledger output {
  display: block;
  color: var(--gold);
  font-size: clamp(2.5rem, 4vw, 4.3rem);
  font-weight: 930;
  letter-spacing: -.09em;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
}
.ledger-rule { border-top: 1px solid #6a929388; margin: 14px 0 11px }
.ledger p { color: var(--paper); margin: 4px 0 0; font-size: 17px; font-weight: 830; line-height: 1.22 }
#game {
  --safe-t: 0px;
  --safe-r: 0px;
  --safe-b: 0px;
  --safe-l: 0px;
  position: relative;
  min-width: 0;
  overflow: hidden;
  height: 77dvh;
  min-height: 255px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background: #203b47;
  box-shadow: 0 0 0 1px #7f9a93, 0 13px 36px #071d27a3;
  isolation: isolate;
}
#city { width: 100%; height: 100%; position: absolute; inset: 0; display: block }
#game button { -webkit-tap-highlight-color: transparent; }
#game::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: 0;
  border: 1px solid #d5b68432;
  box-shadow: inset 0 0 46px #111f2a76;
}
.toolbar, .hud, .wheel, .briefing, .notice { position: absolute; z-index: 2 }
.toolbar {
  top: calc(10px + var(--safe-t));
  right: calc(10px + var(--safe-r));
  display: flex;
  gap: 5px;
  z-index: 5;
}
.toolbar button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-color: #adae93;
  background: #173642;
  box-shadow: 2px 3px 0 #142a33a6;
}
.toolbar button:hover { background: #2b6167 }
.hud {
  top: calc(10px + var(--safe-t));
  left: calc(10px + var(--safe-l));
  right: calc(116px + var(--safe-r));
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}
.hud div {
  padding: 4px 9px;
  min-height: 47px;
  color: var(--paper);
  background: #112e3a;
  border-top: 2px solid #aeb8a1;
  box-shadow: 2px 3px 0 #101f29a6;
  display: grid;
  align-content: center;
  min-width: 0;
}
.hud span { color: #f0dfc2; font-size: 14px; font-weight: 670; line-height: 1.2; white-space: nowrap }
.hud .scoreboard { border-top-color: var(--gold); min-width: 59px }
.field-task {
  display: grid;
  align-content: center;
  gap: 3px;
  align-self: stretch;
  min-height: 34px;
  margin: 0;
  padding: 5px 10px;
  border-left: 3px solid var(--gold);
  background: #112e3a;
  color: var(--paper);
  font-size: 15px;
  font-weight: 790;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.hud .field-task span { color: inherit; font: inherit; white-space: normal }
.field-task:has([data-open="true"]) { border-color: #b7ecc0; color: #b7ecc0 }
#field-goal { max-width: 32ch; color: #b7ecc0; font-size: 15px; font-weight: 850 }
#field-goal:not([hidden]) { display: block }
.scoreboard strong { font-size: 23px; color: var(--gold); font-variant-numeric: tabular-nums; line-height: .94; letter-spacing: -.05em }
.condition meter { width: 100%; height: 12px; min-width: 47px; display: block; accent-color: #d6e8ac }
.condition meter::-webkit-meter-bar { background: #3a555b; border: 0; border-radius: 0 }
.condition meter::-webkit-meter-optimum-value { background: #d6e8ac }
.condition meter::-moz-meter-bar { background: #d6e8ac }
.pursuit i {
  display: block;
  width: 56px;
  height: 5px;
  margin-top: 5px;
  background: linear-gradient(90deg, #fd7857 var(--capture), transparent var(--capture)),
    repeating-linear-gradient(90deg, transparent 0 8px, #112e3a 8px 11px),
    linear-gradient(90deg, #ffc983 var(--level, 17%), #597479 var(--level, 17%));
}
.pursuit[data-boxed="true"] { border-color: #ff9174 }
.pursuit[data-boxed="true"] span { color: #ffbb9b }
.pursuit[data-boxed="true"] i {
  background: linear-gradient(90deg, #ff9174 var(--capture), #465a62 var(--capture));
}
.pursuit i[data-level="2"] { --level: 37% }
.pursuit i[data-level="3"] { --level: 56% }
.pursuit i[data-level="4"] { --level: 77% }
.pursuit i[data-level="5"] { --level: 99% }
.wheel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  bottom: calc(11px + var(--safe-b));
  left: calc(50% + (var(--safe-l) - var(--safe-r)) / 2);
  width: min(calc(100% - 16px - var(--safe-l) - var(--safe-r)), 455px);
  transform: translateX(-50%);
}
.wheel button {
  height: 59px;
  padding: 0 3px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid #8a9e99;
  border-bottom: 3px solid #081f2a;
  box-shadow: 2px 3px 0 #101f29a6;
  background: #173a47;
}
.wheel button[data-drive="brake"] { border-color: #d0a474; border-bottom-color: #583d2e }
.wheel button[data-held], .wheel button:active { background: #ffca7e; color: #153340 }
@media (hover: hover) {
  .wheel button:hover:not([data-held]):not(:active) { background: #255661 }
}
.briefing {
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  padding: calc(54px + var(--safe-t)) calc(12px + var(--safe-r)) calc(16px + var(--safe-b)) calc(12px + var(--safe-l));
  background: #091c2759;
  pointer-events: auto;
}
#menu {
  background: linear-gradient(90deg, #11222f8c, #162e3b15 68%, #11293618);
  justify-items: start;
  padding-left: calc(clamp(26px, 5.9%, 100px) + var(--safe-l));
  pointer-events: none;
}
.road-sign {
  position: relative;
  background: #183541;
  color: var(--paper);
  border: 1px solid #ebc996;
  border-top: 5px solid var(--gold);
  box-shadow: 8px 8px 0 #112632ba, inset 0 -7px #122e3a;
  padding: 15px 20px 19px;
  pointer-events: auto;
  max-width: min(100%, 465px);
}
#menu .road-sign { max-width: min(100%, 520px); padding: clamp(13px, 3vw, 38px) clamp(18px, 3.8vw, 48px) clamp(18px, 3vw, 36px) }
.road-sign::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 11px;
  width: 46px;
  height: 7px;
  pointer-events: none;
  background: repeating-linear-gradient(-54deg, var(--gold) 0 4px, transparent 4px 8px);
  opacity: .8;
}
.sign-title {
  color: var(--paper);
  font-size: clamp(2.2rem, 5.35vw, 5.2rem);
  line-height: .86;
  letter-spacing: -.078em;
  font-weight: 950;
  margin: .08em 0 .24em;
}
#paused .sign-title, #result .sign-title { font-size: clamp(2.35rem, 6vw, 4.6rem) }
.sign-note {
  color: var(--gold);
  font-size: 14px;
  font-weight: 820;
  letter-spacing: .03em;
  margin: 0 0 7px;
}
.primary {
  background: var(--gold);
  color: #18333d;
  border: 1px solid #ffd99c;
  box-shadow: 2px 3px 0 #806449;
  padding: 0 15px;
  font-size: 17px;
  font-weight: 900;
}
.primary:hover, .primary:active { background: #ffe4ab }
.primary span { margin-left: .5em; font-size: 1.12em }
#menu .primary { min-width: 125px; min-height: 53px }
.sign-actions, .settings { display: flex; gap: 6px; flex-wrap: wrap }
#menu-route { margin-bottom: 5px }
#menu-goal { max-width: 32ch; margin: 0 0 12px; font-size: 16px; font-weight: 720; line-height: 1.25 }
#pause-goal { display: block; margin-top: 3px; color: var(--paper); line-height: 1.25 }
#result-stars { margin: 0 0 10px; font-size: 15px; font-weight: 780; }
#route-map {
  z-index: 6;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: calc(12px + var(--safe-t)) calc(12px + var(--safe-r)) calc(12px + var(--safe-b)) calc(12px + var(--safe-l));
  background: #102731c9;
}
#game[data-map="open"] { touch-action: pan-y }
.route-map-sign { width: min(100%, 680px); max-width: 100%; padding: 14px 16px 16px; }
.map-header, .map-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.map-header h2 { font-size: clamp(24px, 5vw, 37px); letter-spacing: -.05em; line-height: 1; margin: 0; }
.map-header button { padding: 0 10px; }
.map-nav { margin-block: 8px; }
#map-district { color: var(--gold); margin: 0; font-size: 19px; font-weight: 860; text-align: center; }
.map-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); gap: 12px; }
.map-preview { min-width: 0; }
#map-canvas { display: block; width: 100%; border: 1px solid #76918e; }
#map-cue, #map-preview-route, #map-progress { font-size: 14px; margin: 6px 0 0; line-height: 1.25; max-width: 100%; }
#map-preview-route { color: var(--gold); font-weight: 780; }
#map-progress { color: var(--gold); font-weight: 750; }
.map-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; padding-right: 39px; }
.map-footer p { margin: 0 }
.map-footer button { padding: 0 8px; white-space: nowrap; }
#map-routes { display: grid; align-content: start; gap: 5px; list-style: none; margin: 0; padding: 0; }
#map-routes button { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; width: 100%; padding: 5px 10px; }
.map-stars { color: var(--gold); white-space: nowrap; font-size: 14px; }
#route-map button:disabled { background: #152f3a; color: #b1c3ba; border-color: #668889; cursor: default; }
#route-map button:disabled .map-stars { color: #b1c3ba; }
@media (max-width: 540px) {
  .map-body { display: block; }
  .map-preview { display: flow-root; min-height: 78px; margin-bottom: 8px; }
  #map-canvas { float: left; width: auto; height: 78px; margin-right: 9px; }
  #map-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #map-routes button { flex-wrap: wrap; gap: 2px 6px; min-height: 49px; }
  .map-footer { padding-right: 0; }
  .route-map-sign::after { display: none; }
}
@media (max-height: 500px) and (min-width: 541px) {
  #route-map { place-items: start center; padding-block: calc(8px + var(--safe-t)) calc(8px + var(--safe-b)); }
  .route-map-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding-block: 7px 9px; }
  .map-header h2 { font-size: clamp(24px, 4vw, 33px); }
  .map-nav { margin: 0; }
  .map-body, .map-footer { grid-column: 1 / -1; }
  .map-footer { margin-top: 0; }
  #map-canvas { height: 84px; width: auto; max-width: 100%; }
  #map-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #map-routes button { flex-wrap: wrap; gap: 2px 6px; }
}
.sign-actions button:not(.primary), .settings button { padding: 0 9px }
.settings { margin-top: 8px }
#game[data-mode="paused"] { touch-action: pan-y }
#paused { pointer-events: auto; overflow: auto; overscroll-behavior: contain; touch-action: pan-y; padding-top: calc(45px + var(--safe-t)) }
#paused .road-sign { width: min(100%, 400px) }
#result-reason { font-weight: 660; margin: 0 0 5px }
#result-score { font-size: 1.45rem; font-weight: 900; color: var(--gold); margin: 0 0 4px; letter-spacing: -.04em }
#result-route, #result-progress, #result-tip { margin: 0 0 8px; font-size: 14px; line-height: 1.3 }
#result-progress { color: var(--gold); font-weight: 820 }
#result-tip { max-width: 35ch; font-weight: 690 }
#result #share-status { display: block; min-width: 0; max-width: 29ch; font-size: 14px; overflow-wrap: anywhere }
#result #share-status:empty { display: none }
.notice {
  bottom: calc(80px + var(--safe-b));
  left: calc(50% + (var(--safe-l) - var(--safe-r)) / 2);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 22px - var(--safe-l) - var(--safe-r));
  line-height: 1.2;
  text-align: center;
  background: #122e3a;
  color: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 8px 13px;
  font-size: 15px;
  font-weight: 800;
  pointer-events: none;
}
#game:fullscreen, #game.full-frame {
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  height: 100%;
  width: 100%;
  min-height: 0;
}
#game.full-frame { position: fixed; inset: 0; z-index: 90; height: 100dvh }
.immersive { overflow: hidden }

.roadbook {
  width: min(calc(100% - 48px), 1170px);
  margin: clamp(50px, 8vw, 115px) auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(24px, 6vw, 100px);
  align-items: start;
}
.roadbook section { max-width: 64ch; border-top: 2px solid #8aaba5; padding-top: 14px }
.roadbook section:nth-of-type(even) { grid-column: 2 }
.roadbook section:nth-of-type(odd) { grid-column: 1 }
.roadbook h2, .legal h1 {
  font-size: clamp(1.75rem, 4.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.064em;
  font-weight: 930;
  margin: 0 0 16px;
}
.roadbook p, .roadbook li, .legal p { color: #ebeee5; font-size: 17px; line-height: 1.65 }
.roadbook p { margin: 0 0 14px }
.roadbook ul { padding-left: 1.2em }
.roadbook li { padding-left: 4px; margin-bottom: 10px }
.roadbook li::marker { color: var(--gold) }
.roadbook strong { color: var(--gold) }
.roadbook figure { margin: 0; align-self: center; justify-self: center; width: min(100%, 330px) }
.roadbook figure img { display: block; width: 100%; height: auto }
.roadbook .object-right { grid-column: 2; grid-row: 1 }
.roadbook .object-left { grid-column: 1; grid-row: 2 }
.roadbook .advice { margin-top: 26px }
.roadbook .questions { margin-top: 54px }
.roadbook details { border-bottom: 1px solid #6b9390; padding: 12px 0 9px }
.roadbook details summary { min-height: 32px; cursor: pointer; font-weight: 770 }
.roadbook details p { margin: 7px 0 }
.site-footer { background: #122f3a; border-top: 1px solid #6a9293; color: var(--muted) }
.footer-inner {
  width: min(calc(100% - 48px), 1170px);
  margin: auto;
  padding: 26px 0 35px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr 1fr;
  gap: 18px;
}
.footer-inner a { display: block; width: fit-content; margin-bottom: 8px }
.footer-inner .brand { color: var(--paper); font-size: 21px; font-weight: 900; letter-spacing: -.05em }
.footer-inner p { margin: 0 }
.footer-inner summary { cursor: pointer; padding-bottom: 7px }
.legal { width: min(calc(100% - 40px), 740px); margin: clamp(25px, 7vw, 85px) auto }
.legal h2 { font-size: 1.42rem; letter-spacing: -.035em; margin: 29px 0 3px }
.legal p { margin: 8px 0 14px }
.legal a { color: var(--gold) }

@media (max-width: 790px), (pointer: coarse) and (max-width: 950px) {
  .mast nav { width: calc(100% - 22px); gap: 8px; min-height: 43px }
  .mast nav a { font-size: 14px }
  .mast .brand { font-size: 18px }
  main > h1 { width: calc(100% - 24px); margin: 9px auto 10px; font-size: clamp(2.3rem, 8vw, 3.35rem) }
  .garage { display: flex; flex-direction: column; padding: 0 6px; gap: 12px }
  .ledger { order: 2; display: grid; align-items: center; grid-template-columns: auto 1fr auto; gap: 0 9px; width: 100%; padding: 7px 6px 9px }
  .ledger strong:nth-of-type(2) { grid-column: 3; grid-row: 1; font-size: 14px }
  .ledger output { grid-column: 1 / span 2; grid-row: 2; font-size: 2.45rem }
  .ledger p { grid-column: 3; grid-row: 2; font-size: 15px; margin: 0 }
  .ledger-rule { display: none }
  #game { height: 76dvh }
  .wheel { width: calc(100% - 14px - var(--safe-l) - var(--safe-r)); gap: 5px }
}
@media (max-width: 570px) {
  #menu {
    place-items: start center;
    padding: calc(57px + var(--safe-t)) calc(8px + var(--safe-r)) 0 calc(8px + var(--safe-l));
    background: linear-gradient(180deg, #11222f82, #162e3b0a 69%);
  }
  #menu .sign-title { font-size: clamp(2.7rem, 11vw, 3.6rem) }
  #menu .road-sign { width: min(100% - 28px, 291px); padding: 13px 17px 18px }
  #menu .primary { min-height: 48px }
  .toolbar { right: calc(7px + var(--safe-r)); top: calc(7px + var(--safe-t)); gap: 4px }
  .toolbar button { width: 44px; height: 44px }
  .hud { left: calc(7px + var(--safe-l)); top: calc(7px + var(--safe-t)); right: calc(102px + var(--safe-r)); gap: 4px }
  .hud div { padding: 4px 6px; min-height: 44px }
  .hud .scoreboard { min-width: 55px }
  .hud span { font-size: 14px }
  .pursuit i { width: 53px }
  .wheel button { flex-direction: column; gap: 1px }
  .wheel button svg { width: 21px; height: 21px }
  .roadbook { width: calc(100% - 30px); display: flex; flex-direction: column; gap: 24px; margin-block: 51px }
  .roadbook section { width: 100% }
  .roadbook .advice, .roadbook .questions { margin-top: 0 }
  .roadbook figure { align-self: center; width: min(70%, 265px) }
  .footer-inner { width: calc(100% - 30px); grid-template-columns: 1fr 1fr 1fr; gap: 14px 8px }
  .footer-inner > div:first-child { grid-column: 1 / -1 }
}
@media (max-height: 500px) {
  .mast nav { min-height: 39px }
  main > h1 { margin-block: 5px 8px; font-size: 2.35rem }
  #game { height: 74dvh }
  #menu { padding-top: calc(16px + var(--safe-t)) }
  #menu .road-sign { padding: 12px 19px 16px }
  .sign-title, #paused .sign-title, #result .sign-title { font-size: 2.5rem }
  #paused { padding: calc(12px + var(--safe-t)) calc(55px + var(--safe-r)) calc(12px + var(--safe-b)) calc(16px + var(--safe-l)) }
  #paused .road-sign {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    width: min(100%, 700px);
    max-width: 100%;
    padding: 11px 14px 15px;
  }
  #paused .sign-title { font-size: clamp(1.95rem, 5vw, 2.45rem); margin: 0 }
  #paused .settings { grid-column: 1 / -1 }
  #paused .sign-actions { grid-column: 2; grid-row: 1 / span 2 }
  .pause-task { grid-column: 1; grid-row: 2; margin: 4px 0 0 }
  .wheel button { height: 46px; flex-direction: row; gap: 3px }
  .notice { bottom: calc(64px + var(--safe-b)) }
  #game.full-frame, #game:fullscreen { height: 100dvh }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 950px) {
  .garage {
    display: grid;
    grid-template-columns: clamp(95px, 15vw, 126px) minmax(0, 1fr);
    gap: 10px;
  }
  .ledger { display: block; order: 0; padding: 7px 3px 9px }
  .ledger p { margin-top: 4px }
  .ledger output { font-size: 2.45rem }
  .ledger-rule { display: block; margin: 9px 0 7px }
  .wheel { width: min(calc(100% - 14px - var(--safe-l) - var(--safe-r)), 368px) }
}

#result { justify-items: start; align-items: start; padding: calc(60px + var(--safe-t)) 16px 14px calc(clamp(16px, 5%, 66px) + var(--safe-l)); background: linear-gradient(100deg, #10263769, #0b253122 69%) }
#result .road-sign { border-top-color: #e59872 }
#result .sign-title { font-size: clamp(2.35rem, 4.55vw, 4rem) }
#game[data-mode="won"] #result .road-sign { background: #e9e9c8; color: #173642; border-color: #b7ecc0; border-top-color: #a4d5a5; box-shadow: 8px 8px 0 #182c32a6 }
#game[data-mode="won"] #result :is(.sign-title, .sign-note, #result-score) { color: #173642 }
#game[data-mode="won"] #result .road-sign::after { opacity: .7; background: repeating-linear-gradient(-54deg, #44725e 0 4px, transparent 4px 8px) }
@media (max-width: 570px) {
  #result { justify-items: center; padding: calc(57px + var(--safe-t)) 12px 12px; background: linear-gradient(180deg, #10263773, #0b253113 68%) }
}
@media (max-height: 500px) {
  #game:is([data-mode="over"], [data-mode="won"]) { touch-action: pan-y }
  #result {
    overflow: auto;
    overscroll-behavior: contain;
    padding-top: calc(10px + var(--safe-t));
    padding-bottom: calc(10px + var(--safe-b));
  }
  #result .road-sign { width: min(100%, 430px); padding: 10px 14px 14px }
  #result .sign-title { font-size: clamp(2rem, 4vw, 2.7rem); margin: 0 0 7px }
  #result-reason, #result-route, #result-progress, #result-tip { margin-bottom: 5px }
  #result-tip { max-width: 50ch }
}
.roadbook th, .roadbook td {
  border-bottom: 1px solid #6b9390;
  padding: 8px 8px 8px 0;
  text-align: left;
  vertical-align: top;
}
.roadbook table { width: 100%; margin: 0 0 16px; border-collapse: collapse; overflow-wrap: anywhere }
.roadbook th { color: var(--gold) }
.roadbook section:nth-of-type(n+3) { margin-top: 26px }
.english-note { font-weight: 750 }
.site-footer [aria-current="page"] { color: var(--gold); font-weight: 750 }
#game button, .ledger, .sign-title, .map-nav p { overflow-wrap: anywhere }
.sign-actions button, .settings button { max-width: 100% }
.map-footer button { flex: 0 0 auto; max-width: 52%; white-space: normal }
@media (max-width: 570px) {
  main:has(.garage) > h1 { margin-block: 7px; font-size: clamp(1.65rem, 6.9vw, 2.45rem); text-wrap: balance }
  #paused .settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) }
  #paused .settings button { padding: 3px 6px }
  #paused .road-sign { padding-inline: 14px }
  .roadbook section:nth-of-type(n+3) { margin-top: 0 }
}
