/* CRYPTO PANDA — wet grit, stamped metal, neon red. Not a trading-template. */
:root {
  --bg: #050506;
  --bg-2: #0a0a0c;
  --metal: #141417;
  --metal-2: #1b1b20;
  --metal-edge: #2c2c33;
  --steel: #9a9aa4;
  --steel-hi: #d4d4dc;
  --ink: #ececf0;
  --mute: #7c7c86;
  --red: #ff1a1a;
  --red-hot: #ff0030;
  --red-dim: #3a0707;
  --green: #00ff7a;
  --green-dim: #062816;
  --line: rgba(255, 255, 255, 0.07);
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-ui: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, monospace;
}

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

html, body { min-height: 100%; background: var(--bg); color: var(--ink); }

html { color-scheme: dark; }

html, body { background-color: var(--bg); }

body {
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  overflow-x: hidden;
  transition: background-color 8s ease;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 42% at 50% -8%, var(--wash-top), transparent 58%),
    radial-gradient(ellipse 55% 34% at 80% 110%, var(--wash-bot), transparent 52%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 48px);
  background-repeat: no-repeat;
}
:root, body {
  --wash-top: rgba(180, 0, 12, 0.22);
  --wash-bot: rgba(40, 0, 0, 0.35);
}

img { display: block; max-width: 100%; }
code { font-family: var(--font-mono); color: var(--steel-hi); }

#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.55;
}

.grit {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>");
}

.red-wash {
  position: fixed;
  inset: auto 0 0 0;
  height: 38vh;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to top, rgba(255, 20, 20, 0.07), transparent 70%);
}

.city {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 28vh;
  min-height: 140px;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}

.frame {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 80px;
}

/* —— MAST —— */
.mast {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 8px 0 6px;
}

.brand {
  display: flex;
  gap: 22px;
  align-items: center;
  min-width: 0;
}

.logo-plate {
  position: relative;
  flex: 0 0 auto;
  width: min(168px, 38vw);
  aspect-ratio: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 22%),
    linear-gradient(180deg, #1a1a1e, #0c0c0e);
  border: 1px solid var(--metal-edge);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.7),
    0 0 40px rgba(255, 20, 20, 0.18),
    var(--shadow);
}

.logo-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.08);
}

.rivet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c8c8d0, #5a5a62 55%, #1a1a1c 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 1px #000;
  z-index: 2;
}
.rivet.tl { top: 6px; left: 6px; }
.rivet.tr { top: 6px; right: 6px; }
.rivet.bl { bottom: 6px; left: 6px; }
.rivet.br { bottom: 6px; right: 6px; }

.brand-copy { min-width: 0; }

.kicker {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 108px);
  line-height: 0.82;
  letter-spacing: 0.04em;
  font-weight: 400;
  background: linear-gradient(180deg, #f2f2f6 0%, #b8b8c0 42%, #5c5c64 50%, #cfcfd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 10px 18px rgba(0,0,0,.6));
  margin-bottom: 12px;
}

.cp-plate {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 22px 4px;
  background: linear-gradient(180deg, #2a2a30, #101014);
  border: 1px solid #3a3a42;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 0 18px rgba(0,0,0,.65),
    0 0 24px rgba(255, 26, 26, 0.35);
}

.cp-glow {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.28em;
  color: var(--red);
  -webkit-text-fill-color: var(--red);
  text-shadow: 0 0 8px var(--red), 0 0 22px var(--red), 0 0 40px rgba(255, 0, 0, 0.7);
}

.desk-meta {
  text-align: right;
  padding: 10px 14px 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 30%),
    var(--metal);
  border: 1px solid var(--metal-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--shadow);
  min-width: 220px;
}

.lamp-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 8px;
}

