@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --body: light-dark(#f1f1e9, #101411);
  --surface: light-dark(#fafbf6, #191e19);
  --surface-muted: light-dark(#edf0e7, #20271f);
  --raised: light-dark(#e3e8da, #2d352b);
  --ink: light-dark(#20251c, #f6f7ec);
  --muted: light-dark(#4e594a, #b8c1b2);
  --subtle: light-dark(#586350, #9ba795);
  --line: light-dark(#cbd1c2, #40483c);
  --soft-line: light-dark(#dce1d4, #30382d);
  --accent: #c4fa53;
  --highlight: light-dark(#3c6411, #c4fa53);
  --accent-ink: #142008;
  --green: light-dark(#386813, #b6e383);
  --green-bg: light-dark(#e2f0ce, #283725);
  --red: light-dark(#9d372b, #ffaa96);
  --amber: light-dark(#745011, #f3c783);
  --amber-bg: light-dark(#f8edcf, #3a3021);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
  --gutter: clamp(1rem, 3.9vw, 3.5rem);
  --max: 88rem;
  --radius: 5px;
  --panel-inset: clamp(1.15rem, 2.15vw, 1.85rem);
  --row-space: 1.05rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--body);
  scrollbar-color: var(--subtle) var(--surface);
}
:root[data-accent="sky"] {
  --accent: #82ddff;
  --highlight: light-dark(#056180, #82ddff);
  --accent-ink: #062630;
}
:root[data-accent="coral"] {
  --accent: #ff9e85;
  --highlight: light-dark(#974027, #ff9e85);
  --accent-ink: #30120a;
}
:root[data-density="compact"] { --panel-inset: 1rem; --row-space: .6rem; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="system"] { color-scheme: light dark; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; font-size: 1rem; line-height: 1.5; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: progress; }
input, select, button { max-width: 100%; }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 4px; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  border-radius: 5px;
  color: #111820;
  background: var(--accent);
}
.icon {
  display: block;
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.masthead {
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid #383e37;
  background: #111512;
  color: #f3f6ed;
}
.masthead-inner {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(1.3rem, 3vw, 3.25rem);
  max-width: var(--max);
  min-height: 72px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .45rem;
  color: #f5f6e9;
  font: italic 700 2.05rem/.95 var(--display);
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand-mark { flex: none; width: 2.05rem; height: 2.05rem; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: #151c11; }
.site-nav { display: flex; align-items: stretch; align-self: stretch; gap: clamp(.75rem,1.8vw,1.65rem); }
.site-nav a {
  display: inline-flex;
  position: relative;
  align-items: center;
  padding-inline: .12rem;
  min-height: 44px;
  color: #b6c1b1;
  font-size: .9rem;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: transparent;
  content: "";
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #f4f9ec; }
.site-nav a[aria-current="page"]::after { background: var(--accent); }
.masthead :focus-visible { outline-color: var(--accent); outline-offset: -3px; }
.masthead-tools, .day-stamp { display: flex; align-items: center; }
.masthead-tools { gap: .6rem; }
.day-stamp { gap: .45rem; color: #b6bfb2; font-size: .78rem; font-weight: 550; white-space: nowrap; }
.day-stamp .icon { width: 15px; height: 15px; }
.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid #414b3e;
  border-radius: 50%;
  background: transparent;
  color: #edeee7;
}
.icon-button:hover { background: #2d352a; }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:disabled .icon { animation: spin 1.1s linear infinite; }
.membership-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 40px;
  margin-left: .15rem;
  padding: .5rem .92rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .88rem;
  font-weight: 760;
  text-decoration: none;
}
.membership-trigger:hover { background: color-mix(in srgb,var(--accent) 84%, white); }
.membership-trigger[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
.masthead .membership-trigger:focus-visible { outline-color: #151c13; }
@keyframes spin { to { transform: rotate(360deg); } }

main {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(1.25rem, 2.2vw, 2.15rem) var(--gutter) 2.5rem;
  outline: 0;
}
h1, h2, h3, p, dl { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.03; letter-spacing: -.014em; }
h3 { font-size: 1.05rem; line-height: 1.35; }
p { line-height: 1.55; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--green);
  font-size: .7rem;
  line-height: 1.4;
  letter-spacing: .135em;
  font-weight: 790;
  text-transform: uppercase;
}
.kicker::before { display: block; width: 22px; height: 3px; background: currentColor; content: ""; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0,1.65fr) minmax(14rem,.66fr);
  gap: clamp(1.5rem,4vw,4.5rem);
  min-height: clamp(18.5rem,24vw,22.5rem);
  overflow: hidden;
  padding: clamp(1.6rem,3.7vw,3.4rem);
  color: #f4f6e8;
  background: #132017 url("./assets/stadium.jpg") center 53%/cover;
  border-radius: var(--radius);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(91deg, #0b120df2 0%, #0c1813d4 29%, #0e171242 58%, #0c14121a 100%), linear-gradient(0deg,#0b120dc4 0%,#0b100905 70%);
  content: "";
}
.hero-inner { min-width: 0; align-self: center; }
.hero-inner:only-child { grid-column: 1/-1; }
.hero .kicker { color: var(--accent); font-size: .77rem; letter-spacing: .115em; }
.hero .kicker::before { width: 1.25rem; height: .45rem; transform: skewX(-21deg); }
.hero h1, .page-head h1 {
  margin: .65rem 0 .7rem;
  overflow-wrap: anywhere;
  text-wrap: balance;
  font-size: clamp(3.7rem,6.9vw,7rem);
  letter-spacing: -.035em;
  line-height: .92;
}
.hero h1 span { color: var(--accent); }
.hero p { color: #dce4d5; }
.hero .hero-meta { max-width: 38rem; margin-top: .5rem; font-size: 1.02rem; }
.hero-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; margin-top: 1.2rem; }
.hero-action, .hero-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .55rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 730 .88rem/1.3 var(--sans);
  text-decoration: none;
}
.hero-tools a { border-color: #b6c2b095; color: #fff; background: #0b140d88; }
.hero-action:hover, .settings-save:hover { background: color-mix(in srgb,var(--accent) 83%,white); }
.hero-tools a:hover { border-color: var(--accent); color: var(--accent); }
.hero-action:focus-visible, .hero-tools a:focus-visible { outline-color: white; }
.hero-feature {
  align-self: end;
  justify-self: end;
  width: min(100%,19rem);
  padding: 1rem 0 0 1rem;
  border-top: 1px solid #d7e3d280;
  border-left: 3px solid var(--accent);
  background: linear-gradient(100deg, #0d150ecd, #0c110c00);
}
.hero-cap, .hero-kickoff { color: var(--accent); }
.hero-cap { display: block; font-size: .73rem; font-weight: 770; text-transform: uppercase; letter-spacing: .11em; }
.hero .hero-kickoff { display: block; margin-top: .28rem; color: #e5ebde; font-size: .86rem; font-weight: 600; }
.hero .hero-event { display: block; margin: .33rem 0; color: #fbfdf3; font: 700 clamp(1.4rem,2.3vw,2.25rem)/1 var(--display); overflow-wrap: anywhere; }
.hero .hero-comp { display: block; color: #dce3d7; font-size: .82rem; }
.page-head { padding: .55rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.page-head h1 { font-size: clamp(3.2rem,6vw,5.75rem); }
.page-head p { max-width: 52rem; margin-top: .65rem; color: var(--muted); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin: 1.15rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat { min-width: 0; padding: var(--row-space) clamp(.85rem, 2.2vw, 2rem); }
.stat + .stat { border-left: 1px solid var(--soft-line); }
.stat dt {
  color: var(--muted);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.stat dd {
  margin: .28rem 0 0;
  font: 700 clamp(2.1rem, 3.6vw, 3.45rem)/1 var(--display);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  letter-spacing: -.015em;
}
.positive { color: var(--green); }
.negative { color: var(--red); }
.panel, .notice {
  min-width: 0;
  margin: 1.15rem 0;
  padding: var(--panel-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-bottom: 1.1rem;
}
.panel-head h2 { display: flex; align-items: center; gap: .55rem; }
.panel h2 .icon { color: var(--green); }
.panel-intro, .note { margin: .35rem 0 1rem; color: var(--muted); }
.note { font-size: .88rem; }
.text-link, button.link {
  color: var(--highlight);
  font-size: .86rem;
  font-weight: 690;
  text-underline-offset: 4px;
}
button.link { padding: .6rem 0; border: 0; background: transparent; text-decoration: underline; }
.text-link:hover, button.link:hover { text-decoration-thickness: 2px; }
.empty {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: clamp(1rem, 2vw, 1.65rem);
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}
.empty-icon {
  display: grid;
  flex: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green);
}
.empty-icon .icon { width: 25px; height: 25px; }
.empty p { max-width: 52ch; margin-top: .26rem; color: var(--muted); font-size: .92rem; }
.notice { display: flex; align-items: flex-start; gap: .9rem; }
.notice > .icon { margin-top: .13rem; color: var(--green); }
.notice > div { min-width: 0; }
.notice strong { font-size: 1.02rem; }
.notice p { margin-top: .4rem; color: var(--muted); font-size: .9rem; }

.muted, .sub, .meta, .loading { color: var(--muted); }
.sub, .meta { font-size: .82rem; }
.details { display: flex; flex-wrap: wrap; gap: .8rem 1.55rem; margin-top: .9rem; }
.details:empty { display: none; }
.details dt { color: var(--muted); font-size: .77rem; }
.details dd { margin: .15rem 0 0; font-size: .9rem; font-weight: 650; }
.ticket-list { display: grid; gap: .9rem; }
.ticket { min-width: 0; border-top: 1px solid var(--soft-line); padding-top: var(--row-space); }
.ticket header { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.ticket-head { min-width: 0; }
.ticket h3, .fixture h3 { margin-block: .28rem; overflow-wrap: anywhere; }
.ticket h3 { font-size: 1.16rem; }
.selection { color: var(--green); font-weight: 680; overflow-wrap: anywhere; }

.fixture p { color: var(--muted); font-size: .85rem; }
.fixture p.sub { margin-top: .3rem; }
.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .27rem .62rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.4;
}
.tag.confirmed { color: var(--green); background: var(--green-bg); border-color: color-mix(in srgb, var(--green) 38%, var(--surface)); }
.tag.waiting { color: var(--amber); background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 38%, var(--surface)); }
.coverage-note { margin-top: 1.05rem; padding-top: .8rem; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: .82rem; }
.coverage-note summary { width: fit-content; cursor: pointer; font-weight: 630; }
.coverage-note p, .coverage-note ul { margin-top: .55rem; }
.coverage-note ul { padding-left: 1.15rem; }

.controls, .settings-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.controls { margin: 0 0 1.05rem; }
.controls button, .settings-save, .settings-reset {
  min-height: 40px;
  padding: .48rem .9rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 630;
}
.controls button:hover, .settings-reset:hover { background: var(--raised); color: var(--ink); }
.controls button[aria-pressed="true"], .settings-save {
  border-color: var(--accent);
  background: var(--accent);
  color: #18200d;
  font-weight: 730;
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: right; font-variant-numeric: tabular-nums; }
th, td { padding: .84rem .7rem; border-bottom: 1px solid var(--soft-line); font-size: .92rem; white-space: nowrap; }
th { background: var(--surface-muted); color: var(--muted); font-size: .79rem; font-weight: 650; }
th:first-child, td:first-child { text-align: left; }
tbody th { background: transparent; color: var(--ink); font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: var(--surface-muted); }
.select-label { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .86rem; }
select, input[type="email"], input[type="text"], input[type="number"], input[type="password"] {
  min-height: 42px;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background-color: var(--surface-muted);
  color: var(--ink);
}
select {
  appearance: none;
  cursor: pointer;
  padding-inline-end: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23798473' stroke-width='1.8'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .65rem center;
  background-size: 1rem;
}
@media (forced-colors:active) { select { appearance:auto; } }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rules .panel { margin: 0; }
.rules p { margin-top: .65rem; color: var(--muted); }
.rules .icon { width: 26px; height: 26px; margin-bottom: 1rem; color: var(--green); }
.profit-chart { display: flex; gap: clamp(3px, 1.4vw, 1.2rem); margin: 1rem 0; padding: .6rem .5rem 0; }
.chart-col { flex: 1; min-width: 0; text-align: center; color: var(--muted); }
.chart-col small { display: block; margin-top: .4rem; font-size: .77rem; }
.chart-plot {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  height: 110px;
  background: linear-gradient(transparent calc(50% - 1px), var(--line) 50%, transparent 51%);
}
.chart-up, .chart-down { display: flex; justify-content: center; min-height: 0; }
.chart-up { align-items: flex-end; }
.chart-down { align-items: flex-start; }
.chart-up i, .chart-down i { display: block; width: 62%; max-width: 72px; min-height: 2px; background: var(--green); }
.chart-down i { background: var(--red); }
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: .78rem;
}
.loading { padding: 1.6rem 0; }

.settings-form { max-width: 66rem; }
.settings-section {
  min-width: 0;
  margin: 1rem 0;
  padding: clamp(1.15rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.settings-section h2 { margin-bottom: 1rem; }
.settings-section legend {
  padding-inline: .45rem;
  color: var(--ink);
  font: 700 1.65rem/1 var(--display);
  text-transform: uppercase;
}
.settings-section + .settings-section { margin-top: 1.25rem; }
.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.settings-field { display: grid; align-content: start; gap: .4rem; color: var(--ink); font-size: .88rem; font-weight: 650; }
.settings-field select, .settings-field input { width: 100%; }
.settings-section p, .settings-field small { color: var(--muted); font-size: .88rem; font-weight: 450; }
.league-options { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .8rem; }
.league-option { display: inline-flex; align-items: center; gap: .48rem; min-height: 40px; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-muted); font-size: .86rem; cursor: pointer; }
.league-option input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--green); }
.league-option:has(input:checked) { border-color: color-mix(in srgb, var(--green) 50%, var(--surface)); color: var(--green); }
.settings-actions { margin-top: 1.1rem; }

.settings-status { color: var(--muted); font-size: .88rem; }


/* The four figures read as a continuous scoreboard below the matchday photograph. */
.hero + .stats { margin: 0 0 1.7rem; border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
.hero:has(+ .stats) { border-radius: var(--radius) var(--radius) 0 0; }
.hero + .stats .stat { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.hero + .stats dt { max-width: 9rem; }
.hero + .stats dd { margin: 0; flex: none; }
.hero + .stats .stat:first-child { background: var(--accent); color: var(--accent-ink); }
.hero + .stats .stat:first-child dt { color: var(--accent-ink); }
.workspace-panels {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: clamp(1rem,1.8vw,1.6rem);
}
.workspace-panel { min-width: 0; }
.workspace-panel[data-panel="picks"], .workspace-panel[data-panel="fixtures"], .workspace-panel:only-child { grid-column: 1/-1; }
.workspace-panel .panel, .workspace-panel .notice { margin: 0; }
.workspace-panel .panel + .panel { margin-top: .9rem; }
.panel-head { padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: clamp(1.8rem,2.9vw,2.75rem); letter-spacing: -.025em; }
.workspace-panel .empty { border: none; border-left: 2px solid var(--line); border-radius: 0; }
.empty-icon { color: var(--highlight); }
.fixture-day {
  margin-top: 1.1rem;
  padding: .55rem .75rem;
  border-left: 3px solid var(--highlight);
  background: var(--surface-muted);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 745;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.fixture {
  display: grid;
  grid-template-columns: minmax(3.2rem,4.5rem) minmax(0,1fr) minmax(7.5rem,auto);
  gap: clamp(.65rem,1.8vw,1.65rem);
  align-items: start;
  min-width: 0;
  padding: var(--row-space) .45rem;
  border-bottom: 1px solid var(--soft-line);
}
.fixture:last-child { border-bottom: none; }
.fixture h3 { margin: .1rem 0; font-size: clamp(1.03rem,1.5vw,1.27rem); }
.fixture-time { padding-right: .35rem; color: var(--ink); font: 700 1.65rem/1.15 var(--display); font-variant-numeric: tabular-nums; }
.fixture .fixture-state { align-self: center; justify-self: end; text-align: right; }
.fixture-match h3 .muted { margin-inline: .12rem; color: var(--subtle); font-size: .81em; font-weight: 460; }
.fixture .sub { color: var(--muted); }
.workspace-panel[data-panel="desk"] .details, .workspace-panel[data-panel="feed"] .details {
  display: grid;
  gap: 0;
  margin: .5rem 0 0;
}
.workspace-panel .notice { height: 100%; }
.workspace-panel[data-panel="desk"] .details > div, .workspace-panel[data-panel="feed"] .details > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .55rem;
  border-bottom: 1px solid var(--soft-line);
}
.workspace-panel[data-panel="desk"] .details dd, .workspace-panel[data-panel="feed"] .details dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.desk-link, .membership-invite a { color: var(--highlight); font-size: .9rem; font-weight: 700; text-underline-offset: 4px; }
.desk-link { display: inline-flex; align-items: center; min-height: 42px; }
.membership-invite { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--muted); }
a.membership-invite { display: block; color: var(--highlight); font-weight: 680; text-underline-offset: 4px; }

.settings-status { margin-top: .8rem; }
.settings-hint { margin-bottom: .65rem; }
.settings-field input::placeholder { color: var(--subtle); }
.panel-options { display: grid; gap: .5rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.panel-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--highlight);
  border-radius: 3px;
  background: var(--surface-muted);
}
.panel-option[data-visibility="hidden"] { border-inline-start-color: var(--line); background: var(--surface); }
.panel-option-label { min-width: 0; }
.panel-option-label strong, .panel-option-label small { display: block; }
.panel-option-label small { color: var(--muted); }
.panel-order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.panel-move, .panel-toggle {
  min-height: 38px;
  padding: .35rem .7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font: 640 .85rem/1.2 var(--sans);
}
.panel-move:hover:enabled, .panel-toggle:hover:enabled { border-color: var(--highlight); background: var(--raised); }
.panel-move:disabled, .panel-toggle:disabled { opacity: .5; cursor: default; }
.panel-toggle { min-width: 4rem; }
.settings-field:focus-within, .league-option:has(input:checked) { color: var(--highlight); }
.league-option input { accent-color: var(--highlight); }

:root[data-density="compact"] .hero { min-height: 14rem; padding: 1.4rem clamp(1.2rem,3vw,2.4rem); }
:root[data-density="compact"] .hero h1 { font-size: clamp(2.8rem,5.3vw,4.8rem); }
:root[data-density="compact"] .workspace-panels { gap: .7rem; }
:root[data-density="compact"] .panel-head { margin-bottom: .55rem; padding-bottom: .55rem; }
:root[data-density="compact"] .empty { padding: .65rem .95rem; }
:root[data-density="compact"] .ticket-list { gap: .55rem; }
:root[data-density="compact"] th, :root[data-density="compact"] td { padding-block: .5rem; }
:root[data-density="compact"] .fixture-day { margin-top: .65rem; }
:root[data-density="compact"] .hero + .stats { margin-bottom: .85rem; }

@media (max-width: 1120px) { .day-stamp { display: none; } }
@media (max-width: 870px) {
  .masthead-inner { grid-template-columns: 1fr auto; gap: 0 1rem; min-height: 0; padding-top: .65rem; }
  .masthead-tools { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1/-1; grid-row: 2; gap: 1.4rem; }
  .day-stamp { display: flex; }
  .hero + .stats .stat { display: block; }
  .hero + .stats dd { margin-top: .25rem; }
  .hero { grid-template-columns: minmax(0,1.35fr) minmax(10rem,.65fr); }
}
@media (max-width: 700px) {
  .hero { min-height: 16rem; padding: 1.55rem; }
  .hero h1 { font-size: clamp(3.25rem,8.4vw,4.3rem); }
  .hero .hero-meta { font-size: .95rem; }
  .workspace-panels { grid-template-columns: minmax(0,1fr); }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  :root { --gutter: .85rem; --panel-inset: .95rem; }
  .brand { gap: .35rem; font-size: 1.8rem; }
  .brand-mark { width: 1.75rem; height: 1.75rem; }
  .masthead-tools { gap: .5rem; }
  .day-stamp { display: none; }
  .icon-button { width: 36px; height: 36px; }
  .membership-trigger { min-height: 36px; margin: 0; padding: .4rem .72rem; }
  .site-nav { width: 100%; gap: .4rem; justify-content: space-between; }
  .site-nav a { font-size: .82rem; min-height: 44px; padding-inline: .05rem; }
  main { padding-top: .85rem; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 1.3rem; min-height: 0; padding: 1.3rem; background-position: 61% center; }
  .hero::before { background: linear-gradient(90deg,#0d160ef4,#0b140d8a 62%,#080d0990), linear-gradient(0deg,#0b140d9c,transparent 80%); }
  .hero .kicker { font-size: .72rem; }
  .hero h1 { margin: .65rem 0 .45rem; font-size: clamp(3.4rem,12.2vw,4.4rem); }
  .hero .hero-tools { gap: .5rem; }
  .hero-action, .hero-tools a { padding: .45rem .72rem; }
  .hero-feature { justify-self: stretch; width: 100%; padding: .65rem 0 0; border-left: none; background: none; }
  .hero .hero-event { font-size: 1.45rem; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat { padding: .8rem .85rem; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--soft-line); }
  .hero + .stats .stat { display: flex; }
  .hero + .stats dt { max-width: 5.7rem; }
  .hero + .stats dd { margin-top: 0; }
  .hero + .stats { margin-bottom: 1rem; }
  .panel-head { margin-bottom: .65rem; }
  .empty { align-items: flex-start; gap: .7rem; padding: .9rem; }
  .empty-icon { width: 35px; height: 35px; }
  .empty-icon .icon { width: 20px; height: 20px; }
  .ticket header { flex-wrap: wrap; gap: .4rem; }
  .fixture { grid-template-columns: 3.1rem minmax(0,1fr); gap: .25rem .7rem; padding-inline: 0; }
  .fixture .fixture-state { grid-column: 2; justify-self: start; text-align: left; }
  .details { gap: .55rem 1rem; }
  .chart-col small { font-size: .72rem; }
  .chart-plot { height: 80px; }
  .settings-fields { grid-template-columns: minmax(0,1fr); }
  .panel-option { flex-wrap: wrap; }
  .foot { flex-direction: column; }
}
@media (max-width: 360px) {
  .masthead-inner { grid-template-columns: minmax(0,1fr) auto; column-gap: .35rem; }
  .brand { font-size: 1.62rem; }
  .brand-mark { width: 1.55rem; height: 1.55rem; }
  .masthead-tools { gap: .35rem; }
  .membership-trigger { padding-inline: .6rem; font-size: .82rem; }
  .site-nav { min-width: 0; gap: .25rem; }
  .site-nav a { font: 700 .98rem/1 var(--display); }
  .hero + .stats .stat { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
