/* VOICE: sfacciato, da cabinato arcade, ironia da ufficio-gangster
   IDEA: un cabinato a gettoni: inseguimento al tramonto in una città costiera, ma gli ostacoli sono ticket del gestionale
   PICTURE: il gioco a tutta larghezza, eroe illustrato con contorni spessi e cel shading, città a strati
   COLOUR and TYPE: asfalto notturno, tramonto corallo/oro, verde contanti; Anton per titoli e HUD, Archivo per testo e ticket
   LAYOUT: titolo sopra, cabinato al centro, comandi e legenda sotto; su mobile pulsanti grandi */
:root{color-scheme:dark;--bg:#121216;--ink:#f2efe8;--muted:#a9a49b;--cash:#ffd84a;--coral:#ff6b4a;--gold:#ffc23d}
*{box-sizing:border-box;min-width:0}
body{margin:0;background:radial-gradient(1200px 500px at 50% -10%,#2a1c2e,transparent),var(--bg);color:var(--ink);font:16px/1.55 Archivo,system-ui,sans-serif;overflow-x:clip;min-height:100vh}
.band{padding:clamp(18px,3vw,40px) max(4vw,12px);max-width:1240px;margin:0 auto}
header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
h1{font:400 clamp(36px,6vw,56px)/1.05 Anton,Impact,sans-serif;margin:0;letter-spacing:.5px;color:#fff;
  text-shadow:3px 3px 0 #000,-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000}
h1 span{color:var(--gold)}
header p{margin:4px 0 0;color:var(--muted);max-width:56ch}
.side{display:flex;gap:10px 14px;align-items:center;flex-wrap:wrap}
.rec{font:400 22px Anton,Impact,sans-serif;color:var(--cash);text-shadow:2px 2px 0 #000;white-space:nowrap}
.rec small{display:block;font:600 13px Archivo,sans-serif;color:var(--muted);text-shadow:none}
.cab{position:relative;border-radius:16px;padding:10px;background:linear-gradient(#2c2a35,#17161c);box-shadow:0 0 0 2px #000,0 24px 60px rgba(0,0,0,.65),inset 0 1px 0 rgba(255,255,255,.09)}
.screen{position:relative;aspect-ratio:800/320;border-radius:9px;overflow:hidden;background:#140f1c;touch-action:none;user-select:none;-webkit-user-select:none}
canvas{position:absolute;inset:0;width:100%;height:100%;transition:filter .6s}
.ov{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:12px}
.ov[hidden]{display:none}
.ov.start{background:linear-gradient(rgba(10,10,14,.05),rgba(10,10,14,.6))}
.ov .big{font:400 clamp(30px,8vw,84px)/1 Anton,Impact,sans-serif;color:#fff;text-shadow:4px 4px 0 #000,-2px -2px 0 #000,2px -2px 0 #000,-2px 2px 0 #000}
.ov .big span{color:var(--gold)}
.ov .big.gold{color:var(--gold)}.ov .sub b{color:#fff;font-size:1.35em}.ov.winov{background:radial-gradient(ellipse at center,rgba(255,200,80,.18),rgba(10,8,16,.55))}
.ov .big.red{color:#c8231d;letter-spacing:2px}
.ov .sub{font:400 clamp(15px,2.4vw,22px) Anton,Impact,sans-serif;color:var(--gold);text-shadow:2px 2px 0 #000}
.ov .hint{font-weight:600;color:#fff;text-shadow:1px 1px 0 #000;font-size:clamp(13px,2vw,16px);max-width:60ch}
.ov.dead{background:rgba(0,0,0,.28)}
.btn{font:400 18px Anton,Impact,sans-serif;letter-spacing:.5px;border:0;border-radius:10px;padding:10px 22px;min-height:44px;cursor:pointer;color:#111;background:var(--gold);box-shadow:0 4px 0 #8a6100;margin-top:8px}
.btn:active{transform:translateY(2px);box-shadow:0 2px 0 #8a6100}
.btn:focus-visible,.pad button:focus-visible,.mute:focus-visible{outline:3px solid #fff;outline-offset:2px}
.pad{display:flex;gap:10px;margin-top:12px}
.pad button{flex:1;min-height:64px;border-radius:12px;border:0;font:400 20px Anton,Impact,sans-serif;color:#fff;cursor:pointer;touch-action:none;background:#2c2c36;box-shadow:0 5px 0 #000;-webkit-user-select:none;user-select:none}
.pad button.on{transform:translateY(3px);box-shadow:0 2px 0 #000;background:#3b3b48}
.pad .j{background:var(--coral)}.pad .j.on{background:#e2553a}
.how{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:12px 24px;margin-top:18px;color:var(--muted);font-size:15px}
.how b{color:var(--ink);font-weight:600}
kbd{font:600 13px Archivo,sans-serif;background:#2a2a33;border:1px solid #444;border-bottom-width:3px;border-radius:5px;padding:1px 6px;color:#fff}
.mute{background:none;border:1px solid #444;color:var(--muted);border-radius:8px;padding:6px 12px;min-height:44px;font:600 14px Archivo,sans-serif;cursor:pointer}
@media(hover:hover) and (pointer:fine){.pad{display:none}}
.toasts{position:absolute;right:8px;bottom:8px;display:flex;flex-direction:column;align-items:flex-end;gap:5px;pointer-events:none;z-index:5;max-width:min(230px,46%)}
.toast{display:flex;align-items:center;gap:7px;background:rgba(16,16,22,.72);backdrop-filter:blur(3px);border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:4px 10px 4px 5px;box-shadow:0 4px 12px rgba(0,0,0,.35);animation:tin .3s ease-out,tout .4s ease-in 2.6s forwards}
.toast svg{width:22px;height:22px;flex:none}.toast img{width:16px!important;height:22px!important}
.toast small{display:block;color:#b8b3aa;font-size:10.5px;line-height:1.2}.toast b{font-size:12px;line-height:1.2;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){.toasts{right:4px;bottom:4px;max-width:52%}.toast{padding:3px 7px 3px 4px;gap:5px}.toast svg{width:16px;height:16px}.toast img{width:12px!important;height:17px!important}.toast b{font-size:10px}.toast small{font-size:8.5px}}
@keyframes tin{from{opacity:0;transform:translateX(24px)}}@keyframes tout{to{opacity:0;transform:translateX(16px)}}
@media(prefers-reduced-motion:reduce){.toast{animation:tout .4s ease-in 2.6s forwards}}
.tro,.alb,.skins,.shop,.bk{margin-top:34px}
.recap{margin-top:16px;background:linear-gradient(160deg,#241c2c,#18171d 60%);border:1px solid #3a3946;border-radius:16px;padding:16px 18px;animation:tin .4s ease-out}
.recap[hidden]{display:none}.recap.won{border-color:#c9981e;background:linear-gradient(160deg,#3a2c12,#18171d 65%)}
.rwin{display:flex;align-items:center;gap:16px;background:#121216;border:1px solid #c9981e;border-radius:12px;padding:10px 16px;margin-bottom:10px}
.rwin>b{font:400 64px/1 Anton,Impact,sans-serif;color:var(--gold)}.rwin span{display:block;font:400 22px/1.15 Anton,Impact,sans-serif;color:#fff}.rwin small{color:var(--muted)}.rh{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.recap h3{margin:0;font:400 28px/1.1 Anton,Impact,sans-serif;color:#fff}.rc{margin:4px 0 12px;color:var(--muted)}.rc b{color:#ff8a80}
.rbadge{background:var(--gold);color:#111;font:400 18px Anton,Impact,sans-serif;border-radius:8px;padding:4px 12px;white-space:nowrap}
.rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.rt{background:#121216;border:1px solid #2c2b35;border-radius:10px;padding:8px 10px}.rt b{display:block;font:400 24px/1.1 Anton,Impact,sans-serif;color:var(--c,#fff);white-space:nowrap}.rt small{color:var(--muted);font-size:13px}
.recap h4{margin:14px 0 6px;font-size:14px;color:#b9d7f0}.rcards{display:flex;gap:6px;flex-wrap:wrap}.rcards img{width:62px;border-radius:6px;box-shadow:0 4px 10px rgba(0,0,0,.5)}
.rlist{display:flex;flex-wrap:wrap;gap:6px}.rlist span{display:inline-flex;align-items:center;gap:6px;background:#121216;border:1px solid #2c2b35;border-radius:20px;padding:4px 10px 4px 4px;font-size:14px}.rlist svg{width:22px;height:22px}
.rtot{margin:12px 0 0;color:var(--muted);font-size:14px}
.pbtn{position:absolute;left:6px;bottom:6px;z-index:4;width:44px;height:30px;border-radius:8px;border:1px solid rgba(255,255,255,.25);background:rgba(15,14,20,.55);color:#fff;font:400 15px Anton,Impact,sans-serif;cursor:pointer}
.pbtn[hidden]{display:none}.ov.pause{background:rgba(10,8,16,.6)}
.pad .s{background:#d8392f}.pad .s.on{background:#b42a22}.pad button[hidden]{display:none}
.cred{font:400 22px Anton,Impact,sans-serif;color:#4ff0e6}.cred b{font-weight:400}
.shopTop{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-bottom:12px;color:#b9d7f0;font-weight:600}
.shopTop .btn{margin-top:0}.btn:disabled{opacity:.45;cursor:default;box-shadow:none}
.shopGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:10px}
.si{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;background:#1b1a21;border:1px solid #2c2b35;border-radius:12px;padding:10px 12px}
.si b{display:block}.si small{display:block;color:var(--muted);font-size:13.5px;line-height:1.35}.si .btn{margin:0;padding:8px 12px;font-size:15px;white-space:nowrap}
.pack{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:760px}
.pack figure{margin:0;width:min(130px,28vw);text-align:center;animation:flip .5s ease-out both}.pack figure img{width:100%;border-radius:9px;box-shadow:0 10px 24px rgba(0,0,0,.6)}
.pack figcaption{color:#ddd;font-size:13px;margin-top:4px}.pack figcaption b{color:#ffd84a}
@keyframes flip{from{opacity:0;transform:rotateY(90deg) scale(.8)}}
.bkRow{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:8px 0}.bkRow .btn{margin:0}
#bkTxt{width:100%;font:13px ui-monospace,Menlo,monospace;background:#1b1a21;color:var(--ink);border:1px solid #3a3946;border-radius:10px;padding:10px;resize:vertical}
#bkMsg{color:#b9d7f0;font-weight:600}
.dlg{position:fixed;inset:0;z-index:60;background:rgba(8,6,12,.75);display:flex;align-items:center;justify-content:center;padding:16px}.dlg[hidden]{display:none}
.dlgBox{width:min(420px,100%);background:#1f1e27;border:1px solid #3a3946;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:14px;box-shadow:0 24px 60px rgba(0,0,0,.6)}
.dlgBox h3{margin:0;font:400 28px Anton,Impact,sans-serif}.dlgBox label{display:flex;flex-direction:column;gap:6px;font-weight:600}.dlgBox label.chk{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;color:#ddd}
.dlgBox input[type=range]{width:100%;accent-color:#ffc23d;min-height:28px}.dlgBox input[type=checkbox]{width:20px;height:20px;accent-color:#ffc23d;flex:none;margin-top:2px}
.dlgBox select{font:16px Archivo,sans-serif;background:#2a2933;color:#fff;border:1px solid #444;border-radius:8px;padding:8px;min-height:44px}
@media(prefers-reduced-motion:reduce){.pack figure{animation:none}}
.sgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.sk{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;padding:10px 10px 12px;border-radius:12px;border:1px solid #2c2b35;background:radial-gradient(120px 90px at 50% 30%,#3a2a48,#1b1a21);color:var(--ink);font:inherit;cursor:pointer}
.sk img{width:100px;height:135px}.sk b{font-size:14px;line-height:1.25}.sk small{color:var(--muted);font-size:12.5px;line-height:1.3}
.sk.on{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold) inset}.sk .tag{position:absolute;top:8px;right:8px;background:var(--gold);color:#111;font:400 12px Anton,Impact,sans-serif;border-radius:5px;padding:1px 6px}
.sk.lock{cursor:default;background:#18171d}.sk.lock b{color:#8a8794}.sk .need{color:#b9d7f0;font-weight:600}
.sk .mini{width:80%;height:5px;border-radius:3px;background:#2a2933;overflow:hidden;margin-top:4px}.sk .mini i{display:block;height:100%;background:#4ff0e6}
.sk:focus-visible{outline:3px solid #fff;outline-offset:2px}button.sk:not(.lock):hover{border-color:#5a5868}
.anote{margin:0;color:var(--muted);font-size:14px;flex-basis:100%}
.agrid{display:block}
.aset{display:flex;align-items:baseline;gap:10px;margin:18px 0 8px;border-bottom:1px solid #2c2b35;padding-bottom:4px}.aset h3{margin:0;font:400 20px Anton,Impact,sans-serif;color:#fff}.aset span{color:var(--muted);font-weight:600;font-size:14px}.aset.done span{color:#5fd16a}
.agrid2{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.ac{position:relative;padding:0;border:0;background:none;cursor:pointer;aspect-ratio:150/210;border-radius:9px;transition:transform .15s}
.ac img{width:100%;height:100%;display:block;border-radius:9px;box-shadow:0 6px 14px rgba(0,0,0,.5)}
.ac span{position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);white-space:nowrap;background:#121216;color:#ffd84a;font:400 14px Anton,Impact,sans-serif;border-radius:6px;padding:1px 6px;box-shadow:0 0 0 1px #000}
button.ac:hover{transform:translateY(-3px) rotate(-1deg)}button.ac:focus-visible{outline:3px solid #fff;outline-offset:2px}
.ac.off{cursor:default}.ac .back{height:100%;border-radius:9px;border:2px dashed #3a3946;background:repeating-linear-gradient(45deg,#1b1a21 0 8px,#1f1e26 8px 16px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#5d5b68}
.ac .back b{font:400 26px Anton,Impact,sans-serif}.ac .back small{font-size:12px;font-weight:600}
.zoom{position:fixed;inset:0;z-index:60;background:rgba(8,6,12,.85);display:flex;align-items:center;justify-content:center;padding:20px;cursor:zoom-out}
.zbox{display:flex;flex-direction:column;align-items:center;gap:12px}
.zoom.tall,.dlg.tall{position:absolute;inset:auto;left:0;top:0;width:100%;display:block;padding:0}
.zoom.tall>.zbox{position:absolute;left:0;right:0;padding:0 20px}
.dlg.tall>.dlgBox{position:absolute;left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 32px))}
.zoom[hidden]{display:none}.zoom img{width:min(320px,80vw);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.7)}.zoom p{margin:0;color:var(--muted);font-weight:600;text-align:center}
.troHead{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-bottom:14px}
.troHead h2{font:400 32px/1.05 Anton,Impact,sans-serif;margin:0;color:#fff;text-shadow:2px 2px 0 #000}
.prog{display:flex;align-items:center;gap:10px;flex:1;min-width:200px;max-width:420px}
.bar{flex:1;height:12px;border-radius:6px;background:#26252e;overflow:hidden;box-shadow:inset 0 0 0 1px #000}.bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#4f8cff,#b9d7f0);transition:width .5s}
.prog span{font:400 20px Anton,Impact,sans-serif;white-space:nowrap}
.counts{display:flex;gap:14px;color:var(--muted);font-weight:600;font-size:15px;flex-wrap:wrap}.counts span{display:flex;align-items:center;gap:4px;white-space:nowrap}.counts svg{width:20px;height:20px}
.tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:10px}
.tc{display:flex;gap:12px;align-items:center;background:#1b1a21;border:1px solid #2c2b35;border-radius:12px;padding:10px 12px}
.tc svg{width:42px;height:42px;flex:none}.tc b{display:block;line-height:1.25}.tc p{margin:2px 0 0;color:var(--muted);font-size:14px;line-height:1.35}.tc small{color:#7d93b8;font-size:13px}
.tc.off{opacity:.55}.tc.off svg{filter:grayscale(1) brightness(.6)}
.tc.plat{grid-column:1/-1;background:linear-gradient(100deg,#1d2433,#1b1a21 60%);border-color:#4b6a8f}
.reset{margin-top:14px;background:none;border:1px solid #444;color:var(--muted);border-radius:8px;padding:8px 14px;min-height:44px;font:600 14px Archivo,sans-serif;cursor:pointer}
.reset.warn{border-color:#c8231d;color:#ff8a80}
@media(prefers-reduced-motion:reduce){canvas{transition:none}}

.diffrow{display:flex;gap:6px;margin-top:6px;pointer-events:auto}
.diffbtn{font:400 16px Anton,Impact,sans-serif;letter-spacing:.5px;min-height:40px;padding:6px 14px;border-radius:9px;border:2px solid rgba(255,255,255,.55);background:rgba(15,14,20,.65);color:#fff;cursor:pointer}
.diffbtn.on{background:var(--gold);color:#111;border-color:#000;box-shadow:0 3px 0 #8a6100}
.diffbtn:focus-visible{outline:3px solid #fff;outline-offset:2px}
.rdiff{font:600 13px Archivo,sans-serif;color:#111;background:#b9d7f0;border-radius:6px;padding:2px 8px;vertical-align:middle;margin-left:6px}
@media(max-width:600px){.diffbtn{font-size:13px;min-height:34px;padding:4px 10px}}

.aset em{margin-left:auto;font-style:normal;font-size:13px;color:#7d93b8;text-align:right}.aset.done em{color:#5fd16a}
.ac.holo img{box-shadow:0 0 0 2px #fff,0 0 18px rgba(180,140,255,.8),0 6px 14px rgba(0,0,0,.5);animation:holoGlow 2.4s ease-in-out infinite}
@keyframes holoGlow{50%{box-shadow:0 0 0 2px #fff,0 0 26px rgba(120,230,255,.9),0 6px 14px rgba(0,0,0,.5)}}
@media(prefers-reduced-motion:reduce){.ac.holo img{animation:none}}
@media(max-width:600px){.aset{flex-wrap:wrap}.aset em{margin-left:0;flex-basis:100%;text-align:left}}

.ovbtns{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.btn.sec{background:rgba(15,14,20,.75);color:#fff;border:2px solid rgba(255,255,255,.6);box-shadow:0 4px 0 #000}
.btn.sec:active{box-shadow:0 2px 0 #000}

/* Schermate sopra il gioco: velo scuro uniforme e dimensioni proporzionate all'area di gioco */
.screen{container-type:size}
.ov{gap:clamp(4px,2.2cqh,12px);padding:3cqh 3cqw;background:rgba(12,10,18,.66)!important;backdrop-filter:blur(2px)}
.ov.winov{background:radial-gradient(ellipse at center,rgba(70,50,10,.55),rgba(12,10,18,.75))!important}
.ov .big{font-size:clamp(22px,19cqh,84px)}
.ov .sub{font-size:clamp(12px,6.5cqh,22px)}
.ov .hint{font-size:clamp(11px,4.8cqh,16px);line-height:1.3}
.ov #diffNote{font-size:clamp(10px,4cqh,13px)!important}
.ov:not(.panel) .btn{margin-top:0;font-size:clamp(13px,5.6cqh,18px);min-height:clamp(32px,12cqh,44px);padding:0 clamp(12px,3cqw,22px)}
.ov .diffrow{margin-top:0}
.ov .diffbtn{font-size:clamp(11px,5cqh,16px);min-height:clamp(28px,10.5cqh,40px);padding:0 clamp(8px,2.2cqw,14px)}
@container (max-height:250px){
  .ov.start .sub,.ov #startTro{display:none}
  .screen:has(#ovDead:not([hidden])) .toasts,.screen:has(#ovWin:not([hidden])) .toasts{display:none}
}
@container (max-height:190px){
  .ov #diffNote,.ov #winMsg{display:none}
}

.how .puhow{grid-column:1/-1}
.pulist{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:8px;margin-top:8px}
.pui{display:flex;align-items:center;gap:10px;background:#1b1a21;border:1px solid #2c2b35;border-radius:10px;padding:8px 10px}
.pui img{width:32px;height:32px;flex:none}.pui b{display:block;line-height:1.25}.pui span{display:block;font-size:14px;line-height:1.35}

.diffbtn.x{border-color:#ff5a4f;color:#ffb3ad}.diffbtn.x.on{background:#d8392f;color:#fff;border-color:#000;box-shadow:0 3px 0 #6a1410}
.diffbtn.locked{opacity:.55;border-style:dashed}.diffbtn.locked::before{content:'🔒 '}

/* ---------- modalità telefono / schermo intero ---------- */
.fsbtn{display:block;margin:0 0 10px auto;padding:7px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.2);background:#26242e;color:#fff;font:400 15px Anton,Impact,sans-serif;letter-spacing:.03em;cursor:pointer}
@media(hover:none){.fsbtn{width:100%;padding:14px;font-size:20px;background:var(--coral);border:0;box-shadow:0 5px 0 #000}}
.fsx{display:none}
body.play{overflow:hidden}
body.play .cab{position:fixed;inset:0;z-index:50;margin:0;border-radius:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#000;box-shadow:none;display:flex;align-items:center;justify-content:center}
body.play .screen{width:100%;height:100%;aspect-ratio:auto;border-radius:0;flex:none}
body.play .pad{display:none}
body.play .fsx{display:inline-block;margin-top:min(3cqh,10px);font-size:min(5cqh,15px);padding:6px 14px}
body.play .pbtn{width:64px;height:44px;font-size:21px;left:10px;bottom:10px;border-radius:10px}
.zones{position:absolute;inset:0;z-index:2;display:none;grid-template-columns:1fr 1fr;pointer-events:none;opacity:0}
.zones span{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding-bottom:16cqh;color:rgba(255,255,255,.85);font:400 min(4.5cqh,14px) Archivo,sans-serif;font-weight:700;letter-spacing:.06em;text-shadow:0 2px 3px #000}
.zones span b{font:400 min(11cqh,36px) Anton,Impact,sans-serif;letter-spacing:.04em}
.zones span:first-child{background:linear-gradient(90deg,rgba(255,111,78,.22),transparent);border-right:2px dashed rgba(255,255,255,.45)}
.zones span:last-child{background:linear-gradient(270deg,rgba(80,170,255,.22),transparent)}
.zones.show{display:grid;animation:zfade 3.4s ease-in forwards}
@keyframes zfade{0%,70%{opacity:1}100%{opacity:0}}
.rotate{display:none}
@media(orientation:portrait){body.play .rotate{display:flex;position:fixed;inset:0;z-index:60;align-items:center;justify-content:center;text-align:center;background:#0d0b12;color:#fff;font:400 26px Anton,Impact,sans-serif;padding:30px}
  .rotate b{display:block;font-size:70px;color:var(--coral);animation:rot 1.6s ease-in-out infinite}}
@keyframes rot{0%,20%{transform:rotate(0)}60%,100%{transform:rotate(90deg)}}

/* carta a scelta nell'album */
.acbuy{margin-top:6px;padding:4px 8px;border-radius:7px;border:1px solid #ffc23d;background:#2a2410;color:#ffc23d;font:700 11.5px Archivo,sans-serif;cursor:pointer;line-height:1.2;max-width:92%}
.acbuy[data-poor]{border-color:#4a4856;background:#1d1c23;color:#8d8a99}
.acbuy.arm{background:#ffc23d;color:#1a1408}

/* statistiche e trofei segreti */
.stats{margin-top:34px}.stats .rgrid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.rt.wide{grid-column:1/-1}.rt.wide b{font-size:19px;white-space:normal}
.tc.secret{border-style:dashed}.tc.secret svg{opacity:.5}.tc em.sec{font-style:normal;font-size:11px;font-weight:700;color:#c9a7ff;border:1px solid #6b55a0;border-radius:6px;padding:0 5px;margin-left:4px;vertical-align:2px}
.rt.w2{grid-column:span 2}.rt.w2 b{white-space:normal;font-size:21px}

/* resoconto dentro la schermata di fine partita */
.ov.endov{flex-direction:row;align-items:center;justify-content:center;gap:clamp(8px,3cqw,28px);padding:3cqh 3cqw}
.endL{flex:0 1 44%;min-width:0;display:flex;flex-direction:column;align-items:center;gap:clamp(4px,2.2cqh,12px)}
.endL .big{font-size:clamp(22px,17cqh,78px)!important}
.endR{flex:1 1 56%;max-width:470px;max-height:100%;overflow:auto;background:rgba(12,10,18,.72);border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:clamp(6px,2.4cqh,12px);text-align:left;scrollbar-width:thin}
.endR:empty{display:none}
.endR h4{margin:0 0 clamp(4px,1.8cqh,8px);font:600 clamp(10px,3.8cqh,13px) Archivo,sans-serif;color:#b9d7f0;letter-spacing:.02em}
.endR .eb{color:#ffd84a}
.egrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(3px,1.5cqh,6px)}
.et{background:#16151c;border:1px solid #2c2b35;border-radius:8px;padding:clamp(3px,1.2cqh,6px) clamp(4px,1.4cqh,7px);min-width:0}
.et b{display:block;font:400 clamp(12px,6.2cqh,22px)/1.1 Anton,Impact,sans-serif;color:var(--c,#fff);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.et small{display:block;font-size:clamp(8.5px,3.1cqh,11px);color:var(--muted);line-height:1.2}
.ecards{display:flex;flex-wrap:wrap;gap:4px;margin-top:clamp(4px,2cqh,8px);align-items:center}
.ecards img{height:clamp(30px,15cqh,64px);border-radius:4px;box-shadow:0 3px 8px rgba(0,0,0,.5)}
.ecards span{font:400 clamp(11px,4.5cqh,16px) Anton,Impact,sans-serif;color:#fff;padding:0 4px}
.echips{display:flex;flex-wrap:wrap;gap:4px;margin-top:clamp(4px,2cqh,8px)}
.echips span{display:inline-flex;align-items:center;gap:4px;background:#16151c;border:1px solid #2c2b35;border-radius:999px;padding:2px 8px 2px 3px;font-size:clamp(9px,3.3cqh,12px);font-weight:600;color:#fff}
.echips svg{width:clamp(12px,5cqh,18px);height:clamp(12px,5cqh,18px)}
@container (max-height:230px){.endR{display:none}.ov.endov{flex-direction:column}}
/* il resoconto sotto il gioco resta solo sugli schermi piccoli, dove quello interno non sta */
.recap{display:none!important}
@media (max-width:640px){body:not(.play) .recap:not([hidden]){display:block!important}}
.zoom.tall[hidden],.dlg.tall[hidden]{display:none}

/* guardaroba nella schermata di gioco */
.startrow{display:flex;align-items:center;justify-content:center;gap:clamp(6px,2cqw,14px);flex-wrap:wrap}
.ov .wbtn{font-size:clamp(11px,4.6cqh,15px);min-height:clamp(26px,9.5cqh,36px);padding:0 clamp(10px,2.4cqw,16px)}
.wbtn span{opacity:.7;font-family:Archivo,sans-serif;font-size:.85em}
.ov.ward{justify-content:flex-start;align-items:stretch;gap:clamp(4px,2cqh,10px);background:rgba(12,10,18,.88)!important;z-index:6}
.whead{display:flex;align-items:center;gap:clamp(6px,2cqw,14px)}
.whead b{font:400 clamp(16px,8cqh,30px) Anton,Impact,sans-serif;color:#fff;letter-spacing:.02em}
.wbar{flex:1;max-width:240px;height:clamp(5px,2cqh,8px);border-radius:4px;background:#2a2933;overflow:hidden}.wbar i{display:block;height:100%;background:linear-gradient(90deg,#5fd16a,#4ff0e6)}
.whead span{font:600 clamp(11px,4cqh,14px) Archivo,sans-serif;color:var(--muted)}
.whead .btn{margin-left:auto}
.ov.ward .sgrid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:clamp(4px,1.4cqh,8px);overflow-y:auto;overflow-x:hidden;touch-action:pan-y;scrollbar-width:thin}
.ov.ward .sk{min-width:0;min-height:0;padding:clamp(3px,1.2cqh,8px) clamp(3px,1cqw,8px);gap:0;justify-content:center;overflow:hidden;border-radius:clamp(6px,2cqh,12px)}
.ov.ward .sk img{width:auto;height:clamp(28px,17cqh,96px);flex:none}
.ov.ward .sk>*{flex:none;max-width:100%}
.ov.ward .sk b{font-size:clamp(9px,3.5cqh,14px);line-height:1.15;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ov.ward .sk small{font-size:clamp(8px,2.9cqh,12px);line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ov.ward .sk .mini{height:clamp(3px,1.2cqh,5px);margin-top:2px}
.ov.ward .sk .tag{top:3px;right:3px;font-size:clamp(8px,2.8cqh,12px);padding:0 4px}
.ov .whint{font-size:clamp(10px,3.6cqh,13px)!important;opacity:.8}
@container (max-height:250px){.ov.ward .whint{display:none}}

/* ---------- menu a schede nella schermata di gioco ---------- */
.mtabs{position:absolute;top:0;left:0;right:0;z-index:8;display:flex;justify-content:center;gap:clamp(3px,1cqw,8px);padding:clamp(4px,1.6cqh,8px) clamp(6px,1.6cqw,12px);overflow-x:auto;scrollbar-width:none;background:linear-gradient(rgba(10,8,16,.92),rgba(10,8,16,.72));border-bottom:1px solid rgba(255,255,255,.08)}
.mtabs[hidden]{display:none}.mtabs::-webkit-scrollbar{display:none}
.mtabs button{flex:none;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#e9e6f0;border-radius:999px;padding:0 clamp(8px,1.8cqw,14px);min-height:clamp(24px,8.5cqh,34px);font:400 clamp(11px,4.4cqh,16px) Anton,Impact,sans-serif;letter-spacing:.03em;cursor:pointer;white-space:nowrap}
.mtabs button:hover{background:rgba(255,255,255,.12)}.mtabs button.on{background:var(--gold);color:#17120a;border-color:var(--gold)}
.mtabs button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.ov.start{padding-top:clamp(34px,13cqh,54px)!important}
.ov.panel{justify-content:flex-start;align-items:stretch;padding:clamp(34px,13cqh,54px) 0 0!important;background:#0f0d15!important;z-index:7;backdrop-filter:none}
.pbody{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;text-align:left;padding:clamp(6px,2.4cqh,14px) clamp(10px,2.4cqw,22px) clamp(10px,3cqh,18px);scrollbar-width:thin;-webkit-user-select:text;user-select:text}
.ppage[hidden]{display:none}
.pbody section{margin-top:0!important}
.pbody .troHead{margin-bottom:clamp(6px,2cqh,14px)}
.pbody h2{font-size:clamp(18px,8cqh,34px)}
.pbody .anote{font-size:clamp(11px,3.8cqh,14px)}
/* guardaroba come pagina del menu */
.ppage[data-page=ward]{height:100%}
.wardpg{height:100%;display:flex;flex-direction:column;gap:clamp(4px,2cqh,10px)}
.wardpg .sgrid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:clamp(4px,1.4cqh,8px)}
.wardpg .sk{min-width:0;min-height:0;padding:clamp(3px,1.2cqh,8px) clamp(3px,1cqw,8px);gap:0;justify-content:center;overflow:hidden;border-radius:clamp(6px,2cqh,12px)}
.wardpg .sk>*{flex:none;max-width:100%}
.wardpg .sk img{width:auto;height:clamp(26px,14cqh,96px)}
.wardpg .sk b{font-size:clamp(9px,3.3cqh,14px);line-height:1.15;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.wardpg .sk small{font-size:clamp(8px,2.8cqh,12px);line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.wardpg .sk .mini{height:clamp(3px,1.2cqh,5px);margin-top:2px}
.wardpg .sk .tag{top:3px;right:3px;font-size:clamp(8px,2.8cqh,12px);padding:0 4px}
.wardpg .whint{font-size:clamp(10px,3.4cqh,13px)!important;opacity:.8;text-align:center;font-weight:600}
@container (max-height:250px){.wardpg .whint{display:none}}
.pbody .shopGrid{grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr))}
.dlgBox{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
.zoom img{max-height:calc(100dvh - 90px);width:auto;max-width:min(320px,80vw)}
/* ---------- a schermo intero i menu crescono con lo schermo (passo 2) ---------- */
body.play .mtabs{gap:clamp(3px,1cqw,12px);padding:clamp(4px,1.4cqh,12px) clamp(6px,1.6cqw,16px)}
body.play .mtabs button{font-size:clamp(11px,4.2cqh,24px);min-height:clamp(24px,7.5cqh,50px);padding:0 clamp(8px,1.8cqw,22px)}
body.play .ov.start,body.play .ov.panel{padding-top:clamp(34px,11.5cqh,78px)!important}
body.play .ov .big{font-size:clamp(22px,19cqh,150px)}
body.play .endL .big{font-size:clamp(22px,17cqh,140px)!important}
body.play .ov .sub{font-size:clamp(12px,6cqh,38px)}
body.play .ov .hint{font-size:clamp(11px,4.2cqh,24px)}
body.play .ov #diffNote{font-size:clamp(10px,3.6cqh,20px)!important}
body.play .ov:not(.panel) .btn{font-size:clamp(13px,5cqh,28px);min-height:clamp(32px,10.5cqh,64px);padding:0 clamp(12px,3cqw,34px)}
body.play .ov .diffbtn{font-size:clamp(11px,4.6cqh,26px);min-height:clamp(28px,9.5cqh,58px);padding:0 clamp(8px,2.2cqw,24px)}
body.play .endR{max-width:min(720px,58cqw)}
body.play .et b{font-size:clamp(12px,6cqh,36px)}body.play .et small{font-size:clamp(8.5px,3cqh,17px)}
body.play .endR h4{font-size:clamp(10px,3.6cqh,20px)}body.play .echips span{font-size:clamp(9px,3.2cqh,18px)}
body.play .ecards img{height:clamp(30px,15cqh,120px)}
body.play .wardpg .sk img{height:clamp(26px,15cqh,220px)}
body.play .wardpg .sk b{font-size:clamp(9px,3.3cqh,22px)}body.play .wardpg .sk small{font-size:clamp(8px,2.8cqh,17px)}
body.play .wardpg .sk .tag{font-size:clamp(8px,2.8cqh,17px)}
body.play .wardpg .whead b,body.play .whead b{font-size:clamp(16px,7.5cqh,48px)}body.play .whead span{font-size:clamp(11px,3.8cqh,22px)}
body.play .wardpg .whint{font-size:clamp(10px,3.2cqh,20px)!important}
/* album, negozio, trofei e statistiche: ingranditi in proporzione allo schermo */
body.play .ppage:not([data-page=ward]){zoom:var(--mz,1)}

/* ---------- guardaroba: riquadri grandi con il personaggio in evidenza ---------- */
.wardpg .sgrid{gap:clamp(5px,1.6cqh,12px)}
.wardpg .sk{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:clamp(1px,.6cqh,4px);padding:clamp(4px,1.4cqh,10px);border-radius:clamp(8px,2.4cqh,16px);
  background:radial-gradient(70% 22% at 50% 78%,rgba(255,255,255,.10),transparent 70%),radial-gradient(90% 70% at 50% 35%,#4a3560,#1d1b25 75%);border:1px solid #34323f;transition:transform .12s,border-color .12s}
.wardpg button.sk:hover{transform:translateY(-2px);border-color:#7a6a98}
.wardpg .sk.on{background:radial-gradient(70% 22% at 50% 78%,rgba(255,216,74,.22),transparent 70%),radial-gradient(90% 70% at 50% 35%,#5a4420,#1f1b16 75%);border-color:var(--gold);box-shadow:0 0 0 2px var(--gold) inset,0 0 18px rgba(255,194,61,.25)}
.wardpg .sk.lock{background:radial-gradient(90% 70% at 50% 35%,#24222c,#17161c 75%);border-style:dashed}
.wardpg .sk .skart{position:relative;flex:1 1 0;min-height:0;display:flex;align-items:flex-end;justify-content:center}
.wardpg .sk .skart img{height:100%;width:100%;max-height:100%;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 4px 4px rgba(0,0,0,.45))}
.wardpg .sk.lock .skart img{opacity:.75;filter:none}
.wardpg .sk .lk{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);font-style:normal;font-size:clamp(14px,6cqh,34px);opacity:.85}
.wardpg .sk b{flex:none;text-align:center;font-size:clamp(10px,3.6cqh,15px);line-height:1.15;color:#fff}
.wardpg .sk.lock b{color:#a29fae}
.wardpg .sk small{flex:none;text-align:center;font-size:clamp(8px,2.8cqh,12px)}
.wardpg .sk .mini{flex:none;align-self:center;width:70%}
.wardpg .sk .tag{z-index:1}
body.play .wardpg .sk b{font-size:clamp(10px,3.4cqh,24px)}body.play .wardpg .sk small{font-size:clamp(8px,2.6cqh,17px)}
@container (max-height:480px){
  .wardpg .whint{display:none}
  .wardpg button.sk small{display:none}
  .wardpg .sk.lock small{-webkit-line-clamp:1;line-clamp:1}
  .wardpg .sk.lock small+small{display:none}
  .wardpg .sk b{-webkit-line-clamp:1;line-clamp:1}
}

/* guardaroba: stessa struttura in ogni riquadro (personaggio · nome · seconda riga · avanzamento) */
.wardpg .sk{display:grid!important;grid-template-rows:minmax(0,1fr) auto auto auto;align-items:stretch;justify-items:stretch;gap:clamp(1px,.5cqh,4px)}
.wardpg .sk .skart{flex:none;min-height:0;height:100%;display:flex;align-items:center;justify-content:center}
.wardpg .sk .skart img{height:100%;width:100%;object-fit:contain;object-position:50% 50%}
.wardpg .sk b,.wardpg .sk small{display:block!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset;text-align:center;max-width:100%}
.wardpg .sk b{font-size:clamp(10px,3.5cqh,15px)!important;line-height:1.25}
.wardpg .sk small,.wardpg .sk .need{font-size:clamp(8.5px,2.9cqh,12.5px)!important;line-height:1.25;font-weight:600}
.wardpg button.sk small{color:var(--muted)}.wardpg .sk .need{color:#b9d7f0}
.wardpg .sk .l3{display:flex;align-items:center;justify-content:center;gap:6px;height:clamp(9px,3cqh,14px)}
.wardpg .sk .l3 .mini{width:55%;margin:0}
.wardpg .sk .l3 em{font-style:normal;font-size:clamp(8px,2.6cqh,11px);color:var(--muted);font-weight:600}
body.play .wardpg .sk b{font-size:clamp(10px,3.3cqh,22px)!important}
body.play .wardpg .sk small,body.play .wardpg .sk .need{font-size:clamp(8.5px,2.7cqh,17px)!important}
body.play .wardpg .sk .l3{height:clamp(9px,2.8cqh,20px)}body.play .wardpg .sk .l3 em{font-size:clamp(8px,2.4cqh,15px)}
@container (max-height:480px){.wardpg button.sk small{display:block!important}}
@container (max-height:480px){.wardpg .whead b{display:none}.wardpg .whead{justify-content:center}.wardpg .wbar{max-width:40%}}

/* ---------- album: un set alla volta (passo 3) ---------- */
.ppage[data-page=album]{height:100%}
body.play .ppage[data-page=album]{zoom:1}
.alb{height:100%;display:flex;flex-direction:column;gap:clamp(4px,1.6cqh,10px)}
.ahead{display:flex;align-items:center;gap:clamp(8px,2cqw,18px)}.ahead h2{margin:0}.ahead .prog{flex:1;max-width:420px}
.asets{display:flex;gap:clamp(3px,.8cqw,8px);overflow-x:auto;scrollbar-width:none;flex:none}.asets::-webkit-scrollbar{display:none}
.asets button{flex:none;display:flex;align-items:baseline;gap:5px;border:1px solid #34323f;background:#1b1a22;color:#d9d6e3;border-radius:999px;padding:clamp(2px,.8cqh,5px) clamp(8px,1.6cqw,14px);font:600 clamp(10px,3.3cqh,14px) Archivo,sans-serif;cursor:pointer;white-space:nowrap}
.asets button small{font-size:.82em;color:var(--muted);font-weight:600}
.asets button.done{border-color:#3d7a48}.asets button.done small{color:#5fd16a}
.asets button.on{background:var(--gold);border-color:var(--gold);color:#17120a}.asets button.on small{color:#3a2c08}
.anav{display:flex;align-items:center;gap:clamp(6px,1.6cqw,14px);flex:none}
.aarr{flex:none;width:clamp(28px,9cqh,44px);height:clamp(28px,9cqh,44px);border-radius:50%;border:1px solid #3a3946;background:#1f1e27;color:#fff;font:400 clamp(18px,6cqh,30px)/1 Anton,Impact,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;padding-bottom:3px}
.aarr:hover{background:#2a2934}
.ainfo{flex:1;min-width:0;display:flex;align-items:baseline;gap:clamp(6px,1.4cqw,12px);flex-wrap:wrap}
.ainfo b{font:400 clamp(15px,6cqh,26px) Anton,Impact,sans-serif;color:#fff}
.ainfo span{color:var(--muted);font-weight:600;font-size:clamp(10px,3.4cqh,14px)}.ainfo span.ok{color:#5fd16a}
.ainfo em{margin-left:auto;font-style:normal;font-size:clamp(10px,3.2cqh,13px);color:#7d93b8}.ainfo em.ok{color:#5fd16a}
.agrid{flex:1;min-height:0;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(4px,1.6cqh,10px);justify-items:center;align-items:center;container-type:size;touch-action:pan-y}
.agrid .ac{height:min(calc(50cqh - 8px),calc((100cqw - 60px) / 6 * 1.4));width:auto;aspect-ratio:150/210}
.agrid .ac img{width:100%;height:100%;object-fit:contain;display:block}
.agrid .ac .back b{font-size:clamp(14px,9cqh,30px)}.agrid .ac .back small{font-size:clamp(8px,3.6cqh,12px)}
.agrid .acbuy{font-size:clamp(8px,3.4cqh,11.5px);padding:2px 6px;margin-top:4px}
.agrid .ac span{font-size:clamp(10px,4cqh,14px)}
body.play .ahead h2{font-size:clamp(18px,7cqh,40px)}body.play .asets button{font-size:clamp(10px,3cqh,20px)}
body.play .ainfo b{font-size:clamp(15px,5.5cqh,36px)}body.play .ainfo span,body.play .ainfo em{font-size:clamp(10px,3cqh,20px)}
body.play .aarr{width:clamp(28px,8cqh,60px);height:clamp(28px,8cqh,60px);font-size:clamp(18px,5.5cqh,40px)}
@container (max-height:480px){.ahead h2{display:none}.ainfo em{display:none}}
.ahead h2{font:400 clamp(18px,8cqh,34px) Anton,Impact,sans-serif;color:#fff;letter-spacing:.01em}body.play .ahead h2{font-size:clamp(18px,7cqh,40px)}

/* ---------- negozio (passo 4) ---------- */
.shead{display:flex;align-items:center;flex-wrap:wrap;gap:clamp(8px,2cqw,18px)}.shead h2{margin:0;font:400 clamp(18px,8cqh,34px) Anton,Impact,sans-serif;color:#fff}
.shead .cred{font:400 clamp(15px,6cqh,26px) Anton,Impact,sans-serif;color:#4ff0e6;background:rgba(79,240,230,.08);border:1px solid rgba(79,240,230,.3);border-radius:999px;padding:1px 12px}
.shead .conv{margin:0 0 0 auto;font-size:clamp(12px,4cqh,16px);min-height:0;padding:6px 14px}
.snote{margin:clamp(3px,1.2cqh,8px) 0 clamp(4px,1.6cqh,10px);color:var(--muted);font-size:clamp(10px,3.3cqh,13.5px)}.snote b{color:#b9d7f0}
.sgroup h3{margin:clamp(6px,2cqh,14px) 0 clamp(3px,1.2cqh,8px);font:600 clamp(10px,3.3cqh,13px) Archivo,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#b9d7f0}
.sgroup:first-child h3{margin-top:0}
.sgrid2{display:grid;grid-template-columns:repeat(auto-fill,minmax(clamp(170px,23cqw,250px),1fr));gap:clamp(5px,1.4cqh,10px)}
.si{grid-template-columns:auto minmax(0,1fr) auto;gap:clamp(6px,1.4cqw,12px);padding:clamp(5px,1.6cqh,10px) clamp(6px,1.4cqw,12px);border-radius:10px}
.si img{width:auto;height:clamp(26px,9cqh,44px)}
.si b{font-size:clamp(11px,3.6cqh,15px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.si small{font-size:clamp(9.5px,3cqh,12.5px);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.si .btn{font-size:clamp(12px,4cqh,16px);padding:4px 12px;min-width:3.6em}
.si.done{border-color:#3d7a48}.si.done small{color:#5fd16a}
/* bustina aperta dentro la schermata */
.ov.packov{z-index:9;background:radial-gradient(ellipse at center,rgba(60,40,90,.92),rgba(10,8,16,.96))!important;gap:clamp(4px,2cqh,14px);cursor:pointer}
.ptitle{font:400 clamp(16px,7cqh,40px) Anton,Impact,sans-serif;color:var(--gold);letter-spacing:.04em;text-shadow:2px 2px 0 #000}
.packov .pack{flex-wrap:nowrap;max-width:none;gap:clamp(6px,1.6cqw,16px)}
.packov .pack figure{width:min(17cqw,calc(60cqh * 150 / 210))}
.packov .pack figcaption{font-size:clamp(9px,3.2cqh,15px)}
.shopGrid,.pbody .shopGrid{display:block}
.sgrid2{grid-template-columns:repeat(auto-fill,minmax(clamp(200px,31cqw,300px),1fr))}
/* guardaroba: correzioni (personaggio a tutta altezza anche a schermo intero, testi centrati in tutti i riquadri) */
.wardpg .sk .skart img,body.play .wardpg .sk .skart img{height:100%;width:100%;max-height:100%;object-fit:contain;object-position:50% 50%}
.wardpg .sk>b,.wardpg .sk>small,.wardpg .sk>.l3{justify-self:stretch;width:100%;box-sizing:border-box}
.ov .wardpg .whint{max-width:none;align-self:stretch}
.wardpg .sk{grid-template-columns:minmax(0,1fr);justify-content:stretch!important}
/* guardaroba: nome e descrizione vanno a capo (fino a 2 righe) invece di essere tagliati */
.wardpg .sk b,.wardpg .sk small{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;text-overflow:clip;overflow:hidden;overflow-wrap:anywhere}
@container (max-height:480px){.wardpg .sk b,.wardpg .sk small{-webkit-line-clamp:2;line-clamp:2}.wardpg .sk.lock small+small{display:none!important}}
@container (max-height:480px){.wardpg .sk.lock b,.wardpg .sk.lock small,.wardpg button.sk b,.wardpg button.sk small{-webkit-line-clamp:2;line-clamp:2}}

/* guardaroba: titoli sempre su una riga (si rimpiccioliscono se lunghi) e tutti alla stessa altezza; descrizioni fino a 2 righe sotto */
.wardpg .sk{container-type:inline-size;--fsb:clamp(10px,3.5cqh,15px)}
body.play .wardpg .sk{--fsb:clamp(10px,3.3cqh,22px)}
.wardpg .sk b,.wardpg .sk.lock b,.wardpg button.sk b{display:block!important;white-space:nowrap!important;-webkit-line-clamp:unset!important;line-clamp:none!important;overflow:hidden;text-overflow:clip;font-size:min(var(--fsb),calc((100cqi - 4px) / (var(--n,12) * .56)))!important;line-height:1.3}
.wardpg .sk small,.wardpg .sk.lock small{min-height:2.5em}
.wardpg .sk.lock small+small{min-height:0}
.wardpg .sk b,.wardpg .sk.lock b,.wardpg button.sk b{line-height:calc(var(--fsb) * 1.3)!important;height:calc(var(--fsb) * 1.3)}
/* descrizioni mai più grandi dei titoli */
#sgrid .sk small,#sgrid .sk .need,#sgrid .sk .l3 em{font-size:min(clamp(8.5px,2.9cqh,12.5px),calc(var(--tfs,99px) * .88))!important}
body.play #sgrid .sk small,body.play #sgrid .sk .need{font-size:min(clamp(8.5px,2.7cqh,17px),calc(var(--tfs,99px) * .88))!important}

/* ---------- trofei (passo 5) ---------- */
.ppage[data-page=trofei]{zoom:1!important}
.thead{display:flex;align-items:center;flex-wrap:wrap;gap:clamp(6px,2cqw,18px)}
.thead h2{margin:0;font:400 clamp(18px,8cqh,34px) Anton,Impact,sans-serif;color:#fff}
.thead .prog{flex:1;min-width:160px;max-width:380px}
.thead .counts{gap:clamp(6px,1.4cqw,14px);font-size:clamp(11px,3.6cqh,15px)}.thead .counts svg{width:clamp(14px,4.6cqh,22px);height:clamp(14px,4.6cqh,22px)}
.counts .cb{color:#c9a7ff}
.tfilt{display:flex;flex-wrap:wrap;gap:clamp(4px,1.4cqh,10px) clamp(8px,2cqw,18px);margin:clamp(4px,1.6cqh,10px) 0}
.tf{display:flex;gap:4px;flex-wrap:wrap}
.tf button{border:1px solid #34323f;background:#1b1a22;color:#d9d6e3;border-radius:999px;padding:clamp(2px,.8cqh,5px) clamp(8px,1.4cqw,13px);font:600 clamp(10px,3.2cqh,13.5px) Archivo,sans-serif;cursor:pointer}
.tf button.on{background:var(--gold);border-color:var(--gold);color:#17120a}
.tgrid{grid-template-columns:repeat(auto-fill,minmax(clamp(210px,30cqw,330px),1fr));gap:clamp(5px,1.4cqh,10px)}
.tc{align-items:center;gap:clamp(6px,1.4cqw,12px);padding:clamp(6px,1.8cqh,11px) clamp(8px,1.4cqw,12px);border-radius:12px}
.tc svg{width:clamp(28px,10cqh,44px);height:clamp(28px,10cqh,44px)}
.tc .tt{min-width:0;flex:1}
.tc b{font-size:clamp(11px,3.7cqh,15.5px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc p{font-size:clamp(10px,3.1cqh,13.5px);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tc small{font-size:clamp(9.5px,2.9cqh,12.5px)}
.tc.off{opacity:1;background:#17161c;border-style:dashed}.tc.off b{color:#b6b3c0}.tc.off p{color:#7f7c8b}
.tc.on{background:linear-gradient(120deg,#22202b,#1b1a21)}.tc.on.t-g{border-color:#6d5a1d}.tc.on.t-s{border-color:#5a6170}.tc.on.t-b{border-color:#6b4a2c}
.tc .tdate{color:#5fd16a;font-weight:600}
.tprog{display:flex;align-items:center;gap:8px;margin-top:3px}.tprog .mini{flex:1;max-width:160px;height:5px;border-radius:3px;background:#2a2933;overflow:hidden}.tprog .mini i{display:block;height:100%;background:#4ff0e6}
.tprog em{font-style:normal;font-size:clamp(9.5px,2.9cqh,12.5px);color:var(--muted);font-weight:600;white-space:nowrap}
.tc.plat{background:linear-gradient(100deg,#1f2a3d,#1b1a21 65%)!important;border:1px solid #4b6a8f!important}
.tc.plat svg{width:clamp(34px,13cqh,56px);height:clamp(34px,13cqh,56px)}.tc.plat b{font-size:clamp(13px,4.4cqh,19px)}
.tempty{color:var(--muted)}
body.play .thead h2{font-size:clamp(18px,7cqh,40px)}body.play .tf button{font-size:clamp(10px,3cqh,19px)}body.play .thead .counts{font-size:clamp(11px,3.3cqh,20px)}
body.play .tc b{font-size:clamp(11px,3.4cqh,21px)}body.play .tc p{font-size:clamp(10px,2.9cqh,17px)}body.play .tc small,body.play .tprog em{font-size:clamp(9.5px,2.7cqh,16px)}
body.play .tc svg{width:clamp(28px,9cqh,60px);height:clamp(28px,9cqh,60px)}body.play .tgrid{grid-template-columns:repeat(auto-fill,minmax(clamp(210px,30cqw,460px),1fr))}

/* ---------- statistiche (passo 6) ---------- */
.ppage[data-page=stat]{zoom:1!important}
.stats .thead{margin-bottom:clamp(4px,1.6cqh,10px)}.stsub{color:var(--muted);font-weight:600;font-size:clamp(10px,3.3cqh,14px)}
.stgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(clamp(240px,30cqw,520px),1fr));gap:clamp(6px,1.8cqh,14px);align-items:start}
.stg{background:#17161d;border:1px solid #2c2b35;border-radius:12px;padding:clamp(6px,2cqh,14px) clamp(8px,1.6cqw,14px)}
.stg h3{margin:0 0 clamp(4px,1.4cqh,10px);font:400 clamp(14px,5cqh,22px) Anton,Impact,sans-serif;color:#fff;letter-spacing:.02em}
.stg h4{margin:clamp(6px,2cqh,12px) 0 clamp(3px,1cqh,6px);font:600 clamp(9.5px,3cqh,12.5px) Archivo,sans-serif;text-transform:uppercase;letter-spacing:.06em;color:#b9d7f0}
.stt{display:grid;grid-template-columns:repeat(auto-fill,minmax(clamp(90px,13cqw,150px),1fr));gap:clamp(4px,1.2cqh,8px)}
.st{background:#1e1d25;border-radius:8px;padding:clamp(4px,1.4cqh,8px) clamp(6px,1cqw,10px);min-width:0}
.st b{display:block;font:400 clamp(15px,5.6cqh,26px)/1.1 Anton,Impact,sans-serif;color:var(--c);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st small{display:block;color:var(--muted);font-size:clamp(9px,2.9cqh,12px);line-height:1.25}
.sttab{width:100%;border-collapse:collapse;margin-top:clamp(6px,2cqh,12px);font-size:clamp(10px,3.1cqh,13px)}
.sttab th{text-align:left;color:#b9d7f0;font-weight:600;padding:3px 4px;border-bottom:1px solid #2c2b35}.sttab td{padding:3px 4px;border-bottom:1px solid #222129;color:#e6e3ee}
.sttab td:first-child{font-weight:700}
.drow,.stline{display:grid;grid-template-columns:minmax(0,9em) 1fr auto;align-items:center;gap:8px;font-size:clamp(10px,3.1cqh,13px);margin:clamp(2px,.8cqh,5px) 0}
.drow span:first-child,.stline span:first-child{color:#d9d6e3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drow em,.stline em{font-style:normal;font-weight:700;color:#fff;min-width:2.5em;text-align:right}
.stbar{display:block;height:clamp(5px,1.8cqh,9px);border-radius:5px;background:#2a2933;overflow:hidden}.stbar i{display:block;height:100%;border-radius:5px}.stbar.nob{background:none}
.stnone{color:var(--muted);font-size:clamp(10px,3.1cqh,13px);margin:4px 0}
body.play .st b{font-size:clamp(15px,5cqh,34px)}body.play .st small,body.play .sttab,body.play .drow,body.play .stline{font-size:clamp(9px,2.8cqh,17px)}
body.play .stg h3{font-size:clamp(14px,4.6cqh,30px)}body.play .stg h4{font-size:clamp(9.5px,2.7cqh,16px)}body.play .stsub{font-size:clamp(10px,3cqh,19px)}
/* statistiche: tre riquadri affiancati e alti uguali; a schermo intero riempiono lo spazio */
.ppage[data-page=stat]{min-height:100%;display:flex}
.stats{flex:1;display:flex;flex-direction:column;min-height:100%}
.stgrid{flex:1;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
@container (max-width:560px){.stgrid{grid-template-columns:1fr}}
.stg{display:flex;flex-direction:column;justify-content:flex-start;gap:clamp(4px,1.6cqh,12px)}
.stg h3,.stg h4{margin-bottom:0}
.stg .sttab{margin-top:0}
.stg .stlines{display:flex;flex-direction:column;gap:clamp(2px,1cqh,10px)}
.stg .deaths{flex:1;display:flex;flex-direction:column;justify-content:flex-start;gap:clamp(2px,1cqh,10px)}
body.play .stgrid{gap:clamp(8px,2.2cqh,22px)}
body.play .stg{padding:clamp(8px,2.6cqh,26px) clamp(10px,1.8cqw,24px)}
body.play .stt{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(4px,1.4cqh,14px)}
body.play .st{padding:clamp(4px,1.6cqh,16px) clamp(6px,1.2cqw,16px)}
body.play .st b{font-size:clamp(15px,6cqh,46px)}body.play .st small{font-size:clamp(9px,2.8cqh,18px)}
body.play .stg h3{font-size:clamp(14px,5cqh,36px)}body.play .stg h4{font-size:clamp(9.5px,2.6cqh,17px)}
body.play .sttab,body.play .drow,body.play .stline{font-size:clamp(9px,2.9cqh,19px)}
body.play .sttab td,body.play .sttab th{padding:clamp(3px,1cqh,10px) 4px}
body.play .stbar{height:clamp(5px,1.8cqh,14px)}
.stg .sttab{margin-top:clamp(6px,2cqh,14px)}
body.play .stg{gap:clamp(4px,2cqh,20px)}body.play .stg .stlines,body.play .stg .deaths{gap:clamp(2px,1.6cqh,16px)}
/* statistiche a schermo intero: le misure seguono l'altezza dello schermo, così i riquadri si riempiono anche sui monitor grandi */
body.play .st b{font-size:clamp(15px,6.2cqh,90px)}body.play .st small{font-size:clamp(9px,2.6cqh,34px)}
body.play .stg h3{font-size:clamp(14px,5cqh,64px)}body.play .stg h4{font-size:clamp(9.5px,2.4cqh,30px)}
body.play .sttab,body.play .drow,body.play .stline{font-size:clamp(9px,2.8cqh,36px)}
body.play .sttab td,body.play .sttab th{padding:clamp(3px,1.3cqh,20px) 4px}
body.play .stbar{height:clamp(5px,1.8cqh,22px)}
body.play .stats .thead h2{font-size:clamp(18px,7cqh,72px)}body.play .stsub{font-size:clamp(10px,2.8cqh,34px)}
body.play .st{padding:clamp(4px,1.4cqh,24px) clamp(6px,1.2cqw,24px)}
body.play .st b{font-size:clamp(15px,4.6cqh,90px)}body.play .st small{font-size:clamp(9px,1.95cqh,34px)}
body.play .stg h3{font-size:clamp(14px,3.8cqh,64px)}body.play .stg h4{font-size:clamp(9.5px,1.8cqh,30px)}
body.play .sttab,body.play .drow,body.play .stline{font-size:clamp(9px,2.1cqh,36px)}
body.play .sttab td,body.play .sttab th{padding:clamp(3px,.9cqh,20px) 4px}
body.play .stbar{height:clamp(5px,1.3cqh,22px)}
body.play .stats .thead h2{font-size:clamp(18px,5.5cqh,72px)}body.play .stsub{font-size:clamp(10px,2.2cqh,34px)}
body.play .st{padding:clamp(4px,1cqh,24px) clamp(6px,1cqw,24px)}
body.play .stg{padding:clamp(8px,2cqh,26px) clamp(10px,1.4cqw,24px);gap:clamp(4px,1.4cqh,20px)}
body.play .stt{gap:clamp(4px,1cqh,14px)}body.play .stg .stlines,body.play .stg .deaths{gap:clamp(2px,1.1cqh,16px)}

/* statistiche: allineamento preciso (stessa altezza per riquadri, intestazioni e righe in tutte e tre le colonne) */
.stg{--rh:clamp(20px,6.4cqh,34px);--h4:clamp(18px,5.4cqh,28px)}
body.play .stg{--rh:clamp(20px,4.4cqh,74px);--h4:clamp(18px,3.8cqh,60px)}
.st{display:flex;flex-direction:column;justify-content:center}
.st b,.st small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stt{grid-auto-rows:1fr}
.stsec,.stg .sttab{margin:0}
.stg h4,.sttab thead th{height:var(--h4);margin:0!important;padding:0 4px 3px!important;vertical-align:bottom;display:flex;align-items:flex-end;font:600 clamp(9.5px,3cqh,12.5px) Archivo,sans-serif;text-transform:uppercase;letter-spacing:.06em;color:#b9d7f0;border-bottom:1px solid #2c2b35;box-sizing:border-box}
.stg h4{padding-left:0!important}
.sttab thead th{display:table-cell}
body.play .stg h4,body.play .sttab thead th{font-size:clamp(9.5px,1.8cqh,30px)}
.sttab tbody tr{height:var(--rh)}.sttab tbody td{padding:0 4px!important;vertical-align:middle;border-bottom:1px solid #222129}
.deaths,.stlines{gap:0!important;margin:0!important}
.drow,.stline{height:var(--rh);margin:0!important;border-bottom:1px solid #222129}
.sttab thead th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.play .stg{--rh:clamp(20px,5.4cqh,90px);--h4:clamp(18px,4.4cqh,70px)}
.ppage[hidden]{display:none!important}
.danger{border:1px solid #5a2a2a;background:rgba(200,35,29,.06);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}.danger b{color:#ff8a80;font-size:14px}.danger small{color:var(--muted);font-size:12.5px;line-height:1.35}.danger .reset{margin-top:2px;align-self:flex-start}
/* album: i set vanno a capo invece di scorrere */
.asets{flex-wrap:wrap;overflow:visible;justify-content:flex-start}
/* se lo spazio è poco le carte non si schiacciano: la pagina scorre */
.agrid{min-height:230px}
/* il titolo Album resta sempre visibile */
@container (max-height:480px){.ahead h2{display:block}}

/* ---------- impostazioni nella schermata (passo 7) ---------- */
.ppage[data-page=set]{zoom:1!important}
.setpg .thead .btn{margin:0 0 0 auto;font-size:clamp(12px,4cqh,16px);min-height:0;padding:6px 14px}
.setgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,2.4cqh,18px) clamp(14px,3cqw,32px);margin:clamp(6px,2cqh,14px) 0}
@container (max-width:560px){.setgrid{grid-template-columns:1fr}}
.setgrid label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:clamp(11px,3.6cqh,15px);color:#e6e3ee}
.setgrid label.chk{flex-direction:row;align-items:center;gap:10px;font-weight:500}
.setgrid select{background:#1f1e27;color:#fff;border:1px solid #3a3946;border-radius:8px;padding:6px 10px;font:inherit}
.setgrid input[type=range]{accent-color:var(--gold)}
.setgrid .setnote{display:block;font-size:.8em;color:#a9a6b8;font-weight:400;margin-top:2px}
.zones.swipe{grid-template-columns:1fr;grid-template-rows:1fr 1fr}.zones.swipe span{justify-content:center;padding:0}.zones.swipe span:first-child{border-right:0;border-bottom:2px dashed rgba(255,255,255,.45);background:linear-gradient(0deg,transparent,rgba(255,111,78,.22))}.zones.swipe span:last-child{background:linear-gradient(180deg,transparent,rgba(80,170,255,.22))}
.setpg .danger{margin-top:clamp(6px,2cqh,14px)}
body.play .setgrid label{font-size:clamp(11px,3.2cqh,22px)}body.play .setpg .danger b{font-size:clamp(13px,3cqh,20px)}body.play .setpg .danger small{font-size:clamp(11px,2.6cqh,17px)}

/* ---------- pulizia della pagina (passo 8) ---------- */
header .side .fsbtn{margin:0}
.sndbtns{position:absolute;right:clamp(6px,1.4cqw,14px);bottom:clamp(6px,2cqh,14px);z-index:5;display:flex;gap:6px}
.sbtn{width:clamp(30px,10cqh,48px);height:clamp(30px,10cqh,48px);border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(15,14,20,.55);color:#fff;font:400 clamp(14px,5cqh,22px)/1 Archivo,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.sbtn.off{opacity:.55;text-decoration:line-through}.sbtn:hover{background:rgba(40,38,52,.75)}
.ov.panel~.sndbtns,.screen:has(.ov.panel:not([hidden])) .sndbtns{display:none}
.toasts{bottom:clamp(44px,14cqh,70px)!important}
.srec b{color:var(--gold)}
.sbtn{position:relative;font-size:clamp(15px,5.4cqh,24px);background:rgba(15,14,20,.7);border-color:rgba(255,255,255,.4);color:#fff}
.sbtn.off{opacity:.75;text-decoration:none}
.sbtn.sblang{font:800 clamp(11px,3.8cqh,16px)/1 Archivo,sans-serif;letter-spacing:.5px}.sbtn.sblang[hidden]{display:none}
.sbtn.off::after{content:"";position:absolute;left:22%;right:22%;top:50%;height:2.5px;background:#ff6f4e;transform:rotate(-45deg);border-radius:2px}
/* il premio del set resta sempre visibile */
@container (max-height:480px){.ainfo em{display:inline!important}}
.ainfo em{font-weight:600}.ainfo em.ok{font-weight:700}
/* iPhone/Android: niente selezione del testo, menu "Copia/Cerca", lente o evidenziazione grigia quando si tocca o si tiene premuto nel gioco */
.cab,.cab *,#zoom,#zoom *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;-webkit-tap-highlight-color:transparent}
.cab input,.cab textarea,.cab select{-webkit-user-select:auto!important;user-select:auto!important}
.cab img,#zoom img{-webkit-user-drag:none;pointer-events:auto}
.screen{touch-action:manipulation}
/* iPhone: niente selezione del testo in tutta la pagina (resta solo nei campi, es. codice di backup) */
html,body,body *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
input,textarea,select,textarea *{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}
.btn.cont{background:linear-gradient(180deg,#4ff0e6,#22b8ae);color:#05211f}.btn.cont:disabled{opacity:.45;filter:grayscale(.6);cursor:not-allowed}
.ov .conthint{font-size:clamp(9.5px,3.2cqh,14px)!important;opacity:.85}

/* ---------- guardaroba combinabile ---------- */
.whead{flex-wrap:wrap}
.wseg{display:flex;gap:4px;margin-left:auto}
.wseg button{border:1px solid #34323f;background:#1b1a22;color:#d9d6e3;border-radius:999px;padding:clamp(2px,.8cqh,5px) clamp(8px,1.4cqw,14px);font:600 clamp(10px,3.2cqh,14px) Archivo,sans-serif;cursor:pointer;white-space:nowrap}
.wseg button.on{background:var(--gold);border-color:var(--gold);color:#17120a}
.wbody{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,4.2fr);gap:clamp(6px,1.6cqw,16px)}
.wbody .sgrid{min-height:0}
.wprev{min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;border-radius:clamp(8px,2.4cqh,16px);padding:clamp(4px,1.4cqh,12px);
  background:radial-gradient(70% 18% at 50% 80%,rgba(255,216,74,.22),transparent 70%),radial-gradient(90% 70% at 50% 35%,#4a3560,#1d1b25 75%);border:1px solid #4a4058}
.wprev img{flex:1;min-height:0;width:100%;object-fit:contain;filter:drop-shadow(0 6px 6px rgba(0,0,0,.5))}
.wprev b{font:400 clamp(12px,4.2cqh,22px) Anton,Impact,sans-serif;color:#fff;line-height:1.1}
.wprev small{font-size:clamp(8.5px,2.7cqh,12.5px);color:var(--muted);line-height:1.25}
body.play .wseg button{font-size:clamp(10px,3cqh,20px)}body.play .wprev b{font-size:clamp(12px,4cqh,34px)}body.play .wprev small{font-size:clamp(8.5px,2.5cqh,17px)}
@container (max-height:480px){.wardpg .whead b{display:none}}

/* ---------- vignette di introduzione e finale ---------- */
.ov.story{z-index:12;background:#0d0b12!important;gap:clamp(4px,1.6cqh,12px);padding:clamp(6px,2.4cqh,18px)!important;cursor:pointer}
.sframe{position:relative;flex:1;min-height:0;aspect-ratio:800/320;max-width:100%;border:clamp(3px,1cqh,6px) solid #f4f1e8;border-radius:6px;box-shadow:0 0 0 2px #000,0 10px 30px rgba(0,0,0,.6);overflow:hidden;background:#000}
.sframe canvas{width:100%;height:100%;display:block}
.scap{position:absolute;left:clamp(6px,1.4cqw,14px);top:clamp(6px,2cqh,14px);max-width:min(62%,520px);background:#fff3c2;color:#1a1408;border:2px solid #000;border-radius:4px;box-shadow:3px 3px 0 #000;
  padding:clamp(4px,1.4cqh,10px) clamp(6px,1.2cqw,12px);font:700 clamp(10px,3.6cqh,20px)/1.3 Archivo,sans-serif;text-align:left}
.snum{position:absolute;right:8px;bottom:6px;font:400 clamp(10px,3.4cqh,16px) Anton,Impact,sans-serif;color:#fff;text-shadow:1px 1px 0 #000}
.sctrl{display:flex;gap:10px;flex:none}
.ov.story .btn{font-size:clamp(12px,4.4cqh,22px);min-height:clamp(28px,9cqh,48px);padding:0 clamp(12px,2.6cqw,24px)}
.ov.story.pop .sframe{animation:spop .35s ease-out}
@keyframes spop{from{transform:scale(.96) rotate(-.6deg);opacity:.4}to{transform:none;opacity:1}}
.stb{border:1px solid rgba(255,255,255,.28);background:rgba(15,14,20,.55);color:#fff;border-radius:999px;padding:2px 10px;font:600 clamp(10px,3.4cqh,14px) Archivo,sans-serif;cursor:pointer}
body.play .stb{font-size:clamp(10px,3cqh,20px)}

/* ---------- livello del giocatore ---------- */
.slvl{display:flex;align-items:center;gap:8px;justify-content:center}
.lvb{flex:none;display:inline-flex;align-items:center;justify-content:center;width:clamp(24px,8cqh,40px);height:clamp(24px,8cqh,40px);border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffe98a,#e0a516);color:#2a1a00;font:400 clamp(12px,4.6cqh,22px) Anton,Impact,sans-serif;border:2px solid #000;box-shadow:0 2px 0 #000}
.lvt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.lvt b{font:400 clamp(12px,4.2cqh,20px) Anton,Impact,sans-serif;color:#fff;letter-spacing:.02em}
.lvbar{display:block;width:clamp(90px,24cqw,220px);height:clamp(4px,1.6cqh,8px);border-radius:4px;background:#2a2933;overflow:hidden}.lvbar i{display:block;height:100%;background:linear-gradient(90deg,#ffd84a,#ff8a2a)}
.lvt small{font-size:clamp(8.5px,2.8cqh,12.5px);color:#b9d7f0}
.elvl{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:clamp(4px,2cqh,8px)}
.elvl em{font-style:normal;font:400 clamp(12px,4.4cqh,20px) Anton,Impact,sans-serif;color:#ffd84a}
.elvl .eup{flex-basis:100%;font-size:clamp(9px,3cqh,13px);font-weight:700;color:#5fd16a}
.toast.lvlt .lvb{width:26px;height:26px;font-size:14px}
.sgift{display:flex;align-items:center;gap:12px;background:linear-gradient(90deg,rgba(255,216,74,.16),rgba(255,216,74,.04));border:1px solid #6d5a1d;border-radius:12px;padding:8px 12px;margin-bottom:10px}
.sgift>span{font-size:26px}.sgift div{flex:1}.sgift b{display:block;color:#fff}.sgift small{color:var(--muted)}.sgift .btn{margin:0}
body.play .lvt b{font-size:clamp(12px,3.8cqh,30px)}body.play .lvt small{font-size:clamp(8.5px,2.5cqh,18px)}
.ngbtn{border:1px solid #4b5a9a;background:rgba(30,36,80,.7);color:#c9d4ff;border-radius:999px;padding:3px 12px;font:600 clamp(10px,3.4cqh,14px) Archivo,sans-serif;cursor:pointer}
.ngbtn.on{background:linear-gradient(90deg,#2a3577,#4b3a8f);color:#fff;border-color:#9fb0ff;box-shadow:0 0 12px rgba(140,160,255,.45)}
body.play .ngbtn{font-size:clamp(10px,3cqh,20px)}
