/* =========================================================
   NDSL Team Page Template — shared stylesheet
   Team colours are injected as CSS custom properties from
   the team data block, so every subdomain reuses this file.
   ========================================================= */

@font-face { font-family: "Teko"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/teko-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Teko"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/teko-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Permanent Marker"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/permanent-marker-latin-400-normal.woff2") format("woff2"); }

:root {
  --c1: #F26A1B;          /* primary (orange)  */
  --c2: #8B5034;          /* secondary (brown) */
  --c3: #18A04A;          /* accent (green)    */
  --c3-bright: #2BD563;
  --bg: #070707;
  --panel: #111111;
  --panel-2: #181818;
  --line: #2a2a2a;
  --text: #F4F4F2;
  --muted: #B9B9B4;
  --radius: 14px;
  --cut: 18px;
  --maxw: 1200px;
  --font-display: "Teko", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Permanent Marker", "Comic Sans MS", cursive;
  --shadow: 0 10px 40px rgba(0,0,0,.55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  background-image:
    radial-gradient(1200px 600px at 110% -10%, color-mix(in srgb, var(--c3) 18%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, color-mix(in srgb, var(--c1) 16%, transparent), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c1); }
a:hover { color: #ff8a45; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c3-bright); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--c1); color: #000; padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,7,7,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font: 700 1.5rem/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.brand small { display: block; font: 600 .7rem/1 var(--font-body); color: var(--muted); letter-spacing: .14em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a {
  color: var(--muted); text-decoration: none; font: 500 1.25rem/1 var(--font-display);
  text-transform: uppercase; letter-spacing: .04em; padding: .55rem .7rem; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); background: var(--panel-2); }
.nav a[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--c1); }
.team-switch { margin-left: .5rem; }
.team-switch select {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; max-width: 11rem;
}
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .7rem; cursor: pointer; }
@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; background: #0b0b0b; border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
  .nav.open { display: flex; }
  .team-switch { margin: .5rem 0 0; }
  .team-switch select { max-width: none; width: 100%; }
}

/* ---------- Shared bits ---------- */
section { padding: clamp(3rem, 7vw, 6rem) 0; }
.eyebrow { font: 600 .8rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--c3-bright); margin: 0 0 .5rem; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 .accent { color: var(--c1); }
h3 { font-size: 1.8rem; }
.lede { color: var(--muted); max-width: 62ch; font-size: 1.125rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  border-radius: 0;
}
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; text-decoration: none;
  font: 700 1.35rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  padding: .75rem 1.25rem .6rem; border: 2px solid transparent; color: #0a0a0a; background: var(--c1);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: #ff8540; color: #0a0a0a; }
