:root {
  --bg: #070d1a; --panel: #0f1a30; --panel2: #15223d; --line: #24345a;
  --text: #e8eefc; --muted: #8fa1c7; --up: #22c55e; --down: #ef4444; --gold: #fbbf24;
  --candy: #ec4899; --accent: #38bdf8; --radius: 14px;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: radial-gradient(1200px 600px at 50% -200px, #13254a 0%, var(--bg) 60%) fixed; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.muted { color: var(--muted); } .mono { font-family: var(--mono); }
.hidden { display: none !important; }

/* Christmas lights strip */
.lights { display: flex; justify-content: space-between; overflow: hidden; height: 16px; padding: 0 6px; position: relative; }
.lights::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 2px; background: #1c2b4a; }
.lights i { width: 8px; height: 11px; border-radius: 50% 50% 45% 45%; background: var(--c); margin-top: 4px; box-shadow: 0 0 10px var(--c); animation: twinkle 1.6s infinite alternate; animation-delay: var(--d); flex: none; }
@keyframes twinkle { from { opacity: 1; } to { opacity: .35; box-shadow: none; } }

/* Snow */
.snow { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.snow i { position: absolute; top: -20px; color: #fff; font-style: normal; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }

/* Ticker tape */
.tape { background: #000; border-top: 1px solid #1d2a47; border-bottom: 1px solid #1d2a47; overflow: hidden; white-space: nowrap; font-family: var(--mono); font-size: 14px; padding: 7px 0; }
.tt-track { display: inline-block; animation: scroll 40s linear infinite; }
.tt-item b { color: var(--gold); } .tt-item em { font-style: normal; }
.tt-sep { color: #33456e; margin: 0 14px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Generic */
.btn { text-decoration: none; display: inline-block; text-align: center; appearance: none; border: 0; border-radius: 12px; padding: 14px 18px; font-weight: 700; cursor: pointer; background: var(--panel2); color: var(--text); border: 1px solid var(--line); transition: transform .05s, filter .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #2dd36f, #16a34a); border-color: #16a34a; color: #04130a; }
.btn.danger { background: linear-gradient(180deg, #f87171, #dc2626); border-color: #dc2626; color: #fff; }
.btn.gold { background: linear-gradient(180deg, #fcd34d, #f59e0b); border-color: #f59e0b; color: #241500; }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 4px 8px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); text-transform: uppercase; }
.badge.live { background: #b91c1c; border-color: #ef4444; color: #fff; animation: pulse 1.2s infinite; }
.badge.open { background: #15803d; border-color: #22c55e; color: #fff; }
.badge.gold { background: #a16207; border-color: var(--gold); color: #fff; }
@keyframes pulse { 50% { opacity: .65; } }
input.field { width: 100%; padding: 15px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0a1428; font-size: 18px; outline: none; }
input.field:focus { border-color: var(--accent); }
.logo { font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.logo .s1 { color: var(--candy); } .logo .s2 { color: var(--gold); }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 24px; flex: none; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.2); }
.urgent { color: var(--down) !important; animation: pulse .6s infinite; }
.news-item { border-left: 4px solid var(--down); background: var(--panel); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.news-item .kicker { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #fca5a5; text-transform: uppercase; }
.news-item h3 { margin: 4px 0 6px; font-size: 17px; line-height: 1.25; }
.news-item p { margin: 0; color: #c9d5ef; font-size: 15px; line-height: 1.4; }
.chips { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #1c2b4a; color: var(--gold); }
.clue { background: linear-gradient(135deg, #2a1650, #1a1238); border: 1px dashed #a78bfa; border-radius: 12px; padding: 12px 14px; }
.clue .kicker { color: #c4b5fd; font-weight: 800; font-size: 11px; letter-spacing: .1em; }
.clue p { margin: 6px 0 0; font-style: italic; font-size: 16px; }
.jingles { display: flex; gap: 12px; align-items: flex-start; background: #10203d; border: 1px solid #2b4a7e; border-radius: 12px; padding: 12px; }
.jingles .face { font-size: 34px; line-height: 1; }
.jingles .who { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.jingles p { margin: 3px 0 0; font-size: 15px; line-height: 1.4; }
.lb-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #1c2b4a; }
.lb-row.me { background: #13254a; border-radius: 10px; }
.lb-row .rk { font-weight: 900; font-family: var(--mono); color: var(--muted); }
.lb-row.r1 .rk { color: var(--gold); }
.lb-row .val { font-family: var(--mono); font-weight: 800; text-align: right; }
.lb-row .sub { font-size: 12px; font-family: var(--mono); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); padding: 12px 16px; border-radius: 12px; background: #052e16; border: 1px solid var(--up); color: #bbf7d0; font-weight: 700; z-index: 100; max-width: 92vw; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.err { background: #450a0a; border-color: var(--down); color: #fecaca; }
.disclaimer { font-size: 11px; color: #5d6f96; text-align: center; padding: 16px; }
