/* =========================================================================
   M&M Invite design system
   Brand colors are the two host clubs' own colors:
     Muskego Lacrosse Club     red #ED1C24, black, silver #A4A5A7
     Mukwonago Lacrosse Club   royal blue #0A338F, gold #FCB328
   Navy backgrounds are darker shades of Mukwonago blue; buttons are Muskego red.
   Components use the role tokens (--cta, --highlight, ...) rather than raw colors.
   ========================================================================= */

:root {
    /* Mukwonago royal blue (600) and the navies built from it */
    --brand-950: #050d24;
    --brand-900: #08163d;
    --brand-800: #0b215c;
    --brand-700: #0a2a75;
    --brand-600: #0a338f;
    --brand-500: #2251c9;
    --brand-100: #e2e8f7;
    --brand-50: #f1f4fb;

    /* Mukwonago gold */
    --gold-500: #fcb328;
    --gold-600: #e89b0c;
    --gold-100: #feefd0;

    /* Muskego red. 500 is the club's exact red, for stripes, glows, and bars.
       600 is a hair darker so white text on it (and it on light backgrounds)
       meets WCAG AA contrast; use it for buttons and text. */
    --red-700: #b8151b;
    --red-600: #dc1a21;
    --red-500: #ed1c24;
    --red-100: #fde3e4;
    --red-50: #fef3f3;

    /* Roles */
    --cta: var(--red-600);
    --cta-hover: var(--red-700);
    --cta-ink: #ffffff;
    --highlight: var(--red-600); /* accent text and icons on light backgrounds */
    --girls-500: var(--red-600);
    --girls-100: var(--red-100);
    --tone: var(--brand-600); /* progress bar color; division cards override it */
    --cta-glow: rgba(237, 28, 36, .55);
    --boys-bg: var(--brand-100);
    /* Organizer sidebar; each club's theme sets its own */
    --side-bg: var(--brand-950);
    --side-accent: var(--gold-500);
    --side-accent-soft: rgba(252, 179, 40, .12);

    /* Surfaces and details that change in dark mode */
    --link: var(--brand-600);
    --track: #edf0f5;
    --row-hover: #fafbfd;
    --placeholder: #a3abba;
    --btn-dark-bg: var(--brand-900);
    --btn-dark-hover: var(--brand-700);
    --num-bg: var(--brand-900);
    --boys-text: var(--brand-600);
    --girls-text: var(--red-700);
    --coed: #6b46c1;
    --coed-bg: #f1ebff;
    --coed-bd: #dccff9;
    --success-bd: #bfe6cf;
    --warning-bd: #f4d9a2;
    --danger-bd: #f4c1bc;
    --info-bd: #c4d8fb;
    --boys-bd: #c3d6ee;
    --girls-bd: #f6c2c4;
    color-scheme: light;

    --ink: #0d1526;
    --text: #1c2536;
    --muted: #5d6779;
    --subtle: #8a93a5;
    --bg: #f4f6fa;
    --surface: #ffffff;
    --surface-2: #f8f9fc;
    --border: #e2e7ef;
    --border-strong: #cdd5e1;

    --success: #11894a;
    --success-bg: #e6f6ed;
    --warning: #a05d00;
    --warning-bg: #fff4dc;
    --danger: #c9271b;
    --danger-bg: #fdeceb;
    --info: #1d5fd6;
    --info-bg: #e9f1ff;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-sm: 0 1px 2px rgba(13, 21, 38, .05), 0 1px 3px rgba(13, 21, 38, .07);
    --shadow: 0 10px 30px -12px rgba(13, 21, 38, .18), 0 2px 6px rgba(13, 21, 38, .05);
    --shadow-lg: 0 30px 70px -25px rgba(6, 14, 32, .45);
    --ring: 0 0 0 4px rgba(10, 51, 143, .2);

    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Barlow Condensed", "Inter", ui-sans-serif, sans-serif;
    --container: 1180px;
    --header-h: 72px;
}

