/*
  EGL component layer ("Overdrive" broadcast package).

  Sits on top of the theme tokens the page head writes (--c-canvas, --c-accent... as "R G B",
  plus --font-display/heading/body/label/mono, --display-case and --cut). Nothing here names a color, so every theme recolors
  it and another site can reuse the file by writing its own token block. Tailwind still handles
  page layout; this file owns the pieces Tailwind can't express well: chamfered shapes, the
  ticker, the charge meter, team plates and the mono label system.
  See DESIGN.md for when to use what.
*/

:root {
  --cut-sm: calc(var(--cut) * 0.5);
  --cut-lg: calc(var(--cut) * 1.75);
  --ease-out: cubic-bezier(.2, .7, .1, 1);
}

body { font-family: var(--font-body); }
h1, h2, h3, .font-display { text-wrap: balance; }
p { text-wrap: pretty; }
.tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid rgb(var(--c-accent)); outline-offset: 3px; }

/* ---- shapes ------------------------------------------------------------------------------ */
/* Top-left + bottom-right chamfer: the house shape. --c overrides the size per element. */
.cut { clip-path: polygon(var(--c, var(--cut)) 0, 100% 0, 100% calc(100% - var(--c, var(--cut))), calc(100% - var(--c, var(--cut))) 100%, 0 100%, 0 var(--c, var(--cut))); }
.cut-sm { --c: var(--cut-sm); }
.cut-lg { --c: var(--cut-lg); }

/* Bordered chamfer. clip-path eats borders, so the outer layer is the border color and the
   inner layer is the fill: <div class="frame cut"><div class="frame-in">...</div></div> */
.frame { background: rgb(var(--c-line-strong)); padding: 1px; border-radius: var(--radius-lg); }
.frame > .frame-in { background: rgb(var(--c-surface)); height: 100%; clip-path: inherit; border-radius: calc(var(--radius-lg) - 1px); }
/* The one panel that matters on a screen: a flat accent edge, no glow or gradient. */
.frame-hot > .frame-in { box-shadow: inset 4px 0 0 rgb(var(--c-accent)); }

/* ---- type -------------------------------------------------------------------------------- */
/* Mono utility label, like an on-air lower third. */
.label { font: 700 0.75rem/1.2 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--c-fg-subtle)); }
.label-hi { color: rgb(var(--c-highlight)); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.625rem; }
.eyebrow::before { content: ""; width: 1.125rem; height: 2px; background: rgb(var(--c-accent)); }
.display-xl { font: 900 clamp(3.25rem, 9vw, 7rem)/0.92 var(--font-display); letter-spacing: -0.005em; text-transform: var(--display-case); }
.display-lg { font: 800 clamp(2rem, 4vw, 2.875rem)/1 var(--font-display); letter-spacing: 0; text-transform: var(--display-case); }

/* ---- controls ---------------------------------------------------------------------------- */
.btn { --c: var(--cut-sm); display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; min-height: 3rem; padding: 0 1.375rem;
  font: 700 1rem/1 var(--font-heading); letter-spacing: 0.02em; text-transform: var(--display-case); text-decoration: none; border: 0; cursor: pointer; border-radius: var(--radius);
  transition: background-color .15s, transform .15s var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: rgb(var(--c-accent)); color: rgb(var(--c-on-accent)); }
.btn-primary:hover { background: rgb(var(--c-accent-hover)); }
/* Outline button that keeps its chamfer: a 1px ring painted under a canvas-colored face. */
.btn-ghost { position: relative; isolation: isolate; background: rgb(var(--c-line-strong)); color: rgb(var(--c-fg)); }
.btn-ghost::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: rgb(var(--c-canvas)); clip-path: inherit; border-radius: inherit; }
.btn-ghost:hover { background: rgb(var(--c-fg-subtle)); }
.btn-sm { min-height: 2.25rem; padding: 0 0.875rem; font-size: 0.8125rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.pill { --c: 4px; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.5rem;
  font: 700 0.71875rem/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase;
  background: rgb(var(--pc, var(--c-fg-muted)) / 0.14); color: rgb(var(--pc, var(--c-fg-muted))); }
.pill-ok { --pc: var(--c-success); } .pill-warn { --pc: var(--c-warning); } .pill-bad { --pc: var(--c-danger); } .pill-accent { --pc: var(--c-accent); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-live .dot { animation: egl-pulse 1.6s ease-in-out infinite; }
@keyframes egl-pulse { 50% { opacity: .25; } }

/* ---- site shell -------------------------------------------------------------------------- */
.ticker { overflow: hidden; border-bottom: 1px solid rgb(var(--c-line)); background: color-mix(in srgb, rgb(var(--c-brand)) 16%, rgb(var(--c-canvas))); }
.ticker-track { display: flex; width: max-content; gap: 2.25rem; padding: 0.5625rem 0; white-space: nowrap; animation: egl-ticker 48s linear infinite; }
.ticker-track > span { font: 700 0.75rem/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--c-fg-soft)); }
.ticker-track b { color: rgb(var(--c-highlight)); font-weight: 700; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes egl-ticker { to { transform: translateX(-50%); } }

.site-head { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgb(var(--c-line)); background: rgb(var(--c-canvas) / 0.86); backdrop-filter: blur(12px); }
.nav-link { position: relative; display: inline-flex; align-items: center; height: 4rem; font-size: 0.875rem; font-weight: 600; color: rgb(var(--c-fg-muted)); text-decoration: none; }
.nav-link:hover, .nav-link[aria-current="page"] { color: rgb(var(--c-fg)); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: rgb(var(--c-accent)); }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid rgb(var(--c-line-strong)); background: rgb(var(--c-surface)); }
.menu-panel a { display: block; padding: 0.875rem 1rem; font-weight: 600; text-decoration: none; border-top: 1px solid rgb(var(--c-line)); }
.menu-panel a[aria-current="page"] { color: rgb(var(--c-highlight)); box-shadow: inset 3px 0 0 rgb(var(--c-accent)); }
.avatar { --c: 6px; border-radius: var(--radius); display: grid; place-items: center; width: 2rem; height: 2rem; background: rgb(var(--c-brand)); color: rgb(var(--c-fg)); font: 800 0.8125rem/1 var(--font-heading); }

