/* ═══════════════════════════════════════════════════════
   ALIGNR — PREMIUM DARK GLASS + AURORA HUD
   Aurora Dark bg · Glassmorphism cards · Neon readings
   All class names preserved from original HTML
═══════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: none; }

/* ── TOKENS ── */
:root {
  /* Aurora background colors */
  --orb-blue:   rgba(56, 100, 240, 0.22);
  --orb-purple: rgba(120, 60, 220, 0.16);
  --orb-teal:   rgba(0, 200, 160, 0.10);
  --bg-base:    #060b1a;

  /* Glass surfaces */
  --glass-bg:     rgba(12, 20, 45, 0.55);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-hover:  rgba(255, 255, 255, 0.13);

  /* Text */
  --tx:   #e2e8f0;
  --td:   rgba(226, 232, 240, 0.50);
  --td2:  rgba(226, 232, 240, 0.28);

  /* Accent */
  --blue:   #3b82f6;
  --blue2:  #60a5fa;
  --blue-g: rgba(59, 130, 246, 0.18);
  --blue-b: rgba(59, 130, 246, 0.38);

  /* Semantic */
  --g:   #22c55e;
  --g2:  #4ade80;
  --g-g: rgba(34, 197, 94, 0.15);
  --g-b: rgba(34, 197, 94, 0.38);

  --w:   #f59e0b;
  --w2:  #fbbf24;
  --w-g: rgba(245, 158, 11, 0.15);
  --w-b: rgba(245, 158, 11, 0.38);

  --r:   #ef4444;
  --r2:  #f87171;
  --r-g: rgba(239, 68, 68, 0.15);
  --r-b: rgba(239, 68, 68, 0.38);

  /* Safe areas */
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
}

/* ── BODY / AURORA BACKGROUND ── */
body {
  height: 100%;
  font-family: -apple-system, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  color: var(--tx);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  background:
    radial-gradient(ellipse 80% 60% at 15%  10%, var(--orb-blue)   0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 88%  80%, var(--orb-purple) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 55%  55%, var(--orb-teal)   0%, transparent 60%),
    var(--bg-base);
  background-attachment: fixed;
}

/* Subtle animated aurora drift */
@keyframes aurora-drift {
  0%   { filter: hue-rotate(0deg) brightness(1.0); }
  100% { filter: hue-rotate(18deg) brightness(1.08); }
}
body { animation: aurora-drift 18s ease-in-out infinite alternate; }

/* ── APP SHELL ── */
#app {
  position: fixed; inset: 0;
  overflow: hidden;
}

/* ── SCREENS ── */
.scr {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: calc(20px + var(--st)) 18px calc(18px + var(--sb));
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), opacity .34s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.scr.out  { transform: translateX(108%); opacity: 0; pointer-events: none; }
.scr.back { transform: translateX(-30%); opacity: 0; pointer-events: none; }

/* ── GLASS CARD MIXIN (utility applied to panels) ── */
.gc {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
}

/* ── DIVIDER ── */
.rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 14px 0;
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 10px;
  letter-spacing: .35em;
  color: var(--td2);
  text-transform: uppercase;
  font-weight: 500;
}
.label {
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--td);
  text-transform: uppercase;
  font-weight: 600;
}

/* ── SCREEN HEADER ── */
.sh {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.sh-t {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--td);
  text-transform: uppercase;
  font-weight: 600;
}

/* ── BACK BUTTON ── */
.back-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  color: var(--td);
  font-family: inherit; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  cursor: pointer; padding: 5px 13px; flex-shrink: 0;
  transition: all .15s;
}
.back-btn:active {
  background: rgba(255,255,255,0.12);
  color: var(--tx);
  transform: scale(0.96);
}

/* ── PRIMARY BUTTON ── */
.btn {
  display: block; width: 100%;
  padding: 15px 20px;
  background: rgba(59,130,246,0.14);
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: 14px;
  color: var(--blue2);
  font-family: inherit; font-size: 13px;
  font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  transition: all .14s;
  box-shadow: 0 4px 24px rgba(59,130,246,0.10);
}
.btn:active {
  background: rgba(59,130,246,0.26);
  border-color: rgba(59,130,246,0.6);
  transform: scale(0.98);
  box-shadow: 0 2px 12px rgba(59,130,246,0.20);
}
.btn:disabled { opacity: .3; pointer-events: none; }

/* Small / secondary button */
.btn.sm {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  color: var(--td);
  box-shadow: none;
}
.btn.sm:active {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
  color: var(--tx);
  transform: scale(0.98);
}

