:root {
  color-scheme: dark;
  --mint: #78ffe1;
  --pink: #ff79b6;
  --cream: #fff1d7;
  --ink: #151025;
  --mono: Consolas, "Courier New", monospace;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #fff5f4;
  background: #17112c;
}
* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid #fff7ac; outline-offset: 3px; }
button:active { filter: brightness(.9); }
[hidden] { display: none !important; }
.machine {
  --pad-x: clamp(18px, 2.8vw, 54px);
  --pad-y: clamp(14px, 2.8vh, 36px);
  --left: max(var(--pad-x), env(safe-area-inset-left, 0px));
  --right: max(var(--pad-x), env(safe-area-inset-right, 0px));
  --top: max(var(--pad-y), env(safe-area-inset-top, 0px));
  --bottom: max(var(--pad-y), env(safe-area-inset-bottom, 0px));
  --tool-size: 42px;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}
.scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #432344;
  touch-action: none;
}
#track, .glass, .scene::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#track { display: block; image-rendering: pixelated; }
.glass {
  z-index: 1;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #220b3510 3px 4px);
  box-shadow: inset 0 0 15vmin #1b0a2945;
}
.scene::after {
  content: "";
  z-index: 1;
  background: linear-gradient(180deg, #140f285c, transparent 17%, transparent 79%, #100b2555);
}
[data-stage="menu"] .scene::after {
  background: linear-gradient(90deg, #170e32dc, #231136a6 22%, #27103040 45%, transparent 65%),
    linear-gradient(0deg, #110d25da, transparent 15%, transparent 82%, #16102552);
}

.toolbar, .toolgroup, .portal, .tool, .race-top, .pause, .road-name, .course-label,
.actions, .primary, .secondary, .digits, .route-label, .touch, .touch > div, footer,
.keys, .keys > span, .best { display: flex; align-items: center; }
.toolbar {
  position: absolute;
  z-index: 7;
  top: var(--top);
  left: var(--left);
  right: var(--right);
  justify-content: space-between;
  pointer-events: none;
}
.toolbar a, .toolbar button, .race-top button { pointer-events: auto; }
.toolgroup { margin-left: auto; gap: 6px; }
.toolgroup [data-language-slot] { display: flex; pointer-events: auto; }
.portal, .tool, .pause {
  min-height: var(--tool-size);
  border: 1px solid #d3b1e64d;
  background: #1e152dcf;
  box-shadow: inset 0 1px #ffe2ef13;
  color: #f6e4f4;
}
.portal, .tool {
  justify-content: center;
  padding: 0 13px;
  gap: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.portal span { color: var(--mint); font-size: 20px; line-height: 1; }
.portal:hover, .tool:hover, .pause:hover { color: white; background: #3b2546; border-color: #c3a3ca; }
.audio-icon { height: 15px; display: flex; align-items: center; gap: 2px; }
.audio-icon i { width: 2px; height: 5px; background: var(--mint); }
.audio-icon i:nth-child(2) { height: 13px; }
.audio-icon i:nth-child(3) { height: 9px; }
.audio-icon i:nth-child(4) { height: 5px; }
[aria-pressed="false"] .audio-icon i { height: 2px; background: #bca4bf; }
.fullscreen, .pause { width: var(--tool-size); padding: 0; }
.fullscreen span {
  width: 15px;
  height: 15px;
  background:
    linear-gradient(currentColor 0 0) top left / 6px 2px,
    linear-gradient(currentColor 0 0) top right / 6px 2px,
    linear-gradient(currentColor 0 0) bottom left / 6px 2px,
    linear-gradient(currentColor 0 0) bottom right / 6px 2px,
    linear-gradient(currentColor 0 0) top left / 2px 6px,
    linear-gradient(currentColor 0 0) top right / 2px 6px,
    linear-gradient(currentColor 0 0) bottom left / 2px 6px,
    linear-gradient(currentColor 0 0) bottom right / 2px 6px;
  background-repeat: no-repeat;
}
:is([data-stage="racing"], [data-stage="countdown"]) .toolbar {
  left: auto;
  right: calc(var(--right) + var(--tool-size) + 6px);
}
:is([data-stage="racing"], [data-stage="countdown"], [data-stage="paused"], [data-stage="finish"]) .portal {
  display: none;
}

.intro {
  position: absolute;
  z-index: 3;
  top: 49%;
  left: max(6.1vw, var(--left));
  width: min(44vw, 650px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.road-name, .course-label {
  gap: 10px;
  color: var(--cream);
  font: 700 clamp(10px, .95vw, 15px)/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .13em;
}
.flag {
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: 12px;
  transform: skewX(-10deg);
  background: repeating-conic-gradient(currentColor 0 25%, transparent 0 50%) 0 0 / 8px 8px;
}
.intro .road-name { order: -1; margin-bottom: clamp(9px, 1.4vh, 21px); }
.intro .road-name .flag { color: var(--pink); }
.wordmark { margin: 0; width: 100%; line-height: 0; }
.wordmark canvas { width: 100%; height: auto; image-rendering: pixelated; }
.intro p {
  margin: clamp(13px, 2.1vh, 26px) 0 clamp(17px, 3vh, 36px);
  color: #fff2ee;
  font-size: clamp(15px, 1.5vw, 22px);
  line-height: 1.38;
  text-shadow: 0 1px 6px #170b24;
}
.actions { gap: 10px; flex-wrap: wrap; }
.primary, .secondary {
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
}
.primary {
  background: var(--mint);
  color: #123833;
  box-shadow: inset 0 -4px #35b4a4;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.primary:hover { background: #b1ffed; }
.primary:focus-visible { outline: none; box-shadow: inset 0 0 0 4px #fff5a0, inset 0 0 0 6px #38584c; }
.secondary {
  background: #20152cde;
  border: 1px solid #bd91ab;
  color: #fff1e8;
}
.secondary:hover { background: #59364f; }
.play-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: none;
}

footer {
  position: absolute;
  z-index: 3;
  bottom: var(--bottom);
  left: var(--left);
  right: var(--right);
  justify-content: space-between;
  gap: 12px;
  color: #e4d7e9;
  font-size: 12px;
  text-shadow: 0 1px 3px #130b20;
  pointer-events: none;
}
.machine:not([data-stage="menu"]) footer { display: none; }
.keys, .best { gap: 10px; }
.keys { gap: 15px; }
.keys > span { gap: 4px; }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  background: #251a2f;
  border: 1px solid #8f718d;
  border-bottom-width: 2px;
  border-radius: 3px;
  color: #f4e8ef;
  font: 12px var(--mono);
}
.best { font-weight: 600; }
.best b { font: 700 14px var(--mono); color: var(--cream); }
.trophy { color: #ffc590; }
.touch-hint, .touch { display: none; }

.race-top {
  position: absolute;
  z-index: 4;
  top: var(--top);
  left: var(--left);
  right: var(--right);
  justify-content: space-between;
  pointer-events: none;
}
.course-label {
  min-height: var(--tool-size);
  padding: 0 15px 0 12px;
  border-left: 3px solid var(--pink);
  background: linear-gradient(90deg, #251431dd, #26172e88);
  clip-path: polygon(0 0, 100% 0, 100% 65%, calc(100% - 11px) 100%, 0 100%);
  font-size: 11px;
}
.pause { justify-content: center; gap: 4px; }
.pause b { width: 4px; height: 14px; background: var(--cream); }
.count {
  position: absolute;
  z-index: 4;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%) skew(-8deg);
  color: #fff6d8;
  font: 900 clamp(60px, 12vmin, 168px)/1 "Arial Black", Arial, sans-serif;
  white-space: nowrap;
  text-shadow: 3px 3px #ed548e, 6px 6px #482342;
  pointer-events: none;
}

.cluster { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
:is([data-stage="menu"], [data-stage="paused"], [data-stage="finish"]) .cluster { display: none; }
.gauge { position: absolute; min-width: 0; }
.label {
  display: block;
  color: #e4d2df;
  font: 700 10px/1.25 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.digits { align-items: baseline; gap: 6px; margin-top: 3px; font-family: var(--mono); line-height: 1; }
.digits strong {
  color: #fff3e6;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.065em;
}
.digits small { color: #efcfe0; font: 700 13px/1 var(--mono); }
.rank, .timer {
  top: calc(var(--top) + var(--tool-size) + 9px);
  background: linear-gradient(90deg, #21132cdd, #22172e9c);
  padding: 9px 15px 10px;
  border-top: 1px solid #d19bb833;
}
.rank { left: var(--left); border-left: 2px solid var(--pink); }
.rank .digits strong { font-size: clamp(28px, 4.1vmin, 46px); }
.timer { right: var(--right); text-align: right; border-right: 2px solid #c59bbd; }
.timer .digits strong { font-size: clamp(21px, 3.1vmin, 37px); }
.velocity {
  right: var(--right);
  bottom: var(--bottom);
  min-width: clamp(166px, 15vw, 244px);
  padding: 13px 15px 15px 26px;
  background: linear-gradient(105deg, #21152b99, #191528ed 62%);
  border-top: 1px solid #9ee4df98;
  border-right: 3px solid var(--mint);
  clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%, 0 15px);
}
.velocity .digits { justify-content: flex-end; gap: 7px; margin-bottom: 9px; }
.velocity .label { text-align: right; color: #a7ebdc; }
.velocity .digits strong { font: italic 900 clamp(42px, 7.2vmin, 78px)/.94 var(--mono); color: var(--mint); letter-spacing: -.09em; }
.velocity::after {
  content: "";
  display: block;
  height: 6px;
  transform: skewX(-20deg);
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, #251a30 8px 11px),
    linear-gradient(90deg, var(--mint) 0 var(--speed-fill, 0%), #51616a var(--speed-fill, 0%) 100%);
}
.route {
  left: var(--left);
  bottom: var(--bottom);
  width: clamp(207px, 23vw, 353px);
  padding: 10px 15px 13px;
  border-left: 2px solid var(--mint);
  background: linear-gradient(90deg, #21162de3 12%, #21172e9e 85%, transparent);
}
.route-label { justify-content: space-between; gap: 8px; }
.distance { color: #ffe7df; font: 700 12px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.progress {
  position: relative;
  height: 5px;
  margin: 12px 11px 0 0;
  background: repeating-linear-gradient(90deg, #817087 0 calc(10% - 2px), #3b2d42 calc(10% - 2px) 10%);
}
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: #54d5bd; }
.progress b { position: absolute; left: 0; top: -2px; width: 4px; height: 9px; background: var(--mint); }
.progress .flag { position: absolute; right: -11px; bottom: 0; width: 9px; height: 9px; color: #ffe5f1; background-size: 6px 6px; }

.touch {
  position: absolute;
  z-index: 4;
  left: var(--left);
  right: var(--right);
  bottom: var(--bottom);
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.touch > div { gap: 6px; }
.touch button {
  min-width: 56px;
  height: 56px;
  padding: 0 15px;
  color: #fff1f5;
  background: #251b34e6;
  border: 1px solid #be8fb9;
  border-bottom: 3px solid #986186;
  border-radius: 3px;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  font-weight: 750;
  pointer-events: auto;
  touch-action: none;
}
.touch button.gas { background: #17483edf; color: #9fffe9; border-color: #7be9cc; border-bottom-color: #3b9e88; }
.touch button.held { background: #704364; border-color: #ffd6e8; }
.touch button.gas.held { color: #132b29; background: var(--mint); border-color: #b6ffeb; }

.modal {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--top) var(--right) var(--bottom) var(--left);
  background: linear-gradient(115deg, #1d112ad9, #21112e73 70%);
  backdrop-filter: blur(3px);
}
.card {
  position: relative;
  width: min(440px, 100%);
  padding: clamp(22px, 4vmin, 43px);
  background: linear-gradient(115deg, #241a31fc, #1c1528f5);
  border-top: 3px solid var(--mint);
  border-bottom: 1px solid #f188b199;
  box-shadow: 8px 8px 0 #150d2194;
}
.card::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 44px;
  height: 3px;
  background: repeating-linear-gradient(110deg, #f996bf 0 7px, #4a2947 7px 11px);
}
.card .road-name { color: var(--pink); font-size: 10px; }
.card h2 { margin: 15px 0 9px; font: italic 900 clamp(34px, 6vmin, 66px)/1 "Arial Black", Arial, sans-serif; letter-spacing: -.04em; }
.card p { margin: 0 0 20px; color: #eadde8; font-size: 15px; line-height: 1.45; }
.card .primary, .card .secondary { min-height: 44px; font-size: 15px; }
.results { display: flex; gap: 25px; margin: 10px 0 21px; padding: 13px 0; border-block: 1px solid #64475d; }
.results span { display: grid; gap: 6px; color: #c9b6c7; font: 12px var(--mono); }
.results b { color: var(--cream); font: 700 22px var(--mono); }
.exit { display: inline-block; margin-top: 17px; padding: 5px 0; color: #e4cedf; text-decoration: none; font-size: 13px; }
.exit:hover { color: var(--mint); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (pointer: coarse), (max-width: 670px) {
  .machine { --pad-x: 14px; --pad-y: 14px; --tool-size: 44px; }
  :is([data-stage="racing"], [data-stage="countdown"]) .touch { display: flex; }
  .keys { display: none; }
  .touch-hint { display: inline; }
  .route, .velocity { bottom: calc(var(--bottom) + 66px); }
}
/* Wide phones use the space above each thumb for speed and distance. */
@media (orientation: landscape) and (max-height: 570px) {
  .machine { --pad-x: 14px; --pad-y: 9px; }
  .intro { top: 49%; width: min(49vw, 91vh); }
  .wordmark { width: min(100%, 73vh); }
  .intro .road-name { margin-bottom: 5px; font-size: 10px; }
  .intro p { margin: 7px 0 11px; font-size: 13px; line-height: 1.25; }
  .intro p br { display: none; }
  .primary, .secondary { min-height: 41px; padding: 8px 16px; font-size: 14px; }
  .rank, .timer { top: calc(var(--top) + var(--tool-size) + 5px); padding: 5px 11px 7px; }
  .rank .digits strong { font-size: 26px; }
  .timer .digits strong { font-size: 20px; }
  .velocity { min-width: 126px; padding: 6px 9px 7px 14px; }
  .velocity .digits { margin: 2px 0 5px; }
  .velocity .digits strong { font-size: 36px; }
  .velocity::after { height: 4px; }
  .route { width: min(225px, 33vw); padding: 7px 12px 9px; }
  .progress { margin-top: 8px; }
  .touch button { height: 48px; }
  .card { width: min(380px, 85%); padding: 16px 23px; }
  .card h2 { margin: 8px 0; font-size: 35px; }
  .card p { margin-bottom: 10px; font-size: 13px; }
  .results { margin: 6px 0 10px; padding: 7px 0; }
  .exit { margin-top: 5px; }
}
@media (orientation: landscape) and (max-height: 570px) and (pointer: coarse) {
  .route, .velocity { bottom: calc(var(--bottom) + 56px); }
}
@media (orientation: portrait) and (max-width: 760px) {
  .machine { --pad-x: clamp(10px, 3.3vw, 20px); --pad-y: clamp(10px, 2.15vh, 21px); }
  [data-stage="menu"] .scene::after {
    background: linear-gradient(145deg, #180e2dc4, #2111324d 37%, transparent 60%),
      linear-gradient(0deg, #140d23e0, transparent 17%);
  }
  .intro {
    top: clamp(76px, 14vh, 155px);
    left: max(6vw, var(--left));
    right: max(5vw, var(--right));
    width: auto;
    transform: none;
  }
  .wordmark { width: min(88%, 36vh); }
  .intro .road-name { margin-bottom: 7px; font-size: 10px; }
  .intro p { max-width: 33ch; margin: 10px 0 16px; font-size: 14px; line-height: 1.32; }
  .intro .primary, .intro .secondary { min-height: 44px; padding: 9px 16px; font-size: 14px; }
  .intro .actions { gap: 7px; }
  footer { font-size: 11px; }
  .best { gap: 5px; }
  .best b { font-size: 12px; }
  .course-label { padding: 0 8px; gap: 6px; font-size: 9px; letter-spacing: .065em; }
  .course-label .flag { width: 12px; height: 9px; background-size: 6px 6px; }
  :is([data-stage="racing"], [data-stage="countdown"]) #sound { width: var(--tool-size); padding: 0; }
  :is([data-stage="racing"], [data-stage="countdown"]) #soundText {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .label { font-size: 9px; letter-spacing: .09em; }
  .rank, .timer, .velocity {
    top: calc(var(--top) + var(--tool-size) + 7px);
    bottom: auto;
    height: 56px;
    padding: 7px 10px;
  }
  .rank { width: 19%; }
  .rank .digits strong { font-size: 27px; }
  .timer {
    right: auto;
    left: 25.3%;
    width: 32%;
    text-align: left;
    border-right: 0;
    border-left: 1px solid #c59bbd80;
  }
  .timer .digits { margin-top: 7px; }
  .timer .digits strong { font-size: clamp(18px, 5.5vw, 26px); }
  .velocity { width: 36%; min-width: 0; padding-left: 16px; }
  .velocity .digits { margin: 2px 0 3px; gap: 5px; }
  .velocity .digits strong { font-size: 26px; }
  .velocity .digits small, .rank .digits small { font-size: 10px; }
  .velocity::after { height: 3px; }
  .route {
    top: calc(var(--top) + var(--tool-size) + 70px);
    right: var(--right);
    bottom: auto;
    width: auto;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 7px 10px;
    border: 0;
    background: linear-gradient(90deg, #21132ca8, #24193088);
  }
  .route .label { display: none; }
  .distance { font-size: 10px; }
  .progress { margin: 0 10px 0 0; height: 4px; }
  .count { top: 40%; }
  .touch button { min-width: 50px; height: 53px; padding: 0 12px; font-size: 14px; }
  .touch > div { gap: 5px; }
  .card { padding: 22px 18px; }
  .card .actions { gap: 7px; }
  .card .primary, .card .secondary { padding: 9px 14px; }
}
@media (max-height: 350px) and (orientation: landscape) {
  .intro { left: max(4vw, var(--left)); }
  .wordmark { width: min(100%, 60vh); }
  .card { padding: 12px 18px; }
  .card .road-name { font-size: 9px; }
  .card h2 { font-size: 28px; }
  .card p { margin-bottom: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .glass { box-shadow: none; }
}
.tour-links,.pit-links{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.tour-links{margin-top:.7rem}.tour-links button,.pit-links button{border:1px solid #f2c3dd68;border-radius:3px;background:#25172edc;color:#ffe7ec;font:700 .85rem/1.15 "Segoe UI",Arial,sans-serif;padding:8px 12px;min-height:35px}
.tour-links button:hover,.pit-links button:hover{border-color:var(--mint);color:var(--mint)}
.pit-links{margin-top:12px}.pit-links .exit{margin:0}.pit-links button{background:transparent;font-size:12px;min-height:32px}
#roadbook{padding:0;max-width:calc(100% - 22px);width:710px;max-height:calc(100dvh - 24px);border:1px solid #9e6ca0;border-radius:8px;background:linear-gradient(145deg,#362342,#171426 70%);color:#fff3ec;box-shadow:0 20px 80px #09091ccc;overflow-y:auto;touch-action:pan-y}
#roadbook::backdrop{background:#100c18ba;backdrop-filter:blur(3px)}
.sheet{position:relative;padding:clamp(16px,3vw,32px)}#bookClose{position:absolute;right:12px;top:12px;background:#342a42;border:1px solid #ac86a5;color:#fbeedf;border-radius:4px;width:37px;height:37px;font-size:25px;line-height:1}
.book-kicker{font:bold 11px var(--mono);text-transform:uppercase;letter-spacing:.13em;color:var(--mint);padding-right:35px;margin:0 0 7px}
#bookTitle{font:italic 900 clamp(26px,5vw,47px)/1 "Arial Black",Arial,sans-serif;letter-spacing:-.04em;margin:0 38px 8px 0}
#bookCopy,#bookStatus{font-size:15px;line-height:1.38;color:#e8d9e8;margin:8px 0 14px}
#itinerary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.route-tile{min-width:0;text-align:left;display:flex;flex-direction:column;gap:7px;border:1px solid #8b748c70;border-top:3px solid var(--accent);border-radius:4px;background:#211c2f;color:#fff2e6;padding:12px}
.route-tile[aria-pressed=true],.route-tile.current{background:#3f354a;box-shadow:inset 0 0 0 1px var(--accent)}
.route-tile small{color:var(--accent);font:700 11px var(--mono)}.route-tile b{font-size:clamp(14px,1.8vw,20px);line-height:1.1;min-height:2.2em}.route-tile span{font:600 12px var(--mono);color:#e3d6de}.route-tile canvas{display:block;width:100%;height:auto}
#bookStatus{min-height:1.4em;margin-bottom:12px}#bookGo{font-size:15px;min-height:40px}
@media(max-width:600px){#itinerary{grid-template-columns:1fr}.route-tile{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:3px 8px;padding:8px 10px}.route-tile b{min-height:0}.route-tile small,.route-tile b{grid-column:1}.route-tile canvas{grid-column:2;grid-row:1 / 3;align-self:center}.route-tile span{grid-column:1 / 3;font-size:11px}.tour-links{gap:5px;margin-top:5px}.tour-links button{font-size:12px;padding:7px;min-height:32px}}
@media(max-height:470px) and (orientation:landscape){.tour-links{margin-top:3px}.tour-links button{min-height:27px;padding:4px 8px}.route-tile{gap:3px;padding:5px 8px}.route-tile b{min-height:0}.route-tile canvas{max-height:29px}#bookCopy,#bookStatus{font-size:12px;min-height:0;margin:4px 0 7px}.sheet{padding:13px 19px}.pit-links{margin-top:5px}}

/* Arcade cabinet lettering stays on the scenic canvas; modes read as a set list. */
#intro .actions { margin-top: 6px; }
#intro .actions .primary, #modal .primary {
  background: #94ffe6; color: #161527; border: 1px solid #adffed;
  border-radius: 3px 14px 3px 3px; box-shadow: 0 4px 0 #37665f;
}
#intro .tour-links { gap: 0; align-items: stretch; }
#intro .tour-links button {
  border: 0; border-inline-start: 2px solid #eb84ae; border-radius: 0;
  background: #1c1527d9; padding: 8px 11px; text-align: left;
}
#intro .tour-links button:hover { background: #492744; color: #fff; }
#intro .tour-links button+button { border-inline-start: 1px solid #a5849a77; }
.driving-help { position: relative; color: #f8dded; }
.driving-help summary { cursor: pointer; padding: 7px 0; font-weight: 700; }
.driving-help[open] :is(.keys,.touch-hint) {
  position: absolute; bottom:100%; left:0; width:max-content; max-width:90vw;
  padding:10px; background:#211725f5; border-left:2px solid #ff86bd;
}
#modal .card { border-left:3px solid var(--pink); background:linear-gradient(125deg,#302038f5,#151522f5); }
@media(max-width:620px) { #intro .tour-links { row-gap: 3px; } }
