@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@400;600;800&family=Share+Tech+Mono&display=swap');

:root {
  --fondo: #05070d; --texto: #e8ecf2; --tenue: #9aa3b2; --rojo: #e2382a; --rojo2: #ff5a45; --oro: #ffd23f;
  --vidrio: rgba(9, 12, 20, 0.72); --borde: rgba(255, 255, 255, 0.09);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fondo); color: var(--texto); font-family: 'Outfit', system-ui, sans-serif; overflow: hidden; }
body { -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
body.jugando { touch-action: none; overscroll-behavior: none; }
body.jugando #tj-chat-dock, body.jugando .tj-chat-dock { display: none !important; }
#app { position: fixed; inset: 0; }
#lienzo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body.limite #lienzo, body.muerto #lienzo { filter: grayscale(0.85) contrast(1.05); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ── pantallas ─────────────────────────────────────────────────────── */
.pantalla {
  position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px 16px; overflow-y: auto;
  background: radial-gradient(ellipse at 50% 120%, rgba(160, 20, 12, 0.35), transparent 60%), radial-gradient(ellipse at 20% 0%, rgba(40, 60, 110, 0.35), transparent 55%), #05070d;
}
.pantalla.ayuda { background: rgba(3, 4, 8, 0.72); backdrop-filter: blur(4px); }
.niebla { position: absolute; inset: -20%; pointer-events: none; opacity: 0.5;
  background: radial-gradient(ellipse at 30% 60%, rgba(180, 190, 210, 0.12), transparent 40%), radial-gradient(ellipse at 70% 40%, rgba(180, 190, 210, 0.1), transparent 45%);
  animation: niebla 26s linear infinite alternate; }
@keyframes niebla { to { transform: translate(8%, -4%) scale(1.1); } }
.caja { position: relative; width: min(600px, 100%); padding: 28px 26px; border-radius: 20px; background: var(--vidrio); border: 1px solid var(--borde);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rojo2); }
.titulo { margin: 0; font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(64px, 14vw, 118px); line-height: 0.9; letter-spacing: 0.1em;
  /* como el título de la bienvenida: limpio arriba, infectado abajo */
  color: #efe7dc; background: linear-gradient(180deg, #ffffff 0%, #e6e8ee 34%, #ff6a4f 58%, #c81d12 78%, #5a0606 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(226, 56, 42, 0.5)); animation: parpadeo 6s infinite; }
.capitulo-sub { margin: 10px 0 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: #d5dae3; }
@keyframes parpadeo { 0%, 92%, 100% { opacity: 1; } 93% { opacity: 0.55; } 94% { opacity: 1; } 96% { opacity: 0.7; } }
.bajada { color: var(--tenue); font-size: 16px; line-height: 1.5; margin: 12px 0 22px; }
.acciones { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.primario { border: 0; border-radius: 12px; padding: 14px 22px; font-weight: 800; font-size: 16px; letter-spacing: 0.03em; color: #fff;
  background: linear-gradient(135deg, #a3201a, var(--rojo2)); box-shadow: 0 10px 30px -10px rgba(226, 56, 42, 0.7); }
.primario:hover { filter: brightness(1.1); }
.secundario { border: 1px solid var(--borde); border-radius: 12px; padding: 12px 18px; background: rgba(255, 255, 255, 0.04); color: var(--tenue); margin-top: 8px; }
.unirse { display: flex; gap: 6px; flex: 1; min-width: 220px; }
.unirse input { flex: 1; min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid var(--borde); background: rgba(0, 0, 0, 0.35); color: var(--texto);
  font: 800 16px 'Outfit'; letter-spacing: 0.3em; text-transform: uppercase; text-align: center; }
.unirse button { border: 1px solid var(--borde); border-radius: 12px; padding: 0 16px; background: rgba(255, 255, 255, 0.06); font-weight: 600; }
.capitulo { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--rojo); }
.capitulo p { margin: 6px 0 0; color: var(--tenue); font-size: 14px; line-height: 1.5; }
.capitulo + .capitulo { margin-top: 10px; }
.capitulo.c2 { border-left-color: #e0a040; }
.capitulo.c3 { border-left-color: #5ab0e8; }
.capitulo .nuevo { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #e0a040; color: #1a1206; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px; }
#portada-capitulos > .nota { margin: 8px 2px 0; }
.calidad { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--tenue); flex-wrap: wrap; }
.calidad button, #sala-dif button { border: 1px solid var(--borde); background: rgba(255, 255, 255, 0.04); border-radius: 10px; padding: 7px 12px; font-size: 13px; }
.calidad button.sel, #sala-dif button.sel { border-color: var(--rojo2); background: rgba(226, 56, 42, 0.18); color: #fff; }
.volver { display: inline-block; margin-top: 18px; color: var(--tenue); font-size: 13px; text-decoration: none; }
#noexiste { flex-direction: column; text-align: center; }
#noexiste h1 { font: 96px 'Bebas Neue', Impact; margin: 0; color: #3a3f4a; }

/* sala */
.codigo-sala { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); }
.codigo-sala span { font-size: 11px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--tenue); }
.codigo-sala b { font: 30px 'Bebas Neue', Impact; letter-spacing: 0.25em; color: var(--oro); margin-right: auto; }
.codigo-sala button { border: 1px solid var(--borde); background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
#sala-jugadores { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
#sala-jugadores li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border-left: 3px solid var(--c); }
#sala-jugadores .foto { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #222a38; flex-shrink: 0; }
#sala-jugadores .foto img { width: 100%; height: 100%; object-fit: cover; }
#sala-jugadores .tjm { margin: 4px; }
#sala-jugadores .ini { font-weight: 800; }
#sala-jugadores .nom { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sala-jugadores .nom em { font-style: normal; font-size: 11px; color: var(--oro); text-transform: uppercase; }
#sala-jugadores .nom small.pj { display: block; font-size: 11px; font-weight: 700; color: var(--tenue); overflow: hidden; text-overflow: ellipsis; }
#sala-jugadores .nv { font-size: 12px; color: var(--tenue); }
/* asientos libres del equipo (los toma un bot si no llega nadie) y el que recién llega */
#sala-jugadores li.libre { border: 1px dashed rgba(255, 255, 255, 0.18); border-left: 3px dashed rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.02); }
#sala-jugadores li.libre .foto { font-size: 26px; background: rgba(255, 255, 255, 0.04); opacity: 0.55; animation: asiento-respira 2.4s ease-in-out infinite; }
#sala-jugadores li.libre .nom { color: var(--tenue); font-weight: 600; display: flex; flex-direction: column; }
#sala-jugadores li.libre .nom small { font-size: 11px; font-weight: 500; opacity: 0.8; }
#sala-jugadores li.llega { animation: asiento-llega 0.5s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes asiento-respira { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.75; } }
@keyframes asiento-llega { from { opacity: 0; transform: scale(0.9) translateY(6px); } to { opacity: 1; transform: none; } }
/* la cuenta regresiva de la sala de «Jugar ahora» */
.busca { display: flex; align-items: center; gap: 16px; margin: 4px 0 14px; padding: 14px 16px; border-radius: 16px;
  background: radial-gradient(ellipse at 20% 50%, rgba(226, 56, 42, 0.22), transparent 70%), rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 90, 69, 0.35); }
.busca .anillo { position: relative; flex: none; width: 92px; height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.busca .anillo svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.busca .anillo circle { fill: none; stroke-width: 8; }
.busca .anillo .pista { stroke: rgba(255, 255, 255, 0.08); }
.busca .anillo .avance { stroke: #ff5a45; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 0; transition: stroke-dashoffset 0.25s linear; filter: drop-shadow(0 0 6px rgba(255, 90, 69, 0.7)); }
.busca .anillo b { position: relative; font: 30px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: 0.04em; color: #fff; }
.busca .anillo small { position: relative; margin-top: 2px; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tenue); }
.busca-txt strong { display: block; font: 24px/1.05 'Bebas Neue', Impact, sans-serif; letter-spacing: 0.06em; color: #fff; }
.busca-txt p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--texto); }
.busca.urgente .anillo b { color: #ffb020; animation: busca-late 1s ease-in-out infinite; }
@keyframes busca-late { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { #sala-jugadores li.libre .foto, #sala-jugadores li.llega, .busca.urgente .anillo b { animation: none; } }
.nota { color: var(--tenue); font-size: 13px; margin: 6px 0; }
.dificultad { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.dificultad > span { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tenue); }
#sala-dif { display: flex; gap: 6px; flex-wrap: wrap; }
#sala-empezar { width: 100%; margin-top: 6px; font-size: 18px; }
.como { margin-top: 14px; color: var(--tenue); font-size: 14px; }
.como summary { cursor: pointer; font-weight: 600; color: var(--texto); }
.como li { margin: 6px 0; line-height: 1.45; }
#sala .secundario { width: 100%; }

/* resultado */
#resultado .caja { width: min(760px, 100%); text-align: center; }
#res-titulo { font: clamp(48px, 10vw, 84px) 'Bebas Neue', Impact; letter-spacing: 0.08em; margin: 0; color: #cfd5de; }
#resultado.victoria #res-titulo { color: var(--oro); text-shadow: 0 0 30px rgba(255, 210, 63, 0.4); }
#res-sub { color: var(--tenue); margin: 4px 0 16px; }
#res-tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
#res-tabla th { font-size: 12px; color: var(--tenue); font-weight: 600; padding: 6px; }
#res-tabla td { padding: 8px 6px; border-top: 1px solid var(--borde); }
#res-tabla td:first-child { text-align: left; font-weight: 600; }
#res-tabla tr.yo td { background: rgba(255, 255, 255, 0.04); }
#res-tabla tr.mvp td { background: rgba(255, 210, 63, 0.08); }
.mvp-t { font-size: 10px; color: #1a1400; background: var(--oro); padding: 2px 6px; border-radius: 6px; margin-left: 6px; }
#res-tabla i, #equipo i { font-style: normal; font-size: 10px; color: var(--tenue); }
.pin { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 7px; box-shadow: 0 0 8px var(--c); }
#res-xp { color: var(--oro); font-weight: 800; margin: 14px 0 4px; }
#resultado .acciones { justify-content: center; }
.ayuda h2 { font: 40px 'Bebas Neue', Impact; letter-spacing: 0.1em; margin: 0 0 10px; }
.ayuda li { margin: 8px 0; line-height: 1.5; color: var(--tenue); }
kbd { display: inline-block; min-width: 24px; padding: 2px 6px; margin: 0 2px; border-radius: 6px; background: #1b2130; border: 1px solid #333c4f; border-bottom-width: 3px; font: 600 12px 'Outfit'; color: #fff; text-align: center; }

/* ── HUD ───────────────────────────────────────────────────────────── */
:root { --ok: #3ee08a; --medio: #f3c13f; --malo: #ff5a45; --muy-malo: #ff2d2d; --panel: rgba(7, 10, 17, 0.66); --panel2: rgba(12, 16, 26, 0.82); --linea: rgba(255, 255, 255, 0.09); }
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 10; font-variant-numeric: tabular-nums; }
#hud button { pointer-events: auto; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; fill: currentColor; }
.ico.arma { width: 3.2em; height: 1em; }
.ico.rojo { color: #ff4a3d; } .ico.naranja { color: #f39a2a; } .ico.amarillo { color: #ffe14a; }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; background: #1b2130; border: 1px solid #39435a; border-bottom-width: 3px; font: 700 11px 'Outfit'; color: #fff; line-height: 1; }
body.jugando.con-mira #lienzo { cursor: none; }

/* nombres sobre las cabezas, flechas y marcas */
#etiquetas { position: absolute; inset: 0; overflow: hidden; }
#etiquetas .nombre { position: absolute; left: 0; top: 0; translate: -50% -100%; display: flex; flex-direction: column; align-items: center; gap: 3px; white-space: nowrap; }
#etiquetas .nombre > span { padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; background: rgba(4, 6, 11, 0.62); border-bottom: 2px solid var(--c); text-shadow: 0 1px 2px #000; display: flex; align-items: center; gap: 4px; }
#etiquetas .nombre .v { width: 42px; height: 4px; border-radius: 3px; background: rgba(0, 0, 0, 0.55); overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
#etiquetas .nombre .v i { display: block; height: 100%; }
#etiquetas .nombre.urgente > span { background: rgba(170, 18, 10, 0.88); border-color: #fff; animation: latir 0.8s infinite; }
#etiquetas .nombre.fuera { opacity: 0.35; }
/* nombre de un especial la primera vez que aparece */
#etiquetas .especial { position: absolute; left: 0; top: 0; translate: -50% -100%; display: flex; flex-direction: column; align-items: center; white-space: nowrap; pointer-events: none; animation: esp-entra 0.35s ease-out; transition: opacity 0.6s; }
#etiquetas .especial b { font-size: 15px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); text-shadow: 0 0 10px var(--c), 0 1px 2px #000, 0 0 2px #000; }
#etiquetas .especial small { margin-top: 1px; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(4, 6, 11, 0.7); }
#etiquetas .especial.sale { opacity: 0; }
/* objetos del suelo: nombre en su color; las armas, con su nombre propio y qué hacen */
#etiquetas .objeto { position: absolute; left: 0; top: 0; translate: -50% -100%; display: flex; flex-direction: column; align-items: center; white-space: nowrap; pointer-events: none; transition: opacity 0.25s; }
#etiquetas .objeto b { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--c); text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, 0.8); }
#etiquetas .objeto.arma b { font: 20px/1 'Bebas Neue', Impact; letter-spacing: 0.08em; text-shadow: 0 0 10px var(--c), 0 1px 3px #000; }
#etiquetas .objeto small { margin-top: 2px; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; color: #e9edf3; background: rgba(4, 6, 11, 0.72); border-bottom: 2px solid var(--c); display: none; }
#etiquetas .objeto.arma.cerca small { display: block; }
#etiquetas .objeto.cerca b { animation: latir 1s infinite; }
@keyframes esp-entra { from { opacity: 0; scale: 1.4; } to { opacity: 1; scale: 1; } }
.flecha { position: absolute; left: 0; top: 0; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; color: var(--c); text-shadow: 0 1px 3px #000, 0 0 6px rgba(0, 0, 0, 0.8); }
.flecha i { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid var(--c); transform: rotate(calc(var(--r) + 90deg)); filter: drop-shadow(0 0 5px var(--c)); }
.flecha span { display: flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 6px; background: rgba(4, 6, 11, 0.55); }
.flecha.urgente { animation: latir 0.7s infinite; }
.flecha.urgente span { background: rgba(170, 18, 10, 0.85); color: #fff; }
.meta { position: absolute; left: 0; top: 0; translate: -50% -100%; display: flex; align-items: center; gap: 4px; color: var(--oro); font-weight: 800; font-size: 13px; text-shadow: 0 0 8px rgba(255, 210, 63, 0.8), 0 1px 2px #000; animation: flotar 1.6s ease-in-out infinite; }
.ping { position: absolute; left: 0; top: 0; translate: -50% -100%; display: flex; flex-direction: column; align-items: center; padding: 3px 10px; border-radius: 9px; background: var(--c); color: #0a0a0a; font-weight: 800; font-size: 12px; box-shadow: 0 0 16px var(--c); animation: flotar 1s ease-in-out infinite; }
.ping small { font-size: 9px; font-weight: 700; opacity: 0.75; }
@keyframes latir { 50% { transform: scale(1.07); filter: brightness(1.3); } }
@keyframes flotar { 50% { margin-top: -6px; } }

/* panel del equipo */
#equipo { position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); list-style: none; margin: 0; padding: 0; width: 228px; display: flex; flex-direction: column; gap: 5px; }
#equipo li { position: relative; display: grid; grid-template-columns: 34px 1fr auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 7px; row-gap: 3px; padding: 5px 9px 6px 5px; border-radius: 11px;
  background: var(--panel); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 55%), var(--panel); border: 1px solid var(--linea); border-left: 3px solid var(--c); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 12px; }
#equipo .retrato { grid-column: 1; grid-row: 1 / 3; }
#equipo .n { grid-column: 2; grid-row: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#equipo .n i { font-style: normal; font-size: 9px; font-weight: 700; color: var(--tenue); text-transform: uppercase; letter-spacing: 0.06em; }
#equipo .est { grid-column: 3; grid-row: 1; font-size: 14px; display: flex; }
#equipo .lleva { grid-column: 4; grid-row: 1; justify-self: end; display: flex; gap: 3px; font-size: 13px; color: #cfd6e2; }
#equipo .est:empty { display: none; }
#equipo .vida { grid-column: 2 / 4; grid-row: 2; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); display: flex; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35); }
#equipo .vida i { display: block; height: 100%; transition: width 0.2s; }
#equipo .vida .t { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0 3px, rgba(255, 255, 255, 0.2) 3px 5px); }
#equipo .hp { grid-column: 4; grid-row: 2; font: 15px 'Bebas Neue', Impact; letter-spacing: 0.04em; min-width: 22px; text-align: right; }
#equipo li.urgente { border-color: rgba(255, 60, 40, 0.6); background: linear-gradient(90deg, rgba(200, 20, 10, 0.4), transparent 70%), var(--panel); animation: latir 1s infinite; }
#equipo li.urgente .est { color: #ff6a5a; }
#equipo li.limite .est { color: #c9c9c9; }
#equipo li.fuera { opacity: 0.45; filter: grayscale(1); }
#equipo.compacto { width: 200px; gap: 3px; }
#equipo.compacto li { grid-template-columns: 22px 1fr auto auto; padding: 2px 7px 3px 3px; font-size: 11px; }
#equipo.compacto .retrato .foto, #equipo.compacto .retrato .tjm { --tjm-s: 20px; }
#equipo.compacto .lleva { display: none; }
.retrato { display: grid; place-items: center; }
.retrato .foto { width: var(--tjm-s, 30px); height: var(--tjm-s, 30px); border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #202839; }
.retrato .foto img { width: 100%; height: 100%; object-fit: cover; }
.retrato .ini { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; color: #0b0d12; background: var(--c); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); }
#equipo .retrato .foto { --tjm-s: 30px; }

/* tus signos vitales */
#yo { position: absolute; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 9px; border-radius: 16px;
  background: var(--panel); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%), var(--panel); border: 1px solid var(--linea); border-left: 4px solid var(--c); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8); }
#yo .retrato .foto { --tjm-s: 54px; width: 54px; height: 54px; }
#yo .datos { width: 230px; }
#yo .fila { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
#yo .nombre { font-weight: 800; font-size: 14px; letter-spacing: 0.02em; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#yo .caidas { display: flex; gap: 3px; font-size: 15px; color: #ff5470; }
#yo .caidas .roto { color: #6b6b73; }
#yo .vida { position: relative; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); display: flex; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05); }
#yo .vida i { display: block; height: 100%; transition: width 0.25s; }
#yo .vida .b { box-shadow: inset 0 -6px 8px -6px rgba(0, 0, 0, 0.5), inset 0 5px 6px -5px rgba(255, 255, 255, 0.45); }
#yo .vida .t { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0 4px, rgba(255, 255, 255, 0.25) 4px 8px); }
#yo .vida .num { position: absolute; right: 7px; top: 50%; translate: 0 -50%; font: 17px 'Bebas Neue', Impact; letter-spacing: 0.05em; text-shadow: 0 1px 3px #000, 0 0 6px rgba(0, 0, 0, 0.7); }
#yo.caido .vida { animation: latir 0.9s infinite; }
#yo.limite { filter: saturate(0.3); }
#items { display: flex; gap: 6px; }
#items span { position: relative; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: rgba(0, 0, 0, 0.3); border: 1px dashed rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.16); }
#items span kbd { position: absolute; right: -5px; bottom: -6px; min-width: 16px; height: 16px; font-size: 9px; opacity: 0; }
#items span.tiene { border-style: solid; border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); }
#items span.tiene kbd { opacity: 1; }
#items span[data-i="botiquin"].tiene { color: #ff4a3d; box-shadow: 0 0 14px -4px #ff4a3d; }
#items span[data-i="pastillas"].tiene { color: #f39a2a; box-shadow: 0 0 14px -4px #f39a2a; }
#items span[data-i="botiquin"].tiene.desfib { color: #ffe14a; box-shadow: 0 0 14px -4px #ffe14a; }
/* cuerpo a cuerpo: sin balas; en su lugar, lo que hace el arma */
#arma.cuerpo .mun, #arma.cuerpo .balas { display: none; }
#arma .desc { display: none; margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--tenue); }
#arma.cuerpo .desc { display: block; }
#items span[data-i="bomba"].tiene { color: #c8ccd4; box-shadow: 0 0 14px -4px #ff5a3a; }

/* el arma */
#arma { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 250px; padding: 10px 14px 11px; border-radius: 16px; text-align: right;
  background: var(--panel); border: 1px solid var(--linea); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8); }
#arma .silueta { display: block; width: 100%; height: 44px; color: #e9edf3; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
#arma .linea { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 2px; }
#arma .nombre { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
#arma .nombre b { font: 26px/0.95 'Bebas Neue', Impact; letter-spacing: 0.06em; color: var(--arma, #fff); text-shadow: 0 0 14px color-mix(in srgb, var(--arma, #fff) 45%, transparent); }
#arma .nombre small { margin-top: 2px; font-size: 10px; color: var(--tenue); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
#arma .silueta { color: color-mix(in srgb, var(--arma, #fff) 28%, #e9edf3); }
#arma { border-bottom: 2px solid color-mix(in srgb, var(--arma, #fff) 55%, transparent); }
#arma .recien { position: absolute; right: 0; bottom: calc(100% + 8px); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; white-space: nowrap; }
#arma .recien b { font: 44px/0.9 'Bebas Neue', Impact; letter-spacing: 0.06em; color: var(--arma); text-shadow: 0 0 22px var(--arma), 0 2px 4px #000; }
#arma .recien span { font-size: 12px; font-weight: 700; color: #fff; background: rgba(4, 6, 11, 0.72); padding: 2px 8px; border-radius: 6px; }
#arma.nueva .recien { opacity: 1; transform: none; }
#arma.nueva { animation: arma-nueva 0.7s ease-out; }
@keyframes arma-nueva { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--arma) 80%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
#arma .mun b { font: 40px/1 'Bebas Neue', Impact; letter-spacing: 0.03em; }
#arma .mun span { color: var(--tenue); margin-left: 6px; font: 20px 'Bebas Neue', Impact; letter-spacing: 0.05em; }
#arma .mun span::before { content: '/ '; opacity: 0.6; }
#arma .balas { display: flex; justify-content: flex-end; gap: 3px; margin-top: 6px; height: 12px; }
#arma .balas i { width: 5px; height: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
#arma .balas i.va { background: linear-gradient(#ffe29a, #d4a84a); box-shadow: 0 0 6px -1px rgba(255, 210, 120, 0.7); }
#arma .balas.barra { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 8px; }
#arma .balas.barra i { width: 100%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #d4a84a, #ffe29a); transition: width 0.1s; margin-left: auto; }
#arma.poca .mun b { color: var(--medio); }
#arma.vacia .mun b { color: var(--malo); animation: latir 0.6s infinite; }
#arma.recargando .balas { position: relative; }
#arma.recargando .balas::after { content: 'RECARGANDO'; position: absolute; inset: -3px 0 auto auto; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; color: #fff; text-shadow: 0 0 6px var(--oro); }
#arma.recargando .balas i { opacity: 0.25; }
#arma.recargando::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--oro) calc(var(--p, 0) * 100%), rgba(255, 255, 255, 0.1) 0); }
#arma .otra { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 7px; font-size: 11px; color: var(--tenue); }
#arma .otra .ico.arma { width: 2.6em; height: 0.9em; opacity: 0.8; }

/* objetivo, avisos y carteles */
#objetivo { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 50%; translate: -50% 0; max-width: min(620px, 56vw); padding: 8px 16px 9px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--linea); border-top: 2px solid var(--oro); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-align: center; font-size: 14px; font-weight: 700; text-shadow: 0 1px 2px #000; }
#objetivo-texto { display: flex; align-items: center; justify-content: center; gap: 8px; }
#objetivo-texto .ico { color: var(--oro); font-size: 17px; filter: drop-shadow(0 0 6px rgba(255, 210, 63, 0.6)); }
#objetivo-dist { display: block; font-size: 11px; color: var(--tenue); font-weight: 700; letter-spacing: 0.1em; margin-top: 1px; }
#objetivo-dist:empty { display: none; }
#objetivo.urgente { border-top-color: var(--malo); animation: latir 1s infinite; }
#objetivo-barra { margin-top: 7px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
#objetivo-barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--rojo), var(--oro)); box-shadow: 0 0 10px rgba(255, 210, 63, 0.6); transition: width 0.3s; }
#avisos { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 158px); right: max(10px, env(safe-area-inset-right)); width: min(340px, 34vw); display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.aviso { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--linea); border-right: 3px solid var(--tenue); font-size: 13px; line-height: 1.3; text-shadow: 0 1px 2px #000; animation: entrar 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.aviso .ico { font-size: 17px; }
.aviso.mal { border-right-color: var(--malo); background: linear-gradient(270deg, rgba(160, 20, 10, 0.55), transparent 80%), var(--panel2); }
.aviso.mal .ico { color: #ff6a5a; }
.aviso.bien { border-right-color: var(--ok); } .aviso.bien .ico { color: var(--ok); }
.aviso.oro { border-right-color: var(--oro); background: linear-gradient(270deg, rgba(150, 110, 10, 0.5), transparent 80%), var(--panel2); } .aviso.oro .ico { color: var(--oro); }
.aviso.info .ico { color: #7cc4ff; }
.aviso.sale { animation: salir 0.4s ease-in forwards; }
@keyframes entrar { from { opacity: 0; transform: translateX(24px) scale(0.96); } }
@keyframes salir { to { opacity: 0; transform: translateX(24px); } }
#banner { position: absolute; top: 30%; left: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; opacity: 0; white-space: nowrap; text-align: center; }
#banner b { font: clamp(58px, 12vw, 124px)/0.9 'Bebas Neue', Impact; letter-spacing: 0.1em; color: #fff; text-shadow: 0 0 30px rgba(226, 56, 42, 0.95), 0 0 80px rgba(226, 56, 42, 0.6), 0 4px 0 rgba(90, 0, 0, 0.7); }
#banner small { margin-top: 6px; padding: 5px 14px; border-radius: 10px; background: rgba(90, 8, 4, 0.7); font-size: clamp(13px, 2.2vw, 18px); font-weight: 700; letter-spacing: 0.06em; }
#banner.oro b { text-shadow: 0 0 30px rgba(255, 210, 63, 0.95), 0 0 80px rgba(255, 180, 40, 0.6), 0 4px 0 rgba(90, 60, 0, 0.7); }
#banner.oro small { background: rgba(90, 64, 4, 0.7); }
#banner.on { animation: banner 2.8s ease-out; }
@keyframes banner { 0% { opacity: 0; transform: scale(1.5); filter: blur(6px); } 10% { opacity: 1; transform: scale(1); filter: none; } 14% { transform: translateX(-4px); } 18% { transform: translateX(4px); } 22% { transform: none; } 78% { opacity: 1; } 100% { opacity: 0; transform: scale(0.97); } }
#arriba-der { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#minimapa { width: 180px; height: 113px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.14); background: #07090e; opacity: 0.94; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.5); }
#arriba-der .fila { display: flex; align-items: center; gap: 6px; }
#ping { font-size: 11px; color: var(--tenue); }
#arriba-der button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--borde); background: rgba(5, 8, 14, 0.6); font-size: 15px; }

/* barra del jefe (el Bruto) */
#jefe { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 72px); left: 50%; translate: -50% 0; width: min(460px, 52vw); display: flex; flex-direction: column; gap: 5px; }
#jefe .b { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 10px; background: rgba(40, 6, 4, 0.72); border: 1px solid rgba(255, 70, 50, 0.35); box-shadow: 0 0 24px -8px rgba(255, 40, 20, 0.7); }
#jefe .b > .ico { color: #ff6a4a; font-size: 16px; }
#jefe .b > span { font: 17px 'Bebas Neue', Impact; letter-spacing: 0.16em; color: #ffd6cc; }
#jefe .barra { position: relative; height: 9px; border-radius: 5px; background: rgba(0, 0, 0, 0.55); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
#jefe .barra i, #jefe .barra em { position: absolute; left: 0; top: 0; bottom: 0; }
#jefe .barra em { background: rgba(255, 220, 160, 0.55); transition: width 0.6s ease-in 0.25s; }
#jefe .barra i { z-index: 1; background: linear-gradient(90deg, #8e0f06, #ff3b1f 70%, #ff8a4a); box-shadow: 0 0 10px rgba(255, 60, 20, 0.7); transition: width 0.12s; }
#jefe .b.furia { animation: latir 0.7s infinite; }

/* estados, acción y contexto */
#estado { position: absolute; top: 60%; left: 50%; translate: -50% 0; min-width: 300px; max-width: 86vw; padding: 12px 22px 14px; border-radius: 16px; background: rgba(80, 8, 4, 0.78); border: 1px solid rgba(255, 90, 70, 0.35); text-align: center; font-size: 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#estado b { display: block; font: 32px 'Bebas Neue', Impact; letter-spacing: 0.08em; }
#estado .barra { margin: 9px auto 0; height: 7px; border-radius: 4px; background: rgba(0, 0, 0, 0.45); overflow: hidden; }
#estado .barra i { display: block; height: 100%; background: linear-gradient(90deg, #ff2d2d, #ff8a5a); transition: width 0.25s; }
#estado.bien { background: rgba(10, 70, 45, 0.8); border-color: rgba(62, 224, 138, 0.35); } #estado.bien .barra i { background: linear-gradient(90deg, #1fae63, var(--ok)); }
#estado.muerto { background: rgba(14, 16, 22, 0.85); border-color: rgba(255, 255, 255, 0.12); }
#accion { position: absolute; left: 50%; bottom: 24%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; text-shadow: 0 1px 2px #000; }
#accion svg { width: 62px; height: 62px; transform: rotate(-90deg); filter: drop-shadow(0 0 8px rgba(255, 210, 63, 0.35)); }
#accion circle { fill: rgba(0, 0, 0, 0.5); stroke: rgba(255, 255, 255, 0.15); stroke-width: 3; }
#accion circle.p { fill: none; stroke: var(--oro); stroke-dasharray: 97.4; stroke-dashoffset: calc(97.4 - 97.4 * var(--p, 0) / 100); stroke-linecap: round; }
#accion span { padding: 3px 10px; border-radius: 8px; background: rgba(5, 8, 14, 0.7); }
#contexto { position: absolute; left: 50%; bottom: 16%; translate: -50% 0; display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 7px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--linea); font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 20px -8px #000; animation: entrar2 0.2s ease-out; }
#contexto kbd { min-width: 26px; height: 26px; font-size: 13px; background: var(--oro); color: #1a1400; border-color: #b88f1e; }
#contexto small { font-size: 10px; color: var(--tenue); text-transform: uppercase; letter-spacing: 0.12em; }
@keyframes entrar2 { from { opacity: 0; transform: translateY(6px); } }

/* retícula */
#mira { position: absolute; left: 0; top: 0; width: 0; height: 0; --r: 12px; --col: #fff; }
#mira .anillo { position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; border: 1.5px solid var(--col); opacity: 0.55; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.35); transition: width 0.08s, height 0.08s, left 0.08s, top 0.08s; }
#mira .punto { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--col); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.6), 0 0 8px var(--col); }
#mira .carga { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; transform: rotate(-90deg); opacity: 0; }
#mira .carga circle { fill: none; stroke: var(--oro); stroke-width: 3; stroke-dasharray: 125.7; stroke-dashoffset: calc(125.7 - 125.7 * var(--p, 0)); stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8)); }
#mira.recargando .carga { opacity: 1; }
#mira.recargando .anillo { opacity: 0.2; }
#mira .golpe { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; opacity: 0;
  background: linear-gradient(45deg, transparent 44%, #fff 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #fff 44% 56%, transparent 56%);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); filter: drop-shadow(0 0 2px #000); }
#mira.golpe .golpe { animation: golpe 0.16s ease-out; }
@keyframes golpe { 0% { opacity: 1; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.35); } }
#mira .txt { position: absolute; left: 0; top: calc(var(--r) + 8px); translate: -50% 0; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; color: var(--malo); text-shadow: 0 1px 2px #000; opacity: 0; white-space: nowrap; }
#mira.poca { --col: var(--medio); }
#mira.cuerpo .anillo { border-style: dashed; opacity: 0.75; }
#mira.vacia { --col: var(--malo); }
#mira.vacia:not(.recargando) .txt { opacity: 1; }

/* sensación de daño y estados */
#vineta { position: absolute; inset: 0; pointer-events: none; transition: background 0.4s; }
body.herido #vineta { background: radial-gradient(ellipse at center, transparent 55%, rgba(140, 0, 0, 0.45)); animation: latir 1.1s infinite; }
body.caido #vineta { background: radial-gradient(ellipse at center, transparent 35%, rgba(90, 0, 0, 0.7)); }
body.atrapado #vineta { background: radial-gradient(ellipse at center, transparent 30%, rgba(120, 0, 30, 0.7)); }
body.vomitado #vineta { background: radial-gradient(ellipse at center, rgba(80, 120, 10, 0.18), rgba(70, 110, 0, 0.6)); }
#destello { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
#destello.on { animation: destello 0.45s ease-out; }
@keyframes destello { 0% { opacity: 1; } 100% { opacity: 0; } }
#golpe-dir { position: absolute; left: 50%; top: 50%; width: 46vmin; height: 46vmin; translate: -50% -50%; opacity: 0; pointer-events: none;
  background: conic-gradient(from calc(var(--a, 0rad) + 90deg - 25deg), rgba(220, 20, 10, 0.9) 0 50deg, transparent 50deg); border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%, #000 70%, transparent 72%); mask: radial-gradient(circle, transparent 62%, #000 64%, #000 70%, transparent 72%); }
#golpe-dir.on { animation: destello 0.9s ease-out; }

/* controles táctiles */
#tactil { display: none; }
@media (pointer: coarse) {
  #tactil { display: block; }
  /* celular: vitales arriba a la izquierda, el equipo debajo; el arma bajo el minimapa */
  #yo { top: max(8px, env(safe-area-inset-top)); bottom: auto; left: max(8px, env(safe-area-inset-left)); padding: 5px 9px 5px 5px; gap: 8px; border-radius: 12px; }
  #yo .retrato .foto { --tjm-s: 34px; width: 34px; height: 34px; }
  #yo .datos { width: 132px; }
  #yo .nombre { font-size: 11px; max-width: 90px; }
  #yo .vida { height: 12px; }
  #yo .vida .num { font-size: 13px; }
  #items { display: none; }      /* en el celular se ven en los botones Curar y Bomba */
  #equipo { top: calc(max(8px, env(safe-area-inset-top)) + 58px); width: 172px; gap: 3px; }
  #equipo li { grid-template-columns: 22px 1fr auto auto; padding: 2px 7px 3px 3px; font-size: 11px; border-radius: 9px; }
  #equipo .retrato .foto { --tjm-s: 20px; }
  #equipo .lleva { display: none; }
  /* el arma: una píldora arriba, a la izquierda del minimapa */
  #arma { bottom: auto; top: max(8px, env(safe-area-inset-top)); right: calc(max(8px, env(safe-area-inset-right)) + 150px); width: 128px; padding: 5px 9px 6px; border-radius: 12px; }
  #arma .silueta { height: 20px; }
  #arma .linea { margin-top: 0; }
  #arma .nombre b { font-size: 17px; } #arma .nombre small { display: none; }
  #arma .recien { right: auto; left: 50%; bottom: auto; top: calc(100% + 6px); align-items: center; translate: -50% 0; }
  #arma .recien b { font-size: 30px; } #arma .recien span { font-size: 10px; }
  #arma .mun b { font-size: 22px; } #arma .mun span { font-size: 13px; }
  #arma .balas i { width: 3px; height: 6px; } #arma .balas { height: 6px; margin-top: 3px; } #arma .balas.barra { height: 5px; margin-top: 4px; }
  #arma .otra { display: none; }
  #arma.recargando .balas::after { font-size: 8px; inset: -2px 0 auto auto; }
  #contexto { display: none; }
  #objetivo { left: 42%; font-size: 11px; max-width: 33vw; padding: 5px 10px 6px; }
  #objetivo-texto .ico { font-size: 14px; }
  #banner b { font-size: clamp(44px, 9vw, 72px); }
  #banner small { font-size: 12px; }
  #avisos { top: auto; bottom: 36%; right: auto; left: 50%; translate: -50% 0; width: min(420px, 60vw); align-items: center; }
  #jefe { top: calc(max(8px, env(safe-area-inset-top)) + 46px); left: 42%; width: 34vw; }
  #jefe .b { padding: 3px 8px; } #jefe .b > span { font-size: 13px; } #jefe .barra { height: 6px; }
  .aviso { font-size: 12px; padding: 5px 10px; }
  #minimapa { width: 140px; height: 88px; }
  #estado { top: 52%; min-width: 0; }
}
.palanca { position: absolute; bottom: 0; height: 62%; pointer-events: auto; }
#palanca-mov { left: 0; width: 42%; }
#palanca-apu { right: 0; width: 42%; }
.palanca .base { position: absolute; left: 22%; top: 62%; width: 124px; height: 124px; margin: -62px 0 0 -62px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); opacity: 0.55; transition: opacity 0.2s; }
#palanca-apu .base { left: 70%; }
.palanca .base.on { opacity: 1; }
.palanca .pomo { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); box-shadow: 0 0 20px rgba(255, 255, 255, 0.15); }
#palanca-apu .pomo { background: rgba(255, 90, 69, 0.45); }
.palanca .guia { position: absolute; bottom: 12px; left: 50%; translate: -50% 0; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.28); }
#botones { position: absolute; right: max(10px, env(safe-area-inset-right)); top: 50%; translate: 0 -50%; display: grid; grid-template-columns: repeat(2, 58px); gap: 8px; pointer-events: auto; }
#botones button { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(8, 11, 18, 0.62); font-size: 20px; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; touch-action: none; }
#botones button small { font-size: 9px; color: var(--tenue); }
#botones button .ico { font-size: 20px; }
#botones button .ico.arma { width: 36px; height: 14px; }
#botones button.on { background: rgba(255, 255, 255, 0.28); }
#botones button.grande { grid-column: span 2; width: 100%; border-radius: 16px; height: 50px; font-size: 13px; font-weight: 800; flex-direction: row; gap: 6px; }
#btn-usar { background: rgba(255, 210, 63, 0.28) !important; color: #fff; }
#btn-usar span { max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
#botones button.apagado { opacity: 0.35; }
#btn-usar.apagado { background: rgba(8, 11, 18, 0.62) !important; }

#cargando, #reconectando { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(3, 4, 8, 0.6); font-weight: 600; }
#girar { display: none; }
@media (pointer: coarse) and (orientation: portrait) {
  body.jugando #girar { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; background: #05070d; font-size: 20px; font-weight: 600; text-align: center; padding: 30px; }
}
#toast { position: absolute; left: 50%; bottom: 24px; translate: -50% 20px; z-index: 60; padding: 10px 18px; border-radius: 12px; background: #1b2130; opacity: 0; transition: all 0.25s; pointer-events: none; max-width: 90vw; }
#toast.on { opacity: 1; translate: -50% 0; }
#toast.mal { background: #6b1410; }
@media (max-width: 640px) and (pointer: fine) { #equipo { width: 160px; } #objetivo { max-width: 50vw; } }

/* ── los mapas del capítulo en la sala de espera ── */
.mapas { margin: 14px 0 6px; }
.mapas > span { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 6px; }
.cap-sala { margin-bottom: 10px; }
.cap-sala > span { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 6px; }
.sala-mapas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sala-mapas button { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: inherit; font: inherit; cursor: pointer; }
.sala-mapas button > b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); font-size: 14px; }
.sala-mapas button span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sala-mapas button strong { font-size: 14px; }
.sala-mapas button small { font-size: 11px; opacity: 0.7; }
.sala-mapas button em { font-style: normal; font-size: 11px; font-weight: 700; }
.sala-mapas button em.ok { color: #6fe39a; }
.sala-mapas button em.bloq { color: #c9b27a; }
.sala-mapas button.sel { border-color: #ffd23f; background: rgba(255, 210, 63, 0.12); box-shadow: 0 0 0 1px #ffd23f inset; }
.sala-mapas button.sel > b { background: #ffd23f; color: #111; }
.sala-mapas button.bloq { opacity: 0.55; cursor: not-allowed; }
.sala-mapas button:disabled:not(.bloq) { cursor: default; }
#sala-mapa-texto { margin-top: 8px; }
.capitulo .partes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.capitulo .partes li { font-size: 12px; padding: 3px 9px 3px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); display: flex; align-items: center; gap: 6px; }
.capitulo .partes b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 210, 63, 0.25); font-size: 11px; }

/* ── tarjeta al empezar cada parte ── */
#intro { position: absolute; left: 50%; top: 22%; translate: -50% 0; width: min(560px, calc(100% - 32px)); text-align: center; pointer-events: none; z-index: 6; }
#intro small { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #ffd23f; text-shadow: 0 1px 3px #000; }
#intro b { display: block; font-size: clamp(30px, 6vw, 54px); font-weight: 900; letter-spacing: 0.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); margin: 4px 0 2px; }
#intro em { display: block; font-style: normal; font-size: 14px; opacity: 0.85; text-shadow: 0 1px 3px #000; }
#intro p { margin: 12px auto 0; max-width: 460px; font-size: 15px; line-height: 1.45; padding: 10px 14px; border-radius: 12px; background: rgba(4, 6, 11, 0.62); }
#intro.entra { animation: intro-entra 1.1s ease-out both; }
#intro.sale { animation: intro-sale 0.9s ease-in both; }
@keyframes intro-entra { from { opacity: 0; transform: translateY(12px); letter-spacing: 0.2em; } to { opacity: 1; transform: none; } }
@keyframes intro-sale { to { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 760px), (max-height: 500px) { #intro { top: 16%; } #intro p { font-size: 13px; } }

/* ── resultado: la historia, los premios ── */
#res-historia { max-width: 520px; margin: 4px auto 10px; font-size: 15px; line-height: 1.45; opacity: 0.9; font-style: italic; }
#resultado.capitulo #res-titulo { color: #ffd23f; text-shadow: 0 0 24px rgba(255, 210, 63, 0.5); }
#res-premios { margin: 10px auto; max-width: 520px; }
#res-premios .xp { display: flex; justify-content: center; align-items: baseline; gap: 12px; }
#res-premios .xp b { font-size: 26px; color: #ffd23f; }
#res-premios .logros { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
#res-premios .logros li { display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 10px; background: rgba(255, 210, 63, 0.1); border: 1px solid rgba(255, 210, 63, 0.35); animation: logro-entra 0.6s ease-out both; }
#res-premios .logros li:nth-child(2) { animation-delay: 0.25s; } #res-premios .logros li:nth-child(3) { animation-delay: 0.5s; }
#res-premios .logros i { font-style: normal; font-size: 24px; }
#res-premios .logros span { display: flex; flex-direction: column; }
#res-premios .logros small { opacity: 0.75; font-size: 12px; }
@keyframes logro-entra { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }

/* ── portada: dos columnas (la de la izquierda para entrar, la de la derecha lo social) ── */
#portada { align-items: flex-start; }
.portada { margin: auto; display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 420px); gap: 16px; align-items: start; width: min(1040px, 100%); position: relative; }
.portada .caja { width: 100%; }
.portada .unirse { margin: 4px 0 2px; }
.portada .acciones { margin: 16px 0 10px; }
.portada .acciones .secundario { margin-top: 0; }
.lateral { display: flex; flex-direction: column; gap: 18px; }
.lateral h2 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tenue); }
.salas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.salas li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--borde); }
.salas li.vacio { color: var(--tenue); font-size: 13px; background: none; border-style: dashed; }
.salas .datos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.salas .datos b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.salas .datos small { font-size: 12px; color: var(--tenue); }
.salas .datos small.jugando { color: #ffb14a; }
.salas button { border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 800; background: var(--rojo); color: #fff; }
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.numeros div { padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); text-align: center; }
.numeros b { display: block; font-size: 20px; font-weight: 800; }
.numeros span { font-size: 11px; color: var(--tenue); }
.pestanas { display: flex; gap: 6px; margin-bottom: 8px; }
.pestanas button { border: 1px solid var(--borde); background: rgba(255, 255, 255, 0.04); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.pestanas button.sel { border-color: var(--oro); color: #fff; background: rgba(255, 210, 63, 0.14); }
.records .parte { margin-bottom: 10px; }
.records .caps { display: flex; gap: 6px; margin-bottom: 10px; }
.records .caps button { font: inherit; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: var(--tenue); cursor: pointer; }
.records .caps button.sel { background: rgba(255, 210, 63, 0.14); border-color: #ffd23f; color: #ffd23f; }
.records .parte > b { display: block; font-size: 12px; margin-bottom: 4px; color: var(--oro); }
.records ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.records li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 6px; border-radius: 8px; }
.records li.yo { background: rgba(255, 210, 63, 0.1); }
.records li .pos { width: 16px; text-align: right; color: var(--tenue); font-weight: 800; }
.records li .nom { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.records li .nom small { color: var(--tenue); margin-left: 4px; }
.records li .t { font-variant-numeric: tabular-nums; font-weight: 800; }
.records li .dif { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--tenue); }
.records .sin { font-size: 12px; color: var(--tenue); margin: 0 0 8px; }
.capitulo .partes li.ok b { background: #2e9d5b; }
.capitulo .partes li.bloq { opacity: 0.55; }
@media (max-width: 900px) { .portada { grid-template-columns: minmax(0, 1fr); width: min(600px, 100%); } }

.pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.pie .volver { margin: 0; }
.enlace { border: 0; background: none; color: var(--tenue); font-size: 13px; text-decoration: underline; padding: 0; }

/* ── créditos que corren ── */
.creditos { position: absolute; inset: 0; z-index: 60; background: radial-gradient(ellipse at 50% 100%, rgba(120, 20, 12, 0.4), transparent 60%), #030409; overflow: hidden; display: flex; justify-content: center; }
.creditos .rollo { position: absolute; top: 100%; width: min(620px, calc(100% - 32px)); text-align: center; animation: rollo var(--dur, 42s) linear forwards; }
.creditos .rollo h1 { font-family: 'Bebas Neue', Impact, sans-serif; font-size: clamp(64px, 14vw, 120px); letter-spacing: 0.14em; margin: 0; color: #fff; text-shadow: 0 0 30px rgba(226, 56, 42, 0.6); }
.creditos .rollo h2 { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--oro); margin: 48px 0 10px; }
.creditos .rollo h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; opacity: 0.8; margin: 26px 0 6px; }
.creditos .rollo p { margin: 6px 0; font-size: 17px; line-height: 1.5; color: var(--texto); }
.creditos .rollo p small { display: block; font-size: 13px; color: var(--tenue); }
.creditos .rollo .equipo { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }
.creditos .rollo .equipo span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; }
.creditos .rollo .fin { margin-top: 80px; font-size: 22px; color: var(--oro); }
.creditos #creditos-saltar { position: absolute; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: auto; margin: 0; }
@keyframes rollo { to { transform: translateY(calc(-100% - 100vh)); } }
@media (prefers-reduced-motion: reduce) { .creditos .rollo { animation: none; top: 0; position: relative; overflow-y: auto; max-height: 100%; padding: 30px 0; } }

/* ── la bienvenida: el canvas va detrás de la portada y se queda de fondo ── */
#intro-lienzo { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
#portada.con-escena { background: #03040a; }
#portada .niebla { z-index: 0; }
#portada .portada { z-index: 1; transition: opacity 0.8s ease; }
body.en-intro #portada .portada, body.en-intro #portada .niebla { opacity: 0; pointer-events: none; }
body.en-intro #portada { overflow: hidden; }
#intro-ui { position: fixed; z-index: 5; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; gap: 8px; }
#intro-ui button { border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.5); color: #cfd6e2; border-radius: 999px; padding: 8px 14px; font-size: 13px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
#intro-ui #intro-saltar { font-weight: 700; color: #fff; }

/* ── sin sesión (juego público): la invitación a crear la cuenta ── */
.visita-caja { margin: 14px 0 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(226, 56, 42, 0.45);
  background: linear-gradient(135deg, rgba(120, 18, 12, 0.35), rgba(10, 12, 20, 0.6)); }
.visita-caja p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; color: var(--texto); }
.visita-caja .inv { font-size: 16px; font-weight: 700; color: #fff; }
.visita-caja .inv b { font-family: 'Outfit'; letter-spacing: 0.2em; color: #ff8a70; }
.visita-caja .acciones { margin: 0; }
.visita-caja a { text-decoration: none; text-align: center; }
.visita-caja a.secundario { margin-top: 0; }
.visita-caja.llama { animation: visita-llama 1.2s ease-out; }
@keyframes visita-llama { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 69, 0.8); } 100% { box-shadow: 0 0 0 18px rgba(255, 90, 69, 0); } }
body.visita #p-yo { display: none; }

/* ── los créditos de la partida (#resultado) ───────────────────────────
   Sobre la escena congelada y oscurecida: el título cae como un sello, los
   premios entran de a uno (--i = su orden, PASO_CREDITO = 0.75 s en juego.js)
   con el número contando, y después el reparto, la tabla y la XP. */
#resultado { align-items: flex-start; background: radial-gradient(ellipse at 50% 115%, rgba(150, 18, 10, 0.45), transparent 60%), radial-gradient(ellipse at 50% 40%, rgba(3, 4, 8, 0.55), rgba(3, 4, 8, 0.9) 75%), rgba(3, 4, 8, 0.6); }
#resultado .caja { width: min(900px, 100%); margin: auto 0; padding: 26px 26px 0; text-align: center; background: rgba(7, 9, 15, 0.8); }
.res-cab { margin-bottom: 18px; }
.res-kicker { margin: 0 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rojo2); }
#res-titulo { animation: sello 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
@keyframes sello { 0% { opacity: 0; transform: scale(1.9); filter: blur(10px); } 55% { opacity: 1; filter: blur(0); } 100% { transform: none; } }
#res-sub { margin: 2px 0 8px; font-weight: 600; }
.res-creditos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.premio { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 11px 14px 11px 10px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 14%, rgba(255, 255, 255, 0.03)), rgba(255, 255, 255, 0.02) 60%); border: 1px solid var(--borde); border-left: 3px solid var(--c);
  opacity: 0; transform: translateY(16px) scale(0.97); animation: premio-entra 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--i) * 0.75s + 0.9s); }
.premio::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%); transform: translateX(-120%); animation: premio-brillo 0.9s ease-out forwards; animation-delay: calc(var(--i) * 0.75s + 1.05s); pointer-events: none; }
@keyframes premio-entra { to { opacity: 1; transform: none; } }
@keyframes premio-brillo { to { transform: translateX(120%); } }
.premio .ico { font-style: normal; font-size: 24px; text-align: center; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.premio .t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.premio .t small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rojo2); }
.premio.malo .t small { color: #b9a3ff; }
.premio .quien { display: flex; align-items: center; gap: 8px; min-width: 0; }
.premio .quien b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.premio .quien em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--tenue); }
.premio .det { font-size: 12.5px; color: var(--tenue); line-height: 1.3; }
.premio .v { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.premio .v b { font: 38px/0.9 'Bebas Neue', Impact; letter-spacing: 0.03em; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.premio .v small { font-size: 11px; font-weight: 700; color: var(--tenue); max-width: 110px; }
.premio .v b.txt { font-size: 28px; }
.premio.mvp { grid-column: 1 / -1; padding: 14px 18px 14px 12px; border: 1px solid rgba(255, 210, 63, 0.55); border-left: 4px solid var(--oro);
  background: linear-gradient(100deg, rgba(255, 210, 63, 0.18), rgba(255, 210, 63, 0.03) 65%); box-shadow: 0 10px 40px -18px rgba(255, 210, 63, 0.6); }
.premio.mvp .t small { color: var(--oro); }
.premio.mvp .quien b { font-size: 20px; }
.premio.mvp .v b { color: var(--oro); font-size: 46px; }
.premio.yo { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.ret { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; }
.ret.bot { background: var(--c); color: #0b0d12; font-weight: 900; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45); }
.ret:not(.bot) > :first-child { box-shadow: 0 0 0 2px var(--c); border-radius: 50%; }
/* lo que viene después de los premios */
.res-despues { opacity: 0; animation: premio-entra 0.6s ease-out forwards; animation-delay: calc(var(--n, 0) * 0.75s + 1.4s); transform: translateY(12px); }
.res-reparto h2, .res-h2 { margin: 26px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tenue); }
.res-reparto .elenco { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.res-reparto .elenco span { display: flex; align-items: baseline; gap: 6px; font-size: 15px; color: var(--texto); }
.res-reparto .elenco b { font: 30px/1 'Bebas Neue', Impact; color: #fff; letter-spacing: 0.03em; }
.res-reparto .numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.res-reparto .numeros div { padding: 8px 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--borde); display: flex; flex-direction: column; align-items: center; }
.res-reparto .numeros b { font: 24px/1 'Bebas Neue', Impact; color: #fff; letter-spacing: 0.03em; }
.res-reparto .numeros span { font-size: 11px; color: var(--tenue); font-weight: 600; margin-top: 2px; }
.tabla-caja { overflow-x: auto; margin: 0 -6px; padding: 0 6px; -webkit-overflow-scrolling: touch; }
#res-tabla { min-width: 720px; font-size: 13px; font-variant-numeric: tabular-nums; }
#res-tabla th { white-space: nowrap; font-size: 11px; }
#res-tabla td { white-space: nowrap; }
#res-tabla th:first-child, #res-tabla td:first-child { position: sticky; left: 0; z-index: 1; background: rgb(10, 12, 19); }
#res-tabla td:first-child { box-shadow: inset 3px 0 0 var(--c); padding-left: 10px; }
.res-pie { position: sticky; bottom: 0; z-index: 2; margin: 16px -26px 0; padding: 12px 26px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(7, 9, 15, 0.94) 22%); }
.res-pie .acciones { margin: 0 0 4px; }
.res-pie2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.res-pie2 .secundario { margin-top: 0; }
/* «Ver todo»: sin esperas */
.res-creditos.todo .premio, .caja.todo .res-despues { animation-delay: 0s !important; animation-duration: 0.2s; }
.res-creditos.todo .premio::after { display: none; }
@media (max-width: 760px) {
  #resultado .caja { padding: 20px 14px 0; }
  .res-creditos { grid-template-columns: 1fr; gap: 8px; }
  .premio { padding: 9px 12px 9px 8px; gap: 8px; grid-template-columns: 28px 1fr auto; }
  .premio .ico { font-size: 20px; }
  .premio .quien b { font-size: 15px; }
  .premio .v b { font-size: 32px; }
  .res-pie { margin: 12px -14px 0; padding: 10px 14px max(12px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  #res-titulo, .premio, .res-despues { animation: none; opacity: 1; transform: none; }
  .premio::after { display: none; }
}

/* ── el nivel y el lag de cada uno (tarjetas del equipo, tu panel y la sala de espera) ── */
#equipo .retrato { position: relative; }
#equipo .retrato .nv { position: absolute; left: 50%; bottom: -5px; translate: -50% 0; min-width: 18px; padding: 0 4px; border-radius: 6px; font: 800 9px/13px 'Outfit'; text-align: center; color: #0b0d12; background: var(--c); box-shadow: 0 0 0 1.5px rgba(4, 6, 11, 0.9); }
#equipo .lag { position: absolute; top: 3px; right: 6px; display: flex; align-items: center; gap: 2px; font: 700 9px/1 'Outfit'; color: var(--tenue); pointer-events: none; }
#equipo .lag .ico { width: 9px; height: 9px; }
#equipo .lag.bien { color: #5fe39a; } #equipo .lag.medio { color: #f3c13f; } #equipo .lag.mal { color: #ff6a5a; }
#equipo li .lleva { margin-top: 8px; }
#equipo.compacto .retrato .nv { display: none; }
#yo .retrato { position: relative; }
#yo .retrato .nv { position: absolute; left: 50%; bottom: -7px; translate: -50% 0; white-space: nowrap; padding: 1px 6px; border-radius: 7px; font: 800 10px/13px 'Outfit'; color: #0b0d12; background: var(--c); box-shadow: 0 0 0 1.5px rgba(4, 6, 11, 0.9); }
#sala-jugadores .nom .ico.corona { width: 15px; height: 15px; vertical-align: -2px; color: var(--oro); filter: drop-shadow(0 0 4px rgba(255, 210, 63, 0.5)); }
#sala-jugadores .lag { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--tenue); }
#sala-jugadores .lag .ico { width: 12px; height: 12px; }
#sala-jugadores .lag.bien { color: #5fe39a; } #sala-jugadores .lag.medio { color: #f3c13f; } #sala-jugadores .lag.mal { color: #ff6a5a; }
#sala-jugadores .nom { flex: 1; min-width: 0; }
@media (max-width: 760px), (max-height: 500px) { #equipo .lag { top: 2px; right: 4px; } }
/* salas de la portada: las de tus amigos, arriba y marcadas */
.salas li.de-amigos { border-color: rgba(95, 227, 154, 0.45); background: linear-gradient(90deg, rgba(40, 160, 90, 0.16), transparent 70%), rgba(255, 255, 255, 0.03); }
.salas li small.amigos { color: #7ff0b0; font-weight: 700; }
.salas li .ini .ico { width: 18px; height: 18px; color: var(--tenue); }
/* íconos propios dentro de botones y listas (en vez de emojis) */
.primario .ico, .secundario .ico, #intro-ui .ico, .codigo-sala button .ico, #girar .ico { width: 1.05em; height: 1.05em; vertical-align: -0.16em; }
#btn-sonido .ico, #btn-pantalla .ico, #btn-invitar-juego .ico { width: 17px; height: 17px; display: block; }
#tactil #botones button .ico { width: 24px; height: 24px; display: block; margin: 0 auto 1px; }
.premio .ico svg { width: 28px; height: 28px; color: var(--c); filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6)); }
.premio.mvp .ico svg { color: var(--oro); width: 32px; height: 32px; }
.premio.malo .ico svg { color: #b9a3ff; }
#res-tabla .ico.escapo { width: 18px; height: 18px; color: #5fe39a; }
#res-tabla .ico.murio { width: 16px; height: 16px; color: #ff6a5a; }
.creditos .rollo .equipo .ico { width: 16px; height: 16px; color: #7fd4ff; vertical-align: -2px; }
#res-premios .logros i .ico { width: 26px; height: 26px; color: var(--oro); }
#res-premios .logros i .tji { font-size: 30px; display: block; }   /* la insignia del logro (/js/iconos.js) */
.partes li b .ico, #sala-mapas em .ico { width: 13px; height: 13px; vertical-align: -1px; }
#arriba-der button { display: grid; place-items: center; }
