/* Vega - market diary. Dark "trading terminal" theme.
   Hand-written, no build step. Mono numerals, green/red tape, calm ink. */

:root {
  --bg: #05060c;
  --bg-soft: #0b0f1c;
  --bg-card: #0e1322;
  --line: #1d2740;
  --ink: #e9edf6;
  --ink-soft: #aab6d0;
  --ink-dim: #6f7a99;
  --up: #1bf0a8;
  --down: #ff3b6b;
  --accent: #00e5ff;
  --accent-2: #b14bff;
  --accent-soft: #0c2230;
  --glow-up: 0 0 14px rgba(27, 240, 168, 0.55);
  --glow-down: 0 0 14px rgba(255, 59, 107, 0.55);
  --glow-accent: 0 0 16px rgba(0, 229, 255, 0.5);
  --radius: 14px;
  --wrap: 1080px;
  --wrap-narrow: 720px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding: 48px 0; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--accent); color: #001; padding: 8px 12px; border-radius: 8px; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,14,20,0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--up), var(--accent)); color: #04121f; font-weight: 800; font-family: var(--font-mono); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__sub { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; margin-top: 3px; }
.site-nav { display: flex; gap: 2px; flex-wrap: nowrap; flex: none; align-items: center; }
.site-nav__link { color: var(--ink-soft); padding: 7px 10px; border-radius: 8px; font-size: 14.5px; white-space: nowrap; }
.site-nav__link:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.site-nav__link.is-active { color: var(--ink); background: var(--accent-soft); }

/* --- Hero --- */
.hero { border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 380px at 80% -10%, rgba(48,163,108,0.12), transparent 60%),
  radial-gradient(700px 320px at 0% 0%, rgba(78,161,255,0.10), transparent 55%); }
.hero__inner { padding: 64px 22px 56px; max-width: 860px; }
.hero__eyebrow { display: inline-block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--up); font-weight: 700; margin-bottom: 16px; }
.hero__title { font-size: clamp(28px, 4.6vw, 46px); margin: 0 0 14px; }
.hero__lede { color: var(--ink-soft); font-size: 18px; max-width: 60ch; margin: 0 0 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; background: var(--bg-soft); }
.btn:hover { text-decoration: none; border-color: var(--ink-dim); }
.btn--primary { background: linear-gradient(135deg, var(--up), var(--accent)); color: #04121f; border: none; }

/* --- Section heads --- */
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 12px; }
.section__head h2 { font-size: 22px; margin: 0; }
.section__more { font-size: 14px; color: var(--ink-soft); }

/* --- Cards --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--ink-dim); transform: translateY(-2px); }
.card__link { display: block; padding: 18px; color: var(--ink); }
.card__link:hover { text-decoration: none; }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card__date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.card__title { font-size: 18px; margin: 0 0 10px; }
.card__excerpt { color: var(--ink-soft); font-size: 14.5px; margin: 10px 0 0; }
.card__tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

/* --- Tags & session pills --- */
.tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; }
.tag--session { font-weight: 700; }
.tag--open { color: #04121f; background: var(--up); border-color: transparent; }
.tag--close { color: #fff; background: #6b46c6; border-color: transparent; }
.tag--adhoc { color: #04121f; background: var(--accent); border-color: transparent; }

/* --- Mood badge --- */
.mood { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.mood__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mood-color); box-shadow: 0 0 10px var(--mood-color); }
.mood__label { font-weight: 600; color: var(--ink); }
.mood__meter { width: 60px; height: 5px; border-radius: 3px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.mood__fill { display: block; height: 100%; background: var(--mood-color); }

/* --- Watchlist --- */
.watchlist__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.watchlist h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); margin: 0 0 12px; }
.chip-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-size: 13px; padding: 5px 10px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--line); color: var(--ink-soft); }
.watchlist__note { color: var(--ink-dim); font-size: 13px; margin-top: 18px; }

/* --- Post --- */
.post { padding-top: 40px; padding-bottom: 64px; }
.post__head { margin-bottom: 22px; }
.post__meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-dim); margin-bottom: 14px; }
.post__title { font-size: clamp(28px, 4.4vw, 40px); margin: 0 0 16px; font-family: var(--font-serif); }
.post__mood { margin-bottom: 4px; }

