/* ==========================================================================
   ONE LOST RACE — 10X ENHANCED NIGHT ARCADE & STREAMING CSS (UNIVERSAL ENGLISH)
   ========================================================================== */
:root {
  --night: #07090f;
  --panel: rgba(9, 11, 18, 0.86);
  --edge: rgba(255, 174, 61, 0.34);
  --sodium: #ffae3d;
  --duke: #ff6a00;
  --ribbon: #e0182f;
  --chalk: #ece6da;
  --dim: #9d9aa3;
  --win: #5fd38d;
  --gold: #e2b04a;
  --blue: #58b8ff;
  --f-disp: "Teko", "Arial Narrow", Impact, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font-family: var(--f-body);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body.fullscreen-game {
  height: 100%;
  overflow: hidden;
}

/* Game App Container (Works Fullscreen on play.html or Embedded/Expanded on index.html) */
#app {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--night);
}

body.fullscreen-game #app {
  position: fixed;
  inset: 0;
  height: 100%;
}

#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#touch {
  position: absolute;
  inset: 0;
  touch-action: none;
  z-index: 2;
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: max(18px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--sodium);
  outline-offset: 3px;
}

/* ---------- Title Screen (All 3 Episode Levels Playable) ---------- */
#title {
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.96) 0%, rgba(7, 9, 15, 0.88) 45%, rgba(7, 9, 15, 0.38) 80%, rgba(7, 9, 15, 0.62) 100%),
    url('assets/images/title_bg.jpg') center/cover no-repeat;
  display: flex;
}

.wrap {
  width: min(760px, 100%);
  margin-block: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.title-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kicker {
  font-family: var(--f-disp);
  font-size: 19px;
  letter-spacing: 0.22em;
  color: var(--sodium);
  text-transform: uppercase;
  line-height: 1;
}

.top-pill-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  font-family: var(--f-disp);
  font-size: 17px;
  letter-spacing: 0.08em;
  padding: 5px 12px 2px;
  border: 1px solid var(--edge);
  background: rgba(9, 11, 18, 0.85);
  color: var(--sodium);
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.pill-btn:hover {
  background: var(--duke);
  color: #140700;
  border-color: var(--duke);
}

#title h1 {
  margin: 0;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(54px, 10vw, 88px);
  letter-spacing: 0.06em;
  line-height: 0.9;
  color: var(--chalk);
  text-shadow: 0 0 34px rgba(255, 106, 0, 0.42);
}

#title h1 b {
  color: var(--duke);
}

.en {
  font-family: var(--f-disp);
  font-weight: 500;
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 0.14em;
  line-height: 0.95;
  margin-top: -6px;
  color: var(--sodium);
}

.en b {
  color: var(--duke);
  font-weight: 600;
}

