:root {
  --bg: #FFFFFF;
  --bg-2: #F3F3F3;
  --panel: #FFFFFF;
  --panel-2: #FDFDFD;
  --line: #ebebeb;
  --text: #000000;
  --muted: #444444;
  --dim: #171717;
  --orange: #EF3936;
  --orange-deep: #CA0101;
  --orange-soft: rgba(239, 57, 54, 0.12);
  --green: #15803d;
  --red: #EF3936;
  --gold: #b45309;
  --silver: #52525b;
  --bronze: #9a3412;
  --radius: 0px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; }

body {
  min-height: 100vh;
  background: #FFFFFF;
  color: var(--text);
  font-family: "Lato", "Open Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

.chrome {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: #111;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.7rem 1.5rem 0.75rem;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mark-logo {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.mark-logo.shield {
  height: 64px;
  width: 64px;
  object-fit: contain;
  background: #EF3936;
  padding: 8px;
}

.site-header h1 {
  margin: 0;
  color: #111;
  font-family: Oswald, Lato, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header .subhead {
  color: #555;
}

.site-header .header-links a {
  color: #111;
  background: #fff;
  border-color: #d4d4d4;
  border-radius: 0;
}

.site-header .header-links a:hover {
  color: #111;
  border-color: #111;
  text-decoration: none;
}

.site-header .badge {
  background: #111;
  color: #fff;
}

@media (max-width: 700px) {
  .mark-logo { height: 52px; }
}

h1 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--orange);
  color: #111;
  font-family: Oswald, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 0;
  white-space: nowrap;
}

.subhead {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 52rem;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-links a {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  text-decoration: none;
}
.header-links a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filters {
  background: #F3F3F3;
  border-bottom: 1px solid var(--line);
}

.filters-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: grid;
  grid-template-columns: auto auto auto auto minmax(10rem, 1fr) auto auto auto;
  gap: 0.7rem 0.85rem;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}
.field[hidden],
.club-field[hidden] {
  display: none !important;
}

.field label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  font-weight: 600;
}

select, input[type="search"] {
  appearance: none;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.45rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  min-height: 38px;
}
select:focus, input[type="search"]:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

.seg {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  min-height: 38px;
}
.seg button {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 0.4rem 0.9rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button.active {
  background: var(--orange);
  color: #fff;
}
.seg button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.event-bar {
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
}
.event-bar[hidden] {
  display: none !important;
}
.event-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 42px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}
.all-tab {
  background: transparent;
  color: #666;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.55rem 0.1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.all-tab.active {
  color: #EF3936;
  border-bottom-color: #EF3936;
}
.all-tab:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}
.event-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}
.event-select-label {
  color: #666;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#event-select {
  background: #fff;
  color: #111;
  border: 1px solid #d4d4d4;
  border-radius: 0;
  min-height: 34px;
  padding: 0.25rem 0.6rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}
