/* Local surfaces, not an invert filter: brand images, Discord, map tiles and arcade keep their colours. */
html[data-ukfb-theme=light] {
 color-scheme:light;--bg:#f6eef8;--bg-2:#f5e8f5;--deep:#eee0f2;--ink:#281735;--dim:#513a64;
 --soft:#533e68;--line:#a989bb;--rule:#9a79ad;--violet:#593779;--frame:#e8d8f0;
 --accent:#62337a;--on-accent:#180f00;--solid:#e9d9ee;
}
html[data-ukfb-theme=dark] {color-scheme:dark;--bg-2:#322741;}
html[data-ukfb-theme=light] :is(.ukfb-header.site,.ukfb-header.kiosk-header,.scene-footer,.top) {background:#e8d8f0;color:var(--ink)}
html[data-ukfb-theme=light] .ukfb-header::after {
 background:none;background-color:#e8d8f0;
 mask:url('/assets/ukfb-header-dither.v2.svg') left top / 8px 16px repeat-x;
}
html[data-ukfb-theme=light] :is(.ukfb-header .ukfb-brand,.scene-footer a,.top a) {color:#39204d}
html[data-ukfb-theme=light] .ukfb-header .ukfb-wordmark b {color:#66391a}
html[data-ukfb-theme=light] .front .hero:not([data-arcade]),
html[data-ukfb-theme=light] body:not(.map-kiosk) .route-mast {
 background-color:#eee0f3;
 background-image:conic-gradient(#e9d7f0 25%,#f4e8f7 25% 50%,#ebdcf2 50% 75%,#f4e8f7 75%);
 background-size:8px 8px;color:#281735;
}
html[data-ukfb-theme=light] .front .hero:not([data-arcade]) em {color:#642a89;text-shadow:2px 2px #d7abeb}
html[data-ukfb-theme=light] :is(.route-mast,.front .hero:not([data-arcade])) .eyebrow {color:#56336b}
html[data-ukfb-theme=light] :is(.hero[data-arcade],.voxel-stage,.art-label,.badges) {color:#fbf2ff}
html[data-ukfb-theme=light] :is(.stack,.shop-entry,.shop-quick,.note,.form-grid input,.form-grid textarea,.form-grid select) {color:var(--ink)}
html[data-ukfb-theme=light] :is(.note,.form-grid input,.form-grid textarea,.form-grid select) {background:#eadcf0}
html[data-ukfb-theme=light] a:not(.btn):hover {color:#7a257f}
html[data-ukfb-theme=light] .key.exact,html[data-ukfb-theme=light] .tile.exact,
html[data-ukfb-theme=light] .key.present,html[data-ukfb-theme=light] .tile.present,
html[data-ukfb-theme=light] .key.absent,html[data-ukfb-theme=light] .tile.absent {color:#fff}
.ukfb-header .ukfb-social {gap:9px}
body .ukfb-theme-toggle.btn.arc-theme-circle {
 display:grid;place-items:center;position:relative;isolation:isolate;
 width:40px;height:40px;min-width:40px;min-height:40px;
 padding:0;margin:0 4px 8px;border:0;background:transparent;
 --u:2px;--d:8px;--arc-face-h:40px;--arc-shift:19px;
 --face:var(--bg-2);--hi:#ad93c5;--lo:#412d51;--line:#190d24;--arc-glow-level:.24;
 color:#fff;
}
body .ukfb-theme-toggle.btn::before,body .ukfb-theme-toggle.btn::after {content:"";position:absolute;z-index:-1;pointer-events:none}
body .ukfb-theme-toggle.btn::after {z-index:-2}
html[data-ukfb-theme=light] .ukfb-theme-toggle.btn.arc-theme-circle {--face:#e7d8f0;--hi:#fff;--lo:#997caf;--line:#51405e;color:#281735}
.ukfb-theme-toggle .btn-text {display:grid;place-items:center}
.ukfb-theme-toggle .btn-text svg {width:15px;height:15px;display:block}
.ukfb-theme-toggle svg.theme-moon,html[data-ukfb-theme=light] .ukfb-theme-toggle svg.theme-sun {display:none}
html[data-ukfb-theme=light] .ukfb-theme-toggle svg.theme-moon {display:block}
.ukfb-theme-toggle:focus-visible {outline:2px solid #b555df;outline-offset:4px;border-radius:50%}
.ukfb-theme-toggle[hidden] {display:none!important}
.ukfb-theme-wake {position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:9999;image-rendering:pixelated}
.top .theme-tools {display:flex;gap:8px;align-items:center;white-space:nowrap}
@media(max-width:410px) {
 .ukfb-header .ukfb-social {gap:5px}
 body .ukfb-theme-toggle.btn.arc-theme-circle {margin-inline:2px}
 .ukfb-header .ukfb-wordmark {font-size:7px}
 .ukfb-header .ukfb-brand img {width:45px;height:auto}
 .ukfb-header .ukfb-brand {gap:6px}
}
@media(max-width:365px) {
 .ukfb-header .ukfb-discord .btn-text > span {display:none}
 .ukfb-header .ukfb-social .btn.ukfb-discord {width:37px;padding-inline:0}
}
@media(prefers-reduced-motion:reduce),(forced-colors:active) {.ukfb-theme-wake{display:none}}
@media(max-width:410px) {
 .top:has(.theme-tools) {gap:6px;padding-inline:9px}
 .top:has(.theme-tools) .brand {font-size:7px;gap:5px}
 .top:has(.theme-tools) .brand img {width:42px;height:auto}
 .top .theme-tools {gap:5px;font-size:.8rem}
}
