
:root{color-scheme:dark;--lime:#dfff5a;--bg:#100d18;--ink:#fff9ea;--muted:#c7bacf;--line:#736589}
:root{--friend-height:100dvh}
.f-count-cancel{position:fixed;right:max(14px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top));z-index:2147483001;box-shadow:0 4px 20px #0008}
*{box-sizing:border-box}body{margin:0;min-height:100vh;font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:radial-gradient(ellipse at 75% 12%,#35254c,transparent 47%),var(--bg)}
[hidden]{display:none!important}button,input,select{font:inherit}a{color:var(--lime)}button{cursor:pointer}
.f-header{display:flex;align-items:center;gap:20px;padding:15px max(18px,calc((100% - 1180px)/2));border-bottom:1px solid #ffffff24}
.f-logo{font-weight:1000;font-size:24px;letter-spacing:-.065em;text-decoration:none;color:white;white-space:nowrap}.f-logo span{color:var(--lime)}
.f-tag{color:#ae9ec3;font-weight:800;font-size:12px;letter-spacing:.09em}.f-back{margin-left:auto;color:#e2daec;text-decoration:none;font-weight:900;font-size:13px;white-space:nowrap}
.f-wrap{max-width:1180px;margin:0 auto;padding:24px 18px 80px}
.f-eyebrow{font-weight:950;letter-spacing:.14em;color:var(--lime);font-size:11px}.f-hero h1{font-size:clamp(37px,7vw,78px);line-height:1;letter-spacing:-.065em;margin:8px 0 12px}.f-hero h1 em{font-style:normal;color:var(--lime)}
.f-hero p{color:#d3c7de;max-width:750px;font-size:17px;margin-bottom:23px}
.f-layout{display:grid;grid-template-columns:minmax(300px,390px) minmax(0,1fr);gap:20px;align-items:start}
.f-panel,.f-stage,.f-info{background:linear-gradient(130deg,#292039,#16121f);border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 45px #0003}
.f-setup{padding:22px}.f-setup h2{margin:0 0 19px;font-size:20px;letter-spacing:-.035em}
.f-setup fieldset{border:0;padding:0;margin:0 0 19px}.f-setup legend,.f-setup label,.f-select-label{font-size:12px;letter-spacing:.06em;font-weight:950;color:#f2e8f4}
.f-setup legend{margin-bottom:9px}
.f-options{display:flex;gap:8px}.f-options label{display:flex;flex:1;justify-content:center;align-items:center;text-align:center;background:#1b1425;border:1px solid #9585aa;border-radius:12px;min-height:66px;padding:9px 10px;position:relative;cursor:pointer}
.f-options input{opacity:0;position:absolute;width:1px;height:1px}.f-options label:has(input:checked){background:var(--lime);color:#202515;border-color:var(--lime)}
.f-options label:has(input:focus-visible){outline:3px solid #96d8ff;outline-offset:2px}.f-options b{display:block;font-size:14px;line-height:1.2}.f-options small{display:block;font-size:11px;opacity:.75}
.f-names{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:4px 0 20px}.f-names label{min-width:0}
.f-setup input:not([type="radio"]),.f-setup select{width:100%;min-width:0;min-height:45px;background:#0d0b14;border:1px solid #9e90ac;border-radius:11px;color:white;padding:11px 12px;display:block;margin-top:7px;font-size:15px}
.f-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.f-fields label{min-width:0}
.f-select-label{display:block}.f-meta{color:#bcb0c9;font-size:12px;line-height:1.55;margin:8px 0 18px}
.f-buttons{display:grid;grid-template-columns:1fr auto;gap:9px}.f-primary,.f-secondary{min-height:50px;padding:12px 18px;border:0;border-radius:12px;font-weight:950;font-size:14px;letter-spacing:.01em}
.f-primary{background:var(--lime);color:#1b2012;box-shadow:0 5px 18px #9cca2426}.f-secondary{background:#372c48;border:1px solid #a69ab9;color:#fff9ee}.f-secondary:disabled,.f-primary:disabled{opacity:.46;cursor:wait}
.f-muted{font-size:12px;color:#bfb2c9;margin:15px 0 0}
.f-stage-wrap{min-width:0}
.f-stage{min-height:510px;padding:28px 24px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;text-align:center;border:2px solid #aa8fc5;background:radial-gradient(ellipse at 45% 25%,#513567,#241a35 70%);}
.f-stage:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 20px,#ffffff05 20px 21px);pointer-events:none}
.f-stage>*{z-index:1}.f-round{font-size:13px;font-weight:850;letter-spacing:.13em;color:#d9c8e1}
.f-mc{font-size:clamp(23px,4.2vw,42px);font-weight:1000;color:#fff;letter-spacing:-.035em;line-height:1.06;overflow-wrap:anywhere}
.f-cue-label{font-size:12px;font-weight:900;color:#cdb1e8;letter-spacing:.13em}
.f-cue{font-size:clamp(33px,6vw,74px);font-weight:1000;color:var(--lime);letter-spacing:-.055em;line-height:1.08;text-shadow:0 4px #0d0a15;min-height:1.18em;text-wrap:balance;overflow-wrap:anywhere;max-width:100%;padding:0 8px}
.f-cue.is-new{animation:cueIn .24s ease-out}@keyframes cueIn{from{transform:scale(.96);opacity:.65}to{transform:scale(1);opacity:1}}
.f-timer{font-size:clamp(33px,5vw,57px);font-weight:950;line-height:1;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.f-meter{height:9px;width:min(450px,85%);border-radius:99px;overflow:hidden;background:#ffffff25}.f-meter div{height:100%;width:100%;background:var(--lime);transition:width .12s linear}
.f-turns{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.f-pill{border:1px solid #b4a5c5;background:#171421;border-radius:99px;padding:8px 13px;font-size:12px;font-weight:900;color:#ded2e8;overflow-wrap:anywhere;max-width:180px}.f-pill.active{background:var(--lime);color:#1b2012;border-color:var(--lime)}.f-pill.complete{opacity:.6}
.f-skip{min-height:41px;padding:9px 13px;font-size:12px}
.f-status{font-weight:750;font-size:14px;color:#ded2ec;text-align:center;min-height:34px;margin:12px}
.f-info{padding:18px 20px}.f-info strong{font-size:13px;color:var(--lime)}.f-info p{margin:7px 0 0;color:#c4b8cd;font-size:14px}
@media(prefers-reduced-motion:reduce){.f-cue.is-new{animation:none}.f-meter div{transition:none}}
@media(max-width:800px){.f-layout{grid-template-columns:1fr}.f-stage{min-height:385px}}
@media(max-width:460px){.f-header{gap:8px}.f-tag{display:none}.f-wrap{padding:22px 14px 70px}.f-setup{padding:17px}.f-names,.f-fields{grid-template-columns:1fr}.f-stage{padding:22px 13px;min-height:365px}.f-mc{font-size:29px}.f-cue{font-size:clamp(30px,9vw,45px)}.f-buttons{grid-template-columns:1fr 94px}.f-primary,.f-secondary{font-size:12px;padding:10px}}

/* Local battle stage: one clear destination for setup, play and the next round. */
.f-benefits{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0 30px}.f-benefits span{font-size:10px;letter-spacing:.08em;font-weight:900;border:1px solid #a890c24d;padding:9px 13px;border-radius:99px;color:#e5d7f3;background:#21172f}
.f-preview{width:100%;margin:0 0 14px;background:#29213b}.f-next{font-size:11px;letter-spacing:.07em;font-weight:900;color:#d6c8e4}.f-live-controls,.f-result-controls{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:8px;width:100%}.f-live-controls>button{flex:1;max-width:210px;min-width:90px}.f-result-controls>button{flex:1;min-width:160px}.f-live-controls .f-secondary{min-height:48px;font-size:12px}.f-live-controls #friendStageStop{background:#301e31;border-color:#b48a9e}.f-stage:focus{outline:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #8fdaff;outline-offset:4px}
.friends-stage .f-header,.friends-stage .f-hero,.friends-stage .f-setup,.friends-stage .f-info{display:none}
.friends-stage>footer.rf-site-footer{display:none}
.friends-stage #rfCookieBanner{position:relative;inset:auto;transform:none;width:auto;max-width:650px;margin:16px auto}
.friends-stage .f-wrap{max-width:1100px;padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));margin:auto}
.friends-stage .f-layout{display:block}.friends-stage .f-stage-wrap{min-height:calc(var(--friend-height) - 24px);display:flex;flex-direction:column;justify-content:center}
.friends-stage .f-stage{--accent:#dfff5a;--glow:#6e872d;flex:1;min-height:0;gap:clamp(8px,1.6vh,16px);padding:clamp(16px,3vh,30px) clamp(12px,3vw,40px);border-color:var(--accent);background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--glow) 40%,#191120),#191120 72%);box-shadow:inset 0 1px #ffffff25,0 20px 75px #0005}
.friends-stage .f-stage[data-player="1"]{--accent:#9cdbff;--glow:#366a8b}.friends-stage .f-stage[data-player="2"]{--accent:#f3b5ff;--glow:#874a96}
.friends-stage .f-cue{color:var(--accent);font-size:clamp(30px,5.7vw,76px);max-width:900px}.friends-stage .f-meter div,.friends-stage .f-pill.active{background:var(--accent)}.friends-stage .f-pill.active{border-color:var(--accent)}.friends-stage .f-mc{font-size:clamp(25px,4vw,48px)}.friends-stage .f-timer{font-size:clamp(40px,7vh,80px)}
.friends-stage .f-status{margin:10px 8px 0;min-height:22px;font-size:13px}.friends-stage .f-round{color:var(--accent)}.friends-stage .f-stage.is-last-seconds .f-timer{color:#ffb88e}
.friends-paused .f-stage{border-style:dashed}.friends-paused .f-round:before{content:'EN PAUSA · '}.friends-paused .f-cue{opacity:.65}.friends-paused #friendPause{background:var(--lime);color:#1b2012;border-color:var(--lime)}
@media(min-width:801px){body:not(.friends-stage) .f-stage-wrap{position:sticky;top:20px}}
@media(max-width:460px){.f-benefits{gap:6px}.f-benefits span{font-size:9px}.friends-stage .f-wrap{padding:8px}.friends-stage .f-stage-wrap{min-height:calc(var(--friend-height) - 16px)}.friends-stage .f-stage{border-radius:20px}.friends-stage .f-cue{font-size:clamp(29px,9vw,42px)}.f-live-controls{gap:6px}.f-live-controls>button{min-width:0;padding:9px 6px;font-size:10px}.f-result-controls{gap:8px}.f-result-controls>button{min-width:130px}.friends-stage .f-pill{font-size:10px;padding:5px 9px;max-width:135px}}
@media(max-height:550px){.friends-stage .f-stage{gap:6px;padding:12px 16px}.friends-stage .f-stage>.f-eyebrow,.friends-stage .f-cue-label,.friends-stage .f-turns{display:none}.friends-stage .f-mc{font-size:24px}.friends-stage .f-cue{font-size:clamp(24px,5vw,38px)}.friends-stage .f-timer{font-size:32px}.friends-stage .f-live-controls,.friends-stage .f-result-controls{margin-top:0}.friends-stage .f-status{font-size:11px;margin-top:6px}.friends-stage .f-meter{height:5px}.friends-stage .f-round{font-size:10px}}