.levels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.lvl {
  display: grid;
  grid-template-columns: 44px 1fr 84px auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(236, 230, 218, 0.15);
  background: var(--panel);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.lvl:hover {
  border-color: var(--edge);
}

.lvl.on {
  border-color: var(--sodium);
  box-shadow: inset 4px 0 0 var(--duke), 0 8px 28px rgba(0, 0, 0, 0.65);
  background: rgba(16, 19, 30, 0.92);
}

.lvl .n {
  font-family: var(--f-disp);
  font-size: 42px;
  line-height: 0.8;
  color: var(--dim);
  text-align: center;
}

.lvl.on .n {
  color: var(--duke);
}

.lvl .nm {
  font-family: var(--f-disp);
  font-size: 25px;
  line-height: 0.95;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lvl-badge {
  font-family: var(--f-disp);
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 2px 7px 0;
  border-radius: 2px;
  background: rgba(255, 106, 0, 0.18);
  border: 1px solid rgba(255, 106, 0, 0.45);
  color: var(--sodium);
}

.lvl-badge.ribbon {
  background: rgba(224, 24, 47, 0.22);
  border-color: rgba(224, 24, 47, 0.55);
  color: #ff8a98;
}

.lvl-badge.gold {
  background: rgba(226, 176, 74, 0.2);
  border-color: rgba(226, 176, 74, 0.55);
  color: var(--gold);
}

.lvl .ds {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.42;
  margin-top: 3px;
}

.lvl .ds b {
  color: var(--chalk);
  font-weight: 600;
}

.lvl-best {
  font-family: var(--f-disp);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--win);
  margin-top: 3px;
}

.map {
  width: 82px;
  height: 82px;
  display: block;
  background: rgba(5, 7, 12, 0.55);
  border: 1px solid rgba(236, 230, 218, 0.1);
  border-radius: 3px;
}

.lvl-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.go {
  font-family: var(--f-disp);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.08em;
  padding: 10px 20px 6px;
  background: var(--duke);
  color: #140700;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 24px rgba(255, 106, 0, 0.38);
  transition: transform 0.12s, background 0.12s;
  white-space: nowrap;
}

.go:hover {
  transform: translateY(-1px);
  background: #ff7b1c;
}

.go:disabled {
  opacity: 0.5;
  cursor: wait;
}

.watch-ep-mini {
  font-family: var(--f-disp);
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 4px 10px 2px;
  border: 1px solid rgba(236, 230, 218, 0.25);
  color: var(--chalk);
  border-radius: 3px;
  text-align: center;
}

.watch-ep-mini:hover {
  border-color: var(--sodium);
  color: var(--sodium);
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
}

.keys span b {
  font-family: var(--f-disp);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--chalk);
  border: 1px solid rgba(236, 230, 218, 0.25);
  border-radius: 3px;
  padding: 0 6px;
  margin-right: 4px;
}

.best-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(236, 230, 218, 0.12);
  padding-top: 8px;
}

.best {
  font-family: var(--f-disp);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--sodium);
}

.foot {
  font-size: 12px;
  color: var(--dim);
}

.foot a {
  color: var(--chalk);
}

/* ---------- HUD OVERLAY ---------- */
#hud {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  font-family: var(--f-disp);
}

.top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
  padding-left: max(14px, env(safe-area-inset-left, 0px));
  padding-right: max(14px, env(safe-area-inset-right, 0px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 10px;
}

.cell {
  display: flex;
  flex-direction: column;
  line-height: 0.85;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  gap: 2px;
}

.lab {
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.val {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

#posbox {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--edge);
  padding: 6px 16px 4px;
  border-radius: 3px;
  min-width: 138px;
}

#pos {
  font-size: clamp(34px, 6vw, 48px);
  color: var(--sodium);
}

#pos small {
  font-size: 0.5em;
  color: var(--dim);
  margin-left: 2px;
}

#gap {
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--chalk);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#purseHud {
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--win);
  margin-top: 2px;
}

.r {
  align-items: flex-end;
}

#spd {
  font-size: clamp(42px, 8vw, 66px);
}

.gear-rpm-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

#gearBadge {
  font-size: 18px;
  padding: 2px 7px 0;
  background: var(--duke);
  color: #140700;
  border-radius: 2px;
  font-weight: 600;
}

.rpm-mini-bar {
  width: 82px;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

#rpmFill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #5fd38d, #ffae3d, #ff2a2a);
}

#kmleft {
  white-space: nowrap;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--sodium);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

#mini {
  width: clamp(72px, 11vw, 106px);
  height: clamp(72px, 11vw, 106px);
  margin-top: 6px;
  background: rgba(9, 11, 18, 0.68);
  border: 1px solid rgba(236, 230, 218, 0.16);
  border-radius: 3px;
}

/* Live Character Picture-in-Picture (PiP) Story Callout Card */
#charComms {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 86px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(9, 11, 18, 0.9);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--duke);
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  max-width: 92vw;
}

#charComms.on {
  opacity: 1;
}

#charAvatar {
  width: 42px;
  height: 42px;
  border-radius: 3px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--sodium);
  flex-shrink: 0;
}

.char-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

#charSpeaker {
  font-family: var(--f-disp);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--sodium);
  text-transform: uppercase;
}

#charKn {
  font-family: var(--f-disp);
  font-size: 20px;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--chalk);
}