.lamp {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2a2a2e;
  box-shadow: inset 0 2px 4px #000;
  border: 1px solid #111;
}
.lamp[data-state="live"] {
  background: radial-gradient(circle at 35% 30%, #b6ffd4, var(--green) 45%, #017a3a);
  box-shadow: 0 0 10px var(--green), 0 0 22px rgba(0,255,122,.45), inset 0 1px 0 rgba(255,255,255,.5);
}
.lamp[data-state="down"] {
  background: radial-gradient(circle at 35% 30%, #ffb0b0, var(--red) 45%, #7a0000);
  box-shadow: 0 0 10px var(--red), 0 0 22px rgba(255,26,26,.5), inset 0 1px 0 rgba(255,255,255,.4);
  animation: alarm 0.9s ease-in-out infinite;
}
.lamp[data-state="boot"] {
  background: radial-gradient(circle at 35% 30%, #ffe08a, #c9a227 50%, #4a3808);
  box-shadow: 0 0 8px #c9a227;
}

.lamp-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.clock {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.quotes-asof {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* —— SLASH —— */
.slash-wrap { margin: 18px 0 8px; }
.slash { display: block; width: 100%; height: 56px; filter: drop-shadow(0 0 8px rgba(255,26,26,.65)); }

/* —— BLOCKS —— */
.block { margin-top: 28px; }

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--metal-edge);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.12em;
  color: var(--steel-hi);
  font-weight: 400;
}

.block-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

/* —— MARKET GAUGES —— */
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gauge {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07) 0%, transparent 18%),
    linear-gradient(180deg, #18181c 0%, #101014 100%);
  border: 1px solid var(--metal-edge);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(0,0,0,.65),
    var(--shadow);
}

.gauge::before,
.gauge::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c8c8d0, #5a5a62 55%, #1a1a1c);
  top: 8px;
}
.gauge::before { left: 8px; }
.gauge::after { right: 8px; }

.gauge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gauge-ticker {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.16em;
  color: var(--steel-hi);
}

.gauge-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gauge-px {
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(255,255,255,.08);
}

.gauge-chg {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.up { color: var(--green); text-shadow: 0 0 12px rgba(0,255,122,.45); }
.down { color: var(--red); text-shadow: 0 0 12px rgba(255,26,26,.5); }
.flat { color: var(--steel); }

/* —— BOOK —— */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rail-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid var(--metal-edge);
  background: var(--metal);
}
.rail-title.long {
  color: var(--green);
  text-shadow: 0 0 10px rgba(0,255,122,.4);
  box-shadow: inset 0 0 20px rgba(0,255,122,.06);
}
.rail-title.short {
  color: var(--red);
  text-shadow: 0 0 10px rgba(255,26,26,.55);
  box-shadow: inset 0 0 20px rgba(255,26,26,.08);
}

.stack { display: grid; gap: 10px; }

.pos {
  position: relative;
  padding: 14px 14px 12px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), transparent 22%),
    linear-gradient(180deg, #16161a, #0e0e12);
  border: 1px solid var(--metal-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.4);
  overflow: hidden;
}

.pos::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #333;
}

.pos.working {
  box-shadow:
    inset 0 0 0 1px rgba(0,255,122,.28),
    0 0 22px rgba(0,255,122,.12),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.pos.working::after {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.pos.not-working {
  box-shadow:
    inset 0 0 0 1px rgba(255,26,26,.38),
    0 0 26px rgba(255,26,26,.16),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.pos.not-working::after {
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.pos-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ticker {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 0.08em;
  line-height: 0.9;
}
.ticker.long-side {
  color: var(--green);
  text-shadow: 0 0 10px rgba(0,255,122,.35);
}
.ticker.short-side {
  color: var(--red);
  text-shadow: 0 0 10px rgba(255,26,26,.5);
}
.ticker.pulse-print { animation: print 1.8s ease-in-out infinite; }
.ticker.pulse-alarm { animation: alarm 0.85s ease-in-out infinite; }

.pos-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}

.badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 3px 8px;
  border: 1px solid var(--metal-edge);
  background: #0a0a0c;
}
.badge.long {
  color: var(--green);
  border-color: rgba(0,255,122,.45);
  box-shadow: 0 0 10px rgba(0,255,122,.15);
}
.badge.short {
  color: var(--red);
  border-color: rgba(255,26,26,.55);
  box-shadow: 0 0 10px rgba(255,26,26,.2);
}
.badge.work-yes {
  color: var(--green);
  border-color: rgba(0,255,122,.7);
  background: var(--green-dim);
  box-shadow: 0 0 14px rgba(0,255,122,.25);
  text-shadow: 0 0 8px var(--green);
}
.badge.work-no {
  color: #fff;
  border-color: var(--red);
  background: var(--red-dim);
  box-shadow: 0 0 16px rgba(255,26,26,.35);
  text-shadow: 0 0 8px var(--red);
  animation: alarm 0.95s ease-in-out infinite;
}
.badge.work-na {
  color: var(--steel);
}

.pos-quote {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,.08);
}

.px {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink);
}

