/* =====================================================================
   OBSIDIANA Y ASCUA · estilo del tablero (/, /master, /pantalla)
   Cristal ahumado cálido sobre el tablero 3D y un solo acento (ascua).
   Se carga después del <style> de index.html y pisa el estilo antiguo
   (cuero, latón y vitela). Las variables antiguas se mantienen con
   valores nuevos para que red/mesa.js y los mapas sigan funcionando.
   Todo va con :root delante para ganar al <style> que añade red/mesa.js.
   ===================================================================== */
:root{
  /* nuevas */
  --suelo:#0f0c0a;
  --cristal:rgba(24,19,16,.7);
  --cristal-alto:rgba(30,24,20,.9);
  --borde:rgba(255,232,200,.09);
  --borde-vivo:rgba(255,232,200,.18);
  --brillo:inset 0 1px 0 rgba(255,240,220,.07);
  --sombra:0 18px 40px -18px rgba(0,0,0,.75);
  --acento:#e2a352; --acento-2:#f1c27d; --acento-fondo:rgba(226,163,82,.14); --sobre-acento:#1b130b;
  --herida:#d2574b; --oculto:#6fb0b0;
  --f-num:'Geist Mono',ui-monospace,Menlo,Consolas,monospace;
  --muelle:cubic-bezier(.16,1,.3,1);
  --r-s:8px; --r-m:14px; --r-l:20px;
  /* antiguas, con valores nuevos */
  --hollin:#0f0c0a; --roble:#17120f; --roble-claro:#221b16; --roble-velo:var(--cristal);
  --laton:#e2a352; --laton-claro:#f1c27d; --laton-sombra:rgba(255,232,200,.16);
  --sangre:#9a3a2c; --sangre-honda:#6e2a20; --ascua:#e2a352;
  --vitela:#efe7da; --vitela-sombra:rgba(255,232,200,.1); --tinta:#efe7da; --tinta-suave:#a89c8e;
  --texto:#efe7da; --texto-suave:#a89c8e; --vida:#7fb77e; --vida-baja:#d2574b; --sano:#7fb77e; --magia:#6fb0b0;
  --f-titulo:'Marcellus','Palatino Linotype',Georgia,serif;
  --f-texto:'Geist',system-ui,-apple-system,'Segoe UI',sans-serif;
  --f-rotulo:'Geist',system-ui,-apple-system,'Segoe UI',sans-serif;
}
:root body{font-family:var(--f-texto);font-size:14px;-webkit-font-smoothing:antialiased;background:radial-gradient(ellipse 70% 60% at 50% 50%,#231a14 0%,#120e0b 55%,var(--suelo) 100%)}
:root body[data-franja="noche"]{background:radial-gradient(ellipse 70% 60% at 50% 50%,#17151a 0%,#0c0a0b 55%,#050405 100%)}
:root .ic{width:1em;height:1em;fill:currentColor;flex:none;display:inline-block;vertical-align:middle}
:root button:focus-visible,:root a:focus-visible,:root input:focus-visible,:root select:focus-visible{outline:2px solid var(--acento);outline-offset:2px}

/* paneles */
:root .marco{background:var(--cristal);border:1px solid var(--borde);border-radius:var(--r-m);box-shadow:var(--brillo),var(--sombra);backdrop-filter:blur(16px) saturate(1.25);-webkit-backdrop-filter:blur(16px) saturate(1.25)}

/* etiquetas sobre el tablero */
:root .tag{font-family:var(--f-texto);font-size:12px;font-weight:600;letter-spacing:0;padding:3px 9px;border-radius:999px;border:1px solid var(--borde-vivo);background:rgba(12,9,7,.84);color:var(--texto)}
:root .tag.sel{border-color:var(--acento);color:var(--acento-2);box-shadow:0 0 0 3px rgba(226,163,82,.18)}
:root .tag.enemigo{border-color:rgba(210,87,75,.55);color:#f0b3a6}
:root .tag.enemigo b{font-family:var(--f-num);font-weight:500;color:var(--texto-suave);font-size:11px}
:root .tag.neutral{border-color:rgba(111,176,176,.5);color:#cfe3e3}
:root .tag.oculta{border-style:dashed;border-color:var(--oculto)}
:root .tag.lugar{font-family:var(--f-titulo);font-weight:400;font-size:15px;padding:6px 14px;border-radius:12px;border-color:rgba(226,163,82,.5);color:var(--acento-2)}
:root .tag.lugar small{font-family:var(--f-texto);font-size:11px;letter-spacing:0;color:var(--texto-suave)}

/* barra superior */
:root #top{gap:10px;padding:calc(14px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 12px max(16px,env(safe-area-inset-left,0px));background:linear-gradient(to bottom,rgba(8,6,5,.75),rgba(8,6,5,0))}
:root .marca{flex-direction:column;align-items:flex-start;gap:2px;padding:10px 16px;border-radius:var(--r-m);background:var(--cristal);border:1px solid var(--borde);box-shadow:var(--brillo);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
:root .marca b{font-family:var(--f-titulo);font-size:22px;color:var(--texto);letter-spacing:.01em;line-height:1.1}
:root .marca span{font-family:var(--f-texto);font-size:12px;letter-spacing:0;color:var(--texto-suave)}
:root .datos{gap:6px}
:root .dato{height:44px;padding:0 14px;gap:8px;font-family:var(--f-texto);font-size:14px;letter-spacing:0;border-radius:var(--r-m)}
:root .dato i{font-size:10.5px;font-weight:600;letter-spacing:.12em;color:var(--texto-suave)}
:root .dato span{font-family:var(--f-num);font-weight:500}
:root .dato svg{color:var(--acento)}
:root .acciones-top{gap:6px}
:root .btn-top{height:44px;padding:0 14px;gap:8px;border:1px solid var(--borde);border-radius:var(--r-m);background:var(--cristal);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:var(--brillo);color:var(--texto);font-family:var(--f-texto);font-size:13px;font-weight:500;letter-spacing:0;transition:transform .15s,border-color .2s,background .2s}
:root .btn-top:hover{border-color:var(--borde-vivo);color:var(--texto);transform:translateY(-1px)}
:root .btn-top:active{transform:scale(.98)}
:root .btn-top svg{width:18px;height:18px}
:root .btn-top.principal{background:linear-gradient(180deg,#f0b766,#d99541);color:var(--sobre-acento);border-color:transparent;font-weight:600;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 10px 24px -10px rgba(226,163,82,.6)}
:root .btn-top.principal kbd{font-family:var(--f-num);font-size:11px;padding:2px 6px;border-radius:5px;background:rgba(0,0,0,.16)}
:root #btnMesa b{font-family:var(--f-num);background:rgba(255,255,255,.08);color:var(--texto-suave);border-radius:999px}
:root #btnMesa.viva b{background:var(--vida);color:#10140f}
:root .ciclo{height:44px;padding:4px;gap:2px;border-radius:var(--r-m);align-items:center}
:root .ciclo button{font-family:var(--f-texto);font-size:12.5px;letter-spacing:0;color:var(--texto-suave);border:0;border-radius:9px;padding:0 10px;height:34px;transition:background .2s,color .2s}
:root .ciclo button:hover{color:var(--texto)}
:root .ciclo button.on{background:var(--acento-fondo);color:var(--acento-2);border:0}

/* grupo */
:root #party{width:290px;top:calc(92px + env(safe-area-inset-top,0px));left:max(16px,env(safe-area-inset-left,0px));gap:8px}
:root .cards{gap:6px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent}
:root .card{grid-template-columns:42px 1fr;gap:12px;padding:8px 12px;transition:transform .25s var(--muelle),border-color .25s,background .25s}
:root .card:hover{transform:translateX(3px);border-color:var(--borde-vivo)}
:root .card.sel{border-color:rgba(226,163,82,.55);background:linear-gradient(90deg,rgba(226,163,82,.13),var(--cristal) 60%);box-shadow:var(--brillo),var(--sombra)}
:root .escudo{width:42px;height:46px}
:root .card .nom{font-family:var(--f-texto);font-weight:600;font-size:14px;line-height:1.2}
:root .card .cls{font-family:var(--f-texto);font-size:11.5px;letter-spacing:0;color:var(--texto-suave);text-transform:capitalize}
:root .stats{font-family:var(--f-texto);font-size:11.5px;letter-spacing:0;gap:10px}
:root .stats b{font-family:var(--f-num);font-weight:500}
:root .vida{gap:8px;margin-top:5px}
:root .barra{height:6px;border:0;border-radius:999px;background:rgba(255,255,255,.08)}
:root .barra>b{border-radius:999px;background:var(--vida);transition:width .6s var(--muelle),background .4s}
:root .barra.baja>b{background:var(--herida)}
:root .pv{font-family:var(--f-num);font-size:11.5px;color:var(--texto-suave)}
:root .pvbtn{width:22px;height:22px;border:1px solid var(--borde);background:rgba(255,255,255,.05);color:var(--texto);border-radius:6px;line-height:18px}
:root .pvbtn:hover{border-color:var(--borde-vivo)}
:root #quest{padding:14px 16px}
:root .q-head svg{color:var(--acento)}
:root #qTitle{font-family:var(--f-titulo);font-size:18px;color:var(--texto)}
:root #qDesc{font-size:13.5px;line-height:1.5;color:var(--texto-suave)}
:root .pips i{width:7px;height:7px;transform:none;border-radius:50%;border:1.5px solid var(--borde-vivo)}
:root .pips i.on{background:var(--acento);border-color:var(--acento)}
:root .q-cuenta{font-family:var(--f-texto);font-size:11.5px;letter-spacing:0}
:root .enlace{font-family:var(--f-texto);font-size:12.5px;letter-spacing:0;color:var(--acento-2);text-decoration:none}
:root .enlace:hover{color:var(--acento);text-decoration:underline}
:root .credito{font-family:var(--f-texto);font-size:10.5px;letter-spacing:0}

/* narrador: ya no es pergamino, es cristal oscuro */
:root #narrator{top:calc(92px + env(safe-area-inset-top,0px));right:max(16px,env(safe-area-inset-right,0px));width:370px;color:var(--texto);background:var(--cristal);border:1px solid var(--borde);border-radius:var(--r-m);box-shadow:var(--brillo),var(--sombra);backdrop-filter:blur(16px) saturate(1.25);-webkit-backdrop-filter:blur(16px) saturate(1.25);overflow:hidden}
:root #narrator .cenefa{display:none}
:root .n-head{padding:14px 16px 4px}
:root .n-head h2{font-family:var(--f-titulo);font-size:19px;letter-spacing:.01em;color:var(--texto)}
:root .n-min{width:30px;height:30px;border:1px solid var(--borde);border-radius:8px;background:rgba(255,255,255,.04);color:var(--texto-suave)}
:root .n-min:hover{color:var(--texto);border-color:var(--borde-vivo)}
:root .n-voz{padding:8px 16px;gap:12px}
:root #nPlace{font-style:normal;font-size:12.5px;color:var(--texto-suave)}
:root #nText{font-size:15.5px;line-height:1.62;padding:8px 18px 12px;color:#e7dfd2}
:root #nText p:first-child::first-letter{font-family:var(--f-titulo);font-size:3em;color:var(--acento-2)}
:root #nText .cursor{background:var(--acento)}
:root .registro{border-top:1px solid var(--borde);margin:0 16px;font-size:12.5px;color:var(--texto-suave)}
:root .registro b{color:var(--texto)}
:root .n-escribe{margin:8px 12px;padding:4px 6px 4px 12px;border:1px solid var(--borde);border-radius:12px;background:rgba(0,0,0,.28)}
:root .n-escribe svg{color:var(--texto-suave)}
:root #nInput{font-family:var(--f-texto);font-style:normal;font-size:13.5px;color:var(--texto);height:34px}
:root #nInput::placeholder{color:var(--texto-suave)}
:root .n-pie{padding:2px 16px 14px}
:root .chk{font-family:var(--f-texto);font-size:12.5px;letter-spacing:0;color:var(--texto-suave)}
:root .chk input{accent-color:var(--acento)}

/* botones generales */
:root .btn{height:38px;padding:0 14px;border-radius:11px;border:1px solid transparent;background:var(--acento);color:var(--sobre-acento);font-family:var(--f-texto);font-size:13px;font-weight:600;letter-spacing:0;transition:transform .15s,background .2s,border-color .2s}
:root .btn:hover{background:var(--acento-2);transform:translateY(-1px)}
:root .btn:active{transform:scale(.97)}
:root .btn.sec{background:rgba(255,255,255,.05);border-color:var(--borde);color:var(--texto);font-weight:500}
:root .btn.sec:hover{background:rgba(255,255,255,.09);border-color:var(--borde-vivo);color:var(--texto)}

/* muelle inferior */
:root #menu{bottom:calc(16px + env(safe-area-inset-bottom,0px));gap:4px;padding:8px 10px;border-radius:var(--r-l);align-items:flex-end;overflow:visible}
:root .menu-btn{--s:1;width:70px;height:66px;padding:6px 2px;gap:5px;justify-content:center;border:0;border-radius:16px;color:var(--texto-suave);font-family:var(--f-texto);font-size:11px;font-weight:500;letter-spacing:.01em;transform-origin:bottom center;transform:scale(var(--s));transition:transform .18s var(--muelle),background .2s,color .2s}
:root .menu-btn svg{width:27px;height:27px;color:var(--texto)}
:root .menu-btn:hover{background:rgba(255,255,255,.06);border:0;color:var(--texto)}
:root .menu-btn.on{background:var(--acento-fondo);border:0;color:var(--acento-2)}
:root .menu-btn.on svg{color:var(--acento)}
:root .menu-btn.dado{width:78px;height:78px;margin:-18px 4px 0;border-radius:50%;color:var(--sobre-acento);background:radial-gradient(circle at 35% 30%,#f6cf8e,#d99541 60%,#a8692a);box-shadow:inset 0 2px 0 rgba(255,255,255,.4),inset 0 -6px 12px rgba(0,0,0,.25),0 14px 30px -8px rgba(226,163,82,.65);font-size:10.5px;font-weight:600}
:root .menu-btn.dado svg{width:34px;height:34px;color:var(--sobre-acento)}
:root .menu-btn.dado:hover{background:radial-gradient(circle at 35% 30%,#ffd99b,#e3a04c 60%,#b0722f);color:var(--sobre-acento)}
:root .menu-btn.historia{width:auto;padding:0 18px;height:58px;margin:0 0 4px 6px;border-radius:16px;border:1px solid rgba(255,190,160,.25);background:linear-gradient(180deg,rgba(150,52,40,.95),rgba(110,35,28,.95));color:var(--texto);font-family:var(--f-titulo);font-size:15px;font-weight:400;letter-spacing:.01em;box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 14px 30px -14px rgba(160,50,40,.8)}
:root .menu-btn.historia:hover{filter:brightness(1.1);background:linear-gradient(180deg,rgba(150,52,40,.95),rgba(110,35,28,.95))}
:root #menu .sep{width:1px;height:44px;align-self:center;margin:0 4px;background:var(--borde-vivo)}

/* cámara, estado */
:root #camtools{bottom:calc(120px + env(safe-area-inset-bottom,0px));gap:6px}
:root .cam{width:36px;height:36px;border:1px solid var(--borde);background:var(--cristal);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:var(--texto-suave);transition:color .2s,border-color .2s,transform .15s}
:root .cam:hover{color:var(--texto);border-color:var(--borde-vivo);transform:translateY(-1px)}
:root .plantas{border-radius:999px;padding:3px}
:root .plantas button{font-family:var(--f-texto);font-size:12px;letter-spacing:0;border:0;border-radius:999px}
:root .plantas button.on{background:var(--acento-fondo);color:var(--acento-2)}
:root #status{bottom:calc(166px + env(safe-area-inset-bottom,0px));font-size:13px;padding:8px 16px;border-radius:999px;border:1px solid var(--borde-vivo);background:rgba(12,9,7,.9);box-shadow:0 14px 30px rgba(0,0,0,.5)}

/* dado grande */
:root #dice{background:rgba(6,4,3,.55);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
:root #diceLabel{font-family:var(--f-texto);font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--texto-suave)}
:root #diceNum{font-family:var(--f-num);font-weight:600;font-size:40px}
:root #diceRes{font-family:var(--f-titulo);font-size:26px}
:root #diceRes small{font-family:var(--f-texto);font-size:14px}
:root #diceRes.crit{color:var(--acento-2)}

/* ventanas (modal) */
:root #modal{background:rgba(6,4,3,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
:root .m-caja{background:rgba(22,17,14,.97);color:var(--texto);border:1px solid var(--borde-vivo);border-radius:20px;box-shadow:0 40px 80px rgba(0,0,0,.6);overflow:hidden}
:root .m-caja .cenefa{display:none}
:root .m-head{padding:16px 20px 8px}
:root .m-head h3{font-family:var(--f-titulo);font-size:22px;color:var(--texto)}
:root .m-body{font-size:14px;line-height:1.55;padding:6px 20px 20px}
:root .m-body h4{font-family:var(--f-texto);font-size:11px;font-weight:600;letter-spacing:.12em;color:var(--texto-suave)}
:root .items li{border:1px solid var(--borde);border-radius:12px;background:rgba(255,255,255,.035)}
:root .items li b{font-family:var(--f-texto);font-weight:600;font-size:14px;color:var(--texto)}
:root .items li span{font-size:12.5px;color:var(--texto-suave)}
:root .m-body .btn{color:var(--sobre-acento)}
:root .m-body .btn.sec{color:var(--texto);border-color:var(--borde)}
:root .m-body textarea,:root .m-body pre,:root .m-body input[type=text],:root .m-body input[type=number],:root .m-body select{background:rgba(0,0,0,.3);border:1px solid var(--borde);border-radius:9px;color:var(--texto)}
:root .nota{font-size:13px;color:var(--texto-suave)}
:root .diario small{font-family:var(--f-texto);font-weight:600;color:var(--acento-2)}

/* carga */
:root #carga{border-radius:16px}
:root #cargaTxt{font-family:var(--f-titulo);color:var(--texto)}
:root .carga-barra{height:3px;border-radius:3px;background:rgba(255,255,255,.08)}
:root .carga-barra b{background:var(--acento)}
:root #fade{background:var(--suelo)}

/* panel de la mesa y libro (red/mesa.js) */
:root #mesaPanel,:root #libroPanel{border-radius:18px}
:root #mesaPanel .mp-head,:root #libroPanel .mp-head{border-bottom:1px solid var(--borde)}
:root #mesaPanel .mp-head h3,:root #libroPanel .mp-head h3{font-family:var(--f-titulo);color:var(--texto)}
:root #mesaPanel h4{font-family:var(--f-texto);font-size:11px;font-weight:600;letter-spacing:.12em;color:var(--texto-suave)}
:root .mp-qr{border:0;border-radius:12px;padding:8px;background:#efe7da}
:root .mp-cod{font-family:var(--f-num);font-weight:600;font-size:30px;color:var(--texto)}
:root .mp-cod small{font-family:var(--f-texto);font-weight:600;font-size:10.5px}
:root .mp-lista li{border:1px solid var(--borde);border-radius:10px;background:rgba(255,255,255,.03);font-size:13.5px}
:root .mp-lista li small{font-family:var(--f-texto);letter-spacing:0}
:root .mp-lista .pv{font-family:var(--f-num)}
:root .ib{width:30px;height:30px;border:1px solid var(--borde);border-radius:8px;background:rgba(255,255,255,.04);color:var(--texto-suave);transition:all .15s}
:root .ib:hover{color:var(--texto);border-color:var(--borde-vivo)}
:root .ib.on{background:rgba(111,176,176,.14);color:var(--oculto);border-color:rgba(111,176,176,.4)}
:root .seg{gap:2px;padding:3px;border:0;border-radius:11px;background:rgba(0,0,0,.3)}
:root .seg button{border:0;border-radius:8px;font-family:var(--f-texto);font-size:12.5px;letter-spacing:0;color:var(--texto-suave)}
:root .seg button+button{border-left:0}
:root .seg button.on{background:var(--acento-fondo);color:var(--acento-2)}
:root .mp-chk{font-size:13.5px}
:root .mp-chk input{accent-color:var(--acento)}
:root .mp-atajos kbd{font-family:var(--f-num);border:1px solid var(--borde-vivo);border-radius:5px;background:rgba(0,0,0,.3)}
:root .mp-fila select,:root .mp-fila input[type=text]{background:rgba(0,0,0,.3);border:1px solid var(--borde);border-radius:9px;font-family:var(--f-texto);font-size:13.5px;height:36px}
:root .mp-tiradas li{border-left:0;border-radius:10px;background:rgba(0,0,0,.22);padding:7px 10px}
:root .mp-tiradas b{font-family:var(--f-num);color:var(--texto)}
:root .mp-tiradas .crit b{color:var(--acento-2)}
:root .mp-tiradas .pifia b{color:var(--herida)}
:root .mp-nota{font-size:12.5px}
:root .mp-url{font-family:var(--f-num)}
:root .vista-chip{font-family:var(--f-texto);font-size:11px;font-weight:600;letter-spacing:.12em;padding:6px 14px;border-radius:999px;border:1px solid var(--borde-vivo);background:rgba(12,9,7,.84)}
:root #minimapa{border:1px solid var(--borde-vivo);box-shadow:0 0 0 3px rgba(8,6,5,.6),0 14px 30px rgba(0,0,0,.6)}
:root #teleVelo h1{font-family:var(--f-titulo);color:var(--texto)}
:root #teleVelo .tv-boton{border:0;border-radius:999px;background:var(--acento);color:var(--sobre-acento);font-family:var(--f-texto);font-weight:600;letter-spacing:.08em;font-size:16px}
:root #teleVelo input{background:rgba(0,0,0,.3);border:1px solid var(--borde-vivo);border-radius:10px;font-family:var(--f-num)}
:root #teleVelo button{border:0;border-radius:10px;background:var(--acento);color:var(--sobre-acento);font-family:var(--f-texto);font-weight:600;letter-spacing:0}
:root #teleRed{font-family:var(--f-texto);font-size:11.5px;letter-spacing:.06em}

/* la tele se ve de lejos: un poco más grande */
@media (min-width:1500px){:root .rol-pantalla #nText{font-size:19px}:root .rol-pantalla .card .nom{font-size:17px}:root .rol-pantalla .tag{font-size:14px}}

@media (max-width:980px){
  :root #party{top:calc(84px + env(safe-area-inset-top,0px))}
  :root #narrator{top:auto;width:auto}
  :root .menu-btn{width:56px;height:58px}:root .menu-btn svg{width:22px;height:22px}
  :root .menu-btn.dado{width:64px;height:64px}
  :root .menu-btn.historia{height:50px;padding:0 12px;font-size:13px}
  :root .marca{padding:8px 12px}
}
@media (max-width:560px){
  :root .marca{flex:1 0 100%;flex-direction:row;align-items:baseline;gap:8px;padding:8px 12px}
  :root .marca b{font-size:18px}
  :root .dato,:root .btn-top,:root .ciclo{height:38px}
  :root .ciclo button{height:30px}
  :root .menu-btn{width:48px}:root .menu-btn span{display:none}
}

/* =====================================================================
   COLUMNA DEL GRUPO (solo personajes) y COLUMNA DERECHA (narrador + misión)
   ===================================================================== */
:root #party{width:316px;bottom:calc(116px + env(safe-area-inset-bottom,0px))}
:root #party .cards{flex:1;gap:7px;padding:0 4px 4px 0}
:root .card.rica{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:9px 11px 10px;flex:none}
:root .card.rica:hover{transform:translateX(3px)}
:root .g-cab{display:flex;align-items:center;gap:10px;min-width:0}
:root .g-papel{width:32px;height:32px;flex:none;border-radius:10px;display:grid;place-items:center;font-size:19px;color:#fff6e8;
  background:linear-gradient(150deg,color-mix(in srgb,var(--c) 85%,#fff 15%),color-mix(in srgb,var(--c) 55%,#000 45%));box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 4px 12px -4px color-mix(in srgb,var(--c) 70%,transparent)}
:root .g-nom{flex:1;min-width:0}
:root .card.rica .nom{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root .card.rica .cls{font-size:11.5px;text-transform:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root .g-turno{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;font-size:14px;color:var(--sobre-acento);background:var(--acento);flex:none}
:root .g-ca{position:relative;flex:none;width:32px;height:34px;display:grid;place-items:center;color:rgba(255,232,200,.16)}
:root .g-ca .ic{position:absolute;inset:0;width:100%;height:100%}
:root .g-ca b{position:relative;font-family:var(--f-num);font-size:13px;font-weight:600;color:var(--texto);margin-top:-2px}
:root .card.rica .vida{margin:0;gap:6px}
:root .card.rica .barra{position:relative;height:7px}
:root .card.rica .barra>i{position:absolute;right:0;top:0;bottom:0;border-radius:999px;background:repeating-linear-gradient(45deg,#8fb8e6 0 3px,#6d97c8 3px 6px);opacity:.85}
:root .card.rica .pv{min-width:52px;font-size:12.5px;color:var(--texto);font-weight:600}
:root .card.rica .pv small{color:var(--texto-suave);font-weight:500}
:root .card.rica .pv em{font-style:normal;color:#8fb8e6;margin-left:3px;font-size:11px}
:root .card.rica .pvbtn{width:20px;height:20px;font-size:13px;line-height:16px}
:root .g-cars{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
:root .g-car{display:flex;flex-direction:column;align-items:center;padding:2px 0 3px;border-radius:8px;background:rgba(255,255,255,.035);border:1px solid transparent;font-family:var(--f-num);font-size:12.5px;font-weight:600;color:var(--texto);line-height:1.15}
:root .g-car small{font-family:var(--f-texto);font-size:9px;font-weight:600;letter-spacing:.08em;color:var(--texto-suave)}
:root .g-car.comp{border-color:rgba(226,163,82,.28);background:rgba(226,163,82,.07)}
:root .g-car.comp small{color:var(--acento)}
:root .g-car:hover,:root .g-chip:hover{border-color:var(--borde-vivo)}
:root .g-chips{display:flex;flex-wrap:nowrap;gap:3px;overflow:hidden}
:root .g-chip{display:inline-flex;align-items:center;gap:3px;height:21px;padding:0 6px;flex:none;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid var(--borde);font-family:var(--f-num);font-size:11px;font-weight:500;color:var(--texto-suave);white-space:nowrap}
:root .g-chip .ic{font-size:12px;color:var(--texto)}
:root .g-chip.magia{color:#b9c8f2}:root .g-chip.magia .ic{color:#8fa6e6}
:root .g-chip.luz{color:var(--acento-2);border-color:rgba(226,163,82,.35)}:root .g-chip.luz .ic{color:var(--acento)}
:root .g-muerte{display:flex;align-items:center;gap:4px;font-size:13px;color:var(--herida)}
:root .g-muerte i{width:9px;height:9px;border-radius:50%;border:1.5px solid currentColor;opacity:.6}
:root .g-muerte i.e{color:var(--vida)}:root .g-muerte i.f{color:var(--herida)}
:root .g-muerte i.on{background:currentColor;opacity:1}
:root .g-muerte em{width:6px}
:root .card.rica.sel{border-color:rgba(226,163,82,.55)}

/* tooltip del grupo */
#gTip{position:fixed;left:0;top:0;z-index:60;max-width:260px;padding:9px 12px;border-radius:12px;background:rgba(22,18,15,.97);border:1px solid var(--borde-vivo);box-shadow:0 14px 34px -10px rgba(0,0,0,.8);font:400 12.5px/1.45 var(--f-texto);color:var(--texto-suave);pointer-events:none;opacity:0;transition:opacity .15s}
#gTip.ver{opacity:1}
#gTip b{display:block;color:var(--texto);font-weight:600;font-size:13px;margin-bottom:2px}

/* columna derecha: narrador arriba, misión debajo */
@media (min-width:981px){
  :root #colDer{position:absolute;right:max(16px,env(safe-area-inset-right,0px));top:calc(92px + env(safe-area-inset-top,0px));bottom:calc(116px + env(safe-area-inset-bottom,0px));width:370px;display:flex;flex-direction:column;gap:10px;pointer-events:none;z-index:4}
  :root #colDer>*{pointer-events:auto}
  :root #colDer #narrator{position:relative;top:auto;right:auto;bottom:auto;left:auto;width:auto;max-height:none;flex:0 1 auto;min-height:0}
  :root #colDer #quest{flex:none;margin:0}
  :root.rol-pantalla #colDer,:root .rol-pantalla #colDer{bottom:24px}
}
@media (max-width:980px){
  :root #colDer{display:contents}
  :root #quest{display:none}
}

/* el grupo usa toda la altura (el dock va centrado y no lo pisa) y las
   cinco tarjetas miden lo mismo; si no caben, la columna se desplaza */
@media (min-width:1181px){
  :root #party{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
}
:root #party .cards{display:grid;grid-auto-rows:1fr;align-content:start}
:root #party .card.rica{justify-content:space-between}
@media (min-width:981px) and (max-height:820px){
  :root .card.rica{gap:4px;padding:7px 10px 8px}
  :root .g-papel{width:28px;height:28px;font-size:17px}
  :root .card.rica .cls{display:none}
  :root .g-car{flex-direction:row;justify-content:center;gap:3px;padding:2px 0;font-size:12px}
  :root .g-car small{font-size:8.5px}
}

/* nombres sobre las fichas: todos · el que toca · ninguno (tecla N) */
:root body[data-nombres="turno"] #labels .tag.pj:not(.sel):not(.ver),
:root body[data-nombres="ninguno"] #labels .tag.pj:not(.ver){opacity:0;pointer-events:none}
:root #labels .tag.pj{transition:opacity .2s}
:root #labels .tag.pj.ver{border-color:var(--acento);z-index:2}
:root #camNombres.activo{color:var(--acento-2);border-color:rgba(226,163,82,.45)}
#gAviso{position:fixed;left:50%;bottom:calc(150px + env(safe-area-inset-bottom,0px));transform:translate(-50%,8px);z-index:40;padding:8px 16px;border-radius:999px;background:rgba(22,18,15,.95);border:1px solid var(--borde-vivo);color:var(--texto);font:500 13px var(--f-texto);opacity:0;pointer-events:none;transition:opacity .2s,transform .3s var(--muelle)}
#gAviso.ver{opacity:1;transform:translate(-50%,0)}
