html, body { margin: 0; height: 100%; overflow: hidden; background: #1d1f23; font-family: system-ui, sans-serif; color: #eee; }
#game, #cesium { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#game[hidden], #cesium[hidden] { display: none; }
#osm3d, #weather-overlay { position: absolute; left: 0; top: 0; display: block; }
#weather-overlay { pointer-events: none; }
/* ODbL attribution: tiny, low-contrast, but legible and never covered; sits right under the minimap. */
#osm-attribution { position: fixed; left: 16px; bottom: 78px; width: 190px; text-align: center; font: 500 9.5px/12px system-ui, sans-serif; color: rgba(255,255,255,0.62); text-shadow: 0 0 1px rgba(0,0,0,0.9), 0 0 3px rgba(0,0,0,0.7); letter-spacing: 0.02em; pointer-events: auto; z-index: 45; user-select: none; }
body.photo #osm-attribution { display: block !important; }
/* Corner buttons: settings, camera, radio (desktop: bottom-right; touch: top bar). */
#hud-buttons { position: fixed; right: 12px; bottom: 10px; display: flex; gap: 8px; z-index: 21; } /* above #menu so the gear also closes it */
#hud-buttons .hb { display: flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.22); background: rgba(16,20,28,0.62); color: #f2f5fa; font: 700 11px/1 system-ui, sans-serif; letter-spacing: 0.06em; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0,0,0,0.35); touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background 0.15s, transform 0.08s; }
#hud-buttons .hb:hover { background: rgba(40,48,64,0.8); }
#hud-buttons .hb:active, #hud-buttons .hb.held { transform: scale(0.94); background: rgba(70,90,120,0.85); }
#hud-buttons .hb svg { width: 20px; height: 20px; display: block; }
#hud-buttons .hb-ico { display: flex; }
#hud-buttons .hb-gear { padding: 0; width: 40px; justify-content: center; }
#hud-buttons .hb-gear svg { width: 22px; height: 22px; }
#hud-buttons .hb-radio .hb-lbl { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
#hud-buttons .hb-radio.off { color: #aab3bf; }
body.photo #hud-buttons { display: none; }
#hud-location { pointer-events: auto; margin-left: 8px; font: 12px system-ui, sans-serif; color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; padding: 2px 9px; cursor: pointer; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
#hud-location:hover { background: rgba(255,255,255,0.22); }
/* Location picker */
#loc-picker { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(5,8,12,0.55); backdrop-filter: blur(3px); }
#loc-picker[hidden] { display: none; }
#loc-picker .loc-box { width: min(560px, 94vw); max-height: 88vh; overflow-y: auto; background: #151b24; color: #e9eef5; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 14px 18px 12px; font: 14px system-ui, sans-serif; box-shadow: 0 10px 40px rgba(0,0,0,0.6); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
#loc-picker .loc-head { display: flex; align-items: center; justify-content: space-between; }
#loc-picker h2 { margin: 0; font-size: 18px; }
#loc-picker h3 { margin: 14px 0 6px; font-size: 13px; color: #9fb0c4; text-transform: uppercase; letter-spacing: 0.06em; }
#loc-picker .loc-x { background: none; border: 0; color: #cfd8e3; font-size: 20px; cursor: pointer; padding: 4px 8px; }
#loc-picker .loc-search { display: flex; gap: 8px; margin-top: 12px; }
#loc-picker input[type=search] { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 9px; border: 1px solid #3a4658; background: #0e131a; color: #fff; font-size: 16px; user-select: text; -webkit-user-select: text; }
#loc-picker button { font: inherit; }
#loc-picker .loc-search button, #loc-picker .loc-random button { padding: 9px 14px; border-radius: 9px; border: 1px solid #3f6fb0; background: #23548f; color: #fff; cursor: pointer; }
#loc-picker .loc-random { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
#loc-picker .loc-random button { background: #2a3442; border-color: #47566b; flex: 1; }
#loc-picker .loc-status { min-height: 18px; margin: 8px 0 2px; color: #9fd29a; font-size: 13px; }
#loc-picker .loc-status.err { color: #ff9c8a; }
#loc-picker ul { list-style: none; margin: 0; padding: 0; }
#loc-picker li button { display: block; width: 100%; text-align: left; padding: 8px 10px; margin: 3px 0; border-radius: 8px; border: 1px solid transparent; background: #1d2530; color: #e9eef5; cursor: pointer; }
#loc-picker li button:hover { background: #26344a; border-color: #3f6fb0; }
#loc-picker li button.cur { border-color: #5aa0ff; }
#loc-picker li small { display: block; color: #8d9aab; font-size: 11px; margin-top: 2px; }
#loc-picker .loc-note { color: #7f8b9b; font-size: 11px; margin: 12px 0 0; }
#loc-picker .loc-note a, .credits a { color: #9cc8ff; }
.credits p { margin: 6px 0; font-size: 12px; line-height: 1.45; color: #cfd6df; }
#hud { position: fixed; inset: 0; pointer-events: none; }
.hud-speed { position: absolute; right: 24px; bottom: 58px; text-align: right; text-shadow: 0 2px 6px #000; }
.hud-speed #hud-kmh { font: 700 56px/1 ui-monospace, monospace; }
.hud-speed small { margin-left: 6px; opacity: 0.8; }
.gear { display: inline-block; margin-left: 12px; padding: 2px 10px; border: 2px solid #fff; border-radius: 6px; font: 700 22px/1.2 ui-monospace, monospace; vertical-align: top; }
.hud-chips { position: absolute; right: 24px; bottom: 100px; display: flex; gap: 6px; }
.chip { padding: 3px 8px; border-radius: 4px; font: 700 11px/1.4 ui-monospace, monospace; background: rgba(0,0,0,0.35); color: rgba(255,255,255,0.3); }
.chip.on { background: #ff4d6d; color: #fff; }
.hud-mode { position: absolute; left: 16px; top: 12px; padding: 4px 10px; background: rgba(0,0,0,0.5); border-radius: 4px; font-size: 13px; }
.hud-help { position: absolute; left: 16px; bottom: 34px; padding: 4px 10px; background: rgba(0,0,0,0.45); border-radius: 4px; font-size: 12px; opacity: 0.85; max-width: 60vw; }
.hud-debug { position: absolute; left: 16px; top: 44px; margin: 0; padding: 8px 10px; background: rgba(0,0,0,0.65); border-radius: 4px; font: 12px/1.35 ui-monospace, monospace; }
#banner { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); padding: 8px 14px; background: rgba(20,40,70,0.9); border-radius: 6px; font-size: 14px; max-width: 80vw; }
#banner.error { background: rgba(120,20,30,0.92); }
#debug-inset { position: fixed; right: 16px; top: 16px; border: 1px solid #555; border-radius: 6px; display: none; }
/* Keep Cesium/Google attribution visible (required by Google Map Tiles API terms). */
.cesium-viewer-bottom { z-index: 5; }
#hud-start { pointer-events: auto; margin-left: 8px; background: #222; color: #eee; border: 1px solid #555; border-radius: 4px; font-size: 12px; max-width: 320px; }
.hud-mode .chip { margin-left: 6px; }
.hud-toast { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); padding: 6px 14px; background: rgba(0,0,0,0.7); border-radius: 6px; font-size: 14px; opacity: 0; transition: opacity 0.3s; }
.hud-toast.on { opacity: 1; }

/* --- game HUD --- */
.hud-status { position: absolute; right: 16px; top: 12px; text-align: right; font: 600 14px system-ui, sans-serif; text-shadow: 0 1px 3px #000; }
#hud-cash { font: 800 30px/1.1 ui-monospace, monospace; color: #7dff8a; }
.stars { font-size: 26px; letter-spacing: 2px; }
.star { color: rgba(255,255,255,0.18); }
.star.on { color: #ffd23f; text-shadow: 0 0 8px rgba(255,210,63,0.8); }
.star.dim { color: #8a7420; }
#hud-env, #hud-radio { opacity: 0.9; }
.hud-bars { position: absolute; right: 16px; bottom: 156px; width: 170px; }
.bar { position: relative; height: 12px; background: rgba(0,0,0,0.5); border-radius: 6px; margin-top: 6px; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #4dde6a; transition: width 0.2s; }
.bar.nitro i { background: linear-gradient(90deg, #3d8bff, #9be7ff); }
.bar span { position: absolute; left: 0; top: 0; right: 0; display: block; height: 12px; margin: 0; font: 700 9px/12px system-ui, sans-serif; letter-spacing: 0.5px; padding-left: 6px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.7); }
.hud-mission { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: rgba(0,0,0,0.6); padding: 8px 14px; border-radius: 8px; font: 14px system-ui; text-align: center; min-width: 260px; }
.hud-mission .arrow { display: inline-block; color: #ffd23f; }
.hud-drift { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); font: 800 26px system-ui; color: #ff7be5; text-shadow: 0 0 10px rgba(255,80,220,0.7); opacity: 0; transition: opacity 0.2s; }
.hud-drift.on { opacity: 1; }
.hud-big { position: absolute; left: 0; right: 0; top: 38%; text-align: center; font: 900 64px system-ui; letter-spacing: 4px; text-shadow: 0 4px 16px #000; opacity: 0; transition: opacity 0.4s; }
.hud-big.on { opacity: 1; }
#minimap { position: fixed; left: 16px; bottom: 92px; border-radius: 50%; box-shadow: 0 2px 12px rgba(0,0,0,0.6); pointer-events: none; }
body.photo #hud, body.photo #minimap, body.photo #debug-inset { display: none !important; }
body.photo .cesium-viewer-bottom { display: block !important; }
#photo-hint { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(0,0,0,0.5); padding: 4px 10px; border-radius: 6px; font: 12px system-ui; }
#menu { position: fixed; inset: 0; background: rgba(5,8,14,0.72); display: flex; align-items: center; justify-content: center; z-index: 20; font: 14px system-ui; }
#menu[hidden] { display: none; }
.menu-box { background: #161b24; border: 1px solid #333c4c; border-radius: 12px; padding: 18px 24px; max-height: 90vh; overflow: auto; color: #e8ecf2; }
.menu-cols { display: flex; gap: 32px; }
.menu-box label { display: block; margin: 7px 0; }
.menu-box input[type=range] { vertical-align: middle; width: 160px; }
.menu-box table { border-collapse: collapse; font-size: 13px; }
.menu-box td { padding: 2px 8px 2px 0; vertical-align: top; }
.menu-box kbd { background: #2a3140; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.menu-box button { background: #2f6fe0; color: #fff; border: 0; border-radius: 6px; padding: 6px 14px; cursor: pointer; }
#debug-inset { top: 150px !important; }

/* ---------- mobile / touch ---------- */
html, body { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
#menu, #menu * { touch-action: pan-y; -webkit-user-select: auto; user-select: auto; }
#touch { --t-scale: 1; --t-opacity: 0.55; --u: calc(var(--t-scale) * 1px); position: fixed; inset: 0; z-index: 10; pointer-events: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#touch[hidden] { display: none; }
#touch .t-btn { pointer-events: auto; touch-action: none; position: relative; border: 2px solid rgba(255,255,255,0.55); color: #fff; background: rgba(20,24,32,var(--t-opacity));
  opacity: calc(0.35 + var(--t-opacity)); border-radius: calc(16 * var(--u)); font: 800 calc(14 * var(--u))/1.05 system-ui, sans-serif; letter-spacing: 0.5px; text-shadow: 0 1px 2px #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; -webkit-user-select: none; user-select: none; }
#touch .t-btn[hidden] { display: none; }
#touch .t-btn.on { background: rgba(255,255,255,0.45); border-color: #fff; transform: scale(0.96); }
#touch .t-btn small { font-size: 0.65em; opacity: 0.8; }
/* left: steering */
#touch .t-steer { pointer-events: auto; touch-action: none; position: absolute; left: env(safe-area-inset-left); bottom: env(safe-area-inset-bottom); width: 42vw; height: 62vh; }
#touch .t-joy { position: absolute; width: calc(120 * var(--u)); height: calc(120 * var(--u)); margin: calc(-60 * var(--u)) 0 0 calc(-60 * var(--u)); left: 28%; top: 62%; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45); background: rgba(20,24,32,calc(var(--t-opacity) * 0.6)); opacity: 0.55; }
#touch .t-joy.on { opacity: 1; }
#touch .t-knob { position: absolute; left: 50%; top: 50%; width: calc(54 * var(--u)); height: calc(54 * var(--u)); border-radius: 50%; background: rgba(255,255,255,0.7); transform: translate(-50%, -50%); }
#touch .t-left, #touch .t-right { position: absolute; bottom: calc(18 * var(--u)); width: calc(92 * var(--u)); height: calc(92 * var(--u)); font-size: calc(30 * var(--u)); }
#touch .t-left { left: calc(18 * var(--u)); }
#touch .t-right { left: calc(124 * var(--u)); }
#touch .t-tilt-hint { position: absolute; left: calc(20 * var(--u)); bottom: calc(24 * var(--u)); font: 700 13px system-ui; opacity: 0.6; display: none; }
#touch[data-steer="joystick"] .t-left, #touch[data-steer="joystick"] .t-right, #touch[data-steer="tilt"] .t-left, #touch[data-steer="tilt"] .t-right { display: none; }
#touch[data-steer="buttons"] .t-joy, #touch[data-steer="tilt"] .t-joy { display: none; }
#touch[data-steer="tilt"] .t-tilt-hint { display: block; }
/* right: pedals + actions */
#touch .t-pedals { position: absolute; right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; gap: calc(12 * var(--u)); align-items: flex-end; }
#touch .t-gas { width: calc(86 * var(--u)); height: calc(150 * var(--u)); background: rgba(30,110,50,var(--t-opacity)); }
#touch .t-brake { width: calc(86 * var(--u)); height: calc(108 * var(--u)); background: rgba(130,30,30,var(--t-opacity)); }
#touch .t-actions { position: absolute; right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom) + 162 * var(--u)); display: flex; gap: calc(10 * var(--u)); }
#touch .t-actions .t-btn, #touch .t-context .t-btn { width: calc(70 * var(--u)); height: calc(56 * var(--u)); font-size: calc(12 * var(--u)); }
#touch .t-nitro { background: rgba(40,90,200,var(--t-opacity)); }
#touch .t-context { position: absolute; right: calc(210 * var(--u) + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
#touch .t-enter, #touch .t-boat { background: rgba(200,140,20,var(--t-opacity)); }
#touch .t-siren { background: rgba(40,60,200,var(--t-opacity)); }
/* top: small utility buttons */
#touch .t-top { position: absolute; left: 50%; transform: translateX(-50%); top: calc(6px + env(safe-area-inset-top)); display: flex; gap: 6px; }
#touch .t-sm { width: calc(46 * var(--u)); height: calc(36 * var(--u)); border-radius: 10px; font-size: calc(11 * var(--u)); }
/* HUD rearranged around the controls */
body.touch .hud-help, body.touch .hud-chips { display: none; }
body.touch .hud-mode { font-size: 11px; max-width: 30vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.touch #hud-start { display: none; }
body.touch .hud-mission { top: 50px; font-size: 12px; min-width: 0; padding: 4px 10px; }
body.touch .hud-speed { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(6px + env(safe-area-inset-bottom)); }
body.touch .hud-speed #hud-kmh { font-size: 34px; }
body.touch .hud-speed .gear { font-size: 15px; }
body.touch .hud-bars { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(52px + env(safe-area-inset-bottom)); width: 150px; }
body.touch .hud-status { font-size: 12px; }
body.touch #hud-cash { font-size: 22px; }
body.touch .stars { font-size: 18px; }
body.touch #minimap { left: calc(8px + env(safe-area-inset-left)) !important; bottom: auto !important; top: 58px; width: 96px !important; height: 96px !important; }
body.touch .hud-toast { bottom: auto; top: 92px; }
body.touch #osm-attribution { bottom: auto; top: 156px; left: calc(8px + env(safe-area-inset-left)); width: 96px; font-size: 9px; }
body.touch #hud-buttons { right: calc(50% + 4px); bottom: auto; top: calc(6px + env(safe-area-inset-top)); gap: 6px; }
body.touch #hud-buttons .hb { height: 38px; padding: 0 9px; }
body.touch #hud-buttons .hb-radio .hb-lbl { max-width: 72px; }
body.touch #touch .t-top { left: calc(50% + 4px); transform: none; }
body.touch #hud-location { display: none; }
body.touch .cesium-viewer-bottom { bottom: auto; top: 36px; }
body.photo #touch > :not(.t-top), body.photo #touch .t-top .t-btn:not(.t-photo) { display: none !important; }
body.photo #touch .t-top { display: flex !important; }
/* pause menu: finger friendly */
body.touch #menu { padding-top: calc(50px + env(safe-area-inset-top)); box-sizing: border-box; align-items: flex-start; }
body.touch .menu-box { max-height: calc(100vh - 56px - env(safe-area-inset-top)); max-width: 96vw; padding: 12px 16px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
body.touch .menu-cols { flex-wrap: wrap; gap: 16px; }
body.touch .menu-box label { margin: 10px 0; font-size: 15px; }
body.touch .menu-box select { font-size: 15px; min-height: 36px; }
body.touch .menu-box input[type=range] { width: 190px; height: 32px; }
body.touch .menu-box input[type=checkbox] { transform: scale(1.5); margin-right: 10px; }
body.touch .menu-box button { padding: 12px 20px; font-size: 16px; margin: 4px 4px 4px 0; }
/* rotate prompt */
#rotate-prompt { display: none; position: fixed; inset: 0; z-index: 50; background: #11151c; color: #fff; flex-direction: column; align-items: center; justify-content: center; text-align: center; font: 600 18px system-ui; }
#rotate-prompt .phone { font-size: 64px; animation: rot 1.6s ease-in-out infinite; }
#rotate-prompt button { margin-top: 18px; background: #2a3140; color: #ddd; border: 0; border-radius: 8px; padding: 10px 16px; font-size: 14px; }
@keyframes rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) { body.touch:not(.portrait-ok) #rotate-prompt { display: flex; } }

/* ---- Spray shop paint menu ---- */
.paint-menu { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(5, 6, 12, .45); font-family: system-ui, sans-serif; }
.paint-menu.hidden { display: none; }
.pm-card { width: min(560px, 94vw); max-height: 92vh; overflow-y: auto; background: linear-gradient(160deg, #1d1530, #0f1220); color: #f3eefc; border: 2px solid #ff4fd8; border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 40px #000a; }
.pm-head { display: flex; gap: 12px; align-items: center; }
.pm-logo { width: 44px; height: 44px; border-radius: 50%; background: #ff4fd8; color: #1d1530; font-size: 28px; display: grid; place-items: center; font-weight: 900; }
.pm-title { font-size: 20px; font-weight: 800; }
.pm-sub { opacity: .75; font-size: 13px; }
.pm-heat { margin-top: 8px; padding: 6px 10px; background: #3a1a1a; border-radius: 8px; color: #ffd36b; font-size: 13px; }
.pm-sec { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.pm-sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 6px; }
.pm-sw { height: 34px; border-radius: 8px; border: 2px solid #ffffff30; cursor: pointer; position: relative; padding: 0; }
.pm-sw.on { border-color: #fff; box-shadow: 0 0 0 2px #ff4fd8; }
.pm-custom { display: grid; place-items: center; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); color: #fff; font-weight: 900; text-shadow: 0 0 3px #000; }
.pm-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.pm-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pm-opt { display: flex; justify-content: space-between; gap: 6px; padding: 9px 10px; min-height: 40px; border-radius: 8px; border: 1px solid #ffffff2a; background: #ffffff10; color: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.pm-opt b { color: #7dffb0; }
.pm-opt.on { background: #ff4fd833; border-color: #ff4fd8; }
.pm-opt.poor, .pm-opt:disabled { opacity: .38; cursor: not-allowed; }
.pm-opt.poor b { color: #ff8a8a; }
.pm-num { width: 90px; font-size: 20px; padding: 6px; border-radius: 8px; border: 1px solid #fff4; background: #0008; color: #fff; text-align: center; }
.pm-foot { display: flex; gap: 10px; margin-top: 16px; }
.pm-foot button { flex: 1; min-height: 48px; border-radius: 10px; font-size: 17px; font-weight: 700; border: 0; cursor: pointer; }
.pm-cancel { background: #ffffff1c; color: #fff; }
.pm-buy { background: #ff4fd8; color: #1d1530; }
.pm-buy:disabled { background: #555; color: #999; cursor: not-allowed; }

/* ---- GrubDash phone ---- */
.grub-phone { position: fixed; left: 12px; top: 64px; z-index: 40; font-family: system-ui, sans-serif; color: #222; }
.gp-mini { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 14px; background: none; cursor: pointer; position: relative; box-shadow: 0 3px 10px #0006; }
.gp-mini .gp-logo { width: 46px; height: 46px; display: block; }
.gp-dot { position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: #3fd07a; border: 2px solid #fff; }
.gp-screen { width: 236px; background: #fff; border-radius: 22px; border: 6px solid #15161a; padding: 10px 12px 12px; box-shadow: 0 8px 28px #0008; }
.gp-head { display: flex; align-items: center; gap: 6px; }
.gp-logo { width: 26px; height: 26px; display: inline-block; }
.gp-brand { font-weight: 800; font-size: 17px; color: #ff7a1a; letter-spacing: -.02em; }
.gp-brand b { color: #222; }
.gp-rating { margin-left: auto; font-size: 13px; font-weight: 700; color: #b8860b; }
.gp-x { border: 0; background: #eee; border-radius: 8px; width: 26px; height: 26px; font-size: 18px; line-height: 1; cursor: pointer; }
.gp-toggle { margin: 8px 0 6px; width: 100%; height: 38px; border-radius: 19px; border: 0; background: #e6e6e6; color: #555; font-weight: 700; font-size: 15px; cursor: pointer; position: relative; padding-left: 30px; }
.gp-toggle .gp-knob { position: absolute; left: 5px; top: 5px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0005; transition: left .2s; }
.gp-toggle.on { background: #3fd07a; color: #fff; padding-left: 0; padding-right: 30px; }
.gp-toggle.on .gp-knob { left: calc(100% - 33px); }
.gp-msg { text-align: center; font-size: 14px; color: #555; padding: 10px 0; }
.gp-bad { color: #c62828; font-weight: 600; }
.gp-spin { display: inline-block; width: 14px; height: 14px; border: 3px solid #ff7a1a55; border-top-color: #ff7a1a; border-radius: 50%; animation: gpspin 1s linear infinite; margin-right: 6px; vertical-align: -2px; }
@keyframes gpspin { to { transform: rotate(360deg); } }
.gp-stats { display: flex; justify-content: space-around; text-align: center; font-size: 11px; color: #777; }
.gp-stats b { display: block; font-size: 16px; color: #222; }
.gp-pay { font-size: 28px; font-weight: 800; color: #1b9e55; }
.gp-pay small { font-size: 12px; font-weight: 500; color: #777; }
.gp-tag { display: inline-block; background: #ffe7d4; color: #c4570b; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.gp-row { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 14px; }
.gp-row b { display: block; line-height: 1.2; }
.gp-row small { color: #777; font-size: 12px; }
.gp-ico { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #ff7a1a; color: #fff; display: grid; place-items: center; font-size: 15px; }
.gp-meta { display: flex; gap: 12px; font-size: 13px; color: #555; font-weight: 600; }
.gp-exp { height: 4px; background: #eee; border-radius: 2px; margin: 8px 0; overflow: hidden; }
.gp-exp i { display: block; height: 100%; background: #ff7a1a; }
.gp-btns { display: flex; gap: 8px; }
.gp-btns button { flex: 1; height: 44px; border-radius: 12px; border: 0; font-size: 16px; font-weight: 700; cursor: pointer; }
.gp-decline { background: #eee; color: #444; }
.gp-accept { background: #ff7a1a; color: #fff; }
.gp-steps { display: flex; gap: 6px; font-size: 12px; font-weight: 700; }
.gp-steps span { flex: 1; text-align: center; padding: 4px; border-radius: 8px; background: #eee; color: #999; }
.gp-steps .on { background: #ff7a1a; color: #fff; }
.gp-steps .done { background: #c9f0d8; color: #1b9e55; }
.gp-timer { font-size: 30px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.gp-timer.low { color: #d32f2f; }
.gp-cond { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #555; }
.gp-cond div { flex: 1; height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.gp-cond i { display: block; height: 100%; }
.gp-cond em { font-style: normal; width: 34px; text-align: right; }
.gp-hint { font-size: 12px; color: #999; margin: 6px 0 2px; }
.gp-receipt { text-align: center; font-size: 13px; color: #444; }
.gp-stars { color: #f2b01e; font-size: 22px; }
@media (max-height: 500px) {
  .grub-phone { top: 48px; transform-origin: top left; transform: scale(.82); }
}