.chg {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
}

/* —— STATES —— */
.empty, .skeleton {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--metal-edge);
  background: repeating-linear-gradient(-45deg, #0c0c0e, #0c0c0e 8px, #101014 8px, #101014 16px);
}

.empty-copy, .empty {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--mute);
  text-transform: uppercase;
  text-align: center;
  padding: 22px 12px;
}

.banner {
  margin-top: 12px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(255,26,26,.4);
  background: rgba(40, 0, 0, 0.4);
  box-shadow: inset 0 0 16px rgba(255,0,0,.15);
}

.noscript {
  position: relative;
  z-index: 6;
  margin: 16px auto;
  width: min(1180px, calc(100% - 28px));
  padding: 12px;
  font-family: var(--font-mono);
  color: var(--red);
  border: 1px solid var(--red);
}

.foot {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--metal-edge);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--steel);
}
.foot-mute { color: var(--mute); margin-top: 6px; font-size: 11px; }

@keyframes print {
  0%, 100% { opacity: 1; filter: brightness(1.15); }
  50% { opacity: 0.78; filter: brightness(0.92); }
}
@keyframes alarm {
  0%, 100% { opacity: 1; filter: brightness(1.2); }
  50% { opacity: 0.55; filter: brightness(0.75); }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #050506; }
::-webkit-scrollbar-thumb { background: #2a2a30; border: 1px solid #ff1a1a44; }

@media (max-width: 820px) {
  .mast, .market-grid, .book-grid { grid-template-columns: 1fr; }
  .desk-meta { text-align: left; }
  .lamp-row { justify-content: flex-start; }
  .block-head { flex-direction: column; align-items: flex-start; }
  .block-sub { text-align: left; }
  .logo-plate { width: min(128px, 42vw); }
  h1 { font-size: clamp(44px, 14vw, 72px); }
  .frame { width: min(1180px, calc(100% - 18px)); padding-top: 14px; }
  .gauge-px { font-size: 36px; }
  .ticker { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  #rain { display: none; }
}


/* —— TIME OF DAY SKY (Chicago) —— */
.sky {
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 118%, rgba(255, 30, 30, 0.16), transparent 58%),
    radial-gradient(ellipse 55% 40% at 18% -10%, rgba(40, 0, 8, 0.45), transparent 60%);
  animation: skyDrift 64s ease-in-out infinite;
  will-change: transform;
}
@keyframes skyDrift {
  0%, 100% { transform: scale(1.05) translate3d(-1.6%, 0.4%, 0); }
  50% { transform: scale(1.1) translate3d(1.8%, -0.8%, 0); }
}

.session {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 4px 0 2px;
}

body[data-tod="night"] {
  --bg: #030204;
  --wash-top: rgba(220, 0, 18, 0.34);
  --wash-bot: rgba(70, 0, 10, 0.5);
}
body[data-tod="night"] .sky {
  opacity: 0.85;
  background:
    radial-gradient(ellipse 90% 55% at 50% 120%, rgba(255, 16, 16, 0.32), transparent 55%),
    radial-gradient(ellipse 50% 45% at 80% 0%, rgba(90, 0, 20, 0.5), transparent 55%);
}
body[data-tod="night"] .red-wash {
  background: linear-gradient(to top, rgba(255, 20, 20, 0.2), transparent 72%);
}
body[data-tod="night"] .city { opacity: 0.95; filter: brightness(0.8); }
body[data-tod="night"] .grit { opacity: 0.22; }

body[data-tod="dawn"] {
  --bg: #0b1018;
  --wash-top: rgba(255, 150, 70, 0.28);
  --wash-bot: rgba(70, 40, 10, 0.32);
}
body[data-tod="dawn"] .sky {
  opacity: 0.9;
  background:
    radial-gradient(ellipse 95% 55% at 50% 118%, rgba(255, 140, 60, 0.38), transparent 58%),
    radial-gradient(ellipse 70% 50% at 12% -8%, rgba(80, 140, 220, 0.28), transparent 60%);
}
body[data-tod="dawn"] .red-wash {
  background: linear-gradient(to top, rgba(255, 130, 50, 0.16), transparent 70%);
}
body[data-tod="dawn"] .city { opacity: 0.62; filter: brightness(1.12) saturate(0.8); }
body[data-tod="dawn"] .grit { opacity: 0.12; }

body[data-tod="day"] {
  --bg: #121820;
  --wash-top: rgba(90, 140, 190, 0.22);
  --wash-bot: rgba(20, 40, 55, 0.28);
}
body[data-tod="day"] .sky {
  opacity: 0.75;
  background:
    radial-gradient(ellipse 90% 50% at 50% 122%, rgba(60, 100, 130, 0.28), transparent 58%),
    radial-gradient(ellipse 60% 45% at 78% -8%, rgba(90, 150, 200, 0.22), transparent 60%);
}
body[data-tod="day"] .red-wash {
  background: linear-gradient(to top, rgba(30, 55, 70, 0.12), transparent 70%);
}
body[data-tod="day"] .city { opacity: 0.42; filter: brightness(1.25) contrast(0.9); }
body[data-tod="day"] #rain { opacity: 0.2; }
body[data-tod="day"] .grit { opacity: 0.08; }

body[data-tod="dusk"] {
  --bg: #100804;
  --wash-top: rgba(255, 70, 18, 0.3);
  --wash-bot: rgba(90, 20, 0, 0.42);
}
body[data-tod="dusk"] .sky {
  opacity: 0.9;
  background:
    radial-gradient(ellipse 95% 55% at 50% 116%, rgba(255, 70, 16, 0.36), transparent 56%),
    radial-gradient(ellipse 55% 45% at 10% 0%, rgba(200, 40, 8, 0.32), transparent 58%);
}
body[data-tod="dusk"] .red-wash {
  background: linear-gradient(to top, rgba(255, 50, 10, 0.18), transparent 70%);
}
body[data-tod="dusk"] .city { opacity: 0.9; filter: brightness(0.9) saturate(1.15); }
body[data-tod="dusk"] .grit { opacity: 0.16; }

@media (prefers-reduced-motion: reduce) {
  .sky { animation: none; }
}


/* —— NEO FUTURIST CITY + WEATHER —— */
.neo-horizon {
  position: fixed;
  left: 0; right: 0; bottom: 38vh;
  height: 28vh;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 100%, var(--horizon, rgba(255, 30, 80, 0.28)), transparent 70%);
  filter: blur(8px);
  animation: horizonPulse 8s ease-in-out infinite;
}
@keyframes horizonPulse {
  0%, 100% { opacity: 0.7; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.06); }
}