/* ═══════════════════════════════════════════════
   SCREEN: PERMISSION
═══════════════════════════════════════════════ */
#sp .lw {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 0;
}
.logo {
  font-size: 56px; font-weight: 900;
  letter-spacing: -.02em; line-height: 1;
  margin: 10px 0 6px;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-s {
  font-size: 9px; letter-spacing: .45em;
  color: var(--td2); text-transform: uppercase;
  font-weight: 500;
}
.psens {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; margin: 20px 0 22px;
}
.ps {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px 8px; text-align: center;
  transition: border-color .2s;
}
.ps-i {
  font-size: 22px; margin-bottom: 6px;
  display: block; opacity: .55;
}
.ps-l {
  font-size: 8px; color: var(--td2);
  letter-spacing: .14em; font-weight: 600;
}
.pdesc {
  font-size: 14px; color: var(--td);
  line-height: 1.8; margin-bottom: 22px;
}
.errmsg {
  font-size: 12px; color: var(--r2);
  margin-top: 10px; text-align: center; display: none;
  background: var(--r-g);
  border: 1px solid var(--r-b);
  border-radius: 10px; padding: 10px 14px;
}
.fn {
  font-size: 10px; color: var(--td2);
  text-align: center; margin-top: 10px;
  letter-spacing: .12em;
}

/* ═══════════════════════════════════════════════
   SCREEN: CALIBRATE
═══════════════════════════════════════════════ */
.cdesc {
  font-size: 13px; color: var(--td);
  line-height: 1.85; margin-bottom: 16px; flex-shrink: 0;
}
.cdesc strong { color: var(--blue2); }

.barea {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px; min-height: 0;
}

/* Bubble level ring */
.bring {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(59,130,246,0.04);
  border: 1.5px solid rgba(59,130,246,0.25);
  position: relative; flex-shrink: 0;
  box-shadow: 0 0 40px rgba(59,130,246,0.10), inset 0 0 20px rgba(0,0,0,0.3);
}
.bring::before {
  content: '';
  position: absolute; inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(59,130,246,0.20);
}
.bring::after {
  content: '';
  position: absolute; inset: 28px;
  border-radius: 50%;
  border: 1px dashed rgba(59,130,246,0.10);
}
.bch {
  position: absolute; left: 14px; right: 14px; top: 50%;
  height: 1px; background: rgba(59,130,246,0.18);
  transform: translateY(-50%);
}
.bcv {
  position: absolute; top: 14px; bottom: 14px; left: 50%;
  width: 1px; background: rgba(59,130,246,0.18);
  transform: translateX(-50%);
}
.bdot {
  position: absolute; width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #60a5fa, #3b82f6);
  border: 2px solid rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  left: 50%; top: 50%;
  box-shadow: 0 0 12px rgba(59,130,246,0.7), 0 0 24px rgba(59,130,246,0.3);
  transition: left .06s linear, top .06s linear;
}

/* Calibration readout */
.bvals {
  display: grid; grid-template-columns: 1fr 1fr;
  width: 100%; max-width: 240px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px; overflow: hidden;
}
.bv { padding: 14px 16px; text-align: center; }
.bv:first-child { border-right: 1px solid var(--glass-border); }
.bv-l {
  font-size: 9px; color: var(--td2);
  letter-spacing: .22em; font-weight: 600; text-transform: uppercase;
}
.bv-n {
  font-size: 24px; font-weight: 700;
  color: var(--tx); margin-top: 4px;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}

/* Progress bar */
.cprog {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  width: 100%; max-width: 240px; display: none;
  overflow: hidden;
}
.cprog-b {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  width: 0%;
  border-radius: 2px;
  transition: width .06s linear;
}
.calib-ok {
  font-size: 12px; color: var(--g2);
  letter-spacing: .2em; display: none; text-align: center;
  font-weight: 700;
}
.cfn {
  font-size: 10px; color: var(--td2);
  text-align: center; margin-top: 8px; letter-spacing: .1em;
}

/* ═══════════════════════════════════════════════
   SCREEN: MENU
═══════════════════════════════════════════════ */
.mhead { flex-shrink: 0; margin-bottom: 18px; }

.mcards {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; gap: 11px; min-height: 0;
}
.mcard {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px 18px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all .15s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.mcard:active {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.25);
  transform: scale(0.98);
}
.mc-i {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.20);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  color: var(--blue2);
}
.mc-b { flex: 1; }
.mc-t {
  font-size: 14px; font-weight: 700;
  color: var(--tx); margin-bottom: 3px;
  letter-spacing: .02em;
}
.mc-s {
  font-size: 11px; color: var(--td);
  letter-spacing: .04em;
}
.mc-a {
  color: var(--td2); font-size: 20px;
  opacity: .5;
}

/* ═══════════════════════════════════════════════
   SCREEN: CAMBER
═══════════════════════════════════════════════ */

