:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #f0f0ec;
  --fg: #1c1c1a;
  --muted: #6c6c66;
  --line: #deded8;
  --accent: #2456d6;
  --accent-soft: #e3eafc;
  --win: #1d7a3b;
  --loss: #b42a22;
  --gold: #a86f00;
  --gold-soft: #fbf0d6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  /* Conference colors: power conferences A-D are red, green, blue, yellow. */
  --conf-a: #d63a3a;
  --conf-b: #23964f;
  --conf-c: #2d6be0;
  --conf-d: #d9a900;
  --conf-g6: #8a4fd8;
  --conf-ind: #9aa1aa;
  --conf-fcs: #e0559b;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --surface: #1e1e1c;
    --surface-2: #262624;
    --fg: #ececea;
    --muted: #9b9b94;
    --line: #34342f;
    --accent: #7ea2ff;
    --accent-soft: #1f2a47;
    --win: #5cc77f;
    --loss: #ff7b72;
    --gold: #e8b54a;
    --gold-soft: #3a2f16;
    --shadow: none;
    --conf-a: #ff6b6b;
    --conf-b: #4cc77a;
    --conf-c: #6d9cff;
    --conf-d: #f2cc3d;
    --conf-g6: #b083ff;
    --conf-ind: #c4cad2;
    --conf-fcs: #ff86c0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.muted { color: var(--muted); }

/* ---------- Conference colors ---------- */

.c-a { --conf: var(--conf-a); }
.c-b { --conf: var(--conf-b); }
.c-c { --conf: var(--conf-c); }
.c-d { --conf: var(--conf-d); }
.c-g6 { --conf: var(--conf-g6); }
.c-ind { --conf: var(--conf-ind); }
.c-fcs { --conf: var(--conf-fcs); }

.conf {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--conf) 18%, transparent);
  color: color-mix(in srgb, var(--conf) 72%, var(--fg));
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--conf);
  margin-right: 5px;
  vertical-align: 0;
}

.legend-colors { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* ---------- Header ---------- */

.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand tools" "tabs tabs";
  gap: 10px 16px;
  align-items: center;
}
@media (min-width: 760px) {
  .top { grid-template-columns: 1fr auto auto; grid-template-areas: "brand tabs tools"; }
}

