*{box-sizing:border-box;margin:0;padding:0}
html,body{width:100%;height:100%;overflow:hidden;background:#0b0907;font-family:Inter,system-ui,sans-serif;color:#f4e6cc;user-select:none}
#game,#game canvas{position:fixed;inset:0;width:100%;height:100%;display:block}
.hidden{display:none!important}
.panel{position:fixed;background:rgba(28,20,14,.72);backdrop-filter:blur(6px);border:1px solid rgba(240,210,160,.18);border-radius:12px;padding:12px 14px;box-shadow:0 6px 24px rgba(0,0,0,.35)}
.panel small{display:block;font-size:10px;letter-spacing:.14em;opacity:.7;font-weight:600}
.panel b{font-size:26px;font-weight:800}
.row{display:flex;gap:22px;align-items:baseline;justify-content:space-between}
.row.sm{font-size:12px;opacity:.85;margin-top:4px}
.bar{display:flex;align-items:center;gap:10px;margin-top:8px}
.bar small{width:58px}
.bar i{flex:1;height:8px;background:rgba(255,255,255,.12);border-radius:5px;overflow:hidden;display:block;min-width:140px}
.bar u{display:block;height:100%;width:100%;background:linear-gradient(90deg,#5fb94a,#a4d65e);transition:width .15s}
.bar u.en{background:linear-gradient(90deg,#d6a43a,#f2cf6b)}
#stats{left:18px;top:18px}
#bullPanel{right:18px;top:18px;width:250px}
#bullPanel b{font-size:16px;letter-spacing:.12em}
#bState{font-size:13px;color:#ffcf8a}
#room{left:18px;top:150px;font-size:12px;line-height:1.6;max-width:260px}
#room b{font-size:14px}
#minimap{position:fixed;right:18px;bottom:18px;border-radius:10px;background:rgba(28,20,14,.6);border:1px solid rgba(240,210,160,.2)}
#msg{position:fixed;left:50%;top:22%;transform:translateX(-50%);font-family:Rye,Georgia,serif;font-size:46px;color:#fff3d6;text-shadow:0 3px 18px rgba(0,0,0,.7),0 0 2px #000;text-align:center;pointer-events:none;transition:opacity .4s;opacity:0;white-space:nowrap}
#msg.on{opacity:1}
#msg small{display:block;font-family:Inter;font-size:16px;letter-spacing:.2em;margin-top:6px;opacity:.85}
#popups{position:fixed;left:50%;top:40%;pointer-events:none}
.pop{position:absolute;transform:translateX(-50%);font-weight:800;font-size:28px;color:#ffd76a;text-shadow:0 2px 10px rgba(0,0,0,.8);animation:pop 1.6s ease-out forwards;white-space:nowrap}
.pop.bad{color:#ff5a4a}
.pop small{font-size:15px;color:#fff;display:block;text-align:center}
@keyframes pop{0%{opacity:0;transform:translate(-50%,10px) scale(.6)}15%{opacity:1;transform:translate(-50%,0) scale(1.15)}30%{transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-70px)}}
#hint{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);font-size:12px;opacity:.75;background:rgba(0,0,0,.35);padding:6px 12px;border-radius:8px;white-space:nowrap}
#vignette{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,rgba(0,0,0,0) 45%,rgba(150,0,0,.85) 100%);opacity:0;transition:opacity .25s}
#downOverlay{position:fixed;left:50%;top:60%;transform:translateX(-50%);text-align:center;pointer-events:none}
#downOverlay b{display:block;font-family:Rye,serif;font-size:56px;color:#ff4a3a;text-shadow:0 3px 20px #000}
#downOverlay span{font-size:16px}
.screen{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,rgba(20,12,6,.35),rgba(10,6,3,.85));z-index:20;overflow:auto;padding:20px}
.card{background:rgba(30,21,14,.88);border:1px solid rgba(240,210,160,.25);border-radius:18px;padding:28px 30px;width:min(680px,100%);box-shadow:0 20px 60px rgba(0,0,0,.6)}
.card.small{width:min(420px,100%);text-align:center;display:flex;flex-direction:column;gap:10px}
.brand{text-align:center;margin-bottom:18px}
.brand small{letter-spacing:.3em;font-size:11px;opacity:.7}
.brand h1{font-family:Rye,Georgia,serif;font-size:58px;font-weight:400;color:#ffe2a8;text-shadow:0 4px 0 #6b1d10;line-height:1.1;margin:6px 0}
.brand p{opacity:.8;letter-spacing:.1em}
h2{font-family:Rye,serif;font-weight:400;font-size:32px;color:#ffe2a8;margin-bottom:8px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
label{display:flex;flex-direction:column;gap:5px;font-size:12px;letter-spacing:.06em;opacity:.95}
label.chk{flex-direction:row;align-items:center;gap:8px;font-size:14px}
input,select{background:#1a120c;border:1px solid rgba(240,210,160,.3);color:#f4e6cc;border-radius:8px;padding:9px 10px;font:inherit;font-size:14px}
input[type=range]{padding:0;accent-color:#d6a43a}
button{background:#3b2a1c;color:#f4e6cc;border:1px solid rgba(240,210,160,.35);border-radius:10px;padding:12px 18px;font:inherit;font-weight:700;font-size:15px;cursor:pointer;transition:transform .1s,background .2s}
button:hover{background:#4d3724;transform:translateY(-1px)}
button.primary{background:linear-gradient(#e7c27a,#c99a45);color:#2a1a0c;border-color:#f3d79c}
.actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.join{display:flex;gap:10px;margin-top:12px}.join input{flex:1;text-transform:uppercase;letter-spacing:.2em}
#menuErr{color:#ff8a7a;margin-top:10px;font-size:14px;min-height:18px}
details{margin-top:14px;font-size:13px;line-height:1.55;opacity:.9}details p{margin-top:8px}summary{cursor:pointer;font-weight:600}
#resBody{text-align:left;line-height:1.9;font-size:15px;margin:6px 0 10px}
#resBody b{float:right}
#pauseRoom{font-size:13px;opacity:.85;margin-top:6px;word-break:break-all}
#cross{position:fixed;left:50%;top:50%;width:4px;height:4px;margin:-2px;border-radius:50%;background:rgba(255,255,255,.5)}
@media (max-width:700px){.grid,.actions{grid-template-columns:1fr}.brand h1{font-size:40px}#hint{display:none}}

/* ===== HUD estilo cartel de fiestas ===== */
#cartel{position:fixed;left:50%;top:14px;transform:translateX(-50%);text-align:center;pointer-events:none;filter:drop-shadow(0 6px 14px rgba(0,0,0,.45))}
#cartel .senyera{height:8px;width:300px;margin:0 auto;border-radius:4px 4px 0 0;background:repeating-linear-gradient(180deg,#ffd100 0 2px,#c8102e 2px 4px)}
.cartel-in{background:#f4e6c8;color:#3a1408;border:3px solid #7e1d12;border-top:none;border-radius:0 0 18px 18px;padding:6px 26px 10px;width:300px;margin:0 auto;display:flex;flex-direction:column;align-items:center}
.cartel-in span{font-size:11px;letter-spacing:.28em;font-weight:800;color:#7e1d12}
.cartel-in b{font-family:Rye,Georgia,serif;font-size:40px;line-height:1.05;color:#2a0d05}
#bInfo{letter-spacing:.12em!important;font-weight:600!important;color:#6b4a2e!important;text-transform:uppercase}
.chip{display:inline-block;margin-top:8px;padding:5px 14px;border-radius:999px;background:#2a1a0e;color:#ffd98a;font-weight:800;font-size:13px;letter-spacing:.06em;border:1px solid rgba(255,217,138,.4)}
.chip.danger{background:#c8102e;color:#fff;border-color:#ffb3a8;animation:pulse .5s infinite alternate}
@keyframes pulse{from{transform:scale(1)}to{transform:scale(1.08)}}
#medal{position:fixed;left:20px;bottom:20px;width:132px;height:132px;pointer-events:none;filter:drop-shadow(0 6px 16px rgba(0,0,0,.5))}
#medal svg{width:100%;height:100%;transform:rotate(-90deg)}
#medal circle{fill:none;stroke-linecap:round}
#medal .trk{stroke:rgba(20,10,5,.75);stroke-width:12}
#medal .trk2{stroke:rgba(20,10,5,.55);stroke-width:7}
#medal .hp{stroke:#e2453a;stroke-width:10;stroke-dasharray:326.7;transition:stroke-dashoffset .2s}
#medal .en{stroke:#f2c14e;stroke-width:6;stroke-dasharray:270.2;transition:stroke-dashoffset .15s}
.medal-in{position:absolute;inset:24px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff6df,#e8cf9c);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#3a1408;border:2px solid #7e1d12}
.medal-in small{font-size:9px;letter-spacing:.2em;font-weight:800;color:#7e1d12}
.medal-in b{font-family:Rye,serif;font-size:24px;line-height:1}
#combo{position:absolute;left:118px;top:6px;font-family:Rye,serif;font-size:22px;color:#ffd76a;text-shadow:0 2px 8px #000;white-space:nowrap}
#tally{position:fixed;left:160px;bottom:28px;display:flex;gap:8px;pointer-events:none}
#tally span{background:rgba(30,18,10,.78);border:1px solid rgba(255,217,138,.25);border-radius:10px;padding:6px 10px;font-size:14px;color:#ffe3a8}
#tally b{color:#fff}
#meter{position:fixed;left:50%;bottom:70px;transform:translateX(-50%);width:380px;text-align:center;pointer-events:none}
.mtrack{position:relative;height:14px;border-radius:8px;background:rgba(20,10,5,.75);border:1px solid rgba(255,255,255,.2);overflow:hidden}
#mWin{position:absolute;top:0;bottom:0;background:linear-gradient(90deg,#3d9a3d,#7fd36a);opacity:.85}
#mDot{position:absolute;top:-3px;width:6px;height:20px;margin-left:-3px;background:#fff;border-radius:3px;box-shadow:0 0 8px #fff}
#mTxt{display:block;margin-top:6px;font-family:Rye,serif;font-size:24px;color:#fff;text-shadow:0 2px 10px #000}
#mTxt.go{color:#8dff7a}
#goals{position:fixed;right:18px;top:16px;width:250px;background:rgba(244,230,200,.93);color:#3a1408;border:2px solid #7e1d12;border-radius:14px;padding:10px 14px;pointer-events:none;box-shadow:0 8px 22px rgba(0,0,0,.35)}
#goals h4{font-family:Rye,serif;font-weight:400;font-size:16px;color:#7e1d12;margin-bottom:6px}
#goals li{list-style:none;font-size:13px;padding:3px 0;display:flex;gap:8px;align-items:center}
#goals li i{width:15px;height:15px;border:2px solid #7e1d12;border-radius:4px;flex:none;display:inline-block}
#goals li.done{color:#2f7a2f;text-decoration:line-through}
#goals li.done i{background:#2f7a2f;border-color:#2f7a2f}
#goals li em{margin-left:auto;font-style:normal;font-weight:800;font-size:12px;color:#7e1d12}
#room{position:fixed;right:18px;top:auto;bottom:180px;width:250px;background:rgba(30,18,10,.8);border:1px solid rgba(255,217,138,.25);border-radius:12px;padding:10px 12px;font-size:13px;line-height:1.6}
#minimap{border-radius:50%!important;border:3px solid #7e1d12!important;background:rgba(244,230,200,.18)!important}
@media (max-width:1150px){#goals{top:auto;bottom:185px;width:230px}#room{bottom:auto;top:16px}}
@media (max-width:950px){#hint{display:none}#goals{display:none}}

/* ===== MÓVIL / TÁCTIL ===== */
html,body{touch-action:none;-webkit-user-select:none;-webkit-touch-callout:none}
#touch{position:fixed;inset:0;z-index:5;pointer-events:none;display:none}
body.touch #touch{display:block}
body.touch #hint,body.touch #cross{display:none}
#tStickZone{position:absolute;left:0;bottom:0;width:42%;height:62%;pointer-events:auto}
#tLook{position:absolute;right:0;top:0;width:58%;height:100%;pointer-events:auto}
#tStick{position:fixed;left:110px;bottom:auto;top:calc(100% - 120px);width:116px;height:116px;margin:-58px 0 0 -58px;border-radius:50%;background:rgba(255,240,210,.12);border:2px solid rgba(255,240,210,.35);opacity:.55;pointer-events:none}
#tStick.on{opacity:1}
#tKnob{position:absolute;left:50%;top:50%;width:50px;height:50px;margin:-25px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff4dc,#d6a43a);box-shadow:0 3px 10px rgba(0,0,0,.5)}
#tBtns{position:absolute;right:calc(10px + env(safe-area-inset-right));bottom:calc(10px + env(safe-area-inset-bottom));width:300px;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;pointer-events:auto;z-index:2}
#tBtns button{padding:0;height:46px;border-radius:14px;font-size:11px;font-weight:800;letter-spacing:.03em;background:rgba(30,18,10,.72);color:#ffe7b5;border:1.5px solid rgba(255,217,138,.45);line-height:1.05;backdrop-filter:blur(3px)}
#tBtns button small{font-size:9px;opacity:.8}
#tBtns .big{grid-column:3/5;grid-row:1/3;height:auto;font-size:17px;border-radius:50%;aspect-ratio:1}
#tBtns .mid{height:54px;font-size:12px}
#tBtns .red{background:radial-gradient(circle at 35% 30%,#e24a3a,#8f1d12);color:#fff;border-color:#ffb3a8}
#tBtns .gold{background:rgba(120,85,20,.75)}
#tBtns .lit{background:#d6a43a;color:#2a1a0c}
#tBtns button.down{transform:scale(.92);filter:brightness(1.3)}
#tPause,#tFull{position:absolute;top:calc(8px + env(safe-area-inset-top));width:40px;height:40px;padding:0;border-radius:12px;pointer-events:auto;font-size:15px;background:rgba(30,18,10,.7)}
#tPause{left:calc(8px + env(safe-area-inset-left))}#tFull{left:calc(54px + env(safe-area-inset-left))}
#rotate{display:none}
@media (orientation:portrait) and (pointer:coarse){#rotate{display:flex;position:fixed;left:8px;right:8px;top:auto;bottom:calc(10px + env(safe-area-inset-bottom));z-index:50;justify-content:center;pointer-events:none}#rotate>div{pointer-events:auto;background:rgba(20,12,6,.92);border:1px solid rgba(240,210,160,.35);border-radius:14px;padding:8px 10px;font-size:13px;display:flex;align-items:center;gap:8px;color:#f4e6cc}#rotate button{padding:6px 10px;font-size:12px}}
#rotate.off{display:none!important}
/* HUD más pequeño en móvil */
body.touch #cartel{top:6px;transform:translateX(-50%) scale(.68);transform-origin:top center}
body.touch #medal{left:auto;right:auto;top:calc(54px + env(safe-area-inset-top));left:calc(8px + env(safe-area-inset-left));bottom:auto;width:78px;height:78px}
body.touch .medal-in{inset:14px}body.touch .medal-in b{font-size:15px}body.touch .medal-in small{font-size:7px}
body.touch #combo{left:84px;top:4px;font-size:15px}
body.touch #tally{left:calc(92px + env(safe-area-inset-left));top:calc(84px + env(safe-area-inset-top));bottom:auto;gap:4px}
body.touch #tally span{padding:3px 6px;font-size:11px}
body.touch #minimap{right:calc(8px + env(safe-area-inset-right));top:calc(8px + env(safe-area-inset-top));bottom:auto;width:120px;height:90px}
body.touch #goals{display:block;top:calc(104px + env(safe-area-inset-top));right:calc(8px + env(safe-area-inset-right));bottom:auto;width:170px;padding:6px 8px;border-radius:10px}
body.touch #goals h4{font-size:11px;margin-bottom:2px}body.touch #goals li{font-size:10px;padding:1px 0}body.touch #goals li i{width:10px;height:10px}body.touch #goals li em{font-size:9px}
body.touch #meter{bottom:auto;top:44%;width:240px}body.touch #mTxt{font-size:17px}
body.touch #msg{font-size:28px;top:26%}body.touch #msg small{font-size:12px}
body.touch .pop{font-size:19px}body.touch #popups{top:34%}
body.touch #room{display:none}
body.touch #downOverlay b{font-size:36px}
body.touch .card{padding:16px 18px}body.touch .brand h1{font-size:38px}
@media (max-height:420px){body.touch #goals{display:none}body.touch #tBtns{width:260px}body.touch #tBtns button{height:40px}body.touch #tBtns .mid{height:46px}}
.rank{margin-top:14px;text-align:left}.rank h3{font-family:Rye,serif;font-weight:400;color:#ffe2a8;font-size:18px;margin-bottom:6px}
.rank ol{padding-left:22px;font-size:13px;line-height:1.7;max-height:190px;overflow:auto}.rank li b{float:right;color:#ffd76a}.rank li.me{color:#8dff7a}
#programa{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:15;pointer-events:none}
.prog-card{pointer-events:auto;width:min(380px,90vw);background:#f4e6c8;color:#3a1408;border:3px solid #7e1d12;border-radius:16px;padding:0 20px 14px;box-shadow:0 20px 60px rgba(0,0,0,.6);text-align:center;font-family:Georgia,serif}
.prog-card .senyera{height:10px;margin:0 -20px 10px;border-radius:12px 12px 0 0;background:repeating-linear-gradient(180deg,#ffd100 0 2px,#c8102e 2px 4px)}
.prog-card h3{font-family:Rye,serif;font-weight:400;font-size:26px;color:#7e1d12}
.prog-card small{letter-spacing:.16em;font-size:10px;font-weight:700;color:#6b4a2e}
.prog-card ol{list-style:none;margin:12px 0 4px;text-align:left}
.prog-card li{display:flex;gap:10px;align-items:baseline;padding:6px 4px;border-bottom:1px dashed rgba(126,29,18,.35);font-size:16px;font-weight:700}
.prog-card li i{font-style:normal;width:18px;color:#7e1d12}.prog-card li span{margin-left:auto;font-size:12px;font-weight:600;color:#6b4a2e}
.prog-card li.done{text-decoration:line-through;opacity:.55}.prog-card li.now{color:#c8102e}
.prog-hint{font-size:11px;opacity:.6;margin-top:6px}
#tProg{position:absolute;top:calc(8px + env(safe-area-inset-top));left:calc(100px + env(safe-area-inset-left));height:40px;padding:0 10px;border-radius:12px;pointer-events:auto;font-size:12px;background:rgba(30,18,10,.7)}
body.touch #programa .prog-card{transform:scale(.85)}
#tip{position:fixed;left:50%;bottom:120px;transform:translateX(-50%) translateY(20px);max-width:min(560px,80vw);background:rgba(244,230,200,.95);color:#3a1408;border:2px solid #7e1d12;border-radius:12px;padding:10px 16px;font-size:15px;font-weight:600;line-height:1.35;opacity:0;transition:all .4s;pointer-events:none;text-align:center}
#tip.on{opacity:1;transform:translateX(-50%) translateY(0)}#tip small{display:block;font-size:10px;letter-spacing:.2em;color:#7e1d12;margin-bottom:3px}
body.touch #tip{bottom:auto;top:40%;font-size:12px;max-width:52vw}
.settings{display:grid;gap:8px;text-align:left;margin-top:6px}.settings label{font-size:12px}
.logros{text-align:left;margin-top:10px}.logros h3{font-family:Rye,serif;font-weight:400;color:#ffe2a8;font-size:18px}
#logroList{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}#logroList span{font-size:12px;padding:4px 8px;border-radius:8px;background:rgba(255,255,255,.06);opacity:.55}#logroList span.ok{opacity:1;background:rgba(214,164,58,.25)}
body.touch .card.small{max-height:92vh;overflow:auto}
/* botones táctiles simplificados (v2) */
#tBtns{width:252px!important;grid-template-columns:1fr 1fr 1.3fr!important;gap:8px!important;align-items:end}
#tBtns .ctx{display:none;height:38px!important;font-size:12px!important;border-radius:999px!important;background:rgba(244,230,200,.9)!important;color:#5a1a0c!important;border-color:#7e1d12!important}
#touch.jk-on #tBtns .jk,#touch.help-on #tBtns .hp{display:block}
#tBtns .hp{grid-column:1/4}
#tBtns .mid{height:66px!important;border-radius:50%!important;aspect-ratio:1;width:66px;justify-self:center;font-size:22px!important;line-height:1!important}
#tBtns .mid small{display:block;font-size:8.5px!important;letter-spacing:.05em;margin-top:2px}
#tBtns .big{grid-column:3!important;grid-row:auto / span 2!important;font-size:15px!important;line-height:1.1!important;width:100%}
#touch.jk-on #tBtns .jkbtn{background:#d6a43a!important;color:#2a1a0c!important}
@media (max-height:420px){#tBtns{width:230px!important}#tBtns .mid{height:58px!important;width:58px}}
/* consejos cerrables */
#tip{pointer-events:auto!important;padding-right:38px!important}
#tip button{position:absolute;right:6px;top:6px;width:26px;height:26px;padding:0;border-radius:50%;font-size:14px;background:#7e1d12;color:#fff;border:none}
#tip .tip-off{display:block;margin-top:6px;font-size:11px;color:#7e1d12;text-decoration:underline;cursor:pointer}
/* banner instalar app */
#install{display:none;margin-top:14px;padding:12px 14px;border-radius:12px;background:linear-gradient(135deg,#7e1d12,#b8321f);color:#fff;align-items:center;gap:12px;text-align:left;font-size:13px;line-height:1.35}
#install.on{display:flex}#install img{width:46px;height:46px;border-radius:11px;flex:none}
#install b{display:block;font-size:15px}#install .ib{margin-left:auto;display:flex;flex-direction:column;gap:6px}
#install button{padding:8px 12px;font-size:13px}#install .x{background:transparent;border:none;color:#fff;opacity:.7;padding:2px}
/* nivel y resumen */
#lvl{margin:10px 0 0;text-align:center;font-size:13px}#lvl b{color:#ffd76a;font-family:Rye,serif;font-weight:400;font-size:18px}
#lvl i{display:block;height:6px;border-radius:4px;background:rgba(255,255,255,.12);margin:6px auto 0;max-width:320px;overflow:hidden}#lvl u{display:block;height:100%;background:linear-gradient(90deg,#d6a43a,#ffd76a)}
#resumen{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(.9);opacity:0;transition:all .35s;pointer-events:none;z-index:14;background:#f4e6c8;color:#3a1408;border:3px solid #7e1d12;border-radius:16px;padding:16px 22px;text-align:center;min-width:280px;box-shadow:0 20px 60px rgba(0,0,0,.6)}
#resumen.on{opacity:1;transform:translate(-50%,-50%) scale(1)}#resumen h3{font-family:Rye,serif;font-weight:400;color:#7e1d12;font-size:24px}
#resumen p{margin-top:6px;font-size:14px}#resumen b{font-size:22px;font-family:Rye,serif;font-weight:400}
body.touch #resumen{transform:translate(-50%,-50%) scale(.75)}body.touch #resumen.on{transform:translate(-50%,-50%) scale(.8)}
#tBtns{grid-template-rows:auto auto auto!important}
#tBtns .ctx.jk{grid-row:1}#tBtns .ctx.hp{grid-row:1}
#tBtns [data-k=KeyQ]{grid-column:1;grid-row:2}#tBtns [data-k=Space]{grid-column:2;grid-row:2}
#tBtns [data-call]{grid-column:1;grid-row:3}#tBtns .jkbtn{grid-column:2;grid-row:3}
#tBtns .big{grid-column:3!important;grid-row:2/4!important;height:auto!important;min-height:120px;border-radius:24px!important;align-self:stretch}
#tBtns .ctx.jk:first-child{grid-column:1}#tBtns .ctx.jk:nth-child(2){grid-column:2/4}
body.touch #tip{top:auto!important;bottom:8px!important;left:50%!important;transform:translateX(-50%)!important;max-width:min(270px,36vw)!important;font-size:11px!important;font-size:12px!important;padding:7px 34px 7px 10px!important}
body.touch #tip button{width:22px;height:22px;font-size:12px;top:5px;right:5px}
body.touch #tip .tip-off{font-size:10px;margin-top:3px}
#tip:not(.on){pointer-events:none!important}
#tBtns .big{width:auto!important;aspect-ratio:auto!important;min-width:0!important}
/* pantallas: nunca se corta la parte de arriba aunque el contenido sea más alto que la ventana */
.screen{align-items:flex-start}.screen>.card{margin:auto}
#pause .card{width:min(760px,100%);max-height:calc(100vh - 40px);overflow-y:auto;display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:start}
#pause .card>*{grid-column:1/-1}
#pause .card>button{grid-column:auto}
#pause .card>h2{position:sticky;top:-28px;background:rgba(30,21,14,.97);margin:-28px -30px 0;padding:18px 30px 8px;z-index:2}
#pause #btnResume{grid-column:1/-1;position:sticky;top:30px;z-index:2;font-size:18px;padding:14px}
#pause .hintEsc{font-size:12px;opacity:.6;margin-top:-4px}
body.touch #pause .card>h2{top:-16px;margin:-16px -18px 0;padding:10px 18px 6px}body.touch #pause #btnResume{top:22px}
#tCam{position:absolute;top:calc(8px + env(safe-area-inset-top));left:calc(218px + env(safe-area-inset-left));width:44px;height:40px;border-radius:12px;pointer-events:auto;font-size:18px;padding:0;background:rgba(30,18,10,.7)}
.brand .logo{display:block;width:118px;height:118px;border-radius:50%;margin:0 auto 6px;box-shadow:0 8px 30px rgba(0,0,0,.6),0 0 0 3px rgba(214,164,58,.5)}
body.touch .brand .logo{width:70px;height:70px}
@media (max-height:500px){.brand .logo{width:64px;height:64px}}
/* ===== móvil en horizontal / pantallas bajas: menú compacto, jugar a la vista sin hacer scroll ===== */
@media (max-height:540px){
  .screen{padding:6px 10px}
  #menu .card{display:flex;flex-direction:column;padding:10px 16px 14px;width:min(860px,100%)}
  #menu .card>*{order:6}
  #menu .brand{order:0;display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 8px;text-align:left}
  #menu .brand .logo{width:46px;height:46px;margin:0}
  #menu .brand small,#menu .brand p{display:none}
  #menu .brand h1{font-size:30px;margin:0;text-shadow:0 3px 0 #6b1d10}
  #menu .actions{order:1;margin-top:0;gap:8px}
  #menu .actions button{padding:11px 10px;font-size:15px}
  #menu .join{order:2;margin-top:8px;gap:8px}
  #menu .join input,#menu .join button{padding:8px 10px;font-size:13px}
  #menu #lvl{order:3;margin-top:6px;font-size:12px}#menu #lvl b{font-size:15px}
  #menu .grid{order:4;margin-top:10px;grid-template-columns:repeat(4,1fr);gap:6px 10px;padding-top:10px;border-top:1px solid rgba(240,210,160,.15)}
  #menu .grid label{font-size:10.5px;gap:3px}
  #menu .grid input,#menu .grid select{padding:6px 7px;font-size:12.5px;border-radius:7px}
  #menu .grid label:has(#plaza){display:none}
  #menu #install{order:5;margin-top:8px;padding:8px 10px;font-size:12px}#menu #install img{width:34px;height:34px}#menu #install b{font-size:13px}
  #menu .rank h3{font-size:15px}
  #pause .card{padding:12px 16px}
  #pause .card>h2{font-size:20px;top:-12px;margin:-12px -16px 0;padding:8px 16px 4px}
  #pause #btnResume{top:24px;padding:10px;font-size:16px}
  #pause button{padding:9px 10px;font-size:13px}
}
@media (max-height:540px) and (max-width:620px){#menu .grid{grid-template-columns:repeat(2,1fr)}}

/* salas públicas en vivo */
.pubchk{margin-top:8px;font-size:12px!important;opacity:.85}
#live{margin-top:10px;background:rgba(0,0,0,.25);border:1px solid rgba(240,210,160,.15);border-radius:10px;padding:8px 10px}
.liveHead{font-size:13px;display:flex;align-items:center;gap:6px}.liveHead b{color:#ffd76a;font-size:15px}
.dot{width:8px;height:8px;border-radius:50%;background:#3ddc6a;box-shadow:0 0 0 0 rgba(61,220,106,.7);animation:pulse 1.6s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 7px rgba(61,220,106,0)}100%{box-shadow:0 0 0 0 rgba(61,220,106,0)}}
#roomList{display:flex;flex-direction:column;gap:5px;margin-top:6px;max-height:150px;overflow:auto}
.rItem{display:flex;align-items:center;gap:8px;font-size:13px;background:rgba(255,255,255,.04);border-radius:8px;padding:5px 8px}
.rItem b{font-family:monospace;letter-spacing:.1em}.rItem span{opacity:.75;flex:1}.rItem button{padding:5px 12px;font-size:12px}
.rEmpty{font-size:12px;opacity:.6}
/* feedback */
#fbBtn{position:fixed;right:14px;bottom:14px;z-index:30;padding:9px 14px;border-radius:999px;font-size:13px;background:rgba(30,20,12,.85);backdrop-filter:blur(4px);display:none}
body.inMenu #fbBtn{display:block}
#fbModal{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;padding:12px}
#fbModal.hidden{display:none}
.fbCard{position:relative;background:#1e150e;border:1px solid rgba(240,210,160,.3);border-radius:16px;padding:20px;width:min(420px,100%);text-align:center}
.fbCard h3{font-family:Rye,serif;font-weight:400;color:#ffd76a;margin:0 0 10px}
#fbStars{display:flex;justify-content:center;gap:4px;margin-bottom:12px}
#fbStars button{background:none;border:none;font-size:36px;padding:0 4px;color:#4a3a2a;transition:transform .1s,color .1s}
#fbStars button.on{color:#ffc93c}#fbStars button:hover{transform:scale(1.15);background:none}
#fbText{width:100%;box-sizing:border-box;background:#120c08;color:#f4e6cc;border:1px solid rgba(240,210,160,.3);border-radius:8px;padding:10px;font:inherit;resize:vertical}
#fbSend{width:100%;margin-top:10px}#fbSend:disabled{opacity:.45}#fbMsg{margin-top:8px;font-size:13px;min-height:18px}
.fbX{position:absolute;right:8px;top:8px;width:30px;height:30px;padding:0;border-radius:50%;font-size:14px}
@media (max-height:540px){#live{margin-top:6px;padding:6px 8px}#roomList{max-height:90px}.pubchk{display:none!important}#fbBtn{padding:6px 10px;font-size:12px;right:8px;bottom:8px}.fbCard{padding:14px}#fbStars button{font-size:28px}#fbText{rows:2;height:64px}}
#encSkip{position:fixed;left:50%;top:auto;bottom:70px;transform:translateX(-50%);z-index:12;padding:8px 16px;border-radius:999px;background:linear-gradient(#e7c27a,#c99a45);color:#2a1a0c;font-size:14px;pointer-events:auto}#encSkip small{opacity:.6;font-weight:400}body.touch #encSkip{bottom:auto;top:92px;left:auto;right:12px;transform:none;font-size:12px;padding:6px 12px}body.touch #encSkip small{display:none}
/* ===== UI móvil v3: más limpia y más pequeña ===== */
body.touch #goals{display:none!important}
body.touch #tProg{font-size:11px!important;padding:0 10px!important;height:36px!important}
body.touch #tPause,body.touch #tFull,body.touch #tCam{width:36px!important;height:36px!important;font-size:14px!important}
body.touch #tFull{left:calc(50px + env(safe-area-inset-left))!important}
body.touch #tCam{left:calc(92px + env(safe-area-inset-left))!important}
body.touch #tProg{left:calc(134px + env(safe-area-inset-left))!important}
body.touch #cartel{transform:translateX(-50%) scale(.55)!important}
body.touch #bState{font-size:15px!important}
body.touch #medal{width:62px!important;height:62px!important;top:calc(50px + env(safe-area-inset-top))!important}
body.touch #medal .medal-in b{font-size:20px!important}body.touch #medal .medal-in small{font-size:7px!important}
body.touch #tally{top:calc(66px + env(safe-area-inset-top))!important;left:calc(76px + env(safe-area-inset-left))!important}
body.touch #tally span{padding:2px 5px!important;font-size:10px!important}
body.touch #minimap{width:96px!important;height:72px!important;opacity:.85}
body.touch #msg h2,body.touch #msg b{font-size:26px!important}body.touch #msg span,body.touch #msg small{font-size:12px!important}
/* vertical */
@media (orientation:portrait){
  body.touch #cartel{top:calc(50px + env(safe-area-inset-top))!important;transform:translateX(-50%) scale(.5)!important}
  body.touch #tProg{left:auto!important;right:calc(8px + env(safe-area-inset-right))!important;top:calc(86px + env(safe-area-inset-top))!important}
  body.touch #minimap{top:calc(8px + env(safe-area-inset-top))!important;width:84px!important;height:64px!important}
  body.touch #medal{top:calc(50px + env(safe-area-inset-top))!important}
  body.touch #tally{top:calc(118px + env(safe-area-inset-top))!important;left:calc(8px + env(safe-area-inset-left))!important}
  body.touch #tBtns{width:auto!important;right:calc(10px + env(safe-area-inset-right))!important;bottom:calc(14px + env(safe-area-inset-bottom))!important;grid-template-columns:54px 54px 92px!important;gap:7px!important}
  body.touch #tBtns .mid{width:54px!important;height:54px!important;font-size:18px!important}
  body.touch #tBtns .mid small{font-size:7.5px!important}
  body.touch #tBtns .big{min-height:96px!important;font-size:13px!important}
  body.touch #tStickZone{width:46vw!important}
  body.touch #encSkip{top:auto!important;bottom:150px!important;right:12px!important}
  body.touch #tip{bottom:150px!important;max-width:70vw!important}
  body.touch #resumen{transform:translate(-50%,-50%) scale(.7)}
}

/* ===== UI móvil v4: estilo app, sin desbordes ===== */
html,body{position:fixed;inset:0;overscroll-behavior:none;max-width:100vw}
.screen{overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.card,.grid,.grid label,.grid input,.grid select,.join,.actions{min-width:0;max-width:100%;box-sizing:border-box}
.grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid input,.grid select,.nameRow input{width:100%;text-overflow:ellipsis}
.nameRow{display:flex;flex-direction:column;gap:6px;font-size:13px;margin:4px 0 12px}
.nameRow input{padding:10px 12px;border-radius:10px;border:1px solid rgba(240,210,160,.3);background:rgba(0,0,0,.35);color:inherit;font-size:15px;box-sizing:border-box}
#cfgBtn{display:none}
#downOverlay{pointer-events:none}#reviveBtn{pointer-events:auto;margin:12px auto 0;display:block;font-size:17px;padding:12px 22px;border-radius:14px}
#reviveBtn.hidden{display:none}
@media (max-width:700px){.grid{grid-template-columns:minmax(0,1fr)}}
body.touch #menu{padding:calc(10px + env(safe-area-inset-top)) 10px calc(14px + env(safe-area-inset-bottom));align-items:flex-start}
body.touch #menu .card{display:flex;flex-direction:column;width:min(560px,100%);padding:14px 14px 16px;border-radius:20px;gap:0}
body.touch #menu .brand{order:0;margin-bottom:6px}
body.touch #menu .brand .logo{width:64px;height:64px}
body.touch #menu .brand h1{font-size:34px;margin:2px 0}
body.touch #menu .brand p{font-size:13px}
body.touch #menu .nameRow{order:1;margin:6px 0 10px}
body.touch #menu .actions{order:2;grid-template-columns:1fr;gap:10px;margin-top:0}
body.touch #menu .actions button{font-size:17px;padding:15px;border-radius:14px}
body.touch #menu .join{order:3;margin-top:10px;display:flex;gap:8px}
body.touch #menu .join input{flex:1;min-width:0;font-size:15px;padding:12px}
body.touch #menu .join button{padding:12px 16px}
body.touch #menu .pubchk{order:4;font-size:12px;margin-top:6px}
body.touch #menu #live{order:5;margin-top:10px}
body.touch #menu #menuErr{order:6;min-height:0}
body.touch #menu #cfgBtn{order:7;display:block;width:100%;margin-top:12px;padding:12px;border-radius:12px;font-size:15px;background:rgba(255,255,255,.06);border:1px solid rgba(240,210,160,.25);color:inherit}
body.touch #menu .grid{order:8;display:none;margin-top:10px;padding-top:0;border-top:0;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px 10px}
body.touch #menu.cfgOpen .grid{display:grid}
body.touch #menu .grid label:has(#plaza){display:none}
body.touch #menu #lvl{order:9;margin-top:10px}
body.touch #menu #install{order:10}
body.touch #menu .rank{order:11;margin-top:12px}
body.touch #menu details{order:12}
body.touch #menu .grid label{font-size:11.5px}
body.touch #menu .grid input,body.touch #menu .grid select{font-size:13px;padding:8px}
@media (orientation:landscape) and (max-height:540px){
  body.touch #menu .card{width:min(900px,100%);display:grid;grid-template-columns:1fr 1fr;column-gap:16px;align-items:start}
  body.touch #menu .brand{grid-column:1;grid-row:1 / span 3}
  body.touch #menu .brand .logo{width:48px;height:48px}body.touch #menu .brand h1{font-size:28px}
  body.touch #menu .nameRow,body.touch #menu .actions,body.touch #menu .join,body.touch #menu .pubchk{grid-column:2}
  body.touch #menu #live,body.touch #menu #cfgBtn,body.touch #menu .grid,body.touch #menu #lvl,body.touch #menu #install,body.touch #menu .rank,body.touch #menu details,body.touch #menu #menuErr{grid-column:1 / span 2}
  body.touch #menu .actions{grid-template-columns:1fr 1fr}
  body.touch #menu.cfgOpen .grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
#msg{white-space:normal;width:max-content;max-width:92vw}#msg small{letter-spacing:.08em;line-height:1.35}
@media (orientation:portrait){body.touch #msg{font-size:24px;top:30%}body.touch #msg small{font-size:11px!important}}

#fpLure{display:none;position:fixed;left:8%;right:8%;top:50%;transform:translateY(-50%);font:800 15px Inter,sans-serif;letter-spacing:.12em;color:#ffd76a;text-shadow:0 2px 8px #000;pointer-events:none;z-index:5}
body.touch #fpLure{font-size:12px}

#downOverlay #reviveBtn{position:relative;z-index:30;min-width:180px;font-size:18px;padding:14px 26px;border-radius:16px;box-shadow:0 6px 22px rgba(0,0,0,.45);touch-action:manipulation}
body.touch #downOverlay #reviveBtn{min-height:54px;font-size:19px}

/* ===== cuentas, amigos, avisos ===== */
#accBar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0 4px}
.accb{background:rgba(255,255,255,.08);border:1px solid rgba(240,210,160,.3);color:inherit;border-radius:12px;padding:8px 12px;font:600 14px Inter,sans-serif;cursor:pointer;position:relative}
.accb small{opacity:.7;font-weight:500}.accHint{opacity:.65;font-size:11.5px;flex-basis:100%}
.accb i{position:absolute;top:-6px;right:-6px;background:#e2453a;color:#fff;font-style:normal;font-size:11px;border-radius:10px;padding:1px 6px}
.accb i.hidden{display:none}
.modal2{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;z-index:80;padding:14px}
.modal2.hidden{display:none}
.mbox{position:relative;background:#2a1a12;border:1px solid rgba(240,210,160,.3);border-radius:18px;padding:18px 16px 16px;width:min(420px,100%);max-height:86vh;overflow:auto;color:#f3e4cf;box-shadow:0 18px 50px rgba(0,0,0,.5)}
.mbox h3{margin:0 0 8px}.mbox .small{font-size:12px;opacity:.7}
.mbox input{width:100%;box-sizing:border-box;margin:6px 0;padding:12px;border-radius:10px;border:1px solid rgba(240,210,160,.3);background:rgba(0,0,0,.35);color:inherit;font-size:16px}
.mbox button{border-radius:10px;padding:9px 12px;border:1px solid rgba(240,210,160,.3);background:rgba(255,255,255,.07);color:inherit;font-weight:700;cursor:pointer}
.mbox button.primary{background:linear-gradient(#f0c96a,#c9922f);color:#2a1406;border:0}
#accGo{width:100%;margin-top:6px;padding:13px;font-size:16px}#accErr,#frMsg{min-height:18px;font-size:13px;color:#ffb38a;margin-top:6px}
#accNote{font-size:12px;opacity:.75;margin:4px 0}
.mx{position:absolute;right:10px;top:10px;padding:4px 10px!important}
.mtabs{display:flex;gap:6px;margin-bottom:8px;margin-right:36px}.mtabs button{flex:1}.mtabs button.on{background:rgba(240,201,106,.25);border-color:#f0c96a}
.frow{display:flex;gap:6px;align-items:center}.frow input{flex:1}
.mlist{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:6px}
.mlist li{display:flex;justify-content:space-between;align-items:center;gap:8px;background:rgba(255,255,255,.05);border-radius:10px;padding:9px 10px;font-size:14px}
.mlist li.new{border-left:3px solid #f0c96a}.mlist li small{opacity:.6;font-size:11px;white-space:nowrap}.mlist li.cta{justify-content:center}
.mlist li span:last-child{display:flex;gap:4px}
.st{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;background:#666}.st.on{background:#4caf50}.st.room{background:#f0c96a}
.toast2{position:fixed;left:50%;top:calc(14px + env(safe-area-inset-top));transform:translate(-50%,-20px);opacity:0;background:rgba(30,18,10,.92);color:#f3e4cf;border:1px solid rgba(240,210,160,.35);padding:10px 16px;border-radius:12px;font:600 14px Inter,sans-serif;z-index:90;transition:.35s;pointer-events:none;max-width:90vw;text-align:center}
.toast2.on{opacity:1;transform:translate(-50%,0)}
.rank .rtabs{display:flex;gap:6px;background:none!important;padding:0!important;margin-bottom:4px}.rank .rtabs button{flex:1;padding:6px;border-radius:8px;border:1px solid rgba(240,210,160,.25);background:rgba(255,255,255,.05);color:inherit;font-weight:700;font-size:12px}
.rank .rtabs button.on{background:rgba(240,201,106,.25);border-color:#f0c96a}.rank .rinfo{font-size:11px;opacity:.75;background:none!important;list-style:none}
body.touch #menu #accBar{order:1}
/* ===== móvil: HUD más limpio ===== */
body.touch #medal{width:70px!important;height:70px!important}
body.touch #medal .medal-in{inset:12px!important}
body.touch #medal .medal-in b{font-size:15px!important;letter-spacing:-.02em}body.touch #medal .medal-in small{font-size:6px!important}
body.touch #combo{left:80px!important;top:2px!important;font-size:13px!important}
body.touch #popups{top:22%!important}body.touch .pop{font-size:15px!important;opacity:.92}
body.touch #msg{font-size:20px!important}body.touch #msg small{font-size:10px!important}
#meter{display:none!important}

/* PC: cartel del tiempo arriba a la izquierda, más limpio */
body:not(.touch) #cartel{left:16px;top:14px;transform:scale(.8);transform-origin:top left}
body:not(.touch) #cartel .senyera{margin:0}
@media (max-width:1150px){body:not(.touch) #cartel{transform:scale(.7)}}

.crest{width:64px;height:64px;flex:0 0 auto;border-radius:8px;object-fit:cover}.crest.sm{width:26px;height:26px;vertical-align:middle;margin-right:4px}
.pnHead{display:flex;gap:12px;align-items:center;margin-bottom:8px}.pnHead h3{margin:0}.pnHead small{opacity:.7}
.pnAch,.insig{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.pnAch span{font-size:11px;padding:4px 8px;border-radius:10px;background:rgba(255,255,255,.05);opacity:.45}.pnAch span.ok{opacity:1;background:rgba(240,201,106,.22)}
.insig span{width:74px;text-align:center;font-size:24px;padding:6px 2px;border-radius:10px;background:rgba(255,255,255,.04);filter:grayscale(1);opacity:.35}.insig span.ok{filter:none;opacity:1;background:rgba(240,201,106,.18)}
.insig small{display:block;font-size:9.5px;line-height:1.15;margin-top:2px}
.upl{border-radius:10px;padding:9px 12px;border:1px solid rgba(240,210,160,.3);background:rgba(255,255,255,.07);font-weight:700;cursor:pointer;font-size:13px}
#pnPrev{display:flex;justify-content:center;margin:8px 0}#pnPrev .crest{width:96px;height:96px}
.pnEdit summary{cursor:pointer;margin:10px 0 6px;font-weight:700}
input[type=color]{width:44px;height:38px;padding:2px;border-radius:8px;border:1px solid rgba(240,210,160,.3);background:none}

/* ===== móvil v5: HUD y menú ===== */
body.touch #minimap{display:none!important}
body.touch #cartel{left:auto!important;right:calc(6px + env(safe-area-inset-right))!important;top:calc(6px + env(safe-area-inset-top))!important;transform:scale(.6)!important;transform-origin:top right!important}
@media (orientation:portrait){body.touch #cartel{transform:scale(.52)!important}}
body.logged .nameRow{display:none!important}
.accb{display:inline-flex;align-items:center;gap:6px}
@media (orientation:landscape) and (max-height:540px){
  body.touch #menu{padding:calc(8px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) 10px calc(10px + env(safe-area-inset-left))!important}
  body.touch #menu .card{width:min(980px,100%)!important;display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;column-gap:18px!important;row-gap:8px!important;align-items:start!important;padding:14px 16px!important}
  body.touch #menu .card>*{grid-column:2}
  body.touch #menu .brand{grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center;gap:10px;text-align:left!important;margin:0!important}
  body.touch #menu .brand .logo{width:46px!important;height:46px!important;margin:0!important}
  body.touch #menu .brand h1{font-size:24px!important;margin:0!important;line-height:1}
  body.touch #menu .brand small,body.touch #menu .brand p{display:none!important}
  body.touch #menu #live{grid-column:1!important;grid-row:2 / span 6!important;margin:0!important;max-height:calc(100vh - 120px);overflow:auto}
  body.touch #menu #accBar{grid-column:2!important;grid-row:1!important;margin:0!important;justify-content:flex-end}
  body.touch #menu .accb{padding:7px 10px;font-size:13px;border-radius:10px}
  body.touch #menu .accb small,body.touch #menu .accHint{display:none}
  body.touch #menu .nameRow{grid-column:2!important;margin:0!important}
  body.touch #menu .actions{grid-column:2!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  body.touch #menu .actions button{padding:12px 8px!important;font-size:15px!important;border-radius:12px!important}
  body.touch #menu .join{grid-column:2!important;margin:0!important}
  body.touch #menu .join input,body.touch #menu .join button{padding:10px!important}
  body.touch #menu .pubchk{grid-column:2!important;margin:0!important;font-size:11px!important}
  body.touch #menu #cfgBtn{grid-column:2!important;margin:0!important;padding:9px!important;font-size:13px!important}
  body.touch #menu #menuErr{grid-column:2!important}
  body.touch #menu .grid,body.touch #menu #lvl,body.touch #menu #install,body.touch #menu .rank,body.touch #menu details{grid-column:1 / -1!important}
  body.touch #menu.cfgOpen .grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

body.touch #encSkip{top:calc(100px + env(safe-area-inset-top))!important;right:calc(8px + env(safe-area-inset-right))!important;left:auto!important;bottom:auto!important;font-size:12px!important;padding:7px 12px!important}
/* ---- selector de plaza (menú simple) ---- */
.plazaPick{margin:8px 0 6px}
.ppHead{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;opacity:.75;margin:0 0 6px}
.ppList{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ppCard{position:relative;display:flex;flex-direction:column;padding:0;border-radius:12px;overflow:hidden;border:2px solid rgba(255,255,255,.12);background:rgba(0,0,0,.25);color:inherit;text-align:left;cursor:pointer}
.ppCard img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.ppCard span{padding:6px 8px;display:flex;flex-direction:column;line-height:1.15}
.ppCard small{opacity:.7;font-size:.72rem}
.ppCard i{position:absolute;top:6px;right:6px;font-style:normal;background:rgba(0,0,0,.55);border-radius:999px;padding:2px 7px;font-size:.8rem}
.ppCard.on{border-color:#e9c46a;box-shadow:0 0 0 2px rgba(233,196,106,.35)}
.ppCard.soon{cursor:default;opacity:.75}
.ppCard.soon small{color:#e9c46a;opacity:1;font-weight:700}
#menu .grid.quick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body.touch #menu .grid.quick{display:grid!important;grid-template-columns:1fr 1fr!important}
body.touch #menu details.more, body.touch #cfgBtn{display:none!important}
#menu details.more{margin:4px 0}
#menu details.more summary{cursor:pointer;opacity:.7;font-size:.85rem}
.newsL{list-style:none;padding:0;margin:8px 0 12px;display:flex;flex-direction:column;gap:8px;text-align:left}
.newsL li{background:rgba(255,255,255,.06);border-radius:10px;padding:8px 10px;line-height:1.3}
@media (orientation:landscape) and (max-height:520px){ .ppCard img{aspect-ratio:21/9} .ppList{gap:6px} }

#touch.rabo-on #tBtns .rb{display:block}
#tBtns .rb{grid-column:1/4;background:rgba(214,164,58,.95)!important;color:#2a1a0c!important;font-weight:900!important}
#touch.rabo-on.help-on #tBtns .hp{display:none}
.pickNext{margin:0 0 10px;text-align:center}
.pickNext b{display:block;font-size:.8rem;margin-bottom:6px;color:#e9c46a;letter-spacing:.04em}
.pickNext div{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.pickNext button{border:1px solid rgba(233,196,106,.5);background:rgba(0,0,0,.35);color:#fbe9c6;border-radius:999px;padding:6px 10px;font-weight:700;font-size:.78rem;cursor:pointer}
.pickNext button.on{background:#e9c46a;color:#2a1a0c}
#progList li.picked{color:#e9c46a}