/* ---- charge meter: the segmented Overdrive motif. Real progress only (sign-up steps,
   registration window), never decoration. Width comes from --segments/--filled. ---------- */
.meter { display: grid; grid-template-columns: repeat(var(--segments, 10), minmax(0, 1fr)); gap: 3px; }
.meter > i { height: 6px; background: rgb(var(--c-control)); transform: skewX(-24deg); }
.meter > i.on { background: rgb(var(--c-accent)); }
.meter > i.now { background: rgb(var(--c-accent)); animation: egl-pulse 1.6s ease-in-out infinite; }

/* ---- landing pieces ---------------------------------------------------------------------- */
.wordmark-big { color: rgb(var(--c-wordmark)); }
/* Slanted cyan with a violet offset, like the Overdrive Lite mark. */
.has-shadow .wordmark-big { display: inline-block; transform: skewX(-8deg); text-shadow: 0.05em 0.05em 0 rgb(var(--c-wordmark-shadow)); }

/* Match-night run sheet: a vertical rail of diamond nodes. */
.runsheet { list-style: none; margin: 0; padding: 0; }
.runsheet li { position: relative; display: grid; grid-template-columns: 4.25rem 1rem minmax(0, 1fr); gap: 0.875rem; padding-block: 0.6875rem; }
.runsheet li::before { content: ""; position: absolute; left: calc(4.25rem + 0.875rem + 0.5rem - 1px); top: 0; bottom: 0; width: 2px; background: rgb(var(--c-line-strong)); }
.runsheet li:first-child::before { top: 1.125rem; }
.runsheet li:last-child::before { bottom: calc(100% - 1.125rem); }
.runsheet .t { font: 700 0.875rem/1.35 var(--font-label); color: rgb(var(--c-fg-subtle)); text-align: right; }
.runsheet .node { position: relative; z-index: 1; width: 0.75rem; height: 0.75rem; margin: 0.1875rem auto 0; background: rgb(var(--c-control-hover)); transform: rotate(45deg); }
.runsheet .key .node { background: rgb(var(--c-accent)); box-shadow: 0 0 0 5px rgb(var(--c-accent) / 0.22); }
.runsheet .key .t { color: rgb(var(--c-highlight)); }
.scan { position: absolute; inset: 0 0 auto; height: 40%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgb(var(--c-accent) / 0.07) 50%, transparent);
  animation: egl-scan 7s var(--ease-out) infinite; }