.neo-grid {
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: -18%;
  height: 62vh;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.15) 42%, transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 56px, var(--grid-neon, rgba(0,255,170,0.11)) 56px 57px),
    repeating-linear-gradient(0deg, transparent 0 56px, var(--grid-neon, rgba(0,255,170,0.11)) 56px 57px);
  transform: perspective(520px) rotateX(66deg);
  transform-origin: bottom center;
  animation: gridScroll 22s linear infinite;
  opacity: 0.85;
}
@keyframes gridScroll {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 0 56px, 0 56px; }
}

.flash {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(180, 210, 255, 0.18);
  opacity: 0;
}

.wxline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel-hi);
  margin: 2px 0 4px;
}

.city { height: 40vh; min-height: 180px; }

body[data-wx="clear"] {
  --grid-neon: rgba(0, 255, 200, 0.16);
  --horizon: rgba(0, 220, 255, 0.22);
}
body[data-wx="clear"] #rain { opacity: 0.12; }
body[data-wx="clear"] .neo-grid { opacity: 1; }
body[data-wx="clear"] .grit { opacity: 0.06; }

body[data-wx="cloud"] {
  --grid-neon: rgba(140, 170, 200, 0.1);
  --horizon: rgba(120, 140, 170, 0.18);
}
body[data-wx="cloud"] .sky { filter: saturate(0.7) brightness(0.9); }
body[data-wx="cloud"] .neo-grid { opacity: 0.55; }

body[data-wx="rain"] {
  --grid-neon: rgba(80, 180, 255, 0.14);
  --horizon: rgba(40, 90, 180, 0.22);
}
body[data-wx="rain"] #rain { opacity: 0.75; }
body[data-wx="rain"] .neo-grid { opacity: 0.5; }

