/* BrawlHood landing page (DESIGN.md §5 "/"). Page-specific rules only; components come from site.css.
   Loaded after tokens.css and site.css. Uses §2 token names only. */

/* =========================================================== hero */
.hero { padding: var(--space-7) 0 var(--space-6); border-bottom: 1px solid var(--line-1); }
.hero__grid { align-items: start; }
.hero__copy { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.hero__copy .eyebrow { margin: 0; }
.hero__copy .hero-title { max-width: 12ch; }
.hero__copy .lede { margin: 0; }
.hero__note { max-width: 60ch; margin: 0; }
.hero__stage { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }

/* live strip: round status + next lock */
.live-strip { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--line-1); border-radius: var(--radius-2); background: var(--bg-1); min-height: 84px; }
.live-strip__row { display: flex; align-items: flex-start; gap: var(--space-3); min-height: 28px; font-size: var(--text-small); color: var(--ink-2); }
.live-strip__row > .pill, .live-strip__row > .icon { margin-top: 4px; flex: none; }
.live-strip__row > span { flex: 1 1 auto; min-width: 0; line-height: 1.5; }
.live-strip__row > a { flex: none; margin-top: 2px; }
.live-strip__row .icon { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.live-strip__row strong { color: var(--ink-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.live-strip__row .num { font-variant-numeric: tabular-nums; }
.live-strip__row.is-urgent strong.clock { color: var(--red-2); }
.live-strip .skeleton--pill { width: 96px; }
.live-strip .skeleton--text { flex: 1 1 160px; }

/* 3D stage */
.stage { position: relative; aspect-ratio: 5 / 5.4; min-height: 420px; background: #000; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage.is-fallback canvas { display: none; }
.stage__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); padding: var(--space-5); background: var(--bg-1); }
.stage__fallback .chart { flex: none; }
.stage__fallback .stage__fallback-note { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-small); color: var(--ink-3); }
.stage__fallback .stage__fallback-note .icon { width: 14px; height: 14px; margin-top: 3px; }
.stage__ribbon { position: absolute; top: var(--space-4); left: var(--space-4); z-index: 3; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 28px; padding: 0 var(--space-3); border-radius: var(--radius-1); background: var(--gold); color: var(--gold-ink); font-family: var(--font-display); font-size: 16px; letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; box-shadow: var(--shadow-1); pointer-events: none; }
.stage__ribbon .icon { width: 16px; height: 16px; stroke-width: 2; }
.stage__ribbon--free { background: var(--bg-2); color: var(--ink-1); border: 1px solid var(--line-2); }
.stage__ribbon--free .icon { color: var(--ok); }
.stage__ribbon .skeleton--pill { width: 140px; height: 20px; }
.stage__plate { position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: 3; pointer-events: none; }
.stage__plate .nameplate--overlay { pointer-events: auto; }
.stage__plate .nameplate__name { max-width: 100%; }
.stage__plate .skeleton { height: 64px; }
.stage__hint { position: absolute; left: var(--space-4); top: calc(var(--space-4) + 36px); z-index: 3; margin: 0; padding: var(--space-1) var(--space-2); border-radius: var(--radius-pill); background: rgba(8, 8, 10, 0.72); color: var(--ink-3); font-size: var(--text-micro); letter-spacing: var(--tracking-micro); text-transform: uppercase; font-weight: 600; pointer-events: none; }
.stage.is-fallback .stage__hint { display: none; }

/* loading overlay created by fighter3d.js inside the canvas parent */
.viewer-loading { position: absolute; left: 50%; bottom: 96px; z-index: 3; transform: translateX(-50%); display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: rgba(8, 8, 10, 0.78); border: 1px solid var(--line-2); color: var(--ink-2); font-size: var(--text-small); font-weight: 600; white-space: nowrap; pointer-events: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.viewer-loading[hidden] { display: none; }
.viewer-loading.error { color: var(--warn); border-color: rgba(255, 176, 32, 0.5); }
.viewer-loading.error .viewer-loading-dot { display: none; }
.viewer-loading-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold); border-right-color: transparent; animation: spin 0.8s linear infinite; flex: none; }

