/* ============================================================
   S'DINGO PRELOADER STYLES
   File: styles/index-preloader.css
   "THE NIGHT ROUTE" — time-of-day aware loading experience.
   Loaded ONLY on the homepage, before styles/index.css finishes.
   ============================================================ */

/* ---------- Design tokens (self-contained, does not pollute :root of index.css) ---------- */
.sd-preloader-scope {
  --pl-red: #D40404;
  --pl-red-bright: #FC0404;
  --pl-red-dark: #8C0404;
  --pl-blue: #0561C9;
  --pl-blue-mid: #044CB4;
  --pl-blue-dark: #041C5C;
  --pl-blue-bright: #0F73DB;
  --pl-sky: #66A3E0;
  --pl-gold: #F5B301;
  --pl-green: #1FA04E;
  --pl-white: #ffffff;
  --pl-silver: #C3B6BC;

  --pl-font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pl-font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pl-font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pl-ease: cubic-bezier(.22, 1, .36, 1);
  --pl-ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Theme tokens (overridden per time of day) */
  --pl-sky-top: #02061a;
  --pl-sky-mid: #07163f;
  --pl-sky-low: #0b2a66;
  --pl-sky-glow: rgba(245, 179, 1, .16);
  --pl-star-opacity: 1;
  --pl-orb-bg: radial-gradient(circle at 35% 35%, #ffffff 0%, #dfe8ff 40%, #9db6e8 100%);
  --pl-orb-glow: rgba(160, 190, 255, .55);
  --pl-orb-x: 78%;
  --pl-orb-y: 16%;
  --pl-far-city: #0a1a42;
  --pl-near-city: #06102c;
  --pl-hill: #040a1e;
  --pl-road-top: #1b2132;
  --pl-road-bottom: #0a0d17;
  --pl-cloud-opacity: .18;
  --pl-ink: #ffffff;
  --pl-ink-soft: rgba(255, 255, 255, .66);
  --pl-glass: rgba(255, 255, 255, .06);
  --pl-glass-line: rgba(255, 255, 255, .16);
}

/* ---------- Time-of-day themes ---------- */
html[data-time="dawn"] .sd-preloader-scope {
  --pl-sky-top: #1a1f4e; --pl-sky-mid: #6b3b6e; --pl-sky-low: #f0905a; --pl-sky-glow: rgba(255, 190, 110, .45);
  --pl-star-opacity: .45;
  --pl-orb-bg: radial-gradient(circle at 40% 40%, #fff6d8 0%, #ffd27a 45%, #ff9a4d 100%);
  --pl-orb-glow: rgba(255, 170, 90, .7); --pl-orb-x: 20%; --pl-orb-y: 52%;
  --pl-far-city: #4a2c58; --pl-near-city: #2a1840; --pl-hill: #1a0f2c;
  --pl-road-top: #2b2438; --pl-road-bottom: #120e1c; --pl-cloud-opacity: .32;
}
html[data-time="day"] .sd-preloader-scope {
  --pl-sky-top: #0b5fc9; --pl-sky-mid: #4aa0ec; --pl-sky-low: #bfe0ff; --pl-sky-glow: rgba(255, 255, 255, .5);
  --pl-star-opacity: 0;
  --pl-orb-bg: radial-gradient(circle at 40% 40%, #fffdf0 0%, #ffe680 50%, #ffc533 100%);
  --pl-orb-glow: rgba(255, 220, 110, .85); --pl-orb-x: 74%; --pl-orb-y: 14%;
  --pl-far-city: #6f95c9; --pl-near-city: #3f66a0; --pl-hill: #274a7e;
  --pl-road-top: #3a4152; --pl-road-bottom: #1b1f2b; --pl-cloud-opacity: .75;
}
html[data-time="dusk"] .sd-preloader-scope {
  --pl-sky-top: #0c1445; --pl-sky-mid: #7a2f5c; --pl-sky-low: #ff7a3d; --pl-sky-glow: rgba(255, 120, 60, .5);
  --pl-star-opacity: .6;
  --pl-orb-bg: radial-gradient(circle at 40% 40%, #fff0cf 0%, #ff9a4d 50%, #e0402a 100%);
  --pl-orb-glow: rgba(255, 110, 60, .75); --pl-orb-x: 82%; --pl-orb-y: 56%;
  --pl-far-city: #3b1f50; --pl-near-city: #1e1033; --pl-hill: #12081f;
  --pl-road-top: #292236; --pl-road-bottom: #100b19; --pl-cloud-opacity: .3;
}

/* ---------- Body lock while preloader is active ---------- */
body.sd-pl-lock { overflow: hidden !important; }

/* ---------- Preloader root ---------- */
.pl {
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: hidden;
  isolation: isolate;
  color: var(--pl-ink);
  font-family: var(--pl-font-body);
  background: linear-gradient(180deg, var(--pl-sky-top) 0%, var(--pl-sky-mid) 48%, var(--pl-sky-low) 100%);
  clip-path: circle(150% at 50% 82%);
  -webkit-clip-path: circle(150% at 50% 82%);
  transition: background 1.2s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.pl[hidden] { display: none !important; }

.pl.pl-leaving {
  clip-path: circle(0% at 50% 82%);
  -webkit-clip-path: circle(0% at 50% 82%);
  transition: clip-path 1s cubic-bezier(.72, 0, .18, 1), -webkit-clip-path 1s cubic-bezier(.72, 0, .18, 1);
  pointer-events: none;
}

.pl > * { position: absolute; }

/* ---------- Sky glow + aurora ---------- */
.pl-glow {
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 45% at 50% 100%, var(--pl-sky-glow), transparent 70%),
    radial-gradient(circle 520px at 14% 24%, rgba(212, 4, 4, .20), transparent 70%),
    radial-gradient(circle 620px at 86% 30%, rgba(5, 97, 201, .30), transparent 72%),
    radial-gradient(circle 460px at 52% 64%, rgba(245, 179, 1, .10), transparent 70%);
  filter: blur(26px) saturate(1.2);
  animation: plAurora 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes plAurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.07); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.03); }
}

.pl-ribbons {
  inset: 0 0 40% 0;
  z-index: 1;
  opacity: calc(var(--pl-star-opacity) * .9);
  mix-blend-mode: screen;
  pointer-events: none;
}
.pl-ribbons i {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 34%;
  border-radius: 50%;
  filter: blur(34px);
  opacity: .5;
  transform-origin: center;
}
.pl-ribbons i:nth-child(1) { top: 6%;  background: linear-gradient(90deg, transparent, rgba(5, 97, 201, .55), rgba(102, 163, 224, .35), transparent); animation: plRibbon 16s ease-in-out infinite alternate; }
.pl-ribbons i:nth-child(2) { top: 20%; background: linear-gradient(90deg, transparent, rgba(212, 4, 4, .35), rgba(245, 179, 1, .22), transparent); animation: plRibbon 21s ease-in-out -6s infinite alternate-reverse; }
.pl-ribbons i:nth-child(3) { top: 34%; background: linear-gradient(90deg, transparent, rgba(15, 115, 219, .40), rgba(31, 160, 78, .18), transparent); animation: plRibbon 26s ease-in-out -11s infinite alternate; }
@keyframes plRibbon {
  0%   { transform: translateX(-6%) rotate(-3deg) scaleY(.9); }
  100% { transform: translateX(6%) rotate(3deg) scaleY(1.2); }
}

/* ---------- Stars canvas ---------- */
#plStars {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: var(--pl-star-opacity);
  transition: opacity 1.2s ease;
  pointer-events: none;
}