.btn.green { background: var(--c3); color: #fff; }
.btn.green:hover { background: var(--c3-bright); color: #062b12; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--c1); color: var(--text); }
.btn svg { width: 1.1em; height: 1.1em; }
.chip {
  cursor: pointer; border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px;
  padding: .4rem .95rem; font-weight: 600; font-size: .95rem; color: var(--muted);
}
.chip[aria-pressed="true"] { background: var(--c1); border-color: var(--c1); color: #0a0a0a; }
.chip.def[aria-pressed="true"] { background: var(--c3); border-color: var(--c3); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.hero::before { /* lightning streaks */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background:
    repeating-linear-gradient(115deg, transparent 0 60px, color-mix(in srgb, var(--c1) 22%, transparent) 60px 64px, transparent 64px 180px),
    repeating-linear-gradient(115deg, transparent 0 120px, color-mix(in srgb, var(--c3) 22%, transparent) 120px 123px, transparent 123px 260px);
  mask-image: linear-gradient(90deg, #000 0 15%, transparent 35% 65%, #000 85%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; position: relative; }
.hero-crest { position: relative; }
.hero-crest img { width: 100%; max-width: 560px; margin-inline: auto; filter: drop-shadow(0 20px 50px color-mix(in srgb, var(--c1) 35%, transparent)); animation: hover 6s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-10px); } }
.hero h1 { font-size: clamp(3.6rem, 10vw, 7.5rem); }
.hero h1 .state { display: block; font-size: .42em; color: var(--c3-bright); letter-spacing: .08em; margin-bottom: .1em; }
.hero h1 .name-2 { color: var(--c1); display: block; }
.motto { font: 400 clamp(1.4rem, 3vw, 2.1rem)/1.2 var(--font-script); color: var(--c1); margin: .6rem 0 1rem; transform: rotate(-2deg); transform-origin: left; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.next-match {
  display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: center;
  padding: 1rem 1.25rem; margin-top: 1rem; max-width: 520px;
}
.next-match .label { grid-column: 1 / -1; font: 600 .75rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--c3-bright); }
.next-match .vs { font: 700 1.6rem/1 var(--font-display); text-transform: uppercase; }
.countdown { display: flex; gap: .5rem; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.countdown div { text-align: center; min-width: 3.1rem; background: #0a0a0a; border: 1px solid var(--line); border-radius: 8px; padding: .3rem .25rem .15rem; }
.countdown b { display: block; font: 700 1.7rem/1 var(--font-display); color: var(--text); }
.countdown span { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-crest img { max-width: 360px; }
  .hero-cta { justify-content: center; }
  .motto { transform-origin: center; }
  .next-match { margin-inline: auto; grid-template-columns: 1fr; text-align: center; }
  .countdown { justify-content: center; }
  .lede { margin-inline: auto; }
}

/* ---------- Stats strip ---------- */
.stats { padding: 0 0 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--panel); padding: 1.1rem 1rem; text-align: center; }
.stat b { display: block; font: 700 2.8rem/1 var(--font-display); color: var(--c1); font-variant-numeric: tabular-nums; }
.stat:nth-child(even) b { color: var(--c3-bright); }
.stat span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(6, 1fr); } .stat { grid-column: span 2; } .stat:nth-child(n+4) { grid-column: span 3; } .stat b { font-size: 2.2rem; } .stat span { font-size: .68rem; letter-spacing: .08em; } }
.stats-note { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; text-align: right; }

/* ---------- About / emblem ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.about-copy p { color: var(--muted); }
.about-copy p strong { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.facts li { background: var(--panel-2); border-left: 4px solid var(--c1); padding: .7rem .9rem; }
.facts li:nth-child(even) { border-color: var(--c3); }
.facts dt, .facts .k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts .v { font: 700 1.45rem/1.1 var(--font-display); text-transform: uppercase; }
.emblem { padding: 1.5rem; }
.emblem h3 { color: var(--c1); margin-bottom: 1rem; }
.emblem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.emblem-item { display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; align-items: start; padding: .8rem; border: 1px solid var(--line); background: #0c0c0c; transition: border-color .2s, transform .2s; }
.emblem-item:hover { border-color: var(--c1); transform: translateX(4px); }
.emblem-item .ico { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: color-mix(in srgb, var(--c1) 18%, #000); border-radius: 8px; font-size: 1.3rem; }
.emblem-item b { font: 700 1.35rem/1 var(--font-display); text-transform: uppercase; display: block; color: var(--text); }
.emblem-item p { margin: .2rem 0 0; color: var(--muted); font-size: .97rem; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.5rem; }
.swatch {
  cursor: pointer; border: 1px solid var(--line); background: #0c0c0c; padding: 0 0 .6rem; text-align: center;
  border-radius: 10px; overflow: hidden; transition: transform .15s;
}
.swatch:hover { transform: translateY(-3px); }
.swatch i { display: block; height: 64px; margin-bottom: .5rem; }
.swatch b { display: block; font: 700 1.15rem/1 var(--font-display); text-transform: uppercase; }
.swatch code { font-size: .8rem; color: var(--muted); }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Kit ---------- */
.kit-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; align-items: start; }
.kit-viewer { padding: 1rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tab { cursor: pointer; background: #0c0c0c; border: 1px solid var(--line); padding: .45rem .9rem .3rem; font: 600 1.2rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--c1); border-color: var(--c1); color: #0a0a0a; }
.kit-stage { position: relative; background: radial-gradient(closest-side, #1d1d1d, #0a0a0a); border-radius: 10px; display: grid; place-items: center; min-height: 420px; padding: 1rem; overflow: hidden; }
.kit-stage img { max-height: 520px; width: auto; object-fit: contain; transition: opacity .25s; }
.kit-stage .zoom { position: absolute; right: .75rem; bottom: .75rem; }
.kit-caption { margin: .75rem 0 0; color: var(--muted); font-size: .95rem; min-height: 1.6em; }
.builder { padding: 1.25rem; }
.builder h3 { color: var(--c3-bright); }
.builder p { color: var(--muted); margin: .3rem 0 1rem; font-size: .97rem; }
.builder canvas { width: 100%; height: auto; background: radial-gradient(closest-side, #1d1d1d, #0a0a0a); border-radius: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 7rem; gap: .6rem; margin: 1rem 0; }
label.field { display: grid; gap: .3rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .toolbar input[type="search"] {
  width: 100%; min-width: 0;
  background: #0c0c0c; border: 1px solid var(--line); border-radius: 8px; padding: .65rem .8rem; font-size: 1rem; letter-spacing: normal; text-transform: none; color: var(--text);
}
.field input:focus, .toolbar input:focus { border-color: var(--c1); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c1) 35%, transparent); }
@media (max-width: 960px) { .kit-grid { grid-template-columns: 1fr; } .kit-stage { min-height: 320px; } }

/* ---------- Roster ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.25rem; }
.toolbar input[type="search"] { flex: 1 1 240px; width: auto; }
.toolbar .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.result-count { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.roster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.unit { --u: var(--c1); border: 2px solid var(--u); background: #0b0b0b; }
.unit.defense { --u: var(--c3); }
.unit-head { background: var(--u); color: #0a0a0a; text-align: center; padding: .7rem 1rem .4rem; }
.unit.defense .unit-head { color: #fff; }
.unit-head h3 { font-size: 2.6rem; font-style: italic; }
.unit-head p { margin: 0; font: 700 1rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.unit table { width: 100%; border-collapse: collapse; }
.unit thead th { font: 700 1.25rem/1 var(--font-display); text-transform: uppercase; color: var(--u); text-align: left; padding: .7rem .75rem .5rem; border-bottom: 1px solid var(--line); }
.unit.defense thead th { color: var(--c3-bright); }
.unit tbody th[scope="rowgroup"] {
  background: color-mix(in srgb, var(--u) 22%, #000); color: var(--text); text-align: left;
  font: 700 1.05rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; padding: .55rem .75rem .4rem;
}
.unit td { padding: 0; border-bottom: 1px solid #1d1d1d; }
.unit td.num { width: 3.6rem; }
.unit tr.player { cursor: pointer; transition: background .15s; }
.unit tr.player:hover, .unit tr.player:focus-within { background: color-mix(in srgb, var(--u) 12%, transparent); }
.unit tr.player[hidden] { display: none; }
.cell { display: block; padding: .6rem .75rem; }
.num .cell { font: 700 1.5rem/1 var(--font-display); font-style: italic; color: var(--text); }
.pos .cell { font: 500 1.15rem/1.1 var(--font-display); text-transform: uppercase; color: var(--muted); letter-spacing: .03em; }
.player-btn { all: unset; display: block; width: 100%; padding: .6rem .75rem; cursor: pointer; font-weight: 600; box-sizing: border-box; }
.player-btn:focus-visible { outline: 3px solid var(--c3-bright); outline-offset: -3px; }
.player-btn .callsign { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); letter-spacing: .06em; }
mark { background: color-mix(in srgb, var(--c1) 55%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }
.empty-row td { padding: 1rem .75rem; color: var(--muted); font-style: italic; }
@media (max-width: 960px) { .roster-grid { grid-template-columns: 1fr; } }

/* ---------- Staff ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.staff-card { padding: 1.2rem 1.2rem 1rem; border: 1px solid var(--line); background: linear-gradient(160deg, #161616, #0c0c0c); position: relative; }
.staff-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--c1), var(--c3)); }
.staff-card .role { font: 700 1.05rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--c1); }
.staff-card .who { font: 700 1.7rem/1.05 var(--font-display); text-transform: uppercase; margin: .35rem 0; }
.staff-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 1.4rem/1 var(--font-display); background: color-mix(in srgb, var(--c3) 30%, #000); border: 2px solid var(--c3); margin-bottom: .75rem; }

/* ---------- Fixtures ---------- */
.fixtures-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fixture-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fixture { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 1rem; align-items: center; padding: .8rem 1rem; background: #0c0c0c; border: 1px solid var(--line); }
.fixture.next { border-color: var(--c1); box-shadow: 0 0 0 1px var(--c1) inset; }
.date-badge { text-align: center; border-right: 1px solid var(--line); padding-right: .8rem; }
.date-badge b { display: block; font: 700 2rem/.9 var(--font-display); }
.date-badge span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fixture .opp { font: 700 1.45rem/1 var(--font-display); text-transform: uppercase; }
.fixture .meta { font-size: .85rem; color: var(--muted); }
.result { font: 700 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font: 700 .9rem/1 var(--font-display); letter-spacing: .1em; padding: .3rem .5rem .15rem; border-radius: 4px; margin-left: .4rem; vertical-align: middle; }
.tag.W { background: var(--c3); color: #fff; } .tag.D { background: #555; color: #fff; } .tag.L { background: #b3261e; color: #fff; }
.ics-btn { background: none; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; cursor: pointer; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.ics-btn:hover { border-color: var(--c1); color: var(--text); }
.sample-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
@media (max-width: 880px) { .fixtures-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; background: #050505; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1.5rem; margin-bottom: .75rem; color: var(--c1); }
.site-footer ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.site-footer li { margin: .2rem 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { color: var(--muted); margin: .3rem 0; font-size: .93rem; }
.legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; color: #8a8a85; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Dialogs / toast ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(92vw, 640px); width: 100%; }
dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog-card { position: relative; padding: 1.5rem; background: linear-gradient(170deg, #1a1a1a, #0b0b0b); border: 1px solid var(--line); }
.dialog-close { position: absolute; right: .75rem; top: .75rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #0c0c0c; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.dialog-close:hover { border-color: var(--c1); }
.player-hero { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; margin-bottom: 1rem; }
.player-num { font: 700 5rem/.8 var(--font-display); font-style: italic; color: var(--c1); -webkit-text-stroke: 1px #fff; }
.player-num.def { color: var(--c3); }
.player-name { font: 700 2.4rem/.95 var(--font-display); text-transform: uppercase; margin: 0; }
.player-pos { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; margin: .3rem 0 0; }
.player-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0; }
.player-facts div { background: #0c0c0c; border: 1px solid var(--line); padding: .6rem; text-align: center; }
.player-facts b { display: block; font: 700 1.4rem/1 var(--font-display); text-transform: uppercase; }
.player-facts span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.player-role { color: var(--muted); margin: 0; }
#zoom-dialog { max-width: min(96vw, 1100px); }
#zoom-dialog img { max-height: 86vh; width: auto; margin-inline: auto; }
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); background: var(--c3); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow); transition: transform .25s ease; z-index: 200; }
.toast.show { visibility: visible; transform: translate(-50%, 0); }

/* ---------- Print: roster sheet ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; color: #000; }
  .site-header, .hero, .stats, #team, #kit, #fixtures, .site-footer, .toolbar, .result-count, .no-print, dialog, .toast, .skip-link { display: none !important; }
  section { padding: 0; }
  #roster h2, #staff h2 { color: #000; }
  .unit { border-color: #000; break-inside: avoid; background: #fff; }
  .unit-head { background: #eee !important; color: #000 !important; }
  .unit thead th, .unit.defense thead th, .num .cell, .pos .cell { color: #000 !important; }
  .unit tbody th[scope="rowgroup"] { background: #ddd !important; color: #000; }
  .unit tr.player[hidden] { display: table-row; }
  .player-btn .callsign { color: #444; }
  .staff-card { background: #fff; border-color: #000; color: #000; break-inside: avoid; }
  .staff-card .who, .staff-card .role { color: #000; }
  .panel, .cut { box-shadow: none; clip-path: none; }
}