/* =========================================================================
   Dark theme. Organizer accounts choose it (or "match my device") in
   Settings; the page's <html data-theme> carries the choice. Everything
   above reads these tokens, so this block is the whole theme.
   ========================================================================= */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1120;
    --surface: #131c30;
    --surface-2: #0f1728;
    --border: #24324d;
    --border-strong: #34456a;
    --ink: #eef2fa;
    --text: #d5dceb;
    --muted: #9ba7bd;
    --subtle: #7d8aa1;

    --brand-600: #5b8cff;
    --brand-500: #82a7ff;
    --brand-100: #1a2a52;
    --brand-50: #131f3d;
    --gold-100: #3a2d0c;
    --red-100: #3a1418;
    --red-50: #2a1114;
    --girls-100: var(--red-100);
    --highlight: #ff7a80;
    --link: #82a7ff;

    --success: #47d18c;
    --success-bg: #0f2a1d;
    --success-bd: #1d4a33;
    --warning: #f6b84f;
    --warning-bg: #2d220b;
    --warning-bd: #4d3a12;
    --danger: #ff7b72;
    --danger-bg: #2e1513;
    --danger-bd: #5a2420;
    --info: #7aa7ff;
    --info-bg: #10203f;
    --info-bd: #213a6b;
    --boys-text: #8fb0ff;
    --boys-bd: #273d6e;
    --girls-text: #ff8a90;
    --girls-bd: #5a2025;
    --coed: #b69cff;
    --coed-bg: #241b3d;
    --coed-bd: #3a2d63;

    --track: #22304a;
    --row-hover: #18233a;
    --placeholder: #6d7a91;
    --btn-dark-bg: #3b67d6;
    --btn-dark-hover: #3359c2;
    --num-bg: #3b67d6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .3);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
    --ring: 0 0 0 4px rgba(130, 167, 255, .25);
}
:root[data-theme="system"] { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] {
        color-scheme: dark;
        --bg: #0b1120;
        --surface: #131c30;
        --surface-2: #0f1728;
        --border: #24324d;
        --border-strong: #34456a;
        --ink: #eef2fa;
        --text: #d5dceb;
        --muted: #9ba7bd;
        --subtle: #7d8aa1;

        --brand-600: #5b8cff;
        --brand-500: #82a7ff;
        --brand-100: #1a2a52;
        --brand-50: #131f3d;
        --gold-100: #3a2d0c;
        --red-100: #3a1418;
        --red-50: #2a1114;
        --girls-100: var(--red-100);
        --highlight: #ff7a80;
        --link: #82a7ff;

        --success: #47d18c;
        --success-bg: #0f2a1d;
        --success-bd: #1d4a33;
        --warning: #f6b84f;
        --warning-bg: #2d220b;
        --warning-bd: #4d3a12;
        --danger: #ff7b72;
        --danger-bg: #2e1513;
        --danger-bd: #5a2420;
        --info: #7aa7ff;
        --info-bg: #10203f;
        --info-bd: #213a6b;
        --boys-text: #8fb0ff;
        --boys-bd: #273d6e;
        --girls-text: #ff8a90;
        --girls-bd: #5a2025;
        --coed: #b69cff;
        --coed-bg: #241b3d;
        --coed-bd: #3a2d63;

        --track: #22304a;
        --row-hover: #18233a;
        --placeholder: #6d7a91;
        --btn-dark-bg: #3b67d6;
        --btn-dark-hover: #3359c2;
        --num-bg: #3b67d6;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .3);
        --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
        --ring: 0 0 0 4px rgba(130, 167, 255, .25);
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--highlight); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
h1:focus { outline: none; }
::selection { background: var(--gold-100); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible,
.cta-band :focus-visible { outline-color: var(--gold-500); }
.admin-sidebar :focus-visible { outline-color: var(--side-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; letter-spacing: .02em; }
.display { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--border-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 44px; padding: 0 20px;
    font: 600 15px/1 var(--font-sans);
    color: var(--btn-fg); background: var(--btn-bg);
    border: 1.5px solid var(--btn-bd); border-radius: 10px;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { color: var(--btn-fg); border-color: var(--subtle); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { --btn-bg: var(--cta); --btn-fg: var(--cta-ink); --btn-bd: var(--cta); box-shadow: 0 8px 20px -8px var(--cta-glow); }
.btn-primary:hover { --btn-bg: var(--cta-hover); --btn-bd: var(--cta-hover); color: var(--cta-ink); box-shadow: 0 10px 24px -6px var(--cta-glow); }
.btn-dark { --btn-bg: var(--btn-dark-bg); --btn-fg: #fff; --btn-bd: var(--btn-dark-bg); }
.btn-dark:hover { --btn-bg: var(--btn-dark-hover); --btn-bd: var(--btn-dark-hover); color: #fff; }
.btn-ghost-light { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, .14); --btn-bd: rgba(255, 255, 255, .5); color: #fff; }
.btn-danger { --btn-bg: var(--surface); --btn-fg: var(--danger); --btn-bd: var(--danger-bd); }
.btn-danger:hover { --btn-bg: var(--danger-bg); --btn-bd: var(--danger); color: var(--danger); }
.btn-link { --btn-bg: transparent; --btn-bd: transparent; padding: 0 6px; color: var(--link); }
.btn-link:hover { color: var(--highlight); border-color: transparent; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Badges & chips ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap;
    color: var(--muted); background: var(--surface-2); border: 1px solid var(--border);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-success { color: var(--success); background: var(--success-bg); border-color: var(--success-bd); }
.badge-warning { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-bd); }
.badge-danger { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-bd); }
.badge-info { color: var(--info); background: var(--info-bg); border-color: var(--info-bd); }
.badge-neutral { color: var(--muted); }
.badge-boys { color: var(--boys-text); background: var(--boys-bg); border-color: var(--boys-bd); }
.badge-girls { color: var(--girls-text); background: var(--girls-100); border-color: var(--girls-bd); }
.badge-coed { color: var(--coed); background: var(--coed-bg); border-color: var(--coed-bd); }

/* ---------- Alerts ---------- */
.alert {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-size: 15px;
}
.alert .icon { margin-top: 3px; }
.alert strong { color: var(--ink); }
.alert p:last-child { margin-bottom: 0; }
.alert-success { background: var(--success-bg); border-color: var(--success-bd); }
.alert-success .icon { color: var(--success); }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-bd); }
.alert-warning .icon { color: var(--warning); }
.alert-danger { background: var(--danger-bg); border-color: var(--danger-bd); }
.alert-danger .icon { color: var(--danger); }
.alert-info { background: var(--info-bg); border-color: var(--info-bd); }
.alert-info .icon { color: var(--info); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-body { padding: 24px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.card-header h2, .card-header h3 { margin: 0; font-size: 17px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field-grid .span-2 { grid-column: span 2; }
.label { font-size: 14px; font-weight: 600; color: var(--ink); }
.label .optional { font-weight: 500; color: var(--subtle); margin-left: 4px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.input, .select, .textarea {
    width: 100%; min-height: 46px; padding: 10px 14px;
    font: 500 15.5px/1.4 var(--font-sans); color: var(--ink);
    background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
}
.textarea { min-height: 110px; resize: vertical; }
.select {
    padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6779' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.input::placeholder, .textarea::placeholder { color: var(--placeholder); font-weight: 400; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--subtle); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger); }
.input.invalid:focus { box-shadow: 0 0 0 4px rgba(201, 39, 27, .14); }
.validation-message { font-size: 13.5px; font-weight: 500; color: var(--danger); }
.validation-summary { display: block; list-style: none; margin: 0 0 20px; }
.validation-summary li + li { margin-top: 4px; }
.validation-errors { margin: 0; padding: 14px 16px 14px 36px; color: var(--danger); background: var(--danger-bg); border: 1px solid var(--danger-bd); border-radius: var(--radius); font-size: 14.5px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--border-strong); border-radius: 6px; background: var(--surface); cursor: pointer; display: grid; place-content: center; transition: background .15s, border-color .15s; }
.check input::after { content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform .12s; background: #fff; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.check input:checked { background: var(--brand-600); border-color: var(--brand-600); }
.check input:checked::after { transform: scale(1); }
.check input:focus-visible { box-shadow: var(--ring); outline: none; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Site header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgba(10, 22, 48, .88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo:hover { color: #fff; }
.logo-plate { display: inline-flex; flex: none; padding: 4px 9px; background: #fff; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.logo-plate img { display: block; height: 40px; width: auto; }
.logo-word { font: 700 13px/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: rgba(255, 255, 255, .78); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:not(.btn):hover, .site-nav a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; color: #fff; cursor: pointer; padding: 8px; border-radius: 8px; }
.nav-toggle .icon { width: 26px; height: 26px; }
#nav-open { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    margin-top: calc(var(--header-h) * -1);
    padding: calc(var(--header-h) + 88px) 0 150px;
    color: #fff;
    background:
        radial-gradient(55% 70% at 88% 8%, rgba(237, 28, 36, .32), transparent 62%),
        radial-gradient(45% 60% at 4% 96%, rgba(10, 51, 143, .8), transparent 62%),
        linear-gradient(160deg, var(--brand-900) 0%, var(--brand-950) 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), 0 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero::after {
    /* Faint field marking: center circle */
    content: ""; position: absolute; width: 560px; height: 560px; right: -140px; top: 50%;
    transform: translateY(-50%); border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 90px rgba(255, 255, 255, .015);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .92);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); animation: pulse 2s infinite; }
.pill .dot.off { background: var(--subtle); box-shadow: none; animation: none; }
.pill .dot.soon { background: #ffc53d; box-shadow: 0 0 0 4px rgba(255, 197, 61, .2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
.hero-title {
    margin: 22px 0 18px; color: #fff;
    font: italic 800 clamp(64px, 10.5vw, 136px)/.86 var(--font-display);
    text-transform: uppercase; letter-spacing: -.005em;
}
.hero-title .amp { color: var(--gold-500); }
.hero-title .year { display: block; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .9); }
.hero-lede { max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .78); margin-bottom: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 34px; color: rgba(255, 255, 255, .92); font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { color: var(--gold-500); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.glass {
    position: relative;
    background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
}
.hero-card { padding: 28px; }
.hero-card-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.countdown { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.countdown strong { font: 800 76px/1 var(--font-display); color: #fff; }
.countdown span { font: 700 22px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .8); }
.hero-card-sub { color: rgba(255, 255, 255, .65); font-size: 14.5px; margin: 0 0 22px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; }
.hero-stats div { padding-right: 12px; }
.hero-stats div + div { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .12); }
.hero-stats strong { display: block; font: 800 34px/1.05 var(--font-display); color: #fff; }
.hero-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .6); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Facts strip ---------- */
.facts { position: relative; z-index: 2; margin-top: -78px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.fact-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--red-50); color: var(--highlight); }
.fact-icon .icon { width: 22px; height: 22px; }
.fact-label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.fact-value { font-weight: 700; color: var(--ink); line-height: 1.35; }
.fact-value a { color: inherit; text-decoration: none; }
.fact-value a:hover { color: var(--highlight); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.eyebrow { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--highlight); }
.section-title { margin: 0; font: italic 800 clamp(40px, 5vw, 60px)/.95 var(--font-display); text-transform: uppercase; }
.section-sub { max-width: 560px; margin: 12px 0 0; font-size: 17px; color: var(--muted); }

/* ---------- Divisions ---------- */
.division-group + .division-group { margin-top: 44px; }
.division-group-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 800 22px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.division-group-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.division-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.division-card {
    --tone: var(--brand-600);
    position: relative; display: flex; flex-direction: column; gap: 16px;
    padding: 24px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.division-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--tone); }
.division-card.girls { --tone: var(--girls-500); }
.division-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.division-card h3 { margin: 10px 0 2px; font: 800 34px/1 var(--font-display); text-transform: uppercase; }
.division-card .desc { margin: 0; color: var(--muted); font-size: 14.5px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font: 800 40px/1 var(--font-display); color: var(--ink); }
.price span { font-size: 14px; color: var(--muted); }
.meter { display: flex; flex-direction: column; gap: 8px; }
.meter-bar { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.meter-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 70%, #fff)); }
.meter-bar.hot span { background: linear-gradient(90deg, var(--red-600), var(--red-500)); }
.meter-text { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.meter-text .hot { color: var(--highlight); }
.division-card .btn { margin-top: auto; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; background: var(--num-bg); color: #fff; font: italic 800 24px/1 var(--font-display); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Details & FAQ ---------- */
.info-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dl { display: grid; grid-template-columns: 170px 1fr; margin: 0; }
.dl dt, .dl dd { padding: 14px 0; border-bottom: 1px solid var(--border); margin: 0; }
.dl dt { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.dl dd { color: var(--ink); font-weight: 600; }
.dl > :nth-last-child(-n+2) { border-bottom: 0; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 650; color: var(--ink); font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); font-size: 18px; font-weight: 500; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); white-space: pre-line; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden;
    padding: 56px; border-radius: var(--radius-xl); color: #fff;
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(237, 28, 36, .38), transparent 60%),
        linear-gradient(135deg, var(--brand-800), var(--brand-950));
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 8px; color: #fff; font: italic 800 clamp(36px, 4.5vw, 54px)/.95 var(--font-display); text-transform: uppercase; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; padding: 56px 0 36px; background: var(--brand-950); color: rgba(255, 255, 255, .64); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 13px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; overflow: hidden;
    margin-top: calc(var(--header-h) * -1);
    padding: calc(var(--header-h) + 48px) 0 88px; color: #fff;
    background:
        radial-gradient(50% 90% at 92% 0%, rgba(237, 28, 36, .3), transparent 60%),
        linear-gradient(160deg, var(--brand-900), var(--brand-950));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%);
}
.page-hero h1 { margin: 6px 0 10px; color: #fff; font: italic 800 clamp(44px, 6vw, 72px)/.92 var(--font-display); text-transform: uppercase; }
.page-hero p { margin: 0; max-width: 620px; font-size: 18px; color: rgba(255, 255, 255, .75); }
.page-hero .eyebrow { color: var(--gold-500); }
.page-body { position: relative; z-index: 2; margin-top: -40px; }

/* ---------- Registration form ---------- */
.register-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.form-stack { display: flex; flex-direction: column; gap: 20px; }
.form-section { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-section-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.form-section-head .num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--num-bg); color: #fff; font: italic 800 19px/1 var(--font-display); }
.form-section-head h2 { margin: 2px 0 2px; font-size: 20px; }
.form-section-head p { margin: 0; font-size: 14.5px; color: var(--muted); }
.division-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.division-option { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border: 1.5px solid var(--border-strong); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; }
.division-option:hover { border-color: var(--subtle); }
.division-option input { position: absolute; opacity: 0; pointer-events: none; }
.division-option:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); box-shadow: var(--ring); }
.division-option:has(input:focus-visible) { box-shadow: var(--ring); }
.division-option.disabled { opacity: .55; cursor: not-allowed; background: var(--surface-2); }
.division-option .name { font: 800 23px/1 var(--font-display); text-transform: uppercase; color: var(--ink); }
.division-option .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--muted); }
.division-option .fee { font-weight: 700; color: var(--ink); font-size: 15px; }
.division-option .tick { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface); color: transparent; transition: all .15s; }
.division-option .tick .icon { width: 14px; height: 14px; stroke-width: 3; }
.level-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.level-option { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; }
.level-option:hover { border-color: var(--subtle); }
.level-option input { position: absolute; opacity: 0; pointer-events: none; }
.level-option:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); box-shadow: var(--ring); }
.level-option:has(input:focus-visible) { box-shadow: var(--ring); }
.level-letter { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font: 800 20px/1 var(--font-display); color: var(--ink); background: var(--surface-2); border: 1px solid var(--border); }
.level-option:has(input:checked) .level-letter { color: #fff; background: var(--brand-600); border-color: var(--brand-600); }
.level-text { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.badge-level { margin-left: 6px; padding: 1px 8px; font-weight: 800; color: var(--ink); }
.badge-level::before { display: none; }
.division-option:has(input:checked) .tick { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary .card-body { display: flex; flex-direction: column; gap: 18px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary-line span:first-child { color: var(--muted); }
.summary-line strong { color: var(--ink); text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px dashed var(--border-strong); }
.summary-total span { font-weight: 600; color: var(--ink); }
.summary-total strong { font: 800 40px/1 var(--font-display); color: var(--ink); }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-methods span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.secure-note .icon { color: var(--success); margin-top: 2px; }

/* ---------- Status page ---------- */
.status-card { max-width: 760px; margin: 0 auto; overflow: hidden; }
.status-top { padding: 40px 40px 32px; text-align: center; border-bottom: 1px solid var(--border); }
.status-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; }
.status-icon .icon { width: 36px; height: 36px; stroke-width: 2.4; }
.status-icon.success { background: var(--success-bg); color: var(--success); box-shadow: 0 0 0 10px rgba(17, 137, 74, .07); }
.status-icon.warning { background: var(--warning-bg); color: var(--warning); box-shadow: 0 0 0 10px rgba(160, 93, 0, .07); }
.status-icon.info { background: var(--info-bg); color: var(--info); box-shadow: 0 0 0 10px rgba(29, 95, 214, .07); }
.status-icon.neutral { background: var(--surface-2); color: var(--muted); box-shadow: 0 0 0 10px rgba(13, 21, 38, .04); }
.status-top h2 { font: italic 800 clamp(34px, 4vw, 46px)/1 var(--font-display); text-transform: uppercase; margin-bottom: 12px; }
.status-top p { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 16.5px; }
.status-action { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.status-details { padding: 8px 40px 28px; }
.code-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--ink); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 8px; }

/* ---------- Fake checkout (dev only) ---------- */
.dev-banner { padding: 10px 16px; background: repeating-linear-gradient(45deg, #fff4dc, #fff4dc 12px, #ffecc0 12px, #ffecc0 24px); border-bottom: 1px solid #f4d9a2; text-align: center; font-size: 14px; font-weight: 600; color: var(--warning); }

/* ---------- Admin shell ---------- */
.admin-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: var(--bg); color: var(--text); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 14px; background: var(--side-bg); color: rgba(255, 255, 255, .7); overflow-y: auto; }
.admin-sidebar .logo { padding: 4px 10px 22px; }
.admin-sidebar .logo-plate img { height: 34px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-label { padding: 18px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .35); }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.admin-nav a .icon { width: 18px; height: 18px; opacity: .85; }
.admin-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-nav a.active { background: var(--side-accent-soft); color: #fff; box-shadow: inset 3px 0 0 var(--side-accent); }
.admin-nav a.active .icon { color: var(--side-accent); opacity: 1; }
.admin-user { margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.admin-user strong { display: block; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user form { margin-top: 8px; }
.admin-user button { display: inline-flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; color: rgba(255, 255, 255, .6); font: inherit; cursor: pointer; }
.admin-user button:hover { color: #fff; }
.admin-main { min-width: 0; padding: 32px 40px 64px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.admin-head p { margin: 4px 0 0; color: var(--muted); }
.admin-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumb { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.breadcrumb:hover { color: var(--highlight); }
.breadcrumb .icon { width: 16px; height: 16px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.kpi-label .icon { width: 16px; height: 16px; color: var(--subtle); }
.kpi-value { margin-top: 8px; font: 800 38px/1 var(--font-display); color: var(--ink); }
.kpi-sub { margin-top: 6px; font-size: 13px; color: var(--subtle); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr:hover { background: var(--row-hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .primary { font-weight: 600; color: var(--ink); text-decoration: none; }
.table .primary:hover { color: var(--highlight); }
.table .sub { display: block; font-size: 13px; color: var(--muted); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty .icon { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--subtle); }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.filters .input, .filters .select { min-height: 40px; font-size: 14.5px; width: auto; }
.filters .search { flex: 1; min-width: 200px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tab:hover { color: var(--ink); background: var(--surface-2); }
.tab.active { color: var(--ink); background: var(--brand-100); }
.tab .count { padding: 0 7px; border-radius: 99px; background: rgba(13, 21, 38, .07); font-size: 12px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); box-shadow: 0 0 0 3px var(--surface); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline .when { display: block; font-size: 12.5px; color: var(--subtle); }
.timeline .who { font-weight: 600; color: var(--ink); }

.action-list { display: flex; flex-direction: column; gap: 14px; }
.action-list form { display: flex; flex-direction: column; gap: 10px; }
.action-list hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.setup-list { list-style: none; margin: 0; padding: 0; }
.setup-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.setup-list li:last-child { border-bottom: 0; }
.setup-list .icon { margin-top: 3px; }
.setup-list .ok { color: var(--success); }
.setup-list .todo { color: var(--warning); }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(60% 60% at 80% 0%, rgba(237, 28, 36, .28), transparent 60%), linear-gradient(160deg, var(--brand-900), var(--brand-950)); }
.auth-card { width: 100%; max-width: 420px; padding: 36px; }
.auth-card .logo { color: var(--ink); margin-bottom: 22px; }
.auth-card .logo-plate { box-shadow: 0 0 0 1px var(--border); }
.auth-card .logo-plate img { height: 52px; }
.auth-card .logo-word { color: var(--muted); }
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-card { max-width: 520px; }
}
@media (max-width: 900px) {
    .register-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .info-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 4px; padding: 10px 14px; overflow-x: auto; }
    .admin-sidebar .logo { flex: none; padding: 4px 12px 4px 4px; }
    .admin-sidebar .logo-word { display: none; }
    .admin-nav { flex-direction: row; }
    .admin-nav-label { display: none; }
    .admin-nav a { white-space: nowrap; padding: 8px 10px; }
    .admin-nav a.active { box-shadow: inset 0 -2px 0 var(--side-accent); }
    .admin-user { margin: 0 0 0 auto; padding: 0 0 0 12px; border: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
    .admin-user strong { display: none; }
    .admin-user form { margin: 0; }
    .admin-main { padding: 24px 16px 48px; }
}
@media (max-width: 760px) {
    .level-options { grid-template-columns: 1fr; }
    :root { --header-h: 64px; }
    .container { padding: 0 16px; }
    .logo-plate img { height: 34px; }
    .logo { gap: 10px; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        display: none; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 12px 16px 18px; background: var(--brand-900); border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
    /* Visually hidden but still focusable, so keyboard and screen-reader users can open the menu. */
    #nav-open { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
    #nav-open:focus-visible + .nav-toggle { outline: 2px solid #fff; outline-offset: 2px; }
    #nav-open:checked ~ .site-nav { display: flex; }
    .site-nav a:not(.btn) { padding: 12px; }
    .site-nav .btn { margin: 8px 0 0; }
    .hero { padding: calc(var(--header-h) + 48px) 0 120px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%); }
    .hero-title .year { -webkit-text-stroke-width: 1.5px; }
    .hero-actions .btn { flex: 1; }
    .facts { margin-top: -64px; }
    .facts-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .field-grid { grid-template-columns: 1fr; }
    .field-grid .span-2 { grid-column: auto; }
    .form-section { padding: 20px; }
    .dl { grid-template-columns: 1fr; }
    .dl dt { padding-bottom: 0; border-bottom: 0; }
    .dl dd { padding-top: 2px; }
    .cta-band { padding: 36px 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .status-top { padding: 32px 20px 24px; }
    .status-details { padding: 4px 20px 20px; }
    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi { padding: 16px; }
    .kpi-value { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Home page info sections
   ========================================================================= */
.inline-icon { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; }

/* By the numbers */
.numbers { padding-top: 72px; padding-bottom: 8px; }
.numbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.number { padding: 22px 20px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); border-top: 4px solid var(--brand-600); }
.number:nth-child(even) { border-top-color: var(--red-500); }
.number strong { display: block; font: italic 800 52px/1 var(--font-display); color: var(--ink); }
.number span { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Photo gallery */
.gallery { columns: 3 300px; column-gap: 14px; }
.gallery-item { position: relative; display: block; margin: 0 0 14px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--border); }
.gallery-item img { width: 100%; height: auto; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption { position: absolute; inset: auto 0 0; padding: 26px 14px 10px; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(5, 13, 36, .8)); }
.lightbox { max-width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-lg); background: #000; overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 13, 36, .85); }
.lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 48px); margin: 0 auto; }
.lightbox-caption { margin: 0; padding: 12px 18px; color: rgba(255, 255, 255, .85); font-size: 14px; background: #000; }
.lightbox-caption:empty { display: none; }
.lightbox form { position: absolute; top: 8px; right: 8px; margin: 0; }
.lightbox-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* Location */
.location-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; align-items: stretch; }
.location-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.location-card h3 { margin: 0; font: 800 30px/1.05 var(--font-display); text-transform: uppercase; }
.location-card p { margin: 0; }
.location-notes { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--border); width: 100%; }
.field-map { position: relative; display: block; overflow: hidden; min-height: 260px; background: var(--surface-2); }
.field-map img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.field-map-label { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(5, 13, 36, .78); color: #fff; font-size: 13px; font-weight: 600; }
.field-map.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; color: var(--muted); border-style: dashed; }
.field-map.placeholder .icon { width: 34px; height: 34px; color: var(--subtle); }

/* Volunteer call-out */
.volunteer-band { background: linear-gradient(135deg, var(--brand-50), var(--surface) 55%, var(--red-50)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.volunteer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.volunteer-card { display: flex; flex-direction: column; gap: 18px; }
.volunteer-stat { display: flex; align-items: center; gap: 16px; }
.volunteer-stat strong { display: grid; place-items: center; min-width: 74px; height: 74px; padding: 0 10px; border-radius: 18px; background: var(--brand-600); color: #fff; font: italic 800 40px/1 var(--font-display); }
.volunteer-stat strong .icon { width: 34px; height: 34px; }
.volunteer-stat span { font-weight: 600; color: var(--ink); }

/* Host clubs */
.clubs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.club-card { display: flex; gap: 22px; align-items: center; padding: 24px; }
.club-card img { flex: none; width: 112px; height: 112px; object-fit: contain; }
.club-card h3 { margin: 0 0 4px; font-size: 20px; }
.club-card p { margin: 0 0 12px; font-size: 15px; }

/* =========================================================================
   Volunteer sign-up
   ========================================================================= */
.vol-activity h3 { margin: 0 0 4px; font: 800 26px/1.1 var(--font-display); text-transform: uppercase; }
.vol-activity > p { margin: 0 0 10px; font-size: 14.5px; }
.vol-where { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-weight: 600; color: var(--ink); }
.vol-where .icon { width: 15px; height: 15px; color: var(--highlight); }
.vol-day { margin: 14px 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.slot { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 40px; border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.slot input { position: absolute; left: 13px; top: 14px; width: 18px; height: 18px; accent-color: var(--brand-600); cursor: pointer; }
.slot:hover { border-color: var(--subtle); }
.slot:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); box-shadow: var(--ring); }
.slot-time { font-weight: 700; color: var(--ink); font-size: 15px; white-space: nowrap; }
.slot-spots { font-size: 13px; color: var(--muted); }
.slot.full { cursor: not-allowed; background: var(--surface-2); border-style: dashed; opacity: .6; }
.slot.full .slot-time { text-decoration: line-through; color: var(--muted); }
.slot.full .slot-spots { font-weight: 700; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--border-strong); border-radius: 10px; cursor: pointer; font-weight: 600; }
.choice input { accent-color: var(--brand-600); width: 17px; height: 17px; }
.choice:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.shift-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.shift-row .sub { display: block; font-size: 14px; color: var(--muted); }
.muted-row { background: var(--surface-2); margin-bottom: 8px; }
.muted-row strong { color: var(--muted); }

/* =========================================================================
   Admin additions
   ========================================================================= */
.kpi-of { font-size: 22px; color: var(--subtle); }
.kpi-line { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 14px; }
.kpi .meter-bar { height: 6px; }
.meter-bar.done span, .bar-fill.done { background: var(--success); }
.report-heading { margin: 8px 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); }
.total-row td { font-weight: 700; color: var(--ink); background: var(--surface-2); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 64px; gap: 12px; align-items: center; font-size: 14px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--brand-600); }
.bar-fill.low { background: var(--red-500); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.need-list { list-style: none; margin: 0; padding: 0; }
.need-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.need-list li:last-child { border-bottom: 0; }
.need-list a { text-decoration: none; color: var(--ink); }
.need-list a:hover strong { color: var(--highlight); }
.need-list .sub { display: block; font-size: 13px; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 9px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-600); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--brand-600); color: var(--brand-600); }
.photo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.photo-admin { display: flex; flex-direction: column; gap: 8px; }
.photo-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--border); }
.field-map-preview { max-width: 100%; max-height: 360px; border-radius: 10px; border: 1px solid var(--border); }
.club-admin { display: flex; gap: 20px; align-items: flex-start; }
.club-admin img { flex: none; width: 84px; height: 84px; object-fit: contain; }

@media (max-width: 900px) {
    .location-grid, .volunteer-inner { grid-template-columns: 1fr; }
    .club-admin { flex-direction: column; }
}
@media (max-width: 760px) {
    .number strong { font-size: 42px; }
    .club-card { flex-direction: column; text-align: center; }
    .shift-row { flex-direction: column; align-items: flex-start; }
    .bar-row { grid-template-columns: 1fr 52px; }
    .bar-row .bar-label { grid-column: 1 / -1; }
}

/* Settings: theme picker. Previews use fixed colors so each shows its own theme. */
.theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.theme-option { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1.5px solid var(--border-strong); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.theme-option:hover { border-color: var(--subtle); }
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-option:has(input:checked) { border-color: var(--brand-600); box-shadow: var(--ring); }
.theme-option:has(input:focus-visible) { box-shadow: var(--ring); }
.theme-label { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 700; color: var(--ink); }
.theme-label .icon { width: 17px; height: 17px; }
.theme-preview { display: flex; height: 92px; overflow: hidden; border-radius: 9px; border: 1px solid rgba(127, 140, 160, .35); }
.tp-side { width: 26%; background: var(--side-bg); }
.tp-main { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 9px; }
.tp-card { height: 22px; border-radius: 5px; }
.tp-card.short { width: 70%; }
.tp-btn { width: 40%; height: 12px; margin-top: auto; border-radius: 4px; background: var(--cta); }
.theme-preview.light .tp-main { background: #f4f6fa; }
.theme-preview.light .tp-card { background: #fff; border: 1px solid #e2e7ef; }
.theme-preview.dark .tp-main { background: #0b1120; }
.theme-preview.dark .tp-card { background: #131c30; border: 1px solid #24324d; }
.theme-preview.system .tp-main { background: linear-gradient(115deg, #f4f6fa 50%, #0b1120 50%); }
.theme-preview.system .tp-card { background: linear-gradient(115deg, #fff 50%, #131c30 50%); border: 1px solid #8a93a5; }
@media (max-width: 760px) {
    .theme-options { grid-template-columns: 1fr; }
    .theme-preview { height: 70px; }
}

/* ---------- Game schedule board */
.schedule-days { margin-bottom: 16px; }
.schedule-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.schedule-scroll { overflow: auto; max-height: calc(100vh - 220px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.schedule-grid { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.schedule-grid th, .schedule-grid td { padding: 8px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); vertical-align: top; text-align: left; }
.schedule-grid thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.schedule-grid .time-col { position: sticky; left: 0; z-index: 1; width: 1%; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.schedule-grid thead .time-col { z-index: 3; }
.schedule-grid td { min-width: 210px; width: 210px; }
.game-card { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); font-size: 13px; transition: opacity .15s, box-shadow .15s; }
.game-card[draggable="true"] { cursor: grab; }
.game-card.empty { border-style: dashed; background: transparent; }
.game-card.has-warning { border-color: var(--warning-bd); box-shadow: inset 3px 0 0 var(--warning); }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 20px; }
.game-division { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--subtle); }
.game-tools { display: inline-flex; gap: 2px; }
.game-team { display: flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 2px; border: 1.5px solid transparent; border-radius: 8px; font-weight: 600; color: var(--ink); }
.game-team .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-team .badge-level { margin-left: 0; }
.game-team.tbd { color: var(--subtle); font-weight: 500; }
.vs { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.drop-team, .drop-ref { display: block; width: 100%; padding: 4px 8px; border: 1.5px dashed var(--border-strong); border-radius: 8px; background: transparent; color: var(--subtle); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.drop-ref { display: inline-block; width: auto; padding: 2px 8px; font-size: 12px; }
.drop-ref.short { border-color: var(--warning-bd); color: var(--warning); }
.drop-team:hover, .drop-ref:hover { border-color: var(--brand-600); color: var(--brand-600); }
.game-refs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 2px; }
.ref-tag { display: inline-flex; align-items: center; gap: 2px; padding: 1px 2px 1px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: 12px; font-weight: 600; }
.icon-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--subtle); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .icon { width: 13px; height: 13px; }
.ref-tag .icon-btn { width: 18px; height: 18px; color: inherit; }
.game-warning { display: flex; gap: 5px; margin: 2px 0 0; font-size: 12px; line-height: 1.35; color: var(--warning); }
.game-warning .icon { flex: none; width: 13px; height: 13px; margin-top: 2px; }
/* While a team, referee or game is picked up, light up where it can go. */
.picking-team .drop-team, .picking-team .game-team[data-drop] { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-600); }
.picking-scheduled .drop-team, .picking-scheduled .game-team[data-drop] { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-600); }
.picking-ref .game-card, .picking-game .game-card { outline: 2px dashed var(--brand-600); outline-offset: -2px; cursor: copy; }
.picking-scheduled [data-pool] { outline: 2px dashed var(--brand-600); outline-offset: -4px; background: var(--brand-50); }
.game-card.other-division { opacity: .35; }
.pick.selected, .game-card.selected, .icon-btn.selected { box-shadow: var(--ring); border-color: var(--brand-600); }
.schedule-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.schedule-side .card-header { padding: 14px 16px; }
.schedule-side .card-header form { margin: 0; }
.select-sm { min-height: 34px; padding-top: 4px; padding-bottom: 4px; font-size: 13.5px; }
.side-body { padding: 14px 16px; }
.side-group { margin: 14px 0 6px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.pick-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 10px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: grab; }
.pick:hover { border-color: var(--brand-600); }
.pick .badge-level { margin-left: 0; }
.pick-count { font-size: 11.5px; font-weight: 700; color: var(--subtle); }
.pick.done .pick-count { color: var(--success); }
.pick-status { position: fixed; left: 50%; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--btn-dark-bg); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,.25)); transform: translateX(-50%); }
.pick-status[hidden] { display: none; }
.pick-status button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--border); }
.plain-list .sub { display: block; font-size: 13px; color: var(--muted); }
.ref-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ref-game { align-items: flex-start; justify-content: flex-start; }
.ref-game-time { flex: none; width: 92px; }
@media (max-width: 1100px) {
    .schedule-layout { grid-template-columns: minmax(0, 1fr); }
    .schedule-side { position: static; max-height: none; }
}
@media print {
    .site-header, .site-footer, .admin-sidebar, .schedule-side, .admin-head .actions, .schedule-days, .pick-status, [data-print], .breadcrumb { display: none !important; }
    .page-hero { padding: 0 !important; background: none !important; color: #000 !important; }
    .schedule-scroll { max-height: none; overflow: visible; box-shadow: none; }
    .card, .shift-row { box-shadow: none !important; }
}

/* =========================================================================
   Club themes for the organizer area. Each organizer account belongs to a
   club, and <div class="admin-shell" data-club> carries it:
     Muskego    red, black, and silver
     Mukwonago  royal blue and gold
   Each has a light and a dark set; the dark set must reset every token the
   light set changes (custom properties set on the shell beat the dark :root
   values), and is repeated for "match my device". The public site keeps the
   shared M&M look above.
   ========================================================================= */
.admin-shell[data-club="muskego"] {
    --brand-950: #0c0d0f;
    --brand-900: #17181b;
    --brand-800: #24262b;
    --brand-700: #33363c;
    --brand-600: #b8151b;
    --brand-500: #dc1a21;
    --brand-100: #f7e2e3;
    --brand-50: #fcf3f3;
    --link: #b8151b;
    --highlight: #b8151b;
    --tone: #dc1a21;
    --cta: #dc1a21;
    --cta-hover: #b8151b;
    --cta-ink: #ffffff;
    --cta-glow: rgba(237, 28, 36, .5);
    --btn-dark-bg: #1d1f23;
    --btn-dark-hover: #34373c;
    --num-bg: #1d1f23;
    --boys-text: #0a338f;
    --boys-bg: #e2e8f7;
    --boys-bd: #c3d6ee;
    --ring: 0 0 0 4px rgba(184, 21, 27, .2);
    --side-bg: #101113;
    --side-accent: #ed1c24;
    --side-accent-soft: rgba(237, 28, 36, .16);
    --bg: #f4f4f5;
    --surface-2: #f8f8f9;
    --border: #e4e5e8;
    --border-strong: #cfd1d6;
    --track: #eeeff1;
    --row-hover: #fafafa;
    --ink: #111214;
    --text: #1f2125;
    --muted: #5c6068;
    --subtle: #878b93;
}
.admin-shell[data-club="mukwonago"] {
    --brand-950: #050d24;
    --brand-900: #08163d;
    --brand-800: #0b215c;
    --brand-700: #0a2a75;
    --brand-600: #0a338f;
    --brand-500: #2251c9;
    --brand-100: #e2e8f7;
    --brand-50: #f1f4fb;
    --link: #0a338f;
    --highlight: #0a338f;
    --tone: #0a338f;
    --cta: #fcb328;
    --cta-hover: #e89b0c;
    --cta-ink: #08163d;
    --cta-glow: rgba(232, 155, 12, .45);
    --btn-dark-bg: #08163d;
    --btn-dark-hover: #0a2a75;
    --num-bg: #08163d;
    --boys-text: #0a338f;
    --boys-bg: #e2e8f7;
    --boys-bd: #c3d6ee;
    --ring: 0 0 0 4px rgba(10, 51, 143, .2);
    --side-bg: #08163d;
    --side-accent: #fcb328;
    --side-accent-soft: rgba(252, 179, 40, .14);
}
:root[data-theme="dark"] .admin-shell[data-club="muskego"] {
    color-scheme: dark;
    --brand-950: #0c0d0f;
    --brand-900: #17181b;
    --brand-800: #24262b;
    --brand-700: #33363c;
    --brand-600: #ff5a60;
    --brand-500: #ff8085;
    --brand-100: #3a1518;
    --brand-50: #261114;
    --link: #ff8a8f;
    --highlight: #ff8085;
    --tone: #ff5a60;
    --cta: #dc1a21;
    --cta-hover: #ed1c24;
    --cta-ink: #ffffff;
    --cta-glow: rgba(237, 28, 36, .45);
    --btn-dark-bg: #4a4e57;
    --btn-dark-hover: #5a5f69;
    --num-bg: #4a4e57;
    --boys-text: #8fb0ff;
    --boys-bg: #1a2a52;
    --boys-bd: #273d6e;
    --ring: 0 0 0 4px rgba(255, 90, 96, .28);
    --side-bg: #08090a;
    --side-accent: #ed1c24;
    --side-accent-soft: rgba(237, 28, 36, .2);
    --bg: #0e0f11;
    --surface: #17191c;
    --surface-2: #121316;
    --border: #2a2d33;
    --border-strong: #3c4048;
    --track: #262930;
    --row-hover: #1c1e22;
    --ink: #f2f3f5;
    --text: #d9dbe0;
    --muted: #a3a7b0;
    --subtle: #868a94;
    --placeholder: #70747d;
}
:root[data-theme="dark"] .admin-shell[data-club="mukwonago"] {
    color-scheme: dark;
    --brand-950: #050d24;
    --brand-900: #08163d;
    --brand-800: #0b215c;
    --brand-700: #0a2a75;
    --brand-600: #5b8cff;
    --brand-500: #82a7ff;
    --brand-100: #1a2a52;
    --brand-50: #131f3d;
    --link: #82a7ff;
    --highlight: #ffc95c;
    --tone: #5b8cff;
    --cta: #fcb328;
    --cta-hover: #ffc54d;
    --cta-ink: #08163d;
    --cta-glow: rgba(252, 179, 40, .35);
    --btn-dark-bg: #3b67d6;
    --btn-dark-hover: #3359c2;
    --num-bg: #3b67d6;
    --boys-text: #8fb0ff;
    --boys-bg: #1a2a52;
    --boys-bd: #273d6e;
    --ring: 0 0 0 4px rgba(130, 167, 255, .25);
    --side-bg: #050d24;
    --side-accent: #fcb328;
    --side-accent-soft: rgba(252, 179, 40, .16);
}
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .admin-shell[data-club="muskego"] {
        color-scheme: dark;
        --brand-950: #0c0d0f;
        --brand-900: #17181b;
        --brand-800: #24262b;
        --brand-700: #33363c;
        --brand-600: #ff5a60;
        --brand-500: #ff8085;
        --brand-100: #3a1518;
        --brand-50: #261114;
        --link: #ff8a8f;
        --highlight: #ff8085;
        --tone: #ff5a60;
        --cta: #dc1a21;
        --cta-hover: #ed1c24;
        --cta-ink: #ffffff;
        --cta-glow: rgba(237, 28, 36, .45);
        --btn-dark-bg: #4a4e57;
        --btn-dark-hover: #5a5f69;
        --num-bg: #4a4e57;
        --boys-text: #8fb0ff;
        --boys-bg: #1a2a52;
        --boys-bd: #273d6e;
        --ring: 0 0 0 4px rgba(255, 90, 96, .28);
        --side-bg: #08090a;
        --side-accent: #ed1c24;
        --side-accent-soft: rgba(237, 28, 36, .2);
        --bg: #0e0f11;
        --surface: #17191c;
        --surface-2: #121316;
        --border: #2a2d33;
        --border-strong: #3c4048;
        --track: #262930;
        --row-hover: #1c1e22;
        --ink: #f2f3f5;
        --text: #d9dbe0;
        --muted: #a3a7b0;
        --subtle: #868a94;
        --placeholder: #70747d;
    }
    :root[data-theme="system"] .admin-shell[data-club="mukwonago"] {
        color-scheme: dark;
        --brand-950: #050d24;
        --brand-900: #08163d;
        --brand-800: #0b215c;
        --brand-700: #0a2a75;
        --brand-600: #5b8cff;
        --brand-500: #82a7ff;
        --brand-100: #1a2a52;
        --brand-50: #131f3d;
        --link: #82a7ff;
        --highlight: #ffc95c;
        --tone: #5b8cff;
        --cta: #fcb328;
        --cta-hover: #ffc54d;
        --cta-ink: #08163d;
        --cta-glow: rgba(252, 179, 40, .35);
        --btn-dark-bg: #3b67d6;
        --btn-dark-hover: #3359c2;
        --num-bg: #3b67d6;
        --boys-text: #8fb0ff;
        --boys-bg: #1a2a52;
        --boys-bd: #273d6e;
        --ring: 0 0 0 4px rgba(130, 167, 255, .25);
        --side-bg: #050d24;
        --side-accent: #fcb328;
        --side-accent-soft: rgba(252, 179, 40, .16);
    }
}

/* Year menu, "other year" banner, and club bits in the organizer area */
.year-switch { display: flex; flex-direction: column; gap: 4px; margin: 0 10px 8px; }
.year-switch label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.year-switch .select { background-color: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.year-switch .select option { color: #111; }
.year-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 16px; border: 1px solid var(--warning-bd); border-radius: var(--radius); background: var(--warning-bg); color: var(--text); font-size: 14.5px; }
.year-banner > .icon { flex: none; color: var(--warning); }
.year-banner > div { flex: 1; }
.year-banner form { margin: 0; }
.admin-club { display: block; margin-top: 2px; font-size: 12px; color: var(--side-accent); font-weight: 600; }
.row-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.club-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.club-option { flex-direction: row; align-items: center; gap: 14px; }
.club-swatch { display: inline-flex; flex: none; overflow: hidden; border-radius: 8px; border: 1px solid rgba(127, 140, 160, .35); }
.club-swatch span { width: 18px; height: 40px; }
.club-swatch.muskego span:nth-child(1) { background: #ed1c24; }
.club-swatch.muskego span:nth-child(2) { background: #111214; }
.club-swatch.muskego span:nth-child(3) { background: #a4a5a7; }
.club-swatch.mukwonago span:nth-child(1) { background: #0a338f; }
.club-swatch.mukwonago span:nth-child(2) { background: #fcb328; }
.club-swatch.mukwonago span:nth-child(3) { background: #08163d; }
.club-badge.muskego { color: #b8151b; background: #fde3e4; border-color: #f6c2c4; }
.club-badge.mukwonago { color: #0a338f; background: #fff4dc; border-color: #f4d9a2; }
@media (max-width: 900px) {
    .year-switch { flex-direction: row; align-items: center; margin: 0 8px; flex: none; }
    .year-switch label { display: none; }
    .admin-club { display: none; }
}
@media (max-width: 640px) {
    .club-options { grid-template-columns: 1fr; }
}
:root[data-theme="dark"] .club-badge.muskego { color: #ff8a8f; background: #3a1518; border-color: #5a2025; }
:root[data-theme="dark"] .club-badge.mukwonago { color: #ffc95c; background: #2d220b; border-color: #4d3a12; }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .club-badge.muskego { color: #ff8a8f; background: #3a1518; border-color: #5a2025; }
    :root[data-theme="system"] .club-badge.mukwonago { color: #ffc95c; background: #2d220b; border-color: #4d3a12; }
}

/* ---------- Schedule map */
.admin-shell.menu-collapsed { grid-template-columns: minmax(0, 1fr); }
.admin-shell.menu-collapsed .admin-sidebar { display: none; }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.schedule-toolbar .schedule-days { margin-bottom: 0; }
.view-toggle { display: inline-flex; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.view-toggle a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.view-toggle a .icon { width: 15px; height: 15px; }
.view-toggle a + a { border-left: 1px solid var(--border-strong); }
.view-toggle a.active { background: var(--btn-dark-bg); color: #fff; }
.time-strip { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding: 2px 2px 6px; }
.time-chip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 82px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12px; text-decoration: none; }
.time-chip strong { font-size: 14px; color: var(--ink); }
.time-chip:hover { border-color: var(--brand-600); }
.time-chip.active { border-color: var(--brand-600); background: var(--brand-50); box-shadow: var(--ring); }
.time-chip .full { color: var(--success); font-weight: 700; }
.venue-scroll { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.venue-map {
    position: relative; min-width: 1000px; aspect-ratio: 2 / 1; border-radius: var(--radius-lg);
    background: repeating-linear-gradient(90deg, #5d9a47 0 5%, #64a24d 5% 10%);
}
:root[data-theme="dark"] .venue-map { background: repeating-linear-gradient(90deg, #22401d 0 5%, #264720 5% 10%); }
@media (prefers-color-scheme: dark) {
    :root[data-theme="system"] .venue-map { background: repeating-linear-gradient(90deg, #22401d 0 5%, #264720 5% 10%); }
}
.map-field {
    position: absolute; display: flex; flex-direction: column; gap: 3px; overflow: hidden; padding: 6px 7px;
    border: 2px solid rgba(255, 255, 255, .92); border-radius: 8px; background: var(--surface); color: var(--text);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28); font-size: 12px;
}
.map-field.game-card { border-color: rgba(255, 255, 255, .92); }
.map-field.has-warning { box-shadow: inset 0 3px 0 var(--warning), 0 6px 16px rgba(0, 0, 0, .28); }
.map-field.no-slot { justify-content: flex-start; background: rgba(255, 255, 255, .22); border-style: dashed; box-shadow: none; color: #fff; }
.map-field.no-slot .map-field-name { color: #fff; }
.map-field > * { flex-shrink: 0; } /* clip at the bottom rather than squash rows into each other */
.map-field-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 20px; }
.map-field-name { font: 800 16px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.map-field-div { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--subtle); line-height: 1.2; }
.map-field-note { margin: auto 0; font-size: 12px; font-weight: 600; text-align: center; }
.map-field.game-card.empty { background: var(--surface); border-style: solid; }
.map-field .map-team { display: block; min-height: 0; padding: 3px 5px 2px; border-radius: 7px; background: var(--surface-2); line-height: 1.2; }
.map-field .map-team[draggable="true"] { cursor: grab; }
.map-field .map-team.selected { background: var(--brand-100); box-shadow: inset 0 0 0 2px var(--brand-600); }
.map-field .map-team .name { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; font-size: 12px; font-weight: 700; }
.map-team-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 1px; }
.map-team-meta .badge-level { padding: 0 6px; font-size: 11px; line-height: 1.5; }
.map-team-meta .icon-btn { width: 18px; height: 18px; }
.map-field .drop-team { padding: 5px 7px; font-size: 12px; }
.map-field .vs { text-align: center; font-size: 10px; }
.map-field .game-refs { margin-top: auto; }
.map-field .game-refs { gap: 3px; }
.map-field .ref-tag { gap: 0; padding: 0 0 0 5px; font-size: 10.5px; line-height: 18px; }
.map-field .ref-tag .icon-btn { width: 15px; height: 18px; }
.map-field .ref-tag .icon-btn .icon { width: 11px; height: 11px; }
.map-field .drop-ref { padding: 0 7px; font-size: 11px; line-height: 18px; }
.map-field .game-warning { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11px; }
.map-field .game-warning .icon { display: inline; vertical-align: -2px; }
.venue-map.arranging .map-field { cursor: move; user-select: none; touch-action: none; border-style: dashed; }
.venue-map.arranging .map-field.dragging { z-index: 5; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.map-resize { position: absolute; right: 3px; bottom: 3px; width: 16px; height: 16px; border-right: 3px solid var(--brand-600); border-bottom: 3px solid var(--brand-600); border-radius: 0 0 4px 0; cursor: nwse-resize; }
.arrange-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--info-bd); border-radius: var(--radius); background: var(--info-bg); font-size: 14px; }
.arrange-bar form { display: flex; gap: 8px; margin: 0; }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.team-pool .card-header { flex-wrap: wrap; }
.max-games { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); }
.max-games label { flex: 1; }
.max-games .input { width: 84px; min-height: 34px; padding: 4px 8px; }
.pick.unavailable { opacity: .45; cursor: not-allowed; border-style: dashed; }
.pick.unavailable:hover { border-color: var(--border-strong); }
.pick-why { padding: 1px 6px; border-radius: 99px; background: var(--surface-2); font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