/* ---------- Orb (sun / moon) ---------- */
.pl-orb {
  z-index: 2;
  left: var(--pl-orb-x);
  top: var(--pl-orb-y);
  width: clamp(54px, 8vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pl-orb-bg);
  box-shadow: 0 0 60px 18px var(--pl-orb-glow), 0 0 160px 60px var(--pl-orb-glow);
  transform: translate(-50%, -50%);
  animation: plOrb 9s ease-in-out infinite alternate;
}
.pl-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle 9% at 32% 38%, rgba(60, 80, 130, .22), transparent 70%),
    radial-gradient(circle 12% at 62% 58%, rgba(60, 80, 130, .18), transparent 70%),
    radial-gradient(circle 7% at 48% 24%, rgba(60, 80, 130, .16), transparent 70%);
}
html[data-time="day"] .pl-orb::after,
html[data-time="dawn"] .pl-orb::after,
html[data-time="dusk"] .pl-orb::after { opacity: 0; }
@keyframes plOrb {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, -52%) scale(1.06); }
}

/* ---------- Clouds ---------- */
.pl-clouds { inset: 0 0 38% 0; z-index: 2; overflow: hidden; pointer-events: none; }
.pl-cloud {
  position: absolute;
  height: 34px;
  border-radius: 100px;
  background: #fff;
  opacity: var(--pl-cloud-opacity);
  filter: blur(14px);
  animation: plCloud linear infinite;
}
@keyframes plCloud {
  from { transform: translateX(-30vw); }
  to   { transform: translateX(130vw); }
}