/* Wheel tab selector */
.wtabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 10px; flex-shrink: 0;
}
.wtab {
  padding: 10px 0; text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: .10em; color: var(--td);
  cursor: pointer;
  -webkit-appearance: none;
  transition: all .13s;
}
.wtab:active { transform: scale(0.96); }
.wtab.active {
  background: var(--blue-g);
  border-color: var(--blue-b);
  color: var(--blue2);
  box-shadow: 0 0 16px rgba(59,130,246,0.15);
}
.wtab.done {
  background: var(--g-g);
  border-color: var(--g-b);
  color: var(--g2);
}
.wtab.done.active {
  background: var(--blue-g);
  border-color: var(--blue-b);
  color: var(--blue2);
}

/* SVG Gauge */
.gwrap {
  display: flex; justify-content: center; align-items: center;
  flex-shrink: 0; margin: -4px 0;
}

/* Digital readout */
.readout {
  text-align: center; margin: 2px 0 6px; flex-shrink: 0;
}
.rnum {
  font-size: 64px; font-weight: 900; line-height: 1;
  color: var(--tx); letter-spacing: -.03em;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
  transition: color .2s, text-shadow .2s;
}
.rnum.good {
  color: var(--g2);
  text-shadow: 0 0 20px rgba(74,222,128,.55), 0 0 40px rgba(74,222,128,.20);
}
.rnum.warn {
  color: var(--w2);
  text-shadow: 0 0 20px rgba(251,191,36,.55), 0 0 40px rgba(251,191,36,.20);
}
.rnum.bad {
  color: var(--r2);
  text-shadow: 0 0 20px rgba(248,113,113,.55), 0 0 40px rgba(248,113,113,.20);
}
.runit {
  font-size: 9px; color: var(--td2);
  letter-spacing: .35em; margin-top: 2px;
  font-weight: 600; text-transform: uppercase;
}

/* Stability pips */
.strow {
  display: flex; align-items: center; gap: 5px;
  justify-content: center; margin: 5px 0 8px; flex-shrink: 0;
}
.pip {
  width: 10px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.08);
  transition: background .12s, box-shadow .12s;
}
.pip.on {
  background: var(--g2);
  box-shadow: 0 0 6px rgba(74,222,128,.6);
}
.stxt {
  font-size: 9px; color: var(--td2);
  letter-spacing: .16em; margin-left: 6px;
  font-weight: 600; text-transform: uppercase;
}

/* Status box */
.sbox {
  border-radius: 12px;
  padding: 10px 14px; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--td);
  transition: all .2s;
  margin-bottom: 10px; flex-shrink: 0;
}
.sbox.ok {
  background: var(--g-g);
  border-color: var(--g-b);
  color: var(--g2);
  box-shadow: 0 0 20px rgba(34,197,94,.10);
}
.sbox.warn {
  background: var(--w-g);
  border-color: var(--w-b);
  color: var(--w2);
  box-shadow: 0 0 20px rgba(245,158,11,.10);
}
.sbox.bad {
  background: var(--r-g);
  border-color: var(--r-b);
  color: var(--r2);
  box-shadow: 0 0 20px rgba(239,68,68,.10);
}

/* Hint */
.chint {
  font-size: 11px; color: var(--td2);
  letter-spacing: .04em; text-align: center;
  margin-bottom: 8px; flex-shrink: 0;
}
.chint strong { color: var(--blue2); font-weight: 700; }

/* Saved mini-grid */
.svrow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-top: 10px; flex-shrink: 0;
}
.svc {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 10px 6px; text-align: center;
  transition: all .2s;
}
.svc.cur {
  background: var(--blue-g);
  border-color: var(--blue-b);
  box-shadow: 0 0 12px rgba(59,130,246,.12);
}
.svc.hg {
  background: var(--g-g);
  border-color: var(--g-b);
}
.svc.hw {
  background: var(--w-g);
  border-color: var(--w-b);
}
.svc.hr {
  background: var(--r-g);
  border-color: var(--r-b);
}
.svl {
  font-size: 9px; color: var(--td2);
  letter-spacing: .12em; margin-bottom: 4px;
  font-weight: 700; text-transform: uppercase;
}
.svv {
  font-size: 16px; font-weight: 800; color: var(--tx);
  font-family: 'SF Mono', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}
.svd {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  margin: 4px auto 0;
  transition: background .2s, box-shadow .2s;
}
.svd.g {
  background: var(--g2);
  box-shadow: 0 0 6px rgba(74,222,128,.5);
}
.svd.w {
  background: var(--w2);
  box-shadow: 0 0 6px rgba(251,191,36,.5);
}
.svd.r {
  background: var(--r2);
  box-shadow: 0 0 6px rgba(248,113,113,.5);
}