#charEn {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--dim);
}

#feed {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 150px);
  font-size: clamp(17px, 3vw, 22px);
  letter-spacing: 0.08em;
  color: var(--gold);
  text-shadow: 0 2px 8px #000;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s;
}

#feed.on {
  opacity: 1;
}

.bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  padding-left: max(14px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nlab {
  font-size: 16px;
  letter-spacing: 0.18em;
  color: #7fd2ff;
  text-shadow: 0 1px 6px #000;
}

.llab {
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-shadow: 0 1px 6px #000;
}

#cells {
  display: flex;
  gap: 5px;
  margin-top: 3px;
}

.c {
  width: 46px;
  height: 12px;
  background: rgba(127, 210, 255, 0.16);
  border: 1px solid rgba(127, 210, 255, 0.45);
  border-radius: 2px;
  overflow: hidden;
}

.c i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3aa8ff, #bdf0ff);
}

/* Slipstream Draft Bar */
#draftWrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.draft-bar {
  width: 148px;
  height: 8px;
  background: rgba(255, 174, 61, 0.15);
  border: 1px solid rgba(255, 174, 61, 0.4);
  border-radius: 2px;
  overflow: hidden;
}

#draftFill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--duke), var(--sodium));
}

#lives {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}

#lives span {
  width: 22px;
  height: 18px;
  border-radius: 11px 11px 4px 4px;
  background: linear-gradient(#ff8a2a, #c94a00);
  box-shadow: inset -5px -3px 0 rgba(0, 0, 0, 0.35), 0 0 10px rgba(255, 106, 0, 0.35);
  transition: opacity 0.3s, transform 0.3s;
}

#lives span.gone {
  opacity: 0.18;
  transform: scale(0.8);
  background: #555;
  box-shadow: none;
}

/* Action Buttons (Right Bottom: NITRO + DIPPER HIGH-BEAM) */
.action-cluster {
  position: absolute;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: auto;
}

#dipBtn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 210, 110, 0.45), rgba(40, 28, 10, 0.88));
  border: 2px solid rgba(255, 200, 100, 0.75);
  font-family: var(--f-disp);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #fff5d6;
  line-height: 1;
  padding-top: 3px;
  box-shadow: 0 0 18px rgba(255, 174, 61, 0.35);
}

#dipBtn:active {
  transform: scale(0.94);
  background: rgba(255, 210, 110, 0.8);
  color: #140700;
}

#nbtn {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(80, 170, 255, 0.55), rgba(10, 30, 60, 0.85));
  border: 2px solid rgba(160, 220, 255, 0.7);
  font-family: var(--f-disp);
  font-size: 24px;
  letter-spacing: 0.08em;
  color: #e6f6ff;
  line-height: 1;
  padding-top: 4px;
  box-shadow: 0 0 24px rgba(60, 160, 255, 0.35);
}

#nbtn.empty {
  opacity: 0.4;
}

.tbtns {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  pointer-events: auto;
}

.tb {
  white-space: nowrap;
  font-family: var(--f-disp);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--dim);
  background: var(--panel);
  border: 1px solid rgba(236, 230, 218, 0.18);
  padding: 5px 9px 1px;
  border-radius: 3px;
}

.tb:hover {
  color: var(--chalk);
  border-color: var(--sodium);
}

#count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-disp);
  font-size: clamp(90px, 22vw, 200px);
  color: var(--chalk);
  text-shadow: 0 0 40px rgba(255, 106, 0, 0.7);
  pointer-events: none;
}

#count.kn {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(96px, 22vw, 200px);
  letter-spacing: 0.06em;
  color: var(--sodium);
}

#toast {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  font-family: var(--f-disp);
  font-size: clamp(26px, 5vw, 42px);
  letter-spacing: 0.08em;
  color: #bdf0ff;
  text-shadow: 0 0 18px rgba(60, 160, 255, 0.9), 0 2px 8px #000;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
}

#toast.bad {
  color: #ffd0c8;
  text-shadow: 0 0 18px rgba(255, 40, 40, 0.9), 0 2px 8px #000;
}

