/* Screen styles, lifted from the approved mockups (mockups/*.html) and scoped to a body class:
   body.s-menu, s-modes, s-family, s-cards, s-round, s-res, s-cert. Keyframes carry the same suffix. */

/* ===================== menu.html ===================== */
body.s-menu .hero{position:relative;overflow:hidden;padding:clamp(24px,4.5vh,48px) 0 clamp(60px,9vh,100px)}
body.s-menu .hero-aura{position:absolute;inset:0;z-index:0;pointer-events:none;-webkit-mask-image:linear-gradient(180deg,#000 62%,transparent);mask-image:linear-gradient(180deg,#000 62%,transparent);background:radial-gradient(50% 60% at 78% 45%,rgba(56,198,244,.16),transparent 70%),radial-gradient(40% 50% at 10% 85%,rgba(130,80,255,.12),transparent 70%),radial-gradient(30% 40% at 90% 90%,rgba(255,77,94,.08),transparent 70%)}
html[data-theme="light"] body.s-menu .hero-aura{background:radial-gradient(42% 55% at 76% 40%,rgba(56,198,244,.12),transparent 70%)}
body.s-menu .hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:clamp(24px,3.5vw,56px);align-items:center}
body.s-menu .hcol{display:grid;gap:16px;align-content:start;min-width:0}
body.s-menu .h-head{display:grid;gap:12px;justify-items:start}
body.s-menu .hero .h1{font-size:clamp(26px,2.85vw,36px);line-height:1.12;max-width:15em}
body.s-menu .hero .sub{font-size:clamp(15px,1.3vw,17px)}
body.s-menu .hello{font-size:14px;color:var(--muted)}
body.s-menu .hello b{color:var(--text);font-weight:600}
body.s-menu .h-lede .lede{font-size:15px;line-height:1.65;max-width:48ch;color:var(--text)}
body.s-menu .mmenu{display:grid;gap:6px;max-width:440px}
body.s-menu .mm{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr) auto 14px;align-items:center;gap:10px;min-height:44px;padding:6px 10px 6px 6px;border-radius:12px;border:1px solid var(--line);background:rgba(11,17,34,.88);color:var(--text);text-align:left;width:100%;transition:transform .18s ease,border-color .18s ease,background-color .18s ease}
html[data-theme="light"] body.s-menu .mm{background:#fff}
body.s-menu .mm-t{min-width:0}
body.s-menu .mm-t b{display:block;font-weight:600;font-size:14px;letter-spacing:-.005em;line-height:1.25}
body.s-menu .mm-t small{display:block;font-size:11.5px;color:var(--faint);line-height:1.35;margin-top:1px}
body.s-menu .mm-ic{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:linear-gradient(145deg,rgba(147,222,255,.2),rgba(147,222,255,.05));border:1px solid rgba(147,222,255,.32);color:var(--acc);--ic-in:#0B1122}
body.s-menu .mm-ic .i{width:15px;height:15px}
html[data-theme="light"] body.s-menu .mm-ic{background:#E3F3FC;border-color:#A9D4EC;--ic-in:#E3F3FC}
body.s-menu .mm-ch{width:14px;height:14px;color:var(--lab);opacity:.75;transition:transform .18s ease,color .18s ease}
body.s-menu .mm-meta{display:grid;justify-items:end;align-content:center;gap:6px;padding-left:6px}
body.s-menu .mm-meta small{font:600 9.5px/1 var(--f-mono);letter-spacing:.05em;color:var(--lab);text-shadow:var(--lab-glow);white-space:nowrap}
body.s-menu .mm-nx{display:none}
body.s-menu .mm::before{content:"";position:absolute;left:-14px;top:50%;width:0;height:0;margin-top:-5px;border-left:6px solid var(--acc);border-top:5px solid transparent;border-bottom:5px solid transparent;opacity:0;transform:translateX(-4px);transition:opacity .18s ease,transform .18s ease;filter:drop-shadow(0 0 6px rgba(147,222,255,.8))}
html[data-theme="light"] body.s-menu .mm::before{filter:none}
body.s-menu .mm.is-sel{border-color:rgba(147,222,255,.62);background:rgba(15,26,51,.96);transform:translateX(3px)}
html[data-theme="light"] body.s-menu .mm.is-sel{border-color:#0874A6;background:#F5FBFF}
body.s-menu .mm.is-sel::before{opacity:1;transform:none}
body.s-menu .mm.is-sel .mm-ch{color:var(--acc);opacity:1;transform:translateX(2px)}
body.s-menu .mm-flame{color:var(--amber)}
body.s-menu .mm-go{grid-template-columns:40px minmax(0,1fr) 18px;min-height:58px;padding:8px 13px 8px 9px;border-radius:14px;background:var(--fill);border-color:var(--fill);color:var(--on-fill);box-shadow:0 0 0 1px rgba(147,222,255,.4),0 0 22px rgba(56,198,244,.32);animation:goG-menu 3.2s ease-in-out infinite}
html[data-theme="light"] body.s-menu .mm-go{background:var(--fill);box-shadow:0 2px 0 rgba(10,26,51,.18);animation:none}
body.s-menu .mm-go.is-sel,html[data-theme="light"] body.s-menu .mm-go.is-sel{background:var(--fill);border-color:var(--fill)}
body.s-menu .mm-play{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#03040C;color:#93DEFF}
body.s-menu .mm-play .i{width:16px;height:16px;margin-left:2px}
html[data-theme="light"] body.s-menu .mm-play{background:#0A1A33;color:#7FD6F7}
body.s-menu .mm-go b{display:block;font-weight:700;font-size:15px;letter-spacing:-.01em;line-height:1.15}
body.s-menu .mm-go small{display:flex;justify-content:space-between;gap:10px;margin-top:3px;font:600 11.5px/1.2 var(--f-sans);color:rgba(3,4,12,.74)}
html[data-theme="light"] body.s-menu .mm-go small{color:rgba(10,26,51,.8)}
body.s-menu .mm-bar{display:block;height:3px;margin-top:5px;border-radius:9px;background:rgba(3,4,12,.18);overflow:hidden}
body.s-menu .mm-bar i{display:block;height:100%;width:var(--p,60%);border-radius:9px;background:#03040C}
body.s-menu .mm-go .mm-ch{color:var(--on-fill);width:18px;height:18px}
@keyframes goG-menu{0%,100%{box-shadow:0 0 0 1px rgba(147,222,255,.4),0 0 22px rgba(56,198,244,.3),0 0 0 0 rgba(147,222,255,.4)}50%{box-shadow:0 0 0 1px rgba(147,222,255,.4),0 0 22px rgba(56,198,244,.3),0 0 0 9px rgba(147,222,255,0)}}
body.s-menu .mm-out{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
body.s-menu .hglobe{display:grid;justify-items:center;gap:10px}
body.s-menu .g3{position:relative;width:min(540px,100%);aspect-ratio:1}
body.s-menu .g-rings,body.s-menu .g-cv{position:absolute;left:0;top:0;display:block;pointer-events:none}
body.s-menu .g-rings{z-index:0;overflow:visible}
body.s-menu .g-cv{z-index:1}
body.s-menu .g-rings *{fill:none}
body.s-menu .g-rings .sol{stroke:rgba(147,222,255,.11);stroke-width:1}
body.s-menu .g-rings .sol-g{animation:gspin-menu 240s linear infinite}
body.s-menu .g-rings .lace{stroke:rgba(147,222,255,.3);stroke-width:1.1}
body.s-menu .g-rings .lace-g{animation:gspin-menu 200s linear infinite reverse}
body.s-menu .g-rings .band{stroke:rgba(147,222,255,.45);stroke-width:1.2}
body.s-menu .g-rings .tick-g{animation:gspin-menu 150s linear infinite reverse}
body.s-menu .g-rings .tick-g line{stroke:rgba(147,222,255,.72);stroke-width:1.6;stroke-linecap:round}
body.s-menu .g-rings .lt{stroke:#E6F8FF;stroke-width:3;stroke-linecap:round;stroke-dasharray:.45 99.55;animation:lt 12s linear infinite}
body.s-menu .g-rings .lth{stroke:#38C6F4;stroke-width:9;stroke-linecap:round;stroke-dasharray:1 99;opacity:.28;animation:lt 12s linear infinite}
body.s-menu .g-rings .b{animation-duration:19s;animation-direction:reverse}
@keyframes gspin-menu{to{transform:rotate(360deg)}}
html[data-theme="light"] body.s-menu .g-rings .sol{stroke:rgba(8,116,166,.16)}
html[data-theme="light"] body.s-menu .g-rings .lace{stroke:rgba(8,116,166,.4)}
html[data-theme="light"] body.s-menu .g-rings .band{stroke:rgba(8,116,166,.55)}
html[data-theme="light"] body.s-menu .g-rings .tick-g line{stroke:rgba(8,116,166,.6)}
html[data-theme="light"] body.s-menu .g-rings .lt{stroke:#0874A6}
html[data-theme="light"] body.s-menu .g-rings .lth{display:none}
body.s-menu .gcard{position:absolute;z-index:6;width:min(232px,46%);padding:10px 12px 11px;border-radius:14px;background:rgba(9,14,30,.96);border:1px solid rgba(255,77,94,.55);box-shadow:inset 3px 0 0 #FF4D5E,0 16px 40px rgba(0,0,0,.55);overflow:hidden;opacity:0;transform:translateY(8px) scale(.96);transition:opacity .35s ease,transform .45s cubic-bezier(.2,1.4,.5,1),border-color .4s ease,box-shadow .4s ease}
body.s-menu .gcard.s0{left:0;top:4%}
body.s-menu .gcard.s1{right:0;bottom:4%}
body.s-menu .gcard.in{opacity:1;transform:none}
body.s-menu .gcard.out{opacity:0;transform:translateY(-6px);transition:opacity .5s ease,transform .5s ease}
body.s-menu .gc-top{display:flex;align-items:center;gap:7px}
body.s-menu .gc-ic{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:var(--mc);color:#03040C;flex:none}
body.s-menu .gc-ic .i{width:12px;height:12px;stroke-width:2.2}
body.s-menu .gc-lab{font:700 9px/1 var(--f-mono);letter-spacing:.14em;text-transform:uppercase;color:#FF8A95;text-shadow:0 0 8px rgba(255,110,125,.6);transition:color .3s ease}
body.s-menu .gc-st{margin-left:auto;font:700 9px/1 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-menu .gc-msg{margin-top:6px;font-size:12.5px;line-height:1.4;color:#fff;font-weight:500}
body.s-menu .gc-ok{display:none;align-items:flex-start;gap:6px;margin-top:6px;padding-top:6px;border-top:1px solid rgba(147,222,255,.22);font-size:12px;line-height:1.35;font-weight:600;color:#93DEFF}
body.s-menu .gc-ok .i{width:13px;height:13px;stroke-width:2.8;flex:none;margin-top:1px}
body.s-menu .gcard .gc-sweep{position:absolute;left:0;top:0;bottom:0;width:60%;background:linear-gradient(100deg,rgba(147,222,255,0),rgba(147,222,255,.35),rgba(147,222,255,0));transform:translateX(-120%);pointer-events:none}
body.s-menu .gcard.is-spot{border-color:rgba(147,222,255,.6);box-shadow:inset 3px 0 0 #93DEFF,0 16px 40px rgba(0,0,0,.55)}
body.s-menu .gcard.is-spot .gc-lab{color:#93DEFF;text-shadow:var(--lab-glow)}
body.s-menu .gcard.is-spot .gc-msg{color:rgba(255,255,255,.8)}
body.s-menu .gcard.is-spot .gc-ok{display:flex}
body.s-menu .gcard.is-spot .gc-sweep{animation:gsw-menu .8s ease-out}
@keyframes gsw-menu{to{transform:translateX(220%)}}
html[data-theme="light"] body.s-menu .gcard{background:#fff;border-color:#D7263D;box-shadow:inset 3px 0 0 #D7263D,0 12px 30px rgba(10,26,51,.16)}
html[data-theme="light"] body.s-menu .gc-lab{color:#C21F35;text-shadow:none}
html[data-theme="light"] body.s-menu .gc-st{color:var(--lab)}
html[data-theme="light"] body.s-menu .gc-msg{color:#0A1A33}
html[data-theme="light"] body.s-menu .gcard.is-spot{border-color:#0874A6;box-shadow:inset 3px 0 0 #0874A6,0 12px 30px rgba(10,26,51,.16)}
html[data-theme="light"] body.s-menu .gcard.is-spot .gc-lab,html[data-theme="light"] body.s-menu .gc-ok{color:#0874A6}
html[data-theme="light"] body.s-menu .gcard.is-spot .gc-msg{color:var(--soft)}
html[data-theme="light"] body.s-menu .gc-ok{border-top-color:#D3E1EE}
html[data-theme="light"] body.s-menu .gc-ic{color:#fff}
body.s-menu .gcap{text-align:center;display:grid;gap:8px;justify-items:center;max-width:460px;position:relative;z-index:3}
body.s-menu .gcap p{font-size:13.5px;line-height:1.5;color:var(--text);text-wrap:balance}
body.s-menu .gcap .chip{white-space:normal;text-align:left;line-height:1.35;font-size:12.5px}
body.s-menu .gcap .chip .i{color:var(--acc);stroke-width:2.6}
body.s-menu .bgfx .bg-geo-tr{opacity:.45}
body.s-menu .sec{position:relative;z-index:2;padding:clamp(44px,7vh,80px) 0}
body.s-menu .sec-head{display:grid;justify-items:center;text-align:center;gap:12px;margin-bottom:clamp(22px,4vh,36px)}
body.s-menu .sec-head .lede{margin:0 auto}
body.s-menu .learn-sec{padding-top:clamp(36px,6vh,64px)}
body.s-menu .skl{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.s-menu .skl li{display:flex;align-items:center;gap:13px;padding:14px 15px;border-radius:16px;background:var(--card-grad);border:1px solid var(--line);box-shadow:var(--card-shadow);font-weight:600;font-size:14.5px;line-height:1.35}
body.s-menu .skl .si{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;background:rgba(var(--mcr),.12);border:1px solid rgba(var(--mcr),.45);color:var(--mc)}
body.s-menu .skl .si .i{width:18px;height:18px}
body.s-menu .facts{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 18px;margin-top:18px}
body.s-menu .facts span{display:inline-flex;align-items:center;gap:6px;font:600 10.5px/1.4 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-menu .facts .i{width:13px;height:13px;color:var(--lab);filter:drop-shadow(0 0 5px rgba(147,222,255,.9))}
body.s-menu .facts span{color:#BDEBFF;text-shadow:0 0 8px rgba(147,222,255,.9),0 0 18px rgba(56,198,244,.55)}
html[data-theme="light"] body.s-menu .facts span{color:var(--lab);text-shadow:none}
body.s-menu #spotCount{color:#BDEBFF;border-color:rgba(147,222,255,.75);text-shadow:0 0 8px rgba(147,222,255,.9),0 0 18px rgba(56,198,244,.5);box-shadow:0 0 16px rgba(56,198,244,.45),0 0 34px rgba(56,198,244,.16),inset 0 0 8px rgba(147,222,255,.18)}
body.s-menu #spotCount .i{filter:drop-shadow(0 0 5px rgba(147,222,255,.9))}
html[data-theme="light"] body.s-menu #spotCount{color:var(--text);border-color:var(--line2);text-shadow:none;box-shadow:none}
html[data-theme="light"] body.s-menu #spotCount .i{filter:none}
html[data-theme="light"] body.s-menu .facts .i{filter:none}
body.s-menu .cst-panel{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(18px,3vw,48px);align-items:center;padding:clamp(18px,2.6vw,32px);border-radius:26px}
body.s-menu .cst-info{display:grid;gap:12px;justify-items:start}
body.s-menu .cst-info .h2{font-size:clamp(22px,2.3vw,30px)}
body.s-menu .cst-info .h2 span{color:var(--muted);font-weight:500}
body.s-menu .cst-info p{font-size:14.5px;line-height:1.6;color:var(--soft);max-width:42ch}
body.s-menu .cst-info p b{color:var(--gold);font-weight:600}
body.s-menu .cst-legend{display:grid;gap:6px;font-size:12.5px;color:var(--muted)}
body.s-menu .cst-legend span{display:flex;align-items:center;gap:8px}
body.s-menu .cst-legend i{display:inline-block;width:22px;height:2px;border-radius:2px}
body.s-menu .cst{position:relative;width:min(600px,100%);aspect-ratio:600/620;justify-self:center;container-type:inline-size}
body.s-menu .cst-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
body.s-menu .cst-svg .ln{stroke:rgba(147,222,255,.1);stroke-width:1;fill:none}
body.s-menu .cst-svg .sp{stroke:rgba(147,222,255,.14);stroke-width:1.2;fill:none;stroke-dasharray:3 5}
body.s-menu .cst-svg .lit{stroke-width:2;fill:none;stroke-linecap:round}
body.s-menu .cst-svg .lit-g{filter:drop-shadow(0 0 4px rgba(147,222,255,.35))}
body.s-menu .cst-svg .ring0{fill:none;stroke:rgba(147,222,255,.14);stroke-width:1}
html[data-theme="light"] body.s-menu .cst-svg .ln{stroke:rgba(8,116,166,.14)}
html[data-theme="light"] body.s-menu .cst-svg .sp{stroke:rgba(8,116,166,.2)}
html[data-theme="light"] body.s-menu .cst-svg .ring0{stroke:rgba(8,116,166,.2)}
html[data-theme="light"] body.s-menu .cst-svg .lit-g{filter:none}
body.s-menu .cst-seal{position:absolute;left:50%;top:48.4%;width:27cqw;height:27cqw;transform:translate(-50%,-50%);display:grid;place-items:center}
body.s-menu .cst-seal .meta{width:100%;height:100%}
body.s-menu .cst-seal b{position:absolute;bottom:-6px;left:50%;transform:translate(-50%,100%);white-space:nowrap;font:700 1.7cqw/1 var(--f-mono);letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
body.s-menu .cst-node{position:absolute;width:20cqw;display:grid;justify-items:center;gap:.8cqw;text-align:center;transform:translate(-50%,-6.6cqw);--bs:13.2cqw;border-radius:2cqw;padding:.6cqw .4cqw;transition:transform .2s ease,background-color .2s ease}
body.s-menu .cst-node:hover,body.s-menu .cst-node:focus-visible{background:rgba(var(--mcr),.07);transform:translate(-50%,-6.6cqw) scale(1.04)}
body.s-menu .cst-node b{font-size:clamp(10px,2.15cqw,13.5px);font-weight:600;line-height:1.25;padding:.3cqw .9cqw;border-radius:1.2cqw;background:rgba(13,21,42,.92)}
html[data-theme="light"] body.s-menu .cst-node b{background:rgba(255,255,255,.94)}
body.s-menu .cst-node small{padding:.2cqw .8cqw;border-radius:1cqw;background:rgba(13,21,42,.92)}
html[data-theme="light"] body.s-menu .cst-node small{background:rgba(255,255,255,.94)}
body.s-menu .cst-node small{font:700 clamp(8px,1.6cqw,10px)/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-menu .cst-node.ok small{color:var(--mc);text-shadow:0 0 8px rgba(var(--mcr),.6)}
html[data-theme="light"] body.s-menu .cst-node.ok small{text-shadow:none}
body.s-menu .cst-node.part small{color:var(--text);text-shadow:none}
body.s-menu .cst-seal-m{display:none}
body.s-menu .cst-cta{margin-top:4px}
body.s-menu .inc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
body.s-menu .inc{position:relative;display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,.94fr);gap:20px;padding:20px;border-radius:20px;background:var(--card-grad);border:1px solid var(--line);box-shadow:var(--card-shadow)}
body.s-menu .inc::before{content:"";position:absolute;left:20px;right:20px;top:0;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--mc),transparent 70%);opacity:.9}
body.s-menu .inc-l{display:flex;flex-direction:column;justify-content:space-between;gap:16px;min-width:0}
body.s-menu .inc-hd{display:grid;gap:5px}
body.s-menu .inc-top{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:6px}
body.s-menu .inc-n{font:700 20px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-menu .inc-t{font-weight:600;font-size:16.5px;line-height:1.25;letter-spacing:-.012em}
body.s-menu .inc-s{font-family:var(--f-serif);font-style:italic;font-size:15.5px;line-height:1.3;color:var(--soft)}
body.s-menu .inc-lab{display:block;font:700 9.5px/1 var(--f-mono);letter-spacing:.16em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow);margin-bottom:9px}
body.s-menu .inc-steps{list-style:none;margin:0;padding:0;display:grid;gap:12px;counter-reset:st}
body.s-menu .inc-steps li{display:grid;grid-template-columns:18px 1fr;gap:9px;font-size:12.5px;line-height:1.5;color:var(--soft);counter-increment:st}
body.s-menu .inc-steps li::before{content:counter(st);display:grid;place-items:center;width:18px;height:18px;margin-top:1px;border-radius:50%;border:1px solid rgba(var(--mcr),.6);color:var(--mc);font:700 9.5px/1 var(--f-mono)}
body.s-menu .inc-how{font-size:12.5px;line-height:1.55;color:var(--text);font-weight:500}
body.s-menu .inc-out{margin-top:0;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:12px;justify-items:start}
body.s-menu .inc-loss{display:grid;gap:6px}
body.s-menu .inc-loss span{font:700 9px/1 var(--f-mono);letter-spacing:.16em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-menu .inc-loss b{font-weight:700;font-size:20px;line-height:1;letter-spacing:-.03em;color:var(--mc);font-variant-numeric:tabular-nums;text-shadow:0 0 14px rgba(var(--mcr),.45)}
html[data-theme="light"] body.s-menu .inc-loss b{text-shadow:none}
body.s-menu .inc-cta{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap}
body.s-menu .inc-cta .btn{padding:6px 10px;font-size:11.5px;border-radius:9px;gap:5px;box-shadow:0 0 10px rgba(56,198,244,.22)}
body.s-menu .inc-cta .btn .i{width:12px;height:12px}
html[data-theme="light"] body.s-menu .inc-cta .btn{box-shadow:0 1px 0 rgba(10,26,51,.2)}
body.s-menu .inc-cta small{font:700 9px/1.3 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-menu .inc-cta small b{color:var(--mc);font-weight:700;text-shadow:0 0 8px rgba(var(--mcr),.55)}
html[data-theme="light"] body.s-menu .inc-cta small b{text-shadow:none}
body.s-menu .pill-ic{gap:8px}
body.s-menu .pill-ic .i{width:13px;height:13px;stroke-width:2.2}
body.s-menu .scr{position:relative;border-radius:24px;border:6px solid #141C2E;background:radial-gradient(120% 70% at 50% 0%,#18132E 0%,#0A0E1C 58%,#05070F 100%);box-shadow:0 0 0 1px #26324E,0 20px 50px rgba(0,0,0,.5);padding:24px 8px 66px;align-self:start;display:flex;flex-direction:column}
body.s-menu .scr .ntf{font-size:10.5px;line-height:1.45;padding:9px 11px;border-radius:13px}
body.s-menu .scr .ntf .ntf-app{font-size:8px}
html[data-theme="light"] body.s-menu .scr{box-shadow:0 0 0 1px #0A1A33,0 18px 40px rgba(10,26,51,.25)}
body.s-menu .scr::before{content:"";position:absolute;top:0;left:34%;width:32%;height:16px;background:#141C2E;border-radius:0 0 11px 11px}
body.s-menu .scr-sb{position:absolute;top:6px;left:14px;right:14px;display:flex;justify-content:space-between;font:600 10px/1 var(--f-sans);color:rgba(255,255,255,.85)}
body.s-menu .scr-sb i{font-style:normal;letter-spacing:.06em}
body.s-menu .feed{display:flex;flex-direction:column;gap:11px;margin-top:8px}
body.s-menu .inc.armed .feed .ntf{opacity:0;transform:translateY(10px) scale(.97)}
body.s-menu .inc .feed .ntf{transition:opacity .45s ease,transform .5s cubic-bezier(.2,1.4,.5,1)}
body.s-menu .inc .feed .ntf.in{opacity:1;transform:none}
body.s-menu .ntf.ping{animation:ping-menu .9s ease-out}
@keyframes ping-menu{0%{box-shadow:inset 3px 0 0 var(--mc),0 0 0 0 rgba(var(--mcr),.55)}100%{box-shadow:inset 3px 0 0 var(--mc),0 0 0 12px rgba(var(--mcr),0)}}
body.s-menu .cstamp{position:absolute;left:50%;bottom:16px;translate:-50% 0;z-index:4;white-space:nowrap;padding:6px 13px 5px;border:3px solid var(--mc);border-radius:9px;color:var(--mc);font:850 17px/1 var(--f-sans);letter-spacing:.04em;text-transform:uppercase;transform:rotate(-8deg);background:rgba(3,4,12,.82);box-shadow:0 0 0 2px rgba(3,4,12,.82),inset 0 0 0 2px rgba(var(--mcr),.3),0 0 24px rgba(var(--mcr),.3);pointer-events:none}
html[data-theme="light"] body.s-menu .cstamp{background:rgba(255,255,255,.94);box-shadow:0 0 0 2px rgba(255,255,255,.94),inset 0 0 0 2px rgba(var(--mcr),.22)}
body.s-menu .inc.armed .cstamp{opacity:0}
body.s-menu .inc.stamped .cstamp{animation:slam-menu .5s cubic-bezier(.3,1.6,.5,1) both}
@keyframes slam-menu{0%{opacity:0;transform:rotate(-18deg) scale(2.5)}60%{opacity:1;transform:rotate(-7deg) scale(.92)}100%{opacity:1;transform:rotate(-8deg) scale(1)}}
body.s-menu .inc.armed .inc-reveal{opacity:0;transform:translateY(8px)}
body.s-menu .inc .inc-reveal{transition:opacity .5s ease,transform .5s ease}
body.s-menu .inc.done .inc-reveal{opacity:1;transform:none}
body.s-menu .closing{text-align:center;display:grid;justify-items:center;gap:12px;margin-top:clamp(44px,7vh,72px)}
body.s-menu .closing .h2{max-width:20ch;font-size:clamp(22px,2.6vw,32px)}
body.s-menu .closing .big-red{font-family:var(--f-serif);font-style:italic;font-size:clamp(26px,3vw,38px);line-height:1.1;color:var(--red)}
body.s-menu .closing .btn{margin-top:10px}
body.s-menu .bsb{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(20px,4vw,52px);align-items:center;padding:clamp(20px,3.5vw,40px);border-radius:26px;position:relative;overflow:hidden}
body.s-menu .pt{position:relative;width:420px;height:420px;flex:none}
body.s-menu .pt-stg{position:absolute;left:0;top:0;width:600px;height:600px;zoom:.7}
body.s-menu .pt-stg > *{position:absolute}
body.s-menu .pt-halo{left:0;top:0;width:600px;height:600px;border-radius:50%;background:radial-gradient(circle closest-side,rgba(56,198,244,.34) 0%,rgba(56,198,244,.13) 52%,rgba(56,198,244,0) 100%)}
body.s-menu .pt-sol{left:20px;top:20px;width:560px;height:560px;animation:gspin-menu 200s linear infinite;fill:none}
body.s-menu .pt-sol circle{stroke:rgba(147,222,255,.14);stroke-width:1}
body.s-menu .pt-ticks{left:20px;top:20px;width:560px;height:560px;animation:gspin-menu 150s linear infinite reverse}
body.s-menu .pt-ticks line{stroke:rgba(147,222,255,.7);stroke-width:2}
body.s-menu .pt-dash{left:46px;top:46px;width:508px;height:508px;border-radius:50%;border:1px dashed rgba(147,222,255,.3)}
body.s-menu .pt-ob,body.s-menu .pt-of{left:0;top:0;width:600px;height:600px;pointer-events:none}
body.s-menu .pt-ob{clip-path:polygon(0 0,600px 0,600px 191px,0 409px)}
body.s-menu .pt-of{z-index:3;clip-path:polygon(0 409px,600px 191px,600px 600px,0 600px)}
body.s-menu .pt-orb{position:absolute;left:44px;top:44px;width:512px;height:512px;border-radius:50%;border:1.5px solid rgba(147,222,255,.5);box-sizing:border-box}
body.s-menu .pt-o1{transform:rotate(-20deg) rotateX(72deg);animation:gO1 15s linear infinite}
body.s-menu .pt-o2{left:8px;top:8px;width:584px;height:584px;border:1.5px dashed rgba(255,77,94,.45);animation:ptO2-menu 24s linear infinite}
@keyframes ptO2-menu{from{transform:rotate(-20deg) rotateX(72deg) rotate(200deg)}to{transform:rotate(-20deg) rotateX(72deg) rotate(-160deg)}}
body.s-menu .pt-arc{z-index:1;left:84px;top:84px;width:432px;height:432px;border-radius:50%;border:3px solid transparent;box-sizing:border-box}
body.s-menu .pt-b{border-left-color:#7FD8FF;border-top-color:rgba(127,216,255,.45);filter:drop-shadow(0 0 8px #38C6F4);animation:gspin-menu 9s linear infinite}
body.s-menu .pt-r{left:72px;top:72px;width:456px;height:456px;border-right-color:#FF6B78;border-bottom-color:rgba(255,77,94,.4);filter:drop-shadow(0 0 8px #FF4D5E);animation:gspin-menu 13s linear infinite reverse}
body.s-menu .pt-disc{z-index:2;left:110px;top:110px;width:380px;height:380px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 1.5px rgba(147,222,255,.55),0 0 80px rgba(56,198,244,.45),inset 0 0 40px rgba(56,198,244,.3)}
body.s-menu .pt-img{position:absolute;left:-155px;top:-152px;width:690px;height:690px;background:url(../assets/logo-portal-800.jpg) center/100% 100% no-repeat;animation:ptGrow-menu 7s ease-in-out infinite}
body.s-menu .pt-img i{position:absolute;left:0;top:0;width:100%;height:100%;background:url(../assets/logo-portal-light.webp) center/100% 100% no-repeat;animation:ptGrow-menu 7s ease-in-out infinite}
@keyframes ptGrow-menu{0%,100%{background-size:100% 100%}50%{background-size:108% 108%}}
body.s-menu .pt-disc{animation:ptGlow-menu 7s ease-in-out infinite}
@keyframes ptGlow-menu{0%,100%{box-shadow:0 0 0 1.5px rgba(147,222,255,.55),0 0 80px rgba(56,198,244,.45),inset 0 0 40px rgba(56,198,244,.3)}50%{box-shadow:0 0 0 1.5px rgba(147,222,255,.75),0 0 110px rgba(56,198,244,.65),inset 0 0 50px rgba(56,198,244,.4)}}
html[data-theme="light"] body.s-menu .pt-disc{animation:none}
html.rm body.s-menu .pt-img,html.rm body.s-menu .pt-img i,html.rm body.s-menu .pt-disc{animation:none}
@keyframes ptBreath-menu{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
body.s-menu .pt{--ps:.7}
body.s-menu .pt-tag{position:absolute;z-index:4;font:600 calc(17px * var(--ps))/1 var(--f-mono);letter-spacing:.16em;padding:calc(11px * var(--ps)) calc(17px * var(--ps));border-radius:999px;white-space:nowrap;background:rgba(6,10,24,.92)}
body.s-menu .pt-tb{left:0;top:calc(96px * var(--ps));color:#D6F4FF;border:1px solid rgba(147,222,255,.8);text-shadow:0 0 9px rgba(147,222,255,.85);box-shadow:var(--glow-c);animation:pillG 3.4s ease-in-out infinite}
body.s-menu .pt-tr{right:0;bottom:calc(96px * var(--ps));color:#FFC2C8;border:1px solid rgba(255,77,94,.85);text-shadow:0 0 9px rgba(255,110,125,.85);box-shadow:var(--glow-r);animation:pillR 3.4s ease-in-out 1.7s infinite}
html[data-theme="light"] body.s-menu .pt-tag{background:#fff;text-shadow:none;box-shadow:none;animation:none}
html[data-theme="light"] body.s-menu .pt-tb{color:#075F88;border-color:#0874A6}
html[data-theme="light"] body.s-menu .pt-tr{color:#B71C31;border-color:#D7263D}
html[data-theme="light"] body.s-menu .pt-halo{background:radial-gradient(circle closest-side,rgba(56,198,244,.22) 0%,rgba(56,198,244,0) 100%)}
html[data-theme="light"] body.s-menu .pt-sol circle{stroke:rgba(8,116,166,.2)}
html[data-theme="light"] body.s-menu .pt-ticks line{stroke:rgba(8,116,166,.6)}
body.s-menu .bsb-c{display:grid;gap:16px;justify-items:start;min-width:0}
body.s-menu .bsb-c p{font-size:clamp(15px,1.3vw,17px);line-height:1.6;max-width:48ch}
body.s-menu .bsb-c p em{font-family:var(--f-serif);font-size:1.15em;color:var(--acc)}
body.s-menu .pill b{color:#FF8A95;font-weight:600}
html[data-theme="light"] body.s-menu .pill b{color:#C21F35}
body.s-menu .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}
body.s-menu .stat-card{position:relative;padding:18px 16px;overflow:hidden;display:grid;gap:10px;align-content:start;border-radius:18px;background:linear-gradient(180deg,rgba(15,26,51,.92),rgba(11,17,34,.94));border:1px solid var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.05);transition:transform .35s ease,border-color .35s ease}
body.s-menu .stat-card:hover{transform:translateY(-4px);border-color:#35649B}
body.s-menu .stat-card::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent,#93DEFF,transparent) 0 0/200% 100% no-repeat;animation:shim-menu 4s linear infinite}
@keyframes shim-menu{from{background-position:200% 0}to{background-position:-200% 0}}
html[data-theme="light"] body.s-menu .stat-card{background:#fff;box-shadow:0 1px 2px rgba(10,26,51,.06)}
body.s-menu .icbox{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,rgba(147,222,255,.18),rgba(147,222,255,.04));border:1px solid rgba(147,222,255,.4);box-shadow:0 0 22px rgba(147,222,255,.14);color:var(--acc)}
body.s-menu .icbox .i{width:19px;height:19px}
html[data-theme="light"] body.s-menu .icbox{background:#E3F3FC;border-color:#A9D4EC;box-shadow:none}
body.s-menu .stat-num{font-weight:700;font-size:32px;line-height:1;letter-spacing:-.04em;color:var(--text)}
body.s-menu .stat-num small{font-size:.45em;color:var(--acc);margin-left:3px;font-weight:600;letter-spacing:0}
body.s-menu .stat-card p{font-size:13px;line-height:1.5;color:var(--text)}
body.s-menu .foot-brand{display:flex;align-items:center;gap:10px}
body.s-menu .foot-brand span{font:500 14px/1 var(--f-sans);color:#fff;letter-spacing:0;text-transform:none}
body.s-menu .foot-brand strong{font:600 14px/1 var(--f-sans);letter-spacing:.42em;color:#93DEFF;text-shadow:0 0 10px rgba(147,222,255,.75),0 0 22px rgba(56,198,244,.4)}
html[data-theme="light"] body.s-menu .foot-brand span{color:#0A1A33}
html[data-theme="light"] body.s-menu .foot-brand strong{color:#0874A6;text-shadow:none}
body.s-menu .pg-rank{display:grid;gap:8px;padding:14px;border-radius:15px;background:var(--bg);border:1px solid var(--line);margin:8px 0 6px}
body.s-menu .pg-rank-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
body.s-menu .pg-rank-top b{font-size:17px;font-weight:700;letter-spacing:-.01em}
body.s-menu .pg-rank-top span{font:600 11px/1 var(--f-mono);letter-spacing:.1em;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-menu .pg-what{font-size:12.5px;line-height:1.5;color:var(--soft)}
body.s-menu .pg-what b{color:var(--text)}
body.s-menu .bar{height:7px;border-radius:9px;background:var(--panel3);overflow:hidden}
body.s-menu .bar i{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#38C6F4,#93DEFF);box-shadow:0 0 12px rgba(56,198,244,.6)}
html[data-theme="light"] body.s-menu .bar i{background:#38C6F4;box-shadow:none}
body.s-menu .pg-list{list-style:none;margin:6px 0 0;padding:0;display:grid}
body.s-menu .pg-list li{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
body.s-menu .pg-list .bdg{--bs:36px}
body.s-menu .pg-list li > span:nth-child(2) b{display:block;font-weight:600}
body.s-menu .pg-list li > span:nth-child(2) small{display:block;font-size:12px;color:var(--faint)}
body.s-menu .pg-list .st{font:700 10px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow);white-space:nowrap}
body.s-menu .pg-list .st.ok{color:var(--mc);text-shadow:0 0 8px rgba(var(--mcr),.6)}
html[data-theme="light"] body.s-menu .pg-list .st.ok{text-shadow:none}
body.s-menu .cert{position:relative;margin-top:14px;padding:16px;border-radius:15px;border:1.5px solid rgba(255,210,63,.55);background:linear-gradient(160deg,rgba(255,210,63,.09),rgba(255,210,63,.02));display:grid;grid-template-columns:72px 1fr;gap:14px;align-items:center}
html[data-theme="light"] body.s-menu .cert{border-color:#B37400;background:#FFFAEB}
body.s-menu .cert .meta{width:72px;height:72px}
body.s-menu .cert b{display:block;font:700 12px/1.2 var(--f-mono);letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
body.s-menu .cert p{font-size:13px;color:var(--soft);margin-top:4px;line-height:1.45}
body.s-menu .cert p em{font-family:var(--f-serif);font-size:1.25em;color:var(--text)}
body.s-menu .cert-acts{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:10px}
body.s-menu .cert-go{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:13px;color:var(--acc)}
body.s-menu .cert-go .i{width:14px;height:14px}
body.s-menu .cert-go:hover{text-decoration:underline;text-underline-offset:3px}
@media (max-width:1100px){
  body.s-menu .pt{width:360px;height:360px;--ps:.6}
  body.s-menu .pt-stg{zoom:.6}
  body.s-menu .stats{grid-template-columns:1fr 1fr 1fr}
}
@media (max-width:980px){
  body.s-menu .hero-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  body.s-menu .hcol{display:contents}
  body.s-menu .h-head{order:1}
  body.s-menu .hglobe{order:2}
  body.s-menu .hello{order:3}
  body.s-menu .mmenu{order:4}
  body.s-menu .h-lede{order:5}
  body.s-menu .mmenu{max-width:none}
  body.s-menu .inc-grid{grid-template-columns:minmax(0,1fr)}
  body.s-menu .skl{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.s-menu .cst-panel{grid-template-columns:minmax(0,1fr)}
  body.s-menu .cst-info{justify-items:center;text-align:center}
}
@media (max-width:720px){
  body.s-menu .hero{padding-top:18px}
  body.s-menu .g3{width:min(350px,100%)}
  body.s-menu .gcard{width:58%;padding:8px 10px 9px;border-radius:12px}
  body.s-menu .gcard.s0{top:0}
  body.s-menu .gcard.s1{bottom:0}
  body.s-menu .gc-msg{font-size:11.5px;margin-top:4px}
  body.s-menu .gc-ok{font-size:11px;margin-top:4px;padding-top:4px}
  body.s-menu .h-head .pill{white-space:normal;font-size:9.5px;letter-spacing:.08em;line-height:1.45;border-radius:14px;max-width:100%}
  body.s-menu .inc{grid-template-columns:minmax(0,1fr);padding:18px 16px;gap:20px}
  body.s-menu .scr{max-width:300px;width:100%;justify-self:center}
  body.s-menu .bsb{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}
  body.s-menu .bsb-c{justify-items:center}
  body.s-menu .stats{grid-template-columns:minmax(0,1fr)}
  body.s-menu .stat-card{grid-template-columns:40px minmax(0,1fr);text-align:left;align-items:center;column-gap:12px;padding:14px}
  body.s-menu .stat-card .stat-num{font-size:26px}
  body.s-menu .stat-card p{grid-column:2}
  body.s-menu .pt{width:300px;height:300px}
  body.s-menu .pt-stg{zoom:.5}
  body.s-menu .pt-tag{display:none}
  body.s-menu .mm-out{display:grid;grid-template-columns:minmax(0,1fr)}
  body.s-menu .skl{grid-template-columns:minmax(0,1fr)}
  body.s-menu .skl li{font-size:14px;padding:12px 14px}
  body.s-menu .mm-meta small{display:none}
  body.s-menu .mm-nx{display:inline!important}
  body.s-menu .cst{aspect-ratio:auto;display:grid;grid-template-columns:1fr 1fr;gap:10px 8px;width:100%;container-type:normal}
  body.s-menu .cst-svg,body.s-menu .cst-seal{display:none}
  body.s-menu .cst-seal-m{display:grid;grid-column:1 / -1;justify-items:center;gap:6px;margin-bottom:4px}
  body.s-menu .cst-seal-m .meta{width:150px;height:150px}
  body.s-menu .cst-seal-m b{font:700 10px/1 var(--f-mono);letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
  body.s-menu .cst-node{position:static;transform:none!important;width:auto;--bs:72px;gap:6px;padding:10px 4px;border:1px solid var(--line);border-radius:16px;background:var(--bg)}
  html[data-theme] body.s-menu .cst-node b{font-size:13px;background:none;padding:0}
  html[data-theme] body.s-menu .cst-node small{font-size:9.5px;background:none;padding:0}
  body.s-menu .bsb-c .pill{display:inline-block;white-space:normal;font-size:9.5px;letter-spacing:.08em;line-height:1.5;border-radius:14px;max-width:100%;text-align:center}
  body.s-menu .bsb-c .pill::before{display:inline-block;vertical-align:1px;margin-right:7px}
}
@media (max-width:370px){
  body.s-menu .pt{width:270px;height:270px}
  body.s-menu .pt-stg{zoom:.45}
}
html.rm body.s-menu .inc.armed .feed .ntf,html.rm body.s-menu .inc.armed .cstamp,html.rm body.s-menu .inc.armed .inc-reveal{opacity:1;transform:none}
html.rm body.s-menu .cstamp{transform:rotate(-8deg)}
html.rm body.s-menu .pt-o1{transform:rotate(-20deg) rotateX(72deg)}
html.rm body.s-menu .pt-o2{transform:rotate(-20deg) rotateX(72deg) rotate(200deg)}
html.rm body.s-menu .pt-img{transform:none}

/* ===================== modes.html ===================== */
body.s-modes .page{position:relative;z-index:2;padding:clamp(24px,5vh,52px) 0 56px}
body.s-modes .head{display:grid;justify-items:center;text-align:center;gap:12px;margin-bottom:clamp(22px,4vh,36px)}
body.s-modes .head .lede{margin:0 auto;font-size:15px;line-height:1.55}
body.s-modes .head .h2{font-size:clamp(22px,2.2vw,28px)}
body.s-modes .modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:880px;margin:0 auto}
body.s-modes .mode{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px 14px;align-items:start;padding:16px 16px 14px;border-radius:18px;border:1px solid var(--line);background:var(--card-grad);box-shadow:var(--card-shadow);text-align:left;color:var(--text);cursor:pointer;transition:transform .2s ease,border-color .2s ease,box-shadow .25s ease;width:100%}
body.s-modes .mode:hover{transform:translateY(-3px);border-color:var(--line2)}
body.s-modes .mode[aria-checked="true"]{border-color:rgba(147,222,255,.85);box-shadow:var(--card-shadow),0 0 0 1px rgba(147,222,255,.5),0 0 44px rgba(56,198,244,.16)}
html[data-theme="light"] body.s-modes .mode[aria-checked="true"]{border-color:#0874A6;box-shadow:0 0 0 1px #0874A6,0 10px 30px rgba(10,26,51,.1)}
body.s-modes .mode.soon{cursor:default}
body.s-modes .mode.soon:hover{transform:none;border-color:var(--line)}
body.s-modes .m-ic{position:relative;display:grid;place-items:center;width:54px;height:54px;border-radius:15px;background:linear-gradient(145deg,rgba(147,222,255,.18),rgba(147,222,255,.04));border:1px solid rgba(147,222,255,.4);box-shadow:0 0 28px rgba(147,222,255,.14),inset 0 1px 0 rgba(255,255,255,.08)}
body.s-modes .m-ic svg{width:36px;height:36px}
body.s-modes .mode[aria-checked="true"] .m-ic{border-color:rgba(147,222,255,.75);box-shadow:0 0 30px rgba(56,198,244,.32),inset 0 1px 0 rgba(255,255,255,.1)}
html[data-theme="light"] body.s-modes .m-ic{background:linear-gradient(145deg,#E3F3FC,#F5FBFF);border-color:#A9D4EC;box-shadow:none}
html[data-theme="light"] body.s-modes .mode[aria-checked="true"] .m-ic{border-color:#0874A6;box-shadow:none}
body.s-modes .m-b{display:grid;gap:6px;min-width:0}
body.s-modes .m-t{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-right:30px}
body.s-modes .m-t h2{font-weight:600;font-size:17.5px;line-height:1.15;letter-spacing:-.02em}
body.s-modes .m-b p{color:var(--soft);font-size:13px;line-height:1.55}
body.s-modes .m-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:4px}
body.s-modes .m-sel{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1.5px solid var(--line2);color:transparent;transition:all .2s ease}
body.s-modes .m-sel .i{width:14px;height:14px;stroke-width:3}
body.s-modes .mode[aria-checked="true"] .m-sel{background:var(--fill);border-color:var(--fill);color:var(--on-fill);box-shadow:0 0 14px rgba(56,198,244,.55)}
html[data-theme="light"] body.s-modes .mode[aria-checked="true"] .m-sel{box-shadow:none}
body.s-modes .fam{display:grid;gap:9px;margin-top:2px;padding:12px;border-radius:14px;background:var(--bg);border:1px solid var(--line)}
body.s-modes .fam-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
body.s-modes .fam-top .fine{color:var(--lab);text-shadow:var(--lab-glow)}
body.s-modes .players{display:flex;flex-wrap:wrap;gap:6px}
body.s-modes .pl{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px 0 3px;border-radius:999px;background:var(--panel2);border:1px solid var(--line2);font-weight:600;font-size:13px}
body.s-modes .pl i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font:800 12px/1 var(--f-sans);font-style:normal;color:#03040C;background:var(--c)}
body.s-modes .pl.add{padding:0 12px 0 8px;border-style:dashed;color:var(--acc);background:transparent}
body.s-modes .pl.add .i{width:16px;height:16px;stroke-width:2.4}
body.s-modes .turn{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--faint)}
body.s-modes .fam-go{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:13.5px;color:var(--acc)}
body.s-modes .fam-go .i{width:15px;height:15px}
body.s-modes .turn b{color:var(--text);font-weight:600}
body.s-modes .turn .ph{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:rgba(147,222,255,.1);color:var(--acc)}
body.s-modes .turn .ph .i{width:14px;height:14px}
body.s-modes .team-cta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:4px}
body.s-modes .soon .m-ic svg{opacity:.85}
body.s-modes .go{display:grid;justify-items:center;gap:12px;margin-top:clamp(28px,5vh,44px);text-align:center}
body.s-modes .go .fine{display:flex;align-items:center;gap:8px}
body.s-modes .go .fine .i{width:14px;height:14px}
body.s-modes .ic-a{stop-color:#C9F0FF}
body.s-modes .ic-b{stop-color:#38C6F4}
html[data-theme="light"] body.s-modes .ic-a{stop-color:#5CD3F7}
html[data-theme="light"] body.s-modes .ic-b{stop-color:#0874A6}
body.s-modes .ic-ink{fill:#03040C}
html[data-theme="light"] body.s-modes .ic-ink{fill:#0A1A33}
body.s-modes .ic-soft{fill:#93DEFF;opacity:.42}
html[data-theme="light"] body.s-modes .ic-soft{fill:#38C6F4;opacity:.5}
body.s-modes .namestep{max-width:520px;margin:0 auto;padding:clamp(22px,4vw,34px);border-radius:24px;display:grid;justify-items:center;text-align:center;gap:12px}
body.s-modes .namestep .lede{font-size:15px;margin:0 auto}
body.s-modes .nm-in{width:100%;max-width:360px;margin-top:6px;padding:14px 16px;border-radius:14px;border:1.5px solid var(--line2);background:var(--bg);font-weight:600;font-size:18px;text-align:center;color:var(--text)}
body.s-modes .nm-in:focus{outline:none;border-color:var(--acc);box-shadow:0 0 0 3px rgba(147,222,255,.18)}
body.s-modes .nm-note{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--faint)}
body.s-modes .nm-note .i{width:13px;height:13px;color:var(--acc)}
body.s-modes .nm-acts{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:6px}
body.s-modes .nm-back{display:inline-flex;align-items:center;gap:4px;margin-top:4px;font:600 12px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-modes .nm-back .i{width:13px;height:13px}
body.s-modes .nm-back:hover{color:var(--acc)}
@media (max-width:860px){
  body.s-modes .modes{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
  body.s-modes .mode{grid-template-columns:minmax(0,1fr);padding:14px 13px 14px;gap:10px}
  body.s-modes .m-ic{width:54px;height:54px;border-radius:15px}
  body.s-modes .m-ic svg{width:38px;height:38px}
  body.s-modes .m-t h2{font-size:19px}
  body.s-modes .m-b p{font-size:14px}
  body.s-modes .m-sel{top:14px;right:14px}
}

/* ===================== family.html ===================== */
body.s-family .page{position:relative;z-index:2;padding:clamp(22px,5vh,48px) 0 56px}
body.s-family .state[hidden]{display:none}
body.s-family .head{display:grid;justify-items:center;text-align:center;gap:12px;margin-bottom:clamp(20px,4vh,32px)}
body.s-family .head .lede{margin:0 auto;max-width:46ch}
body.s-family .av{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--pc);color:#03040C;font:800 14px/1 var(--f-sans)}
html[data-theme="light"] body.s-family .av{color:#fff;background:var(--pcl)}
body.s-family .setup{max-width:560px;margin:0 auto;padding:18px;border-radius:22px}
body.s-family .plist{list-style:none;margin:0;padding:0;display:grid;gap:8px}
body.s-family .prow{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 8px 8px 10px;border-radius:14px;border:1px solid var(--line);background:var(--bg)}
body.s-family .prow input{width:100%;min-width:0;padding:9px 11px;border-radius:10px;border:1px solid var(--line2);background:var(--panel);font-weight:600;font-size:15px}
body.s-family .prow input:focus{outline:2px solid var(--acc);outline-offset:1px}
body.s-family .rmv{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;border:1px solid var(--line2);color:var(--muted)}
body.s-family .rmv .i{width:15px;height:15px}
body.s-family .rmv:hover{border-color:var(--red);color:var(--red)}
body.s-family .rmv[disabled]{opacity:.35;pointer-events:none}
body.s-family .addp{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:8px;padding:12px;border-radius:14px;border:1.5px dashed var(--line2);color:var(--acc);font-weight:600;font-size:14px}
body.s-family .addp .i{width:16px;height:16px;stroke-width:2.4}
body.s-family .addp[disabled]{opacity:.45;pointer-events:none}
body.s-family .setup-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
body.s-family .opt{margin-top:16px;display:grid;gap:8px}
body.s-family .opt-h{font:700 10.5px/1 var(--f-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-family .what{display:flex;flex-wrap:wrap;gap:6px}
body.s-family .wb{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 11px 0 7px;border-radius:999px;border:1px solid var(--line2);background:var(--bg);font-weight:600;font-size:12.5px;color:var(--text)}
body.s-family .wb .wi{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:rgba(var(--mcr),.15);color:var(--mc)}
body.s-family .wb .wi .i{width:12px;height:12px}
body.s-family .wb[aria-checked="true"]{border-color:var(--mc);background:rgba(var(--mcr),.12);box-shadow:0 0 12px rgba(var(--mcr),.3)}
html[data-theme="light"] body.s-family .wb[aria-checked="true"]{box-shadow:none}
body.s-family .wb.all{padding-left:11px}
body.s-family .wb.all[aria-checked="true"]{border-color:var(--acc);background:rgba(147,222,255,.12)}
body.s-family #qeach{max-width:220px}
body.s-family .setup-go{display:grid;gap:16px;justify-items:center;margin-top:22px}
body.s-family .setup-go .fine{display:inline-flex;align-items:center;justify-content:center;gap:7px;text-align:center;font-size:11px}
body.s-family .setup-go .fine .i{width:13px;height:13px}
body.s-family .turnbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;max-width:760px;margin:0 auto 12px}
body.s-family .whose{display:inline-flex;align-items:center;gap:10px;padding:5px 14px 5px 5px;border-radius:999px;border:1.5px solid var(--pc);background:rgba(var(--pcr),.1);font-weight:700;font-size:15px;box-shadow:0 0 18px rgba(var(--pcr),.3)}
html[data-theme="light"] body.s-family .whose{border-color:var(--pcl);box-shadow:none;background:#fff}
body.s-family .whose .av{width:30px;height:30px;font-size:13px}
body.s-family .qn{font:600 11px/1 var(--f-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-family .mini{display:flex;gap:6px;flex-wrap:wrap;max-width:760px;margin:0 auto 8px}
body.s-family .mini-cap{display:flex;align-items:center;gap:6px;max-width:760px;margin:0 auto 16px;font-size:12px;line-height:1.3;color:var(--soft)}
body.s-family .mini-cap .i{width:13px;height:13px;color:var(--gold)}
body.s-family .mini > span{display:inline-flex;align-items:center;gap:7px;padding:4px 11px 4px 4px;border-radius:999px;border:1px solid var(--line2);background:var(--panel);font-size:13px;font-weight:600}
body.s-family .mini > span .av{width:24px;height:24px;font-size:11px}
body.s-family .mini > span b{font-family:var(--f-mono);font-size:12px;color:var(--soft);font-weight:700}
body.s-family .mini > span.cur{border-color:var(--pc)}
html[data-theme="light"] body.s-family .mini > span.cur{border-color:var(--pcl)}
body.s-family .mini > span.cur b{color:var(--text)}
body.s-family .qcard{max-width:760px;margin:0 auto;padding:20px;border-radius:22px;display:grid;gap:16px}
body.s-family .qcard h2{font-weight:600;font-size:clamp(20px,2.2vw,26px);letter-spacing:-.015em}
body.s-family .fb{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px;border-radius:16px;border:1px solid rgba(147,222,255,.45);background:rgba(147,222,255,.07)}
body.s-family .fb p{font-size:14.5px;line-height:1.5}
body.s-family .fb p b{color:var(--acc)}
body.s-family .pass{min-height:calc(100vh - 220px);display:grid;place-items:center;text-align:center}
body.s-family .pass-in{display:grid;justify-items:center;gap:14px;max-width:420px}
body.s-family .bigav{position:relative;width:200px;height:200px;display:grid;place-items:center}
body.s-family .bigav svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
body.s-family .bigav svg *{fill:none;stroke:rgba(var(--pcr),.45);stroke-width:1}
body.s-family .bigav svg .rot{transform-origin:0 0;animation:spin-family 40s linear infinite}
body.s-family .bigav .av{width:104px;height:104px;font-size:44px;box-shadow:0 0 0 6px rgba(var(--pcr),.18),0 0 50px rgba(var(--pcr),.45)}
html[data-theme="light"] body.s-family .bigav .av{box-shadow:0 0 0 6px rgba(var(--pcr),.18)}
@keyframes spin-family{to{transform:rotate(360deg)}}
body.s-family .pass h1{font-weight:600;font-size:clamp(26px,3vw,36px);letter-spacing:-.02em;line-height:1.15}
body.s-family .pass .lede{margin:0 auto}
body.s-family .pass .btn{min-width:200px;margin-top:6px}
body.s-family .handoff{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--text)}
body.s-family .handoff .i{width:16px;height:16px;color:var(--acc)}
body.s-family .podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:12px;max-width:620px;margin:6px auto 0}
body.s-family .pod{display:grid;justify-items:center;gap:8px;text-align:center}
body.s-family .pod .tro{width:72px;height:auto}
body.s-family .pod.p1 .tro{width:96px}
body.s-family .pod .av{width:44px;height:44px;font-size:18px}
body.s-family .pod.p1 .av{width:54px;height:54px;font-size:22px;box-shadow:0 0 0 4px rgba(var(--pcr),.2),0 0 30px rgba(var(--pcr),.4)}
body.s-family .pod b{font-size:16px;font-weight:700}
body.s-family .pod small{font:700 12px/1 var(--f-mono);letter-spacing:.08em;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-family .pstep{width:100%;border-radius:14px 14px 4px 4px;display:grid;place-items:center;font:800 26px/1 var(--f-sans);color:var(--text);border:1px solid var(--line2);background:var(--card-grad)}
body.s-family .p1 .pstep{height:120px;border-color:rgba(255,210,63,.6);background:linear-gradient(180deg,rgba(255,210,63,.16),rgba(255,210,63,.03))}
body.s-family .p2 .pstep{height:86px;border-color:rgba(214,226,240,.5);background:linear-gradient(180deg,rgba(214,226,240,.12),rgba(214,226,240,.02))}
body.s-family .p3 .pstep{height:64px;border-color:rgba(226,146,88,.55);background:linear-gradient(180deg,rgba(226,146,88,.14),rgba(226,146,88,.03))}
html[data-theme="light"] body.s-family .p1 .pstep{border-color:#B37400;background:#FFF6DC}
html[data-theme="light"] body.s-family .p2 .pstep{border-color:#9AA4B1;background:#F1F4F8}
html[data-theme="light"] body.s-family .p3 .pstep{border-color:#A35A22;background:#FBEEE4}
body.s-family .champ{display:grid;justify-items:center;gap:6px;text-align:center;margin-top:22px}
body.s-family .champ .fine{color:var(--gold);text-shadow:0 0 10px rgba(255,210,63,.55)}
html[data-theme="light"] body.s-family .champ .fine{text-shadow:none}
body.s-family .champ h2{font-weight:600;font-size:clamp(22px,2.6vw,30px);letter-spacing:-.02em}
body.s-family .champ p{color:var(--soft);font-size:14.5px}
body.s-family .sc-acts{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:20px}
@media (max-width:560px){
  body.s-family .setup{padding:14px}
  body.s-family .prow{gap:9px;padding:7px}
  body.s-family .qcard{padding:14px}
  body.s-family .bigav{width:170px;height:170px}
  body.s-family .bigav .av{width:88px;height:88px;font-size:38px}
  body.s-family .pod .tro{width:56px}
  body.s-family .pod.p1 .tro{width:76px}
  body.s-family .pod b{font-size:14px}
  body.s-family .p1 .pstep{height:96px}
  body.s-family .p2 .pstep{height:70px}
  body.s-family .p3 .pstep{height:52px}
}

/* ===================== cards.html ===================== */
body.s-cards .page{position:relative;z-index:2;padding:16px 0 28px;display:flex;flex-direction:column;align-items:center;gap:14px}
body.s-cards .progrow{display:flex;justify-content:center;align-items:flex-end;gap:12px 22px;flex-wrap:wrap;padding:0 16px;width:100%;max-width:880px}
body.s-cards .progrow .skills{flex:1 1 440px;max-width:560px}
body.s-cards .deck-wrap{position:relative;width:100%;overflow:hidden;padding:8px 0 4px}
body.s-cards .deck-wrap{--cw:340px;--ch:548px;--sh:204px}
body.s-cards .deck{position:relative;height:calc(var(--ch) + 18px);perspective:1500px;perspective-origin:50% 45%;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;outline:none}
body.s-cards .deck.dragging{cursor:grabbing}
body.s-cards .dcard{position:absolute;left:50%;top:10px;width:var(--cw);height:var(--ch);margin-left:calc(var(--cw) / -2);transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1),opacity .45s ease;will-change:transform}
body.s-cards .deck.dragging .dcard{transition:none}
body.s-cards .dcard-in{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.3,1.2,.4,1)}
body.s-cards .dcard.flipped .dcard-in{transform:rotateY(180deg)}
body.s-cards .dface{position:absolute;inset:0;border-radius:24px;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:linear-gradient(180deg,#111C36,#0B1122 60%);border:1px solid #2A4A7A;box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 30px 70px rgba(0,0,0,.55);display:flex;flex-direction:column}
html[data-theme="light"] body.s-cards .dface{background:#fff;border-color:#C5D8E9;box-shadow:0 1px 2px rgba(10,26,51,.08),0 24px 50px rgba(10,26,51,.14)}
body.s-cards .dcard::after{content:"";position:absolute;inset:0;border-radius:24px;background:#03040C;opacity:var(--dim,0);pointer-events:none;transition:opacity .45s ease;transform:translateZ(1px)}
html[data-theme="light"] body.s-cards .dcard::after{background:#F3F8FC}
body.s-cards .dcard.is-c .dface{border-color:rgba(var(--mcr),.55);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 0 1px rgba(147,222,255,.18),0 30px 80px rgba(0,0,0,.6),0 0 60px rgba(56,198,244,.12)}
html[data-theme="light"] body.s-cards .dcard.is-c .dface{border-color:var(--mc);box-shadow:0 1px 2px rgba(10,26,51,.08),0 28px 60px rgba(10,26,51,.18)}
body.s-cards .dback{transform:rotateY(180deg)}
body.s-cards .scene{position:relative;height:var(--sh);flex:none;overflow:hidden;background:radial-gradient(120% 90% at 50% 0%,#16274D 0%,#0A1226 60%,#070B18 100%);border-bottom:1px solid #22385F}
body.s-cards .scene::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(147,222,255,.16) 1px,transparent 1.2px);background-size:16px 16px;-webkit-mask-image:radial-gradient(80% 90% at 50% 40%,#000,transparent);mask-image:radial-gradient(80% 90% at 50% 40%,#000,transparent)}
html[data-theme="light"] body.s-cards .scene{background:radial-gradient(120% 90% at 50% 0%,#F2F9FF 0%,#E3F0FA 70%,#D6E8F6 100%);border-bottom-color:#C5D8E9}
html[data-theme="light"] body.s-cards .scene::before{background-image:radial-gradient(rgba(8,116,166,.18) 1px,transparent 1.2px)}
body.s-cards .sc{position:absolute;left:50%;top:50%;width:300px;height:172px;margin:-80px 0 0 -150px}
body.s-cards .wm{position:absolute;right:10px;bottom:10px;width:24px;height:24px;border-radius:8px;z-index:6;opacity:.9;background:rgba(3,4,12,.55);padding:1px}
body.s-cards .sbadge{position:absolute;right:12px;top:12px;z-index:6}
body.s-cards .sbadge .tag{background:rgba(3,4,12,.75)}
body.s-cards .sbadge .done{background:var(--fill);border-color:var(--fill);color:var(--on-fill)}
body.s-cards .sbadge .done .i{width:12px;height:12px;stroke-width:3}
html[data-theme="light"] body.s-cards .sbadge .tag{background:#fff}
html[data-theme="light"] body.s-cards .sbadge .done{background:var(--fill)}
body.s-cards .cb{position:relative;flex:1;display:flex;flex-direction:column;gap:7px;padding:15px 17px 15px;min-height:0;color:var(--text);overflow:hidden}
body.s-cards .cb > *{position:relative}
body.s-cards .engr{position:absolute!important;right:-46px;bottom:-40px;width:190px;height:190px;pointer-events:none;opacity:.09}
body.s-cards .engr *{fill:none;stroke:var(--mc);stroke-width:1}
html[data-theme="light"] body.s-cards .engr{opacity:.12}
body.s-cards .cb-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
body.s-cards .cb-num{font:700 10.5px/1 var(--f-mono);letter-spacing:.16em;color:var(--mc);text-shadow:0 0 9px rgba(var(--mcr),.6)}
body.s-cards .cb-name{font-weight:600;font-size:20px;line-height:1.15;letter-spacing:-.02em;margin-top:2px;text-shadow:0 0 14px rgba(147,222,255,.45),0 0 30px rgba(56,198,244,.2)}
html[data-theme="light"] body.s-cards .cb-name,html[data-theme="light"] body.s-cards .cb-num{text-shadow:none}
body.s-cards .cb-prom{font-size:14px;line-height:1.4;font-weight:600;color:#FFFFFF}
html[data-theme="light"] body.s-cards .cb-prom{color:var(--text)}
body.s-cards .cb-why{font-size:13px;line-height:1.45;color:var(--soft)}
body.s-cards .cb-lab{font:700 9.5px/1 var(--f-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow);margin-top:3px}
body.s-cards .yl{list-style:none;margin:0;padding:0;display:grid;gap:4px}
body.s-cards .yl li{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.35;color:var(--soft)}
body.s-cards .yl li::before{content:"";flex:none;width:6px;height:6px;margin-top:6px;border-radius:2px;background:var(--mc);transform:rotate(45deg)}
body.s-cards .meta-l{display:flex;align-items:center;gap:6px 9px;flex-wrap:wrap;margin-top:auto;padding-top:6px;font:600 10.5px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-cards .meta-l .i{width:12px;height:12px}
body.s-cards .meta-l > span:not(.sep){display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
body.s-cards .meta-l .sep{width:3px;height:3px;border-radius:50%;background:var(--line2)}
body.s-cards .meta-l .xp{color:var(--gold);text-shadow:0 0 9px rgba(255,210,63,.55)}
html[data-theme="light"] body.s-cards .meta-l .xp{text-shadow:none}
body.s-cards .meta-l .flipb{margin-left:auto}
body.s-cards .play{width:100%;padding:12px 18px;font-size:14.5px;border-radius:13px;flex:none}
body.s-cards .play .i{width:14px;height:14px}
body.s-cards .flipb{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 9px;border-radius:8px;border:1px solid rgba(147,222,255,.45);color:var(--lab);text-shadow:var(--lab-glow);font:600 10px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase}
body.s-cards .flipb .i{width:12px;height:12px}
body.s-cards .flipb:hover{color:var(--acc);border-color:var(--acc)}
body.s-cards .sbadge .tag{background:rgba(3,4,12,.78)}
body.s-cards .sbadge .done{background:var(--mc);border-color:var(--mc);color:#03040C}
body.s-cards .sbadge .done .i{width:11px;height:11px;stroke-width:3}
html[data-theme="light"] body.s-cards .sbadge .tag{background:#fff}
html[data-theme="light"] body.s-cards .sbadge .done{color:#fff;background:var(--mc)}
body.s-cards .dback .cb{padding:16px 17px 15px;gap:9px}
body.s-cards .dback .play{margin-top:auto}
body.s-cards .dback h3{font-weight:600;font-size:17px;letter-spacing:-.015em}
body.s-cards .back-art{height:104px;flex:none;position:relative;overflow:hidden;border-bottom:1px solid var(--line);display:grid;place-items:center}
body.s-cards .back-art .bdg{--bs:84px}
body.s-cards .chal{list-style:none;margin:0;padding:0;display:grid;gap:6px}
body.s-cards .chal li{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.3;color:var(--soft)}
body.s-cards .chal li::before{content:"";flex:none;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--line2);box-sizing:border-box}
body.s-cards .chal li.ok{color:var(--text)}
body.s-cards .chal li.ok::before{border:0;background:var(--mc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2303040C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat}
html[data-theme="light"] body.s-cards .chal li.ok::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
body.s-cards .learn{list-style:none;margin:0;padding:0;display:grid;gap:5px}
body.s-cards .learn li{display:grid;grid-template-columns:22px 1fr;gap:8px;font-size:13px;line-height:1.4;color:var(--soft)}
body.s-cards .learn li b{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:rgba(var(--mcr),.12);border:1px solid rgba(var(--mcr),.4);color:var(--mc);font:700 9.5px/1 var(--f-mono)}
body.s-cards .rew{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--gold)}
body.s-cards .rew .i{width:13px;height:13px}
body.s-cards .rew span{color:var(--soft);font-weight:500}
html[data-theme="light"] body.s-cards .back-art img{background:#0B1122;border-radius:16px;padding:4px}
body.s-cards .ctrl{display:flex;align-items:center;gap:16px;margin-top:-4px}
body.s-cards .navb{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--panel);border:1px solid var(--line2);color:var(--text)}
body.s-cards .navb .i{width:20px;height:20px}
body.s-cards .navb:hover{border-color:var(--acc);color:var(--acc)}
body.s-cards .navb[disabled]{opacity:.35;pointer-events:none}
body.s-cards .dots{display:flex;align-items:center;gap:6px;justify-content:center}
body.s-cards .dots button{width:8px;height:8px;border-radius:9px;background:var(--line2);transition:width .3s ease,background-color .3s ease}
body.s-cards .dots button[aria-current="true"]{width:26px;background:var(--fill);box-shadow:0 0 10px rgba(56,198,244,.6)}
html[data-theme="light"] body.s-cards .dots button[aria-current="true"]{box-shadow:none}
body.s-cards .hint{font:600 11px/1 var(--f-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-cards .hint kbd{font:inherit;padding:2px 5px;border:1px solid var(--line2);border-radius:5px}
body.s-cards .sc *{box-sizing:border-box}
body.s-cards .mono-s{font-family:var(--f-mono)}
body.s-cards .em{position:absolute;left:18px;top:10px;width:264px;height:150px;background:#fff;border-radius:11px;box-shadow:0 14px 34px rgba(0,0,0,.45);padding:11px 13px;color:#0A1A33;font-size:10px;line-height:1.35}
html[data-theme="light"] body.s-cards .em{box-shadow:0 10px 26px rgba(10,26,51,.18),0 0 0 1px #D3E1EE}
body.s-cards .em-h{display:flex;align-items:center;gap:8px}
body.s-cards .em-lg{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#F26B1D;flex:none}
body.s-cards .em-lg svg{width:15px;height:15px}
body.s-cards .em-f b{display:block;font-size:11px;font-weight:700}
body.s-cards .em-f small{display:block;font-size:8.5px;color:#56677F}
body.s-cards .em-sub{font-weight:700;font-size:12.5px;margin-top:9px;letter-spacing:-.01em}
body.s-cards .em-bd{font-size:10px;color:#3A4C66;margin-top:2px}
body.s-cards .em-btn{display:inline-block;margin-top:8px;background:#38C6F4;color:#0A1A33;font-weight:700;font-size:10.5px;padding:6px 13px;border-radius:7px}
body.s-cards .tip{position:absolute;left:66px;top:124px;z-index:6;display:flex;align-items:center;gap:5px;background:#0A1A33;color:#C9D3E3;font:600 8.5px/1 var(--f-mono);padding:6px 8px;border-radius:6px;white-space:nowrap;box-shadow:0 6px 16px rgba(0,0,0,.35)}
body.s-cards .tip::before{content:"";position:absolute;left:22px;top:-4px;width:8px;height:8px;background:#0A1A33;transform:rotate(45deg)}
body.s-cards .tip b{color:#FF8A95;font-weight:700}
body.s-cards .tip svg{width:10px;height:10px;stroke:#93DEFF;fill:none;stroke-width:2.2}
body.s-cards .mcur{position:absolute;left:96px;top:104px;width:18px;height:22px;z-index:7;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}
body.s-cards .stampS{position:absolute;left:168px;top:84px;z-index:5;padding:3px 16px 2px;border:4.5px solid #FF3B50;border-radius:12px;color:#FF3B50;font:900 46px/1 var(--f-sans);letter-spacing:.08em;transform:translate(-50%,-50%) rotate(-16deg);background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 2px rgba(255,59,80,.35);text-shadow:0 0 1px rgba(255,59,80,.6)}
body.s-cards .is-c .s1 .mcur{animation:s1cur-cards 7s cubic-bezier(.4,0,.2,1) infinite}
body.s-cards .is-c .s1 .em-btn{animation:s1btn-cards 7s linear infinite}
body.s-cards .is-c .s1 .tip{animation:s1tip-cards 7s ease infinite}
body.s-cards .is-c .s1 .stampS{animation:s1st-cards 7s cubic-bezier(.3,1.5,.5,1) infinite}
@keyframes s1cur-cards{0%{transform:translate(140px,60px);opacity:0}6%{opacity:1}22%,100%{transform:none;opacity:1}}
@keyframes s1btn-cards{0%,21%{background:#38C6F4}23%,100%{background:#22B3E6}}
@keyframes s1tip-cards{0%,24%{opacity:0;transform:translateY(4px)}30%,100%{opacity:1;transform:none}}
@keyframes s1st-cards{0%,40%{opacity:0;transform:translate(-50%,-50%) rotate(-24deg) scale(2.6)}46%{opacity:1;transform:translate(-50%,-50%) rotate(-15deg) scale(.9)}50%,92%{opacity:1;transform:translate(-50%,-50%) rotate(-16deg) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) rotate(-16deg) scale(1)}}
body.s-cards .is-c .s1 .em{animation:s1em-cards 7s ease infinite}
@keyframes s1em-cards{0%,45.5%,52%,100%{transform:none}47%{transform:translate(1px,2px)}49%{transform:translate(-1px,-1px)}}
body.s-cards .msg{position:absolute;left:22px;top:12px;width:256px;background:#fff;border-radius:11px;box-shadow:0 14px 34px rgba(0,0,0,.45);padding:10px 12px;color:#0A1A33;font-size:10px;line-height:1.35;overflow:hidden}
html[data-theme="light"] body.s-cards .msg{box-shadow:0 10px 26px rgba(10,26,51,.18),0 0 0 1px #D3E1EE}
body.s-cards .msg-r{position:relative;padding:6px 26px 6px 0;border-bottom:1px dashed #D3E1EE}
body.s-cards .msg-r:last-of-type{border-bottom:0}
body.s-cards .msg-r small{display:block;font:700 7.5px/1.2 var(--f-mono);letter-spacing:.12em;color:#56677F;text-transform:uppercase}
body.s-cards .msg-r b{font-weight:700}
body.s-cards .msg-r .lnk{color:#0874A6;text-decoration:underline;font-weight:600}
body.s-cards .hl{background:linear-gradient(transparent 55%,rgba(255,77,94,.28) 55%)}
body.s-cards .flg{position:absolute;right:0;top:50%;margin-top:-10px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#E0283F;box-shadow:0 0 0 3px rgba(224,40,63,.18)}
body.s-cards .flg svg{width:11px;height:11px;stroke:#fff;fill:none;stroke-width:2.6}
body.s-cards .scan{position:absolute;left:0;right:0;top:0;height:2px;background:#38C6F4;box-shadow:0 0 0 1px rgba(56,198,244,.25);opacity:0}
body.s-cards .scan::after{content:"";position:absolute;left:0;right:0;bottom:2px;height:22px;background:linear-gradient(transparent,rgba(56,198,244,.22))}
body.s-cards .found{position:absolute;left:-6px;top:-18px;z-index:3}
body.s-cards .is-c .s2 .scan{animation:s2scan-cards 6.5s linear infinite}
body.s-cards .is-c .s2 .flg{animation:s2pop-cards 6.5s cubic-bezier(.3,1.6,.5,1) infinite}
body.s-cards .is-c .s2 .r2 .flg{animation-name:s2pop2-cards}
body.s-cards .is-c .s2 .r3 .flg{animation-name:s2pop3-cards}
body.s-cards .is-c .s2 .found{animation:s2f-cards 6.5s ease infinite}
@keyframes s2scan-cards{0%{top:0;opacity:1}55%{top:100%;opacity:1}58%,100%{top:100%;opacity:0}}
@keyframes s2pop-cards{0%,14%{transform:scale(0)}19%{transform:scale(1.3)}22%,94%{transform:scale(1)}100%{transform:scale(0)}}
@keyframes s2pop2-cards{0%,30%{transform:scale(0)}35%{transform:scale(1.3)}38%,94%{transform:scale(1)}100%{transform:scale(0)}}
@keyframes s2pop3-cards{0%,46%{transform:scale(0)}51%{transform:scale(1.3)}54%,94%{transform:scale(1)}100%{transform:scale(0)}}
@keyframes s2f-cards{0%,58%{opacity:0;transform:translateY(5px)}64%,94%{opacity:1;transform:none}100%{opacity:0}}
body.s-cards .ph{position:absolute;left:50%;top:8px;width:176px;height:200px;margin-left:-88px;border-radius:24px;border:5px solid #1B2440;background:#0B1122;box-shadow:0 0 0 1px #2A3656,0 18px 40px rgba(0,0,0,.5);padding:10px 10px;overflow:hidden}
html[data-theme="light"] body.s-cards .ph{box-shadow:0 0 0 1px #0A1A33,0 14px 30px rgba(10,26,51,.25)}
body.s-cards .ph-h{display:flex;align-items:center;gap:7px;padding-bottom:7px;border-bottom:1px solid #1E2B45}
body.s-cards .av{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#2A3656;color:#FFFFFF;font:700 11px/1 var(--f-sans);flex:none}
body.s-cards .ph-h b{display:block;color:#fff;font-size:10px;font-weight:600;line-height:1.2}
body.s-cards .ph-h small{display:block;color:rgba(255,255,255,.75);font:600 8px/1.2 var(--f-mono);letter-spacing:.06em}
body.s-cards .bub{margin-top:7px;max-width:136px;background:#1E2B45;color:#fff;font-size:9.5px;line-height:1.35;padding:6px 8px;border-radius:12px 12px 12px 4px}
body.s-cards .typing{display:inline-flex;gap:3px;margin-top:7px;padding:7px 9px;background:#1E2B45;border-radius:12px 12px 12px 4px}
body.s-cards .typing i{width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.75)}
body.s-cards .warn{position:absolute;right:6px;top:104px;z-index:3;display:flex;align-items:center;gap:6px;padding:6px 9px;border-radius:9px;background:#2A0A12;border:1px solid #FF4D5E;color:#FFC2C8;font:700 8.5px/1.25 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;box-shadow:0 0 16px rgba(255,77,94,.4);width:96px}
body.s-cards .warn svg{width:16px;height:16px;flex:none;stroke:#FF4D5E;fill:none;stroke-width:2.2}
html[data-theme="light"] body.s-cards .warn{background:#fff;color:#B71C31;box-shadow:0 6px 16px rgba(10,26,51,.15)}
body.s-cards .is-c .s3 .b1{animation:s3b1-cards 7s ease infinite}
body.s-cards .is-c .s3 .typing{animation:s3ty-cards 7s ease infinite}
body.s-cards .is-c .s3 .typing i{animation:s3dot-cards .9s ease-in-out infinite}
body.s-cards .is-c .s3 .typing i:nth-child(2){animation-delay:.15s}
body.s-cards .is-c .s3 .typing i:nth-child(3){animation-delay:.3s}
body.s-cards .is-c .s3 .b2{animation:s3b2-cards 7s ease infinite}
body.s-cards .is-c .s3 .warn{animation:s3w-cards 7s cubic-bezier(.3,1.6,.5,1) infinite}
@keyframes s3b1-cards{0%,6%{opacity:0;transform:translateY(8px) scale(.95)}12%,95%{opacity:1;transform:none}100%{opacity:0}}
@keyframes s3ty-cards{0%,18%{opacity:0;max-height:0;padding:0 9px;margin-top:0}22%,36%{opacity:1;max-height:30px;padding:7px 9px;margin-top:7px}38%,100%{opacity:0;max-height:0;padding:0 9px;margin-top:0}}
@keyframes s3dot-cards{0%,100%{opacity:.35;transform:none}50%{opacity:1;transform:translateY(-2px)}}
@keyframes s3b2-cards{0%,37%{opacity:0;transform:translateY(8px) scale(.95)}43%,95%{opacity:1;transform:none}100%{opacity:0}}
@keyframes s3w-cards{0%,52%{opacity:0;transform:scale(.4)}58%,95%{opacity:1;transform:none}100%{opacity:0}}
body.s-cards .call{background:linear-gradient(180deg,#14213F,#0B1122);display:flex;flex-direction:column;align-items:center;padding-top:6px}
body.s-cards .call .cav{position:relative;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;color:#0A1A33;font:800 22px/1 var(--f-sans);letter-spacing:-.04em;z-index:2}
body.s-cards .call .cav i{position:absolute;inset:-1px;border-radius:50%;border:2px solid #FF4D5E;opacity:0}
body.s-cards .call .cn{margin-top:7px;color:#fff;font-weight:700;font-size:11.5px}
body.s-cards .call .cs{color:rgba(255,255,255,.75);font:600 8px/1.3 var(--f-mono);letter-spacing:.1em;text-transform:uppercase}
body.s-cards .call .cbtns{display:flex;gap:34px;margin-top:6px}
body.s-cards .call .cbtns span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#E0283F}
body.s-cards .call .cbtns span.ok{background:#22B573}
body.s-cards .call .cbtns svg{width:15px;height:15px;stroke:#fff;fill:none;stroke-width:2.2}
body.s-cards .call .cbtns span:first-child svg{transform:rotate(135deg)}
body.s-cards .fakepill{position:absolute;left:50%;bottom:0;z-index:4;transform:translateX(-50%)}
body.s-cards .fakepill.pill{font-size:9px;padding:5px 10px;gap:6px;letter-spacing:.12em}
body.s-cards .is-c .s4 .cav i{animation:s4ring-cards 2.4s ease-out infinite}
body.s-cards .is-c .s4 .cav i:nth-child(2){animation-delay:.8s}
body.s-cards .is-c .s4 .cav i:nth-child(3){animation-delay:1.6s}
body.s-cards .is-c .s4 .ph{animation:s4buzz-cards 2.4s ease infinite}
body.s-cards .is-c .s4 .cbtns .ok{animation:s4ok-cards 1.2s ease-in-out infinite}
@keyframes s4ring-cards{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(2.6)}}
@keyframes s4buzz-cards{0%,12%,100%{transform:none}2%,6%,10%{transform:translateX(-1.5px)}4%,8%{transform:translateX(1.5px)}}
@keyframes s4ok-cards{50%{transform:translateY(-3px)}}
body.s-cards .wf{position:absolute;left:30px;top:10px;width:240px;border-radius:13px;background:#0F1A33;border:1px solid #2A4A7A;box-shadow:0 14px 34px rgba(0,0,0,.45);padding:10px 10px 8px;color:#fff}
html[data-theme="light"] body.s-cards .wf{box-shadow:0 10px 26px rgba(10,26,51,.22)}
body.s-cards .wf-h{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:11.5px;padding:0 2px 7px;border-bottom:1px solid #1E2B45}
body.s-cards .wf-h i{width:26px;height:15px;border-radius:9px;background:#38C6F4;position:relative}
body.s-cards .wf-h i::after{content:"";position:absolute;right:2px;top:2px;width:11px;height:11px;border-radius:50%;background:#fff}
body.s-cards .wf-r{position:relative;display:flex;align-items:center;gap:9px;margin-top:6px;padding:7px 8px;border-radius:9px;background:#131F3B;border:1px solid transparent;font-size:11px;font-weight:600}
body.s-cards .wf-r .nm{font-family:var(--f-mono);font-size:10.5px;letter-spacing:.01em}
body.s-cards .sp{display:inline-block;width:7px;height:12px;vertical-align:-2px;margin-left:1px;border-radius:2px;border:1px dashed transparent}
body.s-cards .wf-r small{margin-left:auto;font:600 7.5px/1 var(--f-mono);letter-spacing:.12em;color:rgba(255,255,255,.75)}
body.s-cards .fan{width:18px;height:14px;flex:none}
body.s-cards .fan path{fill:none;stroke:#93DEFF;stroke-width:2;stroke-linecap:round}
body.s-cards .fan circle{fill:#93DEFF}
body.s-cards .twin{position:absolute;right:-10px;top:-9px;padding:3px 7px;border-radius:6px;background:#E0283F;color:#fff;font:800 8.5px/1 var(--f-mono);letter-spacing:.14em;box-shadow:0 0 14px rgba(255,77,94,.55)}
body.s-cards .wf-r.fake{border-color:rgba(255,77,94,.75);background:#2A0E18}
body.s-cards .wf-r.fake .sp{border-color:#FF4D5E}
body.s-cards .wf-cap{margin-top:7px;text-align:center;font:600 8px/1 var(--f-mono);letter-spacing:.14em;color:rgba(255,255,255,.75);text-transform:uppercase}
body.s-cards .is-c .s5 .fan path{animation:s5fan-cards 1.6s ease-in-out infinite}
body.s-cards .is-c .s5 .fan path:nth-child(2){animation-delay:.2s}
body.s-cards .is-c .s5 .fan path:nth-child(3){animation-delay:.4s}
body.s-cards .is-c .s5 .fake{animation:s5fk-cards 6s ease infinite}
body.s-cards .is-c .s5 .fake .sp{animation:s5sp-cards 6s ease infinite}
body.s-cards .is-c .s5 .twin{animation:s5tw-cards 6s cubic-bezier(.3,1.6,.5,1) infinite}
@keyframes s5fan-cards{0%,100%{opacity:.25}40%{opacity:1}}
@keyframes s5fk-cards{0%,38%{border-color:transparent;background:#131F3B}46%,94%{border-color:rgba(255,77,94,.75);background:#2A0E18}100%{border-color:transparent;background:#131F3B}}
@keyframes s5sp-cards{0%,40%{border-color:transparent}48%,94%{border-color:#FF4D5E}100%{border-color:transparent}}
@keyframes s5tw-cards{0%,44%{opacity:0;transform:scale(.3) rotate(-12deg)}52%,94%{opacity:1;transform:rotate(6deg)}100%{opacity:0}}
body.s-cards .pw{position:absolute;left:24px;top:14px;width:252px;display:grid;gap:12px}
body.s-cards .pwf{display:grid;gap:5px}
body.s-cards .pwf label{display:flex;justify-content:space-between;font:700 8px/1 var(--f-mono);letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.75)}
html[data-theme="light"] body.s-cards .pwf label{color:var(--text)}
body.s-cards .pwf .box{height:30px;display:flex;align-items:center;padding:0 10px;border-radius:8px;background:#0F1A33;border:1px solid #2A4A7A;color:#fff;font:600 11px/1 var(--f-mono)}
body.s-cards .ty{display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:middle}
body.s-cards .box .car{display:inline-block;width:1.5px;height:13px;background:#93DEFF;margin-left:1px;vertical-align:middle}
body.s-cards .meter{height:5px;border-radius:9px;background:#1E2B45;overflow:hidden}
html[data-theme="light"] body.s-cards .meter{background:#C9DBEA}
body.s-cards .meter i{display:block;height:100%;border-radius:9px}
body.s-cards .m-bad i{width:12%;background:#FF4D5E}
body.s-cards .m-good i{width:100%;background:linear-gradient(90deg,#38C6F4,#93DEFF);box-shadow:0 0 10px rgba(56,198,244,.6)}
body.s-cards .vd{font:800 9px/1 var(--f-mono);letter-spacing:.1em;text-transform:uppercase}
body.s-cards .vd.bad{color:#FF6B7A}
body.s-cards .vd.good{color:#93DEFF}
html[data-theme="light"] body.s-cards .vd.bad{color:#C21F35}
html[data-theme="light"] body.s-cards .vd.good{color:#0874A6}
body.s-cards .is-c .s6 .t1{animation:s6t1-cards 8s steps(11,end) infinite}
body.s-cards .is-c .s6 .t2{animation:s6t2-cards 8s steps(26,end) infinite}
body.s-cards .is-c .s6 .m-bad i{animation:s6m1-cards 8s ease infinite}
body.s-cards .is-c .s6 .m-good i{animation:s6m2-cards 8s ease infinite}
body.s-cards .is-c .s6 .v1{animation:s6v1-cards 8s ease infinite}
body.s-cards .is-c .s6 .v2{animation:s6v2-cards 8s ease infinite}
body.s-cards .is-c .s6 .car{animation:blink 1s steps(1) infinite}
@keyframes s6t1-cards{0%{width:0}14%,100%{width:11ch}}
@keyframes s6t2-cards{0%,28%{width:0}62%,100%{width:26ch}}
@keyframes s6m1-cards{0%,15%{width:0}20%,100%{width:12%}}
@keyframes s6m2-cards{0%,63%{width:0}74%,100%{width:100%}}
@keyframes s6v1-cards{0%,19%{opacity:0}23%,100%{opacity:1}}
@keyframes s6v2-cards{0%,72%{opacity:0}77%,100%{opacity:1}}
body.s-cards .post{position:absolute;left:50%;top:8px;width:172px;margin-left:-86px;background:#fff;border-radius:11px;padding:7px;color:#0A1A33;box-shadow:0 14px 34px rgba(0,0,0,.45)}
html[data-theme="light"] body.s-cards .post{box-shadow:0 10px 26px rgba(10,26,51,.2),0 0 0 1px #D3E1EE}
body.s-cards .post-h{display:flex;align-items:center;gap:6px;font-size:9.5px;font-weight:700;padding:0 2px 6px}
body.s-cards .post-h i{width:18px;height:18px;border-radius:50%;background:linear-gradient(135deg,#FFA03C,#FF4D5E)}
body.s-cards .post-h span{color:#7F8BA3;font-weight:500}
body.s-cards .photo{position:relative;height:104px;border-radius:7px;overflow:hidden;background:linear-gradient(180deg,#9FD8F5 0%,#CDEBFA 55%,#E9DCC9 55%,#E2D2BC 100%)}
body.s-cards .wall{position:absolute;left:0;right:0;top:10px;bottom:22px;background:#E8E1D6}
body.s-cards .door{position:absolute;left:24px;top:18px;width:38px;height:64px;border-radius:4px 4px 0 0;background:#1C3A66;box-shadow:inset 0 0 0 3px #15304F}
body.s-cards .door::after{content:"";position:absolute;right:6px;top:34px;width:4px;height:4px;border-radius:50%;background:#FFD23F}
body.s-cards .num{position:absolute;left:70px;top:26px;padding:3px 5px;border-radius:3px;background:#0A1A33;color:#fff;font:800 12px/1 var(--f-sans)}
body.s-cards .plant{position:absolute;left:8px;top:58px;width:14px;height:24px;border-radius:7px 7px 2px 2px;background:#3B9E6E}
body.s-cards .pass{position:absolute;right:8px;bottom:6px;width:86px;height:48px;border-radius:5px;background:#fff;transform:rotate(-9deg);box-shadow:0 4px 10px rgba(0,0,0,.25);overflow:hidden;font-size:6.5px;color:#0A1A33}
body.s-cards .pass::before{content:"BOARDING PASS";display:block;background:#0874A6;color:#fff;font:800 5.5px/1 var(--f-mono);letter-spacing:.12em;padding:3px 5px}
body.s-cards .pass b{display:block;padding:3px 5px 0;font:800 9px/1 var(--f-mono)}
body.s-cards .pass small{display:block;padding:1px 5px;font:600 6px/1.2 var(--f-mono);color:#3A4C66}
body.s-cards .pass i{position:absolute;right:5px;bottom:5px;width:24px;height:12px;background:repeating-linear-gradient(90deg,#0A1A33 0 1px,transparent 1px 2.5px,#0A1A33 2.5px 3px,transparent 3px 4.5px)}
body.s-cards .cap{font-size:8.5px;padding:6px 2px 1px;color:#3A4C66}
body.s-cards .pin{position:absolute;z-index:4;display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:8px;background:#E0283F;color:#fff;font:800 8.5px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;box-shadow:0 0 16px rgba(255,77,94,.45)}
html[data-theme="light"] body.s-cards .pin{box-shadow:0 4px 12px rgba(224,40,63,.3)}
body.s-cards .pin::after{content:"";position:absolute;width:8px;height:8px;background:#E0283F;transform:rotate(45deg)}
body.s-cards .pin.p1{left:204px;top:112px}
body.s-cards .pin.p1::after{left:-3px;top:8px}
body.s-cards .pin.p2{left:0;top:58px}
body.s-cards .pin.p2::after{right:-3px;top:8px}
body.s-cards .is-c .s7 .p2{animation:s7p-cards 6s cubic-bezier(.3,1.6,.5,1) infinite}
body.s-cards .is-c .s7 .p1{animation:s7p2-cards 6s cubic-bezier(.3,1.6,.5,1) infinite}
@keyframes s7p-cards{0%,20%{opacity:0;transform:scale(.3)}28%,94%{opacity:1;transform:none}100%{opacity:0}}
@keyframes s7p2-cards{0%,40%{opacity:0;transform:scale(.3)}48%,94%{opacity:1;transform:none}100%{opacity:0}}
body.s-cards .buddy{position:absolute;left:50%;top:14px;width:124px;height:142px;margin-left:-62px}
body.s-cards .buddy svg{width:100%;height:100%;overflow:visible}
body.s-cards .spk{position:absolute;width:16px;height:16px}
body.s-cards .spk path{fill:#FFD23F}
body.s-cards .spk.c path{fill:#93DEFF}
html[data-theme="light"] body.s-cards .spk path{fill:#E9A400}
html[data-theme="light"] body.s-cards .spk.c path{fill:#38C6F4}
body.s-cards .k1{left:56px;top:26px}
body.s-cards .k2{left:220px;top:18px;width:20px;height:20px}
body.s-cards .k3{left:74px;top:122px;width:12px;height:12px}
body.s-cards .k4{left:226px;top:112px}
body.s-cards .k5{left:40px;top:76px;width:10px;height:10px}
body.s-cards .k6{left:250px;top:66px;width:11px;height:11px}
body.s-cards .is-c .s8 .buddy{animation:s8bob-cards 3.2s ease-in-out infinite}
body.s-cards .is-c .s8 .eye{animation:s8blink-cards 4s ease infinite;transform-origin:center;transform-box:fill-box}
body.s-cards .is-c .s8 .spk{animation:s8tw-cards 2.4s ease-in-out infinite}
body.s-cards .is-c .s8 .k2{animation-delay:.4s}
body.s-cards .is-c .s8 .k3{animation-delay:.8s}
body.s-cards .is-c .s8 .k4{animation-delay:1.2s}
body.s-cards .is-c .s8 .k5{animation-delay:1.6s}
body.s-cards .is-c .s8 .k6{animation-delay:2s}
@keyframes s8bob-cards{0%,100%{transform:none}50%{transform:translateY(-6px)}}
@keyframes s8blink-cards{0%,46%,52%,100%{transform:none}49%{transform:scaleY(.1)}}
@keyframes s8tw-cards{0%,100%{transform:scale(.6) rotate(0);opacity:.5}50%{transform:scale(1.1) rotate(25deg);opacity:1}}
body.s-cards .calt{position:absolute;left:46px;top:20px;width:98px;height:112px;border-radius:16px;background:#fff;overflow:hidden;transform:rotate(-5deg);box-shadow:0 14px 34px rgba(0,0,0,.45);text-align:center;color:#0A1A33}
html[data-theme="light"] body.s-cards .calt{box-shadow:0 10px 26px rgba(10,26,51,.2),0 0 0 1px #D3E1EE}
body.s-cards .calt b{display:block;background:#E0283F;color:#fff;font:800 12px/1 var(--f-mono);letter-spacing:.2em;padding:8px 0 7px}
body.s-cards .calt strong{display:block;font:800 50px/1 var(--f-sans);letter-spacing:-.04em;margin-top:9px}
body.s-cards .calt small{display:block;font:700 8px/1 var(--f-mono);letter-spacing:.16em;color:#56677F;margin-top:4px}
body.s-cards .strk{position:absolute;left:162px;top:30px;display:flex;align-items:center;gap:6px;padding:8px 12px 8px 9px;border-radius:999px;background:#2A1606;border:1px solid #FFA03C;color:#FFD2A1;font:800 13px/1 var(--f-mono);letter-spacing:.06em;box-shadow:0 0 18px rgba(255,160,60,.35)}
html[data-theme="light"] body.s-cards .strk{background:#FFF3E3;color:#8A4B00;box-shadow:none}
body.s-cards .strk svg{width:20px;height:20px;color:#FFA03C;transform-origin:50% 90%}
body.s-cards .newin{position:absolute;left:162px;top:78px;display:grid;gap:5px}
body.s-cards .newin span{font:700 8px/1 var(--f-mono);letter-spacing:.16em;color:rgba(255,255,255,.75);text-transform:uppercase}
html[data-theme="light"] body.s-cards .newin span{color:var(--text)}
body.s-cards .newin b{font:700 20px/1 var(--f-mono);color:#fff;letter-spacing:.02em;font-variant-numeric:tabular-nums}
html[data-theme="light"] body.s-cards .newin b{color:#0A1A33}
body.s-cards .is-c .s9 .strk svg{animation:s9fl-cards 1.1s ease-in-out infinite}
body.s-cards .is-c .s9 .calt{animation:s9c-cards 5s ease-in-out infinite}
@keyframes s9fl-cards{0%,100%{transform:scale(1,1)}50%{transform:scale(.92,1.12)}}
@keyframes s9c-cards{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(-3deg) translateY(-3px)}}
body.s-cards .hearts{position:absolute;left:24px;top:18px;display:flex;gap:5px}
body.s-cards .hearts svg{width:22px;height:22px;color:#FF4D5E;filter:drop-shadow(0 0 6px rgba(255,77,94,.5))}
html[data-theme="light"] body.s-cards .hearts svg{filter:none;color:#E0283F}
body.s-cards .combo{position:absolute;right:22px;top:18px;padding:5px 9px;border-radius:8px;border:1px solid #FFA03C;color:#FFD2A1;background:#2A1606;font:800 10px/1 var(--f-mono);letter-spacing:.1em}
html[data-theme="light"] body.s-cards .combo{background:#FFF3E3;color:#8A4B00}
body.s-cards .ringc{position:absolute;left:50%;top:22px;width:100px;height:100px;margin-left:-50px}
body.s-cards .ringc svg{width:100%;height:100%;transform:rotate(-90deg)}
body.s-cards .ringc .tr{fill:none;stroke:#1E2B45;stroke-width:8}
html[data-theme="light"] body.s-cards .ringc .tr{stroke:#C9DBEA}
body.s-cards .ringc .pr{fill:none;stroke:#93DEFF;stroke-width:8;stroke-linecap:round;stroke-dasharray:264;stroke-dashoffset:66}
html[data-theme="light"] body.s-cards .ringc .pr{stroke:#0874A6}
body.s-cards .ringc b{position:absolute;inset:0;display:grid;place-items:center;font:800 34px/1 var(--f-sans);color:var(--text);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
body.s-cards .rushpill{position:absolute;left:50%;bottom:12px;transform:translateX(-50%)}
body.s-cards .rushpill.pill{font-size:9px;padding:5px 10px;gap:6px;letter-spacing:.12em}
body.s-cards .speed{position:absolute;inset:0;overflow:hidden}
body.s-cards .speed i{position:absolute;opacity:0;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,rgba(147,222,255,.55));width:60px}
html[data-theme="light"] body.s-cards .speed i{background:linear-gradient(90deg,transparent,rgba(8,116,166,.45))}
body.s-cards .speed i:nth-child(1){left:-60px;top:60px}
body.s-cards .speed i:nth-child(2){left:-60px;top:96px;width:40px}
body.s-cards .speed i:nth-child(3){left:-60px;top:130px;width:80px}
body.s-cards .is-c .s10 .pr{animation:s10r-cards 10s linear infinite}
body.s-cards .is-c .s10 .hearts svg:nth-child(3){animation:s10h-cards 1s ease-in-out infinite}
body.s-cards .is-c .s10 .speed i{animation:s10s-cards 1.4s linear infinite}
body.s-cards .is-c .s10 .speed i:nth-child(2){animation-delay:.5s}
body.s-cards .is-c .s10 .speed i:nth-child(3){animation-delay:.9s}
@keyframes s10r-cards{from{stroke-dashoffset:0}to{stroke-dashoffset:264}}
@keyframes s10h-cards{50%{transform:scale(1.2)}}
@keyframes s10s-cards{from{opacity:1;transform:none}to{opacity:1;transform:translateX(420px)}}
@media (max-width:560px){
  body.s-cards .page{padding-top:12px;gap:10px}
  body.s-cards .deck-wrap{--cw:min(306px,84vw);--ch:516px;--sh:184px}
  body.s-cards .cb{padding:12px 14px 13px;gap:6px}
  body.s-cards .cb-name{font-size:18px}
  body.s-cards .cb-prom{font-size:13.5px}
  body.s-cards .cb-why{font-size:12.5px}
  body.s-cards .yl li{font-size:12.5px}
  body.s-cards .play{padding:11px 16px;font-size:14px}
  body.s-cards .navb{width:40px;height:40px}
  body.s-cards .navb .i{width:18px;height:18px}
  body.s-cards .ctrl{gap:12px}
  body.s-cards .progrow{gap:10px}
  body.s-cards .hint{display:none}
  body.s-cards .sc{transform:scale(.92);margin-top:-80px}
  body.s-cards .wm{width:20px;height:20px;right:8px;bottom:8px}
}
html.rm body.s-cards .dcard,html.rm body.s-cards .dcard-in{transition:opacity .3s ease}

/* ===================== round.html ===================== */
body.s-round .quit{background:var(--fill)}
body.s-round .hud-q{display:flex;flex-direction:column;align-items:center;gap:6px;line-height:1}
body.s-round .hq-t{display:flex;align-items:baseline;gap:7px}
body.s-round .hq-t span{font:600 10px/1 var(--f-mono);letter-spacing:.16em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-round .hq-t b{font:700 15px/1 var(--f-mono);letter-spacing:.06em;font-variant-numeric:tabular-nums}
body.s-round .hud-q .dmeter{font-size:9.5px}
body.s-round .segs{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;max-width:calc(1360px + 2*var(--gut));margin:0 auto;padding:0 var(--gut) 10px}
body.s-round .segs i{height:4px;border-radius:4px;background:var(--line)}
body.s-round .segs i.ok{background:var(--fill);box-shadow:0 0 8px rgba(56,198,244,.5)}
body.s-round .segs i.no{background:var(--red)}
body.s-round .segs i.now{background:var(--line2);animation:segp-round 1.4s ease-in-out infinite}
@keyframes segp-round{50%{background:var(--acc)}}
html[data-theme="light"] body.s-round .segs i.ok{box-shadow:none}
body.s-round #xpPill{transition:color .3s ease,border-color .3s ease,background-color .3s ease;font-variant-numeric:tabular-nums}
body.s-round #xpPill.down{color:#FFC2C8;border-color:rgba(255,77,94,.85);background:rgba(255,77,94,.12);box-shadow:0 0 14px rgba(255,77,94,.4)}
body.s-round #xpPill.up{color:#fff;border-color:#93DEFF;background:rgba(147,222,255,.2);box-shadow:0 0 18px rgba(56,198,244,.6)}
html[data-theme="light"] body.s-round #xpPill.down{color:#B71C31;border-color:#D7263D;background:#FDECEE;box-shadow:none}
html[data-theme="light"] body.s-round #xpPill.up{color:#075F88;background:#D2EEFB;box-shadow:none}
body.s-round .float{position:fixed;z-index:400;font:800 22px/1 var(--f-sans);letter-spacing:-.02em;pointer-events:none;white-space:nowrap;animation:flt-round 1.6s cubic-bezier(.2,.8,.3,1) forwards}
body.s-round .float.neg{color:#FF4D5E;text-shadow:0 0 18px rgba(255,77,94,.6)}
body.s-round .float.pos{color:#93DEFF;text-shadow:0 0 18px rgba(56,198,244,.7)}
html[data-theme="light"] body.s-round .float.neg{color:#D7263D;text-shadow:none}
html[data-theme="light"] body.s-round .float.pos{color:#0874A6;text-shadow:none}
@keyframes flt-round{0%{opacity:0;transform:translate(-50%,6px) scale(.6)}15%{opacity:1;transform:translate(-50%,-6px) scale(1.15)}30%{transform:translate(-50%,-14px) scale(1)}100%{opacity:0;transform:translate(-50%,-62px)}}
body.s-round .q-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
@keyframes mk-round{from{transform:scale(0)}}
@keyframes shake-round{10%,90%{transform:translateX(-2px)}20%,80%{transform:translateX(4px)}30%,50%,70%{transform:translateX(-8px)}40%,60%{transform:translateX(8px)}}
body.s-round .why{margin-top:16px;padding:20px;border-radius:20px;background:var(--card-grad);border:1px solid var(--line);box-shadow:var(--card-shadow);display:grid;gap:14px;animation:pop .4s cubic-bezier(.2,1.3,.5,1)}
body.s-round .why[hidden]{display:none}
body.s-round .why-h{display:flex;align-items:center;gap:12px}
body.s-round .why-h .ib{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;flex:none}
body.s-round .why-h .ib .i{width:22px;height:22px}
body.s-round .why.bad .why-h .ib{background:rgba(255,77,94,.14);border:1px solid rgba(255,77,94,.6);color:var(--red)}
body.s-round .why.good .why-h .ib{background:rgba(147,222,255,.14);border:1px solid rgba(147,222,255,.6);color:var(--acc)}
body.s-round .why-h b{display:block;font-size:17px;font-weight:700;letter-spacing:-.012em}
body.s-round .why-h small{display:block;color:var(--text);font-size:14px}
body.s-round .why-h .xpchip{margin-left:auto;font:800 15px/1 var(--f-mono);padding:8px 11px;border-radius:10px;white-space:nowrap}
body.s-round .why.bad .xpchip{color:var(--red);background:rgba(255,77,94,.1);border:1px solid rgba(255,77,94,.5)}
body.s-round .why.good .xpchip{color:var(--acc);background:rgba(147,222,255,.1);border:1px solid rgba(147,222,255,.5)}
body.s-round .flags{list-style:none;margin:0;padding:0;display:grid;gap:10px}
body.s-round .flags li{display:grid;grid-template-columns:24px 1fr;gap:10px;font-size:13.5px;line-height:1.45;color:var(--soft)}
body.s-round .flags li b{color:var(--text);font-weight:600}
body.s-round .flags li i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#E0283F;color:#fff;font:800 11.5px/1 var(--f-sans);font-style:normal;margin-top:1px}
body.s-round .why-b{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
body.s-round .linkbtn{font:600 13px/1 var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--acc);text-shadow:var(--lab-glow);text-decoration:underline;text-underline-offset:4px}
body.s-round .rules{margin-top:18px;padding:14px 16px;border-radius:16px;border:1px dashed var(--line2);display:grid;gap:8px}
body.s-round .rules .fine{color:var(--lab);text-shadow:var(--lab-glow)}
body.s-round .rules ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--text)}
body.s-round .rules li b{font-family:var(--f-mono);font-weight:700}
body.s-round .rules .p{color:var(--acc)}
body.s-round .rules .n{color:var(--red)}
body.s-round .rules p{font-size:13px;color:var(--soft);display:flex;gap:7px;align-items:center}
body.s-round .rules p .i{width:15px;height:15px;color:var(--gold);flex:none}
@media (max-width:900px){
  body.s-round .q-top{order:1}
  body.s-round .why{order:5}
  body.s-round .rules{order:6}
  body.s-round .why,body.s-round .rules{margin-top:0}
}
@media (max-width:560px){
  body.s-round .quit-t{display:none}
  body.s-round .menu-btn.quit{padding:0 14px 0 12px}
  body.s-round .why{padding:16px}
  body.s-round .why-h .xpchip{font-size:13px}
  body.s-round .hq-t span{display:none}
  body.s-round .hud-q .dmeter{font-size:9px}
}

/* ===================== results.html ===================== */
body.s-res .res{--t1:#B37400;--t2:#FFD23F;--t3:#FFF4B0;--t4:#F5B301;--tint:255,210,63;--tintS:#FFD23F}
body.s-res .res.silver{--t1:#5E6672;--t2:#C3CBD5;--t3:#FAFCFF;--t4:#9AA4B1;--tint:214,226,240;--tintS:#DCE6F2}
body.s-res .res.bronze{--t1:#6E3510;--t2:#C7783A;--t3:#FFD2AB;--t4:#A35A22;--tint:226,146,88;--tintS:#E2925A}
body.s-res .res.fail{--tint:255,77,94;--tintS:#FF4D5E}
html[data-theme="light"] body.s-res .res{--tint:179,116,0;--tintS:#B37400}
html[data-theme="light"] body.s-res .res.silver{--tint:94,102,114;--tintS:#5E6672}
html[data-theme="light"] body.s-res .res.bronze{--tint:163,90,34;--tintS:#A35A22}
html[data-theme="light"] body.s-res .res.fail{--tint:215,38,61;--tintS:#D7263D}
body.s-res .res{position:relative;z-index:2;padding:clamp(16px,3vh,32px) 0 56px}
body.s-res .res-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:clamp(20px,3vw,48px);align-items:center}
body.s-res .stage{position:relative;width:min(500px,100%);aspect-ratio:1/1.02;margin:0 auto}
body.s-res .stage > *{position:absolute}
body.s-res .aura{inset:6%;border-radius:50%;background:radial-gradient(closest-side,rgba(var(--tint),.24),rgba(var(--tint),.08) 55%,transparent 100%)}
html[data-theme="light"] body.s-res .aura{background:radial-gradient(closest-side,rgba(var(--tint),.16),transparent 100%)}
body.s-res .rays,body.s-res .gring{left:50%;top:54%;transform:translate(-50%,-50%)}
body.s-res .rays{width:128%;height:128%;opacity:0;transition:opacity 1s ease}
body.s-res .rays .rw{transform-origin:0 0;animation:spin-res 60s linear infinite}
body.s-res .rays path{fill:rgb(var(--tint))}
body.s-res .gring{width:92%;height:92%;opacity:0;transition:opacity .8s ease}
body.s-res .gring .g{fill:none;stroke:rgba(var(--tint),.55);stroke-width:1.3}
body.s-res .gring .g2{fill:none;stroke:rgba(var(--tint),.28);stroke-width:1}
body.s-res .gring .tk{stroke:rgba(var(--tint),.6);stroke-width:1.4}
body.s-res .gring .rot{transform-origin:0 0;animation:spin-res 140s linear infinite reverse}
body.s-res .gring .lt{fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-dasharray:.6 99.4;animation:lt 8s linear infinite}
html[data-theme="light"] body.s-res .gring .lt{stroke:rgb(var(--tint))}
body.s-res .on .rays{opacity:.2}
html[data-theme="light"] body.s-res .on .rays{opacity:.12}
body.s-res .on .gring{opacity:1}
@keyframes spin-res{to{transform:rotate(360deg)}}
body.s-res .trophy{left:50%;top:22%;width:46%;transform:translateX(-50%) scale(0);transform-origin:50% 90%}
body.s-res .trophy svg{width:100%;height:auto;overflow:visible}
body.s-res .on .trophy{animation:tpop-res .9s cubic-bezier(.25,1.6,.45,1) .15s forwards}
@keyframes tpop-res{0%{transform:translateX(-50%) scale(0) rotate(-8deg)}60%{transform:translateX(-50%) scale(1.12) rotate(2deg)}80%{transform:translateX(-50%) scale(.96) rotate(-1deg)}100%{transform:translateX(-50%) scale(1) rotate(0)}}
body.s-res .shn{transform:translateX(0)}
body.s-res .on .shn{animation:shine-res 1.4s ease-in-out 1.1s forwards,shine-res 1.4s ease-in-out 5s forwards}
@keyframes shine-res{from{transform:translateX(0)}to{transform:translateX(420px)}}
body.s-res .stars{left:0;right:0;top:3%;display:flex;justify-content:center;align-items:flex-end;gap:2%;z-index:4}
body.s-res .star{position:relative;width:15%;aspect-ratio:1}
body.s-res .star.mid{width:19%;margin-bottom:5%}
body.s-res .star svg{width:100%;height:100%;overflow:visible}
body.s-res .star .dim{fill:rgba(255,255,255,.05);stroke:rgba(255,255,255,.28);stroke-width:2.5;stroke-dasharray:5 4}
html[data-theme="light"] body.s-res .star .dim{fill:rgba(10,26,51,.04);stroke:rgba(10,26,51,.3)}
body.s-res .star:not(.got) .pop{display:none}
body.s-res .star.got .pop{transform-origin:50% 50%;transform-box:fill-box;opacity:0}
body.s-res .on .star.got .pop{animation:slam-res .55s cubic-bezier(.3,1.7,.5,1) forwards;animation-delay:var(--d)}
@keyframes slam-res{0%{opacity:0;transform:scale(2.8) rotate(-30deg)}55%{opacity:1;transform:scale(.82) rotate(6deg)}100%{opacity:1;transform:none}}
body.s-res .sparks{position:absolute;left:50%;top:50%;width:0;height:0}
body.s-res .sparks i{position:absolute;left:-1.5px;top:-6px;width:3px;height:12px;border-radius:3px;background:#FFE27A;opacity:0;transform:rotate(var(--a)) translateY(-18px)}
body.s-res .sparks i:nth-child(even){background:#fff;height:8px}
html[data-theme="light"] body.s-res .sparks i{background:#F5B301}
html[data-theme="light"] body.s-res .sparks i:nth-child(even){background:#38C6F4}
body.s-res .on .star.got .sparks i{animation:spark-res .7s ease-out forwards;animation-delay:calc(var(--d) + .2s)}
@keyframes spark-res{0%{opacity:1;transform:rotate(var(--a)) translateY(-14px) scaleY(1)}100%{opacity:0;transform:rotate(var(--a)) translateY(-58px) scaleY(.4)}}
body.s-res .crack{left:50%;top:18%;width:44%;transform:translateX(-50%);display:none}
body.s-res .crack svg{width:100%;height:auto;overflow:visible}
body.s-res .fail .crack{display:block}
body.s-res .fail .trophy,body.s-res .fail .stars,body.s-res .fail .rays{display:none}
body.s-res .on.fail .crack{animation:cin-res .5s ease both}
@keyframes cin-res{from{opacity:0;transform:translateX(-50%) translateY(10px) scale(.9)}}
body.s-res .crk{stroke-dasharray:400;stroke-dashoffset:400}
body.s-res .on .crk{animation:draw-res .5s ease-out 1.05s forwards}
@keyframes draw-res{to{stroke-dashoffset:0}}
body.s-res .chunk{opacity:0}
body.s-res .on .chunk{animation:chunk-res .4s ease-out 1.15s forwards}
@keyframes chunk-res{0%{opacity:1;transform:none}100%{opacity:1;transform:translate(8px,10px) rotate(9deg)}}
body.s-res .bstamp{left:50%;top:44%;z-index:5;padding:6px 22px 4px;border:5px solid #FF4D5E;border-radius:14px;color:#FF4D5E;font:900 clamp(34px,5vw,54px)/1 var(--f-sans);letter-spacing:.06em;background:rgba(3,4,12,.82);box-shadow:inset 0 0 0 3px rgba(255,77,94,.35),0 0 50px rgba(255,77,94,.45);transform:translate(-50%,-50%) rotate(-11deg);display:none;opacity:0}
html[data-theme="light"] body.s-res .bstamp{background:rgba(255,255,255,.94);box-shadow:inset 0 0 0 3px rgba(215,38,61,.25);color:#D7263D;border-color:#D7263D}
body.s-res .fail .bstamp{display:block}
body.s-res .on.fail .bstamp{animation:bslam-res .5s cubic-bezier(.3,1.5,.5,1) .9s forwards}
@keyframes bslam-res{0%{opacity:0;transform:translate(-50%,-50%) rotate(-24deg) scale(2.8)}60%{opacity:1;transform:translate(-50%,-50%) rotate(-10deg) scale(.92)}100%{opacity:1;transform:translate(-50%,-50%) rotate(-11deg) scale(1)}}
body.s-res .shake{animation:shk-res .5s cubic-bezier(.36,.07,.19,.97)}
@keyframes shk-res{10%,90%{transform:translate(-1px,1px)}20%,80%{transform:translate(3px,-2px)}30%,50%,70%{transform:translate(-6px,3px)}40%,60%{transform:translate(6px,-3px)}}
body.s-res .vig{position:fixed;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse at center,transparent 45%,rgba(255,30,60,.22) 100%);opacity:0}
html[data-theme="light"] body.s-res .vig{background:radial-gradient(ellipse at center,transparent 50%,rgba(215,38,61,.14) 100%)}
body.s-res .res.fail.on ~ .vig{animation:vig-res 2.6s ease .8s forwards}
@keyframes vig-res{0%{opacity:0}15%{opacity:1}35%{opacity:.45}55%{opacity:1}100%{opacity:.7}}
body.s-res .confetti{position:fixed;inset:0;z-index:60;pointer-events:none;overflow:hidden}
body.s-res .confetti i{position:absolute;top:-24px;width:8px;height:14px;border-radius:2px;opacity:0;animation:fall-res var(--t) cubic-bezier(.25,.4,.55,1) var(--dl) forwards}
@keyframes fall-res{0%{opacity:1;transform:translate3d(0,0,0) rotate(0)}100%{opacity:1;transform:translate3d(var(--x),112vh,0) rotate(var(--r))}}
body.s-res .info{display:grid;gap:14px;min-width:0}
body.s-res .ttl{display:grid;gap:10px}
body.s-res .ttl .h1{font-size:clamp(34px,4.2vw,54px)}
body.s-res .ttl .t-sub{font-size:clamp(15.5px,1.35vw,18px);color:var(--text);line-height:1.5}
body.s-res .ttl .t-sub b{color:var(--text)}
body.s-res .ttl .t-serif{font-family:var(--f-serif);font-style:italic;font-size:clamp(20px,1.8vw,25px);line-height:1.25;color:var(--soft)}
body.s-res .fail .ttl .h1{color:var(--red)}
body.s-res .cards2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
body.s-res .box{padding:15px 16px;border-radius:17px;background:var(--card-grad);border:1px solid var(--line);box-shadow:var(--card-shadow);display:grid;gap:10px;align-content:start}
body.s-res .box .fine{font-weight:700;font-size:10.5px;letter-spacing:.16em;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-res .fail .box .fine{color:#FF8A95;text-shadow:0 0 10px rgba(255,110,125,.6)}
html[data-theme="light"] body.s-res .fail .box .fine{color:var(--red-text);text-shadow:none}
body.s-res .xpn{display:flex;align-items:baseline;gap:8px;font-weight:800;letter-spacing:-.04em;line-height:1}
body.s-res .xpn b{font-size:clamp(36px,3.6vw,46px);color:#BDEBFF;font-variant-numeric:tabular-nums;text-shadow:0 0 12px rgba(147,222,255,.9),0 0 32px rgba(56,198,244,.65),0 0 60px rgba(56,198,244,.3)}
body.s-res .xpn span{font:700 14px/1 var(--f-mono);letter-spacing:.08em;color:var(--acc);text-shadow:var(--lab-glow)}
body.s-res .fail .xpn b,body.s-res .fail .xpn span{color:#FF6B7A;text-shadow:0 0 12px rgba(255,77,94,.9),0 0 32px rgba(255,77,94,.6),0 0 60px rgba(255,77,94,.28)}
html[data-theme="light"] body.s-res .xpn b{color:var(--acc)}
html[data-theme="light"] body.s-res .fail .xpn b,html[data-theme="light"] body.s-res .fail .xpn span{color:var(--red)}
html[data-theme="light"] body.s-res .xpn span{text-shadow:none}
html[data-theme="light"] body.s-res .xpn b{text-shadow:none!important}
body.s-res .xptot{font:600 12px/1.3 var(--f-mono);color:var(--soft);letter-spacing:.04em;font-variant-numeric:tabular-nums}
body.s-res .xptot b{color:var(--text)}
body.s-res .brk{display:flex;flex-wrap:wrap;gap:5px}
body.s-res .brk{gap:6px}
body.s-res .brk .tag{font-size:10px;letter-spacing:.08em;padding:4px 9px}
body.s-res .rk-box{align-content:center;gap:12px}
body.s-res .rk-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
body.s-res .rk-b{display:inline-flex;align-items:center;gap:6px;font:800 12.5px/1 var(--f-mono);letter-spacing:.14em;text-transform:uppercase}
body.s-res .rk-b .i{width:18px;height:18px}
body.s-res .rk-b.a{color:#FFE7A0;text-shadow:0 0 10px rgba(255,210,63,.55)}
body.s-res .rk-b.n{color:var(--lab);text-shadow:var(--lab-glow)}
html[data-theme="light"] body.s-res .rk-b.a{text-shadow:none}
html[data-theme="light"] body.s-res .rk-b.a{color:#7A5200}
body.s-res .rk-bar{position:relative;height:10px;border-radius:9px;background:var(--panel3);overflow:visible}
body.s-res .rk-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:9px;background:linear-gradient(90deg,#38C6F4,#93DEFF);box-shadow:0 0 12px rgba(56,198,244,.6);transition:width 1.4s cubic-bezier(.3,.8,.3,1)}
body.s-res .rk-bar .gain{background:linear-gradient(90deg,#FFD23F,#FFF4B0);box-shadow:0 0 12px rgba(255,210,63,.6)}
body.s-res .fail .rk-bar .gain{background:#FF4D5E;box-shadow:0 0 12px rgba(255,77,94,.6)}
html[data-theme="light"] body.s-res .rk-bar i{box-shadow:none}
body.s-res .rk-bar u{position:absolute;left:0;top:-5px;bottom:-5px;width:2px;background:var(--text);opacity:.5;border-radius:2px}
body.s-res .rk-cap{font-size:14px;color:var(--text);line-height:1.4;font-weight:600}
body.s-res .rk-cap b{color:var(--text)}
body.s-res .floor{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text);font-weight:600}
body.s-res .floor .i{width:16px;height:16px;color:var(--gold);flex:none}
body.s-res .objs{list-style:none;margin:0;padding:0;display:grid;gap:9px}
body.s-res .objs li{display:grid;grid-template-columns:22px 1fr auto;gap:10px;align-items:center;font-size:13px;line-height:1.3;color:var(--soft)}
body.s-res .objs li .ck{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line2);color:transparent;transition:all .3s ease}
body.s-res .objs li .ck .i{width:13px;height:13px;stroke-width:3.2}
body.s-res .objs li.ok{color:var(--text)}
body.s-res .objs li.ok .ck{background:var(--fill);border-color:var(--fill);color:var(--on-fill);box-shadow:0 0 10px rgba(56,198,244,.7),0 0 22px rgba(56,198,244,.3)}
html[data-theme="light"] body.s-res .objs li.ok .ck{box-shadow:none}
body.s-res .objs li.ok.fresh .ck{animation:ckpop-res .5s cubic-bezier(.3,1.7,.5,1)}
@keyframes ckpop-res{0%{transform:scale(.3)}60%{transform:scale(1.25)}}
body.s-res .objs li .tag{font-size:9px}
body.s-res .badge{perspective:900px}
body.s-res .bcard{height:100%;display:grid;grid-template-columns:56px 1fr;gap:14px;align-items:center;padding:14px 16px;border-radius:18px;border:1.5px solid rgba(255,210,63,.85);background:linear-gradient(135deg,rgba(255,210,63,.16),rgba(255,210,63,.04));box-shadow:0 0 18px rgba(255,210,63,.4),0 0 44px rgba(255,210,63,.16),inset 0 0 18px rgba(255,210,63,.12);transform-origin:50% 50%;backface-visibility:hidden}
body.s-res .bcard .bdg svg{filter:drop-shadow(0 0 6px rgba(var(--mcr),.85)) drop-shadow(0 0 14px rgba(255,210,63,.45))}
html[data-theme="light"] body.s-res .bcard{box-shadow:none}
html[data-theme="light"] body.s-res .bcard .bdg svg{filter:none}
html[data-theme="light"] body.s-res .bcard{border-color:#B37400;background:#FFFAEB}
body.s-res .bcard.locked{border-color:rgba(147,222,255,.45);background:var(--card-grad);border-style:dashed;box-shadow:none}
body.s-res .bcard .fine{font-weight:700;color:var(--gold);text-shadow:0 0 10px rgba(255,210,63,.6)}
body.s-res .bcard.locked .fine{color:var(--lab);text-shadow:var(--lab-glow)}
html[data-theme="light"] body.s-res .bcard .fine{text-shadow:none}
body.s-res .bcard.missed{border-color:rgba(255,77,94,.85);background:linear-gradient(135deg,rgba(255,77,94,.15),rgba(255,77,94,.04));box-shadow:0 0 18px rgba(255,77,94,.4),0 0 44px rgba(255,77,94,.16),inset 0 0 18px rgba(255,77,94,.12)}
body.s-res .bcard.missed svg{filter:drop-shadow(0 0 8px rgba(255,77,94,.7))}
body.s-res .bcard.missed .fine{color:#FF8A95;text-shadow:0 0 10px rgba(255,110,125,.6)}
html[data-theme="light"] body.s-res .bcard.missed{box-shadow:none}
html[data-theme="light"] body.s-res .bcard.missed svg{filter:none}
html[data-theme="light"] body.s-res .bcard.missed .fine{color:var(--red-text);text-shadow:none}
html[data-theme="light"] body.s-res .bcard.missed{border-color:#D7263D;background:#FFF5F6}
body.s-res .bcard b{display:block;font-size:17px;font-weight:700;letter-spacing:-.015em;margin-top:5px}
body.s-res .bcard small{display:block;font-size:12.5px;line-height:1.4;color:var(--soft);margin-top:3px}
body.s-res .bcard svg{width:56px;height:56px}
body.s-res .bcard .bdg{--bs:60px}
body.s-res .bcard{grid-template-columns:60px 1fr}
body.s-res .on .bcard.flipin{animation:bflip-res .8s cubic-bezier(.3,1.4,.5,1) both;animation-delay:var(--bd,2.6s)}
@keyframes bflip-res{0%{opacity:0;transform:rotateY(-100deg) scale(.9)}100%{opacity:1;transform:none}}
body.s-res .acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
body.s-res .acts .btn{flex:1 1 auto}
body.s-res .fade-in{opacity:0;transform:translateY(10px)}
body.s-res .on .fade-in{animation:fin-res .6s ease forwards;animation-delay:var(--fd,0s)}
@keyframes fin-res{to{opacity:1;transform:none}}
@media (max-width:900px){
  body.s-res .res-grid{grid-template-columns:minmax(0,1fr)}
  body.s-res .stage{width:min(400px,92vw)}
  body.s-res .ttl{text-align:center;justify-items:center}
}
@media (max-width:560px){
  body.s-res .xp-t{display:none}
  body.s-res .cards2{grid-template-columns:minmax(0,1fr)}
  body.s-res .stage{width:min(340px,88vw)}
  body.s-res .ttl .h1{font-size:36px}
  body.s-res .acts .btn{width:100%}
}
html.rm body.s-res .trophy{transform:translateX(-50%) scale(1)}
html.rm body.s-res .star.got .pop,html.rm body.s-res .fade-in,html.rm body.s-res .bcard.flipin,html.rm body.s-res .chunk{opacity:1;transform:none}
html.rm body.s-res .chunk{transform:translate(8px,10px) rotate(9deg)}
html.rm body.s-res .crk{stroke-dashoffset:0}
html.rm body.s-res .fail .bstamp{opacity:1;transform:translate(-50%,-50%) rotate(-11deg)}
html.rm body.s-res .res.fail ~ .vig{opacity:.7}
html.rm body.s-res .rays .rw,html.rm body.s-res .gring .rot{animation:none}
html.rm body.s-res .stage,html.rm body.s-res .info{animation:fadeOnly-res .6s ease both}
@keyframes fadeOnly-res{from{opacity:0}}

/* ===================== certificate.html ===================== */
body.s-cert .cpage{position:relative;z-index:2;padding:clamp(22px,4.5vh,44px) 0 56px}
body.s-cert .c-head{display:grid;justify-items:center;text-align:center;gap:12px;margin-bottom:clamp(18px,3.5vh,28px)}
body.s-cert .c-how{display:flex;align-items:flex-start;gap:9px;max-width:560px;font-size:13.5px;line-height:1.55;color:var(--soft);text-align:left}
body.s-cert .c-how .i{width:16px;height:16px;flex:none;margin-top:2px;color:var(--lab)}
body.s-cert .c-stage{position:relative;max-width:1040px;margin:0 auto}
body.s-cert .c-acts{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:clamp(18px,3vh,26px)}
body.s-cert .c-acts .btn[disabled]{opacity:.4;pointer-events:none}
body.s-cert .c-note{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:12px;text-align:center}
body.s-cert .c-note .i{width:13px;height:13px}
body.s-cert .cert{position:relative;container-type:inline-size;border-radius:22px;overflow:hidden;
  background:radial-gradient(70% 90% at 78% 40%,rgba(56,198,244,.12),transparent 70%),radial-gradient(60% 80% at 0% 100%,rgba(130,80,255,.08),transparent 70%),linear-gradient(160deg,#101C38 0%,#0A1226 55%,#070B18 100%);
  border:1px solid rgba(147,222,255,.55);box-shadow:0 0 0 1px rgba(3,4,12,.9),0 0 46px rgba(56,198,244,.16),0 30px 80px rgba(0,0,0,.55)}
body.s-cert .cert-frame{position:absolute;inset:1.3cqw;border:1px solid rgba(255,210,63,.42);border-radius:14px;pointer-events:none}
body.s-cert .cert-frame::after{content:"";position:absolute;inset:.55cqw;border:1px solid rgba(255,210,63,.18);border-radius:10px}
body.s-cert .cert-frame i{position:absolute;width:2.6cqw;height:2.6cqw;border:1px solid rgba(255,210,63,.6);border-radius:50%;background:#0A1226}
body.s-cert .cert-frame i::after{content:"";position:absolute;inset:28%;border-radius:50%;background:rgba(255,210,63,.75)}
body.s-cert .cert-frame i:nth-child(1){left:-1.3cqw;top:-1.3cqw}
body.s-cert .cert-frame i:nth-child(2){right:-1.3cqw;top:-1.3cqw}
body.s-cert .cert-frame i:nth-child(3){left:-1.3cqw;bottom:-1.3cqw}
body.s-cert .cert-frame i:nth-child(4){right:-1.3cqw;bottom:-1.3cqw}
body.s-cert .cert-wm{position:absolute;left:-6cqw;bottom:-14cqw;width:46cqw;height:46cqw;opacity:.06;pointer-events:none}
body.s-cert .cert-wm *{fill:none;stroke:#93DEFF;stroke-width:.6}
body.s-cert .cert-in{position:relative;display:grid;grid-template-columns:minmax(0,1.32fr) minmax(0,1fr);align-items:center;gap:3cqw;padding:5.2cqw 5.6cqw 4.6cqw}
body.s-cert .ct-main,body.s-cert .ct-lock{grid-area:1 / 1}
body.s-cert .ct-main{display:grid;gap:1.6cqw;align-content:start;min-width:0}
body.s-cert .ct-top{display:flex;align-items:center;gap:1.5cqw}
body.s-cert .ct-top img{width:5cqw;height:5cqw;border-radius:1.1cqw}
body.s-cert .ct-brand{font:700 1.25cqw/1.3 var(--f-mono);letter-spacing:.2em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-cert .ct-brand b{display:block;color:#FFE7A0;font-weight:700;text-shadow:0 0 10px rgba(255,210,63,.55)}
body.s-cert .ct-award{margin-top:1.6cqw;font:700 1.15cqw/1 var(--f-mono);letter-spacing:.22em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-cert .ct-name{font-family:var(--f-serif);font-style:italic;font-weight:400;font-size:8.4cqw;line-height:.95;letter-spacing:-.01em;color:#fff;text-shadow:0 0 18px rgba(147,222,255,.45),0 0 44px rgba(56,198,244,.2);overflow-wrap:anywhere}
body.s-cert .ct-line{font-size:1.7cqw;line-height:1.5;color:var(--soft);max-width:36em}
body.s-cert .ct-line b{color:#fff;font-weight:600}
body.s-cert .ct-skills{list-style:none;margin:.6cqw 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:1.05cqw 2.4cqw}
body.s-cert .ct-skills li{display:flex;align-items:center;gap:1cqw;font-size:1.55cqw;line-height:1.25;font-weight:600;color:#fff}
body.s-cert .ct-skills li i{display:grid;place-items:center;flex:none;width:2.2cqw;height:2.2cqw;border-radius:50%;background:var(--mc);box-shadow:0 0 1cqw rgba(var(--mcr),.7)}
body.s-cert .ct-skills li i svg{width:62%;height:62%;fill:none;stroke:#03040C;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
body.s-cert .ct-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:2cqw;margin-top:1.8cqw;padding-top:1.8cqw;border-top:1px solid rgba(147,222,255,.2)}
body.s-cert .ct-date{display:grid;gap:.6cqw}
body.s-cert .ct-date span{font:700 1.05cqw/1 var(--f-mono);letter-spacing:.2em;text-transform:uppercase;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-cert .ct-date b{font-size:1.7cqw;font-weight:600;color:#fff}
body.s-cert .ct-by{display:flex;align-items:center;gap:1cqw;font-size:1.45cqw;color:#fff;white-space:nowrap}
body.s-cert .ct-by img{width:2.9cqw;height:2.9cqw;border-radius:.7cqw}
body.s-cert .ct-by strong{font-weight:600;letter-spacing:.42em;margin-right:-.42em;color:#93DEFF;text-shadow:0 0 10px rgba(147,222,255,.75),0 0 22px rgba(56,198,244,.4)}
body.s-cert .ct-seal{display:grid;justify-items:center;gap:1.2cqw;min-width:0}
body.s-cert .seal{--sw:36cqw;position:relative;width:var(--sw);height:var(--sw)}
body.s-cert .seal > svg.ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
body.s-cert .ring .r1{fill:none;stroke:rgba(255,210,63,.75);stroke-width:.7}
body.s-cert .ring .r2{fill:none;stroke:rgba(255,210,63,.35);stroke-width:.5}
body.s-cert .ring .tk{stroke:rgba(255,210,63,.55);stroke-width:.55}
body.s-cert .ring .fl{fill:none;stroke:rgba(147,222,255,.1);stroke-width:.45}
body.s-cert .ring text{font:700 6.4px var(--f-mono);letter-spacing:1.65px;fill:#FFE7A0;text-transform:uppercase}
body.s-cert .seal-meta{position:absolute;left:50%;top:50%;width:44%;height:44%;transform:translate(-50%,-50%)}
body.s-cert .seal-meta .meta{width:100%;height:100%}
body.s-cert .seal-b{position:absolute;--bs:calc(var(--sw) * .17);width:var(--bs);height:var(--bs);margin:calc(var(--bs) / -2) 0 0 calc(var(--bs) / -2)}
body.s-cert .ct-seal > b{font:700 1.2cqw/1 var(--f-mono);letter-spacing:.3em;margin-right:-.3em;text-transform:uppercase;color:var(--gold);text-shadow:0 0 12px rgba(255,210,63,.6)}
body.s-cert .ct-lock{position:relative;z-index:2;display:none;align-self:center;justify-self:center;width:min(100%,30em);padding:2.4cqw 2.6cqw;border-radius:18px;text-align:center;background:rgba(8,13,28,.94);border:1px solid rgba(255,160,60,.6);box-shadow:0 0 30px rgba(255,160,60,.16),0 20px 50px rgba(0,0,0,.5);gap:1.1cqw;justify-items:center}
body.s-cert .ct-lock .lk{display:grid;place-items:center;width:4.4cqw;height:4.4cqw;min-width:36px;min-height:36px;border-radius:50%;border:1.5px solid rgba(255,160,60,.75);color:var(--amber);box-shadow:0 0 16px rgba(255,160,60,.35)}
body.s-cert .ct-lock .lk .i{width:48%;height:48%}
body.s-cert .ct-lock h2{font-weight:600;font-size:max(17px,2.3cqw);letter-spacing:-.015em;line-height:1.2}
body.s-cert .ct-lock p{font-size:max(13px,1.5cqw);line-height:1.5;color:var(--soft)}
body.s-cert .ct-lock .tag{margin-top:.2cqw}
body.s-cert .ct-lock .btn{margin-top:.6cqw}
body.s-cert .cert.is-locked .ct-main{opacity:.16;pointer-events:none}
body.s-cert .cert.is-locked .ct-lock{display:grid}
body.s-cert .cert.is-locked .ct-seal > b{color:var(--lab);text-shadow:var(--lab-glow)}
@container (max-width:680px){
  body.s-cert .cert-in{grid-template-columns:minmax(0,1fr);padding:30px 22px 26px;gap:18px}
  body.s-cert .ct-seal{grid-row:1}
  body.s-cert .ct-main,body.s-cert .ct-lock{grid-area:2 / 1}
  body.s-cert .seal{--sw:min(250px,74cqw)}
  body.s-cert .ct-seal > b{font-size:10px}
  body.s-cert .ct-main{gap:10px;justify-items:center;text-align:center}
  body.s-cert .ct-top{flex-direction:column;gap:8px}
  body.s-cert .ct-top img{width:40px;height:40px;border-radius:10px}
  body.s-cert .ct-brand{font-size:10px}
  body.s-cert .ct-award{margin-top:4px;font-size:9.5px}
  body.s-cert .ct-name{font-size:52px}
  body.s-cert .ct-line{font-size:13.5px}
  body.s-cert .ct-skills{grid-template-columns:minmax(0,1fr);gap:8px;margin-top:6px;text-align:left;justify-self:center;width:fit-content;max-width:100%}
  body.s-cert .ct-skills li{font-size:13.5px;gap:10px}
  body.s-cert .ct-skills li i{width:20px;height:20px}
  body.s-cert .ct-foot{flex-direction:column;align-items:center;gap:12px;margin-top:10px;padding-top:14px;width:100%}
  body.s-cert .ct-date{justify-items:center;gap:5px}
  body.s-cert .ct-date span{font-size:9.5px}
  body.s-cert .ct-date b{font-size:14px}
  body.s-cert .ct-by{font-size:12px;gap:8px}
  body.s-cert .ct-by img{width:24px;height:24px;border-radius:6px}
  body.s-cert .cert-frame{inset:9px}
  body.s-cert .cert-frame::after{inset:4px}
  body.s-cert .cert-frame i{width:16px;height:16px}
  body.s-cert .cert-frame i:nth-child(1){left:-8px;top:-8px}
  body.s-cert .cert-frame i:nth-child(2){right:-8px;top:-8px}
  body.s-cert .cert-frame i:nth-child(3){left:-8px;bottom:-8px}
  body.s-cert .cert-frame i:nth-child(4){right:-8px;bottom:-8px}
  body.s-cert .ct-lock{padding:18px 16px;gap:8px}
  body.s-cert .ct-lock .lk{width:40px;height:40px}
}
html[data-theme="light"] body.s-cert .cert{background:#fff;border-color:#C5D8E9;box-shadow:0 1px 2px rgba(10,26,51,.08),0 24px 60px rgba(10,26,51,.14)}
html[data-theme="light"] body.s-cert .cert-frame{border-color:#B98A1E}
html[data-theme="light"] body.s-cert .cert-frame::after{border-color:rgba(185,138,30,.4)}
html[data-theme="light"] body.s-cert .cert-frame i{background:#fff;border-color:#B98A1E}
html[data-theme="light"] body.s-cert .cert-frame i::after{background:#B98A1E}
html[data-theme="light"] body.s-cert .cert-wm *{stroke:#0874A6}
html[data-theme="light"] body.s-cert .ct-top img,html[data-theme="light"] body.s-cert .ct-by img{background:#0B1122}
html[data-theme="light"] body.s-cert .ct-brand b{color:#8A5A00;text-shadow:none}
html[data-theme="light"] body.s-cert .ct-name{color:#0A1A33;text-shadow:none}
html[data-theme="light"] body.s-cert .ct-line b,html[data-theme="light"] body.s-cert .ct-skills li,html[data-theme="light"] body.s-cert .ct-date b,html[data-theme="light"] body.s-cert .ct-by{color:#0A1A33}
html[data-theme="light"] body.s-cert .ct-skills li i{box-shadow:none}
html[data-theme="light"] body.s-cert .ct-skills li i svg{stroke:#fff}
html[data-theme="light"] body.s-cert .ct-foot{border-top-color:#D3E1EE}
html[data-theme="light"] body.s-cert .ct-by strong{color:#0874A6;text-shadow:none}
html[data-theme="light"] body.s-cert .ring .r1{stroke:#B98A1E}
html[data-theme="light"] body.s-cert .ring .r2{stroke:rgba(185,138,30,.45)}
html[data-theme="light"] body.s-cert .ring .tk{stroke:rgba(185,138,30,.7)}
html[data-theme="light"] body.s-cert .ring .fl{stroke:rgba(8,116,166,.14)}
html[data-theme="light"] body.s-cert .ring text{fill:#8A5A00}
html[data-theme="light"] body.s-cert .ct-seal > b{color:#8A5A00;text-shadow:none}
html[data-theme="light"] body.s-cert .ct-lock{background:rgba(255,255,255,.96);border-color:#C47A12;box-shadow:0 14px 34px rgba(10,26,51,.16)}
html[data-theme="light"] body.s-cert .ct-lock .lk{box-shadow:none}
html.paper body.s-cert{background:#E9EEF3}
html.paper body.s-cert .bgfx{display:none}
html.paper body.s-cert .cert{border-radius:4px;border-color:#D9E3EC;box-shadow:0 2px 6px rgba(10,26,51,.1),0 18px 50px rgba(10,26,51,.12)}
html.paper body.s-cert .cert-frame{border-radius:3px}
html.paper body.s-cert .cert-frame::after{border-radius:2px}
@page{size:landscape;margin:10mm}
@media print{
  html body.s-cert,body.s-cert{background:#fff!important}
  body.s-cert .hdr,body.s-cert .bgfx,body.s-cert .c-head,body.s-cert .c-acts,body.s-cert .c-note,body.s-cert .toast,body.s-cert .tipbox,body.s-cert .sheet{display:none!important}
  body.s-cert .cpage{padding:0}
  body.s-cert .cpage .wrap{max-width:none;padding:0}
  body.s-cert .c-stage{max-width:none}
  body.s-cert .cert{height:186mm;border-radius:0;box-shadow:none!important;border:0;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.s-cert .cert-in{height:100%}
  body.s-cert .ct-skills li i{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
@media (max-width:560px){
  body.s-cert .c-how{font-size:13px}
  body.s-cert .c-acts .btn{flex:1 1 auto}
}

/* ===================== additions for the real app (not in the mockups) ===================== */
/* menu */
body.s-menu .sec-tight{padding-top:0}
body.s-menu .sec-inc{padding-top:clamp(20px,4vh,40px)}
body.s-menu .cst-node.fade small{color:var(--amber);text-shadow:0 0 8px rgba(255,160,60,.55)}
html[data-theme="light"] body.s-menu .cst-node.fade small{text-shadow:none}
body.s-menu .hdr--menu .lk-logo,body.s-menu .foot-brand img{object-fit:cover}
/* family */
body.s-family .head-tight{margin-bottom:8px}
body.s-family .fam-stage{min-height:120px}
body.s-family .fam-stage .swipe-actions{padding-bottom:0}
body.s-family .fb{position:relative;z-index:3}
body.s-family .rmv[disabled]{opacity:.35}
/* modules deck */
body.s-cards .chal-p{margin-left:auto;font:700 9.5px/1 var(--f-mono);letter-spacing:.06em;color:var(--lab);text-shadow:var(--lab-glow)}
body.s-cards .xlinks{display:flex;flex-wrap:wrap;gap:6px}
body.s-cards .xlinks .flipb{height:28px}
body.s-cards .play.is-locked{opacity:.6;cursor:default;transform:none}
body.s-cards .play.is-locked:hover{transform:none}
/* round */
body.s-round .hdr .segs{padding-top:2px}
body.s-round .hdr .timer{max-width:calc(1360px + 2*var(--gut));margin:0 auto 8px;height:3px;border-radius:3px}
body.s-round .hud-q .lives{display:flex;gap:3px;color:var(--red)}
body.s-round .hud-q .lives .i{width:15px;height:15px}
body.s-round .hud-q .lives .i.lost{opacity:.22}
body.s-round .rwrap{position:relative;z-index:2;max-width:calc(680px + 2*var(--gut));padding-top:clamp(16px,3vh,30px);padding-bottom:56px}
body.s-round .rwrap:has(.stage.wide){max-width:calc(1040px + 2*var(--gut))}
body.s-round .q-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.s-round .q-top .icon-btn{margin-left:auto;width:34px;height:34px}
body.s-round .q-ask{margin:12px 0 16px;font-weight:600;font-size:clamp(22px,2.4vw,30px);line-height:1.15;letter-spacing:-.02em}
body.s-round .stage.shake{animation:shake-round .5s cubic-bezier(.36,.07,.19,.97)}
body.s-round .rules{margin-top:22px}
body.s-round .why.dock{position:fixed;left:50%;bottom:0;z-index:150;width:min(720px,100%);transform:translateX(-50%);margin:0;max-height:min(68vh,560px);overflow:auto;border-radius:22px 22px 0 0;border-bottom:0;padding:18px 20px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -24px 60px rgba(0,0,0,.55);animation:whyUp .38s cubic-bezier(.2,1.1,.4,1)}
html[data-theme="light"] body.s-round .why.dock{box-shadow:0 -14px 40px rgba(10,26,51,.18)}
body.s-round .why.dock.good{border-top:2px solid var(--acc)}
body.s-round .why.dock.bad{border-top:2px solid var(--red)}
@keyframes whyUp{from{transform:translate(-50%,100%)}}
body.why-open .rwrap{padding-bottom:min(60vh,460px)}
body.s-round .why-p{font-size:14.5px;line-height:1.55;color:var(--text)}
body.s-round .flags li .flag-jump{display:block;padding:0;border:0;background:none;cursor:pointer}
body.s-round .flag-hint{font-size:12.5px;color:var(--soft)}
body.s-round .why-b .btn{min-width:200px}
@media (max-width:560px){body.s-round .why-b .btn{width:100%}body.s-round .q-ask{font-size:22px}}
/* daily done, broken quiz link */
body .daily-done{position:relative;z-index:2;padding:clamp(28px,7vh,72px) 0 56px}
body .dd-card{max-width:560px;margin:0 auto;padding:clamp(22px,4vw,34px);border-radius:24px;display:grid;justify-items:center;text-align:center;gap:14px}
body .dd-card .lede{margin:0 auto;font-size:15px}
body .dd-card .lede b{color:var(--text)}
body .dd-acts{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:6px}
/* results */
body.s-res .bcard{text-align:left;width:100%;color:var(--text)}
body.s-res button.bcard{cursor:pointer;font:inherit}
body.s-res .rk-bar u{left:0}
/* review sheet */
.rv-list{margin:6px 0 0;padding-left:20px;display:grid;gap:14px}
.rv-list > li b{font-weight:600;margin-right:8px}
.rv-list > li p{margin-top:6px;font-size:13.5px;line-height:1.55;color:var(--soft)}
.rv-list > li ul{margin:6px 0 0;padding-left:18px;font-size:13px;color:var(--soft)}
/* legacy screens (Password Lab, Quiz Workshop) under the new header */
body.s-legacy .screen{padding-top:22px}
/* printing the certificate */
@media print{body.s-cert .bgfx,body.s-cert .skip{display:none!important}}

/* the password scene on the module card shares class names with the Password123 game: reset the game's look here */
body.s-cards .sc .meter{display:block;padding:0;gap:0;border:0;align-items:initial}
body.s-cards .sc .pw{font-family:inherit;font-size:inherit;overflow-wrap:normal}
body.s-family .fam-stage > .btn:last-child,body.s-family .fam-stage > .callout:last-child{margin-bottom:0}

/* ===================== phone pass (owner's review, 2026-11-13) ===================== */
/* the games kept big bottom spacers from the old fixed answer panel: the docked "why" panel handles that now */
:is(body.s-round,body.s-family) .swipe-actions,:is(body.s-round,body.s-family) .rf-actions,:is(body.s-round,body.s-family) .pw-pair,:is(body.s-round,body.s-family) .kid-opts{padding-bottom:0}
:is(body.s-round,body.s-family) .vault-stage > .btn.block,:is(body.s-round,body.s-family) .phone-dev,:is(body.s-round,body.s-family) .stage > .callout:last-child,:is(body.s-round,body.s-family) .stage > .btn:last-child{margin-bottom:0}
:is(body.s-round,body.s-family) .dossier{margin-bottom:0}
/* Stay Safe Online: flat answer cards like Real / Scam (no chunky 3D edge) */
:is(body.s-round,body.s-family) .kid-bubble{font-size:17px;font-weight:600;border:1.5px solid var(--line2);border-radius:20px 20px 20px 6px;background:var(--card-grad);box-shadow:none}
:is(body.s-round,body.s-family) .kid-bubble p + p{font-size:15.5px}
:is(body.s-round,body.s-family) .kid-opt{min-height:58px;padding:12px 18px;border-radius:16px;border:1.5px solid var(--line2);background:var(--card-grad);box-shadow:none;font-size:16.5px;font-weight:700;color:var(--text)}
:is(body.s-round,body.s-family) .kid-opt:hover{border-color:var(--acc)}
:is(body.s-round,body.s-family) .kid-opt:active{transform:scale(.98);box-shadow:none}
:is(body.s-round,body.s-family) .kid-opt.right{background:var(--fill);border-color:var(--fill);color:var(--on-fill);box-shadow:0 0 24px rgba(56,198,244,.35)}
:is(body.s-round,body.s-family) .kid-opt.wrong{border-color:var(--red);background:rgba(255,77,94,.14);box-shadow:none}
html[data-theme="light"] :is(body.s-round,body.s-family) .kid-opt.right{box-shadow:none}
html[data-theme="light"] :is(body.s-round,body.s-family) .kid-opt.wrong{background:#FDECEE}
/* 18+ and Under 18: the scenario card without the cartoon guide */
.kids-plain .kid-top{display:block}
.kids-plain .kid-bubble{border-radius:18px;font-weight:600}
@media (max-width:560px){
  /* phones: the fake phone loses its own status bar, notch and home bar, and only takes the room it needs */
  :is(body.s-round,body.s-family) .ph-status,:is(body.s-round,body.s-family) .ph-home{display:none}
  :is(body.s-round,body.s-family) .phone-dev{border-radius:20px}
  :is(body.s-round,body.s-family) .ph-screen{border-radius:20px;min-height:0}
  :is(body.s-round,body.s-family) .call-phone .ph-screen{min-height:min(600px,calc(100dvh - 210px))}
  :is(body.s-round,body.s-family) .ms-thread{max-height:none}
  /* smaller game text and buttons (tap targets stay 44px+, typing boxes stay 16px so iPhones don't zoom) */
  :is(body.s-round,body.s-family) .btn.choice{min-height:52px;font-size:15.5px;border-radius:14px}
  :is(body.s-round,body.s-family) .btn.choice svg{width:19px;height:19px}
  :is(body.s-round,body.s-family) .btn.big{min-height:48px;font-size:14.5px;padding:12px 20px}
  :is(body.s-round,body.s-family) .reply{min-height:46px;font-size:14.5px;padding:9px 14px}
  :is(body.s-round,body.s-family) .bubble{font-size:15px}
  :is(body.s-round,body.s-family) .net-name b{font-size:15px}
  :is(body.s-round,body.s-family) .kid-bubble{font-size:16px;padding:12px 14px}
  :is(body.s-round,body.s-family) .kid-bubble p + p{font-size:14.5px}
  :is(body.s-round,body.s-family) .kid-opt{min-height:54px;font-size:15.5px;padding:11px 16px}
  :is(body.s-round,body.s-family) .tile{font-size:14px;min-height:44px}
  body.s-round .q-ask{font-size:20px;margin:10px 0 12px}
  body.s-res .ttl .h1{font-size:30px}
  body.s-family .prow input{font-size:16px}
  .st-name{font-size:16px}
}
/* home on phones: tighter gap above "What you'll learn"; the case's message screen before "Money lost";
   decorative ring and background animations rest so scrolling stays smooth */
@media (max-width:720px){
  body.s-menu .hero{padding-bottom:28px}
  body.s-menu .learn-sec{padding-top:26px}
  body.s-menu .inc-l{display:contents}
  body.s-menu .inc-hd{order:1}
  body.s-menu .inc-l > div:not([class]){order:2}
  body.s-menu .inc-l > .inc-reveal{order:3}
  body.s-menu .scr{order:4}
  body.s-menu .inc-out{order:5;margin-top:0}
  body.s-menu .g-rings .sol-g,body.s-menu .g-rings .lace-g,body.s-menu .g-rings .tick-g,body.s-menu .g-rings .lt,body.s-menu .g-rings .lth{animation:none}
  body.s-menu .pt-img,body.s-menu .pt-img i,body.s-menu .pt-disc{animation:none}
  .bgfx .lt,.bgfx .lh,.bg-stars .tw{animation:none}
}
/* module deck: lighter while you drag, and on phones the card sizes itself so the arrows and dots stay on screen */
body.s-cards .deck.dragging .dface{box-shadow:none}
body.s-cards .deck.dragging .dcard::after{transition:none}
body.s-cards .deck.dragging .sc *{animation-play-state:paused}
@media (max-width:560px){
  body.s-cards .page{gap:8px;padding-top:10px;padding-bottom:12px}
  body.s-cards .progrow{gap:8px}
  body.s-cards .prog-stats .stat{height:25px;font-size:9.5px;padding:0 9px 0 8px}
  body.s-cards .deck-wrap{--ch:clamp(440px,calc(100svh - 300px),516px);--sh:clamp(120px,calc(var(--ch) - 352px),184px);padding-top:4px}
  body.s-cards .dback .cb{overflow-y:auto;overscroll-behavior:contain}
  body.s-cards .scene{container-type:size;container-name:scene}
  body.s-cards .sc{transform:scale(.92);margin-top:-86px}
}
@container scene (max-height:169px){body.s-cards .sc{transform:scale(.84)}}
@container scene (max-height:149px){body.s-cards .sc{transform:scale(.74)}}
/* short phones: the rank / XP / streak pills give way so the whole card, arrows and dots fit */
@media (max-width:560px) and (max-height:760px){
  body.s-cards .prog-stats{display:none}
  body.s-cards .deck-wrap{--ch:clamp(440px,calc(100svh - 263px),516px)}
  body.s-cards .back-art{height:72px}
  body.s-cards .back-art .bdg{--bs:58px}
}
/* the Real / Scam style answer buttons keep their own size (they also carry .big) */
@media (max-width:560px){:is(body.s-round,body.s-family) .btn.big.choice{min-height:52px;font-size:15.5px;padding:0 16px;border-radius:14px}}
/* Team: a full-brightness card (not a mode you pick); its button opens the contact page */
body.s-modes .mode.team{cursor:default}
body.s-modes .mode.team:hover{transform:none;border-color:var(--line)}
/* cases on phones: "How to spot it" sits under the message screen */
@media (max-width:720px){
  body.s-menu .scr{order:3}
  body.s-menu .inc-l > .inc-reveal{order:4}
}
/* spacing: one consistent set of gaps (10px between stacked buttons, 8px inside cards, 24px between groups) */
body.s-menu .mmenu{gap:10px}
body.s-menu .mm-out{margin-top:8px}
:is(body.s-round,body.s-family) .ms-suggest,:is(body.s-round,body.s-family) .call-opts,:is(body.s-round,body.s-family) .kid-opts{gap:10px}
:is(body.s-round,body.s-family) .swipe-actions,:is(body.s-round,body.s-family) .pw-pair{gap:10px}
body.s-round .rules{margin-top:24px}
body.s-modes .m-chips{gap:8px}
@media (max-width:560px){
  body.s-modes .m-b{gap:8px}
  body.s-modes .modes{gap:14px}
  body.s-menu .skl{gap:10px}
  body.s-menu .facts{gap:8px 16px}
  body.s-cards .yl{gap:5px}
  body.s-family .plist{gap:10px}
  body.s-family .opt{margin-top:18px}
  body.s-res .cards2,body.s-res .info{gap:14px}
}
/* visible breathing room on phones (owner's review): Modules page and Choose mode cards */
@media (max-width:560px){
  body.s-cards .page{gap:12px;padding-top:14px}
  body.s-cards .progrow{gap:12px}
  body.s-cards .skills{gap:10px}
  body.s-cards .mini8{gap:6px}
  body.s-cards .prog-stats{gap:8px}
  body.s-cards .ctrl{gap:18px}
  body.s-modes .modes{gap:16px}
  body.s-modes .mode{padding:18px 16px;gap:14px}
  body.s-modes .m-b{gap:10px}
  body.s-modes .m-b p{line-height:1.6}
  body.s-modes .m-chips{margin-top:6px;gap:8px}
  body.s-modes .head{margin-bottom:24px}
}

/* ===================== module cards: more line spacing, text a touch smaller (owner's review) ===================== */
/* flipping: each face is hidden while it faces away, so nothing from the front shows through on phones */
body.s-cards .dface{transition:visibility 0s linear .32s}
body.s-cards .dcard.flipped .front,body.s-cards .dcard:not(.flipped) .dback{visibility:hidden}
html.rm body.s-cards .dface{transition:none}
/* card size: a little taller on computers so the extra spacing fits */
@media (min-width:561px){
  body.s-cards .deck-wrap{--ch:clamp(540px,calc(100svh - 236px),600px);--sh:clamp(184px,calc(var(--ch) - 392px),204px)}
}
body.s-cards .cb{container-type:size;container-name:cardbody;gap:10px;padding:16px 18px 16px}
body.s-cards .cb-name{font-size:19px;line-height:1.22;margin-top:4px}
body.s-cards .cb-prom{font-size:13.5px;line-height:1.55}
body.s-cards .cb-why{font-size:12.5px;line-height:1.7}
body.s-cards .cb-lab{margin-top:6px}
body.s-cards .yl{gap:9px}
body.s-cards .yl li{font-size:12.5px;line-height:1.55;gap:10px}
body.s-cards .yl li::before{margin-top:7px}
body.s-cards .meta-l{padding-top:10px}
/* back */
body.s-cards .dback .cb{gap:12px;overflow-y:auto;overscroll-behavior:contain;padding:16px 18px 16px}
body.s-cards .dback .cb-top{align-items:flex-start;gap:10px}
body.s-cards .dback .cb-num{line-height:1.5;letter-spacing:.12em;padding-top:5px}
body.s-cards .dback h3{font-size:15.5px;line-height:1.3;margin-top:4px}
body.s-cards .chal{gap:10px}
body.s-cards .chal li{font-size:12.5px;line-height:1.45;gap:10px}
body.s-cards .learn{gap:9px}
body.s-cards .learn li{font-size:12.5px;line-height:1.55;gap:10px}
body.s-cards .rew{margin-top:2px}
body.s-cards .xlinks{gap:8px}
@media (max-width:560px){
  body.s-cards .cb{gap:9px;padding:14px 15px 14px}
  body.s-cards .cb-name{font-size:17px}
  body.s-cards .cb-prom{font-size:13px}
  body.s-cards .cb-why{font-size:12px;line-height:1.65}
  body.s-cards .yl{gap:8px}
  body.s-cards .yl li{font-size:12px}
  body.s-cards .dback .cb{gap:11px;padding:14px 15px 14px}
  body.s-cards .dback h3{font-size:15px}
  body.s-cards .chal li,body.s-cards .learn li{font-size:12px}
  body.s-cards .deck-wrap{--sh:clamp(120px,calc(var(--ch) - 376px),184px)}
}
/* when a card is short (small screens), the description drops out first, then the "You'll learn to" label, then the list,
   so the Play button never gets cut off. Thresholds measured on every card, with a margin for narrow phones. */
@media (min-width:561px){
  @container cardbody (max-height:358px){body.s-cards .cb-why{display:none}}
  @container cardbody (max-height:310px){body.s-cards .cb-lab{display:none}}
}
@media (max-width:560px){
  @container cardbody (max-height:340px){body.s-cards .cb-why{display:none}}
  @container cardbody (max-height:300px){body.s-cards .cb-lab{display:none}}
  @container cardbody (max-height:280px){body.s-cards .yl{display:none}}
}
body.s-cards .back-art{height:88px}
body.s-cards .back-art .bdg{--bs:70px}