@keyframes egl-scan { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* Season path: arrow-shaped stages on wide screens, stacked cards on phones. */
.path { display: grid; gap: 0.625rem; }
.stage { --c: var(--cut); border-radius: var(--radius-lg); position: relative; padding: 1.375rem 1.5rem; background: rgb(var(--c-surface)); }
.stage.is-now { background: color-mix(in srgb, rgb(var(--c-brand)) 34%, rgb(var(--c-surface))); }
@media (min-width: 768px) {
  .path { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .path .stage { margin-right: -0.375rem; padding-left: 2.5rem; padding-right: 2rem;
    clip-path: polygon(0 0, calc(100% - 1.375rem) 0, 100% 50%, calc(100% - 1.375rem) 100%, 0 100%, 1.375rem 50%); }
  .path .stage:first-child { padding-left: 1.5rem; clip-path: polygon(0 0, calc(100% - 1.375rem) 0, 100% 50%, calc(100% - 1.375rem) 100%, 0 100%); }
}

.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.bullets li { display: grid; grid-template-columns: 0.875rem minmax(0, 1fr); gap: 0.625rem; }
.bullets li::before { content: ""; width: 0.5rem; height: 0.5rem; margin-top: 0.5rem; background: rgb(var(--c-accent)); transform: rotate(45deg); }

.band { --c: var(--cut-lg); border-radius: var(--radius-lg); background: color-mix(in srgb, rgb(var(--c-brand)) 28%, rgb(var(--c-surface))); }

/* Big outlined tag behind a hero or banner. Decorative only. */
.ghost-text { position: absolute; pointer-events: none; user-select: none; text-transform: var(--display-case); font: 900 clamp(7rem, 18vw, 14rem)/1 var(--font-display); color: rgb(var(--c-fg) / 0.035); }

/* ---- sign-up steps ----------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.375rem; }
.steps li { --c: var(--cut-sm); border-radius: var(--radius); display: grid; gap: 0.375rem; padding: 0.75rem; background: rgb(var(--c-surface)); }
.steps .num { font: 700 0.75rem/1 var(--font-label); text-transform: uppercase; color: rgb(var(--c-fg-faint)); letter-spacing: 0.1em; }
.steps .name { font: 700 0.9375rem/1.2 var(--font-heading); }
.steps .state { font-size: 0.75rem; color: rgb(var(--c-fg-subtle)); }
.steps .done .num { color: rgb(var(--c-success)); }
.steps .current { background: rgb(var(--c-raised)); box-shadow: inset 0 2px 0 rgb(var(--c-accent)); }
.steps .current .num, .steps .current .state { color: rgb(var(--c-highlight)); }
@media (max-width: 560px) { .steps .state { display: none; } .steps li { padding: 0.625rem 0.5rem; } .steps .name { font-size: 0.75rem; } }

/* Form field in the house style. */
.field { width: 100%; min-height: 3rem; padding: 0 0.875rem; background: rgb(var(--c-canvas)); border: 1px solid rgb(var(--c-line-strong)); color: rgb(var(--c-fg)); border-radius: var(--radius); }
.field:focus { outline: none; border-color: rgb(var(--c-accent)); box-shadow: 0 0 0 3px rgb(var(--c-accent) / 0.25); }
select.field, input[type="date"].field { padding-right: 0.5rem; }
textarea.field { min-height: 6rem; padding: 0.75rem 0.875rem; resize: vertical; }
.choice { --c: var(--cut-sm); border-radius: var(--radius); display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.875rem; background: rgb(var(--c-raised)); cursor: pointer; font-size: 0.875rem; text-transform: capitalize; }
.choice:has(input:checked) { background: rgb(var(--c-accent) / 0.16); color: rgb(var(--c-highlight)); }
.choice input { accent-color: rgb(var(--c-accent)); }

.notice { --c: var(--cut-sm); border-radius: var(--radius); padding: 0.75rem 0.875rem; font-size: 0.875rem; background: rgb(var(--nc, var(--c-fg-muted)) / 0.12); color: rgb(var(--nc, var(--c-fg-soft))); }
.notice-bad { --nc: var(--c-danger); } .notice-ok { --nc: var(--c-success); } .notice-warn { --nc: var(--c-warning); }

/* ---- motion preferences ------------------------------------------------------------------
   Reduced motion removes movement (ticker scroll, scan sweep, pulses) rather than speeding it
   up; the ticker wraps into a static line so its content is still readable. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-inline: 1rem; }
  .ticker-track [aria-hidden="true"] { display: none; }
  .scan { display: none; }
  .pill-live .dot, .meter > i.now { animation: none; }
  .btn, .btn:active { transition: none; transform: none; }
}

/* ---- league platform shell (ESEA-style, Brian 2026-10-13) --------------------------------- */
/* Logged in: left sidebar + top bar; phones get a bottom tab bar instead of the sidebar.
   Logged out: a slim top bar over full-width pages. */
.ico { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app { --side: 14.5rem; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, rgb(var(--c-surface)) calc(var(--side) - 1px), rgb(var(--c-line)) calc(var(--side) - 1px), rgb(var(--c-line)) var(--side), transparent var(--side)); }
.app-side { position: sticky; top: 0; height: 100vh; display: grid; grid-template-rows: 3.75rem 1fr auto; }
.app-side .brandmark { display: flex; align-items: center; gap: 0.625rem; padding: 0 1.25rem; border-bottom: 1px solid rgb(var(--c-line)); text-decoration: none; }
.app-side .brandmark small { font: 700 0.6875rem/1.15 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--c-fg-subtle)); }
.app-nav { display: grid; align-content: start; gap: 2px; padding: 0.875rem 0.625rem; overflow-y: auto; }
.app-nav p { font: 700 0.6875rem/1 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: rgb(var(--c-fg-subtle)); padding: 1rem 0.75rem 0.5rem; }
.app-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.5625rem 0.75rem; border-radius: var(--radius); font-weight: 600; color: rgb(var(--c-fg-muted)); text-decoration: none; }
.app-nav a:hover { background: rgb(var(--c-raised)); color: rgb(var(--c-fg)); }
.app-nav a[aria-current="page"] { background: color-mix(in srgb, rgb(var(--c-brand)) 22%, transparent); color: rgb(var(--c-fg)); box-shadow: inset 2px 0 0 rgb(var(--c-accent)); }
.app-me { border-top: 1px solid rgb(var(--c-line)); padding: 0.875rem; display: grid; gap: 0.625rem; }
.app-me a { display: flex; align-items: center; gap: 0.625rem; font-weight: 600; text-decoration: none; min-width: 0; }
.app-me a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { position: sticky; top: 0; z-index: 30; height: 3.75rem; display: flex; align-items: center; gap: 1rem; padding: 0 1.75rem; border-bottom: 1px solid rgb(var(--c-line)); background: rgb(var(--c-canvas) / 0.88); backdrop-filter: blur(10px); }
.app-top .phone-only { display: none; }
.app-top .right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.app-page { width: 100%; max-width: 82rem; padding: 1.5rem 1.75rem 4rem; flex: 1; }
.app-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 1.75rem 2rem; border-top: 1px solid rgb(var(--c-line)); font-size: 0.8125rem; color: rgb(var(--c-fg-subtle)); }
.tabbar { display: none; }

.pub-top { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgb(var(--c-line)); background: rgb(var(--c-canvas) / 0.88); backdrop-filter: blur(10px); }
.pub-top nav.bar { max-width: 77.5rem; margin: 0 auto; height: 4rem; display: flex; align-items: center; gap: 1.75rem; padding: 0 clamp(1rem, 4vw, 3rem); position: relative; }
.pub-link { padding: 0.5rem 0.75rem; border-radius: var(--radius); font: 800 0.875rem/1 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--c-fg-muted)); text-decoration: none; }
.pub-link:hover, .pub-link[aria-current="page"] { color: rgb(var(--c-fg)); background: rgb(var(--c-surface)); }
.wrap { max-width: 77.5rem; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.pub-page { padding-block: 2.5rem 4rem; }
.pub-foot { border-top: 1px solid rgb(var(--c-line)); }
.pub-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-block: 2rem; font-size: 0.8125rem; color: rgb(var(--c-fg-subtle)); }