/* ---------- Parallax skylines & hills ---------- */
.pl-layer {
  left: 0;
  bottom: 0;
  width: 200%;
  display: flex;
  pointer-events: none;
  will-change: transform;
}
.pl-layer > svg { flex: 0 0 50%; width: 50%; height: 100%; display: block; }

.pl-city-far  { z-index: 3; height: 34vh; bottom: 17%; opacity: .92; animation: plScroll 140s linear infinite; }
.pl-city-near { z-index: 4; height: 28vh; bottom: 15%; animation: plScroll 70s linear infinite; }
.pl-hills     { z-index: 4; height: 17vh; bottom: 14%; animation: plScroll 36s linear infinite; }
@keyframes plScroll { to { transform: translateX(-50%); } }

.pl-city-far svg  { fill: var(--pl-far-city); }
.pl-city-near svg { fill: var(--pl-near-city); }
.pl-hills svg     { fill: var(--pl-hill); }
.pl-city-far svg, .pl-city-near svg, .pl-hills svg { transition: fill 1.2s ease; }

.pl-city-far svg .win  { fill: rgba(255, 216, 130, .35); }
.pl-city-near svg .win { fill: rgba(255, 210, 120, .75); }
html[data-time="day"] .pl-city-far svg .win,
html[data-time="day"] .pl-city-near svg .win { fill: rgba(255, 255, 255, .25); }

/* ---------- Road ---------- */
.pl-road {
  left: 0; right: 0; bottom: 0;
  height: 17%;
  min-height: 92px;
  z-index: 5;
  background: linear-gradient(180deg, var(--pl-road-top) 0%, var(--pl-road-bottom) 100%);
  border-top: 3px solid rgba(255, 255, 255, .55);
  box-shadow: 0 -2px 30px rgba(245, 179, 1, .18);
}
.pl-road::before {
  content: "";
  position: absolute; inset: 0;
  opacity: .35;
  background-image:
    radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.2px),
    radial-gradient(rgba(0,0,0,.35) 1px, transparent 1.2px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 4px;
}
.pl-lane {
  position: absolute;
  left: 0; right: 0;
  top: 56%;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--pl-gold) 0 54px, transparent 54px 108px);
  box-shadow: 0 0 14px rgba(245, 179, 1, .55);
  animation: plLane .55s linear infinite;
}
@keyframes plLane { to { background-position: -108px 0; } }
.pl-edge {
  position: absolute; left: 0; right: 0; bottom: 8%;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 22px, transparent 22px 44px);
  opacity: .5;
  animation: plLane .35s linear infinite;
}