/* stage tiles: odds ring · price · record */
.stage-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.stage-tile { min-height: 132px; gap: var(--space-2); }
.stage-tile .tile__value { font-size: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-tile .tile__sub { flex-wrap: wrap; row-gap: 4px; }
.stage-tile .chart { gap: 0; }
.stage-tile .chart__body svg { max-width: 96px; }
.stage-tile .skeleton--ring { width: 80px; height: 80px; }
.stage-tile .result-dots { margin-left: 2px; }

/* results ticker under the hero */
.ticker-slot { margin: 0; }

/* =========================================================== fight night now */
.broadcast { display: flex; flex-direction: column; min-height: 420px; }
.broadcast__body { gap: var(--space-4); }
.broadcast__top { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.broadcast__top .chart { gap: 0; }
.broadcast__top .chart__body svg { max-width: 128px; }
.broadcast__status { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.broadcast__big { font-family: var(--font-display); font-size: 32px; line-height: 1; letter-spacing: 0.02em; color: var(--ink-1); }
.broadcast__big .dim { color: var(--ink-3); }
.broadcast__line { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-small); color: var(--ink-2); flex-wrap: wrap; }
.broadcast__line .corner-bar { height: 14px; width: 3px; }
.broadcast__line .win { color: var(--ink-1); font-weight: 600; }
.broadcast__line .icon { width: 14px; height: 14px; color: var(--gold); }
.broadcast__pool { display: flex; flex-direction: column; gap: var(--space-1); }
.broadcast__pool .eyebrow { margin: 0; }
.broadcast__pool .display-num { font-size: 44px; color: var(--gold); white-space: nowrap; }
.broadcast__pool .display-num small { font-family: var(--font-body); font-size: var(--text-small); letter-spacing: 0; color: var(--ink-3); margin-left: var(--space-2); font-variant-numeric: tabular-nums; }
.broadcast__pool .small { color: var(--ink-3); }
.broadcast__spark { margin-top: var(--space-2); }
.broadcast__spark .chart__note { margin-top: 2px; }
.split { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.split .progress__head { font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-micro); font-weight: 600; color: var(--ink-3); flex-direction: column; align-items: flex-start; gap: 2px; }
.split .progress__head strong { font-size: var(--text-small); letter-spacing: 0; text-transform: none; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.podium__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-2) var(--space-3); border: 1px solid var(--line-1); border-radius: var(--radius-1); background: var(--bg-1); }
.podium__row.p1 { border-color: rgba(242, 193, 78, 0.45); }
.podium__place { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--ink-3); letter-spacing: 0.04em; }
.podium__row.p1 .podium__place { color: var(--gold); }
.podium__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.podium__name { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; color: var(--ink-1); min-width: 0; flex-wrap: wrap; row-gap: 2px; }
.podium__name a { color: inherit; overflow-wrap: anywhere; }
.podium__owner { font-size: var(--text-micro); color: var(--ink-3); font-family: var(--font-mono); }
.podium__pay { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: var(--text-small); text-align: right; font-variant-numeric: tabular-nums; }
.podium__pay .amt { color: var(--ink-1); font-weight: 600; }
.podium__pay .pill { height: 20px; }
.proof-line { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); font-size: var(--text-small); color: var(--ink-3); font-family: var(--font-mono); align-items: center; }
.proof-line a { color: var(--ink-2); }
.broadcast .card__foot { margin-top: auto; }
.broadcast__cd { display: flex; flex-direction: column; gap: var(--space-2); }
.broadcast__cd .eyebrow { margin: 0; }
.broadcast__cd .countdown { flex-wrap: wrap; }
.proj { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
@media (max-width: 1199px) { .proj { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proj li { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3); border: 1px solid var(--line-1); border-radius: var(--radius-1); background: var(--bg-1); min-width: 0; }
.proj .k { font-size: var(--text-micro); text-transform: uppercase; letter-spacing: var(--tracking-micro); color: var(--ink-3); font-weight: 600; }
.proj .v { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.02em; color: var(--ink-1); overflow-wrap: anywhere; }
.proj li.p1 .v { color: var(--gold); }
.broadcast .empty { min-height: 220px; }

/* =========================================================== roster in numbers */
.numbers-tiles { margin-bottom: var(--space-5); }
.numbers-tiles .tile__value { font-size: clamp(26px, 2.6vw, 40px); white-space: nowrap; }
.tile__value.is-text { font-size: 28px; }
.numbers-grid { align-items: stretch; }
.chart-card { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.chart-slot { min-width: 0; }
.chart-slot--ladder { min-height: 300px; }
.chart-slot .skeleton--card { height: 260px; }
.chart-slot .skeleton--ring { margin: var(--space-4) auto; }
.rings-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.rings-row .chart__head { flex-direction: column; align-items: flex-start; gap: 0; }
.rings-row .chart__title { font-size: var(--text-small); }
.rings-row .chart__body svg { max-width: 132px; }

/* =========================================================== how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); counter-reset: step; }
.step { display: flex; flex-direction: column; gap: var(--space-3); }
.step__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.step__n { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: 0.04em; color: var(--gold); }
.step__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-1); background: var(--bg-2); border: 1px solid var(--line-1); color: var(--ink-2); flex: none; }
.step__icon .icon { width: 20px; height: 20px; }
.btn .step__icon { width: auto; height: auto; background: none; border: 0; color: inherit; }
.btn .step__icon .icon { width: 16px; height: 16px; }
.step p { color: var(--ink-2); font-size: var(--text-small); }

/* =========================================================== provably fair strip */
.fair { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); position: relative; }
.fair__node { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--bg-1); border: 1px solid var(--line-1); border-radius: var(--radius-2); min-width: 0; }
.fair__node::before { content: ""; position: absolute; top: 28px; left: -16px; width: 16px; height: 1px; background: var(--line-2); }
.fair__node:first-child::before { display: none; }
.fair__dot { position: absolute; top: 12px; left: var(--space-4); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--gold); }
.fair__dot .icon { width: 16px; height: 16px; }
.fair__node h3 { margin-top: 0; }
.fair__node p { font-size: var(--text-small); color: var(--ink-2); }
.fair__code { display: block; font-size: var(--text-micro); color: var(--ink-3); overflow-wrap: anywhere; line-height: 1.5; }
.fair__live { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: var(--space-2); border-top: 1px dashed var(--line-1); font-size: var(--text-micro); color: var(--ink-3); min-height: 40px; font-family: var(--font-mono); }
.fair__live:empty { display: none; }
.fair__live .lbl { font-family: var(--font-body); text-transform: uppercase; letter-spacing: var(--tracking-micro); font-weight: 600; }
.fair__live .val { color: var(--ink-2); overflow-wrap: anywhere; }
.fair__live a { color: var(--ink-2); }
.fair__live .pill { height: 20px; align-self: flex-start; }
.fair__caveat { margin-top: var(--space-5); max-width: 960px; }
.fair__caveat .icon { width: 16px; height: 16px; }