.brand { grid-area: brand; min-width: 0; }
@media (max-width: 480px) {
  .top .brand h1 { font-size: 18px; }
  .top .tools .btn { padding: 8px 10px; font-size: 13.5px; }
  .icon-btn { width: 36px; height: 36px; }
  .wide-only { display: none; }
  .tools { gap: 4px; }
}
.top h1 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.top p { margin: 2px 0 0; font-size: 13.5px; }
.top code { font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

.tabs {
  grid-area: tabs;
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.tab { flex: 1; padding: 7px 18px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.tab.active { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }

.tools { grid-area: tools; display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
}
.icon-btn:hover { border-color: var(--muted); }

.small { font-size: 12.5px; }

.settings { position: relative; }
.settings-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(320px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  padding: 12px;
  z-index: 30;
  display: grid;
  gap: 8px;
}
.settings-panel .section-label { margin-top: 0; }
.settings-panel p { margin: 0; }
.setting-opt {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.setting-opt b { font-size: 14px; }
.setting-opt.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }

.btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 500;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:disabled { opacity: 0.45; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0e1630; } }

.legend {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 12px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

/* ---------- Layout ---------- */

.board {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 24px;
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .board { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .ranking { position: sticky; top: 16px; }
}

h2 { font-size: 16px; margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }

/* ---------- Team blocks ---------- */

.team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.team {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--conf);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.team.selected { border-color: var(--accent); border-left-color: var(--conf); box-shadow: 0 0 0 2px var(--accent); }
.team.placed .team-main { opacity: 0.55; }
.team.placed.selected .team-main { opacity: 1; }

.team-head { display: flex; align-items: stretch; }

.team-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-align: left;
  min-height: 52px;
}

.tid { font-weight: 650; font-variant-numeric: tabular-nums; }
.rec { font-variant-numeric: tabular-nums; }
.star { color: var(--gold); font-weight: 700; }

.myrank {
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0 6px;
  margin-right: 5px;
}
@media (prefers-color-scheme: dark) { .myrank { color: #0e1630; } }
.pollrank { font-weight: 600; color: var(--muted); margin-right: 5px; }
.seed-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 650;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
}
.pick-hint { margin-left: auto; font-size: 12px; color: var(--accent); font-weight: 600; }

.expand {
  width: 52px;
  border-left: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.expand:hover { background: var(--surface-2); }
.expand svg { transition: transform 0.15s ease; }
.expand[aria-expanded="true"] svg,
.schedule-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Résumé details ---------- */

.details { border-top: 1px solid var(--line); padding: 12px 14px 14px; background: var(--surface-2); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fact { font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }

.section-label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 10px 0 4px; }

.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.game {
  display: grid;
  grid-template-columns: 40px 16px 50px 26px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.game .res { font-weight: 700; }
.game .wk { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.res.W { color: var(--win); }
.res.L { color: var(--loss); }
.game .where { color: var(--muted); font-size: 12px; }
.game .opp { overflow-wrap: anywhere; }
.none { font-size: 13px; color: var(--muted); }

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  vertical-align: 1px;
}
.chip.gold { background: var(--gold-soft); color: var(--gold); }

.schedule-toggle {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

/* ---------- Ranking panel ---------- */

.ranking {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.status { font-size: 13px; margin: 0 0 10px; }
.status .warn { color: var(--loss); }
.status .ok { color: var(--win); }

.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.slot-row { display: flex; align-items: stretch; gap: 2px; border-radius: 8px; }
.slot-row:not(.filled) { padding-left: 22px; }
.slots .slot-row.filled { cursor: grab; }

.grip {
  width: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
}

.slot-row.dragging { opacity: 0.35; }
.slot-row.drop-target .slot { border-color: var(--accent); border-style: solid; box-shadow: inset 0 3px 0 var(--accent); }

.drag-ghost {
  position: fixed;
  z-index: 50;
  margin: 0;
  list-style: none;
  pointer-events: none;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: scale(1.02);
}
body.is-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
body.is-dragging * { cursor: grabbing !important; }

.drag-hint { font-size: 12px; margin: 8px 0 0; }

.slot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-height: 42px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: left;
}
.slot.filled { border-style: solid; border-left: 4px solid var(--conf); background: var(--surface-2); }
.slot.current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.slots.placing .slot { border-color: var(--accent); }
.slots.placing .slot:hover { background: var(--accent-soft); }
.slot .num { width: 20px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.slot .empty { color: var(--muted); font-size: 13px; }
.slot .chip { margin-left: auto; }

.remove {
  width: 36px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 18px;
}
.remove:hover { background: var(--surface-2); color: var(--loss); }

.ranking-actions { display: flex; gap: 8px; margin-top: 12px; }
.ranking-actions .primary { flex: 1; }

/* ---------- Mobile placement tray ---------- */

.tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  z-index: 10;
}
.tray-msg { font-size: 13px; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
.tray-msg button { color: var(--accent); font-weight: 600; }
.tray-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.mini {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 3px 0;
  display: grid;
  line-height: 1.15;
  min-height: 40px;
  place-content: center;
  text-align: center;
}
.mini b { font-size: 13px; }
.mini span { font-size: 10.5px; color: var(--muted); min-height: 12px; }
.mini.filled { border-style: solid; border-top: 3px solid var(--conf); background: var(--surface-2); }
.mini.current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tray.placing .mini { border-color: var(--accent); }

body.has-tray { padding-bottom: 130px; }

@media (min-width: 900px) {
  .tray { display: none; }
  body.has-tray { padding-bottom: 0; }
}

/* ---------- Results ---------- */

.results { max-width: 1000px; margin: 0 auto; padding: 0 16px 32px; }
.bracket-key { font-size: 13px; margin: 0 0 12px; }

/* ---------- Bracket ----------
   Rounds are equal-height columns. Every column is built from "groups" of two
   games spaced the same way, so a game always sits level with the midpoint of
   the two games that feed it. Connector lines are pseudo-elements. */

.bracket-scroll { overflow-x: auto; margin: 0 -16px; padding: 4px 16px 12px; }
.bracket {
  --gap: 32px;
  --wire: color-mix(in srgb, var(--muted) 55%, transparent);
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(160px, 1fr));
  column-gap: var(--gap);
  min-width: calc(var(--cols, 4) * 160px + (var(--cols, 4) - 1) * var(--gap));
}

.round { display: flex; flex-direction: column; }
.round h3 {
  /* Fixed height so a heading that wraps doesn't shift its column's games. */
  height: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.2;
  margin: 0 0 10px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.round-body { flex: 1; display: flex; flex-direction: column; }
.final .round-body { justify-content: center; }

.group, .pair {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 12px;
  padding: 6px 0;
  position: relative;
}
.first .round-body { gap: 0; }

.match {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.bteam {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px 0 8px;
  font-size: 13.5px;
  white-space: nowrap;
  border-left: 4px solid var(--conf, transparent);
}
.bteam + .bteam { border-top: 1px solid var(--line); }
.match .bteam:first-child { border-top-left-radius: 7px; }
.match .bteam:last-child { border-bottom-left-radius: 7px; }
.bteam .chip { margin-left: auto; }
.bseed { width: 18px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.bteam.tbd { color: var(--muted); font-size: 12px; border-left-color: var(--line); }

/* First-round game -> its quarterfinal (straight across). */
.first .match::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--gap));
  width: var(--gap);
  border-top: 2px solid var(--wire);
}
/* Paired games -> elbow -> next round. */
.pair .match::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(-0.5 * var(--gap));
  width: calc(0.5 * var(--gap));
  border-top: 2px solid var(--wire);
}
.pair::after {
  content: '';
  position: absolute;
  top: 25%;
  bottom: 25%;
  right: calc(-0.5 * var(--gap));
  border-right: 2px solid var(--wire);
}
.pair::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--gap));
  width: calc(0.5 * var(--gap));
  border-top: 2px solid var(--wire);
}
.final .match { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.note {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13.5px;
}

.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------- 24-team tray ---------- */

.tray-24 .tray-slots { grid-template-columns: repeat(8, 1fr); }
.tray-24 .mini { min-height: 36px; }
.tray-24 .mini span { font-size: 9.5px; }
body.has-tray.tray-24 { padding-bottom: 170px; }
@media (min-width: 900px) { body.has-tray.tray-24 { padding-bottom: 0; } }

/* ---------- Score card & comparison ---------- */

.score-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 4px 0 20px;
}
.score-card.loading { color: var(--muted); }
.score-card > div:nth-child(2) { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.score-big { display: flex; align-items: baseline; gap: 2px; }
.score-big b { font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.score-big span { color: var(--muted); font-weight: 600; }
.score-line { font-weight: 600; }
.score-card .btn { display: inline-flex; gap: 6px; align-items: center; }

.results-h { margin: 24px 0 4px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.compare { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; column-gap: 12px; } }
.compare li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--conf);
  border-radius: 8px;
  font-size: 13.5px;
  min-width: 0;
}
.compare .num { width: 20px; font-weight: 700; color: var(--muted); }
.compare .crowd { margin-left: auto; white-space: nowrap; }
.compare .pct { font-size: 12px; white-space: nowrap; }
.pts { font-weight: 700; min-width: 28px; text-align: right; }
.pts.p3 { color: var(--win); }
.pts.p2 { color: var(--accent); }
.pts.p1 { color: var(--gold); }
.pts.p0 { color: var(--muted); }
@media (max-width: 420px) { .compare .pct { display: none; } }

/* ---------- Stats modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 100;
}
.modal {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  padding: 20px 18px 18px;
}
.modal h2 { justify-content: center; font-size: 17px; margin-bottom: 12px; }
.modal-close { position: absolute; top: 10px; right: 10px; border: 0; }
.today { text-align: center; margin-bottom: 14px; font-size: 14px; }

.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 6px; }
.stat { display: grid; justify-items: center; text-align: center; }
.stat b { font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; color: var(--muted); }

/* Compact distribution: one row of cells shaded by how many days landed there. */
.dist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.dist-cell {
  display: grid;
  justify-items: center;
  padding: 6px 0 4px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) calc(var(--fill) * 45%), var(--surface));
}
.dist-cell b { font-size: 15px; font-variant-numeric: tabular-nums; }
.dist-cell span { font-size: 10.5px; color: var(--muted); }
.dist-cell.here { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.recent { display: flex; flex-wrap: wrap; gap: 4px; }
.recent-chip {
  min-width: 34px;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

/* ---------- Loading, sharing, footer ---------- */

.status-screen { max-width: 520px; margin: 48px auto; padding: 0 16px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.score-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.score-actions .btn { display: inline-flex; gap: 6px; align-items: center; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
@media (max-width: 899px) { body.has-tray .toast { bottom: calc(140px + env(safe-area-inset-bottom)); } }

.site-footer { max-width: 1200px; margin: 24px auto 0; padding: 16px; text-align: center; }
.site-footer a, .prose a { color: var(--accent); }
@media (max-width: 899px) { body.has-tray .site-footer { display: none; } }

.prose { max-width: 640px; margin: 0 auto; padding: 32px 16px 48px; }
.prose h1 { margin-top: 0; }
.prose h2 { font-size: 17px; margin-top: 24px; }

/* ---------- Hover labels on icon buttons (mouse only, so they never stick on touch) ---------- */

[data-tip] { position: relative; }
@media (hover: hover) and (pointer: fine) {
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 70;
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--fg);
    color: var(--bg);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.12s ease, transform 0.12s ease;
  }
  [data-tip]:hover::after,
  [data-tip]:focus-visible::after { opacity: 1; transform: none; transition-delay: 0.25s; }
  [data-tip][aria-expanded="true"]::after { display: none; }
}

/* ---------- Dragging contenders onto seeds ---------- */

.team-head .grip { width: 22px; flex: none; padding-left: 4px; }
.team-list .team-head { cursor: grab; }
.team-list .expand { cursor: pointer; }
.team.dragging { opacity: 0.4; }
.mini.drop-target { border-color: var(--accent); border-style: solid; box-shadow: inset 0 0 0 2px var(--accent); }
.contenders.drop-target .team-list { outline: 2px dashed var(--loss); outline-offset: 4px; border-radius: var(--radius); }
.drag-ghost.team { border-radius: var(--radius); }

/* ---------- Landing ---------- */

.home-link { font: inherit; letter-spacing: inherit; text-align: left; }
.home-link:hover { color: var(--accent); }

.landing { max-width: 620px; margin: 0 auto; padding: 48px 16px 8px; text-align: center; }
.landing-logo { display: block; margin: 0 auto 14px; border-radius: 16px; }
.landing h1 { margin: 0; font-size: clamp(30px, 7vw, 42px); letter-spacing: -0.02em; }
.landing .tagline { font-size: 17px; color: var(--muted); margin: 12px auto 28px; max-width: 520px; }
.landing-actions { display: grid; gap: 10px; max-width: 360px; margin: 0 auto; }
.btn.big { display: grid; gap: 2px; padding: 12px 16px; text-align: center; border-radius: 12px; }
.btn.big b { font-size: 16px; }
.btn.big span { font-size: 13px; opacity: 0.8; font-weight: 400; }
.landing-how { text-align: left; margin-top: 40px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.landing-how h2 { margin: 0 0 8px; font-size: 16px; }

.how-to { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; text-align: left; }
.how-to li { padding-left: 2px; }
.modal.help { width: min(480px, 100%); }
.modal.help h2 { text-align: center; }