/* Site colors picker: one swatch link per theme, the choice is remembered (src/brand). */
.colors { display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center; }
.colors > span { font: 700 0.6875rem/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--c-fg-subtle)); margin-right: 0.25rem; }
.colors a { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2rem; padding: 0.25rem 0.625rem 0.25rem 0.375rem; border-radius: 999px; border: 1px solid rgb(var(--c-line)); color: rgb(var(--c-fg-muted)); font-size: 0.75rem; font-weight: 600; text-decoration: none; }
.colors a:hover { border-color: rgb(var(--c-line-strong)); color: rgb(var(--c-fg)); }
.colors a[aria-current="true"] { border-color: rgb(var(--c-fg)); color: rgb(var(--c-fg)); box-shadow: inset 0 0 0 1px rgb(var(--c-fg)); }
.colors .sw { display: inline-flex; }
.colors .sw i { width: 0.75rem; height: 0.75rem; border-radius: 50%; margin-left: -0.1875rem; box-shadow: 0 0 0 1.5px rgb(var(--c-canvas)); }
.colors .sw i:first-child { margin-left: 0; }

/* Panels and data, used by the home, season and match pages. */
.panel { background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); border-radius: var(--radius-lg); min-width: 0; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.875rem 1.125rem; border-bottom: 1px solid rgb(var(--c-line)); }
.panel > header h2 { font: 800 1.0625rem/1 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; }
.panel > header a { font: 700 0.8125rem/1 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--c-highlight)); text-decoration: none; }
.panel-body { padding: 1.125rem; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.facts > div { padding: 1rem 1.125rem; border-left: 1px solid rgb(var(--c-line)); }
.facts > div:first-child { border-left: 0; }
.facts dt { font: 700 0.75rem/1 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(var(--c-fg-subtle)); }
.facts dd { margin: 0.5rem 0 0; font: 800 1.375rem/1.05 var(--font-label); text-transform: uppercase; }
.facts dd small { display: block; margin-top: 0.25rem; font: 500 0.8125rem/1.35 var(--font-body); text-transform: none; color: rgb(var(--c-fg-soft)); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 4rem 1fr; gap: 0.875rem; padding: 0.6875rem 0; border-top: 1px solid rgb(var(--c-line)); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .tm { font: 800 0.9375rem/1.2 var(--font-label); color: rgb(var(--c-highlight)); text-align: right; }
.timeline b { font-weight: 600; }
.timeline span { display: block; font-size: 0.8125rem; color: rgb(var(--c-fg-subtle)); }
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.roadmap li { position: relative; padding: 1rem 1.125rem; border-left: 1px solid rgb(var(--c-line)); }
.roadmap li:first-child { border-left: 0; }
.roadmap li.on { background: color-mix(in srgb, rgb(var(--c-brand)) 16%, transparent); }
.roadmap li.on::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: rgb(var(--c-accent)); }
.roadmap h3 { margin-top: 0.5rem; font: 800 1.25rem/1 var(--font-label); text-transform: uppercase; }
.roadmap p { margin-top: 0.375rem; font-size: 0.8125rem; color: rgb(var(--c-fg-soft)); }
.empty { display: grid; justify-items: start; gap: 0.5rem; padding: 1.375rem 1.125rem; }
.empty b { font: 800 1.125rem/1.1 var(--font-label); text-transform: uppercase; }
.empty p { color: rgb(var(--c-fg-soft)); font-size: 0.875rem; max-width: 48ch; }
.chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.3125rem 0.625rem; border-radius: 999px; font: 700 0.75rem/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; background: rgb(var(--c-canvas) / 0.3); }
.status-dot { display: inline-flex; align-items: center; gap: 0.5rem; font: 700 0.75rem/1 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(var(--c-fg-soft)); }
.status-dot::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgb(var(--c-accent)); box-shadow: 0 0 0 3px rgb(var(--c-accent) / 0.25); }
.outline-num { position: absolute; z-index: -1; font: 900 clamp(14rem, 30vw, 26rem)/0.8 var(--font-display); color: transparent; -webkit-text-stroke: 2px rgb(var(--c-fg) / 0.1); transform: skewX(-8deg); pointer-events: none; user-select: none; }

/* Keep the hero tagline stacked one word per line on both home states. */
.welcome-hero h1 .tagline-line, .home-hero h1 .tagline-line { display: block; }