/* Market tape strip */
.tape { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 8px 0 30px; }
.tape__cell { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--bg-card); }
.tape__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dim); }
.tape__value { font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.tape__chg { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.tape__cell--up .tape__value, .tape__cell--up .tape__chg { color: var(--up); }
.tape__cell--down .tape__value, .tape__cell--down .tape__chg { color: var(--down); }

/* Prediction card */
.prediction { margin: 36px 0 8px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-soft); border-left: 4px solid var(--ink-dim); }
.prediction--bullish { border-left-color: var(--up); }
.prediction--bearish { border-left-color: var(--down); }
.prediction--neutral { border-left-color: var(--accent); }
.prediction__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.prediction__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; color: var(--ink); }
.prediction__conf { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.prediction__claim { font-size: 18px; margin: 0 0 14px; line-height: 1.5; }
.prediction__foot { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.prediction__foot strong { color: var(--ink); text-transform: capitalize; }

/* Disclaimer note */
.disclaimer { margin: 26px 0; padding: 14px 16px; border-radius: 10px; font-size: 13.5px; color: var(--ink-soft);
  background: rgba(229,72,77,0.06); border: 1px solid rgba(229,72,77,0.25); }
.disclaimer strong { color: var(--down); }

.post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.post__nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.post__nav-link { font-size: 14px; color: var(--ink-soft); max-width: 46%; }
.post__nav-link--next { text-align: right; margin-left: auto; }

/* --- Prose --- */
.prose { font-size: 17.5px; line-height: 1.75; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose h2 { font-size: 24px; margin: 34px 0 12px; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: #fff; }
.prose blockquote { margin: 22px 0; padding: 6px 18px; border-left: 3px solid var(--accent); color: var(--ink-soft); font-style: italic; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

/* --- Page head & lists --- */
.page-head { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-head__title { font-size: clamp(26px, 4vw, 38px); margin: 0; }
.page-head__subtitle { color: var(--ink-soft); margin: 10px 0 0; }
.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-list__item { border-bottom: 1px solid var(--line); }
.entry-list__item a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; color: var(--ink); flex-wrap: wrap; }
.entry-list__item a:hover { text-decoration: none; background: var(--bg-soft); }
.entry-list__item time { font-family: var(--font-mono); font-size: 13px; color: var(--ink-dim); min-width: 92px; }
.entry-list__title { font-weight: 600; flex: 1; min-width: 200px; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 36px 0; margin-top: 40px; }
.site-footer__top { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer__nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer__nav a { color: var(--ink-soft); font-size: 14px; }
.site-footer__disclaimer { font-size: 12.5px; color: var(--ink-dim); margin: 18px 0 8px; line-height: 1.6; max-width: 78ch; }
.site-footer__disclaimer strong { color: var(--down); }
.site-footer__meta { font-size: 12px; color: var(--ink-dim); margin: 0; }

/* --- Ask Vega --- */
.ask, .subscribe { margin: 40px 0 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.ask__head h2, .subscribe__head h2 { margin: 0 0 6px; font-size: 22px; }
.ask__note, .subscribe__note { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 16px; }
.ask__form textarea { width: 100%; min-height: 92px; resize: vertical; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px; }
.ask__form textarea:focus, .subscribe__form input:focus { outline: none; border-color: var(--accent); }
.ask__row, .subscribe__row { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.ask__status, .subscribe__status { font-size: 13.5px; color: var(--ink-soft); }
.cf-turnstile { margin-top: 12px; }
.ask__answers { margin-bottom: 20px; }
.ask__answers-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); margin: 0 0 12px; }
.qa { border-left: 2px solid var(--line); padding: 4px 0 4px 14px; margin-bottom: 16px; }
.qa__q { color: var(--ink-soft); font-style: italic; margin: 0 0 6px; }
.qa__a { margin: 0; }

/* --- Subscribe --- */
.subscribe__form input { width: 100%; max-width: 360px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px; }
.subscribe__fine { font-size: 12px; color: var(--ink-dim); margin: 14px 0 0; }

/* --- Post cover image --- */
.post__cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.post__cover img { width: 100%; display: block; aspect-ratio: 1200 / 630; object-fit: cover; }

/* --- Card thumbnails --- */
.card__link { padding: 0; }
.card__thumb { aspect-ratio: 1200 / 630; overflow: hidden; border-bottom: 1px solid var(--line); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.card:hover .card__thumb img { transform: scale(1.03); }
.card__body { padding: 18px; }

/* --- Tape sparklines --- */
.tape__spark { margin-top: 8px; height: 30px; }
.spark { width: 100%; height: 30px; display: block; }

/* --- Animated gradient hero --- */
.hero { background-size: 180% 180%, 180% 180%; animation: heroShift 20s ease-in-out infinite; }
@keyframes heroShift {
  0%, 100% { background-position: 0% 0%, 100% 0%; }
  50% { background-position: 100% 60%, 0% 100%; }
}
@media (prefers-reduced-motion: reduce) { .hero { animation: none; } }

/* --- Nav CTA (Support) --- */
.site-nav__link--cta { background: linear-gradient(135deg, var(--up), var(--accent)); color: #04121f; font-weight: 700; }
.site-nav__link--cta:hover { background: linear-gradient(135deg, var(--up), var(--accent)); filter: brightness(1.08); color: #04121f; }

/* --- Support page --- */
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--up); font-weight: 700; margin-bottom: 10px; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 28px 0; }
.support-card { background: var(--bg-card); border: 1px solid var(--line); border-top: 3px solid var(--chain, var(--accent)); border-radius: var(--radius); padding: 18px; }
.support-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.support-card__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chain); box-shadow: 0 0 10px var(--chain); }
.support-card__name { font-weight: 700; }
.support-card__sym { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); margin-left: auto; }
.support-card__addr { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); word-break: break-all;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 12px; }
.support-card__copy { width: 100%; justify-content: center; font-size: 14px; padding: 9px; }
.support-soon { margin: 28px 0; padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); background: var(--bg-soft); }
.support-links { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }

/* --- Comments --- */
.comments { margin: 40px 0 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.comments__head h2 { margin: 0 0 6px; font-size: 22px; }
.comments__note { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }
.comments__list { list-style: none; padding: 0; margin: 0 0 22px; }
.comments__empty { color: var(--ink-dim); font-size: 14.5px; padding: 8px 0; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment__meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comment__name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.comment__date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.comment__body { margin: 0; color: var(--ink); font-size: 15.5px; white-space: pre-wrap; word-wrap: break-word; }
.comments__form input[type="text"] { width: 100%; max-width: 280px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; margin-bottom: 10px; }
.comments__form textarea { width: 100%; min-height: 84px; resize: vertical; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px; }
.comments__form input:focus, .comments__form textarea:focus { outline: none; border-color: var(--accent); }
.comments__row { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.comments__status { font-size: 13.5px; color: var(--ink-soft); }

/* --- Responsive --- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .watchlist__cols { grid-template-columns: 1fr; }
  .site-footer__top { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   NEON / CYBERPUNK ENHANCEMENTS
   ========================================================================= */

/* Animated grid backdrop */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 35%, transparent 80%);
  animation: gridDrift 24s linear infinite;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 40vh at 85% -5%, rgba(177,75,255,0.10), transparent 70%),
    radial-gradient(55vw 38vh at 0% 8%, rgba(0,229,255,0.10), transparent 70%);
}
@keyframes gridDrift { to { background-position: 44px 44px, 44px 44px; } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* Neon accents */
.brand__mark { box-shadow: var(--glow-accent); }
.btn--primary { box-shadow: 0 0 18px rgba(0,229,255,0.35); }
.btn--primary:hover { filter: brightness(1.1); box-shadow: 0 0 26px rgba(0,229,255,0.55); }
.site-header { background: rgba(5,6,12,0.78); border-bottom-color: rgba(0,229,255,0.18); }
.tag--open { box-shadow: var(--glow-up); }
.tag--close { background: var(--accent-2); box-shadow: 0 0 14px rgba(177,75,255,0.5); }
.mood__dot { box-shadow: 0 0 12px var(--mood-color); }

/* Card + tape hover glow */
.card { transition: border-color .18s, transform .18s, box-shadow .18s; }
.card:hover { border-color: rgba(0,229,255,0.45); box-shadow: 0 0 0 1px rgba(0,229,255,0.25), 0 10px 40px rgba(0,229,255,0.10); }
.tape__cell { transition: box-shadow .2s, transform .2s; }
.tape__cell--up:hover { box-shadow: inset 0 0 0 1px rgba(27,240,168,0.5), var(--glow-up); }
.tape__cell--down:hover { box-shadow: inset 0 0 0 1px rgba(255,59,107,0.5), var(--glow-down); }
.tape__cell--up .tape__value { text-shadow: var(--glow-up); }
.tape__cell--down .tape__value { text-shadow: var(--glow-down); }

/* Animated gradient hero title */
.hero__title {
  background: linear-gradient(100deg, var(--ink) 10%, var(--accent) 40%, var(--accent-2) 60%, var(--ink) 90%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: titleSweep 8s linear infinite;
}
@keyframes titleSweep { to { background-position: 220% center; } }
@media (prefers-reduced-motion: reduce) { .hero__title { animation: none; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Live ticker bar */
.ticker { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--bg-soft), #0a1424);
  border-bottom: 1px solid rgba(0,229,255,0.22); height: 36px; display: flex; align-items: center; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-soft), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg-soft), transparent); }
/* Track is positioned by JS (requestAnimationFrame) so it scrolls reliably,
   independent of CSS animation / reduce-motion settings. */
.ticker__track { display: inline-flex; gap: 30px; white-space: nowrap; padding-left: 30px; will-change: transform; }
.tk { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); letter-spacing: 0.02em; }
.tk b { color: var(--ink); font-weight: 700; margin-right: 6px; }
.tk i { font-style: normal; margin-left: 4px; }
.tk--up i { color: var(--up); text-shadow: var(--glow-up); }
.tk--down i { color: var(--down); text-shadow: var(--glow-down); }
/* "Next bell" pill, pinned to the right of the ticker (above the fade) */
.ticker__bell { position: absolute; right: 0; top: 0; bottom: 0; z-index: 3; display: flex; align-items: center;
  gap: 6px; padding: 0 16px 0 32px; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--accent); white-space: nowrap;
  background: linear-gradient(270deg, var(--bg-soft) calc(100% - 26px), transparent); }
