/* Season predictor — the picker and the shared season report (daylight draft room) */

.picks-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}

/* ---------------------------------------------------------------- hero */

.predictor-hero,
.report-hero {
  margin-bottom: 1.5rem;
}

.predictor-hero h1,
.report-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.2rem;
}

.picks-main .lede {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.55;
  max-width: 62ch;
  margin: 0 0 0.85rem;
}

.hero-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--accent-dim);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.stale-warning {
  margin-top: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  border: 1px solid rgba(196, 122, 18, 0.35);
  color: var(--warn);
  font-size: 0.9rem;
  max-width: 62ch;
}

.section-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 66ch;
  margin: 0 0 1rem;
}

/* ---------------------------------------------------------------- start panel */

.start-panel {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.start-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.start-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  padding: 0.95rem 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.start-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.start-card:active {
  transform: translateY(1px);
}

.start-card[data-start="season"] {
  border-color: var(--accent-border);
}

.start-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.start-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.start-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------------------------------------------------------------- progress rail */

.progress-rail {
  position: sticky;
  top: var(--nav-h);
  z-index: 6;
  margin: 0 -1.25rem 1.25rem;
  padding: 0.6rem 1.25rem;
  background: rgba(247, 248, 246, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1140px;
  margin: 0 auto;
}

.rail-meter {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1 1 260px;
  min-width: 0;
}

.rail-bar {
  position: relative;
  flex: 1 1 auto;
  height: 8px;
  min-width: 120px;
  border-radius: 999px;
  background: var(--bg-wash);
  overflow: hidden;
}

.rail-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.rail-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.rail-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.rail-actions button {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.rail-actions button:hover {
  border-color: var(--accent);
  color: var(--accent-dim);
}

.rail-actions button.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.rail-jump {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------- week nav */

.week-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

.week-tab {
  appearance: none;
  position: relative;
  min-width: 2.6rem;
  padding: 0.32rem 0.5rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1.1;
}

.week-tab:hover {
  border-color: var(--accent-border);
  color: var(--accent-dim);
}

.week-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #f4f7f5;
}

.week-tab .tab-dot {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--border-strong);
}

.week-tab.done .tab-dot {
  background: var(--accent);
}

.week-tab.partial .tab-dot {
  background: var(--warn);
}

.week-tab.active .tab-dot {
  opacity: 0.85;
}

/* ---------------------------------------------------------------- week head */

.week-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.week-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.week-sub {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.week-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.week-actions button {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  padding: 0.38rem 0.7rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.week-actions button:hover {
  border-color: var(--accent);
  color: var(--accent-dim);
}

.byes {
  margin: 0.4rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.byes strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------- game cards */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.7rem;
}

.game-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem 0.75rem;
  box-shadow: var(--shadow-sm);
}

.game-card.picked {
  border-color: var(--accent-border);
}

.game-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted-soft);
}

.game-line {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.game-sides {
  display: grid;
  gap: 0.35rem;
}

.side-btn {
  --tc: var(--border-strong);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--tc);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.side-btn:hover {
  border-color: var(--border-strong);
  border-left-color: var(--tc);
  background: var(--bg-wash);
}

.side-btn.won {
  background: color-mix(in srgb, var(--tc) 12%, var(--surface-raised));
  border-color: color-mix(in srgb, var(--tc) 45%, var(--border));
  border-left-color: var(--tc);
}

.side-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.side-abbr {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 2.4rem;
}

.side-name {
  font-size: 0.92rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-btn.won .side-name {
  font-weight: 700;
}

.side-mark {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.side-btn.won .side-mark {
  color: var(--accent-dim);
}

.side-at {
  font-size: 0.72rem;
  color: var(--muted-soft);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- week foot */

.week-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.week-foot button.ghost {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.week-foot button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dim);
}

.week-foot button:disabled {
  opacity: 0.45;
  cursor: default;
}

.week-foot-status {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- season block */

.season-block {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--border-strong);
  scroll-margin-top: calc(var(--nav-h) + 4rem);
}

.season-block-head h2,
.report-section h2 {
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.report-section {
  margin-top: 2.25rem;
}

.report-main .report-section:first-of-type {
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------- storylines */

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
  margin: 1.25rem 0 0;
}

.story {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 0.95rem;
  box-shadow: var(--shadow-sm);
}

.story-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.15rem;
}

.story h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.story p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------------------------------------------------------------- tables */

.picks-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.picks-main th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-soft);
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.picks-main td {
  padding: 0.34rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.picks-main tbody tr:last-child td {
  border-bottom: none;
}

.picks-main .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.picks-main .strong {
  font-weight: 700;
  color: var(--ink);
}

.picks-main .secondary {
  color: var(--muted);
  font-size: 0.85rem;
}

.rank-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted-soft);
  width: 2rem;
}

.scroll {
  overflow-x: auto;
}

.val-tint {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.val-pos {
  color: var(--positive);
}

.val-neg {
  color: var(--negative);
}

/* ---------------------------------------------------------------- team chip */

.team-chip {
  --tc: var(--border-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.team-chip::before {
  content: "";
  width: 3px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--tc);
  flex: none;
}

.chip-seed {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted-soft);
  min-width: 0.9rem;
}

.chip-abbr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  min-width: 2.3rem;
}

.chip-name {
  color: var(--muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-chip.strong .chip-name {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------- standings */

.division-grid,
.seed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.division-card,
.seed-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem 0.4rem;
  box-shadow: var(--shadow-sm);
}

.division-card h3,
.seed-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.conference-block {
  margin-bottom: 1.5rem;
}

.conference-block > h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin: 0 0 0.6rem;
}

.seed-card tbody tr.bye-row td {
  background: var(--accent-soft);
}

.seed-card tbody tr.cut-row td {
  border-top: 2px solid var(--border-strong);
}

/* ---------------------------------------------------------------- bracket */

.bracket {
  display: grid;
  gap: 1.25rem;
}

.bracket-conf {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.bracket-conf-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.bracket-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.bracket-col {
  display: flex;
  flex-direction: column;
}

/* Later rounds hold fewer games; spreading them down the column keeps each one roughly
   level with the games that feed it. */
.bracket-col-games {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0.55rem;
  flex: 1;
}

.bracket-final {
  max-width: 340px;
}

.bracket-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin: 0 0 0.5rem;
}

.bracket-game {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.45rem;
  box-shadow: var(--shadow-sm);
}

.bracket-game.pending {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  border-style: dashed;
  color: var(--muted-soft);
  font-size: 0.82rem;
  box-shadow: none;
}

.bracket-side {
  --tc: var(--border-strong);
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0.45rem;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 0.3rem;
  font: inherit;
}

button.bracket-side {
  cursor: pointer;
}

button.bracket-side:hover {
  background: var(--bg-wash);
}

.bracket-side.won {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.bracket-side:last-child {
  margin-bottom: 0;
}

.bracket-champion {
  margin-top: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #f4f7f5;
  text-align: center;
}

.bracket-champion .champ-kicker {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.bracket-champion .champ-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------- share */

.share-block {
  margin-top: 2.25rem;
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.share-block h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
}

.share-block p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 62ch;
  line-height: 1.5;
}

.share-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-row input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.share-hint {
  margin: 0.55rem 0 0 !important;
  font-size: 0.85rem;
  color: var(--accent-dim);
  font-weight: 600;
  min-height: 1.2em;
}

.market-table td:first-child {
  min-width: 10rem;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 720px) {
  .bracket-cols {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .rail-inner {
    gap: 0.6rem;
  }

  .rail-actions {
    width: 100%;
    justify-content: space-between;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .week-tab {
    min-width: 2.3rem;
    font-size: 0.8rem;
  }
}