/* Welcome page (logged out) */
.welcome-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid rgb(var(--c-line)); background: radial-gradient(120% 90% at 85% 10%, rgb(var(--c-brand) / 0.5) 0%, transparent 60%), rgb(var(--c-canvas)); }
.welcome-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 8vw, 6.5rem); }
.welcome-hero .wrap { grid-template-areas: "copy logo" "copy panel"; row-gap: 0; }
.welcome-hero .wrap > div { grid-area: copy; }
.welcome-hero .wrap > aside { grid-area: panel; position: relative; }
/* The extruded mark (one recolored file per palette, public/brand/egl-3d) sits on the season card like a badge. */
.hero-logo { grid-area: logo; justify-self: center; align-self: end; width: clamp(11rem, 19vw, 16.5rem); height: auto; margin-bottom: -2.75rem; position: relative; z-index: 1; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.45)); }
.welcome-hero .wrap > aside > header { padding-top: 3.25rem; }
.welcome-hero h1 { font: 900 clamp(3.5rem, 8.4vw, 7.75rem)/0.84 var(--font-display); text-transform: var(--display-case); letter-spacing: -0.01em; }
.descriptor { margin-top: 1.25rem; font: 800 clamp(1.125rem, 2vw, 1.5rem)/1.15 var(--font-label); letter-spacing: 0.04em; text-transform: uppercase; color: rgb(var(--c-highlight)); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid rgb(var(--c-line)); }
.section-title { font: 900 clamp(2.25rem, 4.6vw, 3.75rem)/0.9 var(--font-display); text-transform: var(--display-case); }
.section-sub { margin-top: 0.75rem; max-width: 60ch; color: rgb(var(--c-fg-soft)); font-size: 1.0625rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.875rem; padding: 1.125rem; border-top: 1px solid rgb(var(--c-line)); }
.checks li:first-child { border-top: 0; }
.checks .ic { width: 2.5rem; height: 2.5rem; border-radius: var(--radius); display: grid; place-items: center; background: rgb(var(--c-accent) / 0.14); color: rgb(var(--c-highlight)); }
.checks b { display: block; font: 800 1.125rem/1.15 var(--font-label); text-transform: uppercase; }
.checks span { display: block; margin-top: 0.25rem; color: rgb(var(--c-fg-soft)); font-size: 0.9375rem; }
.steps4 { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgb(var(--c-line)); border-radius: var(--radius-lg); overflow: hidden; background: rgb(var(--c-surface)); }
.steps4 li { padding: 1.375rem 1.25rem 1.5rem; border-left: 1px solid rgb(var(--c-line)); }
.steps4 li:first-child { border-left: 0; }
.steps4 .k { font: 900 2.75rem/1 var(--font-display); color: rgb(var(--c-highlight)); }
.steps4 b { display: block; margin-top: 0.75rem; font: 800 1.1875rem/1.1 var(--font-label); text-transform: uppercase; }
.steps4 span { display: block; margin-top: 0.375rem; font-size: 0.875rem; color: rgb(var(--c-fg-soft)); }
.feature-band { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; border-radius: calc(var(--radius-lg) + 4px); padding: clamp(1.75rem, 5vw, 3.5rem); background: rgb(var(--c-brand)); color: #fff; }
.feature-band .section-sub { color: rgb(255 255 255 / 0.86); }
.feature-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.feature-band li { display: flex; gap: 0.75rem; align-items: center; padding: 0.875rem 1rem; border-radius: var(--radius-lg); background: rgb(0 0 0 / 0.22); font-weight: 600; }
.faq details { border-bottom: 1px solid rgb(var(--c-line)); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.125rem 0.25rem; font: 800 1.1875rem/1.2 var(--font-label); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: rgb(var(--c-highlight)); font: 800 1.5rem/1 var(--font-label); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0.25rem 1.125rem; max-width: 70ch; color: rgb(var(--c-fg-soft)); }

/* Logged-in home banner */
.home-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--radius-lg) + 2px); background: rgb(var(--c-brand)); color: #fff; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
.home-hero h1 { margin-top: 1.125rem; font: 900 clamp(3rem, 6.4vw, 5.5rem)/0.86 var(--font-display); text-transform: var(--display-case); }
.home-hero .outline-num { right: -2%; bottom: -18%; -webkit-text-stroke-color: rgb(255 255 255 / 0.2); }
.home-hero .wordmark-big { text-shadow: 0.06em 0.06em 0 rgb(var(--c-canvas)); }
.home-hero .btn-ghost { background: rgb(255 255 255 / 0.5); color: #fff; }
.home-hero .btn-ghost::before { background: rgb(var(--c-brand)); }
.home-card { align-self: end; background: rgb(var(--c-canvas)); color: rgb(var(--c-fg)); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: 0 18px 40px rgb(0 0 0 / 0.3); }

@media (max-width: 1080px) {
  .welcome-hero .wrap, .feature-band, .home-hero, .split { grid-template-columns: 1fr; }
  .welcome-hero .wrap { grid-template-areas: "logo" "copy" "panel"; row-gap: 2rem; }
  .hero-logo { justify-self: start; width: clamp(7.5rem, 26vw, 10rem); margin-bottom: 0; }
  .welcome-hero .wrap > aside > header { padding-top: 0.875rem; }
  .facts, .steps4, .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3), .steps4 li:nth-child(3), .roadmap li:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3), .steps4 li:nth-child(n+3), .roadmap li:nth-child(n+3) { border-top: 1px solid rgb(var(--c-line)); }
}
/* Tablet landscape and small laptops: the sidebar folds to an icon rail so the page keeps its width. */
@media (min-width: 821px) and (max-width: 1080px) {
  .app { --side: 4.5rem; }
  .app-side .brandmark { justify-content: center; padding: 0; }
  .app-side .logo-mark { width: 2.25rem; height: 2.25rem; }
  .app-side .brandmark small, .app-nav p { display: none; }
  .app-nav { padding: 0.75rem 0.5rem; justify-items: stretch; }
  .app-nav a { justify-content: center; padding: 0.75rem 0; }
  .app-me { justify-items: center; padding: 0.75rem 0.5rem; }
  .app-me a span:last-child:not(.avatar) { display: none; }
  .me-actions { flex-direction: column; }
  .me-act { justify-content: center; padding: 0.5rem; }
  .app-side .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); background: none; }
  .app-side { display: none; }
  .app-top { padding: 0 1rem; }
  .app-top .phone-only { display: flex; }
  .app-page { padding: 1rem 1rem 6rem; }
  .app-foot { padding: 1.25rem 1rem 6rem; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0; z-index: 40; background: rgb(var(--c-surface)); border-top: 1px solid rgb(var(--c-line)); padding: 0.375rem 0.25rem calc(0.375rem + env(safe-area-inset-bottom, 0px)); }
  .tabbar a { display: grid; justify-items: center; gap: 0.1875rem; padding: 0.375rem 0; font: 700 0.6875rem/1 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--c-fg-subtle)); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: rgb(var(--c-highlight)); }
  .pub-top .pub-links { display: none; }
}
/* Phones only: tablets in portrait keep the two-column grids. */
@media (max-width: 600px) {
  .facts, .steps4, .roadmap { grid-template-columns: 1fr; }
  .facts > div, .steps4 li, .roadmap li { border-left: 0 !important; border-top: 1px solid rgb(var(--c-line)); }
  .facts > div:first-child, .steps4 li:first-child, .roadmap li:first-child { border-top: 0; }
}

