/* Crusaders UI kit tokens. Load right after theme.css. README: Tokens. */
/* Readability floor (2026-10-24): no text below 9 px at 1280x800, all text readable at 821x462 1x. Silkscreen 8 is retired:
   --cu-fs-l1 now equals l2 (16). Small captions, keycaps and tags use the body font at --cu-fs-label-min (12 px). */
@property --cu-adv{syntax:'<number>';inherits:true;initial-value:0}
@property --fa{syntax:'<angle>';inherits:true;initial-value:0deg}
:root{
--cu-ink:#231a2e;--cu-void:#07050f;--cu-night:#120d22;
--cu-navy-hi:#2a3b63;--cu-navy:#1d2a4b;--cu-navy-lo:#141c36;
--cu-gold-0:#fff3cd;--cu-gold-1:#ffe2a3;--cu-gold-2:#f4c67b;--cu-gold-3:#b98a45;--cu-gold-4:#7a5a2a;
--cu-leaf:linear-gradient(#fff3cd 0 30%,#ffe2a3 30% 52%,#f4c67b 52% 76%,#b98a45 76%);
--cu-leaf-2:linear-gradient(#ffe2a3 0 50%,#f4c67b 50%);
--cu-m-battle:#80eee2;--cu-m-battle-2:#a98cff;--cu-m-conquest:#f4c67b;--cu-m-conquest-2:#8fb57c;--cu-m-pageant:#f49bc7;
--cu-m-lastlight:#ffa45c;--cu-m-lastlight-2:#a98cff;--cu-m-lastlight-deep:#2b2542;
--cu-dawn:#80eee2;--cu-dawn-deep:#267e8a;--cu-shadow:#a98cff;--cu-shadow-deep:#3b2a5c;
--cu-r1:#f4c67b;--cu-r2:#bcc8cc;--cu-r3:#d49a6a;
--cu-seal:#c8343f;--cu-seal-ink:#8a1a2a;
--cu-hp:#f47a8f;--cu-hp-crit:#ff3d4f;--cu-ward:#80eee2;--cu-good:#9fe8a6;--cu-bad:#ff8a7a;--cu-hot:#ff6a5c;--cu-ember:#ffa45c;
--cu-cls-ranger:#267e8a;--cu-cls-ranger-hi:#80eee2;--cu-cls-fighter:#a3263a;--cu-cls-fighter-hi:#ff8a7a;
--cu-cls-mage:#73547f;--cu-cls-mage-hi:#a98cff;--cu-cls-builder:#b98a45;--cu-cls-builder-hi:#ffe2a3;
--cu-fs-d1:42px;--cu-fs-d2:63px;--cu-fs-d3:84px;--cu-fs-d4:105px;--cu-fs-d5:126px;
--cu-fs-l1:16px;--cu-fs-l2:16px;--cu-fs-l3:24px;--cu-ls-l1:1px;--cu-ls-l2:1px;--cu-ls-l3:1px;
--cu-fs-label-min:12px;--cu-lh-label-min:16px;
--cu-fs-b1:12px;--cu-lh-b1:16px;--cu-fs-b2:14px;--cu-lh-b2:20px;--cu-fs-b3:16px;--cu-lh-b3:22px;
--cu-fs-b4:20px;--cu-lh-b4:24px;--cu-fs-b5:24px;--cu-lh-b5:28px;
--cu-fs-n1:16px;--cu-fs-n2:24px;--cu-fs-n3:32px;--cu-fs-n4:48px;--cu-fs-n5:64px;--cu-fs-n6:96px;
--cu-ts-1:1px 1px #231a2e;--cu-ts-2:2px 2px #231a2e;--cu-ts-3:3px 3px #231a2e;
--cu-ts-outline:2px 0 #231a2e,-2px 0 #231a2e,0 2px #231a2e,0 -2px #231a2e,2px 2px #231a2e,-2px 2px #231a2e,2px -2px #231a2e,-2px -2px #231a2e,0 5px #231a2e;
--cu-s1:4px;--cu-s2:8px;--cu-s3:12px;--cu-s4:16px;--cu-s5:24px;--cu-s6:32px;--cu-s7:48px;--cu-s8:64px;
--cu-gutter-c:16px;--cu-gutter-m:24px;--cu-gutter-w:44px;--cu-hud-pad:14px;--cu-hud-pad-c:8px;--cu-lb:36px;--cu-lb-c:24px;
--cu-tap:44px;
--cu-z-world:-3;--cu-z-tint:-2;--cu-z-fx:-1;--cu-z-lb:2;--cu-z-top:3;--cu-z-over:5;--cu-z-toast:6;--cu-z-intro:50;
--cu-mat-gilt-bg:linear-gradient(#2a3b63,#1d2a4b 42%,#141c36);
--cu-mat-gilt-edge:inset 0 0 0 2px var(--ui-gold-lo),inset 0 4px #ffe2a31f,inset 0 -3px #0a0e1c66;
--cu-rv:linear-gradient(#fff3cd 0 0);--cu-rb:calc(100% - 4px);
--cu-mat-rivets:var(--cu-rv) 4px 4px/2px 2px no-repeat,var(--cu-rv) var(--cu-rb) 4px/2px 2px no-repeat,var(--cu-rv) 4px var(--cu-rb)/2px 2px no-repeat,var(--cu-rv) var(--cu-rb) var(--cu-rb)/2px 2px no-repeat;
--cu-mat-enamel-bg:linear-gradient(#22305a,#1d2a4b 60%,#18213f);
--cu-mat-enamel-edge:inset 0 2px 0 #ffffff14,inset 0 -2px 0 #0000002e;
--cu-mat-scrim:linear-gradient(90deg,#120d22d9 0,#120d2299 55%,#120d2200);
--cu-mat-parch-bg:linear-gradient(#fff8e0,#fff3cd 60%,#f3e2b8);
--cu-mat-parch-edge:inset 0 0 0 3px #f4c67b,inset 0 6px 0 #fff9;
--cu-mat-weave:repeating-linear-gradient(0deg,#ffffff07 0 2px,#0000 2px 4px),repeating-linear-gradient(90deg,#00000014 0 2px,#0000 2px 6px);
--cu-mat-dither:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Cpath d='M0 0h1v1H0zm1 1h1v1H1z' fill='%23ffffff0a'/%3E%3C/svg%3E") 0 0/2px 2px;
--cu-hatch:repeating-linear-gradient(135deg,#efe0b6 0 6px,#e6d3a2 6px 12px);
--cu-drop-1:2px 2px #231a2e;--cu-drop-2:4px 4px 0 #231a2e99;--cu-drop-3:6px 6px 0 #231a2e88;--cu-drop-hero:10px 12px 0 #231a2e88;
--cu-key:#ffe2a3;--cu-rim-dawn:#80eee2;--cu-rim-shadow:#a98cff;--cu-ambient:#1b2442;--cu-bounce:#ffa45c;--cu-pool:#141a34c8;
--cu-tint-bounce:radial-gradient(90% 34% at 50% 100%,#ffa45c55,#0000 70%);
--cu-ui-hi:inset 0 2px 0 #ffe2a326;--cu-ui-occlude:inset 0 -3px 0 #0a0e1c66;
--cu-dof:blur(2px) saturate(.75) brightness(.85);
--cu-glow-sel:0 0 24px #ffe2a366;--cu-glow-cta:0 0 28px #ffe2a366;
--cu-ease-out:cubic-bezier(.16,.84,.24,1);--cu-ease-in:cubic-bezier(.5,0,.8,.4);--cu-ease-pop:cubic-bezier(.2,.9,.3,1.3);
--cu-ease-slam:cubic-bezier(.5,1.8,.5,1);--cu-ease-cam:cubic-bezier(.45,.05,.2,1);
--cu-t-press:90ms;--cu-t-hover:160ms;--cu-t-sel:180ms;--cu-t-panel:280ms;--cu-t-item:460ms;--cu-t-leave:240ms;--cu-t-cam:1400ms;
--cu-t-hold:1500ms;--cu-t-ink:420ms;--cu-t-flash:120ms;--cu-t-hitstop:60ms;--cu-stagger-in:32ms;--cu-stagger-out:18ms;
--cu-focus-ring:0 0 0 2px var(--cu-ink),0 0 0 5px var(--ui-gold-hi);
--cu-stub-ink:#5e4e40;--cu-stub-line:#8a7560;--cu-stamp:#a3263a;
}
/* materials: A gilt, B enamel, C scrim, parchment, leaf */
.cu-mat-gilt{background:var(--cu-mat-rivets),var(--cu-mat-gilt-bg);border:3px solid var(--cu-ink);box-shadow:var(--cu-mat-gilt-edge),var(--cu-drop-2)}
.cu-mat-enamel{background:var(--cu-mat-enamel-bg);border:2px solid var(--cu-ink);box-shadow:var(--cu-mat-enamel-edge),var(--cu-drop-1)}
.cu-mat-scrim{background:var(--cu-mat-scrim);text-shadow:var(--cu-ts-2)}
.cu-mat-parch{background:var(--cu-mat-parch-bg);border:3px solid var(--cu-ink);box-shadow:inset 0 0 0 3px var(--cu-accent,#f4c67b),inset 0 6px 0 #fff9;color:var(--cu-ink);text-shadow:none}
.cu-leaf{background:var(--cu-leaf-2);box-shadow:inset 0 -2px 0 #b98a45;color:var(--cu-ink);text-shadow:none}
/* Gilt Selector: list plate, grid brackets */
.cu-sel-plate{position:absolute;left:0;right:0;pointer-events:none;--g:var(--cu-t-sel) var(--cu-ease-pop);background:linear-gradient(90deg,#f4c67b40,#f4c67b18 55%,#f4c67b00);transition:translate var(--g),top var(--g),height var(--g),opacity var(--cu-t-hover)}
.cu-sel-plate::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:linear-gradient(90deg,#ffe2a3 0 50%,#f4c67b 50%);box-shadow:2px 2px 0 var(--cu-ink)}
.cu-sel-plate::after{content:"";position:absolute;inset:0 12px 0 auto;margin:auto 0;width:16px;height:22px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 11'%3E%3Cuse href='%23c' x='1' y='1' fill='%23231a2e'/%3E%3Cg fill='%23ffe2a3'%3E%3Cpath id='c' d='M0 0h3v1h1v1h1v1h1v1h1v2h-1v1h-1v1h-1v1h-1v1h-3v-1h1v-1h1v-1h1v-1h1v-2h-1v-1h-1v-1h-1v-1h-1z'/%3E%3C/g%3E%3C/svg%3E") 0 0/100% 100%}
.cu-brackets{position:absolute;pointer-events:none;--b:var(--ui-gold-hi);--l:linear-gradient(var(--b) 0 0);--g:var(--cu-t-sel) var(--cu-ease-pop);background:var(--l) 0 0/14px 4px,var(--l) 0 0/4px 14px,var(--l) 100% 0/14px 4px,var(--l) 100% 0/4px 14px,var(--l) 0 100%/14px 4px,var(--l) 0 100%/4px 14px,var(--l) 100% 100%/14px 4px,var(--l) 100% 100%/4px 14px;background-repeat:no-repeat;filter:drop-shadow(2px 2px 0 var(--cu-ink));transition:translate var(--g),width var(--g),height var(--g),opacity var(--cu-t-hover)}
.cu-kbd{display:inline-block;padding:2px 5px;font:400 var(--cu-fs-label-min,12px)/12px var(--ui-body);letter-spacing:1px;text-transform:uppercase;color:var(--cu-ink);background:var(--cu-mat-parch-bg);border:2px solid var(--cu-ink);box-shadow:0 2px 0 var(--cu-ink);text-shadow:none;vertical-align:middle;white-space:nowrap}
/* stub with SOON stamp */
.cu-stub.cu-stub{position:relative;background:var(--cu-hatch);border:2px dashed var(--cu-stub-line);color:var(--cu-stub-ink);box-shadow:none;text-shadow:none;filter:none;cursor:not-allowed;translate:none}
.cu-stub.cu-stub::after{content:"Soon";position:absolute;top:-11px;right:-6px;padding:1px 4px 0;font:400 var(--cu-fs-label-min,12px)/12px var(--ui-body);letter-spacing:1px;text-transform:uppercase;color:var(--cu-stamp);background:#fff3cd;border:3px double var(--cu-stamp);pointer-events:none}
/* impact */
.cu-flash{position:absolute;inset:0;z-index:5;background:#fff8e0;opacity:0;pointer-events:none}
.cu-flash.go{animation:cu-flash var(--cu-t-flash) steps(2) both}
@keyframes cu-flash{0%{opacity:.9}100%{opacity:0}}
.cu-hitstop :not(.cu-flash){animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){
 .cu-sel-plate,.cu-brackets{transition:opacity 120ms linear}
 .cu-flash.go{animation:none}
}
