/* ==========================================================================
   NomNow: Hold the Line
   An ops-room dashboard for a city whose dinner depends on you.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../assets/fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #120f0d;
  --bg-deep: #0d0a08;
  --panel: #1c1714;
  --panel-hi: #221c17;
  --field: #100d0b;
  --line: rgba(255, 241, 224, 0.105);
  --line-strong: rgba(255, 241, 224, 0.19);
  --paper: #f6eede;
  --paper-2: #efe4d2;
  --paper-dim: #e7dbc9;
  --ink: #1b130d;
  --ink-soft: #5a4536;
  --ink-faint: #846d5a;
  --text-dim: #b5a390;
  --text-faint: #8e7b69;
  --orange: #ff6b2c;
  --orange-hi: #ff8a5c;
  --orange-ink: #a43712;
  --lime: #bdf24d;
  --cyan: #63c8ff;
  --pink: #ff88b7;
  --yellow: #ffd166;
  --red: #ff5b48;
  --green: #7ed88a;
  --display: "Bricolage Grotesque", "Trebuchet MS", "Avenir Next", sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 18px;
  --shadow-card: 0 2px 0 rgba(0, 0, 0, 0.3), 0 16px 32px rgba(0, 0, 0, 0.26);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
html { background: var(--bg); }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 82% -10%, rgba(255, 107, 44, 0.12), transparent 62%),
    radial-gradient(900px 600px at -10% 110%, rgba(99, 200, 255, 0.055), transparent 60%),
    var(--bg);
  color: var(--paper);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

::selection { background: var(--orange); color: var(--ink); }

button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
i, em { font-style: normal; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px dashed var(--orange);
  outline-offset: 3px;
}

* { scrollbar-width: thin; scrollbar-color: rgba(255, 241, 224, 0.22) transparent; }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255, 241, 224, 0.2); border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 241, 224, 0.32); }

kbd {
  display: inline-block;
  font: 700 10px/1 var(--mono);
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(27, 19, 13, 0.09);
  border: 1px solid rgba(27, 19, 13, 0.22);
  box-shadow: 0 1.5px 0 rgba(27, 19, 13, 0.22);
  color: inherit;
  vertical-align: 1px;
}

/* ——— shared bits ——— */
.orange-dot, .orange-d { color: var(--orange); }
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(189, 242, 77, 0.13);
  animation: pulseDot 1.8s ease-in-out infinite;
  flex: none;
}
.pulse-dot.orange { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.16); }
.pulse-dot.red { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 91, 72, 0.17); }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 700 8.5px/1 var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag-none  { background: #e6dac8; border-color: #d5c5af; color: #715a46; }
.tag-heat  { background: #ffe0d2; border-color: #f2b397; color: #922d11; }
.tag-car   { background: #ffe7c0; border-color: #eec47e; color: #844507; }
.tag-cool  { background: #d6edf7; border-color: #aad5e8; color: #13577e; }
.tag-gentle{ background: #fadde9; border-color: #eab6ca; color: #89254f; }

.count-pill {
  flex: none;
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.06em;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line);
  color: #ecdfce;
  white-space: nowrap;
}
.count-warn { color: #ffd27a; border-color: rgba(255, 190, 90, 0.28); background: rgba(255, 174, 60, 0.1); }
.count-hot { color: #ffb4a4; border-color: rgba(255, 110, 90, 0.36); background: rgba(255, 91, 72, 0.13); animation: softBlink 1.2s ease-in-out infinite; }

/* ——— buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: transparent;
  font: 800 12.5px/1 var(--display);
  letter-spacing: 0.065em;
  text-transform: uppercase;
  padding: 12px 18px;
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.13s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 3px 0 #1b130d, 0 12px 22px rgba(0, 0, 0, 0.24);
}
.btn-primary:hover { background: #ff7c44; transform: translate(-1px, -2px); box-shadow: 0 5px 0 #1b130d, 0 16px 28px rgba(0, 0, 0, 0.26); }
.btn-primary:active { transform: translate(0, 1px); box-shadow: 0 2px 0 #1b130d; }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 3px 0 rgba(27, 19, 13, 0.35);
}
.btn-dark:hover { background: #2c1f15; transform: translateY(-1px); }
.btn-dark:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(27, 19, 13, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 243, 228, 0.3);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 243, 228, 0.55); transform: translateY(-1px); }
.btn-quiet { box-shadow: none; background: transparent; color: #4f3b2b; border-color: rgba(27, 19, 13, 0.24); }
.btn-quiet:hover { background: rgba(27, 19, 13, 0.07); }
.btn-big { padding: 16px 24px; font-size: 15px; min-height: 54px; border-radius: 14px; letter-spacing: 0.075em; }
.btn-arrow { font-size: 19px; line-height: 0.7; transform: translateY(-1px); }
.btn-spark { font-size: 11px; }

/* ==========================================================================
   APP SHELL
   ========================================================================== */
#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.topbar {
  flex: 0 0 66px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #1a1511 0%, #14110e 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 44, 0.42) 22%, rgba(255, 107, 44, 0.09) 55%, transparent);
  pointer-events: none;
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  position: relative;
  width: 36px; height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--orange);
  color: var(--ink);
  font: 800 22px/1 var(--display);
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1.5px rgba(27, 19, 13, 0.82);
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #14110e;
  top: -7px; right: -6px;
}
.brand-word { font: 800 25px/1 var(--display); letter-spacing: -0.045em; white-space: nowrap; font-stretch: 92%; }
.brand-word span { color: var(--orange); }
.brand-sub {
  font: 700 8.5px/1.35 var(--mono);
  letter-spacing: 0.08em;
  color: #978472;
  border-left: 1px solid var(--line-strong);
  padding-left: 11px;
  margin-left: 2px;
  white-space: nowrap;
}
.brand-sub b { color: #ffc4ab; font-weight: 700; }

.tech-feed {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0f0c0a;
  overflow: hidden;
  position: relative;
}
.tech-feed::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.tech-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--lime);
  white-space: nowrap;
}
.tech-track { flex: 1 1 auto; min-width: 0; height: 20px; overflow: hidden; }
.ticker-text {
  display: block;
  font: 400 12.5px/20px var(--mono);
  color: #eadfcf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-text.is-new { animation: tickerIn 0.42s cubic-bezier(0.2, 0.9, 0.3, 1) both; }

.hud { display: flex; align-items: center; gap: 15px; flex: 0 0 auto; }
.hud-metric { display: flex; flex-direction: column; gap: 2px; }
.hud-label { font: 700 8.5px/1 var(--mono); letter-spacing: 0.1em; color: var(--text-faint); white-space: nowrap; }
.hud-cash strong {
  font: 800 22px/1 var(--display);
  letter-spacing: -0.035em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hud-cash strong.is-neg { color: #ff9f8c; }
.hud-cash strong.bump { animation: cashBump 0.34s ease; }
.hud-brand { width: 172px; }
.hud-brand-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hud-brand-num { display: flex; align-items: baseline; gap: 1px; font-variant-numeric: tabular-nums; }
.hud-brand-num b { font: 800 19px/1 var(--display); letter-spacing: -0.03em; color: var(--lime); }
.hud-brand-num small { font: 700 8px/1 var(--mono); color: #7f6d5c; margin-left: 1px; }
.hud-brand-num em { font: 700 7.5px/1 var(--mono); letter-spacing: 0.07em; color: var(--lime); margin-left: 7px; transform: translateY(-2px); }
.hud-brand[data-tone="ok"] .hud-brand-num b, .hud-brand[data-tone="ok"] .hud-brand-num em { color: #f2d665; }
.hud-brand[data-tone="warn"] .hud-brand-num b, .hud-brand[data-tone="warn"] .hud-brand-num em { color: #ffb04a; }
.hud-brand[data-tone="bad"] .hud-brand-num b, .hud-brand[data-tone="bad"] .hud-brand-num em { color: var(--red); }
.hud-brand[data-tone="bad"] .hud-brand-num b { animation: softBlink 0.9s ease-in-out infinite; }
.brand-track { margin-top: 5px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.085); overflow: hidden; }
.brand-track i {
  display: block; height: 100%; width: 62%;
  border-radius: 99px;
  background: linear-gradient(90deg, #e5c84e, var(--lime));
  transition: width 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.3s ease;
}
.hud-brand[data-tone="warn"] .brand-track i { background: linear-gradient(90deg, #ff8b3a, #ffc061); }
.hud-brand[data-tone="bad"] .brand-track i { background: linear-gradient(90deg, #c92f21, var(--red)); }
.hud-brand.is-hit { animation: brandHit 0.36s ease; }

.hud-streak {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line);
  background: #1b1511;
  border-radius: 999px;
  padding: 7px 10px 7px 9px;
  font: 700 13px/1 var(--mono);
  color: #907d6a;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.hud-streak b { font-weight: 700; }
.hud-streak.is-hot { color: #ffe2c8; background: rgba(255, 107, 44, 0.14); border-color: rgba(255, 107, 44, 0.38); }
.hud-streak.bump { animation: streakBump 0.3s ease; }

.topbar-btns { display: flex; gap: 6px; margin-left: 2px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1f1915;
  color: var(--paper);
  display: grid;
  place-items: center;
  font: 800 15px/1 var(--display);
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.icon-btn:hover { background: #2a211b; border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn.is-muted { color: #8d7a69; }
.icon-btn.is-muted #soundIcon { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.icon-btn-pause span { display: flex; gap: 4px; }
.icon-btn-pause i { display: block; width: 4px; height: 13px; background: currentColor; border-radius: 2px; }

/* ——— grid ——— */
.app-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 376px;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "drivers map tickets"
    "drivers orders tickets";
  gap: 14px;
  padding: 14px 18px 16px;
  position: relative;
  z-index: 5;
}
.panel {
  position: relative;
  min-height: 0;
  min-width: 0;
  background: linear-gradient(180deg, #1e1915 0%, #181411 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 44px rgba(0, 0, 0, 0.22);
}
.panel-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 10px;
}
.panel-head h2 {
  font: 800 14.5px/1 var(--display);
  letter-spacing: 0.075em;
  color: var(--paper);
  white-space: nowrap;
}
.panel-head p {
  margin-top: 4px;
  font: 500 11.5px/1.32 var(--display);
  color: #a89583;
  letter-spacing: 0.002em;
}
.panel-head p em { color: #ffc3aa; }

/* ==========================================================================
   RIDERS
   ========================================================================== */
.drivers-panel { grid-area: drivers; display: flex; flex-direction: column; overflow: hidden; }
.driver-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.driver-card {
  --c: var(--orange);
  --batc: var(--c);
  position: relative;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012));
  padding: 11px 12px 10px 15px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  animation: riseIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.driver-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c);
  opacity: 0.92;
}
.driver-card.is-busy { border-color: rgba(255, 241, 224, 0.17); background: linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.02)); }
.driver-card.is-away { opacity: 0.74; }
.driver-card.is-away::before { background: #6e5a4a; }
.driver-card.is-low { --batc: var(--red); }
.dc-top { display: flex; align-items: center; gap: 9px; }
.dc-avatar {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c);
  color: var(--ink);
  font: 800 19px/1 var(--display);
  border: 2px solid rgba(27, 19, 13, 0.85);
  box-shadow: 0 2px 0 rgba(27, 19, 13, 0.5);
}
.dc-id { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dc-id b { font: 800 16.5px/1 var(--display); letter-spacing: -0.02em; color: var(--paper); }
.dc-id small { font: 700 8.5px/1 var(--mono); letter-spacing: 0.065em; text-transform: uppercase; color: #a08c79; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-pct {
  margin-left: auto;
  align-self: flex-start;
  font: 700 11px/1 var(--mono);
  color: #e8dac8;
  background: #100d0b;
  border: 1px solid var(--line);
  padding: 5px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.driver-card.is-low .dc-pct { color: #ff9f8c; border-color: rgba(255, 91, 72, 0.32); }
.dc-kit { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 8px; }
.kit-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font: 700 8.5px/1 var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 7px;
  white-space: nowrap;
  border: 1px solid;
}
.kit-car    { color: #ffd08f; border-color: rgba(255, 173, 80, 0.3); background: rgba(255, 173, 80, 0.085); }
.kit-heat   { color: #ffb18f; border-color: rgba(255, 128, 86, 0.32); background: rgba(255, 107, 44, 0.09); }
.kit-cool   { color: #9ddeff; border-color: rgba(99, 200, 255, 0.28); background: rgba(99, 200, 255, 0.085); }
.kit-gentle { color: #ffb4d0; border-color: rgba(255, 136, 183, 0.3); background: rgba(255, 136, 183, 0.085); }
.dc-status {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font: 500 12px/1.3 var(--display);
  color: #e4d7c6;
  min-width: 0;
}
.dc-status b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-status i { color: #8f7c6a; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-status i::before { content: "·"; margin-right: 6px; color: #6f5d4d; }
.dc-status.is-busy b { color: var(--c); filter: brightness(1.15); }
.dc-status.is-warn b { color: var(--yellow); }
.dc-status.is-bad b { color: #ff9a89; }
.dc-bat { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); margin-top: 8px; overflow: hidden; }
.dc-bat i { display: block; height: 100%; width: 80%; border-radius: 99px; background: var(--batc); opacity: 0.9; transition: width 0.25s ease; }
.driver-foot {
  flex: 0 0 auto;
  padding: 11px 15px 14px;
  border-top: 1px solid var(--line);
}
.foot-kicker { font: 700 8.5px/1 var(--mono); letter-spacing: 0.1em; color: #bfa48f; }
.driver-foot p { margin-top: 5px; font: 500 11px/1.42 var(--display); color: #8f7c6a; }

/* ==========================================================================
   MAP
   ========================================================================== */
.map-panel { grid-area: map; display: flex; flex-direction: column; overflow: hidden; }
.map-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 15px 9px;
  border-bottom: 1px solid var(--line);
  min-height: 56px;
}
.shift-clock {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto auto;
  column-gap: 9px;
  align-items: center;
  min-width: 182px;
}
.clock-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font: 700 8.5px/1 var(--mono); letter-spacing: 0.1em; color: #c2af9b; }
#shiftTime { grid-column: 1; grid-row: 2; font: 800 23px/1 var(--display); letter-spacing: -0.03em; color: var(--paper); font-variant-numeric: tabular-nums; margin-top: 4px; }
.clock-sub { grid-column: 2; grid-row: 2; align-self: end; font: 400 9px/1 var(--mono); color: #86725f; padding-bottom: 3px; white-space: nowrap; }
.clock-track { grid-column: 1 / -1; grid-row: 3; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.085); overflow: hidden; margin-top: 6px; }
.clock-track i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width 0.2s linear; }
.shift-clock.is-urgent #shiftTime { color: var(--red); animation: softBlink 0.9s ease-in-out infinite; }
.shift-clock.is-urgent .clock-track i { background: var(--red); }

.fix-chip {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 430px;
  height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  overflow: hidden;
}
.fix-label { flex: none; font: 700 8.5px/1 var(--mono); letter-spacing: 0.085em; color: #c7b39f; white-space: nowrap; }
.fix-track { flex: 1 1 auto; min-width: 42px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.085); overflow: hidden; }
.fix-track i { display: block; height: 100%; width: 8%; border-radius: 99px; background: repeating-linear-gradient(90deg, var(--lime) 0 7px, #9ed132 7px 8.5px); transition: width 0.7s ease; }
#fixPct { flex: none; min-width: 33px; text-align: right; font: 700 11.5px/1 var(--mono); color: var(--lime); font-variant-numeric: tabular-nums; }
.fix-eta { flex: none; font: 400 9px/1 var(--mono); color: #8d7a68; white-space: nowrap; display: none; }
.flow-badges { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-left: auto; overflow: hidden; flex: 0 1 auto; min-width: 0; }
.flow-badge {
  flex: none;
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.035em;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  color: #ffd1b8;
  background: rgba(255, 107, 44, 0.14);
  border: 1px solid rgba(255, 107, 44, 0.32);
  animation: badgeIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.flow-badge.badge-good { color: #e3ffb0; background: rgba(189, 242, 77, 0.1); border-color: rgba(189, 242, 77, 0.3); }
.flow-badge.badge-cool { color: #c5edff; background: rgba(99, 200, 255, 0.1); border-color: rgba(99, 200, 255, 0.3); }

.map-canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  margin: 10px 10px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f3e9d8;
  box-shadow: inset 0 0 0 1px rgba(20, 15, 10, 0.32), 0 12px 26px rgba(0, 0, 0, 0.26);
}
#mapCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.map-techline { display: none; }
.map-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 10px;
  font: 700 8.5px/1.2 var(--mono);
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #b9a690;
}
.map-footer small { font: 400 9px/1.2 var(--mono); letter-spacing: 0.02em; text-transform: none; color: #7e6b5a; }
.map-footer > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.legend-pin { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.16); flex: none; }
.map-footer-right { color: #9f8c7a; }

/* ==========================================================================
   ORDER QUEUE
   ========================================================================== */
.orders-panel { grid-area: orders; height: 256px; display: flex; flex-direction: column; overflow: hidden; }
.orders-head { align-items: center; padding: 11px 16px 7px; }
.orders-head h2 { font-size: 14px; }
.orders-head p { margin-top: 3px; font-size: 11px; }
.orders-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.rail-btn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #221b16;
  color: #eadccb;
  font: 700 18px/1 var(--display);
  padding: 0 0 2px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.rail-btn:hover:not(:disabled) { background: #2e241d; border-color: var(--line-strong); }
.rail-btn:active:not(:disabled) { transform: translateY(1px); }
.rail-btn:disabled { opacity: 0.32; }

.order-rail {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 14px 14px 16px;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.order-cards {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-height: 100%;
  width: max-content;
  padding-right: 8px;
}
.order-cards.is-empty { width: 100%; }

.order-card {
  position: relative;
  flex: 0 0 228px;
  width: 228px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  padding: 11px 12px 12px;
  border-radius: 12px 12px 10px 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.34), 0 14px 22px rgba(0, 0, 0, 0.24);
  animation: cardIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  z-index: 1;
}
/* scalloped receipt edge */
.order-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px; height: 7px;
  background: radial-gradient(circle at 50% 0, var(--paper) 0 3.7px, transparent 4.1px) 0 0 / 9px 7px repeat-x;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.2));
  pointer-events: none;
  z-index: -1;
}
.order-card.is-assigned { background: #ece2d1; }
.order-card.is-assigned::after { background: radial-gradient(circle at 50% 0, #ece2d1 0 3.7px, transparent 4.1px) 0 0 / 9px 7px repeat-x; }
.order-card.is-urgent { box-shadow: 0 0 0 2px #d7412b, 0 3px 0 rgba(0, 0, 0, 0.34), 0 14px 22px rgba(0, 0, 0, 0.24); }
.order-card.is-vip { background: linear-gradient(165deg, #fff5d6 0%, var(--paper) 55%); box-shadow: 0 0 0 2px #d9a11b, 0 3px 0 rgba(0, 0, 0, 0.34), 0 14px 26px rgba(0, 0, 0, 0.28); }
.order-card.is-vip::before {
  content: "★ THE CRITIC";
  position: absolute;
  top: -9px; left: 10px;
  font: 700 8px/1 var(--mono);
  letter-spacing: 0.08em;
  background: #1b130d;
  color: #ffd77c;
  border-radius: 5px;
  padding: 4px 6px;
  z-index: 2;
}

.oc-top { display: flex; align-items: center; gap: 7px; min-height: 24px; }
.oc-id { font: 700 9.5px/1 var(--mono); letter-spacing: 0.06em; color: #6b5543; white-space: nowrap; }
.oc-timer {
  margin-left: auto;
  font: 700 12px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  background: #1b130d;
  color: var(--paper);
  border-radius: 6px;
  padding: 5px 6px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.oc-timer.is-soon { background: #7d3b13; color: #ffe7c7; }
.oc-timer.is-urgent { background: #c73724; color: #fff4e8; animation: softBlink 0.9s ease-in-out infinite; }
.oc-timer.is-late { background: #7f1c12; color: #ffd9d0; }
.oc-pay {
  font: 800 15px/1 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  background: var(--orange);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  padding: 4px 6px 3px;
  white-space: nowrap;
}
.oc-pay.bump { animation: payBump 0.35s ease; }

.oc-customer { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; min-width: 0; }
.oc-name { flex: 1 1 auto; min-width: 0; font: 800 16.5px/1.1 var(--display); letter-spacing: -0.025em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-dist { flex: 0 0 auto; font: 700 8.5px/1 var(--mono); letter-spacing: 0.055em; text-transform: uppercase; color: #7b634e; white-space: nowrap; }
.oc-dist::before { content: "⌖"; margin-right: 4px; font-size: 10px; color: #a14b28; }
.oc-items { margin-top: 3px; font: 500 12px/1.25 var(--display); color: #503c2c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-meta { display: flex; align-items: center; gap: 7px; margin-top: 8px; min-height: 22px; min-width: 0; overflow: hidden; }
.oc-ready { margin-left: auto; font: 700 8.5px/1 var(--mono); letter-spacing: 0.045em; color: #7d6450; text-transform: uppercase; white-space: nowrap; }
.oc-ready.is-ready { color: #b24713; animation: softBlink 1.2s ease-in-out infinite; }
.oc-divider { height: 1px; margin: 8px 0 7px; background-image: linear-gradient(90deg, rgba(27, 19, 13, 0.28) 50%, transparent 50%); background-size: 6px 1px; flex: none; }

.oc-dispatch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: auto; }
.dispatch-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 2px 4px;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(27, 19, 13, 0.17);
  background: #fffbf4;
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(27, 19, 13, 0.13);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.dispatch-chip:not(.is-off):hover {
  background: #ffffff;
  border-color: #e8562f;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(27, 19, 13, 0.16), 0 6px 12px rgba(232, 86, 47, 0.16);
}
.dispatch-chip:not(.is-off):active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(27, 19, 13, 0.13); }
.chip-face {
  width: 25px; height: 25px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c, var(--orange));
  color: #1b130d;
  font: 800 12px/1 var(--display);
  border: 1.5px solid rgba(27, 19, 13, 0.78);
}
.chip-eta { font: 700 9.5px/1.1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.dispatch-chip.is-near .chip-eta { color: #a85c12; }
.dispatch-chip.is-late .chip-eta { color: #b02e1d; }
.dispatch-chip.is-best { border-color: #e8562f; background: #fff3e7; box-shadow: 0 2px 0 rgba(232, 86, 47, 0.26), inset 0 0 0 1px #e8562f; }
.chip-star {
  display: none;
  position: absolute;
  top: -7px; right: -3px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #e8562f;
  color: #fff9f0;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.dispatch-chip.is-best .chip-star { display: block; }
.dispatch-chip.is-off { background: #ece1d1; border-color: rgba(27, 19, 13, 0.1); box-shadow: none; cursor: not-allowed; }
.dispatch-chip.is-off .chip-face { filter: grayscale(0.85); opacity: 0.5; border-color: rgba(27, 19, 13, 0.36); border-style: dashed; }
.dispatch-chip.is-off .chip-eta { color: #8d7866; font-size: 8px; letter-spacing: 0.035em; text-transform: uppercase; font-weight: 400; margin-top: 1px; }

.oc-assigned {
  margin-top: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #1b130d;
  color: #f4e9d9;
}
.oc-rider { display: inline-flex; align-items: center; gap: 6px; font: 800 12.5px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; flex: none; }
.oc-rider .chip-face { width: 23px; height: 23px; font-size: 11px; border-color: rgba(255, 255, 255, 0.2); }
.oc-live { margin-left: auto; font: 700 9px/1.3 var(--mono); text-align: right; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.oc-live.tone-go { color: #c9f56c; }
.oc-live.tone-prep { color: #ffd27a; }
.oc-live.tone-late, .oc-live.tone-bad { color: #ff9a86; }
.oc-live.tone-done { color: #9fe4a7; }
.oc-live.tone-meh { color: #c4b09e; }
.order-card.is-late-card { box-shadow: 0 0 0 2px #b23a27, 0 3px 0 rgba(0, 0, 0, 0.34), 0 14px 22px rgba(0, 0, 0, 0.24); }

.queue-empty {
  flex: 0 0 330px;
  width: 330px;
  height: 178px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 16px 26px;
  border: 1.5px dashed rgba(255, 241, 224, 0.17);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
  color: #a89583;
}
.queue-empty .qe-icon { font-size: 26px; opacity: 0.85; margin-bottom: 2px; filter: saturate(0.8); }
.queue-empty b { font: 800 14px/1.2 var(--display); letter-spacing: 0.01em; color: #e8dac8; }
.queue-empty small { font: 400 10.5px/1.45 var(--mono); color: #8f7c6a; }

/* ==========================================================================
   SUPPORT INBOX
   ========================================================================== */
.tickets-panel { grid-area: tickets; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #1f1a16 0%, #16120f 100%); }
.tickets-panel .panel-head { padding-bottom: 11px; }
.ticket-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 0 12px 12px; }

.ticket-paper {
  position: relative;
  flex: 0 0 auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 15px 13px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.36), 0 16px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: paperIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.ticket-paper::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 14px, var(--orange) 14px 28px);
  opacity: 0.9;
}
.tp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 2px; font: 700 8.5px/1 var(--mono); letter-spacing: 0.075em; text-transform: uppercase; color: #6a5544; }
.tp-timer { display: inline-flex; align-items: center; gap: 5px; background: #1b130d; color: var(--paper); border-radius: 6px; padding: 5px 7px; font: 700 11.5px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-timer.is-hot { background: #c73724; animation: softBlink 0.9s ease-in-out infinite; }
.tp-timerbar { height: 5px; margin-top: 8px; border-radius: 99px; background: rgba(27, 19, 13, 0.12); overflow: hidden; }
.tp-timerbar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #e88b2f, var(--orange)); transition: width 0.12s linear; }
.tp-timerbar i.is-hot { background: var(--red); }

.tp-person { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.tp-avatar {
  width: 37px; height: 37px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--av, #d9b38c);
  color: var(--ink);
  font: 800 13px/1 var(--display);
  letter-spacing: -0.01em;
  border: 1.5px solid rgba(27, 19, 13, 0.7);
}
.tp-who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tp-who b { font: 800 17px/1 var(--display); letter-spacing: -0.025em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 245px; }
.tp-who small { font: 700 8px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #826a55; }
.tp-icon { margin-left: auto; font-size: 21px; line-height: 1; filter: saturate(0.92); }
.tp-msg { margin-top: 10px; font: 500 14.5px/1.39 var(--display); letter-spacing: -0.004em; color: #2a1e14; }

.tp-context {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #e8dcca;
  font: 700 9.3px/1.45 var(--mono);
  color: #513d2d;
  letter-spacing: 0.01em;
}
.tp-context .ctx-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; margin-top: 3px; background: #b58b36; box-shadow: 0 0 0 3px rgba(181, 139, 54, 0.14); }
.tp-context.tone-go .ctx-dot { background: #4f8f3f; box-shadow: 0 0 0 3px rgba(79, 143, 63, 0.14); }
.tp-context.tone-late .ctx-dot, .tp-context.tone-bad .ctx-dot { background: #c23d2b; box-shadow: 0 0 0 3px rgba(194, 61, 43, 0.14); }
.tp-context.tone-done .ctx-dot { background: #4f8f3f; }
.tp-context.tone-meh .ctx-dot { background: #8f7b68; }

.tp-ask { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 12px 0 6px; font: 700 8px/1 var(--mono); letter-spacing: 0.095em; text-transform: uppercase; color: #8a725d; }
.tp-ask span:last-child { font-weight: 400; letter-spacing: 0.02em; text-transform: none; font-size: 9px; color: #a18a74; text-align: right; }
.tp-replies { display: flex; flex-direction: column; gap: 6px; }
.reply-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  text-align: left;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid #1b130d;
  background: #1b130d;
  color: #f6ede0;
  font: 500 12.5px/1.37 var(--display);
  letter-spacing: -0.002em;
  transition: transform 0.13s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  animation: replyIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.reply-btn:nth-child(2) { animation-delay: 0.035s; }
.reply-btn:nth-child(3) { animation-delay: 0.07s; }
.reply-btn:hover { background: #2b1e15; border-color: var(--orange); transform: translateX(2px); }
.reply-btn:active { transform: translateX(2px) translateY(1px); }
.reply-key {
  flex: none;
  width: 19px; height: 19px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffd2b8;
  font: 700 9.5px/1 var(--mono);
  margin-top: 1px;
}

.ticket-queue { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-top: 11px; }
.tq-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 4px 6px; font: 700 8.5px/1 var(--mono); letter-spacing: 0.085em; text-transform: uppercase; color: #a28e7c; flex: none; }
.tq-head span:last-child { font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: #7e6b5a; font-size: 9px; }
.tq-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; padding-bottom: 2px; }
.tq-row {
  position: relative;
  flex: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 8px 10px 9px;
  background: rgba(255, 255, 255, 0.034);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #ead9c8;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  overflow: hidden;
}
.tq-row:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 107, 44, 0.4); transform: translateX(2px); }
.tq-icon { flex: none; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #0f0c0a; font-size: 15px; line-height: 1; }
.tq-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tq-name { font: 800 12.5px/1.15 var(--display); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tq-short { font: 400 9.5px/1.25 var(--mono); color: #a08c79; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tq-time { flex: none; font: 700 11px/1 var(--mono); font-variant-numeric: tabular-nums; color: #ffd27a; white-space: nowrap; }
.tq-time.is-hot { color: #ff9c8a; animation: softBlink 0.9s ease-in-out infinite; }
.tq-bar { position: absolute; left: 0; bottom: 0; height: 2px; background: #eaa43a; opacity: 0.9; border-radius: 99px; transition: width 0.15s linear; }
.tq-bar.is-hot { background: var(--red); }
.tq-empty { flex: none; padding: 13px 14px; border: 1px dashed rgba(255, 241, 224, 0.13); border-radius: 12px; text-align: center; font: 400 10.5px/1.55 var(--mono); color: #8e7b68; }
.tq-empty b { color: #c2ad99; font-weight: 700; }

.ticket-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 24px 30px 44px;
}
.ticket-empty .te-emoji { font-size: 38px; line-height: 1; margin-bottom: 4px; filter: saturate(0.85); }
.ticket-empty h3 { font: 800 25px/1.05 var(--display); letter-spacing: -0.035em; color: var(--paper); }
.ticket-empty p { max-width: 260px; font: 500 12px/1.5 var(--display); color: #a08c79; }
.ticket-empty .te-tip { margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px dashed rgba(255, 241, 224, 0.16); border-radius: 999px; font: 400 9.5px/1.2 var(--mono); color: #8e7b68; }

/* pinned desk note at the bottom of the inbox */
.inbox-foot {
  flex: 0 0 auto;
  margin: 0 12px 12px;
  padding: 10px 12px 11px;
  border: 1px dashed rgba(255, 241, 224, 0.17);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}
.inbox-foot-tag { display: inline-block; margin-bottom: 5px; font: 700 8px/1 var(--mono); letter-spacing: 0.1em; color: #ffb38d; }
.inbox-foot p { font: 500 11.2px/1.45 var(--display); color: #a08c79; }
.inbox-foot p b { color: #ffd1b8; font-weight: 700; }
@media (max-width: 900px) {
  .inbox-foot { margin: 0 9px 9px; padding: 9px 10px; }
  .inbox-foot p { font-size: 10.4px; }
}

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toasts {
  position: fixed;
  top: 132px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  width: min(432px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  --tone: var(--orange);
  position: relative;
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 13px 10px 17px;
  border-radius: 13px;
  background: #fbf3e6;
  color: var(--ink);
  border: 1px solid rgba(27, 19, 13, 0.24);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.34), 0 18px 34px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tone); }
.toast.tone-good { --tone: #3f914e; }
.toast.tone-bad { --tone: #cf3f2c; }
.toast.tone-gold { --tone: #d7a11f; }
.toast.tone-info { --tone: #57728c; }
.toast-icon { flex: none; font-size: 18px; line-height: 1.2; }
.toast-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.toast-title { font: 800 13.5px/1.25 var(--display); letter-spacing: -0.012em; color: var(--ink); }
.toast-detail { font: 500 11.5px/1.4 var(--display); color: #5b4635; }
.toast.is-out { animation: toastOut 0.26s ease forwards; }

/* ==========================================================================
   COACH — lives in the flex flow between the topbar and the dashboard
   ========================================================================== */
.coach {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 11px 18px 0;
  padding: 9px 11px 9px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 44, 0.46);
  background: linear-gradient(90deg, #201712, #18130f);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 25;
  animation: coachDrop 0.36s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.coach-tag {
  flex: none;
  font: 700 8.5px/1.2 var(--mono);
  letter-spacing: 0.075em;
  color: #ffb893;
  background: rgba(255, 107, 44, 0.13);
  border: 1px solid rgba(255, 107, 44, 0.28);
  padding: 7px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.coach-text { flex: 1 1 auto; min-width: 0; font: 500 12.5px/1.42 var(--display); color: #f2e6d7; }
.coach-text b { color: #ffd1b8; font-weight: 700; }
.coach-btn {
  flex: none;
  border: none;
  border-radius: 9px;
  background: var(--orange);
  color: var(--ink);
  font: 800 9.5px/1 var(--display);
  letter-spacing: 0.07em;
  padding: 9px 11px;
  text-transform: uppercase;
}
.coach-btn:hover { background: #ff7d46; }

/* ==========================================================================
   START SCREEN
   ========================================================================== */
.start-screen {
  position: fixed;
  inset: 0;
  z-index: 400;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  color: var(--paper);
  background:
    radial-gradient(1100px 780px at 88% -12%, rgba(255, 107, 44, 0.17), transparent 60%),
    radial-gradient(900px 700px at -8% 112%, rgba(99, 200, 255, 0.065), transparent 58%),
    #110e0c;
  isolation: isolate;
}
.start-screen.is-leaving { animation: startLeave 0.48s cubic-bezier(0.5, 0, 0.75, 0.2) forwards; pointer-events: none; }
.start-glow {
  position: absolute;
  z-index: -2;
  right: -220px; top: -300px;
  width: 980px; height: 980px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 44, 0.95), rgba(255, 107, 44, 0.28) 36%, transparent 67%);
  filter: blur(8px);
  opacity: 0.34;
  pointer-events: none;
}
.start-screen::before {
  content: "NOMNOW";
  position: absolute;
  z-index: -2;
  right: -2vw; bottom: 126px;
  font: 800 clamp(160px, 28vw, 460px)/0.75 var(--display);
  font-stretch: 80%;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 241, 224, 0.055);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.start-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 241, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 241, 224, 0.05) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 58%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.4) 58%, transparent 96%);
  pointer-events: none;
}
.start-topline {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 21px clamp(20px, 4.2vw, 64px) 0;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.09em;
  color: #d2c1af;
}
.start-brand { display: inline-flex; align-items: center; gap: 9px; font: 800 23px/1 var(--display); letter-spacing: -0.04em; color: var(--paper); }
.start-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 20px; }
.start-brand em { font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: #8f7b69; margin-left: 2px; }
.start-incident { display: inline-flex; align-items: center; gap: 8px; color: #ffb39a; border: 1px solid rgba(255, 107, 44, 0.32); background: rgba(255, 107, 44, 0.085); border-radius: 999px; padding: 8px 12px; white-space: nowrap; }

.start-body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(24px, 5vw, 84px);
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: clamp(18px, 3.8vh, 48px) clamp(20px, 4.2vw, 64px) clamp(18px, 3vh, 38px);
}
.start-copy { min-width: 0; }
.start-eyebrow {
  font: 700 10.5px/1.5 var(--mono);
  letter-spacing: 0.115em;
  color: #d9c7b4;
  margin-bottom: 17px;
  animation: startRise 0.55s 0.05s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.start-eyebrow span { color: var(--orange); }
.start-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 81%;
  font-variation-settings: "wght" 800, "wdth" 81, "opsz" 100;
  font-size: clamp(70px, min(12.3vw, 20.5vh), 180px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--paper);
}
.title-line { display: block; white-space: nowrap; animation: titleIn 0.68s cubic-bezier(0.16, 0.9, 0.28, 1) both; }
.title-line:nth-child(2) { animation-delay: 0.07s; }
.title-em { color: var(--orange); text-shadow: 0.045em 0.045em 0 rgba(255, 107, 44, 0.16); }
.title-period { color: var(--paper); text-shadow: none; }
.start-lede {
  max-width: 640px;
  margin-top: clamp(16px, 2.4vh, 26px);
  font: 500 clamp(14px, 1.16vw, 17px)/1.54 var(--display);
  letter-spacing: 0.002em;
  color: #d5c4b2;
  animation: startRise 0.55s 0.2s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.start-lede b { color: var(--paper); font-weight: 700; }
.start-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(20px, 3vh, 30px); animation: startRise 0.55s 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.start-cta .btn-primary { box-shadow: 0 4px 0 #6f2a0d, 0 20px 40px rgba(255, 107, 44, 0.24); }
.start-cta .btn-primary:hover { box-shadow: 0 6px 0 #6f2a0d, 0 24px 44px rgba(255, 107, 44, 0.3); }
.start-cta .btn-ghost { background: rgba(255, 255, 255, 0.025); }
.start-facts { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 18px; font: 700 9.5px/1.4 var(--mono); letter-spacing: 0.065em; text-transform: uppercase; color: #aa9784; animation: startRise 0.55s 0.34s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.start-facts i { margin-right: 5px; font-style: normal; }
.start-best { margin-top: 12px; font: 400 10px/1.5 var(--mono); letter-spacing: 0.015em; color: #8b7765; animation: startRise 0.55s 0.38s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.start-best b { color: #ffc7a9; font-weight: 700; }

.incident-card {
  position: relative;
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: 432px;
  padding: 19px 22px 18px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, 0.4), transparent 60%),
    linear-gradient(160deg, #f5ebdb 0%, #e8dac5 100%);
  color: var(--ink);
  border: 1px solid rgba(27, 19, 13, 0.28);
  border-radius: 16px;
  box-shadow: 12px 12px 0 rgba(255, 107, 44, 0.19), 0 34px 70px rgba(0, 0, 0, 0.48);
  transform: rotate(1.35deg);
  font-family: var(--mono);
  animation: incidentIn 0.72s 0.22s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.incident-card::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: 9px;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(27, 19, 13, 0.24) 50%, transparent 50%);
  background-size: 6px 1px;
}
.ic-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; margin-top: 7px; border-bottom: 1.5px solid rgba(27, 19, 13, 0.22); }
.ic-kicker { font: 700 7.5px/1.35 var(--mono); letter-spacing: 0.06em; color: #755b46; }
.ic-live { flex: none; display: inline-flex; align-items: center; gap: 5px; font: 700 8px/1 var(--mono); letter-spacing: 0.07em; color: #a72c1b; background: #ffdccf; border: 1px solid #eeb09e; border-radius: 999px; padding: 4px 7px; }
.ic-title { margin: 15px 0 10px; font: 800 clamp(31px, 3.5vw, 47px)/0.95 var(--display); font-stretch: 83%; font-variation-settings: "wght" 800, "wdth" 83, "opsz" 80; letter-spacing: -0.045em; }
.ic-rows > div { display: grid; grid-template-columns: 103px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 7.5px 0; border-bottom: 1px dashed rgba(27, 19, 13, 0.2); }
.ic-rows span { font: 700 8.5px/1.35 var(--mono); letter-spacing: 0.065em; color: #846851; }
.ic-rows b { font: 700 10.2px/1.4 var(--mono); letter-spacing: 0.02em; color: #2b1e13; text-transform: uppercase; }
.ic-rows small { font-weight: 400; text-transform: none; letter-spacing: 0; color: #765c48; }
.ic-rows .ic-bad { color: #a82b1b; }
.ic-rows .ic-good { color: #3b6e3a; }
.ic-rows .ic-mark { display: inline-block; justify-self: start; background: #1b130d; color: #ffd7c2; padding: 4px 7px; border-radius: 5px; font-size: 9.2px; }
.ic-terminal { margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: #1b130d; color: #c8f35f; font: 700 9px/1.75 var(--mono); white-space: nowrap; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.ic-terminal .prompt { color: #ffb893; }
.ic-terminal .out { color: #d6e8a2; }
.cursor { color: var(--orange); animation: blink 1s steps(1) infinite; }
.ic-stamp {
  position: absolute;
  right: -16px; top: -20px;
  transform: rotate(7deg);
  padding: 6px 9px 5px;
  border: 2.5px solid rgba(194, 54, 32, 0.76);
  border-radius: 8px;
  background: rgba(255, 247, 234, 0.82);
  color: rgba(194, 54, 32, 0.9);
  font: 800 11px/1.12 var(--mono);
  letter-spacing: 0.09em;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(27, 19, 13, 0.14);
  animation: stampIn 0.42s 0.95s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.start-marquee {
  flex: none;
  height: 35px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 241, 224, 0.1);
  border-bottom: 1px solid rgba(255, 241, 224, 0.1);
  background: rgba(255, 255, 255, 0.024);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track { display: flex; align-items: center; white-space: nowrap; animation: marquee 46s linear infinite; font: 700 9.5px/1 var(--mono); letter-spacing: 0.115em; color: #d3c2b0; }
.marquee-item { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; }
.marquee-item i { font-style: normal; color: var(--orange); font-size: 11px; }
.start-footer {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  padding: 13px clamp(20px, 4.2vw, 64px) calc(13px + var(--safe-bottom));
  font: 700 8.5px/1.3 var(--mono);
  letter-spacing: 0.1em;
  color: #ad9b88;
}
.start-footer i { font-style: normal; color: #6b5a4b; }
.start-footer em { margin-left: auto; font-style: normal; font-weight: 400; letter-spacing: 0.035em; color: #6f5e50; }

/* ==========================================================================
   MODALS / PAPER PANELS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(9, 7, 6, 0.77);
  -webkit-backdrop-filter: blur(7px) saturate(0.86);
  backdrop-filter: blur(7px) saturate(0.86);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: fadeIn 0.2s ease both;
}
.paper-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 44px);
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 100% 0%, rgba(255, 255, 255, 0.36), transparent 62%),
    var(--paper);
  color: var(--ink);
  border: 1px solid rgba(27, 19, 13, 0.25);
  border-radius: 20px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.42), 0 36px 90px rgba(0, 0, 0, 0.62);
}

/* manual */
#manualModal { z-index: 340; }
.manual { width: min(1090px, 100%); animation: modalIn 0.34s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.close-btn {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 5;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: #1b130d;
  color: var(--paper);
  font: 500 23px/1 var(--display);
  padding: 0 0 2px;
  box-shadow: 0 3px 0 rgba(27, 19, 13, 0.28);
  transition: transform 0.13s ease, background 0.15s ease;
}
.close-btn:hover { background: var(--orange); color: var(--ink); transform: rotate(8deg); }
.manual-head { flex: none; padding: 27px 34px 17px; border-bottom: 1.5px solid rgba(27, 19, 13, 0.15); }
.manual-eyebrow { display: block; font: 700 9px/1.4 var(--mono); letter-spacing: 0.095em; color: #996a4d; }
.manual-head h2 { margin-top: 10px; font: 800 clamp(32px, 4.4vw, 50px)/0.96 var(--display); font-stretch: 84%; letter-spacing: -0.045em; }
.manual-head p { margin-top: 9px; font: 500 14px/1.45 var(--display); color: #6b5442; }
.manual-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 34px 27px; }
.manual-intro { max-width: 930px; font: 500 15px/1.56 var(--display); color: #3d2c1f; }
.manual-intro b { font-weight: 800; }
.manual-grid { display: grid; grid-template-columns: 1.08fr 1.06fr 0.92fr; gap: 28px; margin-top: 24px; align-items: start; }
.manual-col h3 { display: flex; align-items: center; gap: 9px; font: 800 20px/1.1 var(--display); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 12px; }
.manual-col h3 span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--ink); color: #ffd2b8; font: 700 10px/1 var(--mono); letter-spacing: 0.03em; transform: translateY(-1px); }
.manual-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.manual-list li { position: relative; padding-left: 16px; font: 500 12.8px/1.5 var(--display); color: #4a3727; }
.manual-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.manual-list li b { color: var(--ink); font-weight: 800; }
.inline-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border-radius: 5px; font: 700 8px/1.4 var(--mono); letter-spacing: 0.035em; border: 1px solid transparent; white-space: nowrap; vertical-align: 1px; }
.inline-tag small { font-weight: 400; opacity: 0.82; margin-left: 2px; }
.policy-card { padding: 15px 16px 14px; border-radius: 16px; background: #1b130d; color: #f4e8d9; box-shadow: 0 3px 0 rgba(27, 19, 13, 0.3); }
.policy-head { font: 700 8.5px/1.4 var(--mono); letter-spacing: 0.095em; color: #ffb38d; margin-bottom: 10px; }
.policy-card ol { list-style: none; counter-reset: pol; display: flex; flex-direction: column; gap: 9px; }
.policy-card li { position: relative; counter-increment: pol; padding-left: 25px; font: 500 12.1px/1.45 var(--display); color: #e3d2c0; }
.policy-card li::before { content: counter(pol, decimal-leading-zero); position: absolute; left: 0; top: 1px; font: 700 9px/1.6 var(--mono); color: #ff996e; }
.policy-card li b { color: #ffe2d0; font-weight: 700; }
.manual-aside { margin-top: 12px; font: 500 11.5px/1.5 var(--display); color: #7a634f; padding: 10px 11px; border: 1px dashed rgba(27, 19, 13, 0.24); border-radius: 11px; }
.manual-col .manual-aside + p { margin-top: 0; }
.kit-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.manual-quote { position: relative; margin: 27px 0 18px; padding: 2px 0 2px 19px; border-left: 4px solid var(--orange); font: 800 clamp(19px, 2.2vw, 27px)/1.18 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.manual-quote cite { display: block; margin-top: 7px; font: 400 10px/1.4 var(--mono); font-style: normal; letter-spacing: 0.015em; color: #806651; }
.manual-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 17px; border-top: 1.5px solid rgba(27, 19, 13, 0.14); }
.manual-foot .btn-primary { box-shadow: 0 3px 0 #1b130d, 0 12px 22px rgba(27, 19, 13, 0.16); }
.manual-foot-note { font: 400 10px/1.4 var(--mono); color: #8b725d; }

/* pause */
.pause-backdrop { z-index: 305; }
.pause-card { width: min(570px, 100%); padding: 31px 34px 28px; animation: modalIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.pause-eyebrow { display: inline-flex; align-items: center; gap: 7px; font: 700 9px/1 var(--mono); letter-spacing: 0.1em; color: #9a5a34; }
.pause-card h2 { margin-top: 13px; font: 800 clamp(32px, 4.8vw, 46px)/0.98 var(--display); letter-spacing: -0.045em; }
.pause-card h2 em { display: block; color: var(--orange-ink); font-style: normal; font-weight: 700; font-size: 0.62em; letter-spacing: -0.025em; margin-top: 5px; }
.pause-card p { margin-top: 15px; font: 500 14px/1.52 var(--display); color: #5d4736; max-width: 440px; }
.pause-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.pause-shortcuts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 19px; padding-top: 14px; border-top: 1px dashed rgba(27, 19, 13, 0.22); font: 500 10px/1 var(--mono); color: #7a624e; }

/* event */
.event-backdrop { z-index: 310; background: rgba(9, 7, 6, 0.8); }
.event-card { width: min(680px, 100%); padding: 23px 28px 19px; animation: eventIn 0.36s cubic-bezier(0.2, 0.9, 0.3, 1) both; overflow-y: auto; }
.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ev-kicker { font: 700 9px/1.4 var(--mono); letter-spacing: 0.09em; color: #8b5e41; text-transform: uppercase; }
.ev-stamp { flex: none; padding: 4px 8px; border: 2px solid rgba(194, 54, 32, 0.72); border-radius: 6px; color: rgba(194, 54, 32, 0.9); font: 700 8.5px/1.2 var(--mono); letter-spacing: 0.08em; transform: rotate(-3deg); background: rgba(255, 247, 234, 0.5); white-space: nowrap; }
.ev-title-row { display: flex; align-items: flex-start; gap: 13px; margin-top: 15px; }
.ev-icon { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: #1b130d; font-size: 25px; line-height: 1; box-shadow: 0 3px 0 rgba(27, 19, 13, 0.25); }
.ev-title { margin: 2px 0 0; font: 800 clamp(28px, 4vw, 40px)/0.98 var(--display); letter-spacing: -0.045em; color: var(--ink); }
.ev-body { margin: 14px 0 0; font: 500 14.5px/1.5 var(--display); color: #3c2c20; }
.ev-body b { font-weight: 800; color: var(--ink); }
.ev-body i { font-style: italic; }
.ev-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 17px; }
.ev-choice {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  text-align: left;
  padding: 11px 13px 11px 11px;
  border-radius: 13px;
  border: 1px solid #1b130d;
  background: #1b130d;
  color: #f7eee2;
  transition: transform 0.13s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  animation: replyIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.ev-choice:nth-child(2) { animation-delay: 0.05s; }
.ev-choice:nth-child(3) { animation-delay: 0.1s; }
.ev-choice:hover { background: var(--orange); color: var(--ink); border-color: var(--ink); transform: translateX(3px); box-shadow: 0 3px 0 rgba(27, 19, 13, 0.45); }
.ev-num { flex: none; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, 0.12); color: #ffd2b8; font: 700 10px/1 var(--mono); margin-top: 1px; }
.ev-choice:hover .ev-num { background: rgba(27, 19, 13, 0.14); color: var(--ink); }
.ev-choice-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ev-choice-body b { font: 800 14.5px/1.25 var(--display); letter-spacing: -0.012em; }
.ev-choice-body em { font: 500 11.5px/1.38 var(--display); color: #c3b09d; }
.ev-choice:hover .ev-choice-body em { color: #4c3423; }
.ev-choice-body small { font: 700 8.8px/1.35 var(--mono); letter-spacing: 0.015em; color: #ffd08f; margin-top: 2px; }
.ev-choice:hover .ev-choice-body small { color: #3d2614; }
.ev-arrow { flex: none; align-self: center; font-size: 19px; line-height: 1; opacity: 0.65; }
.ev-note { margin-top: 13px; font: 400 9px/1.4 var(--mono); letter-spacing: 0.04em; color: #8a715b; text-align: center; }

/* fake-out */
.fakeout {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0b1b11;
  animation: fakeIn 0.14s ease both;
}
.fakeout-scan { position: absolute; inset: 0; opacity: 0.55; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px); mix-blend-mode: overlay; }
.fakeout-inner { position: relative; z-index: 2; max-width: 1100px; padding: 26px; text-align: center; animation: fakePulse 0.85s ease-in-out infinite alternate; }
.fakeout-kicker { font: 700 11px/1.4 var(--mono); letter-spacing: 0.14em; color: #c9f56c; opacity: 0.85; }
.fakeout-main {
  margin-top: 18px;
  font: 800 clamp(46px, 9.6vw, 148px)/0.86 var(--display);
  font-stretch: 82%;
  font-variation-settings: "wght" 800, "wdth" 82, "opsz" 100;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: #c9f56c;
  text-shadow: 0 0 62px rgba(189, 242, 77, 0.3);
}
.fakeout-sub { margin-top: 21px; font: 500 clamp(14px, 1.8vw, 21px)/1.45 var(--display); color: #d9ecc2; max-width: 720px; margin-left: auto; margin-right: auto; }
.fakeout-meter { width: min(480px, 70vw); height: 9px; margin: 28px auto 0; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.fakeout-meter i { display: block; height: 100%; width: 100%; border-radius: 99px; background: #c9f56c; transition: width 0.6s ease, background 0.3s ease; }
.fakeout.is-bad { background: #260b08; animation: fakeShake 0.5s ease both; }
.fakeout.is-bad .fakeout-kicker { color: #ff9d8a; }
.fakeout.is-bad .fakeout-main { color: #ff6b58; text-shadow: 0 0 62px rgba(255, 91, 72, 0.34), 4px 0 0 rgba(99, 200, 255, 0.35), -4px 0 0 rgba(255, 107, 44, 0.35); animation: fakeGlitch 0.26s steps(2, end) infinite; }
.fakeout.is-bad .fakeout-sub { color: #ffd0c6; }
.fakeout.is-bad .fakeout-meter i { background: #ff6b58; }
.fakeout.is-gone { animation: fadeOut 0.25s ease both; }

/* ==========================================================================
   RESULT RECEIPT
   ========================================================================== */
.result-backdrop { z-index: 320; background: rgba(9, 7, 6, 0.82); padding: 18px; }
.result-receipt {
  width: min(544px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 23px 30px 21px;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(255, 255, 255, 0.36), transparent 62%),
    #f7efe2;
  border-radius: 18px 18px 8px 8px;
  animation: receiptIn 0.52s cubic-bezier(0.17, 0.9, 0.3, 1.04) both;
}
.result-receipt::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 9px;
  background: linear-gradient(135deg, #f7efe2 25%, transparent 26%) 0 0/12px 12px, linear-gradient(225deg, #f7efe2 25%, transparent 26%) 0 0/12px 12px;
  background-color: transparent;
  transform: translateY(5px);
  pointer-events: none;
}
.rr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1.5px solid rgba(27, 19, 13, 0.2); }
.rr-brand { display: flex; align-items: center; gap: 8px; font: 800 22px/1 var(--display); letter-spacing: -0.04em; }
.rr-brand span { color: var(--orange); }
.rr-brand .brand-mark { width: 27px; height: 27px; border-radius: 8px; font-size: 17px; box-shadow: inset 0 0 0 1.3px rgba(27, 19, 13, 0.82); background: var(--orange); }
.rr-meta { text-align: right; font: 700 8.5px/1.5 var(--mono); letter-spacing: 0.07em; color: #806853; }
.rr-meta b { color: #b03922; }
.rr-kicker { margin-top: 16px; font: 700 9px/1.3 var(--mono); letter-spacing: 0.11em; color: #8d5a3b; text-align: center; }
.rr-title { margin-top: 7px; font: 800 clamp(32px, 5.2vw, 46px)/0.95 var(--display); font-stretch: 84%; letter-spacing: -0.05em; text-transform: uppercase; text-align: center; color: var(--ink); }
.result-receipt.is-loss .rr-title { color: #a22c1c; }
.rr-stars { display: flex; justify-content: center; gap: 6px; margin-top: 14px; font-size: clamp(34px, 5.6vw, 46px); line-height: 1; letter-spacing: 0.02em; }
.rr-stars .star-on { color: #e5a61b; text-shadow: 0 2px 0 rgba(27, 19, 13, 0.2); }
.rr-stars .star-off { color: rgba(27, 19, 13, 0.15); }
.rr-rating { margin-top: 6px; text-align: center; font: 800 13px/1.3 var(--display); letter-spacing: 0.07em; text-transform: uppercase; color: #4b3525; }
.rr-comment { margin: 13px auto 0; max-width: 410px; text-align: center; font: 500 13.5px/1.45 var(--display); color: #5a4230; }
.rr-divider { display: flex; align-items: center; gap: 7px; margin: 17px 0 6px; color: rgba(27, 19, 13, 0.28); font: 400 10px/1 var(--mono); letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; }
.rr-divider::before, .rr-divider::after { content: ""; flex: 1 1 auto; height: 1px; background-image: linear-gradient(90deg, rgba(27, 19, 13, 0.3) 50%, transparent 50%); background-size: 6px 1px; }
.rr-rows { display: flex; flex-direction: column; }
.rr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 7px 0; border-bottom: 1px dashed rgba(27, 19, 13, 0.17); }
.rr-row:last-child { border-bottom: none; }
.rr-row span { font: 700 9px/1.45 var(--mono); letter-spacing: 0.065em; color: #7e6651; text-transform: uppercase; }
.rr-row small { display: block; margin-top: 2px; font: 400 9.5px/1.35 var(--mono); letter-spacing: 0; text-transform: none; color: #927966; }
.rr-row b { flex: none; font: 800 17px/1.1 var(--display); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rr-cash-row { align-items: center; margin-top: 4px; padding: 11px 12px; border-radius: 11px; background: #1b130d; color: var(--paper); border-bottom: none; }
.rr-cash-row span { color: #ffd0b8; }
.rr-cash-row b { color: #fff3df; font-size: 27px; }
.rr-cash-row span small { display: block; margin-top: 2px; font: 400 8.7px/1.35 var(--mono); color: #bca995; letter-spacing: 0; text-transform: none; }
.rr-cash-row span i.rr-newbest { font-style: normal; }
.rr-cash-row.is-best { position: relative; }
.rr-newbest { display: inline-block; margin-left: 8px; padding: 3px 6px; border-radius: 5px; background: var(--orange); color: var(--ink); font: 700 8px/1.2 var(--mono); letter-spacing: 0.05em; vertical-align: 3px; }
.rr-legend { margin-top: 12px; text-align: center; font: 400 9px/1.55 var(--mono); color: #86705c; letter-spacing: 0.01em; }
.rr-tech { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #ebe0cf; font: 700 9px/1.6 var(--mono); color: #594636; text-align: center; letter-spacing: 0.02em; }
.rr-tech span { color: #a0532e; }
.rr-actions { display: flex; flex-wrap: wrap; gap: 9px 10px; align-items: center; margin-top: 17px; }
.rr-actions .btn { flex: 1 1 auto; }
.rr-actions .btn-quiet { flex: 0 1 auto; }
.rr-fine { margin-top: 11px; text-align: center; font: 400 8.5px/1.4 var(--mono); color: #99826d; letter-spacing: 0.02em; }

/* ==========================================================================
   MOBILE NAV (hidden desktop)
   ========================================================================== */
.mobile-nav { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 1560px) {
  .app-grid { grid-template-columns: 292px minmax(0, 1fr) 400px; gap: 16px; padding: 16px 22px 18px; }
  .orders-panel { height: 266px; }
  .order-card { flex-basis: 238px; width: 238px; }
}
@media (max-width: 1270px) {
  .app-grid { grid-template-columns: 238px minmax(0, 1fr) 342px; gap: 12px; padding: 12px 14px 14px; }
  .brand-sub { display: none; }
  .hud { gap: 12px; }
  .hud-brand { width: 150px; }
  .topbar { gap: 13px; padding: 10px 16px; }
}
@media (max-width: 1090px) and (min-width: 901px) {
  .brand-word { font-size: 22px; }
  .tech-feed { padding-right: 12px; }
  .fix-eta { display: none; }
  .hud-brand { width: 130px; }
  .hud-streak { display: none; }
  .driver-foot { display: none; }
}
@media (min-width: 1101px) {
  .fix-eta { display: inline; }
}

/* ——— tablet / phone: app-shell with persistent map + tabs ——— */
@media (max-width: 900px) {
  body { overflow: hidden; }
  .topbar {
    flex: 0 0 auto;
    min-height: 58px;
    height: 58px;
    padding: 8px 12px;
    gap: 10px;
  }
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 32px; font-size: 19px; border-radius: 10px; }
  .brand-word { font-size: 22px; }
  .tech-feed { display: none; }
  .hud { margin-left: auto; gap: 10px; }
  .hud-label { font-size: 7.5px; }
  .hud-cash strong { font-size: 18px; }
  .hud-brand { width: 112px; }
  .hud-brand-top .hud-label { display: none; }
  .hud-brand-top { justify-content: flex-start; gap: 5px; }
  .hud-brand-num b { font-size: 17px; }
  .hud-brand-num em { display: none; }
  .brand-track { margin-top: 4px; height: 5px; }
  .hud-streak { display: none; }
  .icon-btn { width: 34px; height: 34px; border-radius: 10px; }
  .topbar-btns { gap: 4px; }

  .app-grid {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 8px 9px calc(70px + var(--safe-bottom));
    overflow: hidden;
    min-height: 0;
  }
  .map-panel { flex: 0 0 clamp(236px, 36dvh, 330px); order: 0; }
  .map-topbar { min-height: 44px; padding: 6px 12px 5px; gap: 12px; }
  .shift-clock { min-width: 140px; }
  #shiftTime { font-size: 19px; }
  .clock-sub { display: none; }
  .clock-label { font-size: 7.5px; }
  .clock-track { margin-top: 4px; }
  .fix-chip { height: 34px; max-width: none; padding: 0 9px; gap: 6px; }
  .fix-label { font-size: 7.5px; }
  .fix-eta { display: none; }
  .flow-badges { display: none; }
  .map-canvas-wrap { margin: 7px 7px 7px; border-radius: 12px; }
  .map-footer { display: none; }

  .orders-panel, .tickets-panel, .drivers-panel {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    order: 1;
  }
  .app-grid[data-tab="orders"] .orders-panel,
  .app-grid[data-tab="tickets"] .tickets-panel,
  .app-grid[data-tab="riders"] .drivers-panel { display: flex; }

  .panel-head { padding: 12px 13px 8px; }
  .panel-head p { font-size: 10.5px; }
  .rail-btn { display: none; }
  .orders-head { padding: 11px 13px 6px; }

  .order-rail { overflow-x: hidden; overflow-y: auto; padding: 3px 10px 12px; -webkit-overflow-scrolling: touch; }
  .order-cards { flex-direction: column; width: 100%; height: auto; min-height: 0; gap: 12px; padding-right: 0; padding-bottom: 8px; }
  .order-cards.is-empty { height: 100%; }
  .order-card { flex: 0 0 auto; width: 100%; min-height: 0; padding: 11px 13px 13px; }
  .oc-top { min-height: 26px; }
  .oc-name { font-size: 17px; }
  .oc-items { font-size: 12.5px; white-space: normal; line-height: 1.3; }
  .oc-dispatch { gap: 8px; }
  .dispatch-chip { flex-direction: row; justify-content: center; gap: 7px; padding: 7px 4px; min-height: 44px; }
  .chip-face { width: 26px; height: 26px; }
  .chip-eta { font-size: 10.5px; }
  .queue-empty { flex: 1 1 auto; width: 100%; height: 100%; min-height: 150px; }

  .driver-list { padding: 1px 9px 9px; gap: 8px; }
  .driver-card { padding: 10px 12px 10px 14px; }
  .driver-foot { padding: 10px 13px 13px; }
  .driver-foot p { font-size: 10.5px; }

  .ticket-body { padding: 0 9px 9px; }
  .ticket-paper { padding: 11px 12px 11px; border-radius: 13px; }
  .tp-msg { font-size: 14px; }
  .tp-who b { max-width: 190px; }
  .reply-btn { min-height: 44px; padding: 10px 11px; font-size: 13px; }
  .tp-ask span:last-child { display: none; }
  .ticket-queue { margin-top: 9px; }
  .tq-list { padding-bottom: 3px; }
  .ticket-empty { padding-bottom: 30px; }

  .toasts { top: auto; bottom: calc(78px + var(--safe-bottom)); width: calc(100vw - 22px); gap: 6px; }
  .toast { padding: 8px 11px 8px 15px; border-radius: 12px; }
  .toast-title { font-size: 12.5px; }
  .toast-detail { font-size: 10.8px; }

  .coach {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top, 0px));
    left: 9px;
    right: 9px;
    margin: 0;
    gap: 8px;
    align-items: flex-start;
    padding: 8px 9px 8px 10px;
    border-radius: 12px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 18px 36px rgba(0, 0, 0, 0.5);
    z-index: 110;
    pointer-events: none;
  }
  .coach-btn { pointer-events: auto; }
  .coach-tag { display: none; }
  .coach-text { font-size: 11.2px; line-height: 1.38; }
  .coach-btn { margin-top: 1px; padding: 8px 9px; font-size: 9px; }

  .app-grid[data-tab="tickets"] .map-panel,
  .app-grid[data-tab="riders"] .map-panel { display: none; }
  .app-grid[data-tab="tickets"] .tickets-panel,
  .app-grid[data-tab="riders"] .drivers-panel { flex: 1 1 auto; }
  .inbox-foot { display: none; }
  .ticket-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }

  .mobile-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    display: flex;
    align-items: stretch;
    height: calc(62px + var(--safe-bottom));
    padding: 6px 8px var(--safe-bottom);
    background: rgba(16, 12, 10, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .mobile-tab {
    flex: 1 1 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #998573;
    font: 800 9.5px/1 var(--display);
    letter-spacing: 0.09em;
    padding: 6px 4px;
    transition: background 0.16s ease, color 0.16s ease;
  }
  .mobile-tab-icon { font-size: 18px; line-height: 1; filter: grayscale(0.45) saturate(0.8); }
  .mobile-tab.is-active { color: var(--paper); background: rgba(255, 107, 44, 0.14); }
  .mobile-tab.is-active .mobile-tab-icon { filter: none; }
  .mobile-tab.is-active::after { content: ""; position: absolute; left: 28%; right: 28%; bottom: 2px; height: 2px; border-radius: 99px; background: var(--orange); }
  .mobile-badge {
    position: absolute;
    top: 5px;
    left: calc(50% + 9px);
    min-width: 17px; height: 17px;
    display: grid; place-items: center;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--ink);
    font: 700 9px/1 var(--mono);
    font-style: normal;
  }
  .mobile-badge.is-zero { display: none; }
  .mobile-badge.is-urgent { background: var(--red); color: #fff3ec; animation: softBlink 1s ease-in-out infinite; }

  .modal-backdrop { padding: 10px; align-items: flex-end; }
  .paper-panel { max-height: calc(100dvh - 22px); border-radius: 20px 20px 14px 14px; }
  .manual-head { padding: 22px 20px 13px; }
  .manual-head h2 { padding-right: 30px; }
  .manual-scroll { padding: 16px 20px 22px; }
  .manual-intro { font-size: 14px; }
  .manual-grid { grid-template-columns: 1fr; gap: 25px; margin-top: 20px; }
  .manual-list li { font-size: 13px; }
  .policy-card li { font-size: 12.5px; }
  .manual-quote { margin-top: 23px; }
  .pause-card { padding: 25px 21px 22px; }
  .pause-actions .btn { flex: 1 1 auto; }
  .event-card { padding: 19px 17px 17px; }
  .ev-title-row { gap: 10px; }
  .ev-icon { width: 43px; height: 43px; font-size: 22px; border-radius: 12px; }
  .ev-body { font-size: 13.5px; }
  .ev-choice { padding: 11px 11px 11px 10px; }
  .ev-choice-body b { font-size: 14px; }
  .result-receipt { padding: 20px 19px 19px; }

  .start-topline { padding: 14px 18px 0; }
  .start-brand { font-size: 21px; }
  .start-brand .brand-mark { width: 29px; height: 29px; font-size: 18px; }
  .start-brand em, .start-incident { font-size: 7.5px; }
  .start-incident { padding: 6px 8px; gap: 5px; letter-spacing: 0.055em; }
  .start-body { grid-template-columns: 1fr; gap: 0; padding: 19px 19px 13px; align-items: start; }
  .incident-card { display: none; }
  .start-glow { display: none; }
  .start-title { font-size: clamp(62px, 18.5vw, 108px); line-height: 0.82; }
  .start-eyebrow { font-size: 8.5px; margin-bottom: 10px; letter-spacing: 0.085em; }
  .start-lede { font-size: 13.5px; line-height: 1.48; margin-top: 14px; }
  .start-cta { gap: 9px; margin-top: 17px; flex-wrap: nowrap; align-items: stretch; }
  .start-cta .btn { flex: 1 1 0; min-width: 0; padding: 14px 8px; font-size: 12px; min-height: 50px; letter-spacing: 0.05em; gap: 6px; }
  .start-cta .btn-big { padding: 14px 9px; font-size: 12px; }
  .start-cta .btn-arrow { font-size: 16px; }
  .start-facts { margin-top: 12px; font-size: 8px; gap: 5px 11px; }
  .start-best { font-size: 9px; margin-top: 9px; }
  .start-footer { font-size: 7.6px; letter-spacing: 0.065em; padding: 10px 18px calc(9px + var(--safe-bottom)); gap: 5px 9px; }
  .start-footer em { display: none; }
  .start-marquee { height: 29px; }
  .marquee-track { font-size: 8.5px; }
  body::after { opacity: 0.04; }
}

@media (max-width: 600px) {
  .topbar { padding: 8px 10px; gap: 8px; }
  .brand { gap: 0; }
  .brand-word { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 20px; }
  .hud { gap: 8px; }
  .hud-brand { width: 94px; }
  .hud-cash strong { font-size: 17.5px; }
  .hud-cash .hud-label { font-size: 7px; }
  .icon-btn { width: 32px; height: 32px; }
  .topbar-btns { gap: 3px; }
  .start-incident .si-case { display: none; }
}
@media (max-width: 480px) {
  .hud-brand { width: 86px; }
  .start-title { font-size: clamp(62px, 20vw, 100px); }
  .tp-who b { max-width: 152px; }
  .tp-icon { font-size: 19px; }
}

/* height squeezes on desktop */
@media (max-height: 790px) and (min-width: 901px) {
  .topbar { flex-basis: 60px; padding-top: 8px; padding-bottom: 8px; }
  .orders-panel { height: 246px; }
  .order-card { min-height: 164px; padding-top: 10px; padding-bottom: 10px; }
  .oc-customer { margin-top: 6px; }
  .oc-meta { margin-top: 6px; }
  .oc-divider { margin: 6px 0 6px; }
  .panel-head { padding-top: 11px; padding-bottom: 8px; }
  .driver-card { padding-top: 9px; padding-bottom: 9px; }
  .dc-kit { margin: 7px 0 6px; }
  .ticket-paper { padding-top: 11px; padding-bottom: 11px; }
  .tp-person { margin-top: 8px; }
  .tp-msg { margin-top: 8px; font-size: 14px; }
  .tp-context { margin-top: 8px; }
  .tp-ask { margin: 9px 0 5px; }
  .reply-btn { padding-top: 8px; padding-bottom: 8px; }
  .manual-head { padding-top: 20px; padding-bottom: 13px; }
  .manual-scroll { padding-top: 16px; padding-bottom: 20px; }
  .manual-grid { margin-top: 18px; }
  .manual-head h2 { font-size: clamp(30px, 3.9vw, 44px); }
  .start-body { padding-top: 12px; padding-bottom: 12px; }
  .start-title { font-size: clamp(64px, min(11.4vw, 19vh), 150px); }
  .start-lede { margin-top: 14px; line-height: 1.48; }
  .start-cta { margin-top: 17px; }
  .start-facts { margin-top: 12px; }
  .start-best { margin-top: 8px; }
  .incident-card { padding: 15px 19px 14px; }
  .ic-title { margin: 11px 0 7px; font-size: clamp(29px, 3.1vw, 41px); }
  .ic-rows > div { padding: 6px 0; }
  .ic-terminal { padding: 8px 11px; margin-top: 9px; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .driver-foot { display: none; }
  .map-footer { display: none; }
  .orders-panel { height: 236px; }
  .order-card { min-height: 154px; }
  .oc-items { font-size: 11.5px; }
  .oc-tag-row { margin-top: 5px; }
  .fix-eta { display: none; }
  .map-topbar { min-height: 50px; padding-top: 8px; padding-bottom: 7px; }
  .manual-head { padding-top: 18px; padding-bottom: 10px; }
  .manual-head p { display: none; }
}

/* compact result receipt for shorter desktop windows */
@media (max-height: 830px) and (min-width: 901px) {
  .result-receipt { padding: 16px 28px 13px; }
  .rr-kicker { margin-top: 10px; }
  .rr-title { margin-top: 4px; font-size: clamp(29px, 4.4vw, 40px); }
  .rr-stars { margin-top: 7px; font-size: 34px; }
  .rr-rating { margin-top: 3px; font-size: 11.5px; }
  .rr-comment { margin-top: 7px; font-size: 12.5px; line-height: 1.38; }
  .rr-divider { margin: 9px 0 3px; }
  .rr-row { padding: 5px 0; }
  .rr-row small { margin-top: 1px; font-size: 8.7px; line-height: 1.3; }
  .rr-cash-row { padding: 8px 12px; margin-top: 3px; }
  .rr-cash-row b { font-size: 23px; }
  .rr-legend { margin-top: 7px; font-size: 8.4px; line-height: 1.4; }
  .rr-tech { margin-top: 6px; padding: 7px 10px; font-size: 8.4px; line-height: 1.45; }
  .rr-actions { margin-top: 9px; gap: 8px; }
  .rr-actions .btn-big { min-height: 46px; padding: 12px 18px; font-size: 13.5px; }
  .rr-fine { margin-top: 7px; font-size: 8px; }
  .rr-head { padding-bottom: 8px; }
}

/* short mobile landscape: the map gets slim, tabs remain usable */
@media (max-width: 900px) and (max-height: 560px) {
  .map-panel { flex-basis: 190px; }
  .map-footer { display: none; }
  .panel-head p { display: none; }
  .start-body { padding-top: 16px; }
  .start-title { font-size: clamp(52px, 17vh, 90px); }
  .start-lede { font-size: 13px; line-height: 1.45; margin-top: 12px; }
  .start-cta { margin-top: 14px; }
  .start-facts, .start-best { display: none; }
  .start-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
}

/* ——— keyframes ——— */
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.78); } }
@keyframes softBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.58; } }
@keyframes tickerIn { 0% { transform: translateY(105%); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes badgeIn { 0% { transform: translateY(-6px) scale(0.92); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes cashBump { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-2px) scale(1.06); color: #c6f35c; } 100% { transform: none; } }
@keyframes streakBump { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes brandHit { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
@keyframes payBump { 0% { transform: scale(1); } 45% { transform: scale(1.13) rotate(-1.5deg); background: #ff9359; } 100% { transform: scale(1); } }
@keyframes riseIn { 0% { opacity: 0; transform: translateY(9px); } 100% { opacity: 1; transform: none; } }
@keyframes cardIn { 0% { opacity: 0; transform: translateY(12px) scale(0.965); } 100% { opacity: 1; transform: none; } }
@keyframes paperIn { 0% { opacity: 0; transform: translateY(10px) scale(0.975) rotate(-0.4deg); } 100% { opacity: 1; transform: none; } }
@keyframes replyIn { 0% { opacity: 0; transform: translateY(5px); } 100% { opacity: 1; transform: none; } }
@keyframes toastIn { 0% { opacity: 0; transform: translateY(-9px) scale(0.97); } 100% { opacity: 1; transform: none; } }
@keyframes toastOut { 0% { opacity: 1; transform: none; max-height: 120px; margin-bottom: 0; } 100% { opacity: 0; transform: translateY(-8px) scale(0.97); max-height: 0; margin-bottom: -8px; } }
@keyframes coachIn { 0% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 1; transform: translate(-50%, 0); } }
@keyframes coachDrop { 0% { opacity: 0; transform: translateY(-9px); } 100% { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalIn { 0% { opacity: 0; transform: translateY(16px) scale(0.975); } 100% { opacity: 1; transform: none; } }
@keyframes eventIn { 0% { opacity: 0; transform: translateY(20px) scale(0.96) rotate(-0.5deg); } 100% { opacity: 1; transform: none; } }
@keyframes receiptIn { 0% { opacity: 0; transform: translateY(-30px) scale(0.92) rotate(-1.2deg); } 65% { opacity: 1; transform: translateY(3px) scale(1.004) rotate(0.15deg); } 100% { opacity: 1; transform: none; } }
@keyframes startRise { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: none; } }
@keyframes titleIn { 0% { opacity: 0; transform: translateY(0.16em) skewY(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes incidentIn { 0% { opacity: 0; transform: translateY(26px) rotate(4deg) scale(0.95); } 100% { opacity: 1; transform: rotate(1.35deg); } }
@keyframes stampIn { 0% { opacity: 0; transform: scale(2.1) rotate(14deg); } 100% { opacity: 1; transform: scale(1) rotate(7deg); } }
@keyframes startLeave { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.025); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes fakeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fakePulse { from { transform: scale(0.992); } to { transform: scale(1.012); } }
@keyframes fakeShake { 0% { transform: translateX(0); } 15% { transform: translateX(-9px) skewX(0.6deg); } 30% { transform: translateX(7px); } 45% { transform: translateX(-5px); } 60% { transform: translateX(3px); } 100% { transform: translateX(0); } }
@keyframes fakeGlitch { 0% { transform: translate(1px, 0); } 50% { transform: translate(-2px, 1px); } 100% { transform: translate(0, -1px); } }
