/* ============================================================
   LosingNumbers.com — Homepage v5 ("instrument panel")
   Scoped styles (.hv5) layered on top of style.css tokens.
   Layout follows the owner mockup; colours/fonts are the
   site's established palette. Background: pure black.
   ============================================================ */

body { background-color: #000000; }

.hv5 { position: relative; z-index: 1; }
.hv5 .font-mono { font-family: var(--font-mono); }

/* ── Shared wrap ── */
.hv5-wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; position: relative; }

/* ── Instrument panel (dark hero block with dot grid) ── */
.hv5-panel {
  position: relative;
  background: #000000;
  color: var(--text-primary);
  overflow: hidden;
  padding-bottom: clamp(56px, 7vw, 84px);
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  border-bottom: 1px solid var(--border);
}

/* ── Status ticker row ── */
.hv5-ticker {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 22px;
  padding: 18px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.hv5-ticker-live { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-bright); }
.hv5-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-bright);
  animation: hv5pulse 2.4s infinite;
}
.hv5-dot--cyan { width: 6px; height: 6px; background: var(--cyan-bright); }
@keyframes hv5pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,200,66,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(245,200,66,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,200,66,0); }
}

/* ── Hero ── */
.hv5-hero {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 32px;
  padding: clamp(34px,5vw,52px) 0 clamp(26px,4vw,38px);
}
.hv5-hero-main { flex: 1 1 480px; min-width: 0; }

.hv5-pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 10px 20px 10px 14px;
  margin: 0 0 22px;
}
.hv5-pill-flag { font-size: 22px; line-height: 1; }
.hv5-pill-name { font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--text-primary); }
.hv5-pill-sep  { width: 1px; height: 18px; background: rgba(255,255,255,.2); }
.hv5-pill-date { font-size: 14.5px; color: var(--text-secondary); }

.hv5-h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 88px);
  line-height: .95;
  letter-spacing: .015em;
  margin: 0;
  max-width: 19ch;
  color: var(--text-primary);
}
.hv5-h1 .hl { color: var(--gold-bright); }
.hv5-sub {
  margin: 20px 0 0;
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: clamp(15.5px, 1.7vw, 17.5px);
  line-height: 1.5;
}
.hv5-sublink { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.hv5-sublink:hover { color: var(--cyan-bright); }

.hv5-aside {
  flex: 0 1 300px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 26px 24px;
}
.hv5-aside-label { font-size: 10.5px; letter-spacing: .13em; color: var(--gold-bright); margin: 0 0 10px; }
.hv5-aside-copy  { margin: 0 0 20px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }

/* ── Buttons ── */
.hv5-btn-gold {
  display: block; text-align: center;
  background: var(--gold-bright); color: #241a00;
  font-weight: 600; font-size: 15px;
  padding: 13px 20px; border-radius: 9px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.hv5-btn-gold:hover { background: #ffd75c; color: #241a00; text-decoration: none; }
.hv5-btn-sm { display: inline-block; font-size: 14px; padding: 11px 24px; border-radius: 8px; }
.hv5-btn-lg {
  display: inline-block; font-size: 16px; padding: 16px 36px; border-radius: 10px;
}
.hv5-btn-lg:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(245,200,66,.4); }
.hv5-btn-outline {
  display: inline-block;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,.18);
  padding: 11px 24px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}
.hv5-btn-outline:hover { background: rgba(255,255,255,.07); color: var(--text-primary); border-color: var(--border-gold); }
.hv5-link-plain { font-size: 13.5px; color: var(--gold-bright); }
.hv5-link-plain:hover { color: var(--cyan-bright); }

/* ── Cut numbers grid ── */
.hv5-cutgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  list-style: none; margin: 0; padding: 0;
}
.hv5-cutcard {
  background: var(--red-dim);
  border: 1px solid rgba(255,68,68,.28);
  border-radius: var(--radius-md);
  padding: 16px 10px 12px;
  text-align: center;
}
.hv5-cutnum {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  color: var(--red-losing);
  display: block;
  font-variant-numeric: tabular-nums;
}
.hv5-cutscore {
  display: block;
  font-size: 10px; letter-spacing: .1em;
  color: rgba(255,255,255,.38);
  margin-top: 10px;
}
.hv5-cutnote {
  margin: 14px 0 0;
  font-size: 11px; letter-spacing: .08em;
  color: var(--text-muted);
}