/* Light palettes have a pale brand color, so the solid brand panels deepen it toward ink to keep white text readable. */
.is-light .feature-band, .is-light .home-hero { background: color-mix(in srgb, rgb(var(--c-brand)) 40%, rgb(var(--c-fg))); }
.is-light .home-hero .btn-ghost::before { background: color-mix(in srgb, rgb(var(--c-brand)) 40%, rgb(var(--c-fg))); }
.home-hero .home-sub { color: rgb(255 255 255 / 0.85); }
.is-light .home-hero .wordmark-big { color: #fff; text-shadow: 0.06em 0.06em 0 rgb(var(--c-accent)); }

/* EGL mark (partials/logo-paths.ejs, traced from docs/logo_assets/EGL Simple.png): every part follows the active palette. */
.logo-mark { display: block; width: 2.5rem; height: 2.5rem; flex: none; }
.logo-mark .lm-core { fill: color-mix(in srgb, rgb(var(--c-brand)) 22%, rgb(var(--c-canvas))); }
.logo-mark .lm-ring { fill: rgb(var(--c-brand)); }
.logo-mark .lm-egl { fill: rgb(var(--c-wordmark)); }
.logo-mark .lm-name { fill: rgb(var(--c-fg)); display: none; }
.logo-mark.logo-full .lm-name { display: inline; }
.is-light .logo-mark .lm-core { fill: rgb(var(--c-fg)); }
.is-light .logo-mark .lm-egl, .is-light .logo-mark .lm-name { fill: rgb(var(--c-canvas)); }
.pub-top .logo-mark, .app-top .logo-mark { width: 2.25rem; height: 2.25rem; }
.pub-foot .logo-mark { width: 2rem; height: 2rem; }
.logo-name { font: 800 0.75rem/1.1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--c-fg)); }

/* ---------- League pages (season, teams, team, rules) ----------
   Shared building blocks so a later restyle is a token/component swap, not a page rewrite. */
.page { display: grid; gap: 1.25rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; padding-bottom: 0.25rem; }
.page-head h1 { font: 900 clamp(2.25rem, 4.5vw, 3.25rem)/0.92 var(--font-display); text-transform: var(--display-case); letter-spacing: 0.005em; text-wrap: balance; }
.page-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 0.75rem; color: rgb(var(--c-fg-soft)); font-size: 0.9375rem; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.chip-solid { background: rgb(var(--c-raised)); color: rgb(var(--c-fg-soft)); }
.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6875rem 1.125rem; border-top: 1px solid rgb(var(--c-line)); font-size: 0.9375rem; }
.kv > div:first-child { border-top: 0; }
.kv dt { color: rgb(var(--c-fg-subtle)); }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.note { padding: 0.875rem 1.125rem; border-top: 1px solid rgb(var(--c-line)); font-size: 0.875rem; color: rgb(var(--c-fg-subtle)); }
.big-line { padding: 1rem 1.125rem 0.25rem; font: 800 1.5rem/1.1 var(--font-label); text-transform: uppercase; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 1.125rem; border-top: 1px solid rgb(var(--c-line)); }
.rows > li:first-child { border-top: 0; }
.rows .n { min-width: 1.5rem; font: 800 1rem/1 var(--font-label); color: rgb(var(--c-highlight)); font-variant-numeric: tabular-nums; }
.rows .sub { margin-left: auto; font-size: 0.8125rem; color: rgb(var(--c-fg-subtle)); text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem 1.125rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.table th { padding: 0.625rem 1.125rem; text-align: left; font: 700 0.75rem/1 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(var(--c-fg-subtle)); background: rgb(var(--c-raised) / 0.5); white-space: nowrap; }
.table td { padding: 0.8125rem 1.125rem; border-top: 1px solid rgb(var(--c-line)); vertical-align: middle; }
.table tbody tr:hover { background: rgb(var(--c-raised) / 0.45); }
.table .num { text-align: right; }
.table a.row-link { color: inherit; text-decoration: none; font-weight: 600; }
.table a.row-link:hover { color: rgb(var(--c-highlight)); }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions button { font: 700 0.75rem/1 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--c-fg-muted)); padding: 0.375rem 0.5rem; border-radius: var(--radius); }
.table .actions button:hover { color: rgb(var(--c-fg)); background: rgb(var(--c-raised)); }
.table .actions button.danger { color: rgb(var(--c-danger)); }
.tag { display: inline-grid; place-items: center; min-width: 2.75rem; height: 1.75rem; padding: 0 0.4375rem; border-radius: var(--radius); background: rgb(var(--c-brand) / 0.22); color: rgb(var(--c-fg)); font: 800 0.8125rem/1 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; }
.tag-lg { min-width: 4.5rem; height: 3rem; font-size: 1.25rem; }
.muted-sm { font-size: 0.8125rem; color: rgb(var(--c-fg-subtle)); }
.copy-field { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid rgb(var(--c-line-strong)); border-radius: var(--radius); background: rgb(var(--c-canvas)); color: rgb(var(--c-fg)); font: 500 0.875rem/1.3 var(--font-mono); }
.link-btn { font-size: 0.875rem; color: rgb(var(--c-fg-muted)); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: rgb(var(--c-fg)); }
.link-btn.danger { color: rgb(var(--c-danger)); }