#toast.gold {
  color: #ffe28a;
  text-shadow: 0 0 18px rgba(255, 174, 61, 0.95), 0 2px 8px #000;
}

#toast.show {
  animation: pop 1.1s ease-out;
}

@keyframes pop {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.8); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(1); }
}

#where {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--f-disp);
  font-size: clamp(20px, 3.6vw, 30px);
  letter-spacing: 0.08em;
  line-height: 1.05;
  color: var(--chalk);
  text-shadow: 0 2px 10px #000;
  pointer-events: none;
  width: max-content;
  max-width: 92vw;
  transition: opacity 0.6s;
}

#where small {
  display: block;
  font-size: 0.62em;
  color: var(--sodium);
  letter-spacing: 0.16em;
}

/* ---------- Pause / Result / Story Prologue Screens ---------- */
.dim {
  background: rgba(5, 6, 10, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  margin-block: auto;
}

#result {
  background:
    linear-gradient(rgba(5, 6, 10, 0.58), rgba(5, 6, 10, 0.9)),
    url('assets/images/result_bg.jpg') center/cover no-repeat;
  display: flex;
}

.big {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 84px);
  letter-spacing: 0.05em;
  line-height: 0.92;
  margin: 0;
}

.big.win {
  color: var(--sodium);
  text-shadow: 0 0 30px rgba(255, 174, 61, 0.45);
}

.big.lose {
  color: var(--chalk);
}

.big.fell {
  color: #ff6b5a;
  text-shadow: 0 0 30px rgba(255, 60, 40, 0.45);
}

.sub {
  font-family: var(--f-disp);
  font-size: 26px;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-top: -4px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.st {
  border-top: 1px solid rgba(236, 230, 218, 0.16);
  padding-top: 6px;
}

.st .lab {
  font-family: var(--f-disp);
}

.st .val {
  font-family: var(--f-disp);
  font-size: 28px;
  line-height: 1;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost {
  font-family: var(--f-disp);
  font-size: 22px;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 10px 16px 6px;
  border: 1px solid rgba(236, 230, 218, 0.3);
  border-radius: 3px;
  color: var(--chalk);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.ghost:hover {
  border-color: var(--sodium);
  color: var(--sodium);
}

.wa {
  border-color: rgba(95, 211, 141, 0.6);
  color: var(--win);
}

.next {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.55;
  border-top: 1px solid rgba(236, 230, 218, 0.12);
  padding-top: 10px;
}

.next b {
  color: var(--chalk);
  font-weight: 600;
}

#copied {
  font-size: 13px;
  color: var(--win);
  min-height: 1em;
}

/* Episode 2 Gadag Wedding Clue Prologue Modal */
.clue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.clue-item {
  border: 1px solid rgba(236, 230, 218, 0.2);
  background: rgba(14, 17, 26, 0.9);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: all 0.15s;
}

.clue-item:hover {
  border-color: var(--sodium);
}

.clue-item.done {
  border-color: var(--win);
  box-shadow: 0 0 16px rgba(95, 211, 141, 0.35);
}

.clue-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.clue-item div {
  padding: 8px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.35;
}

.clue-item div b {
  display: block;
  font-family: var(--f-disp);
  font-size: 18px;
  color: var(--chalk);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .lvl, .lvl.on {
    grid-template-columns: 34px 1fr;
  }
  .lvl .n {
    font-size: 32px;
  }
  .lvl .map {
    display: none;
  }
  .lvl-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .lvl-actions .go {
    flex: 1;
  }
  .c {
    width: 34px;
  }
  .top {
    gap: 6px;
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }
  #posbox {
    min-width: 0;
    padding: 4px 8px 2px;
  }
  #gap {
    font-size: 13px;
  }
  #spd {
    font-size: 38px;
  }
  #time {
    font-size: 26px;
  }
  #kmleft {
    font-size: 14px;
  }
  .tb {
    font-size: 13px;
    padding: 4px 6px 1px;
  }
  #where {
    bottom: 28%;
  }
  .clue-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