.ticker__bell svg { filter: drop-shadow(0 0 4px var(--accent)); }
.ticker__bell:hover { color: #fff; }
@media (max-width: 760px) { .ticker__bell { font-size: 11px; padding: 0 10px 0 20px; } }

/* Header search */
.site-search { position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 200px;
  min-width: 0; max-width: 300px; margin: 0 14px; padding: 7px 12px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.site-search.is-open, .site-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,229,255,0.12); }
.site-search__icon { color: var(--ink-dim); flex: none; }
.site-search__input { flex: 1 1 auto; min-width: 0; background: none; border: none; outline: none;
  color: var(--ink); font-size: 14px; font-family: inherit; }
.site-search__input::placeholder { color: var(--ink-dim); }
.site-search__kbd { flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--bg-soft); }
.site-search:focus-within .site-search__kbd { display: none; }
.site-search__results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  max-height: 72vh; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,0.5); padding: 6px; }
.sr { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.sr:hover, .sr.is-active { background: var(--accent-soft); }
.sr__title { display: block; font-weight: 600; font-size: 14px; }
.sr__meta { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: .04em; margin: 2px 0 3px; }
.sr__excerpt { display: block; font-size: 12.5px; color: var(--ink-soft); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.site-search__empty { padding: 14px 12px; color: var(--ink-dim); font-size: 13px; }
/* Below 900px the single row gets tight, so stack: brand, search (full width),
   then a horizontally scrollable nav. */
@media (max-width: 900px) {
  .site-header__inner { flex-direction: column; align-items: stretch; height: auto; gap: 10px; padding: 10px 0; }
  .brand { align-self: flex-start; }
  .site-search { width: 100%; max-width: none; flex: none; margin: 0; }
  .site-search__kbd { display: none; }
  #site-search .site-search__results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); }
  .site-nav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px; }
  .site-nav::-webkit-scrollbar { display: none; }
}

/* Reading time + share bar */
.post__readtime { position: relative; padding-left: 13px; }
.post__readtime::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: var(--ink-dim); }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 30px 0 6px;
  padding-top: 22px; border-top: 1px solid var(--line); }
