@font-face { font-family: "Alfa Slab One"; src: url("fuentes/alfa-slab-one-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fuentes/outfit-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --fd: "Alfa Slab One", Georgia, serif; --fb: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fiesta: #ff4d8d; --oro: #ffd166; --cian: #22d3ee;
  --fondo: #2a1840; --fondo2: #3d2363; --texto: #fff; --suave: #dccff3; --acento: #ffd166; --rosa: #ff7aa8;
  --tarjeta: rgba(32, 18, 52, .88); --borde: rgba(255, 255, 255, .22); --peligro: #ff6b6b; --ok: #55efc4;
  --radio: 16px; --t: 160ms;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--texto); font: 16px/1.4 var(--fb);
  background: radial-gradient(120% 80% at 50% 0%, #5a3591 0%, var(--fondo) 60%) fixed, var(--fondo);
  overflow: hidden; overscroll-behavior: none;
}
[hidden] { display: none !important; }
h1, h2 { margin: 0 0 8px; font-family: var(--fd); font-weight: 400; letter-spacing: .3px; }
#fondo-menu { position: fixed; inset: 0; width: 100%; height: 100%; filter: blur(3px) saturate(1.15) brightness(.62); transform: scale(1.04); }
.logo { font-size: 34px; letter-spacing: .5px; line-height: 1.1; filter: drop-shadow(0 3px 0 rgba(20, 8, 40, .55)); background: linear-gradient(90deg, #ffd166, #ff7aa8, #a29bfe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lema { color: var(--suave); margin: 0 0 6px; }
.sello { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 107, 107, .18); border: 1px solid rgba(255, 107, 107, .5); font-weight: 700; font-size: 14px; }

button, .boton {
  font: inherit; color: inherit; min-height: 48px; min-width: 48px; padding: 10px 16px; border-radius: 14px;
  border: 2px solid var(--borde); background: rgba(255, 255, 255, .08); cursor: pointer; touch-action: manipulation;
  user-select: none; -webkit-user-select: none; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform var(--t) cubic-bezier(.3, 1.6, .5, 1), background var(--t), border-color var(--t);
}
button:active:not(:disabled), .boton:active { transform: scale(.94); }
@media (hover: hover) { button:hover:not(:disabled), .boton:hover { background: rgba(255, 255, 255, .14); } }
button:focus-visible, .boton:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }
button:disabled { opacity: .55; cursor: default; }
.principal { background: linear-gradient(180deg, #ff8fb5, #e8578d); border-color: transparent; font-weight: 700; box-shadow: 0 4px 0 #a8305e; }
.principal:active:not(:disabled) { box-shadow: 0 1px 0 #a8305e; transform: translateY(3px) scale(.98); }
.peligro { border-color: rgba(255, 107, 107, .7); color: #ffd0d0; }
.icono { min-width: 48px; padding: 6px; font-size: 20px; background: rgba(20, 10, 35, .7); }

input, select { font: inherit; color: var(--texto); background: rgba(0, 0, 0, .28); border: 2px solid var(--borde); border-radius: 12px; min-height: 48px; padding: 8px 12px; width: 100%; font-size: 16px; }
select option { color: #222; }
label span { display: block; font-size: 14px; color: var(--suave); margin-bottom: 4px; }
.error { color: #ffb3b3; min-height: 1.2em; margin: 8px 0; font-size: 14px; }
.enlace, a.enlace { color: var(--acento); display: inline-block; min-height: 44px; padding: 10px 0; }

.pantalla { position: fixed; inset: 0; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); overflow: auto; }
.centro { display: grid; place-items: center; }
.tarjeta { width: min(440px, 100%); background: linear-gradient(180deg, rgba(58, 36, 92, .82), rgba(28, 16, 48, .9)); border: 1px solid rgba(255, 255, 255, .16); border-top-color: rgba(255, 255, 255, .32); border-radius: 24px; padding: 22px; text-align: center; box-shadow: 0 24px 60px rgba(8, 2, 20, .55), inset 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: entra 300ms cubic-bezier(.2, .9, .3, 1.15); }
@keyframes entra { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
fieldset { border: 0; padding: 0; margin: 0 0 12px; text-align: left; }
legend { font-weight: 700; margin-bottom: 8px; }
.fila3 { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 8px; }
.fila2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.fila2 > * { min-width: 0; flex-wrap: wrap; text-align: center; line-height: 1.15; }
.centro > * { max-width: 100%; min-width: 0; }
.casilla { display: flex; gap: 10px; align-items: center; text-align: left; min-height: 48px; cursor: pointer; }
.casilla input { width: 24px; height: 24px; min-height: 0; flex: none; accent-color: var(--rosa); }
.casilla span { display: inline; font-size: 15px; color: var(--texto); margin: 0; }
.menu { display: grid; gap: 10px; }
/* tamaño fijo: sin él, en pantallas de densidad 2 el lienzo crecía en cada cuadro (2026-11-19) */
.menu canvas { width: 180px; height: 210px; justify-self: center; background: radial-gradient(closest-side at 50% 88%, rgba(255, 209, 102, .35), rgba(255, 122, 168, .12) 60%, transparent 100%); border-radius: 50%; }
.nombre-menu { margin: -6px auto 4px; font-weight: 700; color: var(--acento); background: rgba(20, 10, 35, .55); border-radius: 999px; padding: 2px 14px; width: max-content; max-width: 100%; }
.menu > button, .menu .fila2 > * { justify-content: center; }
.menu button:not(.principal):not(:disabled), .menu .boton { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }

/* Editor */
.editor { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; grid-template-columns: 1fr; }
@media (min-width: 760px) { .editor { grid-template-columns: 300px 1fr; } }
.vista { background: radial-gradient(70% 55% at 50% 62%, rgba(255, 209, 102, .2), transparent 70%), linear-gradient(180deg, rgba(58, 36, 92, .82), rgba(28, 16, 48, .9)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--borde); border-radius: 22px; padding: 14px; display: grid; justify-items: center; gap: 8px; }
.vista canvas { width: 200px; height: auto; max-width: 100%; }
@media (min-width: 760px) { .vista canvas { width: 260px; } }
.campo { width: 100%; text-align: left; }
.opciones { background: linear-gradient(180deg, rgba(58, 36, 92, .82), rgba(28, 16, 48, .9)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--borde); border-radius: 22px; padding: 12px; display: grid; gap: 12px; align-content: start; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs button { flex: none; min-height: 44px; padding: 6px 14px; border-radius: 999px; font-size: 15px; }
.tabs button[aria-selected="true"] { background: var(--acento); color: #2a1840; border-color: var(--acento); font-weight: 700; }
.piezas { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.piezas button { padding: 4px; min-height: 92px; border-radius: 16px; flex-direction: column; font-size: 12px; color: var(--suave); background: radial-gradient(80% 60% at 50% 40%, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); }
.piezas button[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--acento), 0 6px 18px rgba(255, 209, 102, .22); }
.piezas button[aria-pressed="true"], .colores button[aria-pressed="true"] { border-color: var(--acento); background: rgba(255, 209, 102, .16); }
.piezas canvas { width: 72px; height: 72px; }
.piezas .etiqueta { font-size: 12px; font-weight: 800; color: var(--texto, #fff); line-height: 1.1; padding-bottom: 2px; }
.colores { display: flex; flex-wrap: wrap; gap: 8px; }
.colores button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border-radius: 50%; border-width: 3px; }
.subtitulo { width: 100%; margin: 4px 0 0; font-size: 14px; color: var(--suave); }

/* Sala */
.sala { padding: 0; overflow: hidden; background: #1b1030; }
#lienzo { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.hud { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 8px; align-items: center; padding: max(8px, env(safe-area-inset-top)) 10px 8px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-centro { flex: 1; text-align: center; background: rgba(20, 10, 35, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 8px 14px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-centro span { color: var(--suave); }
.hud-centro strong { font-family: var(--fd); font-weight: 400; letter-spacing: .2px; font-size: 14px; }
.estado { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); margin: 0; background: rgba(20, 10, 35, .85); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.ayuda { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); margin: 0; background: rgba(20, 10, 35, .7); border-radius: 12px; padding: 8px 14px; font-size: 14px; text-align: center; width: max-content; max-width: calc(100% - 32px); transition: opacity 600ms; }
.ayuda.fuera { opacity: 0; }
.log { position: absolute; right: 10px; top: 66px; width: min(320px, calc(100% - 20px)); max-height: 40%; overflow: auto; margin: 0; padding: 10px 12px; list-style: none; background: rgba(20, 10, 35, .85); border: 1px solid var(--borde); border-radius: 16px; font-size: 14px; }
.log li { padding: 3px 0; word-wrap: break-word; }
.log b { color: var(--acento); }
.abajo { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px max(10px, env(safe-area-inset-bottom)); display: grid; gap: 8px; background: linear-gradient(0deg, rgba(20, 10, 35, .8), rgba(20, 10, 35, 0)); }
.gestos { display: flex; gap: 6px; justify-content: safe center; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 4px; max-width: 100%; }
.gestos::-webkit-scrollbar { display: none; }
.gestos button { flex: 0 0 auto; font-size: 22px; padding: 4px; min-width: 48px; min-height: 48px; background: rgba(20, 10, 35, .7); border-radius: 50%; scroll-snap-align: start; }
.chat { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 720px; width: 100%; margin: 0 auto; }
.chat input { background: rgba(20, 10, 35, .85); }

/* Diálogos */
dialog { width: min(380px, calc(100% - 32px)); border: 1px solid rgba(255, 255, 255, .16); border-top-color: rgba(255, 255, 255, .3); border-radius: 24px; padding: 20px; color: var(--texto); background: linear-gradient(180deg, #3a245c, #241338); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); text-align: center; }
dialog::backdrop { background: rgba(10, 4, 20, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open] { animation: entra 200ms ease-out; }
.columna { display: grid; gap: 8px; margin-top: 10px; }
.interruptor { display: flex; justify-content: space-between; align-items: center; min-height: 48px; text-align: left; gap: 12px; }
.interruptor span { margin: 0; font-size: 16px; color: var(--texto); }
.interruptor input { width: 26px; height: 26px; min-height: 0; flex: none; accent-color: var(--rosa); }
input[type="range"] { padding: 0; min-height: 36px; border: 0; background: transparent; accent-color: var(--acento); margin-bottom: 4px; }
#d-ajustes .principal { margin-top: 12px; width: 100%; }
dialog.ancho { width: min(460px, calc(100% - 32px)); }
.salas-lista { display: grid; gap: 10px; margin: 12px 0; }
.sala-op { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; text-align: left; padding: 8px; justify-content: stretch; }
.sala-op canvas { width: 120px; height: 75px; border-radius: 10px; display: block; }
.sala-op span { display: grid; gap: 2px; }
.sala-op small { color: var(--suave); font-size: 13px; }
.sala-op .gente { color: var(--ok); }
.nota { color: var(--suave); font-size: 14px; margin: 0 0 8px; }
.rueda { width: min(260px, 70vw); height: min(260px, 70vw); display: block; margin: 4px auto 8px; }
.estado-ruleta { min-height: 1.4em; font-weight: 700; color: var(--acento); margin: 0 0 8px; }
#d-ruleta .principal { width: 100%; }
.probas { text-align: left; margin: 10px 0; font-size: 14px; color: var(--suave); }
.probas summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.probas ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.probas li { border-left: 4px solid var(--c); padding-left: 8px; }

.aviso { position: fixed; left: 50%; bottom: 140px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: rgba(20, 10, 35, .95); border: 1px solid var(--borde); border-radius: 14px; padding: 10px 16px; max-width: calc(100% - 32px); text-align: center; transition: opacity 200ms, transform 200ms; z-index: 10; }
.aviso.ver { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.reducir *, .reducir *::before, .reducir *::after { animation: none !important; transition: none !important; }

/* M2: saldo, tienda, candado y cuenta */
.saldo-menu { margin: -4px 0 6px; min-height: 1.3em; font-weight: 800; color: #7fe9ff; }
.piezas button.bloqueada { position: relative; }
.piezas button.bloqueada canvas { opacity: .55; filter: grayscale(.5); }
.candado { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: 11px; font-weight: 800; color: #2a1840; background: var(--acento); border-radius: 999px; padding: 1px 4px; white-space: nowrap; }
.tienda-lista { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; }
.articulo { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; align-items: center; text-align: left; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.articulo.resaltado { border-color: var(--acento); background: rgba(255, 209, 102, .12); }
/* VIP (2026-11-19): tarjeta dorada con resplandor */
.articulo.vip { border-color: rgba(255, 216, 74, .75); background: linear-gradient(135deg, rgba(255, 216, 74, .17), rgba(255, 122, 217, .1)); box-shadow: 0 0 16px rgba(255, 216, 74, .22); }
.marca-vip { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: linear-gradient(90deg, #ffd84a, #ff9f43); color: #3a2400; font-size: 11px; font-weight: 800; vertical-align: middle; white-space: nowrap; }
.articulo small.nota-vip { color: #ffe9a6; font-weight: 600; font-size: 12px; }
.vip .candado { background: linear-gradient(90deg, #ffd84a, #ff9f43); color: #3a2400; }
.articulo canvas { width: 64px; height: 64px; grid-row: span 2; }
/* Paso 3 (2026-11-19): comprar diamantes */
.mas-diamantes { width: 100%; margin: 0 0 10px; justify-content: center; font-weight: 800; color: #2a1840; background: linear-gradient(90deg, #7fe9ff, #a29bfe); border-color: transparent; }
.articulo.paquete .gema { grid-row: span 2; width: 64px; height: 64px; display: grid; place-items: center; font-size: 34px; border-radius: 14px; background: rgba(127, 233, 255, .12); }
.articulo.paquete strong { font-size: 17px; }
.articulo.paquete small { color: var(--acento); }
.aviso-apagado { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 209, 102, .14); border: 1px solid rgba(255, 209, 102, .45); color: #ffe9a6; font-weight: 700; font-size: 14px; }
.premium-activo { margin: 0 0 10px; font-weight: 800; color: #ffd84a; }
.articulo div:not(.acciones) { display: flex; flex-direction: column; min-width: 0; }
.articulo small { color: #7fe9ff; font-weight: 800; }
.articulo .acciones { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.articulo .acciones button { min-height: 44px; flex: 1 1 auto; }
.articulo .pregunta { flex: 1 0 100%; margin: 0; font-size: 14px; }
.cuenta-caja { margin: 14px 0 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.cuenta-caja h3 { margin: 0 0 4px; font-size: 16px; }
.cuenta-caja button { width: 100%; }
.google-boton { display: flex; justify-content: center; margin-top: 6px; }
.google-boton:empty { display: none; }
/* Si Google cambia su CSS en línea (la CSP solo permite el hash de la versión revisada), el botón no se desborda. */
.google-boton svg { max-width: 20px; max-height: 20px; }
#p-avatarmini { width: 120px; height: 140px; }
.enlaces-legales { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; margin: 0; }

/* 0.11.0 · joystick (táctil) y botón de sentarse */
.joy { position: absolute; left: 14px; bottom: calc(var(--pie, 112px) + 10px); width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.10), rgba(255,255,255,.04) 70%); border: 2px solid rgba(255,255,255,.22); touch-action: none; display: none; z-index: 3; }
.joy.activo { border-color: rgba(255, 214, 102, .7); }
.joy-bola { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #c9b6ff 60%, #8a6bff); box-shadow: 0 4px 14px rgba(0,0,0,.35); pointer-events: none; transition: transform .08s; }
.joy.activo .joy-bola { transition: none; }
@media (pointer: coarse) { .joy { display: block; } }
.sentar-b { position: absolute; right: 14px; bottom: calc(var(--pie, 112px) + 22px); z-index: 3; border-radius: 999px; padding: 12px 18px; font-size: 16px; background: rgba(40, 20, 70, .85); border: 2px solid #ffd666; color: #fff; box-shadow: 0 0 18px rgba(255, 214, 102, .45); }
#lienzo.sobre-asiento { cursor: pointer; }

/* 0.12.0 · amigos, perfil, privados, regalos */
[data-amigos-boton] { position: relative; }
.punto { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ff4f8b; color: #fff; font-size: 12px; line-height: 20px; font-weight: 700; box-shadow: 0 0 0 2px #241338; }
.punto[hidden] { display: none; }
.pestanas { display: flex; gap: 6px; margin: 4px 0 10px; }
.pestanas button { flex: 1; padding: 8px 6px; font-size: 14px; border-radius: 12px; opacity: .7; }
.pestanas button.activa { opacity: 1; border-color: #ffd666; }
.social-lista { display: grid; gap: 8px; max-height: min(52vh, 420px); overflow-y: auto; text-align: left; }
.amigo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; background: rgba(255,255,255,.06); border-radius: 14px; padding: 6px 8px; }
.amigo canvas { width: 48px; height: 56px; }
.amigo-nombre { background: none; border: 0; padding: 0; text-align: left; display: grid; color: inherit; min-width: 0; box-shadow: none; }
.amigo-nombre strong, .amigo-nombre small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amigo-nombre small { color: var(--suave); }
.amigo.en-linea .amigo-nombre small { color: #6ee7a8; }
.amigo-acciones { display: flex; gap: 6px; }
.amigo-acciones button { position: relative; padding: 8px 10px; }
.perfil canvas { width: 120px; height: 140px; }
.perfil h3 { margin: 4px 0; font-family: var(--fd); font-weight: 400; }
.perfil .frase { margin: 0 0 6px; font-style: italic; overflow-wrap: anywhere; }
.insignias { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 8px; }
.insignia { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
.insignia.ins-vip { background: linear-gradient(90deg, #ffd666, #ff9f43); color: #3a245c; font-weight: 700; }
.privados { list-style: none; margin: 0 0 8px; padding: 8px; display: grid; gap: 6px; max-height: min(45vh, 360px); min-height: 120px; overflow-y: auto; background: rgba(0,0,0,.18); border-radius: 14px; }
.privados li { max-width: 80%; padding: 6px 10px; border-radius: 14px; display: grid; text-align: left; overflow-wrap: anywhere; }
.privados li small { opacity: .6; font-size: 11px; }
.privados li.mio { justify-self: end; background: #6c5ce7; }
.privados li.suyo { justify-self: start; background: rgba(255,255,255,.12); }
.regalos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: min(50vh, 400px); overflow-y: auto; }
.regalo { display: grid; justify-items: center; gap: 2px; padding: 6px; font-size: 13px; }
.regalo canvas { width: 64px; height: 64px; }
.regalo.vip { border-color: #ffd666; box-shadow: 0 0 12px rgba(255, 214, 102, .35); }

/* 0.13.0 · cuarto propio */
.deco { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 5; max-height: 58%; overflow-y: auto; padding: 10px 12px; border-radius: 20px; background: rgba(36, 19, 56, .94); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 -10px 40px rgba(0,0,0,.4); }
.deco .nota { margin: 0 0 6px; }
.deco-muebles { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; }
.deco-op { display: grid; justify-items: center; padding: 6px 2px; font-size: 12px; line-height: 1.1; }
.deco-op .emoji { font-size: 24px; }
.deco-op.activa { border-color: #ffd666; box-shadow: 0 0 12px rgba(255,214,102,.5); }
.deco-op.cerrado { opacity: .75; border-style: dashed; }
.deco-op.vip { border-color: #ffd666; }
.deco-tit { display: block; margin: 8px 0 4px; color: var(--suave); text-align: left; }
.deco-fila { display: flex; flex-wrap: wrap; gap: 6px; }
.deco-fila button { padding: 6px 10px; font-size: 13px; }
.deco-fila button.activa { border-color: #ffd666; }
.deco-privado { width: 100%; margin: 8px 0; }
.vip-nota { color: #ffd666; }
.salas-cuartos { display: grid; gap: 6px; margin-top: 10px; }
.salas-cuartos button { display: flex; justify-content: space-between; gap: 8px; }

/* 0.14.0 · misiones, pase y eventos */
.racha { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 4px 0 8px; }
.racha-dia { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 12px; }
.racha-dia strong { font-size: 13px; white-space: nowrap; }
.racha-dia.cobrado { opacity: .5; }
.racha-dia.toca { background: linear-gradient(180deg, #ffd666, #ff9f43); color: #3a245c; }
.mision .emoji { font-size: 22px; }
.mis-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mis-txt small { color: var(--suave); }
.barra { height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.barra.grande { height: 10px; margin: 0 0 8px; }
.barra span { display: block; height: 100%; background: linear-gradient(90deg, #7ee7ff, #ffd666); }
.pase { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin: 4px 0 8px; }
.pase-nivel { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font-size: 12px; border-radius: 12px; min-height: 64px; }
.pase-nivel small { opacity: .7; }
.pase-nivel.toca { border-color: #ffd666; box-shadow: 0 0 0 2px rgba(255,214,102,.35); }
.pase-nivel.cobrado { opacity: .5; }
.pase-nivel.cerrado { opacity: .45; filter: grayscale(.6); }
.evento-caja { background: rgba(255,255,255,.06); border-radius: 14px; padding: 8px 12px; margin: 0 0 8px; }
.evento-caja.activo { box-shadow: inset 0 0 0 2px #ffd666; }
.evento-caja h3 { margin: 2px 0 4px; }
.ranking { margin: 4px 0 8px; padding-left: 22px; }
.evento-banda { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 32px); padding: 6px 14px; font-size: 14px; border-radius: 999px; background: linear-gradient(90deg, #ff5fa2, #ffd666); color: #3a245c; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 0.16.0 · VIP vs normal */
.boton-vip { width: 100%; margin: 4px 0 8px; background: linear-gradient(90deg, rgba(255,214,102,.18), rgba(255,159,67,.18)); border-color: #ffd666; }
.tabla-vip { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 10px; }
.tabla-vip th, .tabla-vip td { padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: center; }
.tabla-vip tbody th { text-align: left; font-weight: 500; }
.tabla-vip .col-vip { color: #ffd666; font-weight: 700; background: rgba(255,214,102,.06); }

/* 0.17.0 · la barra de la sala ya trae 🎯 y 🔊: en teléfono los íconos se compactan para que se lea el nombre de la sala */
@media (max-width: 480px) { .hud { gap: 4px; padding-left: 8px; padding-right: 8px; } .hud .icono { min-width: 42px; padding: 4px; font-size: 18px; } .hud-centro { padding: 8px 8px; min-width: 92px; } }