body[data-wx="storm"] {
  --grid-neon: rgba(255, 40, 80, 0.18);
  --horizon: rgba(255, 20, 60, 0.32);
}
body[data-wx="storm"] #rain { opacity: 0.9; }
body[data-wx="storm"] .sky { filter: contrast(1.15) saturate(1.2); }

body[data-wx="fog"] {
  --grid-neon: rgba(200, 210, 220, 0.07);
  --horizon: rgba(180, 190, 200, 0.2);
}
body[data-wx="fog"] .sky {
  background: radial-gradient(ellipse 100% 80% at 50% 60%, rgba(180,190,200,0.28), transparent 70%) !important;
}
body[data-wx="fog"] .neo-grid { opacity: 0.28; filter: blur(1.5px); }
body[data-wx="fog"] .city { opacity: 0.25; filter: blur(2px); }
body[data-wx="fog"] #rain { opacity: 0.2; }

body[data-wx="snow"] {
  --grid-neon: rgba(180, 220, 255, 0.14);
  --horizon: rgba(160, 200, 255, 0.2);
}
body[data-wx="snow"] #rain { opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
  .neo-grid, .neo-horizon { animation: none; }
}

.city-wins { opacity: 0.72; }
.city-wins .win { fill: #00ffc8; }
body[data-wx="clear"] .city-wins .win { fill: #7dffe6; }
body[data-wx="rain"] .city-wins .win { fill: #6ec8ff; }
body[data-wx="storm"] .city-wins .win { fill: #ff3355; }
body[data-wx="snow"] .city-wins .win { fill: #d4ecff; }
body[data-wx="fog"] .city-wins { opacity: 0.18; }
body[data-tod="day"] .city-wins { opacity: 0.22; }


/* —— DISTINCT TOD SHIFT —— */
.orb {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.7;
  transition: top 8s ease, left 8s ease, right 8s ease, bottom 8s ease,
    background 8s ease, opacity 8s ease, width 8s ease, height 8s ease,
    box-shadow 8s ease, transform 8s ease;
}
.sky, .neo-horizon, .neo-grid, .city, .red-wash, .grit, .city-wins {
  transition: opacity 8s ease, filter 8s ease, background 8s ease, background-color 8s ease;
}

body.tod-shift .sky,
body.tod-shift .orb,
body.tod-shift .neo-horizon {
  animation: todKick 1.6s ease;
}
@keyframes todKick {
  0% { filter: brightness(0.55) saturate(0.7); }
  35% { filter: brightness(1.35) saturate(1.25); }
  100% { filter: brightness(1) saturate(1); }
}

body[data-tod="night"] {
  --bg: #020103;
  --wash-top: rgba(255, 8, 28, 0.42);
  --wash-bot: rgba(90, 0, 12, 0.62);
  --horizon: rgba(255, 12, 40, 0.42);
  --grid-neon: rgba(255, 40, 70, 0.1);
}
body[data-tod="night"] .orb {
  top: 8%;
  right: 12%;
  left: auto;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255,210,210,0.85), rgba(180,0,30,0.15) 55%, transparent 70%);
  opacity: 0.45;
  box-shadow: 0 0 40px rgba(255, 30, 60, 0.25);
}
body[data-tod="night"] .sky {
  opacity: 1;
  background:
    radial-gradient(ellipse 100% 60% at 50% 125%, rgba(255, 8, 30, 0.5), transparent 52%),
    radial-gradient(ellipse 55% 50% at 85% -5%, rgba(40, 0, 10, 0.85), transparent 55%),
    linear-gradient(#050206, #120308);
}
body[data-tod="night"] .city { opacity: 1; filter: brightness(0.55) contrast(1.15); }
body[data-tod="night"] .city-wins { opacity: 0.35; }
body[data-tod="night"] .neo-grid { opacity: 0.45; }
body[data-tod="night"] .grit { opacity: 0.28; }
body[data-tod="night"] .session { color: #ff5a6a; }

body[data-tod="dawn"] {
  --bg: #1a2234;
  --wash-top: rgba(255, 170, 70, 0.42);
  --wash-bot: rgba(255, 110, 40, 0.28);
  --horizon: rgba(255, 150, 50, 0.55);
  --grid-neon: rgba(255, 180, 90, 0.16);
}
body[data-tod="dawn"] .orb {
  top: auto;
  bottom: 32%;
  left: 10%;
  right: auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 220, 140, 0.95), rgba(255, 120, 40, 0.35) 45%, transparent 70%);
  opacity: 0.95;
  box-shadow: 0 0 90px rgba(255, 140, 40, 0.45);
}
body[data-tod="dawn"] .sky {
  opacity: 1;
  background:
    radial-gradient(ellipse 110% 65% at 18% 92%, rgba(255, 150, 50, 0.62), transparent 55%),
    radial-gradient(ellipse 80% 50% at 80% 0%, rgba(70, 110, 210, 0.45), transparent 58%),
    linear-gradient(#24304a, #8a4a28);
}
body[data-tod="dawn"] .city { opacity: 0.7; filter: brightness(1.2) saturate(1.1); }
body[data-tod="dawn"] .city-wins { opacity: 0.55; }
body[data-tod="dawn"] .neo-grid { opacity: 0.7; }
body[data-tod="dawn"] .grit { opacity: 0.08; }
body[data-tod="dawn"] .session { color: #ffb060; }

body[data-tod="day"] {
  --bg: #2a3a4c;
  --wash-top: rgba(140, 200, 255, 0.28);
  --wash-bot: rgba(40, 80, 110, 0.22);
  --horizon: rgba(160, 210, 255, 0.32);
  --grid-neon: rgba(180, 230, 255, 0.14);
}
body[data-tod="day"] .orb {
  top: 6%;
  left: 42%;
  right: auto;
  bottom: auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 250, 230, 1), rgba(180, 220, 255, 0.4) 40%, transparent 68%);
  opacity: 0.85;
  box-shadow: 0 0 120px rgba(200, 230, 255, 0.55);
}
body[data-tod="day"] .sky {
  opacity: 1;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(200, 230, 255, 0.55), transparent 58%),
    radial-gradient(ellipse 100% 50% at 50% 120%, rgba(90, 140, 180, 0.35), transparent 55%),
    linear-gradient(#6a849c, #2c3c4c);
}
body[data-tod="day"] .city { opacity: 0.5; filter: brightness(1.55) contrast(0.85) saturate(0.7); }
body[data-tod="day"] .city-wins { opacity: 0.18; }
body[data-tod="day"] .neo-grid { opacity: 0.35; }
body[data-tod="day"] .grit { opacity: 0.04; }
body[data-tod="day"] #rain { opacity: 0.12; }
body[data-tod="day"] .session { color: #b8d8f0; }
body[data-tod="day"] .frame { filter: none; }

body[data-tod="dusk"] {
  --bg: #1c0c06;
  --wash-top: rgba(255, 70, 10, 0.48);
  --wash-bot: rgba(120, 20, 0, 0.5);
  --horizon: rgba(255, 60, 10, 0.55);
  --grid-neon: rgba(255, 90, 30, 0.18);
}
body[data-tod="dusk"] .orb {
  top: auto;
  bottom: 28%;
  left: auto;
  right: 8%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 180, 80, 0.95), rgba(255, 40, 10, 0.4) 48%, transparent 70%);
  opacity: 0.95;
  box-shadow: 0 0 100px rgba(255, 50, 10, 0.5);
}
body[data-tod="dusk"] .sky {
  opacity: 1;
  background:
    radial-gradient(ellipse 110% 70% at 82% 95%, rgba(255, 70, 10, 0.7), transparent 54%),
    radial-gradient(ellipse 60% 45% at 10% 0%, rgba(80, 20, 40, 0.55), transparent 58%),
    linear-gradient(#2a1010, #8a2808);
}
body[data-tod="dusk"] .city { opacity: 0.95; filter: brightness(0.85) saturate(1.3); }
body[data-tod="dusk"] .city-wins { opacity: 0.85; }
body[data-tod="dusk"] .neo-grid { opacity: 0.75; }
body[data-tod="dusk"] .grit { opacity: 0.14; }
body[data-tod="dusk"] .session { color: #ff6a30; }

@media (prefers-reduced-motion: reduce) {
  .orb, .sky, .neo-horizon, .neo-grid, .city { transition: none; }
  body.tod-shift .sky, body.tod-shift .orb, body.tod-shift .neo-horizon { animation: none; }
}