.empty.coming-soon h2 {
  color: var(--orange);
}
.empty.coming-soon p {
  font-size: 1rem;
}
.sos {
  display: block;
  margin-top: 0.12rem;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trophy-boost {
  display: block;
  margin-top: 0.12rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.search {
  width: 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2'><circle cx='7' cy='7' r='5'/><path d='M11 11l3.5 3.5'/></svg>");
  background-repeat: no-repeat;
  background-position: 10px 50%;
  padding-left: 2rem;
}

.btn-compare {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0;
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-compare:hover, .btn-compare.active {
  border-color: var(--orange);
  color: var(--orange);
}

.meta {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  padding-bottom: 0.35rem;
}

.pick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1.5rem;
  background: linear-gradient(90deg, rgba(239, 57, 54, 0.14), rgba(239, 57, 54, 0.08));
  border-bottom: 1px solid rgba(239, 57, 54, 0.35);
  color: #000;
  font-size: 0.88rem;
  font-weight: 600;
}
.pick-bar[hidden] { display: none; }
.pick-bar button {
  background: #111;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.28rem 0.75rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.club-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1.5rem;
  background: linear-gradient(90deg, rgba(239, 57, 54, 0.12), rgba(20, 83, 45, 0.14));
  border-bottom: 1px solid rgba(239, 57, 54, 0.30);
  color: #000;
  font-size: 0.88rem;
  font-weight: 600;
}
.club-bar[hidden] { display: none; }
.club-bar-msg { min-width: 0; flex: 1; }
.club-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
}
.club-bar button {
  background: #111;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.28rem 0.75rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.club-bar button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

.hint { color: var(--dim); font-size: 0.78rem; margin: 0 0 0.65rem; }

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: auto;
  box-shadow: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #F3F3F3;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: left;
  padding: 0.7rem 0.7rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 0.62rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tbody tr.team-row { cursor: pointer; }
tbody tr.team-row:hover td { background: var(--orange-soft); }
tbody tr.team-row.open td { background: rgba(239, 57, 54, 0.10); }
tbody tr.unranked td { opacity: 0.72; }

tbody tr.podium.gold td { box-shadow: inset 3px 0 0 var(--gold); }
tbody tr.podium.silver td { box-shadow: inset 3px 0 0 var(--silver); }
tbody tr.podium.bronze td { box-shadow: inset 3px 0 0 var(--bronze); }

.num { font-variant-numeric: tabular-nums; text-align: right; }
.rank { width: 3.6rem; }
.team { font-weight: 600; max-width: 24rem; }
.team .name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
td.coach {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 14rem;
}
.coach-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.coach-empty { color: var(--dim); }
.divs, .events { color: var(--muted); font-size: 0.82rem; }
.rating {
  font-family: Oswald, sans-serif;
  font-weight: 700;
  color: var(--orange);
}
.gd.pos { color: var(--green); }
.gd.neg { color: var(--red); }
.gd.zero { color: var(--muted); }

.medal {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Oswald, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  color: #111;
}
.medal.gold {
  background: linear-gradient(145deg, #fde68a, #f59e0b);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}
.medal.silver {
  background: linear-gradient(145deg, #f8fafc, #94a3b8);
  box-shadow: 0 0 10px rgba(203, 213, 225, 0.25);
}
.medal.bronze {
  background: linear-gradient(145deg, #fdba74, #b45309);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.3);
}
.rank-num {
  font-family: Oswald, sans-serif;
  font-weight: 700;
  color: var(--orange);
}

.trophies { display: flex; flex-wrap: wrap; gap: 0.28rem; margin-top: 0.28rem; }
.trophy {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.trophy .cup { font-size: 0.78rem; line-height: 1; }
.path-chips { display: flex; flex-wrap: wrap; gap: 0.28rem; margin-top: 0.28rem; }
.path-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.4rem;
  border-radius: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.trophy.champ { background: rgba(251, 191, 36, 0.15); border-color: #fbbf24; color: var(--gold); }
.trophy.final { background: rgba(203, 213, 225, 0.1); border-color: #94a3b8; color: var(--silver); }
.trophy.sf { background: var(--orange-soft); border-color: var(--orange-deep); color: #fdba74; }

.pills { display: flex; flex-wrap: wrap; gap: 0.28rem; }
.pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
.pill.coppell { border-color: #334155; }
.pill.wiseman { border-color: #3f2a12; color: #fdba74; }
.pill.both {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: #fdba74;
  font-weight: 700;
}

.no-games .form-col { display: none; }

.form { display: flex; gap: 0.2rem; }
.form .dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: Oswald, sans-serif;
}
.form .dot.w { background: #15803d; color: #fff; }
.form .dot.d { background: #52525b; color: #fff; }
.form .dot.l { background: #EF3936; color: #fff; }

tbody tr.divider td {
  background: #EF3936;
  color: #fff;
  font-family: Oswald, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.48rem 0.7rem;
  border-bottom: 1px solid #EF3936;
  border-top: 1px solid #EF3936;
  cursor: default;
  white-space: nowrap;
}
tbody tr.divider { pointer-events: none; }

.cards { display: none; }
.table-wrap[hidden],
.cards[hidden],
.pick-bar[hidden],
.club-bar[hidden],
.backdrop[hidden],
.drawer[hidden],
.sheet[hidden],
.empty[hidden],
.toast[hidden] {
  display: none !important;
}

.empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--muted);
}
.empty h2 {
  font-family: Oswald, sans-serif;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.played-events {
  margin: 0.15rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.weekend-line {
  margin: 0.15rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.goals-line {
  margin: 0.05rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.flight-line {
  margin: 0.05rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.flight-changed {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.4rem;
  border-radius: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange-deep);
  background: var(--orange-soft);
}
.compare-kv .flight-changed { margin-left: 0.35rem; vertical-align: middle; }
.game-event {
  font-family: Oswald, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0.85rem 0 0.35rem;
}
.game-history .game-event:first-of-type { margin-top: 0.35rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem 1.4rem;
  color: var(--dim);
  font-size: 0.78rem;
  text-align: center;
  background: #FFFFFF;
}
.site-footer strong { color: var(--orange); font-weight: 600; }
.quiet-badge {
  display: inline-block;
  margin: 0 0.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: 0;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 50;
}
.backdrop[hidden] { display: none; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: #FFFFFF;
  border-left: 1px solid var(--line);
  z-index: 60;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,0.12);
  overflow: hidden;
}
.drawer[hidden] { display: none; }

.drawer-head, .sheet-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem 0.2rem;
  flex-shrink: 0;
}
.sheet-head { justify-content: space-between; }
.sheet-head h2 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--orange); color: var(--orange); }

.drawer-body, .sheet-body {
  overflow: auto;
  padding: 0.4rem 1rem 1.5rem;
  flex: 1;
}

.story-title {
  font-family: Oswald, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.story-sub { color: var(--muted); font-size: 0.82rem; margin: 0 0 0.7rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin: 0.7rem 0 1rem;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.45rem 0.5rem;
  text-align: center;
}
.stat .k {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.stat .v {
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}
.stat .v.rating { color: var(--orange); }

.drawer-actions {
  display: flex;
  gap: 0.5rem;
  margin: 0.4rem 0 0.9rem;
}
.drawer-actions button, .story-btn {
  flex: 1;
  min-height: 40px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.drawer-actions button.primary {
  background: #EF3936;
  color: #fff;
  border-color: #EF3936;
  border-radius: 0;
}

.callout-up {
  background: #fff;
  border: 1px solid #EF3936;
  color: #000;
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  margin: 0 0 0.75rem;
}
.callout-up strong { color: var(--gold); }

.game-history h3, .note-card h3 {
  margin: 0 0 0.45rem;
  font-family: Oswald, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}
.games-empty { color: var(--muted); font-size: 0.82rem; margin: 0 0 0.4rem; }

.game-line {
  display: grid;
  grid-template-columns: 1.6rem minmax(3.6rem, auto) 1fr;
  gap: 0.35rem 0.55rem;
  align-items: start;
  padding: 0.45rem 0.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}
.g-res {
  font-weight: 800;
  text-align: center;
  font-family: Oswald, sans-serif;
  font-size: 0.72rem;
  padding-top: 0.12rem;
}
.g-res.w { color: var(--green); }
.g-res.l { color: var(--red); }
.g-res.d { color: var(--muted); }
.g-res.na { color: var(--dim); font-weight: 500; }
.g-score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}
.g-opp { font-weight: 500; min-width: 0; }
.g-meta {
  grid-column: 2 / -1;
  color: var(--dim);
  font-size: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.45rem;
  align-items: center;
}
.g-kind {
  font-size: 0.68rem;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.08rem 0.4rem;
  white-space: nowrap;
}
.g-kind.championship { color: var(--gold); border-color: #fbbf24; }
.g-kind.placement { color: #fdba74; border-color: var(--orange-deep); }
.g-upset {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.68rem;
}

.note-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
  margin-top: 0.65rem;
}
.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: pre-wrap;
}

.sheet {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 1.5rem));
  max-height: min(86vh, 640px);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.sheet[hidden] { display: none; }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: start;
}
.compare-col h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.3;
}
.compare-vs {
  font-family: Oswald, sans-serif;
  color: var(--orange);
  font-weight: 800;
  padding-top: 1.4rem;
}
.compare-kv {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.2rem 0.5rem;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}
.compare-kv .k { color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; font-weight: 600; }
.compare-h2h { margin-top: 1rem; }
.compare-h2h h3 {
  font-family: Oswald, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.4rem;
}

.compare-common { margin-top: 1rem; }
.compare-common h3 {
  font-family: Oswald, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.5rem;
}
.common-opp {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.45rem;
  background: var(--panel);
}
.common-opp-name {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.28rem;
}
.common-opp-scores {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.common-opp-scores .k {
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 0.2rem;
}
.common-vs {
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.common-opp-scores .edge {
  color: var(--text);
  font-weight: 700;
}
.common-score { font-variant-numeric: tabular-nums; }
.common-ev {
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.common-opp-edge {
  margin-top: 0.28rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
}

.team-card {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.65rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.55rem;
  cursor: pointer;
  min-height: 72px;
}
.team-card:hover, .team-card.open { border-color: var(--orange); background: rgba(239, 57, 54, 0.08); }
.team-card.unranked { opacity: 0.78; }
.team-card.gold { box-shadow: inset 3px 0 0 var(--gold); }
.team-card.silver { box-shadow: inset 3px 0 0 var(--silver); }
.team-card.bronze { box-shadow: inset 3px 0 0 var(--bronze); }
.card-rank { display: flex; align-items: flex-start; justify-content: center; padding-top: 0.15rem; }
.card-name { font-weight: 700; line-height: 1.3; }
.card-meta { color: var(--muted); font-size: 0.75rem; margin-top: 0.12rem; }
.card-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-top: 0.4rem;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}
.flight-label {
  font-family: Oswald, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  padding: 0.45rem 0.2rem 0.35rem;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #111;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 0;
  z-index: 80;
  font-size: 0.82rem;
}
.toast[hidden] { display: none; }

/* method page */
.method-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}
.method-wrap h1 { margin: 0.4rem 0 0.6rem; }
.method-wrap h2 {
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 1.6rem 0 0.5rem;
}
.method-wrap p, .method-wrap li { color: #000; }
.method-wrap ul { padding-left: 1.2rem; }
.callout {
  background: var(--orange-soft);
  border: 1px solid var(--orange-deep);
  border-radius: 0;
  padding: 0.85rem 1rem;
  color: #000;
}

@media (max-width: 980px) {
  .filters-inner {
    grid-template-columns: 1fr 1fr;
  }
  .search-field, .club-field, .meta, .compare-field, .mine-field { grid-column: 1 / -1; }
  .header-inner { flex-direction: column; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-vs { padding-top: 0; text-align: center; }
}

@media (max-width: 700px) {
  .filters-inner {
    grid-template-columns: 1fr 1fr;
    padding: 0.65rem 0.9rem;
  }
  .event-bar-inner { padding: 0 0.9rem; gap: 0.65rem; }
  .all-tab { font-size: 0.78rem; letter-spacing: 0.03em; }
  .event-select-label { display: none; }
  .search-field, .club-field, .meta, .compare-field, .mine-field { grid-column: 1 / -1; }
  main { padding: 0.85rem 0.9rem 5rem; }
  .table-wrap { display: none; }
  .cards { display: block; }
  .drawer { width: 100%; }
  .header-inner { padding: 0.7rem 0.9rem 0.8rem; }
  h1 { font-size: 1.12rem; }
  .subhead { font-size: 0.75rem; }
  .pick-bar { padding: 0.5rem 0.9rem; }
  .club-bar {
    flex-wrap: wrap;
    padding: 0.5rem 0.9rem;
  }
  #club-sheet {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

.team-row.picked td,
.team-card.picked {
  background: rgba(239, 57, 54, 0.12);
  outline: 1px solid rgba(249, 115, 22, 0.55);
}
.team .form { margin-top: 0.32rem; }
.place-cell .trophies { margin-top: 0; }
.form-cell { min-width: 6.4rem; }
.form .dot { cursor: default; }
.drawer-head { justify-content: flex-end; }
.share-line {
  color: var(--dim);
  font-size: 0.72rem;
  margin: 0.15rem 0 0.5rem;
}
.g-score.w { color: var(--green); }
.g-score.l { color: var(--red); }
.g-score.d { color: var(--muted); }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  justify-content: center;
  align-items: center;
}
@media (max-width: 700px) {
  .cards:not([hidden]) { display: block; }
  .table-wrap:not([hidden]) { display: none; }
}

.place-cell .place,
span.place {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
span.place.champ { background: rgba(251, 191, 36, 0.15); border-color: #fbbf24; color: var(--gold); }
span.place.final { background: rgba(203, 213, 225, 0.1); border-color: #94a3b8; color: var(--silver); }
span.place.sf { background: var(--orange-soft); border-color: var(--orange-deep); color: #fdba74; }

/* —— parent / kid polish: club, pin, headline, phone cards —— */
.club-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.1rem 0.48rem;
  border-radius: 0;
  border: 1px solid #ebebeb;
  background: #F3F3F3;
  color: #000;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team .club-chip { margin-top: 0.28rem; }
.card-chips:empty { display: none; }
.card-chips .pills { display: contents; }
.card-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.32rem;
}
.headline {
  margin: 0.15rem 0 0.45rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}
.card-headline {
  margin: 0.18rem 0 0;
  color: #000;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.form-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  margin: 0.15rem 0 0.75rem;
}
.form-dots-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.form-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.form-detail {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}
.compare-col .form-line { margin-top: 0.2rem; }
.compare-col .form-detail { margin: 0.15rem 0 0.35rem; }
.form-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  white-space: nowrap;
}
.drawer-body .form .dot {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.64rem;
}

.pin-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pin-btn:hover { border-color: var(--gold); color: var(--gold); }
.pin-btn.on {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}
.pin-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
}
.card-copy { min-width: 0; flex: 1; }

.team-row.mine td {
  background: rgba(251, 191, 36, 0.08);
}
.team-row.mine td:first-child {
  box-shadow: inset 3px 0 0 var(--gold);
}
.team-card.mine {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.07);
}
.mine-flag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.04rem 0.38rem;
  border-radius: 0;
  background: rgba(251, 191, 36, 0.16);
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.btn-compare:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-compare.active.mine-on,
#mine-btn.active {
  border-color: var(--gold);
  color: var(--gold);
}

.drawer-actions { flex-wrap: wrap; }
.drawer-actions button { min-width: 0; }
.drawer-actions button.pin-act.on {
  border-color: var(--gold);
  color: #111;
  background: var(--gold);
}

.story-sub .club-chip { margin-left: 0.15rem; }
.drawer-club { margin: 0 0 0.55rem; }

@media (max-width: 700px) {
  .team-card {
    grid-template-columns: 3.25rem 1fr;
    gap: 0.7rem;
    padding: 0.9rem 0.9rem 1rem;
    min-height: 88px;
    margin-bottom: 0.7rem;
  }
  .card-rank { padding-top: 0.05rem; }
  .card-rank .medal {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1.05rem;
  }
  .card-rank .rank-num {
    font-size: 1.45rem;
    letter-spacing: 0.02em;
  }
  .card-name { font-size: 1.05rem; }
  .card-headline {
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
    margin-top: 0.22rem;
  }
  .card-meta { font-size: 0.78rem; margin-top: 0.18rem; }
  .pin-btn { width: 44px; height: 44px; font-size: 1.2rem; }
  .form .dot {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
  }
  .trophies { margin-top: 0.42rem; gap: 0.32rem; }
  .trophy {
    font-size: 0.78rem;
    padding: 0.2rem 0.58rem;
  }
  .club-chip { font-size: 0.74rem; padding: 0.14rem 0.55rem; }
  .card-stats { margin-top: 0.5rem; gap: 0.5rem 0.85rem; font-size: 0.9rem; }
  .drawer-body .form .dot {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
  }
  .headline { font-size: 1rem; }
}

@media (min-width: 981px) {
  .mine-field { min-width: 7.5rem; }
}

button.club-chip {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
button.club-chip:hover,
button.club-chip:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
}
button.club-chip:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.club-sheet-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 0.65rem;
}
.club-pool-label {
  font-family: Oswald, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin: 0.85rem 0 0.15rem;
}
.club-pool:first-of-type .club-pool-label { margin-top: 0.35rem; }
.club-team {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.15rem 0.65rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  padding: 0.55rem 0.2rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
}
.club-team:hover,
.club-team:focus-visible {
  background: var(--orange-soft);
}
.club-team:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.club-team-rank {
  font-family: Oswald, sans-serif;
  font-weight: 700;
  color: var(--orange);
  padding-top: 0.12rem;
  font-variant-numeric: tabular-nums;
}
.club-team-copy { min-width: 0; }
.club-team-name {
  font-weight: 600;
  line-height: 1.3;
}
.club-team-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

@media (min-width: 981px) {
  .club-field select { min-width: 10rem; max-width: 18rem; }
}

.also-as {
  margin: 0.15rem 0 0.35rem;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 500;
}
.pk-note {
  margin: 0.45rem 0 0.15rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0;
  border: 1px dashed #475569;
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.35;
}
.g-pk {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.08rem 0.38rem;
  border-radius: 0;
  border: 1px dashed #64748b;
  color: #cbd5e1;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Rewards */
.rewards-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 4rem;
}
.rewards-lead {
  margin: 0 0 1.25rem;
  color: #444;
  max-width: 40rem;
}
.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.prize-card {
  border: 1px solid #ebebeb;
  background: #fff;
  padding: 1.1rem 1.15rem 1.2rem;
  min-height: 12rem;
}
.prize-card.locked {
  background: #F3F3F3;
}
.prize-card h2 {
  margin: 0 0 0.35rem;
  font-family: Oswald, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prize-card p {
  margin: 0 0 0.85rem;
  color: #444;
  font-size: 0.88rem;
}
.prize-status {
  display: inline-block;
  font-family: Oswald, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  background: #EF3936;
  color: #fff;
}
.prize-card.locked .prize-status {
  background: #000;
  color: #fff;
}
.prize-teams {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}
.prize-teams li { margin: 0.2rem 0; }

.prize-card.ice {
  grid-column: 1 / -1;
}
.prize-card.ice .prize-teams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.35rem 1.4rem;
  margin-top: 0.85rem;
}
.prize-meta {
  display: block;
  color: #666;
  font-size: 0.78rem;
  font-weight: 400;
}
.prize-teams strong {
  font-weight: 700;
}

.g-kind.friendly { color: #666; border-color: #ccc; }
.g-kind.group { color: #444; border-color: #ccc; }
.nearest-label {
  margin: 0.85rem 0 0.35rem;
  font-family: Oswald, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

.path-line {
  margin: 0.2rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}
.path-block {
  margin: 0.15rem 0 0.35rem;
}
.path-block > summary {
  cursor: pointer;
  list-style: none;
}
.path-block > summary::-webkit-details-marker { display: none; }
.path-block > summary::after {
  content: " ▾";
  color: var(--dim);
  font-size: 0.7rem;
}
.path-detail {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}
.team-card .path-line {
  font-size: 0.74rem;
  margin: 0.15rem 0 0.25rem;
}
.compare-col .path-line { margin-top: 0.2rem; }
.compare-col .path-detail { margin: 0.15rem 0 0.35rem; }

.chase-line {
  margin: 0.15rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}
.team .chase-line {
  margin: 0.1rem 0 0.2rem;
  font-size: 0.72rem;
}
.team-card .chase-line {
  font-size: 0.74rem;
}

.rematch-line {
  margin: 0.35rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.rival-line {
  margin: 0.05rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}
