/* Billionaires Digest v2: front door (index.html), PLAY first. Needs tokens.css + ui.css. Prefix: hm-.
   Hero cabinet (same brass frame as the team.html jackpot), game tiles as cabinet cards, today's lede strip and a
   Learn teaser. Odometer (.v2-odo), result lamp (.v2-lamp) and bulbs (.v2-bulbs) live in ui.css.
   Motion only on load, a fixed number of times; none with prefers-reduced-motion. */

/* ---------- hero cabinet ---------- */
.hm-hero {
  position: relative; border-radius: 18px; padding: 12px; margin-bottom: var(--s3);
  background: var(--brass);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(245, 197, 66, .12);
}
.hm-hero::before {
  content: ''; position: absolute; inset: 12px; border-radius: 10px;
  background: radial-gradient(ellipse at 50% 0%, #2A0E0D 0%, #110708 55%, #07080A 100%);
  box-shadow: inset 0 0 0 3px var(--brand), inset 0 0 0 5px #5A0F0C, inset 0 0 40px rgba(0, 0, 0, .8);
}
.hm-hero > * { position: relative; }
.hm-hero .v2-bulbs { margin: 4px 22px; }
.hm-hero__in {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s3); align-items: center;
  padding: 14px 28px 18px;
}
.hm-hero__pitch, .hm-hero__team { min-width: 0; }
.hm-hero__h {
  font-family: var(--font-display); font-weight: var(--fw-display); text-transform: uppercase; letter-spacing: .02em;
  font-size: 76px; line-height: .92; margin: 6px 0 var(--s1); color: #fff; overflow-wrap: anywhere;
  text-shadow: 0 3px 0 var(--brand), 0 6px 0 #5A0F0C;
}
.hm-hero__dek { margin: 0; font-size: var(--fs-lg); line-height: 1.35; color: var(--text); max-width: 34em; }
.hm-hero__lead { margin: 0; font-size: var(--fs-md); color: var(--text-muted); }
.hm-hero__btns { margin-top: var(--s1); }
.hm-hero__small { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.hm-hero__team .v2-btn { white-space: normal; text-align: center; }

/* compact jackpot (visitor has a team) */
.hm-jp {
  border-radius: 14px; padding: var(--s1) var(--s2) var(--s2); background: rgba(0, 0, 0, .45);
  border: 2px solid var(--gold-dk); box-shadow: inset 0 0 24px rgba(0, 0, 0, .6);
}
.hm-jp__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.hm-jp__grid { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
.hm-jp__meter { min-width: 0; flex: 1 1 160px; }
.hm-jp__k { display: block; font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 8px; }
.hm-jp__lamp { flex: 0 1 auto; min-width: 140px; }
.hm-jp__line { margin: 12px 0 0; font-size: var(--fs-md); color: var(--text); overflow-wrap: anywhere; }
.hm-jp .v2-btnrow { margin-top: 12px; }

/* ---------- game tiles ---------- */
.hm-games { margin-bottom: var(--s3); }
.hm-games__h { margin: 0 0 var(--s1); }
.hm-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.hm-tile {
  min-width: 0; display: flex; flex-direction: column; gap: 8px;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.hm-tile:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, .65), 0 0 22px rgba(245, 197, 66, .18); }
@media (prefers-reduced-motion: reduce) { .hm-tile, .hm-tile:hover { transition: none; transform: none; } }
.hm-tile__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--gold-btn); box-shadow: 0 3px 0 #6E4F0E, 0 0 14px rgba(245, 197, 66, .3);
}
.hm-tile__icon svg { width: 28px; height: 28px; fill: var(--gold-ink); }
.hm-tile__h {
  margin: 4px 0 0; font-family: var(--font-display); font-weight: var(--fw-display); text-transform: uppercase;
  font-size: 30px; line-height: 1; letter-spacing: .03em;
}
/* the title link covers the whole card; extra links inside the card sit above it */
.hm-tile__link { color: #fff; text-decoration: none; text-shadow: 0 2px 0 var(--brand); }
.hm-tile__link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-panel); }
.hm-tile__link:focus-visible { outline: none; }
.hm-tile__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.hm-tile:hover .hm-tile__link { color: var(--gold-2); }
.hm-tile__desc { margin: 0; color: var(--text-muted); font-size: var(--fs-md); }
.hm-tile__live { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.hm-tile__big { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: 24px; line-height: 1.1; color: var(--gold); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; }
.hm-tile__big .num { font-size: 30px; }
.hm-tile__msg { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--text-muted); overflow-wrap: anywhere; }
.hm-tile__fine { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
.hm-tile__more {
  position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: var(--tap); margin-top: 4px;
  color: var(--gold-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.hm-tile__more::after { content: ' →'; white-space: pre; }

/* Next Moves questions */
.hm-mv { list-style: none; margin: 6px 0 0; padding: 0; }
.hm-mv__i { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.hm-mv__i:last-child { border-bottom: 0; }
.hm-mv__q {
  font-size: var(--fs-sm); line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hm-mv__odds { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.hm-mv__now { font-family: var(--font-display); font-weight: var(--fw-display); font-size: 20px; color: var(--positive); }
.hm-mv__start { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- lede strip + learn teaser ---------- */
.hm-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--gutter); align-items: stretch; }
.hm-lede, .hm-learn { min-width: 0; }
.hm-lede { display: flex; flex-direction: column; gap: 8px; }
.hm-lede__h { margin: 4px 0 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: 34px; line-height: 1.02; color: #fff; overflow-wrap: anywhere; }
.hm-lede__dek { margin: 0; color: var(--text); font-size: var(--fs-md); line-height: 1.45; }
.hm-lede__date { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.hm-lede__btn { align-self: flex-start; margin-top: auto; white-space: normal; text-align: center; }
.hm-learn__h { margin: 4px 0 var(--s1); font-family: var(--font-display); font-weight: var(--fw-display); font-size: 30px; line-height: 1; color: #fff; text-transform: uppercase; }
.hm-learn__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hm-learn__link {
  display: block; min-height: var(--tap); padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text);
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2);
}
.hm-learn__link:hover { border-color: var(--info-ink); }
.hm-learn__t { display: block; font-weight: 700; color: var(--info-ink); }
.hm-learn__d { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- tablet / phone ---------- */
@media (max-width: 1023px) {
  .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tile--wide { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .hm-hero { padding: 8px; border-radius: 14px; margin-bottom: var(--s2); }
  .hm-hero::before { inset: 8px; }
  .hm-hero .v2-bulbs { margin: 2px 14px; }
  .hm-hero__in { grid-template-columns: minmax(0, 1fr); gap: var(--s1); padding: 10px 14px 14px; }
  .hm-hero__h { font-size: 48px; }
  .hm-hero__dek { font-size: var(--fs-md); }
  .hm-hero__btns .v2-btn { flex: 1 1 100%; }
  .hm-jp { padding: 12px 12px var(--s1); }
  .hm-jp__lamp { flex: 1 1 100%; }
  .hm-tiles { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .hm-tile__h { font-size: 26px; }
  .hm-row { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .hm-lede__h { font-size: 28px; }
}