/* ---------- Street lamps ---------- */
.pl-lamps {
  left: 0; bottom: 17%;
  z-index: 5;
  width: 200%;
  height: 22vh;
  display: flex;
  pointer-events: none;
  animation: plScroll 5.2s linear infinite;
}
.pl-lamps > div { flex: 0 0 50%; position: relative; height: 100%; }
.pl-lamp {
  position: absolute;
  bottom: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #55607a, #222a3d);
}
.pl-lamp::before {
  content: "";
  position: absolute; top: 0; left: -22px;
  width: 26px; height: 3px; background: #55607a; border-radius: 2px;
}
.pl-lamp::after {
  content: "";
  position: absolute; top: 2px; left: -26px;
  width: 14px; height: 6px; border-radius: 3px;
  background: #fff3c4;
  box-shadow: 0 0 18px 6px rgba(255, 220, 130, .8), 0 40px 80px 10px rgba(255, 220, 130, .12);
}
html[data-time="day"] .pl-lamp::after { box-shadow: none; background: #cdd6ea; }

/* ---------- Speed streaks ---------- */
.pl-streaks { left: 0; right: 0; bottom: 0; height: 17%; z-index: 6; overflow: hidden; pointer-events: none; }
.pl-streak {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7));
  opacity: 0;
  animation: plStreak linear infinite;
}
@keyframes plStreak {
  0%   { transform: translateX(110vw); opacity: 0; }
  10%  { opacity: .85; }
  100% { transform: translateX(-30vw); opacity: 0; }
}

/* ---------- Shuttle ---------- */
.pl-shuttle {
  z-index: 7;
  left: 50%;
  bottom: calc(17% * .46);
  width: clamp(240px, 36vw, 470px);
  aspect-ratio: 520 / 190;
  margin-left: calc(clamp(240px, 36vw, 470px) / -2);
  transform: translateX(0);
  transition: transform 1.1s cubic-bezier(.6, 0, 1, .55);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
}
.pl-shuttle.depart { transform: translateX(130vw); }
.pl-shuttle svg { width: 100%; height: 100%; overflow: visible; display: block; }

.sh-bob { animation: plBob 1.1s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes plBob {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-1.6px) rotate(-.12deg); }
}
.sh-wheel { transform-box: fill-box; transform-origin: center; animation: plSpin .42s linear infinite; }
@keyframes plSpin { to { transform: rotate(360deg); } }
.sh-beam { animation: plBeam 2.8s ease-in-out infinite alternate; mix-blend-mode: screen; }
@keyframes plBeam { from { opacity: .72; } to { opacity: 1; } }
html[data-time="day"] .sh-beam { opacity: .18 !important; animation: none; }

