/* eyeball brand (brand/BRAND.md): one night theme by design.
   night #0F1A14 · chalk #F2EFE6 · emerald #129A55 · muted #A7B3A9 */
:root {
  --night: #0F1A14;
  --bg: #0F1A14;
  --card: #16241B;
  --raised: #1E2F24;
  --ink: #F2EFE6;
  --muted: #A7B3A9;
  --line: #2A3D31;
  --accent: #129A55;
  --accent-soft: #123826;
  --must: #129A55;
  --must-soft: #123826;
  --fav: #E8B931;
  --gold: #E8B931;
  --rec: #E0A33B;
  --bar: #2A3D31;
  --live: #FF6B5E;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.wrap { max-width: 760px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { text-wrap: balance; }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.wordmark.small { font-size: 1em; }
.sub { margin: 0; color: var(--muted); font-size: 0.82rem; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Landing */
.landing { min-height: 100%; display: grid; place-items: center; padding: max(32px, env(safe-area-inset-top, 0px)) 20px 48px; }
.landing-inner { max-width: 560px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.landing-logo { width: min(220px, 56vw); height: auto; }
.wordmark.big { font-size: clamp(3rem, 14vw, 5.2rem); margin: 4px 0 0; }
.tagline { margin: 0; font-size: 1.15rem; font-weight: 500; }
.pitch { margin: 0; color: var(--muted); max-width: 46ch; }
.facts { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; display: grid; gap: 2px; }
.facts strong { font-size: 0.95rem; }
.facts span { color: var(--muted); font-size: 0.8rem; }
.landing-cta { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin-top: 6px; }
.secondary { font: inherit; font-weight: 600; cursor: pointer; width: 100%; padding: 12px; border-radius: 10px; background: transparent; color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts li { grid-template-columns: auto 1fr; gap: 10px; text-align: left; align-items: baseline; } }

/* App bar */
.appbar { position: sticky; top: 0; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.appbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand-link { all: unset; display: flex; align-items: center; gap: 9px; cursor: pointer; color: var(--ink); }
.brand-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.brand-link .wordmark { font-size: 1.6rem; }
.appbar-tools { display: flex; align-items: center; gap: 8px; }
.tool { display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 0.85rem; cursor: pointer; }
.tool select { border: none; background: transparent; color: var(--ink); font: inherit; max-width: 7.5em; cursor: pointer; }
.fav-btn { color: var(--gold); font-weight: 600; }

/* Controls under the app bar */
.controls-area { display: grid; gap: 12px; padding-block: 14px 4px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.tabs button { font: inherit; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.1rem; padding: 12px; border-radius: 10px; border: none; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--night); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.sort { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.sort button { font: inherit; font-size: 0.85rem; padding: 5px 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.sort button[aria-pressed="true"] { background: var(--ink); color: var(--night); font-weight: 600; }
.sort button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-btn { font: inherit; font-size: 0.88rem; display: flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.comps-actions { display: flex; gap: 16px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit; font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.day h2 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin: 24px 0 8px;
}
.empty { color: var(--muted); padding: 32px 0; text-align: center; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}
.card.must { border: 2px solid var(--must); }
.card.rec { border-color: var(--rec); }
.card.fav { border: 2px solid var(--gold); }
.card.must.fav { border-color: var(--must); box-shadow: 0 0 0 2px var(--gold); }
.card > button {
  all: unset; box-sizing: border-box; width: 100%;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  padding: 12px 14px; cursor: pointer;
}
.card > button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px; }
.meta { font-size: 0.78rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.teams { font-weight: 650; font-size: 1.02rem; grid-column: 1; }
.teams .fav { color: var(--fav); }
.story { grid-column: 1 / -1; color: var(--muted); font-size: 0.88rem; }
.story.both { text-align: center; color: var(--ink); font-weight: 500; }

/* Home | away: each team over the facts about it, a line between */
.versus { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 12px; align-items: start; }
.vs-side { display: grid; gap: 8px; justify-items: center; text-align: center; min-width: 0; }
.vs-team { display: grid; gap: 6px; justify-items: center; }
.vs-team .crest { width: 40px; height: 40px; }
.crest-gap { height: 40px; }
.vs-name { font-weight: 650; font-size: 1rem; display: block; text-wrap: balance; overflow-wrap: anywhere; }
.vs-name .pos { display: inline-block; margin-left: 6px; vertical-align: 2px; }
.vs-name.fav { color: var(--fav); }
.vs-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.82rem; line-height: 1.35; color: var(--muted); }
.vs-line { align-self: stretch; display: grid; place-items: center; position: relative; min-height: 100%; }
.vs-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.vs-line span { position: relative; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); background: var(--card); padding: 4px 0; align-self: start; margin-top: 12px; }
.vs-line .vs-mid.scored { font-size: 1.25rem; font-weight: 750; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; padding: 2px 0; margin-top: 6px; }
.versus.compact { margin-top: 10px; }
.form-bar { display: inline-flex; gap: 4px; }
.form-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.form-bar .W { background: #2FBF71; }
.form-bar .D { background: #B9C2BB; }
.form-bar .L { background: #E5534B; }
.versus.compact .vs-name { font-size: 0.85rem; }
.centred { text-align: center; }
.score {
  grid-row: 1; grid-column: 2;
  align-self: start;
  min-width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 750; font-size: 1.25rem; font-variant-numeric: tabular-nums;
  background: var(--raised); color: var(--ink);
}
.must .score { background: var(--must-soft); color: var(--must); }
.badge {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 7px; border-radius: 6px;
  background: var(--must); color: var(--night);
}

.breakdown { padding: 0 14px 14px; border-top: 1px dashed var(--line); }
.row { display: grid; grid-template-columns: 7.5em 1fr 3.2em; gap: 10px; align-items: center; margin-top: 10px; font-size: 0.85rem; }
.row .name { color: var(--muted); }
.row .pts { text-align: right; font-variant-numeric: tabular-nums; }
.track { height: 8px; background: var(--bar); border-radius: 4px; overflow: hidden; }
.fill { height: 100%; background: var(--accent); border-radius: 4px; }
.row .why { grid-column: 2 / -1; font-size: 0.78rem; color: var(--muted); margin-top: -4px; }
.extras { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }

dialog {
  border: none; border-radius: 16px; padding: 0;
  width: min(440px, calc(100vw - 32px)); max-height: min(640px, 85vh);
  background: var(--card); color: var(--ink);
}
dialog::backdrop { background: rgb(0 0 0 / 0.4); }
.fav-panel { display: flex; flex-direction: column; padding: 16px; gap: 10px; max-height: inherit; }
.fav-head { display: flex; justify-content: space-between; align-items: center; }
.fav-head h2 { margin: 0; font-size: 1.1rem; }
.close { all: unset; cursor: pointer; font-size: 1.5rem; line-height: 1; padding: 4px 8px; color: var(--muted); }
.hint { margin: 0; color: var(--muted); font-size: 0.82rem; }
#fav-search {
  font: inherit; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.fav-list { overflow-y: auto; display: flex; flex-direction: column; }
.fav-list label { display: flex; gap: 10px; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.fav-list input { accent-color: var(--fav); width: 18px; height: 18px; }

.foot { color: var(--muted); font-size: 0.78rem; padding-block: 32px; }

/* Live scores */
.live {
  grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; justify-content: center;
  font-size: 0.85rem; font-variant-numeric: tabular-nums;
}
.live-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 6px;
  background: var(--bar); color: var(--ink);
}
.live.on .live-tag { background: var(--live); color: #fff; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .live.on .live-tag { animation: none; } }

.centre { padding: 12px 14px 4px; border-top: 1px dashed var(--line); }
.events { list-style: none; margin: 0 0 10px; padding: 0; font-size: 0.86rem; }
.events li { display: flex; gap: 8px; padding: 3px 0; }
.events li.away { flex-direction: row-reverse; text-align: right; }
.events .min { color: var(--muted); min-width: 3.2em; font-variant-numeric: tabular-nums; }
.stats { width: 100%; border-collapse: collapse; font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.stats th, .stats td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
.stats thead th { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.stats thead th:first-child, .stats td:first-child { text-align: left; }
.stats thead th:last-child, .stats td:last-child { text-align: right; }
.stats tbody th { font-weight: 500; color: var(--muted); text-align: center; }
.quiet { color: var(--muted); font-size: 0.78rem; margin: 6px 0; }

/* Where to watch */
.watch { grid-column: 1 / -1; font-size: 0.8rem; color: var(--muted); }
.watch-detail { margin: 0; padding: 10px 14px 0; font-size: 0.85rem; }
.watch-detail a { color: var(--accent); }

/* Recommended tier */
.badge.rec { background: transparent; color: var(--rec); border: 1px solid var(--rec); }
.card.rec .score { background: #3a2c12; color: var(--rec); }
.must .score { background: var(--must); color: var(--night); }
.mult { color: var(--accent); font-weight: 600; }

/* My Feed */
.feed-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feed-btn {
  font: inherit; font-weight: 600; cursor: pointer; min-height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid var(--accent); color: var(--ink); background: var(--accent-soft);
  border-radius: 12px; padding: 8px 12px;
}
.feed-btn #feed-name, .feed-btn #style-name { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.feed-btn.on { background: var(--accent); color: var(--night); }
.feed-btn.on #feed-name, .feed-btn.on #style-name { color: var(--night); }
.quiz-cta {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 4px; width: 100%;
  padding: 14px; border-radius: 12px; background: var(--accent); color: #fff;
}
.quiz-cta span { font-size: 0.85rem; opacity: 0.9; }
.quiz-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.feed-sub { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 16px 0 8px; }
.wrap-chips { flex-wrap: wrap; overflow: visible; }
.slider { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.slider-head { display: flex; justify-content: space-between; font-size: 0.9rem; }
.slider-head output { color: var(--accent); font-size: 0.82rem; font-weight: 600; }
.slider input { width: 100%; accent-color: var(--accent); }
.slider .hint { font-size: 0.75rem; color: var(--muted); }
#feed-main, #quiz { overflow-y: auto; }
.quiz-step { color: var(--muted); font-size: 0.8rem; margin: 0; }
.quiz-bar { height: 4px; background: var(--bar); border-radius: 2px; margin: 8px 0 12px; overflow: hidden; }
.quiz-bar div { height: 100%; background: var(--accent); }
#quiz h3 { margin: 0 0 12px; font-size: 1.1rem; }
.answer {
  display: block; width: 100%; text-align: left; font: inherit; cursor: pointer;
  padding: 12px; margin-bottom: 8px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.answer:hover { border-color: var(--accent); }
.primary { font: inherit; font-weight: 650; cursor: pointer; width: 100%; padding: 12px; border: none; border-radius: 10px; background: var(--accent); color: #fff; margin-top: 8px; }
.link { all: unset; cursor: pointer; display: block; text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 10px; text-decoration: underline; }
.profile { font-size: 1.4rem !important; color: var(--accent); }
.picks { padding-left: 1.2em; margin: 4px 0 8px; }
#feed-main { padding-right: 6px; }

/* Tabs */
.tabs { display: flex; gap: 4px; padding-top: 12px; padding-bottom: 8px; }
.tabs button {
  font: inherit; font-weight: 600; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: var(--muted);
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

/* Results */
.results-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 14px; }
#search {
  flex: 1; min-width: 12em; font: inherit; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.spoiler { display: flex; gap: 6px; align-items: center; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.result-line {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center;
  font-size: 0.98rem;
}
.result-line .side.away { text-align: right; }
.result-line .won { font-weight: 700; }
.result-score { font-weight: 750; font-variant-numeric: tabular-nums; padding: 2px 10px; border-radius: 8px; background: var(--bar); }
.result-score.veiled { color: var(--muted); }
.more { display: block; margin: 16px auto; font: inherit; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }

/* Club badges */
.team { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; }
.crest { width: 28px; height: 28px; object-fit: contain; flex: none; filter: drop-shadow(0 0 1px rgba(242, 239, 230, 0.55)); }
.pos { font-size: 0.7rem; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 1.7em; padding: 1px 4px; text-align: center; border-radius: 4px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); line-height: 1.4; }
.result-line .side.away .team { justify-content: flex-end; }
.result-line .side { min-width: 0; }
.teams { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }

/* My Style */
.style-btn { border-color: var(--rec); background: #2e2512; }
.style-btn.on { background: var(--rec); color: var(--night); }
.style-cta { background: var(--rec); }
.styles-line { font-size: 0.8rem; color: var(--muted); margin: 10px 0 0; }
.clash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 0.9rem; }
.clash input { width: 18px; height: 18px; accent-color: var(--rec); margin-top: 2px; }
.link.inline { display: inline; margin: 0; }
#style-main, #style-quiz { overflow-y: auto; padding-right: 6px; }

/* Frozen pre-match score on results */
.interest { margin-left: auto; font-weight: 750; font-variant-numeric: tabular-nums; font-size: 0.8rem;
  padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.interest.must { background: var(--must-soft); color: var(--must); }
.interest.rec { background: #3a2c12; color: var(--rec); }
.before { margin: 0 0 10px; font-size: 0.86rem; }
.quiet.block { display: block; margin-top: 2px; }
.card.result .meta { width: 100%; }

/* My team tab */
.tm-picker { display: grid; gap: 8px; padding-top: 14px; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-chip { font: inherit; font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.tm-chip .crest { width: 22px; height: 22px; }
.tm-chip[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.tm-chip.other { color: var(--muted); }
.tm-search { display: grid; gap: 8px; padding-top: 12px; }
#team-search { font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.tm-header { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 22px 0 6px; }
.tm-crest { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 0 1px rgba(242, 239, 230, 0.55)); }
.tm-name { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.8rem; margin: 0; text-wrap: balance; }
.tm-place { margin: 0; color: var(--muted); }
.tm-place strong { color: var(--ink); }
.tm-header .form-bar .dot { width: 12px; height: 12px; }
.tm-section { margin-top: 22px; }
.tm-section > h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; }
.tm-story { margin: 0; padding: 14px 16px 14px 32px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 6px; }
.tm-list { list-style: none; margin: 0; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.tm-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.tm-list li:last-child { border-bottom: 0; }
.tm-list .quiet { font-size: 0.8rem; }
.tm-list .interest { margin-left: auto; }
.block { flex-basis: 100%; }
.res { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 4px; border-radius: 5px; font-size: 0.72rem; font-weight: 700; color: var(--night); }
.res.W { background: #2FBF71; } .res.D { background: #B9C2BB; } .res.L { background: #E5534B; color: #fff; }
.tm-tally { display: flex; gap: 6px; align-items: center; margin: 0 0 8px; }
.tm-when { font-variant-numeric: tabular-nums; min-width: 6.5em; color: var(--muted); }
.delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.delta.up { color: #2FBF71; } .delta.down { color: #E5534B; }
.tm-table-wrap { overflow-x: auto; }
.tm-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 0.9rem; }
.tm-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.tm-table tr:last-child td { border-bottom: 0; }
.tm-table tr.me td { background: var(--raised); font-weight: 650; }
.tm-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5em, 1fr)); gap: 8px; margin: 0; }
.tm-numbers div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tm-numbers dt { font-size: 0.75rem; color: var(--muted); }
.tm-numbers dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15em, 1fr)); gap: 10px; }
.tm-players { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.tm-players h3 { margin: 0 0 6px; font-size: 0.95rem; }
.tm-players ol { margin: 0; padding-left: 1.3em; display: grid; gap: 5px; font-size: 0.88rem; }
.tm-players li > span:first-child { margin-right: 6px; }
.tm-players li strong { float: right; font-variant-numeric: tabular-nums; }
.tm-cal { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.tm-cal summary { cursor: pointer; font-weight: 600; }
.tm-cal[open] { display: grid; gap: 10px; }
.tm-fixture { padding: 12px 14px; display: grid; gap: 6px; }
.cal-links { display: grid; gap: 8px; }
.cal-link { display: block; text-align: center; font: inherit; font-size: 0.92rem; font-weight: 600; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.cal-link.primary { background: var(--accent); border-color: var(--accent); }
.cal-link:focus-visible, .team-pick:focus-visible, .tm-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.team-pick { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.team-pick .crest { width: 24px; height: 24px; grid-row: span 2; }
.team-pick .quiet { grid-column: 2; font-size: 0.75rem; }
.crest-gap.small { width: 24px; height: 24px; grid-row: span 2; }
