/* GHOULSTAY · interfaz del juego.
   Paleta de la marca: noche verde casi negra, esmeralda fantasmal y oro viejo.
   Todo se maqueta para movil en vertical; en escritorio se centra como un
   telefono para que la partida conserve sus proporciones. */
@font-face { font-family: 'Baloo 2'; src: url(../fuentes/baloo2.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url(../fuentes/cinzel-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url(../fuentes/cinzel-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --noche: #08130f;
  --panel: #0f241d;
  --panel2: #163a2e;
  --borde: #2b5a47;
  --esmeralda: #2ee59d;
  --esm-osc: #0f7a52;
  --oro: #f6c343;
  --oro-claro: #ffe49a;
  --oro-osc: #9a6410;
  --crema: #fff4d6;
  --texto: #f1ead7;
  --suave: #a9bdb2;
  --rojo: #ef3b55;
  --morado: #3b1b4a;
  --sombra: 0 10px 30px rgba(0, 0, 0, .45);
  --radio: 18px;
  --seguro-arriba: env(safe-area-inset-top, 0px);
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: linear-gradient(rgba(4, 10, 8, .82), rgba(4, 10, 8, .92)), url(../assets/escenas/mansion.webp) center/cover fixed #040a08; color: var(--texto); font-family: 'Baloo 2', system-ui, sans-serif; overscroll-behavior: none; }
body { display: flex; justify-content: center; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; }
.oculto { display: none !important; }

#app {
  position: relative; width: 100%; max-width: 520px; height: 100dvh; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #17392d 0%, var(--noche) 60%);
  box-shadow: 0 0 80px rgba(46, 229, 157, .08);
}
@media (min-width: 560px) { #app { border-left: 1px solid #12261f; border-right: 1px solid #12261f; } }

.pantalla { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.pantalla.activa { opacity: 1; pointer-events: auto; }

/* ── Botones ── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 48px; padding: 0 22px; border-radius: 16px; font-weight: 800; font-size: 18px; letter-spacing: .01em;
  transition: transform .08s ease, filter .15s ease;
}
.boton:active { transform: translateY(2px) scale(.98); }
.boton[disabled] { filter: grayscale(.8) brightness(.7); pointer-events: none; }
.boton-oro { color: #3a2200; background: linear-gradient(#ffe7a3, #f6c343 45%, #d99a1e); box-shadow: 0 4px 0 #8a5a0c, 0 8px 18px rgba(246, 195, 67, .3), inset 0 1px 0 #fff6d8; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.boton-verde { color: #04281a; background: linear-gradient(#9cffd6, #2ee59d 45%, #17b277); box-shadow: 0 4px 0 #0b6a45, 0 8px 18px rgba(46, 229, 157, .25), inset 0 1px 0 #e6fff4; }
.boton-oscuro { color: var(--crema); background: linear-gradient(#21483a, #163a2e); box-shadow: 0 4px 0 #0a1d17, inset 0 1px 0 rgba(255, 255, 255, .08); }
.boton-grande { min-height: 62px; font-size: 22px; padding: 0 34px; border-radius: 20px; }
.boton-icono { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: var(--crema); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.boton-icono:active { transform: scale(.94); }

/* ── Recursos (vidas, monedas, gemas, estrellas) ── */
.recursos { display: flex; gap: 6px; justify-content: center; padding: calc(10px + var(--seguro-arriba)) 10px 6px; flex-wrap: wrap; }
.recurso { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px 0 4px; border-radius: 99px; background: rgba(4, 12, 9, .72); border: 1px solid rgba(246, 195, 67, .25); font-weight: 800; font-size: 15px; backdrop-filter: blur(4px); }
.recurso svg { width: 26px; height: 26px; }
.recurso small { font-size: 11px; color: var(--suave); font-weight: 600; margin-left: 2px; }
.recursos.mini { padding: 0; justify-content: flex-end; flex-wrap: nowrap; }
.recursos.mini .recurso { height: 30px; font-size: 13px; padding: 0 8px 0 3px; }
.recursos.mini .recurso svg { width: 22px; height: 22px; }

/* ── Carga ── */
#pCarga { align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.carga-fondo { position: absolute; inset: 0; background: url(../assets/escenas/mansion.webp) center/cover; filter: brightness(.45) saturate(1.1); }
.carga-fondo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, var(--noche)); }
.carga-logo { position: relative; width: min(88%, 420px); filter: drop-shadow(0 10px 30px rgba(46, 229, 157, .35)); animation: flotar 4s ease-in-out infinite; }
.carga-barra { position: relative; width: min(70%, 300px); height: 12px; border-radius: 99px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(246, 195, 67, .4); overflow: hidden; }
.carga-barra i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--esm-osc), var(--esmeralda)); box-shadow: 0 0 12px var(--esmeralda); transition: width .2s; }
.carga-texto { position: relative; margin: 0; color: var(--suave); font-size: 15px; }
.carga-firma { position: absolute; bottom: calc(16px + var(--seguro-abajo)); margin: 0; font-size: 12px; color: rgba(241, 234, 215, .5); letter-spacing: .08em; text-transform: uppercase; }
#bEntrar { position: relative; animation: latido 1.6s ease-in-out infinite; }