/* Rulebook: a reading surface. Tokens only, so every palette (light ones too) reads right. */
.rulebook-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.toc { position: sticky; top: 4.75rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.toc nav { display: grid; padding: 0.5rem; }
.toc a { padding: 0.4375rem 0.625rem; border-radius: var(--radius); font-size: 0.875rem; color: rgb(var(--c-fg-muted)); text-decoration: none; }
.toc a:hover { background: rgb(var(--c-raised)); color: rgb(var(--c-fg)); }
.prose { padding: clamp(1.25rem, 3vw, 2.25rem); color: rgb(var(--c-fg-soft)); line-height: 1.7; font-size: 1rem; }
.prose > * { max-width: 72ch; }
.prose h1 { font: 900 2.25rem/1 var(--font-display); text-transform: var(--display-case); color: rgb(var(--c-fg)); margin-bottom: 0.75rem; }
.prose h2 { font: 800 1.5rem/1.15 var(--font-heading); color: rgb(var(--c-fg)); margin: 2.75rem 0 0.75rem; padding-top: 1.25rem; border-top: 1px solid rgb(var(--c-line)); scroll-margin-top: 5rem; }
.prose h3 { font: 700 1.1875rem/1.25 var(--font-heading); color: rgb(var(--c-fg)); margin: 1.875rem 0 0.5rem; scroll-margin-top: 5rem; }
.prose h4 { font-weight: 700; color: rgb(var(--c-fg)); margin: 1.25rem 0 0.375rem; }
.prose p { margin: 0.625rem 0; }
.prose ul, .prose ol { margin: 0.625rem 0 0.625rem 1.375rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin: 0.3125rem 0; } .prose li::marker { color: rgb(var(--c-fg-subtle)); }
.prose strong { color: rgb(var(--c-fg)); }
.prose a { color: rgb(var(--c-highlight)); text-decoration: underline; text-underline-offset: 3px; }
.prose table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9375rem; }
.prose th, .prose td { border: 1px solid rgb(var(--c-line)); padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
.prose th { background: rgb(var(--c-raised)); color: rgb(var(--c-fg)); }
.prose blockquote { margin: 1rem 0; padding: 0.75rem 1rem; border-radius: var(--radius); background: rgb(var(--c-raised) / 0.6); color: rgb(var(--c-fg-muted)); }
.prose code { font-family: var(--font-mono); font-size: 0.875em; padding: 0.1em 0.35em; border-radius: 4px; background: rgb(var(--c-raised)); }
::selection { background: rgb(var(--c-accent) / 0.35); color: rgb(var(--c-fg)); }

@media (max-width: 1080px) { .rulebook-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; max-height: none; } .toc nav { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); } }
@media (max-width: 820px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } .table th, .table td { padding-left: 0.75rem; padding-right: 0.75rem; } }
.toc-sum { cursor: pointer; padding: 0.875rem 1.125rem; font: 800 0.9375rem/1 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; list-style: none; }
.toc-sum::-webkit-details-marker { display: none; }
.toc-sum::after { content: "+"; float: right; color: rgb(var(--c-highlight)); }
.toc[open] .toc-sum::after { content: "−"; }
.toc[open] .toc-sum { border-bottom: 1px solid rgb(var(--c-line)); }
.page-head h1 .tag { vertical-align: 0.35em; margin-right: 0.25rem; }
.page > *, .cols-2 > *, .rulebook-layout > * { min-width: 0; }
.pill { white-space: nowrap; }
/* Phones: wide tables become one card per row, labels from data-label. */
@media (max-width: 600px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 0.75rem 1rem; border-top: 1px solid rgb(var(--c-line)); }
  .table-stack tr:first-child { border-top: 0; }
  .table-stack td { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; border: 0; }
  .table-stack td[data-label]::before { content: attr(data-label); font: 700 0.75rem/1.6 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--c-fg-subtle)); }
  .table-stack td:first-child::before { content: none; }
  .table-stack td:first-child { font-size: 1.0625rem; padding-bottom: 0.375rem; }
  .table-stack td:empty { display: none; }
  .table-stack .actions { justify-content: flex-start; flex-wrap: wrap; padding-top: 0.5rem; }
  .table-stack .actions button { padding-left: 0; margin-right: 0.75rem; }
}

