:root {
  --ink: #0f1215;
  --canvas: #17191b;
  --canvas-2: #22262a;
  --yellow: #f2c230;
  --green: #1d6b3f;
  --green-hi: #4dff9a;
  --led: #ff3b2b;
  --paper: #f6f4ec;
  --paper-ink: #1d2320;
  --muted: #a3aaa4;
  --line: rgba(242, 194, 48, 0.28);
  --display: "Baloo Tamma 2", "Nirmala UI", "Noto Sans Kannada", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, "Consolas", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--ink); color: #eee9dd; font-family: var(--body); font-size: 15px; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; transition: filter 0.25s; }
/* slow-mo grading now happens in the post-processing shader */
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

#fx-vignette { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(10,20,40,0.65) 100%); }
body.slowmo #fx-vignette { opacity: 1; }
#fx-flash { position: fixed; inset: 0; pointer-events: none; background: #dfe8ff; opacity: 0; }
#fx-flash.on { animation: flash 0.5s ease-out; }
@keyframes flash { 0% { opacity: 0.55; } 20% { opacity: 0.1; } 30% { opacity: 0.4; } 100% { opacity: 0; } }

/* ------------------------------------------------ HUD */
#hud { position: fixed; inset: 0; pointer-events: none;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
.shift { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 16px; display: grid; gap: 4px;
  background: rgba(15, 18, 21, 0.78); border-left: 4px solid var(--yellow); padding: 10px 16px 10px 14px; }
