/* Participants — mobile first. People watch breaks on a phone and buy slots on a
   phone, so this is designed at 380px and allowed to grow, not the reverse. */

/* ---------- hero ---------- */
.hero { padding: clamp(38px, 9vw, 78px) 0 clamp(28px, 5vw, 44px); border-bottom: 1px solid var(--line); }
.hero h1 { margin: 14px 0 16px; }
.hero h1 em { font-style: normal; color: var(--uv); }
.hero .lede { margin: 0; }

/* ---------- picker ---------- */
.picker {
  display: grid; grid-template-columns: 1fr auto; gap: 0;
  margin: 22px 0 0; position: sticky; top: 62px; z-index: 30;
  background: var(--surface-2);
}
.picker-row { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.picker-row + .picker-row { border-left: 1px solid var(--line); }
.picker-row.narrow { width: 104px; }
.picker select { border: 0; background: transparent; padding: 0; font: 500 15px var(--body); color: var(--ink); }
.picker select:focus-visible { outline-offset: 4px; }

/* ---------- summary strip ---------- */
.strip { margin-top: 18px; }

/* ---------- THE BOARD ----------
   The artifact every break revolves around. Sorted by value by default so the
   grid itself shows where the money is. */
.board-bar { display: flex; align-items: center; gap: 12px; margin: 30px 0 12px; flex-wrap: wrap; }
.board-bar h2 { margin-right: auto; }

.board {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}
.tile {
  appearance: none; border: 0; margin: 0; text-align: left; cursor: pointer;
  background: var(--surface); color: inherit; font: inherit;
  display: grid; grid-template-rows: 3px 1fr; min-height: 104px;
  transition: background .14s var(--ease);
}
.tile:hover { background: var(--surface-2); }
.tile[aria-expanded="true"] { background: var(--surface-2); }
.tile[aria-expanded="true"] .tile-tier { height: 5px; }
.tile-tier { background: var(--tier-common); transition: height .14s var(--ease); }
.tile-body { padding: 11px 12px 12px; display: flex; flex-direction: column; }
.tile-team {
  font: 500 12px/1.25 var(--body); color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-price { font: 500 20px/1 var(--mono); letter-spacing: -.04em; margin-top: 7px; font-variant-numeric: tabular-nums; }
.tile-meta { font: 400 10px/1 var(--mono); color: var(--faint); margin-top: 6px; letter-spacing: .04em; }

/* the odds spine — hit vs blank, in the team's own scarcity colour */
.spine { display: flex; height: 3px; margin-top: auto; padding-top: 10px; }
.spine i { display: block; height: 3px; border-radius: 2px; }
.spine i:first-child { background: var(--tier-common); }
.spine i:last-child { background: var(--line-strong); }

/* ---------- detail sheet ----------
   On mobile it slides from the bottom like a native sheet; on desktop it sits
   inline beneath the board. */
.sheet {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); margin-top: 14px; overflow: hidden;
}
.sheet[hidden] { display: none; }
.sheet-head { padding: 18px 20px 4px; display: flex; align-items: flex-start; gap: 14px; }
.sheet-head h3 { font-size: 24px; font-weight: 800; }
.sheet-close { margin-left: auto; }
.sheet-card { font-size: 13px; color: var(--muted); padding: 0 20px 16px; }
.sheet-card strong { color: var(--ink-2); font-weight: 500; }

.verdict {
  margin: 0 20px 18px; padding: 13px 15px; border-radius: var(--r);
  background: var(--carbon); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.6;
  color: var(--ink-2);
}
.verdict.good { border-left: 2px solid var(--charge); }
.verdict.fair { border-left: 2px solid var(--uv); }
.verdict.rich { border-left: 2px solid var(--warn); }

.odds { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.odd { background: var(--surface); padding: 13px 15px; }
.odd .k { font: 500 9px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.odd .v { font: 500 18px/1 var(--mono); margin-top: 7px; letter-spacing: -.02em; }
.odd.hero-odd { background: var(--surface-2); }
.odd.hero-odd .v { color: var(--charge); font-size: 22px; }

.dist { padding: 18px 20px 20px; }
.dist-bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; margin-top: 10px; }
.dist-bars i { flex: 1; min-height: 2px; border-radius: 1px 1px 0 0; background: var(--uv); opacity: .8; }
.dist-bars i.blank { background: var(--line-strong); }
.dist-axis { display: flex; justify-content: space-between; font: 400 10px var(--mono); color: var(--faint); margin-top: 7px; }

/* ---------- chases ---------- */
.chase-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.chase-row:last-child { border-bottom: 0; }
.chase-name { font: 500 13px var(--body); flex: 1; min-width: 0; }
.chase-name span { display: block; font: 400 11px var(--mono); color: var(--faint); margin-top: 2px; }
.chase-odds { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.chase-val { font: 500 14px var(--mono); color: var(--charge); white-space: nowrap; min-width: 66px; text-align: right; }

/* ---------- footer ---------- */
footer { margin: 56px 0 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.foot-grid p { margin: 8px 0 0; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .board { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .tile { min-height: 96px; }
  .picker { top: 62px; }
  .sheet {
    position: fixed; inset: auto 0 0 0; z-index: 60; margin: 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: 0;
    max-height: 82vh; overflow-y: auto;
    box-shadow: 0 -20px 50px rgba(0,0,0,.6);
    animation: rise .22s var(--ease);
  }
  @keyframes rise { from { transform: translateY(100%) } }
}
@media (min-width: 900px) {
  .board { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
}