.sh-flash {
  position: absolute; inset: -40% -10% -40% 40%;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.95), transparent 60%);
  opacity: 0; pointer-events: none; mix-blend-mode: screen;
}
.pl-shuttle.depart .sh-flash { animation: plFlash .9s ease-out forwards; }
@keyframes plFlash { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Top brand bar ---------- */
.pl-top {
  z-index: 10;
  top: 0; left: 0; right: 0;
  padding: calc(18px + env(safe-area-inset-top)) clamp(16px, 4vw, 44px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pl-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-brand-logo {
  width: clamp(40px, 5vw, 54px);
  height: clamp(40px, 5vw, 54px);
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  border: 1px solid var(--pl-glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 14px 30px -12px rgba(0,0,0,.6);
  overflow: hidden;
  flex: none;
}
.pl-brand-logo img { width: 78%; height: 78%; object-fit: contain; }
.pl-brand-logo .fb { display: none; font-size: 1.5rem; color: #fff; }
.pl-brand-logo.nologo img { display: none; }
.pl-brand-logo.nologo .fb { display: block; }
.pl-brand-text { font-family: var(--pl-font-display); font-weight: 800; font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: -.02em; line-height: 1; min-width: 0; }
.pl-brand-text small {
  display: block; margin-top: 6px;
  font-family: var(--pl-font-mono); font-weight: 500;
  font-size: clamp(7px, 1vw, 9px); letter-spacing: .3em; color: var(--pl-ink-soft);
}

.pl-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.pl-chip-top {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  font-family: var(--pl-font-mono);
  font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pl-ink);
  background: var(--pl-glass);
  border: 1px solid var(--pl-glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  white-space: nowrap;
}
.pl-live { width: 7px; height: 7px; border-radius: 50%; background: var(--pl-green); position: relative; flex: none; }
.pl-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--pl-green); animation: plPulse 2.2s ease-out infinite; }
@keyframes plPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Boarding pass ---------- */
.pl-pass {
  position: absolute;
  left: clamp(20px, 4vw, 44px);
  top: 50%;
  transform: translateY(-50%) rotate(-2.5deg);
  width: min(300px, 28vw);
  padding: 18px 18px 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 20px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.18);
  z-index: 11;
  pointer-events: none;
  overflow: hidden;
  transition: opacity .6s var(--pl-ease), transform .6s var(--pl-ease);
}
.pl-pass::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pl-red), var(--pl-blue), var(--pl-gold));
}
.pass-head { display: flex; justify-content: space-between; align-items: center; font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.7); }
.pass-badge { padding: 4px 10px; border-radius: 100px; background: rgba(47,211,107,.16); color: #7ff0a8; font-size: .68rem; font-weight: 700; }
.pass-route { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 14px; }
.pass-route small, .pass-grid small { display: block; font-size: .66rem; font-weight: 500; color: rgba(255,255,255,.55); margin-bottom: 3px; }
.pass-route strong { font-family: var(--pl-font-display); font-size: 1.22rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.pass-route svg { width: 26px; height: 26px; flex: none; color: var(--pl-gold); }
.pass-perf { position: relative; border-top: 2px dashed rgba(255,255,255,.22); margin: 0 -18px 14px; }
.pass-perf::before, .pass-perf::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: #071a4a; }
.pass-perf::before { left: -9px; }
.pass-perf::after { right: -9px; }
.pass-grid { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 10px; }
.pass-grid b { font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pass-barcode { position: relative; display: flex; gap: 2px; height: 30px; margin-top: 14px; align-items: stretch; overflow: hidden; opacity: .9; }
.pass-barcode i { display: block; background: #fff; opacity: .85; }
.pass-barcode .scan {
  position: absolute;
  top: 0; bottom: 0;
  width: 26px;
  left: -30px;
  background: linear-gradient(90deg, transparent, rgba(245,179,1,.9), transparent);
  mix-blend-mode: screen;
  animation: plScan 2.4s ease-in-out infinite;
}
@keyframes plScan { 0% { left: -30px; } 60%, 100% { left: 105%; } }

/* ---------- Center HUD ---------- */
.pl-center {
  z-index: 10;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.8vh, 18px);
  padding: clamp(64px, 11vh, 110px) 20px clamp(150px, 27vh, 260px);
  text-align: center;
  pointer-events: none;
  transition: opacity .6s var(--pl-ease);
}
.pl-center > * { pointer-events: auto; }

.pl-greet {
  font-family: var(--pl-font-mono);
  font-size: clamp(9px, 1.3vw, 12px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--pl-ink-soft);
  opacity: 0;
  transform: translateY(8px);
  animation: plRise .9s var(--pl-ease) .15s forwards;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 6px;
  max-width: min(92vw, 520px);
  padding: 0 8px;
  line-height: 1.5;
  text-align: center;
}
.pl-greet b { color: var(--pl-gold); font-weight: 600; white-space: nowrap; }
.pl-greet .greet-sep { color: var(--pl-gold); opacity: .7; font-weight: 700; }
.pl-greet .greet-part { white-space: nowrap; }
@keyframes plRise { to { opacity: 1; transform: translateY(0); } }

/* ---------- Progress ring ---------- */
.pl-ring {
  position: relative;
  width: clamp(190px, 31vh, 300px);
  aspect-ratio: 1;
  opacity: 0; transform: scale(.88);
  animation: plPop 1.1s var(--pl-ease-spring) .05s forwards;
}
@keyframes plPop { to { opacity: 1; transform: scale(1); } }
.pl-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pl-ring-bg {
  position: absolute; inset: 11%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.20), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border: 1px solid var(--pl-glass-line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -20px 40px rgba(4,28,92,.35), 0 30px 70px -20px rgba(0,0,0,.7);
}
.pl-ring-core {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: 2px;
}
.pl-pct {
  font-family: var(--pl-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8.5vh, 4.6rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, #cfe0ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pl-pct small { font-size: .38em; letter-spacing: 0; margin-left: 2px; -webkit-text-fill-color: var(--pl-gold); color: var(--pl-gold); }
.pl-pct-label {
  font-family: var(--pl-font-mono);
  font-size: clamp(8px, 1.1vh, 10px);
  letter-spacing: .3em; text-transform: uppercase; color: var(--pl-ink-soft);
}

.tick { stroke: rgba(255,255,255,.22); stroke-width: 1.6; stroke-linecap: round; transition: stroke .3s, filter .3s; }
.tick.major { stroke: rgba(255,255,255,.38); stroke-width: 2.4; }
.tick.lit { stroke: var(--pl-gold); filter: drop-shadow(0 0 3px rgba(245,179,1,.9)); }
.tick.major.lit { stroke: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,.9)); }
.ring-track { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 6; }
.ring-prog  { fill: none; stroke: url(#plGrad); stroke-width: 6.5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 150px 150px; filter: url(#plGlow); }
.ring-dash  { fill: none; stroke: rgba(102,163,224,.45); stroke-width: 1.2; stroke-dasharray: 2 9; transform-origin: 150px 150px; animation: plRot 36s linear infinite; }
.ring-dash2 { fill: none; stroke: rgba(245,179,1,.35); stroke-width: 1; stroke-dasharray: 18 14; transform-origin: 150px 150px; animation: plRot 24s linear infinite reverse; }
@keyframes plRot { to { transform: rotate(360deg); } }
.ring-dot { fill: #fff; filter: drop-shadow(0 0 7px #fff) drop-shadow(0 0 16px var(--pl-gold)); }

/* ---------- Status pill ---------- */
.pl-status {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  padding: 10px 20px 10px 14px;
  border-radius: 100px;
  background: var(--pl-glass);
  border: 1px solid var(--pl-glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.2);
  max-width: min(92vw, 520px);
}
.pl-status-ico {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--pl-red-bright), var(--pl-red-dark));
  color: #fff; font-size: .9rem;
  box-shadow: 0 6px 14px -4px rgba(212,4,4,.7), inset 0 1px 0 rgba(255,255,255,.4);
}
.pl-status-text {
  font-weight: 600; font-size: clamp(.8rem, 1.5vw, .95rem);
  letter-spacing: .005em;
  transition: opacity .35s ease, transform .35s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-status-text.swap { opacity: 0; transform: translateY(6px); }
.pl-dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.pl-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--pl-gold); animation: plDot 1.2s infinite ease-in-out; }
.pl-dots i:nth-child(2) { animation-delay: .15s; }
.pl-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes plDot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Route tracker ---------- */
.pl-route { width: min(560px, 90vw); padding-top: 4px; }
.pl-route-line { position: relative; height: 34px; }
.pl-route-track {
  position: absolute; left: 8px; right: 8px; top: 15px; height: 4px;
  border-radius: 4px; background: rgba(255,255,255,.14);
}
.pl-route-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pl-red), var(--pl-gold) 55%, var(--pl-blue-bright));
  box-shadow: 0 0 14px rgba(245,179,1,.55);
}
.pl-route-bus {
  position: absolute; top: 0; left: 8px;
  width: 34px; height: 34px; margin-left: -17px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff; color: var(--pl-red);
  font-size: .95rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 0 4px rgba(255,255,255,.18);
}
.pl-route-bus svg { width: 18px; height: 18px; }
.pl-route-node {
  position: absolute; top: 9px;
  width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%;
  background: #0b1530; border: 2px solid rgba(255,255,255,.4);
  transition: all .5s var(--pl-ease-spring);
}
.pl-route-node.on { background: var(--pl-gold); border-color: #fff; box-shadow: 0 0 0 5px rgba(245,179,1,.22), 0 0 14px rgba(245,179,1,.8); }
.pl-route-labels {
  display: flex; justify-content: space-between;
  font-family: var(--pl-font-mono);
  font-size: clamp(8px, 1.1vw, 10px);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--pl-ink-soft);
  padding: 0 0 0 0;
}
.pl-route-labels span { flex: 1; text-align: center; transition: color .4s; }
.pl-route-labels span:first-child { text-align: left; }
.pl-route-labels span:last-child { text-align: right; }
.pl-route-labels span.on { color: #fff; }

/* ---------- Gauges ---------- */
.pl-gauges { display: flex; gap: clamp(8px, 1.6vw, 14px); justify-content: center; flex-wrap: wrap; }
.pl-gauge {
  min-width: clamp(84px, 11vw, 112px);
  padding: 9px 14px 10px;
  border-radius: 16px;
  background: var(--pl-glass);
  border: 1px solid var(--pl-glass-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  position: relative; overflow: hidden;
}
.pl-gauge::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pl-red); }
.pl-gauge:nth-child(2)::before { background: var(--pl-gold); }
.pl-gauge:nth-child(3)::before { background: var(--pl-blue-bright); }
.pl-gauge small { display: block; font-family: var(--pl-font-mono); font-size: 8.5px; letter-spacing: .2em; color: var(--pl-ink-soft); text-transform: uppercase; }
.pl-gauge strong { font-family: var(--pl-font-display); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pl-gauge strong em { font-style: normal; font-size: .6em; color: var(--pl-ink-soft); margin-left: 3px; letter-spacing: 0; font-family: var(--pl-font-mono); font-weight: 500; }

/* ---------- Feature chips ---------- */
.pl-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 640px; }
.pl-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: .7rem; font-weight: 700; letter-spacing: .01em;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.2);
  transition: all .55s var(--pl-ease);
}
.pl-chip i { font-size: .8rem; }
.pl-chip.on {
  color: #fff;
  background: linear-gradient(135deg, rgba(31,160,78,.32), rgba(5,97,201,.28));
  border: 1px solid rgba(158,231,184,.55);
  box-shadow: 0 8px 20px -10px rgba(31,160,78,.7);
  transform: translateY(-2px);
}
.pl-chip.on i { color: #9EE7B8; }

/* ---------- Bottom bar (skip button removed) ---------- */
.pl-bottom {
  z-index: 10;
  left: 0; right: 0; bottom: 0;
  padding: 0 clamp(16px, 4vw, 44px) calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--pl-font-mono);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.pl-tagline { display: inline-flex; gap: 10px; flex-wrap: wrap; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.pl-tagline span::after { content: "·"; margin-left: 10px; color: var(--pl-gold); }
.pl-tagline span:last-child::after { content: none; }

/* ---------- Atmosphere overlays ---------- */
.pl-grain {
  inset: 0; z-index: 12; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pl-vignette {
  inset: 0; z-index: 11; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.pl-scan {
  inset: 0; z-index: 11; pointer-events: none; mix-blend-mode: screen; opacity: .5;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.10) 48%, transparent 60%);
  background-size: 250% 100%;
  animation: plSweep 7s ease-in-out infinite;
}
@keyframes plSweep { 0% { background-position: 130% 0; } 55%, 100% { background-position: -130% 0; } }

.pl-leaving .pl-center,
.pl-leaving .pl-top,
.pl-leaving .pl-bottom,
.pl-leaving .pl-pass { opacity: 0; transition: opacity .45s ease; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .pl-pass { display: none; }
}

@media (max-width: 767px) {
  .pl-meta .pl-chip-top.hide-sm { display: none; }
  .pl-city-far  { height: 26vh; }
  .pl-city-near { height: 22vh; }
  .pl-bottom { justify-content: center; }
  .pl-tagline { justify-content: center; font-size: 8.5px; letter-spacing: .16em; }

  .pl-greet {
    font-size: clamp(8.5px, 2.6vw, 11px);
    letter-spacing: .2em;
    gap: 0 4px;
    max-width: 94vw;
    padding: 0 6px;
    line-height: 1.6;
  }
  .pl-greet b { white-space: normal; }

  .pl-center {
    padding: clamp(56px, 10vh, 96px) 16px clamp(130px, 24vh, 220px);
    gap: clamp(6px, 1.4vh, 14px);
  }
}

@media (max-width: 480px) {
  .pl-greet {
    font-size: 9px;
    letter-spacing: .18em;
    line-height: 1.7;
    max-width: 92vw;
    gap: 2px 4px;
  }
  .pl-greet .greet-sep { display: none; }
  .pl-greet .greet-part { display: block; width: 100%; }

  .pl-center {
    padding: clamp(52px, 9vh, 86px) 14px clamp(120px, 22vh, 200px);
    gap: clamp(5px, 1.2vh, 12px);
  }

  .pl-status {
    padding: 8px 16px 8px 12px;
    min-height: 40px;
  }
  .pl-status-text {
    font-size: clamp(.74rem, 3vw, .86rem);
    white-space: normal;
    text-align: left;
    line-height: 1.35;
  }
  .pl-status-ico { width: 24px; height: 24px; font-size: .78rem; }

  .pl-ring { width: clamp(160px, 42vw, 220px); }

  .pl-route { width: 94vw; }
  .pl-route-labels { font-size: 7.5px; letter-spacing: .1em; }

  .pl-gauges { gap: 6px; }
  .pl-gauge { min-width: 78px; padding: 7px 10px 8px; }
  .pl-gauge small { font-size: 7.5px; }
  .pl-gauge strong { font-size: 1rem; }

  .pl-chips { gap: 6px; max-width: 94vw; }
  .pl-chip { font-size: .65rem; padding: 5px 10px; }
}

@media (max-width: 380px) {
  .pl-brand-text small { display: none; }
  .pl-status-text { white-space: normal; text-align: left; }

  .pl-greet {
    font-size: 8px;
    letter-spacing: .14em;
    line-height: 1.8;
    gap: 2px 3px;
    padding: 0 4px;
  }
  .pl-center {
    padding: clamp(48px, 8vh, 76px) 12px clamp(110px, 20vh, 180px);
    gap: 4px;
  }
  .pl-ring { width: clamp(150px, 44vw, 200px); }
  .pl-status { padding: 7px 12px 7px 10px; }
  .pl-status-text { font-size: .72rem; }
  .pl-gauges { display: none; }
  .pl-chips { display: none; }
}

@media (max-height: 720px) {
  .pl-chips { display: none; }
}
@media (max-height: 600px) {
  .pl-gauges { display: none; }
  .pl-greet {
    font-size: 8px;
    letter-spacing: .16em;
    line-height: 1.5;
  }
}
@media (max-height: 480px) {
  .pl-route { display: none; }
  .pl-ring { width: 150px; }
  .pl-greet { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pl *, .pl *::before, .pl *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .pl-city-far, .pl-city-near, .pl-hills, .pl-lamps, .pl-lane, .pl-edge, .sh-wheel, .sh-bob { animation: none !important; }
  .pl-shuttle { transition-duration: .3s; }
  .pl.pl-leaving { transition-duration: .4s; }
  .pass-barcode .scan { animation: none; }
}