/* Sidebar user block actions and the top-bar settings icon. */
.me-actions { display: flex; gap: 0.25rem; }
.me-act { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.5rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500 !important; color: rgb(var(--c-fg-subtle)); text-decoration: none; }
.me-act:hover, .me-act[aria-current="page"] { color: rgb(var(--c-fg)); background: rgb(var(--c-raised)); }
.top-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius); color: rgb(var(--c-fg-muted)); }
.top-icon:hover, .top-icon[aria-current="page"] { color: rgb(var(--c-fg)); background: rgb(var(--c-raised)); }

/* Settings: theme cards preview each palette with its own colors. */
.settings-section { display: grid; gap: 1rem; padding: 1.125rem; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.75rem; }
.theme-card { position: relative; display: grid; gap: 0.625rem; padding: 0.625rem; border: 1px solid rgb(var(--c-line)); border-radius: var(--radius-lg); background: rgb(var(--c-canvas)); cursor: pointer; transition: border-color 150ms ease-out, box-shadow 150ms ease-out; }
.theme-card:hover { border-color: rgb(var(--c-line-strong)); }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card:has(input:checked) { border-color: rgb(var(--c-accent)); box-shadow: 0 0 0 1px rgb(var(--c-accent)); }
.theme-card:has(input:focus-visible) { outline: 2px solid rgb(var(--c-accent)); outline-offset: 2px; }
.theme-prev { display: grid; grid-template-columns: 1.25rem 1fr; height: 4.5rem; border-radius: calc(var(--radius) + 2px); overflow: hidden; }
.theme-prev .side { opacity: 0.85; }
.theme-prev .body { display: grid; align-content: center; gap: 0.375rem; padding: 0 0.625rem; }
.theme-prev .bar { height: 0.625rem; width: 70%; border-radius: 3px; }
.theme-prev .btn-mock { height: 0.875rem; width: 40%; border-radius: 3px; }
.theme-card .name { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-weight: 600; font-size: 0.9375rem; }
.theme-card .tick { display: none; color: rgb(var(--c-accent)); font: 700 0.6875rem/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; }
.theme-card:has(input:checked) .tick { display: inline; }
.role-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.role-opt { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border: 1px solid rgb(var(--c-line-strong)); border-radius: 999px; font-weight: 600; text-transform: capitalize; cursor: pointer; }
.role-opt:has(input:checked) { border-color: rgb(var(--c-accent)); background: rgb(var(--c-accent) / 0.14); color: rgb(var(--c-fg)); }
.role-opt input { accent-color: rgb(var(--c-accent)); }
.foot-colors { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; color: rgb(var(--c-fg-subtle)); }
.foot-colors a { color: rgb(var(--c-highlight)); }
@media (max-width: 600px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; } .theme-prev { height: 3.25rem; } .theme-card { padding: 0.5rem; } .theme-card .name { font-size: 0.875rem; } }
.settings-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.settings-nav .chip { text-decoration: none; }
.page > .panel[id], .cols-2 > .panel[id] { scroll-margin-top: 5rem; }
.pref-list { display: grid; gap: 0.25rem; }
.pref-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.625rem 0; cursor: pointer; }
.pref-row + .pref-row { border-top: 1px solid rgb(var(--c-line)); }
.pref-row input { margin-top: 0.25rem; width: 1.0625rem; height: 1.0625rem; flex: none; accent-color: rgb(var(--c-accent)); }
.pref-row > span { display: grid; gap: 0.125rem; }
.night-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.375rem; padding: 1rem 1.125rem; }
.night { display: grid; gap: 0.25rem; justify-items: center; padding: 0.625rem 0.25rem; border: 1px solid rgb(var(--c-line)); border-radius: var(--radius); text-align: center; }
.night b { font: 700 1.375rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.night span { font: 600 0.6875rem/1 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--c-fg-subtle)); }
.night.is-full { border-color: rgb(var(--c-accent)); background: rgb(var(--c-accent) / 0.12); }
.panel-note { padding: 0 1.125rem 1rem; }
@media (max-width: 600px) { .night-grid { gap: 0.25rem; padding: 0.75rem; } .night b { font-size: 1.125rem; } }

/* Playoff bracket (/bracket): one row of round columns per side, scrolls sideways on small screens. */
.bracket { display: flex; gap: 1rem; overflow-x: auto; padding: 1.125rem; }
.bracket-col { flex: 0 0 13.5rem; display: flex; flex-direction: column; justify-content: space-around; gap: 0.75rem; }
.bracket-col h3 { font: 700 0.75rem/1 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(var(--c-fg-subtle)); }
.bracket-match { border: 1px solid rgb(var(--c-line)); border-radius: var(--radius-lg); background: rgb(var(--c-raised) / 0.4); font-size: 0.875rem; }
.bracket-match > div { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.4375rem 0.625rem; }
.bracket-match > div + div { border-top: 1px solid rgb(var(--c-line)); }
.bracket-match .won { font-weight: 700; color: rgb(var(--c-highlight)); }
.bracket-match .tbd { color: rgb(var(--c-fg-subtle)); }
.bracket-match .score { font-variant-numeric: tabular-nums; }
.bracket-match footer { padding: 0.375rem 0.625rem; border-top: 1px solid rgb(var(--c-line)); font-size: 0.75rem; color: rgb(var(--c-fg-subtle)); }

/* demo.playegl.com banner (routes/demo.js). */
.demo-bar { position: relative; z-index: 40; padding: 0.4rem 1rem; text-align: center; font-size: 0.8125rem; font-weight: 600; background: rgb(var(--c-warning) / 0.18); color: rgb(var(--c-fg)); }
.demo-bar a { margin-left: 0.5rem; text-decoration: underline; }