.share__label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-dim); }
.share__btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 13px;
  font-weight: 600; color: var(--ink-soft); background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 9px; cursor: pointer; font-family: inherit; transition: border-color .15s, color .15s, background .15s; }
.share__btn:hover { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.share__btn svg { flex: none; }

/* Reading progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; background: transparent; pointer-events: none; }
.progress > span { display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); transition: width .1s linear; }

/* Hero sparkline */
.hero__spark { margin-top: 22px; max-width: 420px; }
.hero__spark-label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); margin-bottom: 4px; display: block; }
.hero__spark svg { width: 100%; height: 56px; display: block; }

/* Predictions dashboard */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin: 26px 0 34px; }
.dash__gauge { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--glow-accent); }
.gauge { width: 150px; height: 150px; margin: 0 auto; }
.gauge__num { font-family: var(--font-mono); font-size: 30px; font-weight: 700; fill: var(--ink); }
.gauge__cap { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-dim); margin-top: 8px; }
.dash__chart { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.dash__chart h3, .dash__gauge h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); }
.dash__chart svg { width: 100%; height: 150px; display: block; }
.pcard { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line);
  border-left-width: 3px; border-radius: 10px; background: var(--bg-card); margin-bottom: 10px; }
.pcard--hit { border-left-color: var(--up); }
.pcard--miss { border-left-color: var(--down); }
.pcard--pending { border-left-color: var(--ink-dim); }
.pcard__date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.pcard__claim { font-size: 15px; color: var(--ink); }
.pcard__verdict { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; }
.pcard__verdict--hit { color: #04121f; background: var(--up); box-shadow: var(--glow-up); }
.pcard__verdict--miss { color: #fff; background: var(--down); box-shadow: var(--glow-down); }
.pcard__verdict--pending { color: var(--ink-soft); border: 1px solid var(--line); }

@media (max-width: 640px) {
  .dash { grid-template-columns: 1fr; }
  .pcard { grid-template-columns: 1fr auto; }
  .pcard__date { grid-column: 1 / -1; }
}

/* Two-chart hero + small button */
.hero__charts { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
.hero__charts .hero__spark { margin-top: 0; flex: 1 1 280px; max-width: 400px; }
.btn--sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* Brand logo */
.brand__logo { width: 34px; height: 34px; border-radius: 9px; display: block; box-shadow: var(--glow-accent); }

/* ============================ MOBILE POLISH ============================ */
html, body { overflow-x: hidden; }
img, svg { max-width: 100%; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 36px 0; }
  .hero__inner { padding: 40px 16px 36px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero__charts { gap: 16px; }
  .hero__charts .hero__spark { max-width: 100%; }
  .post { padding-top: 28px; }
  .post__meta { flex-wrap: wrap; gap: 8px; }
  .tape { grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); }
  .prediction__foot { gap: 12px; }
  .post__nav { flex-direction: column; gap: 10px; }
  .post__nav-link, .post__nav-link--next { max-width: 100%; text-align: left; margin-left: 0; }
  .section__head { flex-wrap: wrap; }
  .entry-list__item a { gap: 8px; }
  .ticker { height: 32px; }
  .tk { font-size: 12px; }
}

/* Footer brand logo (match header) */
.site-footer__brand { display: flex; align-items: center; gap: 10px; }
.site-footer__brand .brand__logo { width: 28px; height: 28px; box-shadow: none; flex: none; }