/* ── Inicio ── */
#pInicio { background: url(../assets/escenas/mansion.webp) center 30%/cover; }
#pInicio::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(8, 19, 15, .15), rgba(8, 19, 15, .25) 45%, rgba(8, 19, 15, .95) 78%); pointer-events: none; }
#pInicio > * { position: relative; }
.inicio-escena { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 0; }
.inicio-logo { width: min(90%, 440px); margin-top: 2vh; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .6)) drop-shadow(0 0 24px rgba(46, 229, 157, .25)); animation: flotar 5s ease-in-out infinite; }
.inicio-grupo { position: absolute; bottom: -6px; width: min(108%, 560px); max-height: 52%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); }
.inicio-luna { display: none; position: absolute; top: 4%; right: 8%; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 250, 220, .35), transparent 70%); animation: brillo 6s ease-in-out infinite; }
.burbuja-regalo { position: absolute; left: 12px; top: 34%; width: 66px; height: 66px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a6b52, #0f2a21); border: 2px solid var(--oro); box-shadow: 0 0 0 4px rgba(246, 195, 67, .15), var(--sombra); display: grid; place-items: center; animation: balanceo 2.4s ease-in-out infinite; z-index: 2; }
.burbuja-regalo img { width: 46px; }
.burbuja-regalo .punto { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--rojo); border: 2px solid #fff; display: none; }
.burbuja-regalo.hay .punto { display: block; }
.inicio-acciones { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 16px 6px; }
.inicio-vida { margin: 0; min-height: 20px; font-size: 13px; color: var(--suave); }
#bJugar { width: min(100%, 340px); animation: latido 2.2s ease-in-out infinite; }

.menu-inferior { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px 8px calc(8px + var(--seguro-abajo)); background: linear-gradient(rgba(8, 19, 15, 0), rgba(8, 19, 15, .9) 30%); }
.menu-inferior button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; border-radius: 14px; font-size: 12.5px; font-weight: 700; color: var(--crema); background: linear-gradient(#1c4436, #10291f); border: 1px solid rgba(246, 195, 67, .22); box-shadow: 0 3px 0 #06120e; position: relative; }
.menu-inferior button svg { width: 26px; height: 26px; color: var(--oro); filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .4)); }
.menu-inferior button:active { transform: translateY(2px); }
.insignia { position: absolute; top: -5px; right: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--rojo); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--noche); }