/* ═══════════════════════════════════════════════
   SCREEN: TOE
═══════════════════════════════════════════════ */
.tdesc {
  font-size: 13px; color: var(--td);
  line-height: 1.85; margin-bottom: 14px; flex-shrink: 0;
}
.tdesc strong { color: var(--blue2); font-weight: 700; }

.tgrid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; flex-shrink: 0;
}
.tcell {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 16px 10px; text-align: center;
  cursor: pointer;
  transition: all .14s;
}
.tcell:active { transform: scale(0.97); }
.tcell.active {
  background: var(--blue-g);
  border-color: var(--blue-b);
  box-shadow: 0 0 20px rgba(59,130,246,.12);
}
.tcell.locked {
  background: var(--g-g);
  border-color: var(--g-b);
  box-shadow: 0 0 20px rgba(34,197,94,.10);
}
.tlbl {
  font-size: 9px; color: var(--td);
  letter-spacing: .22em; margin-bottom: 8px;
  font-weight: 700; text-transform: uppercase;
}
.tval {
  font-size: 28px; font-weight: 800; color: var(--tx);
  font-family: 'SF Mono', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}
.tlocked {
  font-size: 9px; color: var(--g2);
  letter-spacing: .18em; margin-top: 6px;
  display: none; font-weight: 700;
}

/* Live compass display */
.tlive {
  text-align: center; margin: 14px 0 4px; flex-shrink: 0;
}
.tlive-n {
  font-size: 46px; font-weight: 900; color: var(--tx);
  font-family: 'SF Mono', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}
.tlive-u {
  font-size: 9px; color: var(--td2);
  letter-spacing: .28em; margin-top: 2px;
  font-weight: 600; text-transform: uppercase;
}

/* Toe result */
.tres {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 14px 12px; text-align: center;
  display: none; margin: 10px 0; flex-shrink: 0;
}
.tres-l {
  font-size: 9px; color: var(--td);
  letter-spacing: .22em; margin-bottom: 6px;
  font-weight: 700; text-transform: uppercase;
}
.tres-n {
  font-size: 38px; font-weight: 900;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
  color: var(--tx);
}
.tres-i {
  font-size: 10px; color: var(--td);
  letter-spacing: .14em; margin-top: 4px;
  font-weight: 600; text-transform: uppercase;
}

/* Info note */
.toe-info {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  font-size: 11px; color: var(--td2);
  line-height: 1.9; letter-spacing: .03em;
  padding: 12px 14px; margin: 10px 0; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   SCREEN: RESULTS
═══════════════════════════════════════════════ */
.rgrid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rcard {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 16px 14px;
  transition: all .2s;
}
.rcard.good {
  background: var(--g-g);
  border-color: var(--g-b);
  box-shadow: 0 0 20px rgba(34,197,94,.08);
}
.rcard.warn {
  background: var(--w-g);
  border-color: var(--w-b);
  box-shadow: 0 0 20px rgba(245,158,11,.08);
}
.rcard.bad {
  background: var(--r-g);
  border-color: var(--r-b);
  box-shadow: 0 0 20px rgba(239,68,68,.08);
}
.rpos {
  font-size: 9px; letter-spacing: .2em;
  color: var(--td); margin-bottom: 6px;
  font-weight: 700; text-transform: uppercase;
}
.rval {
  font-size: 28px; font-weight: 900;
  color: var(--tx); margin-bottom: 4px;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
}
.rcard.good .rval { color: var(--g2); }
.rcard.warn .rval { color: var(--w2); }
.rcard.bad  .rval { color: var(--r2); }
.rst {
  font-size: 9px; letter-spacing: .14em;
  color: var(--td); font-weight: 600;
  text-transform: uppercase;
}
.rref {
  font-size: 11px; color: var(--td2);
  line-height: 1.9; letter-spacing: .04em;
  margin: 12px 0 10px;
}

/* ═══════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════ */
#toast {
  position: fixed;
  bottom: calc(30px + var(--sb));
  left: 50%;
  transform: translateX(-50%) translateY(22px);
  background: rgba(10, 18, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  color: var(--tx);
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em;
  padding: 11px 22px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .22s, transform .22s;
  pointer-events: none;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════
   GEAR ANIMATION
═══════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
.gear {
  display: inline-block;
  animation: spin 3.5s linear infinite;
  color: var(--blue2);
}

/* ═══════════════════════════════════════════════
   SVG GAUGE OVERRIDES
   Needle and zone colors redefined via filter/glow
═══════════════════════════════════════════════ */

/* Make gauge background transparent */
#gauge { overflow: visible; }
