/* REINOS · Ajedrez despertado — estilos (mobile-first) */
@font-face { font-family: 'Cinzel'; src: url('../assets/fuentes/Cinzel.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../assets/fuentes/Nunito.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }
:root {
  --fondo: #120a1c; --panel: rgba(24, 14, 36, .92); --borde: #4a3466; --texto: #f4ecdf; --suave: #b9a9cf;
  --oro: #e9b949; --oro2: #ffd97a; --lava: #ff6a2a; --violeta: #a66bff; --turquesa: #3ff0ff; --rojo: #ff3b4e;
  --arriba: env(safe-area-inset-top, 0px); --abajo: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--fondo); color: var(--texto); font-family: 'Nunito', system-ui, sans-serif; overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { font-family: 'Cinzel', Georgia, serif; letter-spacing: .5px; margin: 0 0 10px; }
h2 { font-size: 24px; } h3 { font-size: 17px; color: var(--oro2); }
.pantalla { position: fixed; inset: 0; display: none; overflow-y: auto; }
.pantalla.activa { display: block; }
.contenido { position: relative; max-width: 560px; margin: 0 auto; padding: calc(16px + var(--arriba)) 16px calc(24px + var(--abajo)); z-index: 2; }
.contenido.ancho { max-width: 860px; }
.centro { text-align: center; } .peq { font-size: 13px; } .suave { color: var(--suave); }
.cabecera { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; } .cabecera h2 { margin: 0; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-weight: 800; font-size: 16px;
  background: linear-gradient(180deg, #3a2758, #241640); border: 2px solid var(--borde); box-shadow: 0 4px 0 #120a1c, 0 8px 18px rgba(0,0,0,.35); transition: transform .08s, filter .2s; min-height: 48px; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #120a1c; }
.btn:hover { filter: brightness(1.12); }
.btn.grande { font-size: 18px; padding: 15px 20px; width: 100%; }
.btn.bloque { width: 100%; }
.btn.oro { background: linear-gradient(180deg, #ffd97a, #c9922a); color: #2a1606; border-color: #ffe9a8; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.btn.violeta { background: linear-gradient(180deg, #7e4be0, #4a2596); border-color: #b48cff; }
.btn.rojo { background: linear-gradient(180deg, #e0405a, #8c1830); border-color: #ff8a9a; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-icono { width: 46px; height: 46px; border-radius: 14px; background: var(--panel); border: 2px solid var(--borde); font-size: 20px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tarjeta { background: var(--panel); border: 2px solid var(--borde); border-radius: 18px; padding: 14px; margin-bottom: 14px; backdrop-filter: blur(6px); }
.oro-borde { border-color: #8a6a2a; }
.campo { display: grid; gap: 6px; font-weight: 800; }
input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--borde); background: #1a1028; color: var(--texto); width: 100%; font-size: 16px; }
input.codigo { text-transform: uppercase; letter-spacing: 6px; font-family: 'Cinzel', serif; font-weight: 800; text-align: center; }

/* intro (motion graphics) */
#intro { background: radial-gradient(ellipse at 50% 60%, #2a1640 0%, #0b0612 70%); cursor: pointer; overflow: hidden; }
#brasas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(130px + var(--arriba)) 20px 20px; }
@media (max-aspect-ratio: 1/1) { .intro-centro { padding-top: calc(90px + var(--arriba)); } }
.intro-logo { width: min(86vw, 760px, 95vh); height: auto; filter: drop-shadow(0 0 30px rgba(255,190,90,.35)); opacity: 0; transform: scale(1.25); animation: logoEntra 1.8s cubic-bezier(.2,.9,.2,1) .5s forwards; -webkit-mask-image: linear-gradient(100deg, #000 40%, rgba(0,0,0,.6) 50%, #000 60%); -webkit-mask-size: 300% 100%; animation-fill-mode: forwards; }
@keyframes logoEntra { 0% { opacity: 0; transform: scale(1.25); filter: blur(12px) brightness(2); } 60% { opacity: 1; filter: blur(0) brightness(1.4); } 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 30px rgba(255,190,90,.35)); } }
.intro-logo { animation: logoEntra 1.8s cubic-bezier(.2,.9,.2,1) .5s forwards, brillo 3.5s ease-in-out 2.4s infinite; }
@keyframes brillo { 0%, 100% { -webkit-mask-position: 100% 0; } 50% { -webkit-mask-position: 0 0; } }
.intro-frase { font-family: 'Cinzel', serif; font-size: clamp(16px, 4vw, 24px); text-align: center; color: #f6e3b4; opacity: 0; animation: aparece 1s ease 2s forwards; margin-top: 18px; text-shadow: 0 2px 10px #000; }
.intro-frase b { color: var(--oro2); }
.intro-toca { margin-top: 28px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; color: var(--suave); opacity: 0; animation: aparece 1s ease 3s forwards, latido 1.6s ease-in-out 4s infinite; }
.intro-ja { position: absolute; top: calc(18px + var(--arriba)); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: 'Cinzel', serif; letter-spacing: 6px; font-size: 13px; color: var(--suave); opacity: 0; animation: aparece 1s ease .2s forwards; }
.intro-ja img { width: clamp(64px, 16vw, 96px); height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.sello-ja { display: block; width: max-content; margin: 16px auto 0; transition: transform .2s; }
.sello-ja:hover { transform: scale(1.06); }
.sello-ja img { width: 72px; height: auto; display: block; filter: drop-shadow(0 3px 8px rgba(0,0,0,.6)); }
.sello-ja + .pie { margin-top: 4px; }
@keyframes aparece { to { opacity: 1; } }
@keyframes latido { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* inicio */
#inicio { background: #0b0612; }
.fondo-portada { position: fixed; inset: -4%; background: url('../assets/img/portada.webp') center / cover no-repeat; animation: kenburns 30s ease-in-out infinite alternate; }
.fondo-portada::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,6,18,.35) 0%, rgba(11,6,18,.25) 35%, rgba(11,6,18,.9) 75%, #0b0612 100%); }
@media (max-aspect-ratio: 4/5) { .fondo-portada { background-image: url('../assets/img/portada_movil.webp'); } }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, 1%); } }
.barra-sup { position: fixed; top: calc(12px + var(--arriba)); right: 12px; display: flex; gap: 8px; z-index: 5; }
#inicio .contenido { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.logo { width: 100%; max-width: 520px; height: auto; margin: 0 auto; display: block; filter: drop-shadow(0 4px 24px rgba(0,0,0,.6)); animation: flotar 6s ease-in-out infinite; }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.lema { text-align: center; font-weight: 800; color: #f6e3b4; text-shadow: 0 2px 8px #000; margin: 4px 0 14px; }
.menu { display: grid; gap: 10px; }
.menu .btn { animation: subeBtn .6s cubic-bezier(.2,.9,.2,1) backwards; }
.menu .btn:nth-child(2) { animation-delay: .08s; } .menu .btn:nth-child(3) { animation-delay: .16s; } .menu .fila2 { animation: subeBtn .6s .24s backwards; }
@keyframes subeBtn { from { opacity: 0; transform: translateY(20px); } }
.pie { text-align: center; color: var(--suave); font-size: 13px; margin-top: 14px; }

/* selectores y ejércitos */
.selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.selector button { padding: 10px 12px; border-radius: 14px; background: #1c1130; border: 2px solid var(--borde); text-align: left; display: grid; gap: 2px; }
.selector button b { font-size: 15px; } .selector button small { color: var(--suave); font-size: 12px; }
.selector button.sel { border-color: var(--oro); background: linear-gradient(180deg, #3a2a18, #22140a); box-shadow: 0 0 0 3px rgba(233,185,73,.25); }
.ejercitos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.carta-ej { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 9 / 13; border: 3px solid var(--borde); background: #000 center / cover; text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s; }
.carta-ej::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.92)); }
.carta-ej .txt { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; }
.carta-ej .txt b { font-family: 'Cinzel', serif; font-size: clamp(14px, 3.6vw, 19px); display: block; line-height: 1.1; }
.carta-ej .txt small { color: #e6d7f5; font-size: 12px; }
.carta-ej.sel { border-color: var(--oro); box-shadow: 0 0 0 4px rgba(233,185,73,.3), 0 0 26px rgba(233,185,73,.35); transform: translateY(-3px); }
.carta-ej.sel::before { content: '✔'; position: absolute; top: 8px; right: 8px; z-index: 3; background: var(--oro); color: #2a1606; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.solo-ver .carta-ej { cursor: default; }
@media (min-width: 700px) { .ejercitos { grid-template-columns: repeat(4, 1fr); } #ej-w, #ej-b, #sala-ej { grid-template-columns: repeat(2, minmax(0, 220px)); } }

/* sala */
.gran-codigo { font-family: 'Cinzel', serif; font-size: 48px; font-weight: 800; letter-spacing: 10px; color: var(--oro2); margin: 6px 0; }
.jug-sala { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.jug-sala img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 2px solid var(--borde); }

/* juego */
#juego { overflow: hidden; background: #0b0612; }
#lienzo { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.placa { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 18px; background: var(--panel); border: 2px solid var(--borde); z-index: 4; max-width: calc(100vw - 130px); transition: border-color .3s, box-shadow .3s; }
.placa.arriba { top: calc(10px + var(--arriba)); }
.placa.abajo { bottom: calc(10px + var(--abajo)); }
.placa.turno { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(233,185,73,.3), 0 0 22px rgba(233,185,73,.3); }
.placa.jaque { border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(255,59,78,.35), 0 0 22px rgba(255,59,78,.45); animation: tiembla .4s; }
@keyframes tiembla { 0%, 100% { transform: translateX(-50%); } 25% { transform: translateX(calc(-50% - 4px)); } 75% { transform: translateX(calc(-50% + 4px)); } }
.placa img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 2px solid var(--borde); flex: none; }
.placa .nom { font-weight: 900; font-size: 14px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.placa .ej { font-size: 11px; color: var(--suave); white-space: nowrap; }
.placa .energia { display: flex; gap: 3px; margin-top: 3px; }
.placa .energia i { width: 12px; height: 12px; border-radius: 50%; background: #2a1f3a; border: 1px solid #4a3466; }
.placa .energia i.on { background: radial-gradient(circle at 35% 30%, #c8fbff, var(--turquesa) 55%, #108a99); border-color: #9ff; box-shadow: 0 0 6px var(--turquesa); }
.placa .capturas { font: inherit; font-size: 15px; letter-spacing: -2px; margin-left: 4px; opacity: .9; max-width: 130px; overflow: hidden; white-space: nowrap; background: rgba(0,0,0,.25); border: 1px solid var(--borde); border-radius: 10px; padding: 2px 8px 2px 6px; color: inherit; cursor: pointer; }
.placa .pensando { font-size: 12px; color: var(--oro2); font-weight: 800; }
.botones-lado { position: absolute; left: calc(10px + env(safe-area-inset-left, 0px)); top: calc(70px + var(--arriba)); display: grid; gap: 8px; z-index: 4; }
.aviso-turno { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(.8); font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(30px, 8vw, 64px); color: var(--oro2); text-shadow: 0 0 20px rgba(0,0,0,.9), 0 0 40px rgba(233,185,73,.6); opacity: 0; pointer-events: none; z-index: 6; text-align: center; white-space: nowrap; }
.aviso-turno.ver { animation: avisoTurno 1.8s ease forwards; }
.aviso-turno.rojo { color: #ff6a7a; text-shadow: 0 0 20px rgba(0,0,0,.9), 0 0 40px rgba(255,59,78,.7); }
@keyframes avisoTurno { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.95); } }
.panel-pieza { position: absolute; right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(76px + var(--abajo)); width: min(330px, calc(100vw - 20px)); background: var(--panel); border: 2px solid var(--borde); border-radius: 18px; padding: 12px; z-index: 5; display: none; }
.panel-pieza.ver { display: block; animation: subeBtn .25s ease; }
.panel-pieza h4 { margin: 0; font-family: 'Cinzel', serif; font-size: 16px; color: var(--oro2); }
.panel-pieza .tipo { font-size: 12px; color: var(--suave); margin-bottom: 8px; }
.poder { width: 100%; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, #123a44, #0b2230); border: 2px solid #2fb8c6; }
.poder .ic { font-size: 30px; text-align: center; }
.poder b { display: block; } .poder small { color: #bfeff5; font-size: 12px; display: block; line-height: 1.3; }
.poder .coste { color: var(--turquesa); font-weight: 900; }
.poder.activo { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(233,185,73,.35); }
.poder:disabled { opacity: .5; filter: grayscale(.6); }
.historial { position: absolute; left: calc(64px + env(safe-area-inset-left, 0px)); top: calc(70px + var(--arriba)); width: 220px; max-height: 50vh; overflow-y: auto; background: var(--panel); border: 2px solid var(--borde); border-radius: 14px; padding: 8px 10px; z-index: 5; display: none; font-size: 13px; }
.historial.ver { display: block; }
.historial ol { margin: 0; padding-left: 22px; } .historial li { padding: 2px 0; } .historial li span { display: inline-block; min-width: 82px; }
.tutor { position: absolute; left: 50%; transform: translateX(-50%); top: calc(64px + var(--arriba)); width: min(520px, calc(100vw - 20px)); background: linear-gradient(180deg, rgba(58,40,24,.96), rgba(30,18,10,.96)); border: 2px solid var(--oro); border-radius: 18px; padding: 12px 14px; z-index: 6; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.tutor h4 { margin: 0 0 4px; font-family: 'Cinzel', serif; color: var(--oro2); }
.tutor p { margin: 0 0 8px; font-size: 14px; line-height: 1.4; }
.tutor .pasos { font-size: 12px; color: #e6cf9a; }

/* modal y avisos */
.capa { position: fixed; inset: 0; background: rgba(6,3,12,.72); display: none; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.capa.activa { display: flex; animation: aparece .2s ease forwards; }
.modal { width: min(460px, 100%); max-height: 90vh; overflow-y: auto; background: linear-gradient(180deg, #2a1a40, #170e26); border: 2px solid var(--borde); border-radius: 22px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: subeBtn .3s ease; }
.modal .acciones { display: grid; gap: 10px; margin-top: 14px; }
.modal .promos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.modal .promos button { padding: 12px 4px; border-radius: 14px; background: #1c1130; border: 2px solid var(--borde); display: grid; gap: 4px; place-items: center; font-size: 12px; font-weight: 800; }
.modal .promos button span { font-size: 32px; }
.fin-titulo { font-family: 'Cinzel', serif; font-size: 34px; text-align: center; margin: 4px 0; }
#avisos { position: fixed; left: 50%; bottom: calc(90px + var(--abajo)); transform: translateX(-50%); display: grid; gap: 6px; z-index: 30; pointer-events: none; width: min(92vw, 420px); }
.aviso { background: var(--panel); border: 2px solid var(--borde); border-radius: 12px; padding: 10px 14px; font-weight: 800; text-align: center; animation: subeBtn .3s ease; }
.aviso.malo { border-color: var(--rojo); } .aviso.bueno { border-color: var(--oro); }
ul { padding-left: 20px; } li { margin: 4px 0; }
.lista-poder { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #3a2a52; }
.lista-poder:last-child { border: 0; } .lista-poder .ic { font-size: 30px; text-align: center; }

@media (max-width: 600px) {
  .placa .capturas { display: none; }
  .placa { padding: 5px 10px 5px 5px; } .placa img { width: 36px; height: 36px; }
  .panel-pieza { bottom: calc(68px + var(--abajo)); right: 50%; transform: translateX(50%); }
  .panel-pieza.ver { animation: none; }
  .historial { left: 62px; width: 190px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }
#b-empezar { position: sticky; bottom: calc(10px + var(--abajo)); z-index: 5; margin-bottom: 14px; box-shadow: 0 4px 0 #6a4a10, 0 10px 30px rgba(0,0,0,.6); }
@media (min-width: 700px) { .carta-ej { max-height: 300px; } }

.gal-tit { font-family: 'Cinzel', serif; color: var(--oro2); margin: 12px 0 6px; font-size: 15px; }
.gal-fila { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.gal-ficha { background: radial-gradient(ellipse at 50% 85%, #3a2a58, #160d24 70%); border: 2px solid var(--borde); border-radius: 12px; padding: 4px 2px 6px; display: grid; gap: 2px; justify-items: center; transition: transform .15s; }
.gal-ficha img { width: 100%; height: 110px; object-fit: contain; animation: respirar 3s ease-in-out infinite; transform-origin: 50% 100%; }
.gal-ficha small { font-size: 10px; line-height: 1.15; text-align: center; color: var(--texto); } .gal-ficha small span { color: var(--suave); }
.gal-ficha.ataca { border-color: var(--oro); transform: scale(1.04); }
@keyframes respirar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }
@media (max-width: 600px) { .gal-fila { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gal-ficha img { height: 130px; } }

/* ---------- cuentas, progreso y tienda ---------- */
#acceso { background: #0b0612; }
#acceso .contenido { min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.pestanas { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.pestanas button { padding: 10px 6px; border-radius: 12px; background: #1c1130; border: 2px solid var(--borde); font-weight: 800; font-size: 14px; }
.pestanas button.sel { border-color: var(--oro); background: linear-gradient(180deg, #3a2a18, #22140a); color: var(--oro2); }
.col-form { display: grid; gap: 10px; }
.enlace { color: var(--turquesa); font-weight: 800; text-decoration: underline; padding: 6px; }
.aviso-form { min-height: 20px; margin: 10px 0 0; text-align: center; font-weight: 800; color: #ffd0a0; }
.aviso-form.malo { color: #fff; background: rgba(224,64,90,.25); border: 2px solid #e0405a; border-radius: 12px; padding: 10px 12px; }
.campo .ayuda { font-weight: 600; font-size: 12.5px; line-height: 1.35; color: var(--suave); }
.campo .error-campo { font-weight: 800; font-size: 13px; line-height: 1.35; color: #ff9aa8; background: rgba(224,64,90,.14); border-left: 3px solid #e0405a; border-radius: 8px; padding: 7px 10px; }
.campo .error-campo b { color: #fff; }
.campo .error-campo .usar { margin-left: 4px; color: var(--oro2); text-decoration: underline; background: none; border: 0; font: inherit; padding: 0; cursor: pointer; }
.campo input.mal { border-color: #e0405a; box-shadow: 0 0 0 3px rgba(224,64,90,.2); }
.campo input.bien { border-color: #3fbf7f; }
.requisitos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--suave); }
.requisitos li::before { content: '○ '; }
.requisitos li.ok { color: #6fe3a5; } .requisitos li.ok::before { content: '✔ '; }
.con-ojo { position: relative; display: block; }
.con-ojo input { padding-right: 48px; }
.con-ojo .ojo { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; font-size: 18px; opacity: .75; cursor: pointer; }
.con-ojo .ojo.ver { opacity: 1; background: rgba(255,255,255,.08); }
.chip-perfil { position: fixed; top: calc(12px + var(--arriba)); left: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 40px; background: var(--panel); border: 2px solid var(--oro); box-shadow: 0 6px 18px rgba(0,0,0,.5); cursor: pointer; max-width: calc(100vw - 130px); }
.chip-perfil .av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: radial-gradient(#3a2a58, #160d24); border: 2px solid var(--oro); }
.chip-perfil .emb { width: 30px; height: 30px; margin-left: -20px; margin-top: 26px; }
.chip-perfil .dat { min-width: 0; } .chip-perfil .dat b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chip-perfil .dat small { color: var(--suave); font-size: 11px; white-space: nowrap; }
.chip-perfil .cifras { display: grid; gap: 2px; font-weight: 900; font-size: 13px; } .chip-perfil .cifras span { display: flex; align-items: center; gap: 3px; } .chip-perfil .cifras img { width: 20px; height: 20px; }
.barra-xp { height: 8px; border-radius: 6px; background: #2a1f3a; overflow: hidden; margin-top: 3px; border: 1px solid #4a3466; }
.barra-xp i { display: block; height: 100%; background: linear-gradient(90deg, #108a99, var(--turquesa), #c8fbff); transition: width 1.2s cubic-bezier(.2,.9,.2,1); }
.barra-xp.grande { height: 14px; margin: 10px 0 4px; }
.barra-cuenta { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 auto 10px; max-width: 560px; width: 100%; position: relative; z-index: 3; }
#inicio .barra-cuenta { order: -1; }
.btn-cuenta { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: var(--panel); border: 2px solid var(--borde); font-weight: 800; font-size: 12px; transition: transform .15s; }
.btn-cuenta:hover { transform: translateY(-2px); border-color: var(--oro); } .btn-cuenta img { width: 44px; height: 44px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.recompensa { text-align: center; } .recompensa h3 { margin-top: 6px; }
.ico-grande { width: 130px; height: 130px; object-fit: contain; display: block; margin: 0 auto; filter: drop-shadow(0 0 18px rgba(255,200,90,.45)); }
.ico-grande.gira { animation: flotar 2.5s ease-in-out infinite; } .ico-grande.late { animation: latido2 1s ease-in-out infinite; } .ico-grande.brilla { animation: brilla2 2s ease-in-out infinite; }
@keyframes latido2 { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes brilla2 { 0%, 100% { filter: drop-shadow(0 0 10px rgba(255,200,90,.4)); transform: rotate(-3deg); } 50% { filter: drop-shadow(0 0 30px rgba(255,220,120,.9)); transform: rotate(3deg) scale(1.05); } }
.ico-linea { width: 20px; height: 20px; vertical-align: -4px; }
.oro-t { color: var(--oro2); } .turq { color: var(--turquesa); }
.dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0; }
.dia { background: #1c1130; border: 2px solid var(--borde); border-radius: 10px; padding: 4px 2px; display: grid; justify-items: center; font-size: 11px; opacity: .55; }
.dia img { width: 26px; height: 26px; } .dia.hecho { opacity: 1; border-color: var(--oro); } .dia.cofre img { width: 32px; height: 32px; }
.botin { background: #120a1e; border: 2px solid #3a2a52; border-radius: 16px; padding: 12px; margin-top: 10px; }
.botin-fila { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 18px; } .botin-fila img { width: 34px; height: 34px; vertical-align: middle; }
.sube-nivel { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 14px; background: linear-gradient(90deg, rgba(233,185,73,.25), transparent); border: 2px solid var(--oro); animation: subeBtn .5s ease; }
.sube-nivel img { width: 60px; height: 60px; }
.perfil-cab { display: flex; gap: 14px; align-items: center; } .av-g { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--oro); background: radial-gradient(#3a2a58, #160d24); object-fit: cover; flex: none; }
.rango-l { display: flex; align-items: center; gap: 10px; margin-top: 8px; } .rango-l img { width: 64px; height: 64px; } .rango-l > div { flex: 1; min-width: 140px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stats > div { background: var(--panel); border: 2px solid var(--borde); border-radius: 16px; padding: 10px; display: grid; justify-items: center; text-align: center; gap: 2px; }
.stats img { width: 40px; height: 40px; } .stats b { font-family: 'Cinzel', serif; font-size: 22px; color: var(--oro2); } .stats b.num { font-size: 30px; } .stats small { color: var(--suave); font-size: 12px; }
.rangos-l { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; } .rangos-l > div { display: grid; justify-items: center; text-align: center; font-size: 11px; } .rangos-l img { width: 100%; max-width: 70px; } .rangos-l .bloq { opacity: .35; filter: grayscale(1); } .rangos-l small { color: var(--suave); }
.rk-fila { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; border-bottom: 1px solid #2e2242; }
.rk-fila.yo { background: rgba(233,185,73,.12); border: 2px solid var(--oro); }
.rk-fila .puesto, .reino-fila .puesto { font-family: 'Cinzel', serif; font-weight: 800; width: 40px; text-align: center; font-size: 18px; flex: none; }
.rk-fila .av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: radial-gradient(#3a2a58, #160d24); border: 2px solid var(--borde); flex: none; }
.rk-fila .emb { width: 30px; height: 30px; margin-left: -18px; margin-top: 18px; flex: none; }
.r-dat { flex: 1; min-width: 0; } .r-dat b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .r-dat small { color: var(--suave); font-size: 12px; }
.rk-fila .pts { text-align: right; font-weight: 900; color: var(--oro2); } .rk-fila .pts small { display: block; color: var(--suave); font-weight: 600; font-size: 10px; }
.reino-fila { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; margin-bottom: 8px; background: #160d24; border: 2px solid var(--borde); }
.reino-fila.primero { border-color: var(--oro); box-shadow: 0 0 20px rgba(233,185,73,.25); }
.reino-fila img { width: 64px; height: 84px; object-fit: cover; object-position: 50% 20%; border-radius: 10px; flex: none; }
.barra-reino { height: 12px; border-radius: 8px; background: #2a1f3a; overflow: hidden; margin: 5px 0; } .barra-reino i { display: block; height: 100%; border-radius: 8px; }
.logros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.logro { background: var(--panel); border: 2px solid var(--borde); border-radius: 16px; padding: 10px; display: grid; justify-items: center; text-align: center; gap: 4px; }
.logro > img { width: 96px; height: 96px; } .logro b { font-family: 'Cinzel', serif; font-size: 14px; } .logro small { color: var(--suave); font-size: 12px; } .logro span { font-weight: 900; color: var(--oro2); font-size: 13px; }
.logro.ok { border-color: var(--oro); box-shadow: 0 0 14px rgba(233,185,73,.2); } .logro.bloq > img { filter: grayscale(1) brightness(.5); } .logro.bloq { opacity: .75; }
.tienda-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.art { background: radial-gradient(ellipse at 50% 30%, #3a2a58, #160d24 70%); border: 2px solid var(--borde); border-radius: 16px; padding: 8px 4px; display: grid; justify-items: center; gap: 2px; text-align: center; transition: transform .15s; }
.art:hover { transform: translateY(-2px); } .art > img:first-child { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--borde); }
.art b { font-size: 11px; line-height: 1.15; } .art small { color: var(--suave); font-size: 10px; } .art span { font-weight: 900; color: var(--oro2); font-size: 13px; margin-top: 2px; }
.art.mio span { color: var(--turquesa); } .art.puesto { border-color: var(--oro); box-shadow: 0 0 14px rgba(233,185,73,.35); } .art.puesto > img:first-child { border-color: var(--oro); }
.saldo { margin-left: auto; font-weight: 900; color: var(--oro2); background: var(--panel); border: 2px solid var(--oro); border-radius: 20px; padding: 4px 12px; }
@media (max-width: 600px) { .chip-perfil .cifras { display: none; } .rangos-l { grid-template-columns: repeat(3, 1fr); } .perfil-cab { flex-direction: column; text-align: center; } .rango-l { justify-content: center; text-align: left; } }

[hidden] { display: none !important; }

/* selector de campo de batalla (T437) */
.tableros { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tablero-op { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 3px solid var(--borde); background: #000 center / cover; text-align: left; transition: transform .15s, border-color .2s; }
.tablero-op::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.85)); }
.tablero-op span { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 2; }
.tablero-op b { font-family: 'Cinzel', serif; font-size: 13px; display: block; line-height: 1.1; } .tablero-op small { font-size: 11px; color: #e6d7f5; }
.tablero-op.sel { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(233,185,73,.3), 0 0 20px rgba(233,185,73,.35); transform: translateY(-2px); }

/* ---------- buscar contrincante y ligas (T442) ---------- */
.btn.grande.btn-buscar { position: relative; flex-wrap: wrap; padding: 12px 16px 12px 84px; min-height: 76px; justify-content: flex-start; text-align: left; font-size: 20px; line-height: 1.1; }
.btn-buscar small { flex-basis: 100%; font-size: 12px; font-weight: 700; opacity: .8; }
.btn-buscar .ico-btn { position: absolute; left: 10px; top: calc(50% - 32px); width: 64px; height: 64px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)); animation: flotar 4s ease-in-out infinite; }
.info-liga { margin-top: 12px; }
.liga-cab { display: flex; align-items: center; gap: 12px; }
.liga-cab > img { width: 74px; height: 74px; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.liga-cab > div { flex: 1; min-width: 0; } .liga-cab b { font-family: 'Cinzel', serif; font-size: 17px; } .liga-cab small { color: var(--suave); }
.barra-xp.liga { height: 10px; margin: 5px 0 3px; } .barra-xp.liga i { background: linear-gradient(90deg, #8c5a1c, var(--oro), #fff1b8); }
.delta-pl { display: inline-block; margin-left: 8px; font-weight: 900; font-size: 18px; animation: subeBtn .6s ease; }
.delta-pl.sube { color: #6dff9a; } .delta-pl.baja { color: #ff6a7a; }
.liga-botin { margin-top: 10px; }
.sube-liga { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 14px; background: linear-gradient(90deg, rgba(166,107,255,.28), transparent); border: 2px solid #b48cff; animation: subeBtn .5s ease; }
.sube-liga img { width: 72px; height: 72px; animation: latidoLiga 1.6s ease-in-out infinite; }
@keyframes latidoLiga { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.ligas-l { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0; }
.ligas-l > div { display: grid; justify-items: center; text-align: center; font-size: 10px; line-height: 1.15; padding: 4px 0; border-radius: 10px; }
.ligas-l img { width: 100%; max-width: 64px; } .ligas-l b { font-size: 10px; } .ligas-l small { color: var(--suave); font-size: 9px; }
.ligas-l .bloq img { opacity: .35; filter: grayscale(1); } .ligas-l .actual { background: rgba(233,185,73,.14); outline: 2px solid var(--oro); }
.rk-fila .emb.liga { width: 34px; height: 34px; }
.mi-liga { margin-bottom: 10px; }
.placa .liga-mini { width: 20px; height: 20px; border: 0; border-radius: 0; object-fit: contain; vertical-align: -4px; margin-right: 4px; display: inline-block; }

#buscar { background: #0b0612; }
.buscar-cont { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; position: relative; }
.buscar-tipo { font-weight: 800; color: #f6e3b4; background: var(--panel); border: 2px solid var(--borde); border-radius: 30px; padding: 6px 14px; font-size: 14px; }
.radar { position: relative; width: min(64vw, 260px); aspect-ratio: 1; margin: 18px 0 8px; display: grid; place-items: center; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--oro); opacity: 0; animation: ondaRadar 2.4s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: .8s; } .radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ondaRadar { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
.radar::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(233,185,73,.45), transparent 30%); animation: giraRadar 2s linear infinite; }
@keyframes giraRadar { to { transform: rotate(360deg); } }
.radar-av { position: relative; width: 46%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 4px solid var(--oro); background: radial-gradient(#3a2a58, #160d24); box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.radar-liga { position: absolute; width: 30%; right: 12%; bottom: 8%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.buscar-tit { font-family: 'Cinzel', serif; font-size: clamp(22px, 6vw, 30px); text-shadow: 0 2px 10px #000; }
.buscar-reloj { font-size: 32px; font-weight: 900; color: var(--oro2); font-variant-numeric: tabular-nums; }
.buscar-pista { max-width: 360px; color: #f6e3b4; background: var(--panel); border-radius: 12px; padding: 8px 12px; }
#bus-cancelar { max-width: 360px; margin-top: 18px; }
#buscar.encontrado #bus-info { color: #f6e3b4; font-size: 15px; font-weight: 800; }
#buscar.encontrado .buscar-tit { color: var(--oro2); animation: subeBtn .5s ease; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; width: 100%; max-width: 520px; margin: 16px 0; }
.vs-carta { display: grid; justify-items: center; gap: 2px; background: var(--panel); border: 2px solid var(--borde); border-radius: 18px; padding: 14px 8px; min-width: 0; }
.vs-carta.izq { animation: entraIzq .6s cubic-bezier(.2,.9,.2,1) backwards; } .vs-carta.der { animation: entraDer .6s cubic-bezier(.2,.9,.2,1) .15s backwards; }
@keyframes entraIzq { from { transform: translateX(-60vw); } } @keyframes entraDer { from { transform: translateX(60vw); } }
.vs-carta b { font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vs-carta small { color: var(--suave); font-size: 11px; }
.vs-av { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 3px solid var(--oro); background: radial-gradient(#3a2a58, #160d24); }
.vs-liga { width: 54px; height: 54px; margin-top: 4px; }
.vs-letras { font-family: 'Cinzel', serif; font-weight: 900; font-size: 40px; color: var(--oro2); text-shadow: 0 3px 0 #5a3a0a, 0 6px 18px rgba(0,0,0,.8); animation: golpeVs .5s cubic-bezier(.2,1.6,.4,1) .5s backwards; }
@keyframes golpeVs { from { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .radar i, .radar::before, .btn-buscar .ico-btn, .sube-liga img { animation: none; } }

/* ---------- campaña y cinemáticas (T443) ---------- */
.btn.grande.btn-campana { position: relative; overflow: hidden; flex-wrap: wrap; padding: 12px 16px 12px 96px; min-height: 72px; justify-content: flex-start; text-align: left; font-size: 20px; line-height: 1.1; }
.btn-campana small { flex-basis: 100%; font-size: 12px; font-weight: 700; opacity: .85; }
.btn-campana .camp-mini { position: absolute; left: 0; top: 0; bottom: 0; width: 84px; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.camp-portada small { color: var(--oro2); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 11px; }
.camp-portada h3 { font-size: 22px; margin: 2px 0 6px; } .camp-portada p { line-height: 1.5; }
.camp-reinos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .camp-reinos { grid-template-columns: repeat(4, 1fr); } }
.camp-reino { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; border: 3px solid var(--borde); background: #000 center / cover; text-align: left; transition: transform .2s, border-color .2s; }
.camp-reino::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.92)); }
.camp-reino:not(.bloq):hover { transform: translateY(-3px); border-color: var(--oro); }
.camp-reino:not(.bloq) { border-color: var(--oro); }
.camp-reino.bloq { filter: saturate(.55) brightness(.8); }
.camp-reino .txt { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: grid; gap: 2px; }
.camp-reino .txt small { color: #e6d7f5; font-size: 11px; } .camp-reino .txt b { font-family: 'Cinzel', serif; font-size: clamp(14px, 3.6vw, 18px); line-height: 1.15; } .camp-reino .txt em { font-style: normal; color: var(--oro2); font-size: 11px; font-weight: 800; }
.camp-estado { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 11px; font-weight: 900; padding: 4px 9px; border-radius: 20px; background: rgba(10,5,20,.8); border: 1px solid var(--borde); }
.camp-reino:not(.bloq) .camp-estado { color: #2a1606; background: var(--oro); border-color: #ffe9a8; }
.camp-cab { position: relative; overflow: hidden; } .camp-cab p { line-height: 1.5; } .camp-cab small { color: var(--oro2); font-weight: 800; }
.camp-barra { height: 8px; border-radius: 6px; background: #2a1f3a; overflow: hidden; margin: 8px 0 4px; border: 1px solid #4a3466; } .camp-barra i { display: block; height: 100%; background: linear-gradient(90deg, #8c5a1c, var(--oro), #fff1b8); }
.camp-caps { display: grid; gap: 8px; }
.camp-cap { position: relative; display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--borde); background: #1c1130 center / cover; text-align: left; overflow: hidden; }
.camp-cap::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,6,22,.94) 35%, rgba(12,6,22,.55)); }
.camp-cap > * { position: relative; } .camp-cap > div { flex: 1; min-width: 0; display: grid; } .camp-cap b { font-family: 'Cinzel', serif; font-size: 15px; } .camp-cap small { color: var(--suave); font-size: 12px; }
.camp-cap .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #2a1f3a; border: 2px solid var(--borde); flex: none; }
.camp-cap .marca { font-size: 18px; }
.camp-cap.siguiente { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(233,185,73,.25); } .camp-cap.siguiente .num { background: var(--oro); color: #2a1606; border-color: #ffe9a8; }
.camp-cap.hecho .num { background: #1d5a3a; border-color: #6dff9a; } .camp-cap.bloq { opacity: .55; }
.camp-version p { font-style: italic; line-height: 1.55; color: #f6e3b4; }
.codice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 760px) { .codice { grid-template-columns: repeat(6, 1fr); } }
.cod-p { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: radial-gradient(#2e1f48, #160d24); border: 2px solid var(--borde); }
.cod-p img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; } .cod-p b { font-size: 12px; line-height: 1.2; } .cod-p small { font-size: 10px; color: var(--suave); line-height: 1.2; }
.cod-ficha { display: flex; gap: 12px; align-items: center; } .cod-ficha img { width: 110px; height: 140px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.cod-ficha small { color: var(--suave); font-size: 11px; } .cod-ficha h3 { margin: 2px 0; }
.cod-noche { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--oro); background: rgba(233,185,73,.08); border-radius: 0 12px 12px 0; }
.cod-noche small { color: var(--oro2); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; } .cod-noche p { font-style: italic; margin: 4px 0 0; line-height: 1.5; }
.cod-frase { text-align: center; font-family: 'Cinzel', serif; color: var(--oro2); font-size: 16px; }
.brief-img { position: relative; aspect-ratio: 16 / 8; border-radius: 14px; background: #000 center / cover; margin-bottom: 10px; border: 2px solid var(--borde); }
.brief-img span { position: absolute; left: 10px; top: 10px; font-weight: 900; font-size: 12px; padding: 4px 10px; border-radius: 20px; background: var(--oro); color: #2a1606; }
.brief-obj { padding: 10px 12px; border-radius: 12px; background: rgba(233,185,73,.1); border: 1px solid rgba(233,185,73,.45); line-height: 1.45; }

/* reproductor de cinemáticas */
.cine { position: fixed; inset: 0; z-index: 18; display: none; background: #000; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none; }
.cine.activa { display: block; }
.cine-capa { position: absolute; inset: 0; }
.cine-img { position: absolute; inset: -6%; background: #000 center / cover no-repeat; opacity: 0; transition: opacity 1s ease; animation-duration: 16s; animation-timing-function: ease-out; animation-fill-mode: both; }
.cine-img.ver { opacity: 1; }
@keyframes kb1 { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
@keyframes kb2 { from { transform: scale(1.12) translate(2%, 1%); } to { transform: scale(1.03) translate(0, 0); } }
@keyframes kb3 { from { transform: scale(1.04) translate(2%, -1%); } to { transform: scale(1.12) translate(-1%, 1%); } }
@media (max-aspect-ratio: 1/1) { .cine-img { inset: -4% -60%; } }
.cine-sombra { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 22%, transparent 48%, rgba(0,0,0,.88) 82%); pointer-events: none; }
.cine-titulo { position: absolute; left: 0; right: 0; top: 34%; text-align: center; display: grid; gap: 4px; animation: tituloCine 3.2s ease forwards; pointer-events: none; }
.cine-titulo small { color: var(--oro2); letter-spacing: 6px; font-weight: 800; font-size: 13px; text-transform: uppercase; }
.cine-titulo b { font-family: 'Cinzel', serif; font-size: clamp(28px, 7vw, 54px); text-shadow: 0 4px 20px #000; padding: 0 16px; }
@keyframes tituloCine { 0% { opacity: 0; transform: scale(1.08); } 18%, 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.cine-saltar { position: absolute; top: calc(12px + var(--arriba)); right: 12px; z-index: 3; padding: 8px 14px; border-radius: 20px; font-weight: 800; font-size: 13px; background: rgba(10,5,20,.7); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.cine-texto { position: absolute; left: 50%; bottom: calc(46px + var(--abajo)); transform: translateX(-50%); width: min(94vw, 780px); display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: rgba(12,6,22,.78); border: 2px solid rgba(233,185,73,.55); backdrop-filter: blur(6px); }
.cine-texto.entra { animation: subeBtn .45s ease; }
.cine-texto.narrador { background: rgba(0,0,0,.45); border-color: transparent; text-align: center; justify-content: center; }
.cine-texto.narrador .cine-frase { font-family: 'Cinzel', serif; font-size: clamp(16px, 4.2vw, 21px); color: #f6e3b4; }
.cine-retrato { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 3px solid var(--oro); background: radial-gradient(#3a2a58, #160d24); flex: none; }
.cine-nombre { display: block; color: var(--oro2); font-family: 'Cinzel', serif; font-size: 15px; margin-bottom: 2px; }
.cine-frase { margin: 0; font-size: clamp(15px, 4vw, 18px); line-height: 1.5; min-height: 3em; }
.cine-progreso { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); } .cine-progreso i { display: block; height: 100%; background: var(--oro); transition: width .4s; }
.cine-toca { position: absolute; left: 0; right: 0; bottom: calc(14px + var(--abajo)); text-align: center; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); pointer-events: none; margin: 0; }
@media (prefers-reduced-motion: reduce) { .cine-img { animation: none !important; } }

/* ---------- T446: continuar partida, inicio sin solapes, marcadores en horizontal y minimizados ---------- */
/* el chip del jugador y los botones de sonido van fijos arriba: el contenido empieza debajo de ellos */
#inicio .contenido { padding-top: calc(92px + var(--arriba)); }
.reanudar { display: grid; gap: 10px; } .reanudar[hidden] { display: none; }
.btn.verde { background: linear-gradient(180deg, #3fcf8a, #1b7a4f); border-color: #9af0c4; color: #06240f; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.btn.grande.btn-reanudar { flex-wrap: wrap; flex-direction: column; gap: 2px; line-height: 1.1; }
.btn-reanudar small { font-size: 12px; font-weight: 700; opacity: .85; }
.placa .pensando.ia { color: var(--turquesa); }
.placa .pensando.desc { color: #ff9aa6; }
/* marcadores minimizados: solo retrato, escudo y energía */
#juego.hud-mini .placa { gap: 6px; padding: 4px 8px 4px 4px; border-radius: 14px; max-width: none; }
#juego.hud-mini .placa img { width: 30px; height: 30px; }
#juego.hud-mini .placa .ej, #juego.hud-mini .placa .capturas { display: none; }
#juego.hud-mini .placa .nom { font-size: 12px; max-width: 110px; }
#juego.hud-mini .placa .energia i { width: 9px; height: 9px; }
/* celular en horizontal: los marcadores pasan a la esquina derecha para no tapar el tablero */
@media (orientation: landscape) and (max-height: 560px) {
  .placa { left: auto; right: calc(10px + env(safe-area-inset-right, 0px)); transform: none; max-width: 30vw; padding: 4px 10px 4px 4px; gap: 8px; }
  .placa.arriba { top: calc(8px + var(--arriba)); }
  .placa.abajo { bottom: calc(8px + var(--abajo)); }
  .placa img { width: 34px; height: 34px; }
  .placa .capturas { display: none; }
  .placa .nom { font-size: 13px; } .placa .ej { font-size: 10px; }
  .placa .energia i { width: 10px; height: 10px; }
  .placa.jaque { animation: tiemblaLado .4s; }
  #juego.hud-mini .placa .nom { display: none; }
  .botones-lado { top: calc(8px + var(--arriba)); gap: 6px; }
  .botones-lado .btn-icono { width: 40px; height: 40px; font-size: 17px; border-radius: 12px; }
  .historial { top: calc(8px + var(--arriba)); left: calc(58px + env(safe-area-inset-left, 0px)); max-height: 70vh; }
  .panel-pieza { bottom: calc(60px + var(--abajo)); right: calc(10px + env(safe-area-inset-right, 0px)); transform: none; width: min(300px, 40vw); padding: 10px; }
  .tutor { top: auto; bottom: calc(8px + var(--abajo)); left: calc(58px + env(safe-area-inset-left, 0px)); transform: none; width: min(420px, 48vw); padding: 8px 12px; }
  .tutor p { font-size: 13px; }
  #avisos { bottom: calc(14px + var(--abajo)); }
}
@keyframes tiemblaLado { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.placa .pensando.en { color: #7dffa8; font-weight: 700; }

/* cementerio */
.btn-icono { position: relative; }
.btn-icono .insignia { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #8c1830; border: 2px solid #ff8a9a; color: #fff; font: 900 11px/16px 'Nunito', sans-serif; text-align: center; }
.cementerio h3 { text-align: center; margin: 0 0 4px; }
.cem-ej { margin-top: 14px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 16px; padding: 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, transparent), rgba(0,0,0,.25)); }
.cem-ej h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: 'Cinzel', serif; }
.cem-ej h4 img { width: 34px; height: 46px; object-fit: cover; border-radius: 8px; border: 1px solid var(--c); }
.cem-ej h4 span { display: grid; flex: 1; line-height: 1.15; } .cem-ej h4 small { font-family: 'Nunito', sans-serif; font-size: 12px; color: var(--suave); font-weight: 700; }
.cem-ej h4 em { font-family: 'Nunito', sans-serif; font-weight: 900; font-style: normal; min-width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.4); border: 1px solid var(--c); color: var(--c); }
.tumbas { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.tumba { text-align: center; padding: 8px 6px 9px; border-radius: 46px 46px 10px 10px; background: linear-gradient(180deg, #3a3346, #1d1726); border: 1px solid #5a5068; box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 6px 14px rgba(0,0,0,.45); animation: tumbaSube .5s cubic-bezier(.2,.9,.3,1.2) both; }
.tumba:nth-child(2) { animation-delay: .05s; } .tumba:nth-child(3) { animation-delay: .1s; } .tumba:nth-child(4) { animation-delay: .15s; } .tumba:nth-child(5) { animation-delay: .2s; } .tumba:nth-child(n+6) { animation-delay: .25s; }
@keyframes tumbaSube { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.tumba-foto { height: 86px; display: grid; place-items: end center; }
.tumba-foto img { max-height: 86px; max-width: 100%; object-fit: contain; filter: grayscale(1) brightness(.75) contrast(1.1) drop-shadow(0 0 6px color-mix(in srgb, var(--c) 50%, transparent)); }
.tumba b { display: block; font-size: 12px; line-height: 1.15; margin-top: 4px; }
.tumba small { display: block; font-size: 10.5px; line-height: 1.25; color: var(--suave); margin-top: 3px; }
.tumba small em { font-style: normal; color: var(--oro2); font-weight: 800; }
.cem-vacio { margin: 0; text-align: center; color: var(--suave); font-size: 13px; padding: 8px; }

/* ---------- Tesoro Real (contenido premium) ---------- */
.btn-cuenta.prem { border-color: #c9922a; background: linear-gradient(180deg, rgba(90,60,20,.95), rgba(40,22,8,.95)); box-shadow: 0 0 14px rgba(233,185,73,.35); }
.btn-cuenta.prem span { color: var(--oro2); }
.prem-pack { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; border: 2px solid var(--oro); background: linear-gradient(135deg, rgba(90,60,20,.9), rgba(30,16,40,.95)); box-shadow: 0 0 30px rgba(233,185,73,.25); margin-bottom: 8px; }
.prem-pack .prem-img { aspect-ratio: 16 / 9; border-radius: 14px; background: #000 center / cover; }
.prem-pack h3 { margin: 0 0 4px; color: var(--oro2); }
@media (max-width: 620px) { .prem-pack { grid-template-columns: 1fr; } }
.prem-sec { margin: 22px 0 2px; font-family: 'Cinzel', serif; }
.prem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 8px; }
.prem-carta { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 2px solid var(--borde); background: var(--panel); }
.prem-carta.mio { border-color: #6a8a4a; } .prem-carta.puesto { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(233,185,73,.25); }
.prem-img { position: relative; aspect-ratio: 16 / 10; background: #000 center / cover; }
.prem-img i { position: absolute; top: 8px; font-style: normal; font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.65); }
.prem-img .bando { left: 8px; } .prem-img .tuyo { right: 8px; background: #3c6a2a; color: #eaffd8; }
.prem-txt { padding: 10px 12px 4px; display: grid; gap: 4px; } .prem-txt b { font-family: 'Cinzel', serif; font-size: 16px; } .prem-txt small { color: var(--suave); font-size: 12px; line-height: 1.35; }
.prem-acc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 12px; margin-top: auto; } .prem-acc .btn { padding: 10px 6px; font-size: 14px; }
.prem-nota { margin-top: 18px; }
.prem-compra { text-align: center; } .prem-compra img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.prem-precio { font-size: 30px; font-weight: 900; color: var(--oro2); margin: 6px 0; } .prem-precio small { font-size: 13px; color: var(--suave); font-weight: 700; }
.prem-premio { width: 100%; max-width: 320px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 0 30px rgba(233,185,73,.5); }
.modal:has(.prev), .modal:has(.adm) { width: min(900px, 100%); }
.prev h3 { margin: 0 0 8px; text-align: center; }
.prev-marco { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 62vh; border-radius: 14px; overflow: hidden; background: #000; }
.prev-marco canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.prev-rotulo { position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center; font-weight: 800; font-size: 13px; text-shadow: 0 2px 6px #000; pointer-events: none; }
@media (max-width: 620px) { .prev-marco { aspect-ratio: 3 / 4; } }
.tablero-op .prem-tag { position: absolute; top: 5px; right: 5px; z-index: 3; font-style: normal; font-size: 12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.72); border: 1px solid var(--oro); }
.tablero-op.prem span { right: 30px; }
.tablero-op.bloq { filter: saturate(.75); } .tablero-op.prem { border-color: #8a6a2a; }
.cos-tit { margin: 10px 0 4px; font-size: 13px; color: var(--suave); }
.cos-fila { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.cos-op { flex: 0 0 104px; display: grid; justify-items: center; gap: 2px; padding: 6px 4px 8px; border-radius: 14px; border: 2px solid var(--borde); background: #1c1130; }
.cos-op img { width: 64px; height: 72px; object-fit: contain; }
#cos-fx .cos-op img { width: 92px; height: 56px; object-fit: cover; border-radius: 8px; }
.cos-op b { font-size: 11px; line-height: 1.1; text-align: center; } .cos-op small { font-size: 10px; color: var(--suave); }
.cos-op.sel { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(233,185,73,.25); } .cos-op.bloq img { filter: grayscale(.5) brightness(.7); }
.adm h4 { margin: 14px 0 6px; } .adm input, .adm select { width: 100%; margin-bottom: 6px; padding: 10px; border-radius: 10px; border: 2px solid var(--borde); background: #120a1c; color: var(--texto); }
.adm-lista { max-height: 38vh; overflow-y: auto; display: grid; gap: 6px; }
.adm-ped { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #1c1130; border: 1px solid var(--borde); }
.adm-ped small { display: block; font-size: 11px; color: var(--suave); } .adm-ped > span { text-align: right; font-weight: 800; }
.adm-ped.pagado { border-color: #4a7a3a; } .adm-ped.rechazado { opacity: .6; }

/* ---------- panel de la pieza: minimizar, cerrar y mover ---------- */
.pp-cab { display: flex; align-items: center; gap: 6px; margin: -4px -4px 2px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.pp-cab h4 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-asa { color: var(--suave); font-size: 18px; line-height: 1; padding: 4px 2px; }
.pp-btn { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: #1c1130; border: 1px solid var(--borde); color: var(--texto); font-weight: 900; font-size: 14px; display: grid; place-items: center; }
.pp-btn:hover { border-color: var(--oro); }
.panel-pieza.movido { position: fixed; right: auto !important; bottom: auto !important; transform: none !important; }
.panel-pieza.mini { width: auto; max-width: min(300px, calc(100vw - 20px)); padding: 8px 10px; }
.panel-pieza.mini .tipo, .panel-pieza.mini .poder small { display: none; }
.panel-pieza.mini .poder { grid-template-columns: 30px 1fr; padding: 6px 10px; gap: 6px; }
.panel-pieza.mini .poder .ic { font-size: 22px; }
/* barra del modo poder: explica qué tocar y permite cancelar (T489) */
.barra-poder { position: absolute; left: 50%; transform: translateX(-50%); top: calc(66px + var(--arriba)); width: min(520px, calc(100vw - 20px)); display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(8, 34, 44, .95); border: 2px solid var(--turquesa); box-shadow: 0 8px 24px rgba(0,0,0,.55); z-index: 7; animation: subeBtn .25s ease; }
.barra-poder[hidden] { display: none; }
.barra-poder .bp-ic { font-size: 30px; text-align: center; }
.barra-poder .bp-txt { min-width: 0; display: grid; gap: 2px; }
.barra-poder .bp-txt b { color: var(--turquesa); font-size: 15px; }
.barra-poder .bp-txt span { color: #fff; font-weight: 800; font-size: 14px; line-height: 1.25; }
.barra-poder .bp-txt small { color: #b9eef3; font-size: 12px; }
.barra-poder .bp-cancelar { padding: 8px 12px; font-size: 13px; white-space: nowrap; min-height: 40px; }
.barra-poder.sacude { animation: tiembla .4s; }
.tutor:not([hidden]) ~ .barra-poder { top: auto; bottom: calc(70px + var(--abajo)); }
@media (max-height: 500px) and (orientation: landscape) { .barra-poder { top: calc(8px + var(--arriba)); width: min(460px, calc(100vw - 140px)); padding: 6px 10px; } .barra-poder .bp-txt small { display: none; } }
.barra-poder .bp-txt small.malo { color: #ffb3bd; font-weight: 800; }
/* T557 · dificultad de campaña, trofeos y recompensa de las cuatro campañas */
.camp-trofeos { display: flex; gap: 3px; margin-bottom: 4px; }
.camp-trofeos img { width: 30px; height: 30px; filter: grayscale(1) brightness(.45); opacity: .75; }
.camp-trofeos img.ok { filter: none; opacity: 1; filter: drop-shadow(0 0 5px rgba(255,210,120,.7)); }
.camp-dif { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 560px) { .camp-dif { grid-template-columns: repeat(2, 1fr); } }
.camp-dif-op { display: grid; justify-items: center; gap: 3px; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--borde); background: rgba(10,5,20,.55); text-align: center; min-height: 48px; }
.camp-dif-op img { width: 54px; height: 54px; filter: grayscale(1) brightness(.5); transition: filter .2s; }
.camp-dif-op.fin img, .camp-dif-op.sel img { filter: none; }
.camp-dif-op b { font-size: 14px; } .camp-dif-op small { font-size: 10.5px; color: #cdbfe0; line-height: 1.25; } .camp-dif-op em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--oro2); }
.camp-dif-op.sel { border-color: var(--oro); box-shadow: 0 0 0 2px rgba(255,210,120,.25), 0 6px 18px rgba(0,0,0,.4); background: rgba(60,35,90,.7); }
.camp-noche { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; border: 2px dashed rgba(255,80,100,.55); background: rgba(40,5,15,.6); }
.camp-noche img { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; filter: grayscale(.85) brightness(.6); flex: none; }
.camp-noche.ok { border-style: solid; border-color: #ff5a6e; } .camp-noche.ok img { filter: none; }
.camp-noche b { display: block; font-family: 'Cinzel', serif; font-size: 15px; color: #ff8a9a; } .camp-noche small { color: #e6d7f5; font-size: 12px; line-height: 1.35; }
@media (max-width: 420px) { .camp-noche img { width: 84px; } .camp-dif-op img { width: 44px; height: 44px; } }

/* ---------- chat de frases rápidas (en línea) ---------- */
#j-chat { background: linear-gradient(180deg, #3a2a66, #22163f); border-color: #8e74ff; }
.chat-panel { position: absolute; left: calc(64px + env(safe-area-inset-left, 0px)); top: calc(70px + var(--arriba)); width: min(340px, calc(100vw - 80px)); max-height: calc(100% - 150px - var(--arriba)); display: none; flex-direction: column; background: rgba(16, 10, 30, .94); border: 2px solid #8e74ff; border-radius: 16px; z-index: 7; box-shadow: 0 10px 40px #000a; overflow: hidden; }
.chat-panel.ver { display: flex; animation: chatEntra .22s ease-out; }
@keyframes chatEntra { from { opacity: 0; transform: translateX(-12px) scale(.97); } }
.chat-cab { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #ffffff1a; }
.chat-cab b { flex: 1; font-size: 15px; }
.chat-sil, .chat-x { background: #ffffff12; border: 1px solid #ffffff26; color: inherit; border-radius: 10px; padding: 5px 9px; font: 700 12px 'Nunito', sans-serif; cursor: pointer; }
.chat-x { width: 32px; height: 32px; padding: 0; font-size: 15px; }
.chat-log { padding: 6px 10px; overflow-y: auto; max-height: 96px; min-height: 40px; font-size: 13px; border-bottom: 1px solid #ffffff1a; }
.chat-log p { margin: 3px 0; } .chat-log p.mio b { color: var(--oro2, #ffd97a); } .chat-log p b { color: #b9a6ff; }
.chat-frases { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; overflow-y: auto; }
.chat-frases button { display: flex; align-items: center; gap: 6px; text-align: left; min-height: 48px; padding: 6px 8px; border-radius: 12px; border: 1px solid #ffffff2a; background: linear-gradient(180deg, #2c2150, #1b1333); color: #fff; font: 700 12.5px/1.2 'Nunito', sans-serif; cursor: pointer; }
.chat-frases button:active { transform: scale(.96); background: #4a3790; }
.chat-frases i { font-style: normal; font-size: 20px; }
.chat-globo { position: absolute; left: 50%; transform: translateX(-50%); z-index: 6; max-width: min(80vw, 420px); padding: 8px 14px; border-radius: 16px; background: #fff; color: #1a1030; font: 800 14px/1.25 'Nunito', sans-serif; box-shadow: 0 6px 24px #0008; pointer-events: none; animation: globo .3s cubic-bezier(.2, 1.6, .4, 1); transition: opacity .4s, transform .4s; text-align: center; }
.chat-globo i { font-style: normal; font-size: 18px; }
.chat-globo.abajo { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.chat-globo.arriba { top: calc(78px + var(--arriba)); }
.chat-globo.sale { opacity: 0; transform: translateX(-50%) scale(.9); }
@keyframes globo { from { opacity: 0; transform: translateX(-50%) scale(.6); } }
@media (orientation: landscape) and (max-height: 520px) {
  .chat-panel { top: calc(8px + var(--arriba)); left: calc(58px + env(safe-area-inset-left, 0px)); max-height: calc(100% - 16px); }
  .chat-log { max-height: 60px; }
  .chat-globo { left: 40%; } .chat-globo.abajo { bottom: 14px; } .chat-globo.arriba { top: 10px; }
}

/* ---------- celebración al capturar (vídeo transparente sobre el tablero) ---------- */
.celebracion { position: absolute; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); height: min(52vh, 460px); aspect-ratio: 9 / 16; z-index: 5; cursor: pointer; animation: celEntra .35s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .3s, transform .3s; filter: drop-shadow(0 10px 22px #000c); }
.celebracion canvas { width: 100%; height: 100%; display: block; }
.celebracion b { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); white-space: nowrap; padding: 4px 12px; border-radius: 12px; background: #000a; color: var(--oro2, #ffd97a); font: 900 13px 'Nunito', sans-serif; }
.celebracion.sale { opacity: 0; transform: translateX(-50%) scale(.85); }
@keyframes celEntra { from { opacity: 0; transform: translateX(-50%) translateY(40px) scale(.7); } }
@media (orientation: landscape) and (max-height: 520px) { .celebracion { height: 78vh; bottom: 8px; left: 30%; } }
.cel-previa { width: min(260px, 70vw); aspect-ratio: 9 / 16; margin: 6px auto; border-radius: 16px; background: radial-gradient(circle at 50% 60%, #4a2a7a, #120a20); overflow: hidden; }
.cel-previa canvas { width: 100%; height: 100%; display: block; }
.tienda-cel { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tienda-cel .art > img { aspect-ratio: 9 / 16; width: 100%; height: auto; object-fit: cover; border-radius: 12px; background: radial-gradient(circle at 50% 60%, #4a2a7a, #120a20); }
.prem-carta .bando.reino { background: #000b; }

/* ---------- T575 · botón «¡Celebrar!» (aparece unos segundos al derrotar una ficha) ---------- */
.b-celebrar { position: absolute; left: calc(10px + env(safe-area-inset-left, 0px)); bottom: calc(84px + var(--abajo)); z-index: 7; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 18px; border: 2px solid var(--oro); background: linear-gradient(180deg, #4a3214, #24140a); color: #fff; font: inherit; cursor: pointer; overflow: hidden; opacity: 0; transform: translateY(16px) scale(.9); transition: opacity .25s, transform .25s; box-shadow: 0 8px 22px rgba(0,0,0,.55); }
.b-celebrar.ver { opacity: 1; transform: none; animation: cel-late 1.1s ease-in-out .3s infinite; }
.b-celebrar img { width: 44px; height: 58px; object-fit: contain; object-position: top; background: radial-gradient(#5a3a7a, #1a0d2a); border-radius: 12px; }
.b-celebrar span { display: grid; text-align: left; line-height: 1.15; }
.b-celebrar b { font-family: 'Cinzel', serif; font-size: 17px; color: var(--oro2); }
.b-celebrar small { font-size: 11px; color: var(--suave); max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-celebrar .cel-reloj { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--oro); transform-origin: left; }
.b-celebrar.ver .cel-reloj { animation: cel-reloj 7s linear forwards; }
@keyframes cel-late { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes cel-reloj { to { transform: scaleX(0); } }
@media (max-width: 640px) { .b-celebrar { bottom: calc(70px + var(--abajo)); } .b-celebrar img { width: 38px; height: 50px; } .b-celebrar b { font-size: 15px; } }

/* ---------- T575 · títulos animados ---------- */
.titulo { display: inline-block; font-family: 'Cinzel', serif; font-weight: 800; font-size: 13px; letter-spacing: .5px; line-height: 1.3; white-space: nowrap; color: var(--oro2); }
.titulo i { font-style: normal; display: inline-block; }
.titulo.mini { font-size: 11px; }
.titulo.grande { font-size: 18px; }
/* el degradado va en cada letra (con background-clip en el contenedor no se pinta a través de letras animadas) */
.titulo[class*="tit-"] i { -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 400% 100%; animation: tit-brillo 2.6s linear infinite; animation-delay: calc(var(--i) * -.09s); }
.tit-estratega i { background-image: linear-gradient(100deg, #c9a24a 40%, #fff6d0 50%, #c9a24a 60%); }
.tit-invicto i { background-image: linear-gradient(100deg, #e9b949 35%, #fff 47%, #ffd97a 53%, #e9b949 65%); animation: tit-brillo 1.8s linear infinite, tit-ola 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.07s), calc(var(--i) * .07s); }
.tit-rey i { background-image: linear-gradient(90deg, #ff6a7a, #ffd97a, #7dffb0, #6ad1ff, #c58bff, #ff6a7a); background-size: 600% 100%; animation-duration: 4s; }
.tit-luz i { background-image: linear-gradient(100deg, #ffe9a0 40%, #ffffff 50%, #ffe9a0 60%); animation: tit-brillo 2.2s linear infinite, tit-pulso 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.08s), 0s; }
.tit-hielo i { background-image: linear-gradient(100deg, #7fc8ff 35%, #ffffff 48%, #bfe9ff 55%, #7fc8ff 65%); animation: tit-brillo 3s linear infinite, tit-tiembla 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.09s), calc(var(--i) * .11s); }
.tit-sombra i { background-image: linear-gradient(90deg, #8b5cf6, #d6b8ff, #6a3bd6, #8b5cf6); animation: tit-brillo 3.5s linear infinite, tit-glitch 2.8s steps(1) infinite; animation-delay: calc(var(--i) * -.1s), calc(var(--i) * .19s); }
.tit-implacable i, .tit-dragon i { background-image: linear-gradient(0deg, #ff3b1e, #ff8a2a 45%, #ffe06a); background-size: 100% 220%; animation: tit-fuego .8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); }
.tit-dragon i { background-image: linear-gradient(0deg, #b3170c, #ff6a2a 40%, #ffd23a 70%, #fff3b0); animation: tit-fuego .7s ease-in-out infinite alternate, tit-ola 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.11s), calc(var(--i) * .06s); }
.tit-estrellas i { background-image: linear-gradient(100deg, #7a8cff 35%, #eef2ff 48%, #b49bff 55%, #7a8cff 65%); animation: tit-brillo 3s linear infinite, tit-titila 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.09s), calc(var(--i) * .13s); }
.tit-leyenda i { background-image: linear-gradient(90deg, #ffd97a, #ff7ab8, #8be9ff, #b4ff8b, #ffd97a); background-size: 600% 100%; animation: tit-brillo 2.4s linear infinite, tit-ola 1.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.12s), calc(var(--i) * .08s); }
.tit-carnicero i { background-image: linear-gradient(180deg, #ffc0c0, #ff2e3e 55%, #a00014); background-size: 100% 100%; animation: tit-gota 2.4s ease-in infinite; animation-delay: calc(var(--i) * .17s); }
.titulo.tit-bufon i { background: none; color: #ffd97a; animation: tit-rebote 1s cubic-bezier(.3,1.6,.5,1) infinite; animation-delay: calc(var(--i) * .06s); }
.titulo.tit-bufon i:nth-child(odd) { color: #7dffb0; }
@keyframes tit-brillo { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes tit-fuego { from { background-position: 0 0; } to { background-position: 0 100%; } }
@keyframes tit-ola { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes tit-rebote { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-3px) rotate(-6deg); } }
@keyframes tit-tiembla { 0%, 92%, 100% { transform: none; } 94% { transform: translateX(-1px); } 97% { transform: translateX(1px); } }
@keyframes tit-glitch { 0%, 90%, 100% { transform: none; opacity: 1; } 92% { transform: translate(1px, -1px) skewX(-12deg); opacity: .6; } 95% { transform: translate(-1px, 1px); opacity: .9; } }
@keyframes tit-titila { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes tit-gota { 0%, 85%, 100% { transform: none; } 90% { transform: translateY(1.5px) scaleY(1.1); } }
@keyframes tit-pulso { 0%, 100% { filter: none; } 50% { filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { .titulo, .titulo i { animation: none !important; } }
.chip-perfil .dat .titulo { display: block; overflow: hidden; text-overflow: ellipsis; }
.vs-carta .titulo { margin: 2px 0; }
.rk-fila .r-dat .titulo { display: block; }
.perfil-cab .titulo { margin: -4px 0 4px; }
/* tienda: títulos y celebraciones de las skins */
.tienda-tit { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.tienda-tit .art { min-height: 86px; display: grid; place-items: center; gap: 4px; }
.tienda-tit .art .titulo { font-size: 14px; white-space: normal; text-align: center; }
.art.bloq-col { opacity: .75; }
.art span.titulo { font-weight: 800; margin: 0; }
.titulo .tw { display: inline-block; white-space: nowrap; color: inherit; font-size: inherit; font-weight: inherit; margin: 0; }

/* ---------- T577 · Tienda con pestañas (monedas y Tesoro Real juntos) ---------- */
.tienda-pest { position: sticky; top: 0; z-index: 6; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 8px -16px 8px; padding: 8px 16px; background: linear-gradient(180deg, #120a1f 75%, rgba(18,10,31,0)); scroll-snap-type: x proximity; }
.tienda-pest::-webkit-scrollbar { display: none; }
.tienda-pest button { flex: 0 0 auto; scroll-snap-align: center; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 7px 12px; border-radius: 14px; border: 2px solid var(--borde); background: var(--panel); color: #fff; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.tienda-pest button i { font-style: normal; font-size: 18px; grid-row: 1 / 3; }
.tienda-pest button em { font-style: normal; font-size: 10px; color: var(--suave); font-weight: 700; text-align: left; }
.tienda-pest button.sel { border-color: var(--oro); background: linear-gradient(180deg, #3a2a18, #22140a); color: var(--oro2); }
.tienda-pest button.sel em { color: var(--oro); }
.tienda-filtros { display: grid; gap: 6px; margin-bottom: 10px; }
.tienda-filtros .chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tienda-filtros .chips::-webkit-scrollbar { display: none; }
.tienda-filtros .chips button { flex: 0 0 auto; padding: 5px 12px; border-radius: 20px; border: 1.5px solid var(--borde); background: rgba(10,5,20,.55); color: var(--suave); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.tienda-filtros .chips button.sel { border-color: var(--turquesa); color: #fff; background: rgba(63,240,255,.12); }
.tienda-filtros .chips.sub button.sel { border-color: var(--oro); background: rgba(233,185,73,.14); }
.tienda-sec { font-family: 'Cinzel', serif; margin: 16px 0 6px; }
.tienda-vacia { padding: 30px 10px; }
.tienda-resumen { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.tienda-resumen button { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--borde); background: rgba(10,5,20,.55); color: #fff; font: inherit; cursor: pointer; }
.tienda-resumen i { font-style: normal; font-size: 22px; } .tienda-resumen b { font-size: 18px; color: var(--oro2); } .tienda-resumen b small { font-size: 11px; color: var(--suave); } .tienda-resumen span { font-size: 11px; color: var(--suave); }
#tienda .tienda-tit, #tienda .tienda-cel, #tienda .tienda-grid { margin-bottom: 10px; }
@media (min-width: 900px) { .tienda-pest { flex-wrap: wrap; overflow: visible; } }

/* ---------- Fatalitys (T591) ---------- */
#juego.fat-on .placa, #juego.fat-on .botones-lado, #juego.fat-on .panel-pieza, #juego.fat-on .barra-poder, #juego.fat-on .historial, #juego.fat-on .b-celebrar, #juego.fat-on .chat-panel { opacity: 0; pointer-events: none; transition: opacity .4s; }
.fat-capa { position: absolute; inset: 0; z-index: 9; pointer-events: none; container-type: size; display: grid; place-items: center; opacity: 0; transition: opacity .45s;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(60,0,4,.55) 75%, rgba(10,0,0,.88) 100%); }
.fat-capa.ver { opacity: 1; }
.fat-capa.sale { opacity: 0; }
.fat-cine { position: absolute; left: 0; right: 0; height: 9%; background: #000; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.fat-cine.arriba { top: 0; transform: translateY(-100%); } .fat-cine.abajo { bottom: 0; transform: translateY(100%); }
.fat-capa.ver .fat-cine { transform: none; }
.fat-centro { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 12px; max-width: 100%; }
.fat-acabalo, .fat-titulo { font-family: 'Cinzel', Georgia, serif; font-weight: 900; line-height: 1; white-space: nowrap; letter-spacing: .04em; }
.fat-acabalo i, .fat-titulo i { font-style: normal; display: inline-block; }
.fat-acabalo { font-size: 13vw; font-size: clamp(30px, 14cqw, 120px); color: #ffe9d0;
  text-shadow: 0 0 12px #ff2a1a, 0 0 34px #b00010, 0 4px 0 #3a0006, 0 8px 22px #000; animation: fat-tiembla .09s linear infinite; }
.fat-acabalo i { animation: fat-entra .45s cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(var(--i) * 45ms); }
.fat-sub { margin: 0; font: 800 15px 'Nunito', sans-serif; color: #ffd0c0; text-shadow: 0 2px 8px #000; }
.fat-boton { pointer-events: auto; position: relative; overflow: hidden; margin-top: 6px; display: grid; gap: 2px; padding: 14px 34px 16px; border-radius: 16px; border: 2px solid #ff4a3a; cursor: pointer;
  background: linear-gradient(180deg, #7a0a10, #2a0204); color: #fff; font: inherit; box-shadow: 0 0 0 4px rgba(255,40,30,.25), 0 0 34px rgba(255,30,20,.6), 0 10px 24px #000; animation: fat-late .7s ease-in-out infinite; }
.fat-boton b { font-family: 'Cinzel', serif; font-size: clamp(22px, 7cqw, 34px); letter-spacing: .08em; color: #ffe0d0; text-shadow: 0 0 10px #ff2a1a; }
.fat-boton small { font: 800 13px 'Nunito', sans-serif; color: #ffb0a0; }
.fat-reloj { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: linear-gradient(90deg, #ff2a1a, #ffb040); transform-origin: left; animation: fat-reloj linear forwards; }
.fat-piedad { font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(26px, 9cqw, 64px); color: #e8e0ff; text-shadow: 0 0 18px #6a4aff, 0 4px 14px #000; animation: fat-entra .6s ease both; }
.fat-titulo { font-size: 15vw; font-size: clamp(40px, 17cqw, 170px); letter-spacing: .02em;
  background: linear-gradient(180deg, #fff1e0 0%, #ff8a6a 22%, #e0101a 48%, #7a0006 70%, #ff3a2a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 2px #2a0002) drop-shadow(0 0 16px rgba(255,20,10,.85)) drop-shadow(0 8px 10px #000); }
.fat-titulo i { animation: fat-cae .42s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--i) * 55ms); }
.fat-nombre { margin: 4px 0 0; font: 900 clamp(14px, 4.4cqw, 22px) 'Nunito', sans-serif; color: #ffd9c8; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 10px #000; animation: fat-entra .5s ease .6s both; }
.fat-impecable { margin: 0; font: 900 clamp(13px, 3.6cqw, 18px) 'Cinzel', serif; color: var(--oro2); letter-spacing: .12em; text-shadow: 0 0 12px rgba(255,200,80,.7), 0 2px 8px #000; animation: fat-entra .5s ease .9s both; }
@keyframes fat-tiembla { 0% { transform: translate(1px, -1px); } 25% { transform: translate(-2px, 1px); } 50% { transform: translate(1px, 2px); } 75% { transform: translate(-1px, -2px); } 100% { transform: translate(2px, 0); } }
@keyframes fat-entra { from { opacity: 0; transform: scale(2.2); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fat-cae { 0% { opacity: 0; transform: translateY(-120%) scale(1.6); } 60% { opacity: 1; transform: translateY(6%) scale(.96); } 100% { transform: none; } }
@keyframes fat-late { 50% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(255,40,30,.3), 0 0 50px rgba(255,30,20,.85), 0 10px 24px #000; } }
@keyframes fat-reloj { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .fat-acabalo { animation: none; } .fat-acabalo i, .fat-titulo i { animation-duration: .01s; } .fat-boton { animation: none; } }
/* tienda: cartas de fatality */
.prem-carta.fat .prem-img { background-color: #1a0204; }
