/* ==========================================================================
   NOMNOW: OFFLINE — all the paint, none of the cloud
   ========================================================================== */

@font-face {
  font-family: 'Anton'; src: url('../assets/fonts/Anton-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans'; src: url('../assets/fonts/DMSans-Variable.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans'; src: url('../assets/fonts/DMSans-Italic.woff2') format('woff2');
  font-weight: 300 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Space Mono'; src: url('../assets/fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Mono'; src: url('../assets/fonts/SpaceMono-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Caveat'; src: url('../assets/fonts/Caveat-Variable.woff2') format('woff2');
  font-weight: 500 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #171512;
  --ink-2: #26211C;
  --ink-3: #3A332B;
  --paper: #F4EDE0;
  --paper-2: #FAF5EA;
  --card: #FFFCF5;
  --tomato: #FF5632;
  --tomato-deep: #E43E1B;
  --mustard: #FFC83A;
  --mustard-2: #FFE08A;
  --butter: #FFF0C2;
  --green: #19A36E;
  --green-deep: #0C7A51;
  --sky: #62B6FF;
  --grape: #B998FF;
  --pink: #FF86B6;
  --muted: #74685B;
  --line: #D8CAB6;
  --line-soft: #E9DFCF;
  --radius: 18px;
  --mono: 'Space Mono', ui-monospace, monospace;
  --display: 'Anton', Impact, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
  --hard-shadow: 0 4px 0 var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
::selection { background: var(--mustard); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
kbd {
  font-family: var(--mono); font-size: .84em; font-weight: 700; background: #FFFDF7;
  border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 0 1.5px 0 var(--ink);
  padding: 0 4px; margin: 0 1px; color: var(--ink);
}
.scribble { font-family: var(--hand); font-weight: 700; }
.screen { width: 100%; }
.scroll-slim::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-slim::-webkit-scrollbar-thumb { background: rgba(23,21,18,.22); border-radius: 99px; }
.scroll-slim::-webkit-scrollbar-track { background: transparent; }

/* ==========================================================================
   BUTTONS + BRAND
   ========================================================================== */
.btn {
  font-family: var(--display); font-weight: 400; letter-spacing: .025em; text-transform: uppercase;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; line-height: 1;
  cursor: pointer; text-decoration: none; padding: 12px 22px; font-size: 19px;
  box-shadow: 0 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn svg { width: 22px; height: 22px; }
.btn-primary { background: var(--tomato); color: #FFF8ED; }
.btn-primary:hover { background: #FF6645; }
.btn-mustard { background: var(--mustard); }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { transform: none; box-shadow: none; text-decoration-color: var(--tomato); }
.btn-big { font-size: clamp(23px, 2vw, 30px); padding: 16px 26px 15px 32px; gap: 14px; }
.btn-big svg { width: 28px; height: 28px; }
.btn-small { font-size: 15px; padding: 9px 16px; gap: 7px; box-shadow: 0 3px 0 var(--ink); }
.btn-small svg { width: 16px; height: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; line-height: 1; flex: none; }
.logo-svg { width: 42px; height: 42px; display: block; flex: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.18)); }
.logo-word { font-family: var(--display); font-weight: 400; font-size: 31px; letter-spacing: .035em; line-height: 1; padding-top: 2px; }
.brand--paper { color: var(--ink); }
.brand--ink { color: #FFF7EA; }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px 11px; border-bottom: 1.5px dashed #CBBBA7; flex: none; }
.panel-head h2, .crew-head h2 { font-family: var(--display); font-weight: 400; font-size: 27px; letter-spacing: .025em; line-height: .95; margin: 0; }
.panel-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.25; }
.count-pill { font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: .08em; background: var(--ink); color: #FFF7EA; border-radius: 999px; padding: 6px 10px; white-space: nowrap; flex: none; transition: background .2s; }
.count-pill--hot { background: var(--tomato); }
.panel-foot { flex: none; border-top: 1.5px dashed #CBBBA7; padding: 9px 15px 10px; font-size: 12px; line-height: 1.35; color: #685B4D; }
.foot-key { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 9px; letter-spacing: .06em; background: var(--mustard); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4px; padding: 1px 5px; box-shadow: 1.5px 1.5px 0 var(--ink); margin-right: 4px; transform: translateY(-1px); }

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); flex: none; box-shadow: 0 0 0 0 rgba(255,86,50,.55); animation: pulseDot 1.7s ease-out infinite; }
.live-dot--green { background: var(--green); box-shadow: none; animation: blink 1.3s steps(2, end) infinite; }

/* ==========================================================================
   START SCREEN
   ========================================================================== */
.start-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 14% 8%, rgba(255,200,58,.30), transparent 28%),
    radial-gradient(circle at 92% 86%, rgba(255,86,50,.10), transparent 25%),
    radial-gradient(rgba(23,21,18,.10) 1px, transparent 1.3px);
  background-size: auto, auto, 17px 17px;
  overflow: hidden;
}
.start-screen::before {
  content: 'NOMNOW';
  position: absolute; left: -1.5vw; bottom: -4.8vw; z-index: 0;
  font-family: var(--display); font-size: 23vw; line-height: .8; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 2px rgba(23,21,18,.075);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.start-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px clamp(20px, 4.2vw, 68px) 8px; width: 100%; max-width: 1640px; margin: 0 auto; }
.start-nav .logo-svg { width: 44px; height: 44px; }
.start-nav-right { display: flex; align-items: center; gap: 14px; }
.nav-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .09em; color: #FFF8ED; background: var(--tomato); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 11px; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.nav-chip i { width: 6px; height: 6px; border-radius: 50%; background: #FFF8ED; display: block; animation: blink 1.4s steps(2,end) infinite; }
.nav-note { font-size: 13px; color: var(--muted); }

.start-main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 clamp(20px, 4.2vw, 68px); display: flex; flex-direction: column; justify-content: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(18px, 3.8vw, 72px); padding: clamp(8px, 1.8vh, 24px) 0 clamp(12px, 2.2vh, 26px); }
.hero-copy { min-width: 0; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 clamp(13px, 2.3vh, 24px); font-family: var(--mono); font-weight: 700; font-size: clamp(10px, .95vw, 12px); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.kicker .live-dot { background: var(--tomato); }
.hero-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(54px, min(7.5vw, 10.1vh), 124px); line-height: .87; letter-spacing: .002em; color: var(--ink); text-wrap: balance; }
.hero-title > span { display: block; }
.title-accent { display: inline-block !important; width: fit-content; color: var(--tomato); padding-right: .08em; background: linear-gradient(180deg, transparent 79%, var(--mustard) 79%, var(--mustard) 94%, transparent 94%); position: relative; }
.title-accent::after { content: ''; position: absolute; right: -.22em; top: .1em; width: .22em; height: .22em; border-radius: 50%; background: var(--ink); }
.hero-lede { max-width: 600px; margin: clamp(16px, 2.5vh, 28px) 0 clamp(18px, 2.8vh, 30px); font-size: clamp(15px, 1.3vw, 18.5px); line-height: 1.52; color: #443C33; font-weight: 450; }
.hero-lede b { color: var(--ink); font-weight: 800; }
.hero-cta-row { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); margin-bottom: clamp(18px, 2.7vh, 28px); flex-wrap: wrap; }
.cta-aside { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cta-aside .scribble { font-size: clamp(20px, 1.9vw, 27px); color: var(--tomato-deep); line-height: .95; transform: rotate(-2.2deg); display: inline-block; transform-origin: left center; max-width: 350px; }
.cta-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .055em; color: var(--muted); text-transform: uppercase; }
.hero-meta { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1.5px dashed #BCAB97; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .065em; color: #5A4E42; font-weight: 700; text-transform: uppercase; }
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hero-meta svg { width: 15px; height: 15px; }
.hero-meta b { color: var(--ink); font-size: 12px; }

/* ---- hero collage ---- */
.hero-art { display: flex; align-items: center; justify-content: center; min-width: 0; }
.hero-stage { position: relative; width: 100%; max-width: 590px; aspect-ratio: 100 / 95; container-type: inline-size; margin: 0 auto; font-family: var(--body); }
.hero-sun {
  position: absolute; top: .5cqw; right: -.5cqw; width: 43cqw; height: 43cqw; border-radius: 50%;
  border: .35cqw solid var(--ink); box-shadow: 1cqw 1cqw 0 var(--ink);
  background:
    radial-gradient(circle at 34% 28%, rgba(255,235,170,.95), rgba(255,235,170,0) 58%),
    repeating-conic-gradient(from 4deg, var(--mustard) 0deg 11deg, #FFD257 11deg 22deg);
  animation: slowSpin 70s linear infinite; z-index: 0;
}
.hero-ring { position: absolute; left: -2cqw; top: 57cqw; width: 23cqw; height: 23cqw; border: .28cqw dashed var(--tomato); border-radius: 50%; z-index: 0; opacity: .8; transform: rotate(8deg); }
.hero-map-card {
  position: absolute; left: 11cqw; top: 14.5cqw; width: 80cqw; z-index: 2; overflow: hidden;
  background: #131D19; border: .36cqw solid var(--ink); border-radius: 2.3cqw; box-shadow: 1.1cqw 1.1cqw 0 var(--ink);
  transform: rotate(-2.2deg); transform-origin: 50% 50%;
}
.hmap-head { display: flex; justify-content: space-between; align-items: center; gap: 1cqw; height: 4.6cqw; padding: 0 2cqw; background: #0D1512; color: #EFE3D1; font-family: var(--mono); font-size: 1.34cqw; font-weight: 700; letter-spacing: .08em; border-bottom: .25cqw solid #000; white-space: nowrap; }
.hmap-head > span { display: inline-flex; align-items: center; gap: .7cqw; }
.hmap-head .live-dot { width: 1.1cqw; height: 1.1cqw; }
.hmap-canvas { position: relative; width: 100%; aspect-ratio: 800 / 560; overflow: hidden; }
.hmap-art { position: absolute; inset: 0; }
.hmap-art svg, .city-svg { display: block; width: 100%; height: 100%; }
#heroRoutes, .hero-routes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
#heroPins { position: absolute; inset: 0; z-index: 3; }
.hero-pin { position: absolute; transform: translate(-50%, -50%); width: 5.1cqw; height: 5.1cqw; border-radius: 50%; background: var(--dc); border: .3cqw solid #FFF7E8; box-shadow: 0 0 0 .22cqw rgba(0,0,0,.7), .3cqw .45cqw 0 rgba(0,0,0,.4); display: grid; place-items: center; animation: heroBob 3.2s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.hero-pin img { width: 67%; height: 67%; display: block; }
.hero-pin::after { content: ''; position: absolute; inset: -.7cqw; border: .22cqw solid #FFF7E8; border-radius: 50%; opacity: .38; animation: heroRing 2.6s ease-out infinite; animation-delay: var(--delay, 0s); }
.hero-stop { position: absolute; transform: translate(-50%, -50%); z-index: 4; border-radius: 50%; border: .28cqw solid #FFF7E8; box-shadow: 0 0 0 .2cqw rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; }
.hero-stop.pick { width: 3.6cqw; height: 3.6cqw; background: var(--mustard); }
.hero-stop.pick img { width: 2.2cqw; height: 2.2cqw; display: block; }
.hero-stop.drop { width: 2.5cqw; height: 2.5cqw; background: var(--tomato); border-radius: .55cqw; transform: translate(-50%, -50%) rotate(45deg); }
.hero-stop.drop::after { content: ''; width: .9cqw; height: .9cqw; border-radius: 50%; background: #FFF7E8; }
.hero-stop.drop > span { position: absolute; inset: 0; border-radius: .5cqw; animation: heroRing 2.2s ease-out infinite; border: .22cqw solid var(--tomato); }

.hero-ticket {
  position: absolute; left: -.8cqw; top: 4.2cqw; width: 32.4cqw; z-index: 5;
  background: #FFFCF5; border: .36cqw solid var(--ink); border-radius: 1cqw; box-shadow: .95cqw .95cqw 0 var(--ink);
  transform: rotate(-6.5deg); padding: 2.1cqw 2.4cqw 2.7cqw; font-family: var(--mono); color: var(--ink);
  background-image: linear-gradient(180deg, transparent 0 96%, rgba(23,21,18,.06) 96% 100%); background-size: 100% 1.7cqw;
}
.tape { position: absolute; display: block; width: 9.5cqw; height: 3.1cqw; background: #FFD76B; opacity: .86; box-shadow: 0 .18cqw .3cqw rgba(0,0,0,.12); z-index: 2; }
.tape-a { top: -1.9cqw; left: 38%; transform: rotate(3.5deg); border-left: .18cqw dashed rgba(23,21,18,.35); border-right: .18cqw dashed rgba(23,21,18,.35); }
.ht-top { display: flex; justify-content: space-between; font-size: 1.3cqw; font-weight: 700; letter-spacing: .08em; color: #6B5E51; }
.ht-order { font-family: var(--display); font-size: 5.8cqw; line-height: .9; letter-spacing: .02em; margin: .5cqw 0 .7cqw; }
.ht-rule { border-top: .26cqw dashed rgba(23,21,18,.46); margin-bottom: 1.05cqw; }
.ht-dish { display: flex; align-items: center; gap: .75cqw; font-size: 1.5cqw; font-weight: 700; line-height: 1.3; margin-bottom: .45cqw; letter-spacing: -.01em; }
.ht-dish img { width: 3cqw; height: 3cqw; flex: none; }
.ht-dish em { font-family: var(--body); font-size: 1.28cqw; font-weight: 500; font-style: italic; color: #7C6D5C; margin-left: .2cqw; white-space: nowrap; }
.ht-dish--muted { opacity: .8; }
.ht-note { font-size: 1.18cqw; font-weight: 700; letter-spacing: .025em; margin-top: 1cqw; }
.ht-barcode { height: 4.5cqw; margin-top: 1.1cqw; background: repeating-linear-gradient(90deg, var(--ink) 0 .32cqw, transparent .32cqw .74cqw, var(--ink) .74cqw .96cqw, transparent .96cqw 1.5cqw, var(--ink) 1.5cqw 1.72cqw, transparent 1.72cqw 2.5cqw, var(--ink) 2.5cqw 2.95cqw, transparent 2.95cqw 3.4cqw); opacity: .86; }
.ht-scribble { position: absolute; right: 2.1cqw; bottom: .05cqw; font-size: 3cqw; color: var(--tomato-deep); transform: rotate(-5deg); line-height: 1; }

.hero-chat {
  position: absolute; right: -1.8cqw; bottom: 9cqw; width: 40.5cqw; z-index: 6;
  background: #FFFCF5; border: .36cqw solid var(--ink); border-radius: 2.2cqw 2.2cqw .55cqw 2.2cqw;
  padding: 1.65cqw 2cqw 1.95cqw; box-shadow: .85cqw .85cqw 0 var(--ink); transform: rotate(1.7deg);
}
.chat-head { display: flex; align-items: center; gap: .85cqw; }
.chat-avatar { width: 3.5cqw; height: 3.5cqw; border-radius: 50%; background: var(--mustard); border: .24cqw solid var(--ink); display: grid; place-items: center; overflow: hidden; flex: none; }
.chat-avatar img { width: 85%; height: 85%; display: block; }
.chat-head b { font-size: 1.7cqw; font-weight: 800; line-height: 1; }
.chat-online { margin-left: auto; font-family: var(--mono); font-size: 1.05cqw; font-weight: 700; color: var(--green-deep); letter-spacing: .05em; display: inline-flex; gap: .5cqw; align-items: center; }
.chat-online::before { content: ''; width: .75cqw; height: .75cqw; border-radius: 50%; background: var(--green); }
.hero-chat p { margin: 1cqw 0 0; font-size: 1.75cqw; line-height: 1.34; color: #2D2822; font-weight: 500; }
.hero-chat p b { color: var(--tomato-deep); font-weight: 800; white-space: nowrap; }
.inline-emoji { width: 1.85cqw; height: 1.85cqw; vertical-align: -.3cqw; display: inline-block; }
.chat-tail { position: absolute; left: -2.2cqw; bottom: .3cqw; width: 0; height: 0; border-top: 1.2cqw solid transparent; border-right: 2.4cqw solid #FFFCF5; transform: rotate(7deg); filter: drop-shadow(-.2cqw -.25cqw 0 var(--ink)); }

.hero-yell {
  position: absolute; left: -.5cqw; bottom: 8.6cqw; width: 35.8cqw; z-index: 6; display: flex; align-items: center; gap: 1.2cqw;
  background: var(--ink); color: #FFF7EA; border: .3cqw solid var(--ink); border-radius: 1.9cqw 1.9cqw 1.9cqw .45cqw;
  padding: 1.45cqw 1.8cqw; box-shadow: .8cqw .8cqw 0 var(--tomato); transform: rotate(-2.3deg);
}
.hero-yell-dot { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--tomato); flex: none; animation: blink 1s steps(2,end) infinite; }
.hero-yell b { display: block; font-family: var(--display); font-size: 2.35cqw; line-height: 1; letter-spacing: .025em; white-space: nowrap; }
.hero-yell small { display: block; font-family: var(--mono); font-size: 1.06cqw; letter-spacing: .05em; color: #D0C3B1; margin-top: .5cqw; }

.hero-stamp { position: absolute; top: 2.2cqw; right: 2cqw; z-index: 8; width: 25.5cqw; text-align: center; color: var(--tomato-deep); border: .62cqw double var(--tomato-deep); border-radius: 1.3cqw; padding: .95cqw 1.1cqw .85cqw; transform: rotate(7deg); background: rgba(255,246,232,.82); box-shadow: 0 .3cqw .8cqw rgba(0,0,0,.16); mix-blend-mode: multiply; }
.hero-stamp span { display: block; font-family: var(--mono); font-weight: 700; font-size: 1.14cqw; letter-spacing: .16em; line-height: 1; }
.hero-stamp b { display: block; font-family: var(--display); font-size: 5.9cqw; line-height: .88; letter-spacing: .04em; margin: .2cqw 0 .1cqw; }
.hero-doodle { position: absolute; left: 46cqw; bottom: 2.2cqw; z-index: 7; font-size: 2.9cqw; color: var(--ink); transform: rotate(-4deg); white-space: nowrap; }
.hero-spark { position: absolute; z-index: 1; color: var(--tomato); line-height: 1; font-size: 3.4cqw; animation: twinkle 2.8s ease-in-out infinite; }
.hs1 { top: 79cqw; left: 42.5cqw; color: var(--ink); font-size: 2.6cqw; animation-delay: .4s; }
.hs2 { top: 76cqw; right: 3cqw; color: var(--mustard); animation-delay: 1.1s; }
.hs3 { top: 11cqw; left: 4.5cqw; color: var(--tomato); animation-delay: 1.8s; }

/* ---- steps ---- */
.steps { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: clamp(10px, 1.8vh, 22px); }
.step-card { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--hard-shadow); padding: 15px 18px 16px; min-width: 0; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.step-num { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .12em; color: var(--tomato-deep); }
.step-icon { width: 33px; height: 33px; display: block; transform: rotate(-5deg); filter: drop-shadow(0 2px 0 rgba(23,21,18,.2)); }
.step-card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2vw, 29px); line-height: .98; letter-spacing: .02em; margin: 0 0 7px; }
.step-card p { font-size: clamp(12.5px, 1.02vw, 14.5px); line-height: 1.45; color: #4D4339; margin: 0; }
.step-card--dark { background: var(--ink); color: #FFF7EA; box-shadow: 0 4px 0 var(--tomato); }
.step-card--dark .step-num { color: var(--mustard); }
.step-card--dark p { color: #D8CBB9; }
.step-card--sun { background: var(--mustard); color: var(--ink); }
.step-card--sun .step-num { color: var(--ink); }
.step-card--sun p { color: #40351F; }

.start-footer { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 24px; width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 clamp(20px, 4.2vw, 68px) clamp(8px, 1.4vh, 14px); font-size: 11px; line-height: 1.35; color: #7A6D5F; }
.start-footer span:last-child { color: #907F6E; }

/* hero entrance */
.start-screen.is-active .hero-copy { animation: riseIn .6s cubic-bezier(.2,.8,.2,1) both; }
.start-screen.is-active .hero-art { animation: riseIn .7s .08s cubic-bezier(.2,.8,.2,1) both; }
.start-screen.is-active .step-card { animation: riseIn .6s cubic-bezier(.2,.8,.2,1) both; }
.start-screen.is-active .step-card:nth-child(1) { animation-delay: .16s; }
.start-screen.is-active .step-card:nth-child(2) { animation-delay: .22s; }
.start-screen.is-active .step-card:nth-child(3) { animation-delay: .28s; }

/* ==========================================================================
   GAME SCREEN — frame
   ========================================================================== */
.game-screen {
  height: 100vh; height: 100dvh; width: 100%; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23,21,18,.065) 1px, transparent 1.25px);
  background-size: 15px 15px;
}
.game-screen.quake { animation: quake .42s cubic-bezier(.36,.07,.19,.97) both; }

/* ---- top bar ---- */
.topbar { flex: none; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 20px; background: var(--ink); color: #FFF7EA; border-bottom: 2px solid #000; z-index: 30; position: relative; }
.topbar .logo-svg { width: 36px; height: 36px; }
.topbar .logo-word { font-size: 26px; }
.offline-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 700; font-size: 9px; letter-spacing: .09em; color: var(--ink); background: var(--mustard); border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 9px; margin-left: 5px; white-space: nowrap; }
.offline-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--tomato-deep); animation: blink 1.2s steps(2,end) infinite; display: block; }
.hud { display: flex; align-items: center; gap: clamp(10px, 1.7vw, 24px); height: 100%; }
.shift-clock { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding-right: clamp(10px, 1.6vw, 22px); border-right: 1px solid rgba(255,247,234,.18); line-height: 1; height: 32px; flex: none; }
.shift-clock span { font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .12em; color: #B5A996; margin-bottom: 4px; white-space: nowrap; }
.shift-clock b { font-family: var(--mono); font-weight: 700; font-size: 18px; color: #FFF7EA; letter-spacing: .02em; }
.hud-stat { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; flex: none; height: 40px; }
.hud-label { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .11em; color: #B9AC99; line-height: 1; white-space: nowrap; }
.hud-label svg { width: 12px; height: 12px; color: var(--tomato); display: block; fill: currentColor; }
.hud-row { display: flex; align-items: center; gap: 7px; line-height: 1; }
.trust-track { width: clamp(82px, 8.8vw, 150px); height: 11px; border-radius: 999px; background: #3A332C; border: 1.5px solid rgba(255,247,234,.42); overflow: hidden; flex: none; position: relative; }
.trust-track i { display: block; height: 100%; width: var(--tw, 62%); background: var(--green); border-radius: 999px; transition: width .35s cubic-bezier(.2,.8,.2,1), background .3s; background-image: repeating-linear-gradient(-55deg, transparent 0 5px, rgba(255,255,255,.17) 5px 10px); }
.trust-stat[data-level="mid"] .trust-track i { background-color: var(--mustard); }
.trust-stat[data-level="low"] .trust-track i { background-color: var(--tomato); }
.trust-stat[data-level="low"] .hud-label svg { animation: heartBeat .8s ease-in-out infinite; }
.hud-stat .hud-row > b { font-family: var(--display); font-size: 27px; font-weight: 400; line-height: .9; letter-spacing: .02em; color: #FFF7EA; white-space: nowrap; }
.hud-stat .hud-row > b small { font-family: var(--body); font-size: 13px; font-weight: 700; margin-left: 1px; color: #C8BBAA; }
.cash-stat .hud-row > b { color: #FFE49A; font-size: 25px; }
.trust-stat.is-hit-good, .cash-stat.is-hit-good { animation: statGood .5s ease both; }
.trust-stat.is-hit-bad, .cash-stat.is-hit-bad { animation: statBad .5s ease both; }
.trust-fx, .cash-fx { display: none; }
.trust-fx span, .cash-fx span { position: absolute; right: 0; bottom: 0; font-family: var(--mono); font-weight: 700; font-size: 11px; line-height: 1; white-space: nowrap; animation: floatUp 1.35s ease-out both; background: #FFF7EA; border: 1.5px solid var(--ink); box-shadow: 0 2px 0 rgba(0,0,0,.55); border-radius: 5px; padding: 3px 6px; }
.trust-fx .plus, .cash-fx .plus { color: #0B6A48; }
.trust-fx .minus, .cash-fx .minus { color: #A52B12; }
.hud-buttons { display: flex; align-items: center; gap: 6px; flex: none; margin-left: 2px; }
.icon-btn { width: 37px; height: 37px; border-radius: 50%; border: 1.5px solid rgba(255,247,234,.38); background: transparent; color: #FFF7EA; display: grid; place-items: center; padding: 0; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .12s; }
.icon-btn svg { width: 18px; height: 18px; display: block; }
.icon-btn:hover { background: var(--mustard); color: var(--ink); border-color: var(--mustard); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(1px); }

/* ---- tech bar ---- */
.techbar { flex: none; min-height: 55px; display: flex; align-items: center; gap: clamp(10px, 1.5vw, 20px); padding: 7px 20px; background: var(--mustard); border-bottom: 2px solid var(--ink); position: relative; z-index: 20; transition: background-color .35s; }
.techbar.is-hold { background: #FFBA30; }
.techbar.is-hit { animation: techHit .75s ease both; }
.tech-who { display: flex; align-items: center; gap: 9px; flex: none; min-width: 0; }
.tech-avatar { width: 37px; height: 37px; border-radius: 50%; background: #FFE08A; border: 2px solid var(--ink); overflow: hidden; display: grid; place-items: center; flex: none; box-shadow: 2px 2px 0 rgba(23,21,18,.8); }
.tech-avatar img { width: 88%; height: 88%; display: block; }
.tech-who-copy { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.tech-who-copy b { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: .04em; color: var(--ink); }
.tech-who-copy span { font-size: 11px; font-weight: 600; color: #473A25; white-space: nowrap; }
.tech-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.tech-msg-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tech-bubble { display: block; min-width: 0; flex: 1 1 auto; font-family: var(--mono); font-size: 11.5px; font-weight: 700; line-height: 1.25; letter-spacing: -.005em; background: #FFFBF0; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; box-shadow: 2px 2px 0 var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.techbar.is-hold .tech-bubble { animation: bubbleBlink 1.1s ease-in-out infinite; }
.tech-badge { flex: none; display: none; font-family: var(--mono); font-weight: 700; font-size: 8.5px; letter-spacing: .09em; background: var(--ink); color: #FFF7EA; border-radius: 4px; padding: 4px 6px; white-space: nowrap; }
.techbar.is-hold .tech-badge { display: inline-block; }
.tech-track { height: 11px; position: relative; border: 1.5px solid var(--ink); border-radius: 999px; background: #E7AF26; overflow: visible; flex: none; }
.tech-fill { display: block; height: 100%; width: 0%; border-radius: 999px; background-color: var(--ink); background-image: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(255,200,58,.6) 7px 14px); background-size: 19.8px 19.8px; animation: techStripes 1.1s linear infinite; transition: width .18s linear; box-shadow: 1px 0 0 var(--tomato); }
.techbar.is-hold .tech-fill { animation-play-state: paused; }
.tech-gate { position: absolute; top: -4px; width: 2px; height: 19px; transform: translateX(-50%); background: rgba(23,21,18,.6); border-radius: 2px; box-shadow: 0 0 0 1.5px rgba(255,200,58,.55); pointer-events: none; }
.tech-eta { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; line-height: 1; gap: 2px; }
.tech-eta > span { font-family: var(--mono); font-weight: 700; font-size: 8.5px; letter-spacing: .12em; color: #3B3022; white-space: nowrap; }
.tech-eta > div { display: flex; align-items: baseline; gap: 5px; }
.tech-eta b { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .02em; color: var(--ink); line-height: .9; }
.tech-eta em { font-family: var(--hand); font-weight: 700; font-style: normal; font-size: 19px; color: #3E311F; line-height: 1; }
.techbar.is-hold .tech-eta em { color: var(--tomato-deep); }

/* ---- main grid ---- */
.game-main { flex: 1; min-height: 0; width: 100%; max-width: 1920px; margin: 0 auto; display: grid; grid-template-columns: clamp(292px, 23.5vw, 352px) minmax(0, 1fr) clamp(318px, 26vw, 392px); gap: 14px; padding: 14px 18px 12px; }
.panel { min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard-shadow); overflow: hidden; position: relative; }
.panel-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(23,21,18,.28) transparent; }
.panel-scroll::-webkit-scrollbar { width: 8px; }
.panel-scroll::-webkit-scrollbar-thumb { background: rgba(23,21,18,.22); border-radius: 99px; }
.panel-scroll::-webkit-scrollbar-track { background: transparent; }
.center-col { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   ORDERS
   ========================================================================== */
.orders-panel .panel-head h2 { color: var(--ink); }
#ordersList { padding-top: 12px; }
.order-card {
  --oc: var(--tomato);
  appearance: none; -webkit-appearance: none; display: block; width: 100%; text-align: left; flex: none;
  background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink);
  padding: 10px 12px 9px 13px; cursor: pointer; position: relative; font-family: var(--body); color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease, border-color .15s ease;
}
.order-card:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.order-card:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.order-card.is-active { cursor: default; }
.order-card.is-active:hover { transform: none; box-shadow: 0 3px 0 var(--ink); }
.order-card.is-selected { background: #FFF8E3; box-shadow: 0 0 0 3px var(--mustard), 0 4px 0 var(--ink); transform: translateY(-2px); border-color: var(--ink); }
.order-card.is-selected:hover { transform: translateY(-2px); }
.order-card.is-selected::before { content: ''; position: absolute; left: -2px; top: 12px; bottom: 12px; width: 5px; border-radius: 0 4px 4px 0; background: var(--oc); }
.order-card.is-hurry { background: #FFF4EC; border-color: var(--tomato-deep); }
.order-card.is-urgent { background-image: linear-gradient(135deg, rgba(255,86,50,.07) 0 12px, transparent 12px); }
.oc-top { display: flex; align-items: center; gap: 6px; min-width: 0; line-height: 1; }
.oc-id { font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.oc-type { font-family: var(--mono); font-weight: 700; font-size: 8px; letter-spacing: .07em; background: var(--butter); border: 1px solid rgba(23,21,18,.35); border-radius: 4px; padding: 2.5px 5px; color: #4D3D18; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-type.is-urgent { background: var(--tomato); border-color: var(--ink); color: #FFF8ED; }
.oc-type.is-catering { background: var(--grape); border-color: var(--ink); color: var(--ink); }
.oc-pay { margin-left: auto; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: .8; letter-spacing: .015em; color: var(--ink); white-space: nowrap; }
.oc-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 7px; margin: 8px 0 6px; }
.oc-stop { min-width: 0; display: flex; align-items: flex-start; gap: 6px; }
.oc-dot { width: 8px; height: 8px; flex: none; margin-top: 4px; background: var(--oc); border: 1.5px solid var(--ink); }
.oc-dot--pick { border-radius: 50%; }
.oc-dot--drop { border-radius: 2px; transform: rotate(45deg); width: 7px; height: 7px; }
.oc-stop-copy { min-width: 0; display: block; }
.oc-stop b { display: block; font-size: 13.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; letter-spacing: -.01em; }
.oc-stop em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.oc-arrow { color: #B5A590; font-family: var(--mono); font-size: 13px; line-height: 1; transform: translateY(-3px); }
.oc-dish { display: flex; align-items: center; gap: 6px; background: #F5EDDF; border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 550; color: #4B4035; line-height: 1.25; min-width: 0; }
.oc-dish img { width: 17px; height: 17px; flex: none; display: block; }
.oc-dish span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.oc-meta { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; min-width: 0; font-family: var(--mono); font-weight: 700; font-size: 9px; letter-spacing: .075em; color: #74665A; text-transform: uppercase; }
.oc-status { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.oc-status i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--oc); flex: none; }
.is-active .oc-status i { animation: blink 1.25s steps(2,end) infinite; }
.oc-flag { flex: none; font-size: 8.5px; padding: 2.5px 5px; border-radius: 4px; letter-spacing: .06em; background: #DCF6E9; color: #0B6A48; border: 1px solid rgba(11,106,72,.25); white-space: nowrap; }
.oc-flag.is-late { background: #FFE1D8; color: #A52B12; border-color: rgba(165,43,18,.28); }
.oc-flag.is-wait { background: var(--butter); color: #5A4414; border-color: rgba(90,68,20,.25); }
.oc-flag.is-empty { display: none; }
.oc-timer { margin-left: auto; flex: none; font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .035em; line-height: .7; color: var(--ink); padding-top: 2px; }
.is-hurry .oc-timer { color: var(--tomato-deep); }
.is-hurry .oc-status { color: var(--tomato-deep); }
.oc-progress { display: block; height: 5px; border-radius: 99px; background: #EADFCF; margin-top: 8px; overflow: hidden; }
.oc-progress i { display: block; height: 100%; width: var(--ow, 60%); background: var(--oc); border-radius: 99px; transition: width .25s linear; }
.order-card.is-active .oc-progress i { background: var(--oc); }

/* empty states */
.empty-state { margin: auto; padding: 20px 14px 26px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.empty-state img { width: 58px; height: 58px; opacity: .9; transform: rotate(-6deg); filter: drop-shadow(0 3px 0 rgba(23,21,18,.18)); margin-bottom: 5px; }
.empty-state b { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .025em; line-height: 1; color: var(--ink); }
.empty-state span { font-size: 12.5px; line-height: 1.4; max-width: 230px; }
.empty-state small { font-family: var(--hand); font-weight: 700; font-size: 20px; color: var(--tomato-deep); margin-top: 3px; line-height: 1; transform: rotate(-2deg); }

/* ==========================================================================
   MAP
   ========================================================================== */
.map-card { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #131D19; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard-shadow); overflow: hidden; }
.map-head { flex: none; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; background: #0D1512; color: #F5EAD9; border-bottom: 1px solid rgba(255,255,255,.09); }
.map-title { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .055em; line-height: 1; white-space: nowrap; }
.map-title .live-dot { width: 7px; height: 7px; }
.view-tag { font-family: var(--mono); font-weight: 700; font-size: 8px; letter-spacing: .07em; color: #BEB09F; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; padding: 2.5px 5px; margin-left: 2px; transform: translateY(1px); }
.map-head-right { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: 8.5px; letter-spacing: .065em; white-space: nowrap; min-width: 0; }
.map-status { color: var(--mustard); border-right: 1px solid rgba(255,255,255,.16); padding-right: 10px; }
.map-count { color: #C9BCAB; }
.map-viewport { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #131D19; }
.map-stage { position: absolute; overflow: hidden; }
.map-art, .map-routes, .map-pins, .map-drivers { position: absolute; inset: 0; }
.map-art { z-index: 1; }
.map-routes { z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.map-pins { z-index: 3; pointer-events: none; }
.map-drivers { z-index: 4; pointer-events: none; }
.map-stage.has-selection .map-pins { z-index: 6; }
.map-stage.has-selection .map-drivers { z-index: 5; }
.map-legend { position: absolute; left: 11px; bottom: 10px; z-index: 6; display: flex; align-items: center; gap: 11px; background: rgba(10,17,14,.8); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 4px 10px; font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .07em; color: #D6C9B6; backdrop-filter: blur(5px); white-space: nowrap; pointer-events: none; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { display: inline-block; width: 8px; height: 8px; border: 1px solid rgba(255,255,255,.55); flex: none; }
.lg-pick { border-radius: 50%; background: var(--mustard); }
.lg-drop { border-radius: 2px; background: var(--tomato); transform: rotate(45deg); width: 7px; height: 7px; }
.lg-rider { border-radius: 50%; background: var(--sky); }
.map-toasts { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92%; pointer-events: none; }
.map-toast { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 12px; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); background: #FFF7E8; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.3; text-align: center; animation: toastLife 2.9s ease both; }
.map-toast.good { background: #CFF5E3; }
.map-toast.bad { background: #FFD6C9; }
.map-toast.info { background: #FFEDB8; }
.map-toast img { width: 16px; height: 16px; flex: none; }

/* pins */
.m-pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 5px; transition: opacity .2s ease; z-index: 1; }
.m-pin .pin-core { position: relative; display: grid; place-items: center; flex: none; transition: transform .18s ease; }
.m-pin--pickup .pin-core { width: 29px; height: 29px; border-radius: 50%; background: #FFF7E8; border: 2px solid var(--ink); box-shadow: 0 0 0 2px var(--oc), 0 3px 0 rgba(0,0,0,.45); overflow: hidden; }
.m-pin--pickup .pin-core img { width: 17px; height: 17px; display: block; }
.m-pin--drop .pin-core { width: 18px; height: 18px; border-radius: 5px; background: var(--oc); border: 2px solid #FFF7E8; transform: rotate(45deg); box-shadow: 0 0 0 1.5px rgba(0,0,0,.55), 0 3px 5px rgba(0,0,0,.45); }
.m-pin--drop .pin-core::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #FFF7E8; display: block; }
.m-pin--drop.is-pending .pin-core { background: transparent; border: 2px dashed var(--oc); box-shadow: 0 0 0 1.5px rgba(0,0,0,.45); }
.m-pin--drop.is-pending .pin-core::after { background: var(--oc); opacity: .8; }
.pin-label { display: none; font-family: var(--mono); font-weight: 700; font-size: 9px; letter-spacing: .02em; line-height: 1.2; color: #FFF7E8; background: rgba(9,16,13,.87); border: 1px solid rgba(255,255,255,.18); padding: 2.5px 5px; border-radius: 4px; white-space: nowrap; position: relative; z-index: 2; }
.m-pin.is-sel .pin-label, .m-pin.is-current .pin-label { display: block; }
.m-pin--drop .pin-label { order: -1; }
.m-pin--pickup.is-flip .pin-label { order: -1; }
.m-pin--drop.is-flip .pin-label { order: 1; }
.m-pin.is-sel .pin-label { color: var(--ink); background: var(--oc); border-color: var(--ink); box-shadow: 1.5px 1.5px 0 rgba(0,0,0,.5); }
.m-pin.is-sel { z-index: 5; }
.m-pin.is-sel .pin-core { animation: pinPulse 1.5s ease-out infinite; }
.m-pin.is-current .pin-core { box-shadow: 0 0 0 3px var(--mustard), 0 3px 0 rgba(0,0,0,.45); }
.m-pin.is-sel.m-pin--drop .pin-core { animation: pinPulseDrop 1.5s ease-out infinite; }
.map-stage.has-selection .m-pin:not(.is-sel):not(.is-current) { opacity: .5; }
.m-pin.is-current .pin-label { display: none; }
.map-stage.has-selection .map-drivers .driver-pin:not(.is-candidate) { opacity: .45; }
.map-stage.has-selection .map-drivers .driver-pin.is-candidate { opacity: 1; }
.driver-pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; margin-left: 0; transition: opacity .2s ease; z-index: 1; pointer-events: none; }
.driver-pin .dp-badge { position: relative; width: 35px; height: 35px; border-radius: 50%; background: var(--dc); border: 2.5px solid #FFF7E8; display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(0,0,0,.65), 0 4px 7px rgba(0,0,0,.45); transition: transform .16s ease, box-shadow .16s ease; flex: none; }
.driver-pin .dp-badge img { width: 21px; height: 21px; display: block; }
.driver-pin .dp-name { font-family: var(--mono); font-weight: 700; font-size: 8.5px; line-height: 1.2; letter-spacing: .045em; color: #101713; background: #FFF7E8; border-radius: 4px; padding: 1.5px 4.5px; box-shadow: 0 1.5px 0 rgba(0,0,0,.42); white-space: nowrap; }
.driver-pin.is-moving .dp-badge::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--dc); opacity: .7; animation: riderRing 1.8s ease-out infinite; }
.driver-pin.is-waiting .dp-badge { box-shadow: 0 0 0 2px rgba(0,0,0,.65), 0 0 0 5px var(--mustard), 0 4px 7px rgba(0,0,0,.45); }
.driver-pin.is-snack .dp-badge { filter: saturate(.45); }
.driver-pin.is-snack .dp-name { background: var(--butter); }
.driver-pin.is-candidate { pointer-events: auto; cursor: pointer; z-index: 6; }
.driver-pin.is-candidate .dp-badge { animation: candidateBob .95s ease-in-out infinite; box-shadow: 0 0 0 2px rgba(0,0,0,.65), 0 0 0 6px rgba(255,200,58,.95), 0 5px 8px rgba(0,0,0,.45); }
.driver-pin.is-picked .dp-badge { transform: translateY(-3px) scale(1.1); }

/* ==========================================================================
   CREW
   ========================================================================== */
.crew-card { flex: none; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--hard-shadow); padding: 10px 13px 11px; min-width: 0; }
.crew-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding: 0 1px; min-height: 33px; }
.crew-head h2 { font-size: 19px; letter-spacing: .04em; line-height: .95; }
.crew-head p { margin: 3px 0 0; font-size: 12px; color: var(--muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew-head p b { color: var(--ink); }
.crew-tip { font-family: var(--hand); font-weight: 700; font-size: 19px; color: var(--tomato-deep); line-height: .9; white-space: nowrap; transform: rotate(-2deg); padding-bottom: 1px; flex: none; }
.crew-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.driver-card { --dc: var(--sky); appearance: none; -webkit-appearance: none; position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; text-align: left; background: #FFFDF8; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); padding: 8px 8px 8px; font-family: var(--body); color: var(--ink); cursor: default; transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease; overflow: hidden; }
.driver-card:disabled { opacity: 1; cursor: default; color: var(--ink); }
.driver-card.is-selectable { cursor: pointer; background: #FFF8E6; }
.driver-card.is-selectable:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); background: #FFF2CE; }
.driver-card.is-selectable:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.driver-card.is-busy { background: #F7F0E4; }
.driver-card.is-ineligible { background: #F3ECDF; }
.dc-top { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; }
.dc-avatar { width: 29px; height: 29px; border-radius: 50%; background: var(--dc); border: 1.5px solid var(--ink); display: grid; place-items: center; flex: none; overflow: hidden; }
.dc-avatar img { width: 19px; height: 19px; display: block; }
.dc-name-wrap { min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.dc-name { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .03em; white-space: nowrap; line-height: .95; }
.dc-role { font-family: var(--mono); font-weight: 700; font-size: 7.5px; letter-spacing: .045em; color: #7A6C5D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.dc-key { margin-left: auto; flex: none; font-family: var(--mono); font-weight: 700; font-size: 9px; line-height: 1; background: var(--ink); color: #FFF7EA; border-radius: 4px; padding: 3px 5px; opacity: .92; }
.driver-card:disabled .dc-key { opacity: .28; }
.dc-body { min-height: 47px; display: flex; flex-direction: column; justify-content: flex-start; gap: 3px; min-width: 0; }
.dc-state { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 750; line-height: 1.22; color: #43392F; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-state i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--green); display: block; }
.dc-state.is-busy i { background: var(--tomato); animation: blink 1.2s steps(2,end) infinite; }
.dc-state.is-snack i { background: var(--mustard); }
.dc-state.is-locked i { background: #A29380; }
.dc-perk { font-size: 10.5px; line-height: 1.28; color: #807160; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.dc-headline { font-family: var(--mono); font-weight: 700; font-size: 7.5px; letter-spacing: .07em; color: #7A6C5D; line-height: 1; margin-bottom: 1px; white-space: nowrap; }
.dc-preview-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: 10px; font-weight: 700; line-height: 1.25; color: #443A30; white-space: nowrap; }
.dc-preview-row em { font-style: normal; letter-spacing: .045em; font-size: 8px; color: #807160; }
.dc-preview-row b { font-size: 11px; letter-spacing: -.02em; }
.dc-verdict { align-self: flex-start; font-family: var(--mono); font-weight: 700; font-size: 8px; letter-spacing: .06em; line-height: 1; padding: 3px 5px; border-radius: 4px; margin-top: 2px; white-space: nowrap; border: 1px solid transparent; }
.dc-verdict.is-good { background: #DCF6E9; color: #0B6A48; border-color: rgba(11,106,72,.25); }
.dc-verdict.is-ok { background: var(--butter); color: #664B12; border-color: rgba(102,75,18,.25); }
.dc-verdict.is-late { background: #FFE1D8; color: #A52B12; border-color: rgba(165,43,18,.28); }
.dc-verdict.is-locked, .dc-verdict.is-busy { background: #EEE5D7; color: #6E6051; border-color: rgba(110,96,81,.22); }
.dc-verdict.is-best { background: var(--ink); color: #FFF7EA; border-color: var(--ink); }

/* ==========================================================================
   SUPPORT INBOX
   ========================================================================== */
.support-panel { background: #FFF9EA; }
.support-panel .panel-head { border-bottom-color: #DACAB3; }
.ticket-scroll { padding: 10px 12px 12px; gap: 8px; }
.ticket-card { flex: none; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); overflow: hidden; position: relative; }
.ticket-card--top { padding: 11px 13px 0; animation: ticketIn .28s cubic-bezier(.2,.8,.2,1) both; }
.t-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.t-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--tc, var(--sky)); border: 2px solid var(--ink); display: grid; place-items: center; flex: none; font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1; color: var(--ink); padding-top: 1px; box-shadow: 1.5px 1.5px 0 rgba(23,21,18,.55); }
.t-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.1; gap: 2px; }
.t-who b { font-size: 13px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.005em; }
.t-where { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .045em; color: #847565; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-timer-wrap { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1; flex: none; }
.t-timer-label { font-family: var(--mono); font-size: 7.5px; font-weight: 700; letter-spacing: .08em; color: #8A7A69; white-space: nowrap; }
.t-timer { font-family: var(--display); font-weight: 400; font-size: 23px; letter-spacing: .03em; color: var(--ink); line-height: .8; transition: color .2s; }
.ticket-card.is-low .t-timer { color: var(--tomato-deep); animation: tinyShake .7s ease-in-out infinite; }
.ticket-card.is-low .t-timer-label { color: var(--tomato-deep); }
.t-ctx { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .045em; background: var(--butter); border: 1px solid rgba(23,21,18,.32); border-radius: 4px; padding: 3px 6px; color: #4E3E18; line-height: 1.2; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.t-quote { position: relative; margin: 8px 0 10px; background: #F5EAD9; border-radius: 4px 13px 13px 13px; padding: 9px 11px 9px; font-size: 14px; line-height: 1.42; font-weight: 480; color: #2B2621; letter-spacing: -.003em; }
.t-quote::before { content: '“'; position: absolute; left: 6px; top: -5px; font-family: Georgia, serif; font-size: 28px; line-height: 1; color: rgba(23,21,18,.16); }
.t-choices { display: flex; flex-direction: column; gap: 6px; }
.choice { appearance: none; -webkit-appearance: none; width: 100%; display: flex; align-items: flex-start; gap: 8px; text-align: left; background: #FFFDF8; border: 2px solid var(--ink); border-radius: 11px; padding: 7px 8px 7px 8px; cursor: pointer; box-shadow: 0 2px 0 var(--ink); font-family: var(--body); color: var(--ink); transition: background-color .12s ease, transform .1s ease, box-shadow .1s ease; margin: 0; }
.choice:hover { background: var(--butter); transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.choice:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.choice-key { width: 21px; height: 21px; border-radius: 50%; background: var(--ink); color: #FFF7EA; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; line-height: 1; flex: none; margin-top: 1px; }
.choice-text { flex: 1; min-width: 0; font-size: 12.75px; line-height: 1.33; font-weight: 600; letter-spacing: -.005em; color: #2A2520; }
.choice-cost { flex: none; align-self: center; font-family: var(--mono); font-weight: 700; font-size: 9px; line-height: 1; border-radius: 4px; padding: 3px 5px; background: #FFE1D8; color: #A52B12; white-space: nowrap; border: 1px solid rgba(165,43,18,.18); }
.choice-cost.is-plus { background: #DCF6E9; color: #0B6A48; border-color: rgba(11,106,72,.2); }
.choice.is-locked { cursor: not-allowed; opacity: .52; background: #F2ECDF; box-shadow: none; transform: none !important; }
.choice.is-locked:hover { background: #F2ECDF; box-shadow: none; transform: none; }
.t-timerbar { height: 5px; background: #EADFCC; margin: 10px -13px 0; overflow: hidden; }
.t-timerbar i { display: block; height: 100%; width: var(--tp, 100%); background: var(--tomato); transition: width .25s linear, background-color .25s; }
.ticket-card.is-low .t-timerbar i { background: var(--tomato-deep); }
.ticket-row { appearance: none; -webkit-appearance: none; flex: none; width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #FFFCF5; border: 1.5px solid #CBBBA5; border-radius: 10px; cursor: pointer; text-align: left; font-family: var(--body); color: var(--ink); transition: background-color .12s ease, border-color .12s, transform .12s; min-height: 43px; }
.ticket-row:hover { background: #FFF3D2; border-color: var(--ink); transform: translateX(-1px); }
.ticket-row.is-low { border-color: var(--tomato); background: #FFF3EC; }
.tr-avatar { width: 25px; height: 25px; border-radius: 50%; background: var(--tc, var(--sky)); border: 1.5px solid var(--ink); display: grid; place-items: center; flex: none; font-family: var(--display); font-size: 13px; line-height: 1; padding-top: 1px; color: var(--ink); }
.tr-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.tr-copy b { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.tr-copy span { font-size: 11px; color: #776858; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.tr-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; width: 46px; }
.tr-time { font-family: var(--mono); font-size: 10px; font-weight: 700; color: #6C5E50; line-height: 1; }
.ticket-row.is-low .tr-time { color: var(--tomato-deep); }
.tr-bar { width: 42px; height: 4px; background: #EADFCC; border-radius: 99px; overflow: hidden; }
.tr-bar i { display: block; height: 100%; width: var(--tp, 100%); background: var(--mustard); border-radius: 99px; transition: width .25s linear; }
.ticket-row.is-low .tr-bar i { background: var(--tomato); }
.queue-note { font-family: var(--hand); font-weight: 700; font-size: 18px; color: #827262; text-align: center; line-height: 1; margin: 1px 0 -2px; transform: rotate(-1deg); }
.ticket-empty { margin: auto; padding: 24px 14px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: var(--muted); }
.ticket-empty img { width: 58px; height: 58px; margin-bottom: 5px; transform: rotate(5deg); filter: drop-shadow(0 3px 0 rgba(23,21,18,.18)); }
.ticket-empty b { font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1; letter-spacing: .025em; color: var(--ink); }
.ticket-empty span { font-size: 12.5px; line-height: 1.42; max-width: 235px; }
.ticket-empty small { font-family: var(--hand); font-size: 20px; font-weight: 700; color: var(--tomato-deep); margin-top: 3px; transform: rotate(-2deg); line-height: 1; }
.ticket-feedback { position: absolute; left: 12px; right: 12px; bottom: 50px; z-index: 9; display: none; pointer-events: none; }
.ticket-feedback.is-show { display: block; animation: feedbackIn 2.7s cubic-bezier(.2,.8,.2,1) both; }
.ticket-feedback-inner { display: flex; align-items: center; gap: 9px; background: var(--ink); color: #FFF7EA; border: 2px solid var(--ink); border-radius: 12px; padding: 9px 11px; box-shadow: 0 4px 0 rgba(23,21,18,.32), 0 10px 24px rgba(23,21,18,.2); }
.tf-icon { flex: none; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 16px; color: var(--ink); background: var(--mustard); line-height: 1; padding-top: 1px; }
.tf-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; line-height: 1.22; }
.tf-copy b { font-family: var(--mono); font-weight: 700; font-size: 9px; letter-spacing: .085em; color: var(--mustard); }
.tf-copy span { font-size: 12px; font-weight: 600; color: #F3E9DA; }
.tf-delta { flex: none; font-family: var(--mono); font-weight: 700; font-size: 11px; color: #8BF2BE; white-space: nowrap; line-height: 1.15; text-align: right; }
.ticket-feedback.tone-ok .tf-icon { background: var(--mustard); }
.ticket-feedback.tone-bad .tf-icon { background: var(--tomato); color: #fff; }
.ticket-feedback.tone-bad .tf-copy b { color: #FF9A83; }
.ticket-feedback.tone-bad .tf-delta { color: #FF9A83; }
.ticket-feedback.tone-missed .tf-icon { background: #9B8B7B; }

/* ==========================================================================
   TABS (mobile/tablet only) + TICKER
   ========================================================================== */
.tabbar { display: none; }
.ticker { flex: none; height: 32px; display: flex; align-items: stretch; background: var(--ink); color: #F4EDE0; border-top: 2px solid #000; overflow: hidden; z-index: 25; position: relative; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--tomato); color: #FFF8ED; font-family: var(--mono); font-weight: 700; font-size: 9px; letter-spacing: .09em; border-right: 2px solid #000; white-space: nowrap; }
.ticker-label svg { width: 13px; height: 13px; display: block; color: #FFF8ED; }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; position: relative; }
.ticker-track { display: flex; flex: none; width: max-content; white-space: nowrap; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .055em; color: #EADBC6; animation: tickerMove 70s linear infinite; will-change: transform; }
.tick-group { display: inline-flex; align-items: center; flex: none; }
.tick-group span { display: inline-flex; align-items: center; white-space: nowrap; }
.tick-group span::after { content: '✦'; margin: 0 16px; color: var(--mustard); font-size: 9px; opacity: .85; }
.tick-fresh { color: #FFD86A; }
.ticker-end { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #0E0C0A; border-left: 2px solid #000; font-family: var(--mono); font-weight: 700; font-size: 8.5px; letter-spacing: .1em; color: #E8DAC7; white-space: nowrap; }
.ticker-end .live-dot { width: 6px; height: 6px; background: #FF4A3D; animation: blink 1s steps(2,end) infinite; box-shadow: none; }
.game-screen.is-paused .ticker-track { animation-play-state: paused; }

/* announcement banner */
.announce { position: absolute; top: 132px; left: 50%; transform: translate(-50%, -14px); z-index: 60; opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #FFF7EA; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 6px 0 var(--tomato), 0 14px 34px rgba(23,21,18,.32); padding: 10px 16px 10px 11px; max-width: min(92vw, 720px); transition: opacity .22s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.announce.is-show { opacity: 1; transform: translate(-50%, 0); }
.an-tag { flex: none; display: inline-flex; align-items: center; gap: 5px; background: var(--tomato); color: #FFF8ED; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .085em; padding: 5px 7px; border-radius: 6px; white-space: nowrap; line-height: 1; }
.an-tag svg { width: 12px; height: 12px; display: block; color: currentColor; }
.an-text { min-width: 0; font-family: var(--display); font-weight: 400; font-size: clamp(17px, 1.75vw, 23px); line-height: 1; letter-spacing: .025em; color: #FFF7EA; text-wrap: balance; }
.an-text small { display: block; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #D8C8B4; margin-top: 4px; line-height: 1.2; text-transform: uppercase; }
.announce.tone-good { box-shadow: 0 6px 0 var(--green), 0 14px 34px rgba(23,21,18,.32); }
.announce.tone-good .an-tag { background: var(--green); }
.announce.tone-info .an-tag { background: var(--mustard); color: var(--ink); }

/* ==========================================================================
   MODALS
   ========================================================================== */
#modalRoot { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13,11,9,.68); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fadeIn .22s ease both; }
.modal-card { position: relative; z-index: 1; width: min(100%, 660px); max-height: calc(100dvh - 36px); overflow-y: auto; background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink), 0 32px 80px rgba(0,0,0,.4); padding: clamp(20px, 2.8vw, 34px); animation: modalIn .3s cubic-bezier(.2,.8,.2,1) both; scrollbar-width: thin; }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.modal-kicker { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .11em; color: #6C5E50; text-transform: uppercase; line-height: 1.3; }
.modal-close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 0 var(--ink); transition: transform .12s, background .12s; padding: 0; }
.modal-close svg { width: 17px; height: 17px; }
.modal-close:hover { background: var(--mustard); transform: translateY(-1px); }
.modal-card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: .9; letter-spacing: .02em; margin: 0 0 12px; color: var(--ink); text-wrap: balance; }
.modal-card h2 .accent { color: var(--tomato); }
.modal-lede { font-size: clamp(14px, 1.25vw, 16px); line-height: 1.5; color: #473D33; margin: 0 0 18px; max-width: 58ch; }
.modal-lede b { color: var(--ink); }
.guide-card { width: min(100%, 760px); }
.guide-goal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.guide-goal > div { background: var(--card); border: 2px solid var(--ink); border-radius: 13px; padding: 10px 12px; box-shadow: 0 2px 0 var(--ink); }
.guide-goal > div > b { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--tomato-deep); margin-bottom: 4px; }
.guide-goal > div > b i { display: inline-block; width: 14px; height: 4px; background: var(--tomato); border-radius: 2px; }
.guide-goal p b { color: var(--ink); font-weight: 750; }
.guide-goal p { margin: 0; font-size: 12.75px; line-height: 1.4; color: #42382F; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.guide-step { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 13px 13px; box-shadow: 0 3px 0 var(--ink); }
.guide-step:nth-child(2) { background: var(--ink); color: #FFF7EA; box-shadow: 0 3px 0 var(--tomato); }
.guide-step:nth-child(2) p { color: #D9CBBB; }
.guide-step:nth-child(3) { background: var(--mustard); box-shadow: 0 3px 0 var(--ink); }
.gs-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.gs-num { font-family: var(--display); font-size: 26px; line-height: .8; color: var(--tomato); }
.guide-step:nth-child(2) .gs-num { color: var(--mustard); }
.guide-step:nth-child(3) .gs-num { color: var(--ink); }
.gs-top img { width: 30px; height: 30px; transform: rotate(-6deg); filter: drop-shadow(0 2px 0 rgba(23,21,18,.2)); }
.guide-step h3 { margin: 0 0 5px; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1; letter-spacing: .03em; }
.guide-step p { margin: 0; font-size: 12.5px; line-height: 1.42; color: #473D33; }
.guide-sub { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; color: #6C5F51; margin: 0 0 7px; text-transform: uppercase; }
.guide-crew { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-bottom: 16px; }
.gc-rider { background: var(--card); border: 2px solid var(--ink); border-radius: 11px; padding: 8px 8px 9px; box-shadow: 0 2px 0 var(--ink); min-width: 0; }
.gc-rider-top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.gc-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--dc); border: 1.5px solid var(--ink); display: grid; place-items: center; flex: none; overflow: hidden; }
.gc-avatar img { width: 17px; height: 17px; display: block; }
.gc-rider b { font-family: var(--display); font-weight: 400; font-size: 17px; line-height: .9; display: block; letter-spacing: .02em; }
.gc-rider em { font-family: var(--mono); font-style: normal; font-size: 7px; font-weight: 700; letter-spacing: .04em; color: #7C6D5D; white-space: nowrap; display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.gc-rider p { margin: 0; font-size: 11px; line-height: 1.35; color: #4A4036; }
.guide-controls { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 11px 0 0; border-top: 1.5px dashed #CBBBA7; margin-bottom: 17px; font-size: 12px; color: #5C4F42; }
.guide-controls span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.modal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.modal-actions .btn-primary { min-width: 200px; }
.modal-actions .btn-text { appearance: none; border: none; background: none; padding: 6px 2px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #55483B; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: pointer; }
.modal-actions .btn-text:hover { color: var(--tomato-deep); }

/* pause */
.pause-card { width: min(100%, 500px); text-align: left; }
.pause-card h2 { font-size: clamp(46px, 7vw, 74px); margin-bottom: 10px; }
.pause-art { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.pause-badge { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--mustard); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); color: var(--ink); }
.pause-badge svg { width: 21px; height: 21px; }
.pause-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 20px; }
.pause-actions .btn-primary { flex: 1 1 200px; }
.pause-actions .btn-small { flex: none; }
.pause-foot { margin-top: 16px; padding-top: 12px; border-top: 1.5px dashed #CBBBA7; font-size: 12px; line-height: 1.5; color: #66584A; }
.pause-foot b { color: var(--ink); }

/* results */
.result-card { width: min(100%, 900px); padding: clamp(20px, 3vw, 38px); overflow: hidden; }
.result-card::before { content: ''; position: absolute; right: -120px; top: -150px; width: 360px; height: 360px; border-radius: 50%; background: repeating-conic-gradient(var(--mustard) 0 12deg, #FFD15C 12deg 24deg); opacity: .38; pointer-events: none; } .result-card--loss::before { background: repeating-conic-gradient(#FFB39F 0 12deg, #FFD6CB 12deg 24deg); opacity: .45; }
.result-inner { position: relative; z-index: 1; }
.result-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: .12em; color: #5F5143; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 11px; box-shadow: 2px 2px 0 var(--ink); margin-bottom: 14px; text-transform: uppercase; }
.result-card h2 { font-size: clamp(48px, 7.2vw, 92px); margin-bottom: 8px; max-width: 760px; }
.result-sub { font-size: clamp(14px, 1.25vw, 16.5px); line-height: 1.5; color: #463C32; max-width: 62ch; margin: 0 0 18px; }
.result-sub b { color: var(--ink); }
.result-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 34px); align-items: start; margin: 18px 0 20px; }
.grade-block { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 150px; }
.grade-copy { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.grade-ring { width: 136px; height: 136px; border-radius: 50%; border: 3px solid var(--ink); background: var(--mustard); display: grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: 92px; line-height: 1; padding-top: 10px; box-shadow: 0 6px 0 var(--ink); transform: rotate(-5deg); color: var(--ink); }
.result-card--loss .grade-ring { background: var(--tomato); color: #FFF8ED; }
.grade-label { font-family: var(--mono); font-weight: 700; font-size: 9px; letter-spacing: .1em; color: #615345; text-transform: uppercase; margin-top: 5px; }
.grade-title { font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: .95; color: var(--tomato-deep); transform: rotate(-2deg); max-width: 170px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.stat-tile { background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 9px 11px 9px; box-shadow: 0 2px 0 var(--ink); min-width: 0; }
.stat-tile span { display: block; font-family: var(--mono); font-weight: 700; font-size: 8.5px; letter-spacing: .09em; color: #807161; margin-bottom: 3px; text-transform: uppercase; }
.stat-tile b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: .9; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-tile b small { font-family: var(--body); font-size: 11px; font-weight: 700; color: #7A6B5C; letter-spacing: 0; margin-left: 2px; }
.result-scoreline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; background: var(--ink); color: #FFF7EA; border: 2px solid var(--ink); border-radius: 14px; padding: 10px 15px; margin-bottom: 19px; box-shadow: 0 4px 0 var(--tomato); }
.result-scoreline span { font-family: var(--mono); font-weight: 700; font-size: 9px; letter-spacing: .11em; color: #CFC1AE; text-transform: uppercase; }
.result-scoreline b { font-family: var(--display); font-weight: 400; font-size: 33px; line-height: .9; letter-spacing: .025em; color: var(--mustard); }
.result-best { margin-left: auto; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #FFF7EA; background: var(--tomato); border-radius: 5px; padding: 5px 8px; white-space: nowrap; }
.result-best.is-plain { background: rgba(255,255,255,.12); color: #DCCFBE; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 200; pointer-events: none; }

/* toast flashes for generic notices */
.mini-note { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #FFF7EA; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--mustard); border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 650; line-height: 1.2; max-width: 90vw; text-align: center; animation: toastLife 2.4s ease both; pointer-events: none; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(255,86,50,.55); } 70% { box-shadow: 0 0 0 6px rgba(255,86,50,0); } 100% { box-shadow: 0 0 0 0 rgba(255,86,50,0); } }
@keyframes blink { 0%, 45% { opacity: 1; } 50%, 100% { opacity: .25; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes heroBob { 0%, 100% { margin-top: 0; } 50% { margin-top: -.7cqw; } }
@keyframes heroRing { 0% { transform: scale(.85); opacity: .5; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes twinkle { 0%, 100% { transform: scale(.75) rotate(0deg); opacity: .45; } 50% { transform: scale(1.15) rotate(18deg); opacity: 1; } }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes techStripes { to { background-position: 19.8px 0; } }
@keyframes techHit { 0% { background-color: var(--mustard); } 15% { background-color: #FF8A66; transform: translateX(-3px); } 30% { background-color: var(--tomato); transform: translateX(3px); } 45% { background-color: #FF8A66; transform: translateX(-2px); } 60% { background-color: var(--mustard); transform: translateX(2px); } 100% { background-color: var(--mustard); transform: translateX(0); } }
@keyframes bubbleBlink { 0%, 100% { background: #FFFBF0; } 50% { background: #FFF0C2; } }
@keyframes quake { 10%, 90% { transform: translate3d(-2px, 0, 0); } 20%, 80% { transform: translate3d(3px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-4px, 1px, 0); } 40%, 60% { transform: translate3d(4px, -1px, 0); } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(6px) scale(.94); } 14% { opacity: 1; transform: translateY(0) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-27px) scale(.98); } }
@keyframes statGood { 0% { transform: scale(1); } 35% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes statBad { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } 55% { transform: scale(.95); } }
@keyframes ticketIn { from { opacity: 0; transform: translateY(-10px) rotate(-.4deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes feedbackIn { 0% { opacity: 0; transform: translateY(10px) scale(.97); } 8% { opacity: 1; transform: translateY(0) scale(1); } 86% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes toastLife { 0% { opacity: 0; transform: translateY(8px) scale(.97); } 8% { opacity: 1; transform: translateY(0) scale(1); } 84% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-7px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pinPulse { 0% { box-shadow: 0 0 0 2px var(--oc), 0 0 0 0 rgba(255,200,58,.65), 0 3px 0 rgba(0,0,0,.45); } 75% { box-shadow: 0 0 0 2px var(--oc), 0 0 0 11px rgba(255,200,58,0), 0 3px 0 rgba(0,0,0,.45); } 100% { box-shadow: 0 0 0 2px var(--oc), 0 0 0 0 rgba(255,200,58,0), 0 3px 0 rgba(0,0,0,.45); } }
@keyframes pinPulseDrop { 0% { filter: drop-shadow(0 0 0 rgba(255,200,58,.8)); transform: rotate(45deg) scale(1); } 55% { filter: drop-shadow(0 0 7px rgba(255,200,58,1)); transform: rotate(45deg) scale(1.2); } 100% { filter: drop-shadow(0 0 0 rgba(255,200,58,0)); transform: rotate(45deg) scale(1); } }
@keyframes riderRing { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes candidateBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes tinyShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2.5deg); } 75% { transform: rotate(2.5deg); } }

/* ==========================================================================
   RESPONSIVE — desktop squeeze
   ========================================================================== */
@media (max-width: 1480px) {
  .crew-head p { max-width: 250px; }
  .crew-tip { display: none; }
}
@media (max-width: 1320px) {
  .game-main { grid-template-columns: clamp(276px, 23.5vw, 320px) minmax(0, 1fr) clamp(308px, 26vw, 352px); gap: 12px; padding: 12px 14px 10px; }
  .topbar { padding: 0 16px; }
  .techbar { padding-left: 16px; padding-right: 16px; }
  .panel-head { padding: 12px 14px 10px; }
  .panel-head h2 { font-size: 25px; }
  .panel-head p { font-size: 12px; }
  .oc-stop b { font-size: 13px; }
  .t-quote { font-size: 13.5px; }
  .choice-text { font-size: 12.4px; }
  .crew-card { padding: 9px 11px 10px; }
  .crew-row { gap: 6px; }
  .driver-card { padding: 7px 7px 7px; }
  .dc-name { font-size: 17px; }
  .dc-avatar { width: 26px; height: 26px; }
  .dc-avatar img { width: 17px; height: 17px; }
  .dc-role { font-size: 7px; letter-spacing: .02em; }
  .dc-perk { font-size: 10px; }
  .dc-state { font-size: 10.5px; }
  .dc-verdict { font-size: 7.5px; letter-spacing: .035em; padding: 3px 4px; }
}
@media (max-height: 780px) and (min-width: 1101px) {
  .topbar { height: 60px; }
  .techbar { min-height: 50px; padding-top: 5px; padding-bottom: 5px; }
  .game-main { padding-top: 10px; padding-bottom: 9px; gap: 11px; }
  .map-head { height: 36px; }
  .panel-head { padding-top: 10px; padding-bottom: 9px; }
  .panel-head h2 { font-size: 24px; }
  .panel-foot { padding-top: 7px; padding-bottom: 8px; font-size: 11.5px; }
  .orders-panel .panel-scroll { padding-top: 10px; gap: 8px; }
  .order-card { padding-top: 8px; padding-bottom: 8px; }
  .oc-route { margin-top: 6px; margin-bottom: 5px; }
  .oc-meta { margin-top: 6px; }
  .oc-progress { margin-top: 6px; }
  .crew-card { padding-top: 8px; padding-bottom: 9px; }
  .crew-head { min-height: 29px; margin-bottom: 6px; }
  .crew-head h2 { font-size: 17px; }
  .crew-head p { font-size: 11.5px; margin-top: 2px; }
  .driver-card { gap: 5px; padding-top: 6px; padding-bottom: 6px; }
  .dc-body { min-height: 44px; }
  .dc-avatar { width: 25px; height: 25px; }
  .dc-name { font-size: 17px; }
  .t-quote { margin-top: 6px; margin-bottom: 8px; padding-top: 8px; padding-bottom: 8px; font-size: 13px; }
  .choice { padding-top: 6px; padding-bottom: 6px; }
  .choice-text { font-size: 12.1px; line-height: 1.3; }
  .ticket-scroll { padding-top: 8px; gap: 7px; }
  .ticker { height: 29px; }
  .announce { top: 121px; }
}
@media (max-width: 1220px) and (min-width: 1101px) {
  .view-tag { display: none; }
  .map-count { display: none; }
  .shift-clock { display: none; }
  .crew-head p { max-width: 190px; }
}

/* ==========================================================================
   TABLET / MOBILE TAB MODE
   ========================================================================== */
@media (max-width: 1100px) {
  body { overflow-y: auto; }
  .game-screen { overflow: hidden; }
  .topbar { height: 58px; padding: 0 14px; gap: 10px; }
  .topbar .logo-svg { width: 32px; height: 32px; }
  .topbar .logo-word { font-size: 23px; }
  .offline-pill { display: none; }
  .shift-clock { display: none; }
  .hud { gap: 12px; }
  .trust-track { width: clamp(72px, 13vw, 140px); }
  .hud-stat .hud-row > b { font-size: 24px; }
  .cash-stat .hud-row > b { font-size: 22px; }
  .icon-btn { width: 36px; height: 36px; }
  .techbar { padding: 7px 14px; gap: 12px; min-height: 54px; }
  .tech-who-copy span { display: none; }
  .tech-who-copy b { font-size: 15px; }
  .tech-eta b { font-size: 25px; }
  .game-main { display: block; position: relative; padding: 10px; width: 100%; max-width: none; overflow: hidden; }
  .tab-panel { display: none !important; position: absolute; inset: 10px; min-height: 0; min-width: 0; overflow: hidden; }
  .game-screen[data-mobile-tab="orders"] .tab-panel[data-tab="orders"],
  .game-screen[data-mobile-tab="dispatch"] .tab-panel[data-tab="dispatch"],
  .game-screen[data-mobile-tab="inbox"] .tab-panel[data-tab="inbox"] { display: flex !important; }
  .center-col[data-tab="dispatch"] { flex-direction: column; gap: 10px; }
  .map-card { flex: 1 1 auto; height: auto; min-height: 200px; }
  .crew-card { flex: none; }
  .crew-head p { max-width: none; }
  .crew-tip { display: block; }
  .crew-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(134px, 1fr); grid-template-columns: none; overflow-x: auto; overflow-y: hidden; gap: 8px; padding: 2px 2px 6px; margin: -2px -2px -3px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .driver-card { scroll-snap-align: start; padding: 8px 9px 9px; gap: 6px; }
  .dc-name { font-size: 19px; }
  .dc-avatar { width: 29px; height: 29px; }
  .dc-role { font-size: 7.5px; }
  .dc-state { font-size: 11px; }
  .dc-perk { font-size: 10.5px; }
  .dc-body { min-height: 48px; }
  .panel { box-shadow: 0 4px 0 var(--ink); }
  .ticker { display: none !important; }
  .tabbar { display: flex; flex: none; height: 60px; background: var(--ink); border-top: 2px solid #000; position: relative; z-index: 40; padding-bottom: env(safe-area-inset-bottom, 0px); box-sizing: content-box; }
  .tab-btn { flex: 1; min-width: 0; appearance: none; border: none; border-right: 1px solid #3B342C; background: var(--ink); color: #EFE3D2; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; cursor: pointer; font-family: var(--body); line-height: 1; transition: background-color .15s, color .15s; position: relative; }
  .tab-btn:last-child { border-right: none; }
  .tab-btn.is-active { background: var(--mustard); color: var(--ink); }
  .tab-btn.is-active::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--tomato); }
  .tab-kicker { font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .05em; color: #AA9C89; }
  .tab-btn.is-active .tab-kicker { color: #5D4A1F; }
  .tab-label { font-family: var(--display); font-size: 17px; letter-spacing: .05em; }
  .tab-badge { font-family: var(--mono); font-weight: 700; font-size: 10px; line-height: 1; background: var(--tomato); color: #FFF8ED; border-radius: 999px; min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; flex: none; }
  .tab-btn.is-active .tab-badge { border: 1.5px solid var(--ink); }
  .tab-badge.is-zero { opacity: .35; }
  .tab-badge.badge-hot { background: #FF4A2B; animation: badgePulse 1.3s ease-in-out infinite; }
  .announce { top: 116px; }
  .map-head { height: 38px; padding: 0 12px; }
  .map-title { font-size: 18px; }
  .crew-head h2 { font-size: 18px; }
  .map-viewport { background: #131D19; }
  .map-legend { bottom: 8px; left: 8px; font-size: 7.5px; gap: 9px; padding: 4px 8px; }
  #modalRoot { padding: 14px; }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .crew-row { grid-auto-columns: minmax(140px, 1fr); }
  .hero-stage { max-width: 540px; }
}
@media (max-width: 700px) {
  .topbar { height: 56px; padding: 0 11px; }
  .topbar .logo-word { font-size: 20px; }
  .topbar .logo-svg { width: 29px; height: 29px; }
  .brand { gap: 7px; }
  .hud { gap: 8px; }
  .hud-label { font-size: 7.5px; letter-spacing: .07em; }
  .hud-label svg { width: 10px; height: 10px; }
  .trust-track { width: clamp(52px, 15vw, 84px); height: 10px; }
  .hud-stat { height: 36px; gap: 3px; }
  .hud-stat .hud-row > b { font-size: 22px; }
  .cash-stat .hud-row > b { font-size: 20px; }
  .hud-buttons { gap: 4px; }
  .icon-btn { width: 32px; height: 32px; border-width: 1.2px; }
  .icon-btn svg { width: 15px; height: 15px; }
  .hud-buttons [data-action="help"] { display: none; }
  .trust-fx, .cash-fx { left: auto; right: 0; bottom: -24px; width: 0; z-index: 30; }
  .techbar { padding: 6px 10px; gap: 8px; min-height: 50px; }
  .tech-who { display: none; }
  .tech-mid { gap: 4px; }
  .tech-bubble { font-size: 10.5px; padding: 4px 9px; box-shadow: 1.5px 1.5px 0 var(--ink); }
  .tech-eta > span { font-size: 7.5px; letter-spacing: .04em; }
  .tech-eta b { font-size: 23px; }
  .tech-eta em { font-size: 16px; }
  .tech-badge { font-size: 7.5px; padding: 3px 5px; }
  .game-main { padding: 8px; }
  .tab-panel { inset: 8px; }
  .panel-head { padding: 10px 12px 9px; }
  .panel-head h2 { font-size: 23px; }
  .panel-head p { font-size: 11.5px; }
  .panel-foot { font-size: 11px; padding: 7px 12px 8px; }
  .panel-scroll { padding: 9px 9px 9px; gap: 9px; }
  .tabbar { height: 56px; }
  .tab-kicker { display: none; }
  .tab-label { font-size: 18px; }
  .tab-btn { gap: 8px; }
  .announce { top: 112px; padding: 8px 11px 8px 8px; gap: 8px; border-radius: 10px; }
  .an-text { font-size: 16px; }
  .an-tag { font-size: 8px; padding: 4px 6px; }
  .map-head { height: 35px; padding: 0 10px; }
  .map-title { font-size: 17px; gap: 6px; }
  .view-tag { font-size: 7px; padding: 2px 4px; }
  .map-count { display: none; }
  .map-status { border: none; padding-right: 0; font-size: 8px; }
  .crew-card { padding: 8px 9px 8px; }
  .crew-head { margin-bottom: 6px; min-height: 28px; }
  .crew-head h2 { font-size: 17px; }
  .crew-head p { font-size: 11px; white-space: normal; line-height: 1.2; }
  .crew-tip { display: none; }
  .crew-row { grid-auto-columns: minmax(131px, 44vw); gap: 7px; }
  .map-toasts { bottom: 36px; }
  .map-toast { font-size: 11px; padding: 4px 9px; }
  .map-legend { display: none; }
  .ticket-feedback { bottom: 45px; left: 9px; right: 9px; }
  #modalRoot { padding: 10px; }
  .modal-card { border-radius: 18px; max-height: calc(100dvh - 20px); padding: 18px 16px 19px; }
  .modal-top { margin-bottom: 9px; }
  .modal-close { width: 34px; height: 34px; }
  .guide-goal { grid-template-columns: 1fr; gap: 8px; }
  .guide-grid { grid-template-columns: 1fr; gap: 8px; }
  .guide-step { padding: 11px 12px 12px; }
  .guide-step h3 { font-size: 20px; }
  .guide-crew { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gc-rider:last-child { grid-column: span 2; }
  .guide-controls { gap: 6px 11px; font-size: 11px; }
  .modal-actions .btn-primary { width: 100%; min-width: 0; }
  .result-body { grid-template-columns: 1fr; gap: 16px; }
  .grade-block { flex-direction: row; justify-content: flex-start; text-align: left; align-items: center; gap: 14px; }
  .grade-ring { width: 92px; height: 92px; font-size: 64px; box-shadow: 0 4px 0 var(--ink); padding-top: 7px; flex: none; }
  .grade-copy { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
  .grade-title { max-width: none; text-align: left; }
  .stats-grid { gap: 7px; }
  .stat-tile { padding: 8px 9px; }
  .result-actions .btn { flex: 1 1 auto; }
  .result-scoreline b { font-size: 29px; }
}
@media (max-width: 380px) {
  .hud { gap: 6px; }
  .trust-track { width: 48px; }
  .hud-buttons [data-action="sound"] { display: none; }
  .cash-stat .hud-row > b { font-size: 18px; }
  .panel-head h2 { font-size: 21px; }
}

/* ==========================================================================
   START SCREEN — tablet / mobile
   ========================================================================== */
@media (max-width: 1180px) {
  .hero-grid { gap: 24px; }
  .hero-title { font-size: clamp(54px, min(7.4vw, 10.2vh), 96px); }
  .ht-dish em { display: none; }
}
@media (max-width: 960px) {
  .start-screen { overflow: visible; }
  .start-screen::before { display: none; }
  .start-main { padding: 0 20px; }
  .start-nav { padding: 16px 20px 6px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 12px; padding-bottom: 24px; }
  .hero-copy { max-width: 760px; }
  .hero-title { font-size: clamp(52px, 12vw, 104px); line-height: .87; }
  .hero-lede { max-width: 640px; font-size: clamp(15px, 2vw, 18px); margin-top: 18px; margin-bottom: 22px; }
  .hero-art { margin-top: 2px; }
  .hero-stage { max-width: 540px; }
  .steps { grid-template-columns: 1fr; gap: 10px; padding-bottom: 20px; }
  .step-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 13px; padding: 12px 15px 13px; align-items: start; }
  .step-top { grid-row: 1 / span 2; flex-direction: column; gap: 6px; margin: 0; width: 42px; }
  .step-num { font-size: 10px; }
  .step-icon { width: 31px; height: 31px; }
  .step-card h2 { font-size: clamp(22px, 3.6vw, 28px); margin-bottom: 3px; grid-column: 2; }
  .step-card p { grid-column: 2; font-size: 13px; }
  .start-footer { padding: 0 20px 16px; font-size: 11px; justify-content: flex-start; gap: 3px 18px; }
}
@media (max-width: 640px) {
  .start-nav { padding: 14px 16px 5px; }
  .start-nav .logo-svg { width: 37px; height: 37px; }
  .start-nav .logo-word { font-size: 26px; }
  .nav-chip { font-size: 9px; padding: 5px 9px; }
  .nav-note { display: none; }
  .start-main { padding: 0 16px; }
  .hero-grid { padding-top: 12px; gap: 18px; padding-bottom: 20px; }
  .kicker { font-size: 9.5px; letter-spacing: .1em; gap: 8px; margin-bottom: 15px; }
  .hero-title { font-size: clamp(46px, 13.2vw, 76px); line-height: .88; }
  .hero-lede { font-size: 15px; line-height: 1.48; margin: 15px 0 19px; }
  .hero-cta-row { gap: 10px 16px; align-items: flex-start; margin-bottom: 17px; }
  .btn-big { flex: none; font-size: 25px; padding: 15px 25px 14px 28px; }
  .cta-aside { padding-top: 2px; }
  .cta-aside .scribble { font-size: 21px; max-width: 160px; }
  .cta-sub { font-size: 9px; letter-spacing: .03em; max-width: 155px; line-height: 1.35; }
  .hero-meta { gap: 7px 14px; font-size: 9px; padding-top: 11px; letter-spacing: .045em; }
  .hero-meta li:last-child { display: none; }
  .hero-stage { max-width: 430px; }
  .start-footer { padding: 0 16px 18px; font-size: 10.5px; line-height: 1.4; flex-direction: column; }
}
@media (max-width: 380px) {
  .hero-title { font-size: 45px; }
  .btn-big { font-size: 22px; padding: 13px 20px 12px 23px; }
  .hero-meta { font-size: 8.5px; }
}
@media (max-height: 840px) and (min-width: 961px) {
  .start-nav { padding-top: 12px; padding-bottom: 2px; }
  .start-nav .logo-svg { width: 39px; height: 39px; }
  .start-nav .logo-word { font-size: 28px; }
  .hero-grid { padding-top: 1px; padding-bottom: 10px; }
  .kicker { margin-bottom: 10px; }
  .hero-title { font-size: clamp(50px, min(7.3vw, 9.0vh), 96px); }
  .hero-lede { margin-top: 11px; margin-bottom: 12px; font-size: 15px; line-height: 1.46; }
  .hero-cta-row { margin-bottom: 11px; }
  .btn-big { font-size: 24px; padding: 12px 24px 11px 28px; }
  .hero-meta { padding-top: 8px; }
  .steps { padding-bottom: 8px; gap: 10px; }
  .step-card { padding: 10px 14px 11px; }
  .step-top { margin-bottom: 3px; }
  .step-icon { width: 26px; height: 26px; }
  .step-card h2 { font-size: clamp(19px, 1.75vw, 25px); margin-bottom: 4px; }
  .step-card p { font-size: 12.3px; line-height: 1.36; }
  .start-footer { padding-bottom: 7px; font-size: 10.5px; }
}

/* small helpers */
.d-none { display: none !important; }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,86,50,.0); } 50% { box-shadow: 0 0 0 4px rgba(255,86,50,.25); } }


/* field guide: make the whole thing fit a laptop-height screen without scrolling */
@media (max-height: 820px) and (min-width: 701px) {
  .guide-card { padding-top: 22px; padding-bottom: 22px; }
  .guide-card .modal-top { margin-bottom: 6px; }
  .guide-card h2 { font-size: clamp(36px, 4.2vw, 48px); margin-bottom: 8px; }
  .guide-card .modal-lede { font-size: 14px; line-height: 1.42; margin-bottom: 12px; }
  .guide-goal { gap: 8px; margin-bottom: 11px; }
  .guide-goal > div { padding: 8px 11px; }
  .guide-goal p { font-size: 12.2px; line-height: 1.34; }
  .guide-goal > div > b { margin-bottom: 3px; }
  .guide-grid { gap: 8px; margin-bottom: 11px; }
  .guide-step { padding: 9px 11px 10px; }
  .guide-step .gs-top { margin-bottom: 4px; }
  .guide-step .gs-top img { width: 25px; height: 25px; }
  .gs-num { font-size: 23px; }
  .guide-step h3 { font-size: 19px; margin-bottom: 3px; }
  .guide-step p { font-size: 12px; line-height: 1.36; }
  .guide-card .guide-sub { margin-bottom: 5px; font-size: 8.5px; }
  .guide-crew { gap: 6px; margin-bottom: 11px; }
  .gc-rider { padding: 7px 8px 8px; }
  .gc-rider p { font-size: 10.5px; line-height: 1.3; }
  .guide-controls { margin-bottom: 11px; padding-top: 8px; font-size: 11px; gap: 5px 13px; }
  .guide-card .modal-actions .btn { padding-top: 11px; padding-bottom: 10px; font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sun, .hero-pin, .hero-pin::after, .hero-spark, .ticker-track, .live-dot, .nav-chip i, .tech-fill, .hero-stop.drop > span { animation: none !important; }
  *, *::before, *::after { scroll-behavior: auto !important; }
  .screen.is-active .hero-copy, .screen.is-active .hero-art, .screen.is-active .step-card { animation: none both; }
}