.clock { font-family: var(--display); line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.clock b { font-size: 34px; font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; }
.clock span { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; }
.tally { display: flex; gap: 18px; margin: 0; }
.tally div { display: grid; }
.tally dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tally dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.wx { margin: 0; font-size: 12px; color: #c9d3dc; letter-spacing: 0.02em; }

.map-wrap { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; width: 188px; height: 188px; border-radius: 50%;
  border: 3px solid var(--canvas-2); box-shadow: 0 0 0 2px rgba(242,194,48,0.5), 0 8px 24px rgba(0,0,0,0.45); background: #111; }
#minimap { width: 100%; height: 100%; border-radius: 50%; display: block; }

/* the auto's fare meter: black plastic, red LED, flag */
.meter { position: absolute; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(340px, calc(100vw - 32px));
  background: linear-gradient(#1b1d20, #0d0f11); border: 2px solid #2b2f33; border-radius: 10px 10px 4px 4px;
  padding: 10px 14px 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06); display: grid; gap: 6px; }
.meter header { display: flex; justify-content: space-between; align-items: center; }
.flag { font-weight: 700; font-size: 12px; letter-spacing: 0.14em; padding: 2px 8px; background: var(--led); color: #fff; }
.meter.hired .flag { background: var(--green); }
.brand { font-family: var(--display); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.led { font-family: var(--mono); color: var(--led); font-size: 54px; line-height: 1; text-shadow: 0 0 12px rgba(255,59,43,0.7);
  background: #140605; padding: 6px 10px 2px; border: 1px solid #3a1210; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.led .cur { font-size: 30px; opacity: 0.85; }
.dest { margin: 0; font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.2; color: #f4efe2; text-wrap: balance; }
.beat { display: flex; align-items: center; gap: 10px; }
.beat .bar { flex: 1; height: 10px; background: #2a2d31; overflow: hidden; }
.beat .bar i { display: block; height: 100%; background: var(--green-hi); transform-origin: left; }
.beat .bar i.warn { background: var(--yellow); }
.beat .bar i.crit { background: var(--led); }
#m-time { font-family: var(--mono); font-size: 20px; color: #f4efe2; min-width: 4.5em; text-align: right; font-variant-numeric: tabular-nums; }
.meter.late #m-time { color: var(--led); }
.comfort { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }

.speedo { position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); text-align: right; display: grid; gap: 4px; justify-items: end; }
.speedo .num { display: flex; align-items: baseline; gap: 6px; }
.speedo b { font-family: var(--display); font-size: 64px; font-weight: 800; line-height: 0.9; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 14px rgba(0,0,0,0.6); }
.speedo span { font-size: 14px; color: var(--muted); letter-spacing: 0.08em; }
.focus { width: 150px; height: 6px; background: rgba(255,255,255,0.15); overflow: hidden; }
.focus i { display: block; height: 100%; background: #8fc7ff; transform-origin: left; }
.speedo label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

#bubble { position: absolute; left: 50%; top: calc(24px + env(safe-area-inset-top, 0px)); transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 460px)); min-width: 220px; background: var(--paper); color: var(--paper-ink);
  padding: 10px 16px 11px; border-radius: 16px 16px 16px 4px; display: grid; gap: 1px; box-shadow: 0 8px 26px rgba(0,0,0,0.4); }
#bubble b { font-family: var(--display); font-size: 21px; font-weight: 800; line-height: 1.15; }
#bubble small { font-size: 13px; color: #56605b; }
#bubble.pop, #payout.pop { animation: pop 0.28s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: translateX(-50%) scale(0.85); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }

#toasts { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; }
.toast { font-family: var(--display); font-weight: 700; font-size: 20px; padding: 4px 14px; background: rgba(15,18,21,0.82); color: #f4efe2;
  border-left: 4px solid var(--muted); animation: toast 2.6s ease forwards; white-space: nowrap; }
.toast.good { border-color: var(--green-hi); }
.toast.bad { border-color: var(--led); }
.toast.rain { border-color: #8fc7ff; }
.toast.info { border-color: var(--yellow); font-size: 17px; font-weight: 600; }
@keyframes toast { 0% { opacity: 0; transform: translateY(8px); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

#payout { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); background: var(--paper); color: var(--paper-ink);
  padding: 12px 18px 14px; min-width: 250px; box-shadow: 0 14px 40px rgba(0,0,0,0.5); border-top: 6px solid var(--green); }
#payout b { display: block; font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; color: var(--green); }
#payout ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
#payout li { display: flex; justify-content: space-between; gap: 24px; font-variant-numeric: tabular-nums; }
#payout li.neg span:last-child { color: #b3261e; }

#road { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; padding: 2px 12px;
  background: #1f5c3a; color: #fff; border: 2px solid #fff; border-radius: 3px; white-space: nowrap; }
#keys-hint { position: absolute; left: 50%; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  font-size: 12px; color: #d8d3c6; background: rgba(15,18,21,0.7); padding: 4px 10px; white-space: nowrap; transition: opacity 1s; }
#keys-hint.gone { opacity: 0; }

/* ------------------------------------------------ screens */
.screen { position: fixed; inset: 0; display: grid; align-items: center; justify-items: start; overflow-y: auto;
  padding: calc(24px + env(safe-area-inset-top, 0px)) clamp(16px, 5vw, 72px) calc(24px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(90deg, rgba(10,12,14,0.78) 0%, rgba(10,12,14,0.35) 55%, rgba(10,12,14,0) 100%); }
#pause, #end { justify-items: center; background: rgba(10,12,14,0.55); }
.card { max-width: 560px; width: 100%; }

/* the rear canvas of an auto, hand-painted lettering */
.card.rear { background: #141516; padding: 26px 28px 24px; position: relative;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 4px), repeating-linear-gradient(90deg, rgba(255,255,255,0.014) 0 2px, transparent 2px 5px);
  border-radius: 22px 22px 6px 6px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); border-bottom: 10px solid var(--green); }
.card.rear::after { content: ""; position: absolute; left: 22px; right: 22px; top: 10px; height: 2px; background: repeating-linear-gradient(90deg, var(--yellow) 0 14px, transparent 14px 22px); opacity: 0.55; }
.kicker { margin: 6px 0 4px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; display: grid; line-height: 0.95; }
h1 .kn { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 9vw, 84px); color: var(--yellow); letter-spacing: -0.01em;
  text-shadow: 3px 3px 0 #8a5a0a; }
h1 .en { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.42em; text-transform: uppercase; color: #f4efe2; margin-top: 6px; }
.tag { margin: 14px 0 10px; max-width: 62ch; line-height: 1.5; color: #dcd6c8; }
.rules { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 7px; }
.rules li { padding-left: 16px; position: relative; line-height: 1.45; color: #cfc9ba; font-size: 14px; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--yellow); transform: rotate(45deg); }
.rules b { color: #f4efe2; }
.controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin: 0 0 18px; }
.controls div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cfc9ba; }
.controls dt { display: flex; gap: 3px; }
.controls dd { margin: 0; }
kbd { font-family: var(--mono); font-size: 12px; background: #2a2d31; color: #f4efe2; border: 1px solid #3a3f44; border-bottom-width: 3px; padding: 1px 6px; border-radius: 4px; }
.go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.best { margin: 0; font-size: 13px; color: var(--muted); }

/* commercial number plate = primary button */
.plate { display: inline-flex; align-items: center; gap: 12px; background: var(--yellow); color: #111; border: 3px solid #111;
  outline: 2px solid var(--yellow); padding: 8px 20px; font-family: var(--mono); font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 6px 0 #8a6a0a; transition: transform 0.08s, box-shadow 0.08s; }
.plate small { font-size: 13px; padding-right: 10px; border-right: 2px solid #111; }
.plate:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 0 #8a6a0a; }
.plate:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #8a6a0a; }
.plate:disabled { opacity: 0.6; cursor: progress; }
.ghost { background: none; border: 2px solid #5a6066; color: #eee; padding: 9px 18px; }

.card.small { background: var(--canvas); padding: 22px 26px; border-top: 6px solid var(--yellow); max-width: 420px; }
.card.small h2 { font-family: var(--display); font-size: 34px; margin: 0; color: var(--yellow); }
.card.small p { color: #cfc9ba; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* end screen: the fare chart card every auto carries */
.card.chart { background: var(--paper); color: var(--paper-ink); padding: 0 0 20px; max-width: 420px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.chart header { background: var(--green); color: #fff; padding: 14px 22px 10px; }
.chart header .kn { font-family: var(--display); font-size: 16px; opacity: 0.85; }
.chart h2 { margin: 0; font-family: var(--display); font-size: 30px; line-height: 1.1; }
.chart table { width: calc(100% - 44px); margin: 12px 22px 4px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart th { text-align: left; font-weight: 500; padding: 5px 0; border-bottom: 1px dashed #c9c4b3; }
.chart td { text-align: right; font-weight: 700; padding: 5px 0; border-bottom: 1px dashed #c9c4b3; }
.chart tr.neg td { color: #b3261e; }
.net { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 22px 2px; }
.net span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #56605b; }
.net b { font-family: var(--display); font-size: 42px; color: var(--green); line-height: 1; }
.chart .best { margin: 0 22px 14px; color: #56605b; }
.chart .plate { margin-left: 22px; }

/* touch controls (phones & tablets) */
html, body { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#touch { position: fixed; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none;
  padding: 0 calc(14px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(14px + env(safe-area-inset-left, 0px)); }
#touch .pad { display: flex; gap: 12px; align-items: flex-end; pointer-events: auto; }
#touch .pad.right { flex-direction: column; align-items: flex-end; gap: 10px; }
#touch .small-row, #touch .pedals { display: flex; gap: 10px; }
#touch button { border-radius: 50%; background: rgba(15,18,21,0.55); border: 2px solid rgba(242,194,48,0.65); color: #fff; touch-action: none;
  font-family: var(--display); font-weight: 700; -webkit-tap-highlight-color: transparent; }
#touch button.big { width: 84px; height: 84px; font-size: 22px; }
#touch button.sm { width: 50px; height: 50px; font-size: 12px; }
#touch button.gas { background: rgba(29,107,63,0.7); border-color: #4dff9a; width: 96px; height: 96px; }
#touch button.brake { background: rgba(120,30,24,0.6); border-color: #ff6b5b; }
#touch button.down { background: rgba(242,194,48,0.55); transform: scale(0.94); }
#rotate { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; gap: 6px; text-align: center; background: rgba(10,12,14,0.92); padding: 24px; }
#rotate b { font-family: var(--display); font-size: 28px; color: var(--yellow); }
#rotate span { color: #cfc9ba; }
.credit { margin: 14px 0 0; font-size: 11px; color: #8a8f8a; }

/* on touch devices the HUD moves up to clear the thumbs */
body.touch #keys-hint { display: none; }
body.touch .meter { left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: min(300px, 40vw); padding: 6px 10px 8px; gap: 3px; }
body.touch .meter .led { font-size: 30px; padding: 3px 8px 0; }
body.touch .meter .dest { font-size: 13px; }
body.touch .meter .comfort { display: none; }
body.touch .speedo { right: auto; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: auto; top: calc(128px + env(safe-area-inset-top, 0px)); justify-items: start; text-align: left; }
body.touch .speedo b { font-size: 34px; }
body.touch .speedo label { display: none; }
body.touch .speedo .focus { width: 90px; }
body.touch #road { bottom: auto; top: calc(10px + env(safe-area-inset-top, 0px)); font-size: 13px; }
body.touch #bubble { top: calc(44px + env(safe-area-inset-top, 0px)); max-width: min(420px, 50vw); min-width: 0; padding: 6px 12px; }
body.touch #bubble b { font-size: 16px; }
body.touch #payout { top: 14%; }
body.touch .map-wrap { width: 118px; height: 118px; }
body.touch .shift { padding: 6px 10px; }
body.touch .clock b { font-size: 22px; }
body.touch .tally dd { font-size: 15px; }
body.touch .wx { display: none; }
body.touch .toast { font-size: 15px; }
@media (max-height: 420px) { #touch button.big { width: 70px; height: 70px; } #touch button.gas { width: 80px; height: 80px; } #touch button.sm { width: 44px; height: 44px; } }

@media (max-width: 720px) {
  .map-wrap { width: 120px; height: 120px; }
  .clock b { font-size: 26px; }
  .speedo b { font-size: 44px; }
  .led { font-size: 40px; }
  #bubble { max-width: calc(100vw - 32px); top: auto; bottom: 280px; }
  #keys-hint { display: none; }
  .screen { justify-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  #bubble.pop, #payout.pop, .toast, #fx-flash.on { animation: none; }
  #gl { transition: none; }
}

.screen { touch-action: pan-y; }

/* ------------------------------------------------ account & leaderboard */
.account { margin-top: 16px; display: grid; gap: 8px; }
.account .row { gap: 16px; }
/* guest: invitation + Google button (its frame must stay light or the browser paints it white-on-dark) */
.signin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
  background: #1c1e20; border: 1px solid #2c3034; border-left: 4px solid var(--green); padding: 12px 14px; border-radius: 4px; }
.signin-copy { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.signin-copy b { font-family: var(--display); font-size: 17px; font-weight: 700; color: #f4efe2; line-height: 1.2; }
.signin-copy span { font-size: 13px; color: var(--muted); line-height: 1.4; }
#gbtn { color-scheme: light; min-height: 40px; display: flex; align-items: center; }
#gbtn iframe { color-scheme: light; }
/* signed in: driver card */
.driver { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px;
  background: #1c1e20; border: 1px solid #2c3034; border-left: 4px solid var(--yellow); padding: 10px 14px; border-radius: 4px; }
.driver .badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: #111;
  font-family: var(--display); font-weight: 800; font-size: 20px; }
.driver .who { margin: 0; display: grid; gap: 1px; min-width: 0; }
.driver .who b { font-family: var(--display); font-size: 18px; color: #f4efe2; overflow-wrap: anywhere; }
.driver .who span { font-size: 13px; color: var(--muted); }
.driver .links { grid-column: 2; gap: 16px; }
.link { background: none; border: 0; padding: 0; color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.msg { margin: 0; min-height: 1em; font-size: 13px; color: var(--green-hi); }
.msg.bad { color: #ff8a7a; }
.name-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.name-form label { width: 100%; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.name-form input { font: inherit; padding: 8px 10px; background: #0f1113; color: #f4efe2; border: 2px solid #3a3f44; border-radius: 4px; min-width: 0; flex: 1 1 160px; }
.name-form input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.ghost.dark { border-color: #1d2320; color: #1d2320; }
.online-status { margin: 0 22px 12px; font-size: 14px; color: #1d2320; min-height: 1em; }
.online-status.bad { color: #b3261e; }
.end-actions { margin-left: 22px; }
.end-actions .plate { margin-left: 0; }
#board { justify-items: center; background: rgba(10,12,14,0.6); z-index: 30; }
.card.board { background: var(--paper); color: var(--paper-ink); max-width: 480px; padding: 0 0 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.board header { display: flex; justify-content: space-between; align-items: center; background: var(--green); color: #fff; padding: 14px 20px 10px; }
.board header .link { color: #fff; }
.board h2 { margin: 0; font-family: var(--display); font-size: 28px; }
.tabs { display: flex; gap: 4px; padding: 12px 20px 0; }
.tabs button { flex: 1; background: #e8e4d6; border: 0; padding: 8px 6px; font-weight: 600; color: #3a423d; border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--green); border-bottom-color: var(--green); }
.board-status { margin: 10px 20px 6px; font-size: 13px; color: #56605b; }
.board-scroll { max-height: min(56vh, 460px); overflow-y: auto; padding: 0 20px; }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board thead td, .board thead th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #56605b; padding: 4px 0; text-align: left; font-weight: 600; }
.board tbody th { text-align: left; font-weight: 600; padding: 7px 8px 7px 0; border-bottom: 1px dashed #c9c4b3; overflow-wrap: anywhere; }
.board tbody td { padding: 7px 8px 7px 0; border-bottom: 1px dashed #c9c4b3; }
.board tbody td:nth-child(3) { font-weight: 700; color: var(--green); }
.board tbody tr:nth-child(-n+3) td:first-child { font-weight: 800; color: #9a6a00; }
.board tbody tr.me { background: #fff6d6; }

/* ------------------------------------------------ phone steering & settings */
#steer-zone { display: none; position: absolute; left: 0; bottom: 0; width: 42vw; height: 62vh; pointer-events: auto; touch-action: none; }
body[data-steer="drag"] #steer-zone { display: block; }
body[data-steer="drag"] #touch .pad.left, body[data-steer="tilt"] #touch .pad.left { display: none; }
#steer-track { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); left: calc(24px + env(safe-area-inset-left, 0px)); width: 140px; height: 12px;
  border-radius: 6px; background: rgba(15,18,21,0.55); border: 2px solid rgba(242,194,48,0.5); transition: opacity 0.2s; }
#steer-knob { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(242,194,48,0.85); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
#steer-zone.on #steer-track { border-color: #fff; }
#steer-hint { position: absolute; left: calc(24px + env(safe-area-inset-left, 0px)); bottom: calc(52px + env(safe-area-inset-bottom, 0px)); margin: 0;
  font-size: 12px; color: rgba(255,255,255,0.75); text-shadow: 0 1px 3px #000; pointer-events: none; }
#steer-zone.on #steer-hint { opacity: 0; }
body[data-tsize="s"] #touch { zoom: 0.82; }
body[data-tsize="l"] #touch { zoom: 1.2; }
.settings { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(242,194,48,0.3); display: grid; gap: 10px; }
.settings h3 { margin: 0; font-family: var(--display); font-size: 18px; color: #f4efe2; }
.set-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.set-row > span { font-size: 13px; color: var(--muted); min-width: 84px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button { background: #24282c; color: #e8e3d6; border: 1px solid #3a3f44; padding: 7px 12px; border-radius: 4px; font-size: 13px; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--yellow); color: #111; border-color: var(--yellow); font-weight: 700; }
.set-msg { margin: 0; font-size: 12px; color: #ffb4a8; min-height: 1em; }
#touch .pad.right { margin-left: auto; }