/* =========================================================== hall of fame */
.hall-tiles { margin-bottom: var(--space-5); }
.hall-tiles .tile__value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall-tiles .tile__value.is-text { font-size: 28px; }
.hall-grid { align-items: start; }
.hall-table-scroll { max-height: 480px; overflow: auto; }
.hall-note { margin-top: var(--space-2); }
.hall-table td.name a { color: var(--ink-1); }
.hall-table .result-dots { vertical-align: middle; }
.upsets { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.upsets li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; font-size: var(--text-small); color: var(--ink-2); }
.upsets .m { font-family: var(--font-mono); font-size: var(--text-micro); color: var(--ink-3); white-space: nowrap; }
.upsets .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upsets .who strong { color: var(--ink-1); }
.upsets .gap { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; white-space: nowrap; }

/* =========================================================== classic view */
.classic-scroll { max-height: 640px; overflow: auto; }
.table .tier-cell { display: inline-flex; align-items: center; gap: var(--space-2); }
.table .badge-tier { height: 18px; }
#fighter-table .pill { height: 20px; }
#fighter-table td .addr { margin-left: var(--space-2); font-family: var(--font-mono); font-size: var(--text-micro); color: var(--ink-3); }

/* =========================================================== footer tweaks */
.footer .brand { margin-bottom: var(--space-2); }

/* =========================================================== responsive */
@media (max-width: 1199px) {
  .hero__copy .hero-title { max-width: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fair__node::before { display: none; }
  .fair__node:nth-child(5) { grid-column: span 2; }
  .stage { min-height: 380px; }
}
@media (max-width: 719px) {
  .hero { padding: var(--space-6) 0 var(--space-5); }
  .hero__copy { gap: var(--space-4); }
  .stage { aspect-ratio: 4 / 5; min-height: 320px; max-height: 70vh; }
  .stage__ribbon { font-size: 14px; }
  .stage-tiles { gap: var(--space-2); }
  .stage-tile { min-height: 112px; padding: var(--space-2); }
  .stage-tile .tile__value { font-size: 24px; }
  .stage-tile .chart__body svg { max-width: 80px; }
  .broadcast { min-height: 0; }
  .broadcast__top { grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); }
  .broadcast__top .chart__body svg { max-width: 96px; }
  .broadcast__big { font-size: 26px; }
  .broadcast__pool .display-num { font-size: 36px; }
  .split, .proj { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: var(--space-4); }
  .fair { grid-template-columns: 1fr; }
  .fair__node:nth-child(5) { grid-column: auto; }
  .rings-row { gap: var(--space-3); }
  .hall-table-scroll, .classic-scroll { max-height: none; }
  .toolbar .input { width: 100%; }
  .toolbar-count { margin-left: 0; }
}
@media (max-width: 479px) {
  .stage-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage-tile .tile__label { font-size: 10px; }
  .stage-tile .tile__value small { display: none; }
  .upsets li { grid-template-columns: auto minmax(0, 1fr); }
  .upsets .who { white-space: normal; }
  .upsets .gap { grid-column: 2; }
  .podium__row { grid-template-columns: 32px minmax(0, 1fr); }
  .podium__pay { grid-column: 2; align-items: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .viewer-loading-dot { animation: none; border-right-color: var(--gold); }
}
