/* ═══ moon-movers — the moon engine's discovery board ═══════════════════════════════════════
   Shares the storefront's registry (app/shared/css/tokens.css) rather than declaring a second
   palette — see that file's own header: "shop's palette is what index/ and system/ wear."
   The outcome trio (--outcome-win/moon/fade) already means the same thing everywhere else in
   this app (Win/Moon/Fade on the scoreboard); a magnitude bar reuses the MOON gold, and the
   ≥1000% tier reuses the FADE red for a value that large, not because it might be fake — moon.
   organ's own split gate already resets the run at any detected reverse-split seam, so every hit
   here is a real measured move. ═══════════════════════════════════════════════════════════ */

@import url('/app/shared/css/tokens.css?v=1');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-display, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  margin: 0;
  padding: 0 0 56px;
  min-height: 100vh;
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 32px 20px 0; }

header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 22px;
  margin-bottom: 22px;
}
.eyebrow {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 9px;
}
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 38px);
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--text-primary);
}
.sub {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 66ch;
}
.sub b { color: var(--text-primary); font-weight: 600; }
.updated {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 12px;
}
.updated b { color: var(--accent-cyan-bright); font-weight: 500; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 22px 0 26px;
}
.stat { background: var(--glass-bg); padding: 15px 17px; }
.stat-val {
  font-family: var(--font-mono, monospace);
  font-size: 23px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent-gold);
}
.stat-val.win { color: var(--outcome-win); }
.stat-val.fade { color: var(--outcome-fade); }
.stat-lbl {
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.controls { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; align-items: center; }
.tier-btn {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.tier-btn:hover { border-color: var(--accent-gold); color: var(--text-primary); }
.tier-btn.active { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(212,175,55,0.1); }
.search {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: 7px;
  margin-left: auto;
  width: 150px;
}
.search:focus { outline: none; border-color: var(--accent-cyan); }
.search::placeholder { color: var(--text-dim); }

.note {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 20px;
  padding: 11px 15px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 2px solid var(--outcome-fade);
  border-radius: 0 8px 8px 0;
}
.note b { color: var(--text-primary); }

.tablewrap { overflow-x: auto; border: 1px solid var(--glass-border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-family: var(--font-mono, monospace); font-size: 12.5px; min-width: 640px; }
thead th {
  text-align: left;
  padding: 11px 13px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg-heavy);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
thead th:hover { color: var(--accent-gold); }
thead th.num { text-align: right; }
tbody td { padding: 9px 13px; border-bottom: 1px solid var(--glass-border); font-variant-numeric: tabular-nums; vertical-align: middle; }
tbody tr:hover { background: rgba(255,255,255,0.025); }
tbody tr:last-child td { border-bottom: none; }
td.num { text-align: right; }
.tk { font-weight: 700; color: var(--text-primary); letter-spacing: 0.02em; }
.badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px;
  vertical-align: 1px;
}
.badge.adjusted { background: rgba(212,175,55,0.12); color: var(--accent-gold); border: 1px solid rgba(212,175,55,0.3); }
.pct { font-weight: 600; }
.pct.hi { color: var(--accent-gold); }
.pct.extreme { color: var(--outcome-fade); }
.bar-cell { width: 110px; }
.bar-track { background: rgba(255,255,255,0.06); border-radius: 3px; height: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-gold), var(--outcome-moon)); }
.bar-fill.extreme { background: linear-gradient(90deg, var(--outcome-fade), var(--accent-red-bright)); }
.px { color: var(--text-dim); }
.px b { color: var(--text-primary); font-weight: 500; }

.empty, .loading { text-align: center; padding: 44px; color: var(--text-dim); font-family: var(--font-mono, monospace); font-size: 13px; }

footer {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.7;
}
footer code { font-family: var(--font-mono, monospace); color: var(--accent-cyan-bright); }
footer a { color: var(--accent-cyan-bright); }