/* ── Cabeceras de pantallas secundarias ── */
.cabecera { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: calc(10px + var(--seguro-arriba)) 12px 10px; background: linear-gradient(#123128, rgba(18, 49, 40, 0)); }
.cabecera h2 { margin: 0; font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(15px, 4.6vw, 19px); color: var(--oro); text-shadow: 0 2px 0 #3a2200, 0 0 18px rgba(246, 195, 67, .3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cabecera .cuenta { font-weight: 800; color: var(--esmeralda); }
.desliza { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 14px calc(24px + var(--seguro-abajo)); }

/* ── Mapa ── */
.mapa { flex: 1; overflow-y: auto; padding: 10px 0 calc(40px + var(--seguro-abajo)); background: linear-gradient(rgba(8, 19, 15, .55), rgba(8, 19, 15, .8)), url(../assets/escenas/corridors.webp) center/cover fixed; }
.mapa-intro { text-align: center; padding: 4px 24px 14px; color: var(--suave); font-size: 14px; margin: 0; }
.mapa-camino { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
.nodo { position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 26px; color: #3a2200; background: radial-gradient(circle at 35% 30%, #fff1bf, #f6c343 55%, #b77d14); border: 3px solid #fff3c9; box-shadow: 0 5px 0 #7a4d00, 0 10px 18px rgba(0, 0, 0, .5); }
.nodo.bloqueado { color: #8aa197; background: radial-gradient(circle at 35% 30%, #34584b, #17302a); border-color: #3c6656; box-shadow: 0 5px 0 #0a1a15; font-size: 22px; }
.nodo.actual { animation: latido 1.6s ease-in-out infinite; box-shadow: 0 5px 0 #7a4d00, 0 0 0 6px rgba(46, 229, 157, .35), 0 0 30px rgba(46, 229, 157, .6); }
.nodo .nodo-estrellas { position: absolute; bottom: -14px; display: flex; gap: 0; }
.nodo .nodo-estrellas svg { width: 20px; height: 20px; }
.nodo .nodo-estrellas svg.vacia { filter: grayscale(1) brightness(.45); }
.nodo-fila { height: 92px; display: flex; align-items: center; }
.nodo-mascota { position: absolute; width: 58px; top: -38px; right: -38px; animation: flotar 3s ease-in-out infinite; pointer-events: none; }
.nodo-jefe { position: absolute; top: -20px; left: -24px; width: 52px; pointer-events: none; }

/* ── Partida ── */
#pPartida { background: #12081a; }
.hud { display: grid; grid-template-columns: 44px 1fr auto 44px; gap: 10px; align-items: center; padding: calc(8px + var(--seguro-arriba)) 10px 8px; background: linear-gradient(#1c0f28, #12081a); border-bottom: 2px solid #5b3a1a; }
.hud-centro { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.hud-centro b { font-family: 'Cinzel', serif; color: var(--oro); font-size: 17px; }
.hud-huespedes { display: flex; gap: 3px; align-items: center; margin-top: 3px; min-height: 22px; }
.hud-huespedes i { width: 22px; height: 22px; border-radius: 50%; background: #2c1838 center/cover; border: 2px solid #4a2d5c; }
.hud-huespedes i.dentro { border-color: var(--esmeralda); box-shadow: 0 0 6px rgba(46, 229, 157, .7); }
.hud-huespedes i.dentro.perfecto { border-color: var(--oro); box-shadow: 0 0 6px rgba(246, 195, 67, .8); }
.hud-movs { min-width: 78px; height: 52px; border-radius: 14px; background: linear-gradient(#ffe7a3, #f6c343 50%, #d99a1e); color: #3a2200; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 3px 0 #7a4d00; }
.hud-movs b { font-size: 26px; }
.hud-movs span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.hud-movs.pocos { background: linear-gradient(#ffb3bf, #ef3b55 55%, #a8122b); color: #fff; box-shadow: 0 3px 0 #5a0918; animation: latido .8s ease-in-out infinite; }
.lienzo-caja { position: relative; flex: 1; min-height: 0; }
#lienzo { position: absolute; inset: 0; display: block; touch-action: none; }
.mensaje { position: absolute; top: 8px; left: 50%; transform: translate(-50%, -8px); max-width: 92%; padding: 8px 16px; border-radius: 99px; background: rgba(255, 250, 240, .96); color: #2a0f35; font-weight: 800; font-size: 15px; text-align: center; box-shadow: var(--sombra); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; border: 2px solid #3b1b4a; }
.mensaje.ver { opacity: 1; transform: translate(-50%, 0); }
.boosters { display: grid; grid-template-columns: repeat(8, minmax(0, 54px)); gap: 6px; justify-content: center; padding: 8px 8px calc(8px + var(--seguro-abajo)); background: linear-gradient(#1a0d22, #0d0612); border-top: 2px solid #5b3a1a; overflow-x: auto; scrollbar-width: none; }
.boosters::-webkit-scrollbar { display: none; }
.booster { position: relative; width: 100%; aspect-ratio: 1; max-width: 54px; border-radius: 14px; background: radial-gradient(circle at 40% 30%, #3b2350, #1d0f29); border: 2px solid #6e4a8a; display: grid; place-items: center; }
.booster img { width: 82%; height: 82%; object-fit: contain; }
.booster b { position: absolute; bottom: -6px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: var(--esmeralda); color: #04281a; font-size: 12px; display: grid; place-items: center; border: 2px solid #0d0612; }
.booster.cero b { background: var(--oro); color: #3a2200; }
.booster.activo { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(246, 195, 67, .4), 0 0 18px rgba(246, 195, 67, .5); }
.booster:active { transform: scale(.94); }
.boosters.bloqueados { display: flex; justify-content: center; align-items: center; color: var(--suave); font-size: 14px; gap: 8px; min-height: 70px; }
.boosters.bloqueados svg { width: 18px; height: 18px; color: var(--oro); }

/* ── Hotel ── */
.hotel-cabeza { position: relative; border-radius: var(--radio); overflow: hidden; margin: 4px 0 14px; aspect-ratio: 16/10; box-shadow: var(--sombra); border: 2px solid rgba(246, 195, 67, .35); }
.hotel-cabeza img { width: 100%; height: 100%; object-fit: cover; transition: filter .6s; }
.hotel-cabeza .hotel-texto { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.hotel-cabeza h3 { margin: 0; font-family: 'Cinzel', serif; color: var(--oro); font-size: 17px; }
.hotel-cabeza p { margin: 2px 0 0; color: var(--suave); font-size: 13px; }
.progreso { height: 10px; border-radius: 99px; background: rgba(0, 0, 0, .5); margin-top: 8px; overflow: hidden; border: 1px solid rgba(246, 195, 67, .3); }
.progreso i { display: block; height: 100%; background: linear-gradient(90deg, var(--oro-osc), var(--oro)); }
.reformas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reforma { position: relative; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--borde); display: flex; flex-direction: column; }
.reforma .foto { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.reforma .foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) sepia(.35) brightness(.45) contrast(.9); transition: filter .8s; }
.reforma .foto::after { content: ''; position: absolute; inset: 0; background: radial-gradient(transparent 40%, rgba(0, 0, 0, .55)), repeating-linear-gradient(35deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px); }
.reforma.hecha .foto img { filter: none; }
.reforma.hecha .foto::after { background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .25) 50%, transparent 60%); background-size: 250% 100%; animation: destello 3.5s ease-in-out infinite; }
.reforma .cuerpo { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.reforma h4 { margin: 0; font-size: 14px; line-height: 1.15; }
.reforma .boton { min-height: 38px; font-size: 15px; padding: 0 10px; border-radius: 12px; margin-top: auto; }
.reforma .sello { position: absolute; top: 8px; right: 8px; background: var(--esmeralda); color: #04281a; font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 99px; }

/* ── Libro ── */
.libro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 360px) { .libro { grid-template-columns: repeat(3, 1fr); } }
.ficha { position: relative; border-radius: 12px; aspect-ratio: 3/4; overflow: hidden; background: radial-gradient(circle at 50% 35%, #26574a, #0e221c); border: 2px solid var(--r, #3c6656); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.ficha img { position: absolute; inset: 6% 8% 22%; width: 84%; height: 72%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5)); }
.ficha span { position: relative; width: 100%; padding: 3px 2px 4px; font-size: 10.5px; font-weight: 700; text-align: center; background: rgba(0, 0, 0, .55); line-height: 1.1; min-height: 22px; display: grid; place-items: center; }
.ficha.bloq img { filter: brightness(0) drop-shadow(0 0 4px rgba(46, 229, 157, .35)); opacity: .7; }
.ficha.bloq span { color: var(--suave); }
.ficha .nueva { position: absolute; top: 4px; left: 4px; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 99px; background: var(--rojo); color: #fff; }
.r-common { --r: #6d8f80; } .r-uncommon { --r: #2ee59d; } .r-rare { --r: #4aa8ff; } .r-epic { --r: #b06bff; } .r-legendary { --r: #f6c343; }
.ficha.r-legendary { box-shadow: 0 0 12px rgba(246, 195, 67, .4); }

/* ── Tienda y ajustes ── */
.seccion-tit { font-family: 'Cinzel', serif; color: var(--oro); font-size: 16px; margin: 16px 2px 8px; }
.nota { font-size: 13px; color: var(--suave); margin: 4px 2px 10px; line-height: 1.35; }
.tienda-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.articulo { background: var(--panel); border: 1px solid var(--borde); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.articulo img { width: 64px; height: 64px; object-fit: contain; }
.articulo h4 { margin: 0; font-size: 14px; }
.articulo p { margin: 0; font-size: 11.5px; color: var(--suave); line-height: 1.25; min-height: 29px; }
.articulo .tienes { font-size: 12px; color: var(--esmeralda); font-weight: 700; }
.articulo .boton { min-height: 38px; font-size: 15px; padding: 0 12px; border-radius: 12px; width: 100%; margin-top: 4px; }
.articulo .boton svg { width: 20px; height: 20px; }
.fila-ajuste { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-weight: 700; font-size: 17px; }
.interruptor { width: 58px; height: 32px; border-radius: 99px; background: #2a3a35; position: relative; transition: background .2s; flex: 0 0 auto; }
.interruptor::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.interruptor.si { background: var(--esmeralda); }
.interruptor.si::after { transform: translateX(26px); }
.idiomas { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 230px; }
.idiomas button { padding: 5px 10px; border-radius: 10px; background: #1e3a31; font-weight: 700; font-size: 14px; }
.idiomas button.si { background: var(--oro); color: #3a2200; }
.firma { text-align: center; margin-top: 26px; color: var(--suave); font-size: 13px; }
.firma img { width: 140px; margin: 0 auto 6px; opacity: .9; }

/* ── Modal ── */
.modal { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(2, 8, 6, .72); backdrop-filter: blur(3px); animation: aparecer .2s ease; }
.modal[hidden] { display: none; }
.modal-caja { position: relative; width: min(100%, 420px); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 24px; padding: 22px 18px 18px; text-align: center; background: linear-gradient(#1b4335, #0f261e 60%); border: 2px solid rgba(246, 195, 67, .55); box-shadow: 0 0 0 6px rgba(246, 195, 67, .08), var(--sombra); animation: saltar .35s cubic-bezier(.2, 1.4, .4, 1); }
.modal-caja h3 { margin: 0 0 6px; font-family: 'Cinzel', serif; font-weight: 900; font-size: 24px; color: var(--oro); text-shadow: 0 2px 0 #3a2200; line-height: 1.15; }
.modal-caja p { margin: 6px 0; line-height: 1.4; }
.modal-caja .acciones { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.modal-caja .acciones.fila { flex-direction: row; }
.modal-caja .acciones.fila .boton { flex: 1; }
.cinta { display: inline-block; margin: -6px 0 8px; padding: 2px 14px; border-radius: 99px; background: var(--esm-osc); color: #dfffee; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.estrellas-gran { display: flex; justify-content: center; gap: 4px; margin: 6px 0 4px; }
.estrellas-gran svg { width: 64px; height: 64px; filter: grayscale(1) brightness(.35); transform: scale(.6); transition: transform .35s cubic-bezier(.2, 1.6, .4, 1), filter .25s; }
.estrellas-gran svg:nth-child(2) { width: 78px; height: 78px; margin-top: -12px; }
.estrellas-gran svg.on { filter: drop-shadow(0 0 10px rgba(255, 211, 77, .8)); transform: scale(1); }
.premios { display: flex; justify-content: center; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.premio { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 8px; border-radius: 99px; background: rgba(0, 0, 0, .35); font-weight: 800; font-size: 18px; }
.premio svg { width: 28px; height: 28px; }
.retratos { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 2px; }
.retrato { width: 62px; text-align: center; font-size: 11px; font-weight: 700; line-height: 1.1; }
.retrato i { display: block; width: 62px; height: 62px; border-radius: 14px; background: radial-gradient(circle at 50% 35%, #2c6152, #10291f) ; border: 2px solid var(--borde); position: relative; overflow: hidden; }
.retrato i img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.retrato.nuevo i { border-color: var(--oro); box-shadow: 0 0 10px rgba(246, 195, 67, .6); }
.retrato em { display: block; font-style: normal; color: var(--oro); font-size: 10px; }
.datos-nivel { display: flex; justify-content: center; gap: 8px; margin: 10px 0; }
.datos-nivel span { padding: 4px 12px; border-radius: 99px; background: rgba(0, 0, 0, .3); font-weight: 700; font-size: 14px; }
.regla { font-size: 12.5px; color: var(--suave); margin-top: 10px !important; }
.pasos-como { text-align: left; display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.paso-como { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; background: rgba(0, 0, 0, .25); border-radius: 14px; padding: 8px; font-size: 14.5px; line-height: 1.3; }
.paso-como .ilus { width: 54px; height: 54px; border-radius: 12px; background: #2a1438 center/cover; position: relative; overflow: hidden; display: grid; place-items: center; }
.paso-como .ilus img { max-height: 50px; }
.dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 12px 0; }
.dia { border-radius: 12px; padding: 6px 2px; background: rgba(0, 0, 0, .3); border: 2px solid transparent; font-size: 11px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dia svg, .dia img { width: 24px; height: 24px; object-fit: contain; }
.dia.hecho { opacity: .45; }
.dia.hoy { border-color: var(--oro); background: rgba(246, 195, 67, .15); box-shadow: 0 0 12px rgba(246, 195, 67, .35); }
.cerrar-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .35); font-size: 20px; line-height: 1; }
.ficha-grande { display: grid; grid-template-columns: 120px 1fr; gap: 12px; text-align: left; align-items: center; }
.ficha-grande .foto { height: 170px; border-radius: 16px; background: radial-gradient(circle at 50% 35%, #2c6152, #10291f); border: 2px solid var(--r, var(--borde)); display: grid; place-items: center; overflow: hidden; }
.ficha-grande .foto img { max-height: 160px; object-fit: contain; }
.ficha-grande dl { margin: 0; font-size: 13.5px; display: grid; gap: 4px; }
.ficha-grande dt { color: var(--suave); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.ficha-grande dd { margin: 0 0 4px; font-weight: 700; }
.salitas { display: flex; gap: 4px; flex-wrap: wrap; }
.salitas i { width: 44px; height: 30px; border-radius: 6px; background: center/cover; position: relative; border: 1px solid rgba(255, 255, 255, .2); }
.salitas i.fav::after { content: '★'; position: absolute; top: -8px; right: -6px; color: var(--oro); font-style: normal; font-size: 15px; text-shadow: 0 1px 0 #000; }
.colores { display: flex; gap: 10px; justify-content: center; margin: 14px 0; }
.colores button { width: 92px; border-radius: 14px; padding: 6px; background: rgba(0, 0, 0, .3); border: 2px solid transparent; font-size: 12px; font-weight: 700; }
.colores button img { width: 80px; margin: 0 auto 4px; }
.colores button.si { border-color: var(--oro); }

/* ── Aviso flotante ── */
.aviso { position: absolute; left: 50%; bottom: calc(96px + var(--seguro-abajo)); transform: translate(-50%, 20px); z-index: 60; max-width: 90%; padding: 10px 18px; border-radius: 14px; background: rgba(255, 250, 240, .97); color: #2a0f35; font-weight: 800; text-align: center; box-shadow: var(--sombra); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.aviso.ver { opacity: 1; transform: translate(-50%, 0); }

/* ── Animaciones ── */
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes balanceo { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes brillo { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes saltar { from { transform: scale(.85); opacity: 0; } }
@keyframes destello { 0%, 60% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Grabacion del trailer: ninguna palabra en pantalla (los rotulos los pone la web) */
body.sin-texto #hudNivel, body.sin-texto .hud-movs span { visibility: hidden; }

/* La tienda a mano durante la partida: la gema junto a los movimientos */
.hud-tienda svg { width: 24px; height: 24px; color: #5ef0b4; filter: drop-shadow(0 0 6px rgba(46, 229, 157, .6)); }