/* ── The slip (50-number field) ── */
.hv5-slip { margin: clamp(44px,6vw,64px) 0 0; border-top: 1px solid var(--border); padding-top: 28px; }
.hv5-sliphead {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 12px; margin-bottom: 18px;
}
.hv5-kicker-light, .hv5-kicker-gold {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  margin: 0; color: var(--text-primary);
}
.hv5-kicker-gold { color: var(--gold-bright); }
.hv5-slipstatus { margin: 0; font-size: 12.5px; color: var(--text-muted); }

.hv5-field {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 5px;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.hv5-field li {
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border-radius: 5px;
  transition: background .15s, color .15s, border-color .15s;
}
/* Final (no-JS / settled) state */
.hv5-field li[data-state="keep"] {
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,255,.34);
  color: var(--cyan-bright);
}
.hv5-field li[data-state="cut"] {
  background: transparent;
  border: 1px solid rgba(255,68,68,.3);
  color: rgba(255,68,68,.55);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
/* Pending state (JS resets cells before the scan) */
.hv5-field.is-animating li:not(.done):not(.scanning) {
  background: rgba(255,255,255,.045);
  border: 1px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
}
.hv5-field li.scanning {
  background: rgba(255,255,255,.28) !important;
  border: 1px solid rgba(255,255,255,.6) !important;
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none !important;
}

.hv5-slipfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 20px 0 0; }
.hv5-slipbar {
  flex: 1 1 240px; height: 4px; border-radius: 3px;
  background: rgba(255,255,255,.1); overflow: hidden;
}
.hv5-slipbar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan-bright), #7ff0ff);
  transition: width 1.2s cubic-bezier(.2,.7,.3,1);
}
.hv5-slipfoot p { margin: 0; font-size: 13px; color: var(--text-muted); }
.hv5-slipfoot b { color: var(--text-primary); font-weight: 500; }
.hv5-slipcta { margin-top: 16px; }

/* ── Pro Friday teaser ── */
.hv5-teaser {
  margin: clamp(36px,5vw,52px) 0 0;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: clamp(22px,3.5vw,30px);
  position: relative; overflow: hidden;
}
.hv5-teaser-cut, .hv5-teaser-pool {
  display: flex; flex-wrap: wrap; gap: 8px;
  filter: blur(7px); user-select: none; pointer-events: none;
}
.hv5-teaser-pool { gap: 6px; margin-top: 10px; filter: blur(6px); }
.hv5-teaser-cut span {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(255,68,68,.12); border: 1px solid rgba(255,68,68,.35);
  font-family: var(--font-display); font-size: 21px; color: var(--red-losing);
  font-variant-numeric: tabular-nums;
}
.hv5-teaser-pool span {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--cyan-dim); border: 1px solid rgba(0,229,255,.3);
  font-family: var(--font-mono); font-size: 13px; color: var(--cyan-bright);
  font-variant-numeric: tabular-nums;
}
.hv5-teaser-lock {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.72));
  text-align: center; padding: 20px;
}
.hv5-teaser-title { margin: 0 0 6px; font-family: var(--font-body); font-weight: 600; font-size: 17px; color: var(--text-primary); }
.hv5-teaser-copy  { margin: 0 auto 16px; font-size: 13.5px; color: var(--text-secondary); max-width: 38ch; }

/* ── Content sections ── */
.hv5-section { padding: clamp(64px,9vw,104px) 0 0; }
.hv5-eyebrow {
  font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--cyan-bright); margin: 0 0 14px;
}
.hv5-h3 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: .015em; line-height: 1.05;
  margin: 0 0 16px; max-width: 26ch;
  color: var(--text-primary);
}
.hv5-lede { color: var(--text-secondary); max-width: 56ch; margin: 0; font-size: 16.5px; }

