/* Hy Hub. Mobile first: phone = Orbit phone design; 720px+ = cards; 1100px+ = C1 bento grid. */

:root {
  --bg: #F5F5F7;
  --ink: #1D1D1F;
  --grey: #6E6E73;
  --grey-2: #424245;
  --grey-on-dark: #A1A1A6;
  --track: #E8E8ED;
  --blue: #0071E3;
  --blue-2: #5AA0EC;
  --mid: #8E8E93;
  --dash: #C7C7CC;
  /* today's move, flipped to red by .is-down */
  --day-ring: #34C759;
  --day-text: #1E7B34; /* 5.3:1 on white (was #248A3D, 4.4:1) */
  --day-pill: #1E7B34;
  --day-glow: rgba(52, 199, 89, 0.45);

  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-blur: blur(28px) saturate(180%);
  --glass-edge: 1px solid rgba(255, 255, 255, 0.85);
  --glass-shadow: inset 0 1px 0 #FFFFFF, 0 12px 32px rgba(0, 0, 0, 0.06);
  --radius: 24px;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
}

.is-down {
  --day-ring: #FF3B30;
  --day-text: #D70015;
  --day-pill: #D70015;
  --day-glow: rgba(255, 59, 48, 0.40);
}

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

html {
  overflow-x: clip; /* the dial's glow may spill past the screen edge; never scroll sideways */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h2 { margin: 0; font: inherit; color: inherit; }
::selection { background: rgba(0, 113, 227, 0.18); color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 12px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #FFF; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Press feedback: on touch-down, instant */
.press { transition: transform 120ms ease-out; -webkit-tap-highlight-color: transparent; }
.press:active { transform: scale(0.96); }

.glass {
  border-radius: var(--radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-edge);
  box-shadow: var(--glass-shadow);
}

.k {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.04em;
}

/* ---------- Nav (pinned pill; Hy Hub slides left on scroll down) ---------- */

.nav-wrap {
  position: sticky;
  top: max(12px, env(safe-area-inset-top));
  z-index: 20;
  padding: 0 16px;
}

.nav {
  position: relative;
  max-width: 520px;
  margin: 12px auto 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav-side {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 250ms ease, transform 120ms ease-out;
}
.nav-side.is-hidden { opacity: 0; pointer-events: none; }

.nav-name {
  position: absolute;
  left: 50%;
  top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transform: translateX(-50%);
  will-change: transform;
}
.nav-name .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* ---------- Page grid (phone) ---------- */

.page {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 14px 16px calc(32px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.orbit-bg {
  display: none; /* retired: the dial now has its own card on phones too */
  position: absolute;
  left: 0;
  top: -80px;
  width: 100%;
  height: 700px;
  pointer-events: none;
  z-index: -1;
}
.orbit-bg ellipse { fill: none; stroke: rgba(0, 0, 0, 0.12); stroke-dasharray: 3 7; }
.orbit-bg line { stroke: rgba(0, 0, 0, 0.04); }

/* TSLA */
.tsla {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
}
.tsla-main { display: flex; flex-direction: column; gap: 2px; }
.tsla-price { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
.tsla-move { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pill {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--day-pill);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
}
.tsla-today { font-size: 12px; color: var(--grey-2); }

/* Dial */
/* The dial sits in a white glass card at every width (phones included). */
.dial-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 16px 20px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.dial {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  container-type: inline-size;
}
.dial svg { position: relative; display: block; width: 100%; height: 100%; }
.dial-halo {
  position: absolute;
  inset: -15.6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.20) 0%, rgba(0, 113, 227, 0.07) 42%, rgba(0, 113, 227, 0) 68%);
  pointer-events: none;
}
.dial-glint {
  position: absolute;
  width: 25%;
  height: 25%;
  left: 19.7%;
  top: 4.4%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--day-glow) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.dial-disc { stroke: #FFFFFF; }
.ring-track { stroke: var(--track); }
.ring-day { stroke: var(--day-ring); }
.ring-mil { stroke: var(--ink); }
.ring-ret { stroke: var(--blue); }
.dial-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 13px;
  color: var(--grey);
}
.dial-legend b { color: var(--ink); font-weight: 600; }
.lg { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.lg-tsla { background: var(--ink); }
.lg-ret { background: var(--blue); }
.ring-goal { fill: var(--ink); }
.dial-mid {
  position: absolute;
  inset: 21.9%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25cqw;
  text-align: center;
}
.dial-k { font-size: max(11px, 3.45cqw); font-weight: 600; color: var(--grey); letter-spacing: 0.04em; }
.dial-big { font-size: 15.6cqw; font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; }
.dial-sub { font-size: max(13px, 4.1cqw); font-weight: 600; }

/* $77K */
.mil {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 16px;
  border-radius: 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.mil-main { font-size: 15px; font-weight: 700; }
.mil-main span { font-weight: 700; white-space: nowrap; }
.mil-today {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--day-text);
}
.arrow { font-size: 10px; }

/* Followers */
.fol {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 26px;
}
.fol-total { font-size: 64px; font-weight: 700; letter-spacing: -0.05em; line-height: 1.15; }
.bubbles {
  position: relative;
  width: min(370px, 100%);
  aspect-ratio: 370 / 326;
  container-type: inline-size;
}
.bub {
  position: absolute;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3cqw;
  color: #FFFFFF;
  text-align: center;
  line-height: 1.1;
}
.bub b { font-weight: 700; letter-spacing: -0.03em; }
.bub small { font-weight: 600; }
.bub-0 { left: 8.1%;  top: 21.5%; width: 43.2%; background: var(--ink); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22); }
.bub-1 { left: 53.5%; top: 10.4%; width: 27%;   background: var(--blue); box-shadow: 0 12px 26px rgba(0, 113, 227, 0.30); }
.bub-2 { left: 57.3%; top: 45.4%; width: 23.2%; background: var(--blue-2); box-shadow: 0 10px 22px rgba(90, 160, 236, 0.30); }
.bub-3 { left: 35.7%; top: 73%;   width: 20.5%; background: var(--mid); }
.bub-soon { left: 78.4%; top: 75.5%; width: 18.9%; border: 2px dashed var(--dash); color: var(--ink); }
.bub { aspect-ratio: 1; }
.bub-0 b { font-size: 8.65cqw; } .bub-0 small { font-size: max(11px, 3.25cqw); color: var(--grey-on-dark); }
.bub-1 b { font-size: 5.1cqw; }  .bub-1 small { font-size: max(11px, 2.7cqw); color: #FFFFFF; }
/* Light bubbles carry ink text: white on these fills was 2.7:1 and 3.3:1 */
.bub-2, .bub-3 { color: var(--ink); }
.bub-2 b { font-size: 4.3cqw; }  .bub-2 small { font-size: max(11px, 2.7cqw); color: var(--ink); }
.bub-3 b { font-size: max(13px, 3.8cqw); }  .bub-3 small { font-size: max(11px, 2.45cqw); color: var(--ink); }
.bub-soon b { font-size: max(11px, 3cqw); } .bub-soon small { font-size: max(11px, 2.45cqw); color: var(--grey); }
a.bub { transition: transform 120ms ease-out; }
/* Very narrow bubble fields: the two smallest bubbles show just their number
   (the name stays in the link's label and in the views list below). */
@container (max-width: 250px) {
  .bub-2 small, .bub-3 small { display: none; }
}
a.bub:active { transform: scale(0.96); }

/* Views */
.views {
  margin-top: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.views-k { align-self: center; text-align: center; font-size: 13px; font-weight: 600; color: var(--grey); }
.views-total { align-self: center; font-size: 38px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.views-bar { display: flex; flex: none; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; }
.views-bar span:nth-child(1) { background: var(--ink); }
.views-bar span:nth-child(2) { background: var(--blue); }
.views-bar span:nth-child(3) { background: var(--blue-2); }
.views-bar span:nth-child(4) { background: var(--mid); }
.views-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  font-size: 13px;
}
.views-list li { display: flex; justify-content: space-between; gap: 8px; }
.views-list span { color: var(--grey); }

/* CNBC */
.cnbc {
  position: relative;
  margin-top: 6px;
  padding: 18px 40px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.cnbc-text { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cnbc-src { font-size: 12px; font-weight: 500; color: var(--grey-on-dark); }
.cnbc-quote { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.chev { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--grey-on-dark); font-size: 20px; }

/* Tools */
.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.tool {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.tool .ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.tool b { display: block; font-size: 13px; line-height: 1.3; }
.tool small { display: block; font-size: 12px; color: var(--grey); line-height: 1.3; }

/* Kalshi */
.kalshi {
  min-height: 52px;
  border-radius: 999px;
  background: var(--blue);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.foot { padding-top: 8px; font-size: 12px; color: var(--grey); text-align: center; }

/* ---------- 720px+: every block becomes a card ---------- */

@media (min-width: 720px) {
  .nav-name { font-size: 17px; padding: 0 24px; }
  .page {
    max-width: 780px;
    padding: 24px 24px 40px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "tsla mil"
      "dial dial"
      "fol fol"
      "views views"
      "cnbc kal"
      "tools tools"
      "foot foot";
    gap: 16px;
  }
  .orbit-bg { display: none; }

  .tile { margin: 0; }
  .dial-tile, .mil, .fol {
    border-radius: var(--radius);
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-edge);
    box-shadow: var(--glass-shadow);
  }

  .tsla { grid-area: tsla; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 22px 24px; border-radius: var(--radius); }
  .tsla-price { font-size: 48px; letter-spacing: -0.045em; line-height: 1.05; }
  .tsla-move { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
  .pill { min-height: 28px; padding: 0 12px; font-size: 14px; }
  .tsla-today { font-size: 14px; }

  .mil { grid-area: mil; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 22px 24px; }
  .mil-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
  .mil-num { font-size: 44px; letter-spacing: -0.04em; line-height: 1.05; }
  .mil-main span { font-size: 17px; font-weight: 600; }
  .mil-today { font-size: 14px; }
  .arrow { font-size: 11px; }

  .dial-tile { grid-area: dial; align-items: center; justify-content: center; padding: 32px 0 24px; }
  .dial { width: 360px; }

  .fol { grid-area: fol; padding: 24px; }
  .fol-total { font-size: 52px; }

  .views { grid-area: views; margin: 0; justify-content: center; padding: 24px 28px; gap: 12px; }
  .views-total { font-size: 40px; letter-spacing: -0.045em; }
  .views-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; font-size: 14px; }

  .cnbc { grid-area: cnbc; margin: 0; padding: 20px 48px; }
  .cnbc-src { font-size: 13px; }
  .cnbc-quote { font-size: 22px; letter-spacing: -0.03em; line-height: 1.15; }
  .chev { right: 22px; }

  .kalshi { grid-area: kal; min-height: 120px; border-radius: var(--radius); font-size: 18px; }

  .tools { grid-area: tools; gap: 16px; }
  .tool { gap: 12px; padding: 16px; border-radius: 20px; }
  .tool .ic { width: 44px; height: 44px; font-size: 12px; }
  .tool b { font-size: 15px; }

  .foot { grid-area: foot; padding-top: 4px; }
}

/* ---------- 1100px+: C1 bento ---------- */

@media (min-width: 1100px) {
  .page {
    max-width: 1440px;
    padding: 24px 70px 40px;
    /* followers column a bit wider so its bubbles can hold their labels */
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
    grid-template-rows: 200px 200px minmax(190px, auto) auto auto;
    grid-template-areas:
      "tsla dial dial fol"
      "mil  dial dial fol"
      "views views cnbc kal"
      "tools tools tools tools"
      "foot foot foot foot";
  }
  .dial-tile { padding: 12px 16px 14px; gap: 4px; }
  .dial { width: 360px; }
  .fol { padding: 22px; justify-content: center; }
  .fol-total { font-size: 44px; }
  .bubbles { width: 100%; max-width: 300px; }
  /* account name above its number, so names never wrap in the half-width views card */
  .views-list li { flex-direction: column; justify-content: flex-start; gap: 2px; }
  .kalshi { min-height: 0; }
  .tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Loading: hide stale built-in numbers until the first values render ---------- */
.js-loading :is([data-k="price"], [data-k="pct"], [data-k="today"], [data-k="today2"], [data-k="equity"],
  [data-k="toGo"], [data-k="milPct"], [data-k="tslaEquity"], [data-k="retAmount"], .mil-today .arrow) { opacity: 0; }
:is([data-k="price"], [data-k="pct"], [data-k="today"], [data-k="today2"], [data-k="toGo"], .mil-today .arrow) {
  transition: opacity 300ms ease;
}

/* ---------- Motion (only when html.motion: JS on and reduced motion off) ---------- */

:root { --ease-rv: cubic-bezier(0.22, 1, 0.36, 1); }

/* Entrance: cards rise, sharpen and fade in, staggered (JS adds .in and .anim) */
.motion :is(.page > .tile, .tool, .foot):not(.in) {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(6px);
}
.motion .anim {
  transition: opacity 700ms ease, transform 900ms var(--ease-rv), filter 700ms ease;
  transition-delay: var(--d, 0ms);
}
.motion .nav { animation: navIn 800ms var(--ease-rv) backwards; }
.motion .orbit-bg { animation: fadeIn 1400ms ease 200ms backwards; }
@keyframes navIn { from { opacity: 0; transform: translateY(-14px) scale(0.97); } }
@keyframes fadeIn { from { opacity: 0; } }

/* Follower bubbles pop in one by one, with a small overshoot */
.motion .fol:not(.in) .bub { opacity: 0; }
.motion .fol.in .bub {
  animation: bubIn 700ms var(--ease-rv) backwards;
  animation-delay: calc(var(--d, 0ms) + 200ms + var(--i, 0) * 80ms);
}
@keyframes bubIn { from { opacity: 0; transform: scale(0.82); } }

/* Views bar fills from the left */
.motion .views .views-bar {
  transition: clip-path 1200ms var(--ease-rv);
  transition-delay: calc(var(--d, 0ms) + 250ms);
}
.motion .views:not(.in) .views-bar { clip-path: inset(0 100% 0 0 round 999px); }
.motion .views.in .views-bar { clip-path: inset(0 0 0 0 round 999px); }

/* Live market: a small green pulse before "TSLA · LIVE" */
.is-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: #34C759;
  vertical-align: middle;
}
.motion .is-live::before { animation: ping 2s ease-out infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55); }
  80%, 100% { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0); }
}

/* Price tick: the price flashes the day's colour when a new live price lands */
.tick { animation: tick 1100ms ease-out; }
@keyframes tick { 0%, 25% { color: var(--day-text); } }

/* Desktop with a mouse: soft lift, cursor glow on cards, small hover details */
@media (hover: hover) and (pointer: fine) {
  .cnbc, .kalshi, .tool, a.bub, .nav-side {
    transition: transform 300ms var(--ease-rv), box-shadow 300ms var(--ease-rv), background-color 200ms ease, opacity 250ms ease;
  }
  .cnbc:hover, .kalshi:hover, .tool:hover { transform: translateY(-2px); }
  .tool:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 24px rgba(0, 0, 0, 0.08); }
  .cnbc:hover { box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24); }
  .kalshi:hover { box-shadow: 0 14px 30px rgba(0, 113, 227, 0.32); }
  a.bub:hover { transform: scale(1.04); }
  .press:active, a.bub:active { transform: scale(0.96); transition-duration: 120ms; }
  .nav-side:hover { background: rgba(0, 0, 0, 0.04); }

  .tool .ic { transition: background-color 250ms ease, color 250ms ease; }
  .tool:hover .ic { background: var(--ink); color: #FFFFFF; }
  .chev { transition: transform 300ms var(--ease-rv); }
  .cnbc:hover .chev { transform: translate(3px, -50%); }

  .kalshi { position: relative; overflow: hidden; isolation: isolate; }
  .kalshi::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -40%;
    width: 40%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(0);
    pointer-events: none;
  }
  .kalshi:hover::after { transform: translateX(360%); transition: transform 900ms var(--ease-rv); }
}

@media (hover: hover) and (pointer: fine) and (min-width: 720px) {
  .glow { position: relative; isolation: isolate; }
  .glow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 113, 227, 0.07), rgba(0, 113, 227, 0) 60%);
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
  }
  .glow:hover::after { opacity: 1; }
}

/* ---------- Accessibility preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .press, a.bub, .nav-side, .tool .ic, .chev { transition: opacity 150ms ease !important; }
  .press:active, a.bub:active { transform: none !important; opacity: 0.7; }
  .press:hover, a.bub:hover, .cnbc:hover .chev { transform: none !important; }
  .cnbc:hover .chev { transform: translateY(-50%) !important; }
  .kalshi::after { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .nav, .dial-tile, .mil, .fol {
    background: #FFFFFF;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root { --grey: #4A4A4F; --glass-edge: 1px solid rgba(0, 0, 0, 0.25); }
  .nav { border-color: rgba(0, 0, 0, 0.25); }
}

/* ---------- Background: slow orbit rings (drawn by orbits.js) ---------- */
.bg-orbits {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
