:root { color-scheme: light; --surface:#fffdf7; --surface-alt:#eee9df; --admin-accent:#235b78; }
html { scroll-padding-top:calc(var(--site-header-height, 180px) + 16px); }
.site-header { position:sticky; top:0; z-index:50; }
:root[data-theme="dark"] { color-scheme:dark; --ink:#edf0ed; --paper:#131d27; --cream:#1c2a35; --surface:#1c2a35; --surface-alt:#17232e; --line:#435361; --muted:#b8c3ca; --red-dark:#ff9b8d; --admin-accent:#8ec7e6; }
:root[data-theme="dark"] .avatar-upload input::file-selector-button { background:#293d4c; color:var(--ink); border-color:var(--line); }
.theme-picker { position:relative; flex-shrink:0; color:#fff; }
.theme-picker { border-bottom:0; }
.theme-picker summary span { color:inherit; font-size:inherit; line-height:1.2; transform:none; }
.theme-picker[open] summary span { transform:none; }
.theme-picker summary { cursor:pointer; list-style:none; display:flex; align-items:center; gap:7px; min-height:44px; padding:10px 12px; border:1px solid #65707a; border-radius:14px; font-size:.8rem; font-weight:700; }
.theme-picker summary::-webkit-details-marker { display:none; }
.theme-picker[open] summary { border-color:var(--gold); }
.theme-panel { position:absolute; right:0; top:calc(100% + 8px); z-index:20; width:210px; padding:16px; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--ink); box-shadow:0 8px 30px #0004; }
.theme-panel label { display:block; font-size:.8rem; font-weight:700; margin-bottom:8px; }
.theme-panel select { width:100%; min-height:44px; border:1px solid var(--line); border-radius:10px; background:var(--paper); color:var(--ink); font:inherit; padding:8px; }
.header-inner { gap:18px; }
.site-header nav { gap:22px; flex-wrap:wrap; }
.landing-account-links { display:flex; align-items:center; gap:12px; margin-top:14px; font-size:.85rem; }
.registration-entry { padding:34px; border-radius:22px; background:var(--cream); color:var(--ink); max-width:760px; }
.registration-entry h3 { font-size:1.8rem; }
.registration-entry p { color:var(--muted); line-height:1.7; }
.server-list-filters { grid-template-columns:2fr 1fr 1fr auto; align-items:end; margin:24px 0; }
.server-list-filters label { display:block; margin-bottom:8px; }
.server-avatar { display:inline-flex; width:46px; height:46px; flex:none; background:var(--navy); border-radius:12px; overflow:hidden; }
.server-avatar img { width:100%; height:100%; object-fit:contain; }
.level-description { display:block; margin-top:6px; color:var(--muted); font-size:.78rem; line-height:1.5; }
:root[data-theme="dark"] body { background:var(--paper); color:var(--ink); }
:root[data-theme="dark"] .how-section,:root[data-theme="dark"] .teams-section { background:var(--surface-alt); }
:root[data-theme="dark"] .route-card,:root[data-theme="dark"] .account-card,:root[data-theme="dark"] .admin-metrics>div { background:var(--surface); border-color:var(--line); }
:root[data-theme="dark"] .price-card.veteran,:root[data-theme="dark"] .podium-first { background:#352d21; border-color:#9c7b39; }
:root[data-theme="dark"] .podium { background:#252a2a; border-color:#9c7b39; }
:root[data-theme="dark"] .price-card p,:root[data-theme="dark"] .route-card p,:root[data-theme="dark"] .muted,:root[data-theme="dark"] .league-result,:root[data-theme="dark"] .editor-help,:root[data-theme="dark"] .account-card dt { color:var(--muted); }
:root[data-theme="dark"] .red-eyebrow,:root[data-theme="dark"] .tag,:root[data-theme="dark"] .podium-place { color:#ff9b8d; }
:root[data-theme="dark"] .demo-section { background:#6e2528; }
:root[data-theme="dark"] .registration-shell,:root[data-theme="dark"] .wizard-option,:root[data-theme="dark"] .review-card { background:var(--surface); color:var(--ink); border-color:var(--line); }
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea { background:var(--paper); color:var(--ink); border-color:var(--line); }
:root[data-theme="dark"] .account-card input:not([type=checkbox]),:root[data-theme="dark"] .account-card select,:root[data-theme="dark"] .league-filters input,:root[data-theme="dark"] .league-filters select,:root[data-theme="dark"] .editor-grid input,:root[data-theme="dark"] .editor-grid select { background:var(--paper); color:var(--ink); border-color:var(--line); }
:root[data-theme="dark"] .account-small,:root[data-theme="dark"] .wizard-back { background:#293c4b; color:var(--ink); border-color:var(--line); }
:root[data-theme="dark"] .notice { background:#203b30; color:#d4ecdf; border-color:#56816d; }
:root[data-theme="dark"] .notice.error { background:#44272e; color:#ffc2c2; border-color:#a16672; }
:root[data-theme="dark"] .errorlist { color:#ffc2c2; }
:root[data-theme="dark"] .question-hint,:root[data-theme="dark"] .wizard-title>span,:root[data-theme="dark"] .progress-wrap label,:root[data-theme="dark"] .option-body small,:root[data-theme="dark"] .wizard-footnote,:root[data-theme="dark"] .keyboard-hint,:root[data-theme="dark"] #form-reset { color:var(--muted); }
:root[data-theme="dark"] .option-body,:root[data-theme="dark"] .avatar-choice { background:var(--surface); border-color:var(--line); }
:root[data-theme="dark"] .wizard-option input:checked+.option-body,:root[data-theme="dark"] .avatar-choice[aria-pressed="true"] { background:#3b3031; border-color:#ff9b8d; }
:root[data-theme="dark"] .team-card,:root[data-theme="dark"] .email-preview { background:#352d21; border-color:#9c7b39; }
:root[data-theme="dark"] .example-button { background:#293c4b; color:var(--ink); }
:root[data-theme="dark"] .button-red:hover { background:#ac2524; }
:root[data-theme="dark"] .rules-content,:root[data-theme="dark"] .rules-index,:root[data-theme="dark"] .current-agreements { background:var(--surface); color:var(--ink); }
:root[data-theme="dark"] .rules-content .current-agreements,:root[data-theme="dark"] .points-grid>div { background:var(--surface); border-color:var(--line); }
:root[data-theme="dark"] .rules-content p,:root[data-theme="dark"] .rules-content li,:root[data-theme="dark"] .rules-index a,:root[data-theme="dark"] .team-card small,:root[data-theme="dark"] .avatar-upload p { color:var(--muted); }
:root[data-theme="dark"] .rules-pending { background:#352d21; color:#f1d6a3; }
:root[data-theme="dark"] .league-demo-note { background:#392f20; color:#f1d6a3; border-color:#8c7447; }
select:focus-visible { outline:3px solid var(--gold); outline-offset:3px; }
@media(max-width:1000px) { .header-inner { gap:8px 12px; } .site-header nav { gap:18px; } }
@media(max-width:680px) { .theme-picker summary { padding:9px; } .theme-picker summary .theme-label { display:none; } .server-list-filters { grid-template-columns:1fr; } .registration-entry { padding:24px; } .site-header nav { gap:12px; } }