/* Coverage cards */
.hv5-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px; margin: 38px 0 0;
}
.hv5-gamecard {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.hv5-gamecard:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  border-color: var(--border-gold);
  color: var(--text-primary);
  text-decoration: none;
}
.hv5-gamehead { display: flex; align-items: flex-start; gap: 14px; }
.hv5-gameflag {
  flex: none; width: 46px; height: 46px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.hv5-gameid { flex: 1; min-width: 0; }
.hv5-gamename {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
}
.hv5-tag-pro {
  font-size: 9.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--gold-bright); background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 4px; padding: 2px 6px;
}
.hv5-gamesched { margin: 5px 0 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.hv5-gamesample {
  display: flex; gap: 5px; margin: 14px 0 0;
  filter: blur(5px); user-select: none; pointer-events: none;
}
.hv5-gamesample span {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--red-dim); border: 1px solid rgba(255,68,68,.3);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--red-losing);
  font-variant-numeric: tabular-nums;
}
.hv5-gamefoot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 16px 0 0; padding: 12px 0 0;
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-muted);
}
.hv5-tag-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--cyan-bright);
}
.hv5-tag-soon {
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 3px 8px;
}

/* Method stats */
.hv5-reads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 38px 0 0;
}
.hv5-reads > div { background: var(--bg-card); padding: 26px 24px 24px; margin: 0; }
.hv5-reads dt {
  font-family: var(--font-display);
  font-size: 38px; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
}
.hv5-reads dd { margin: 10px 0 0; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* Backtest comparison */
.hv5-compare {
  margin: 36px 0 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  padding: clamp(24px, 3.5vw, 34px);
}
.hv5-cmprow {
  display: grid;
  grid-template-columns: minmax(120px, 150px) 1fr 62px;
  align-items: center; gap: 16px; padding: 14px 0;
}
.hv5-cmprow + .hv5-cmprow { border-top: 1px solid var(--border); }
.hv5-cmplabel { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.hv5-cmplabel small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; }
.hv5-cmptrack { height: 10px; background: rgba(255,255,255,.06); border-radius: 6px; overflow: hidden; }
.hv5-cmpfill {
  display: block; height: 100%; border-radius: 6px; width: 0;
  background: rgba(255,255,255,.18);
  transition: width 1.1s cubic-bezier(.2,.7,.3,1);
}
.hv5-cmpfill--ours { background: linear-gradient(90deg, #0083a0, var(--cyan-bright)); }
.hv5-cmpval { font-weight: 500; font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.hv5-cmpnote { margin: 18px 0 14px; font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* Steps */
.hv5-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px; margin: 40px 0 0; padding: 0; list-style: none;
}
.hv5-steps li { padding-top: 20px; border-top: 2px solid var(--gold-bright); }
.hv5-stepno { font-size: 12px; color: var(--cyan-bright); letter-spacing: .1em; }
.hv5-steps h4 {
  font-family: var(--font-body); font-size: 18px; font-weight: 600;
  margin: 10px 0 8px; color: var(--text-primary);
}
.hv5-steps p { margin: 0; font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }

.hv5-straight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(24px, 3.5vw, 32px);
  margin: 44px 0 0;
  display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap;
}
.hv5-straight > span {
  font-size: 11px; letter-spacing: .12em;
  color: var(--gold-bright); white-space: nowrap; padding-top: 3px;
}
.hv5-straight p { margin: 0; font-size: 15.5px; color: var(--text-primary); max-width: 62ch; line-height: 1.55; flex: 1 1 300px; }

/* Ask Iallways */
.hv5-ask {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 48px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
}
.hv5-askimg { flex: 0 1 180px; min-width: 130px; }
.hv5-askimg img { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 30px rgba(245,200,66,.15)); }
.hv5-askbody { flex: 1 1 380px; min-width: 0; }
.hv5-askquote {
  margin: 18px 0 22px;
  padding: 14px 18px;
  border-left: 3px solid var(--gold-bright);
  background: rgba(255,255,255,.03);
  border-radius: 0 10px 10px 0;
  font-size: 14.5px; color: var(--text-secondary); font-style: italic;
}

/* Pro CTA */
.hv5-procta {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: clamp(38px, 6vw, 60px);
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-gold);
  margin-bottom: clamp(64px, 9vw, 104px);
}
.hv5-procta h3 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: .015em;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.hv5-procta p { color: var(--text-secondary); margin: 0 auto 28px; max-width: 46ch; font-size: 16px; }
.hv5-procta small { display: block; margin: 18px 0 0; color: var(--text-muted); font-size: 13px; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hv5-dot { animation: none; }
  .hv5-field li, .hv5-slipbar span, .hv5-cmpfill, .hv5-cutbar span { transition: none; }
}

/* ── Small screens ── */
@media (max-width: 560px) {
  .hv5-wrap { padding: 0 18px; }
  .hv5-aside { flex-basis: 100%; }
  .hv5-cutgrid { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
}
