@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

/* Arena diaria */
body{
  background-color:#080e16;
  background-image:linear-gradient(180deg,rgba(8,14,22,.86) 0%,rgba(8,14,22,.90) 55%,rgba(8,14,22,.96) 100%),url('assets/fondo-wild-rift.jpg');
  background-position:center,center top;
  background-size:cover,cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
  min-height:100vh;
}
.personaje{max-width:1180px;margin:auto;padding:30px 28px 70px}
.volver{color:#8796a5;text-decoration:none;font-size:12px}.volver:hover{color:var(--dorado)}
.presentacion{text-align:center;padding:38px 0 28px}.presentacion .etiqueta{letter-spacing:3px;font-size:10px}
.presentacion h1{font:700 clamp(28px,4vw,43px)/1.3 Cinzel,serif;margin:14px 0 12px}.presentacion h1 span{color:var(--dorado)}
.presentacion p{font-size:13px;line-height:1.7;color:#95a4b2}
.panel-dia{display:flex;justify-content:center;gap:0;padding:20px 0;border-block:1px solid #ffffff12}
.panel-dia>div{display:grid;gap:8px;text-align:center;padding:0 35px;border-right:1px solid #ffffff12}.panel-dia>div:last-child{border:0}
.panel-dia span{font-size:10px;color:#8495a4;letter-spacing:.3px}.panel-dia strong{color:#dfd4b7;font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}
.racha{max-width:610px;margin:24px auto 22px;display:flex;align-items:center;justify-content:center;gap:18px;padding:8px 20px}
.nexo{width:61px;height:72px;flex-shrink:0;filter:grayscale(.85);opacity:.5}.nexo-base{fill:#273a4b;stroke:#c8aa6e;stroke-width:2}.nexo-aro{fill:#8a7147;stroke:#d6bd85;stroke-width:2}.nexo-cristal{fill:#147d9e;stroke:#90f4ef;stroke-width:2}.nexo-luz{fill:#40dacf;opacity:.7}.nexo-brillo{fill:none;stroke:#b8fffa;stroke-width:2}.racha-activa .nexo{filter:drop-shadow(0 0 13px #0ac8b950);opacity:1}
.racha[data-nexo]:not([data-nexo="inactivo"]) .nexo{filter:drop-shadow(0 0 10px var(--nexo-brillo));opacity:1}
.racha[data-nexo]:not([data-nexo="inactivo"]) .nexo-cristal{fill:var(--nexo-color);stroke:var(--nexo-claro)}
.racha[data-nexo]:not([data-nexo="inactivo"]) .nexo-luz{fill:var(--nexo-claro)}
.racha[data-nexo]:not([data-nexo="inactivo"]) .nexo-aro{fill:var(--nexo-marco);stroke:var(--nexo-claro)}
.racha[data-nexo="hierro"]{--nexo-color:#596875;--nexo-claro:#a9b4b9;--nexo-marco:#59616a;--nexo-brillo:#8596a455}
.racha[data-nexo="bronce"]{--nexo-color:#9d5832;--nexo-claro:#e9ad76;--nexo-marco:#80502d;--nexo-brillo:#cf7c4055}
.racha[data-nexo="plata"]{--nexo-color:#829aaa;--nexo-claro:#e3f0f4;--nexo-marco:#7c919c;--nexo-brillo:#c3e3ef66}
.racha[data-nexo="oro"]{--nexo-color:#c18b20;--nexo-claro:#ffe69a;--nexo-marco:#ad812e;--nexo-brillo:#f6c55777}
.racha[data-nexo="platino"]{--nexo-color:#218eaa;--nexo-claro:#abf4ff;--nexo-marco:#4b9c9e;--nexo-brillo:#50d6e977}
.racha[data-nexo="esmeralda"]{--nexo-color:#15956b;--nexo-claro:#a6ffd7;--nexo-marco:#408d6f;--nexo-brillo:#48f4a077}
.racha[data-nexo="diamante"]{--nexo-color:#608ddb;--nexo-claro:#d9edff;--nexo-marco:#9aaad5;--nexo-brillo:#8cbeff88}
.racha[data-nexo="master"]{--nexo-color:#8247bd;--nexo-claro:#ecc6ff;--nexo-marco:#77569a;--nexo-brillo:#ce8cff88}
.racha[data-nexo="gran-master"]{--nexo-color:#ba303b;--nexo-claro:#ffb8ab;--nexo-marco:#9d4b48;--nexo-brillo:#ff626288}
.racha[data-nexo="challenger"]{--nexo-color:#1686d0;--nexo-claro:#b9f4ff;--nexo-marco:#d7ac47;--nexo-brillo:#70cfff99}
.racha[data-nexo="challenger"] .nexo-aro{stroke:#ffe29a}
.racha .etiqueta{font-size:9px;letter-spacing:2px}.racha-cifra{margin:3px 0}.racha-cifra strong{font:700 30px Cinzel,serif;color:var(--dorado)}.racha-cifra span{font-size:12px;color:#bac8d0}#racha-estado{font-size:11px;line-height:1.6;color:#7f93a2}
/* Buscar y elegir */
.busqueda{max-width:610px;margin:20px auto 24px}#formulario{position:relative;z-index:5}.busqueda label{display:block;font-size:12px;font-weight:500;color:#c4d1da;margin-bottom:10px}
.campo{display:flex;align-items:stretch;background:#101e2b;border:1px solid #38505e;border-radius:5px;transition:border-color .2s,box-shadow .2s}.campo:focus-within{border-color:#6caaa9;box-shadow:0 0 0 3px #0ac8b90a}
.campo input{font:400 14px Inter,sans-serif;color:#e8e7df;min-width:0;width:100%;border:0;background:transparent;padding:17px;outline:none}.campo input::placeholder{color:#6e8596;font-size:12px}
button{font:600 11px Inter,sans-serif;cursor:pointer}.campo button{border:1px solid #b4965e;background:#c8aa6e;color:#101820;border-radius:3px;margin:5px;padding:0 20px;white-space:nowrap;letter-spacing:.6px;transition:background .2s}.campo button:hover:not(:disabled){background:#e3c68c}button:disabled{opacity:.45;cursor:default}button:focus-visible,summary:focus-visible{outline:2px solid var(--azul);outline-offset:3px}
.sugerencias{position:absolute;top:calc(100% + 7px);left:0;right:0;max-height:290px;overflow:auto;overscroll-behavior:contain;padding:5px;border:1px solid #3b5061;border-radius:5px;background:#101c28;box-shadow:0 20px 50px #000b;scrollbar-width:thin;scrollbar-color:#456071 #101c2b;animation:abrir-buscador .18s ease-out}.sugerencias[hidden]{display:none}
.sugerencias button{display:flex;align-items:center;width:100%;gap:14px;padding:9px;border:0;border-bottom:1px solid #ffffff08;border-radius:3px;color:#e7e7df;background:transparent;text-align:left;transition:background .15s}.sugerencias button:last-child{border-bottom:0}.sugerencias button:hover,.sugerencias button[aria-selected="true"]{background:#203849}.sugerencias img{width:48px;height:48px;flex-shrink:0;aspect-ratio:1;object-fit:contain;border:1px solid #72818c;border-radius:3px;display:block}.sugerencias button>span:not(.elegir-campeon){font-size:13px;font-weight:500}.elegir-campeon{margin-left:auto;font-size:10px;color:var(--dorado);opacity:.7}.sin-coincidencias{padding:20px 12px;color:var(--gris);font-size:12px}#mensaje{min-height:22px;margin-top:11px;font-size:11px;color:#8194a4;line-height:1.8}
/* Historial: retratos cuadrados reales y pistas legibles. */
.tabla-scroll{overflow:auto;margin:20px 0 26px;padding-bottom:6px;scrollbar-width:thin;scrollbar-color:#435b6a #0c1520}
table{width:100%;min-width:940px;table-layout:fixed;border-spacing:7px 9px}th{padding:10px 3px 13px;font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:500;color:#8da0ad;border-bottom:1px solid #526571}th:first-child{width:112px}
#pistas td{position:relative;vertical-align:middle;height:116px;text-align:center;padding:14px 10px;border:1px solid #ffffff22;border-radius:3px;color:#fff;line-height:1.55;overflow-wrap:normal;word-break:normal;box-shadow:inset 0 1px 0 #ffffff0a}
.valor-pista{font-size:13px;font-weight:600;text-wrap:balance}.correcto{background:linear-gradient(145deg,#16a564,#086b3c);color:#fff}.parcial{background:linear-gradient(145deg,#cb921c,#925b08);color:#fff}.incorrecto{background:linear-gradient(145deg,#d83d4c,#961f36);color:#fff}
#pistas .correcto{border-color:#49986d}#pistas .parcial{border-color:#bd9143}#pistas .incorrecto{border-color:#ad545d}
#pistas .estado-pista{display:block;font-size:13px;line-height:1;margin-top:10px;font-weight:400;opacity:.65}#pistas .flecha{display:block;font-size:27px;line-height:1.1;margin-top:7px}#pistas .flecha+.estado-pista{font-size:9px;letter-spacing:.5px;margin-top:5px}
#pistas .retrato{background:#111f2c;border-color:#3c505e;padding:10px 6px 7px}#pistas .retrato img{display:block;width:76px;height:76px;aspect-ratio:1;object-fit:contain;margin:0 auto 7px;border:1px solid #9b895e;border-radius:2px;box-shadow:0 3px 10px #0005}.nombre-campeon{display:block;color:#e5dcc7;font-size:11px;font-weight:500;line-height:1.3}
#vacio{padding:30px;text-align:center;font-size:12px;color:#708695}
/* Placas angulares con borde de estado y centro oscuro. */
.personaje table{border-spacing:9px 12px}
.personaje th{font-family:'Rajdhani','Arial Narrow',sans-serif;font-size:13px;font-weight:600;letter-spacing:1.5px;border-bottom-color:#3c505c}
#pistas td{--borde-pista:#516a7b;--fondo-pista:#172632;--tinte-pista:#253d4d;border:0;border-radius:0;padding:16px 12px;height:122px;clip-path:polygon(0 0,calc(100% - 13px) 0,100% 13px,100% 100%,13px 100%,0 calc(100% - 13px));background:linear-gradient(135deg,var(--tinte-pista),var(--fondo-pista) 65%);box-shadow:inset 0 0 0 1px var(--borde-pista),inset 0 4px 0 var(--borde-pista);font-family:'Rajdhani','Arial Narrow',sans-serif}
#pistas td::before{content:'';position:absolute;bottom:9px;left:50%;width:22px;height:2px;transform:translateX(-50%);background:var(--borde-pista);opacity:.6}
#pistas .correcto{--borde-pista:#66f4a5;--fondo-pista:#086b3c;--tinte-pista:#16a564}
#pistas .incorrecto{--borde-pista:#ff8990;--fondo-pista:#961f36;--tinte-pista:#d83d4c}
#pistas .parcial{--borde-pista:#ffe393;--fondo-pista:#925b08;--tinte-pista:#cb921c}
#pistas .valor-pista{font-family:'Rajdhani','Arial Narrow',sans-serif;font-size:17px;font-weight:600;line-height:1.2;letter-spacing:.15px;color:#f3eee4}
#pistas .estado-pista{font-family:'Rajdhani','Arial Narrow',sans-serif;font-size:15px;color:var(--borde-pista);opacity:1;margin-top:9px}
#pistas .flecha{color:var(--borde-pista);font-family:Arial,sans-serif;font-size:25px}
#pistas .flecha+.estado-pista{font-size:11px;font-weight:600;letter-spacing:1px;text-transform:uppercase}
#pistas .retrato{--borde-pista:#ad9566;background:linear-gradient(145deg,#243341,#14202b);padding:10px 6px 12px}
#pistas .retrato img{width:72px;height:72px;border-radius:0;border-color:#776e53;margin-bottom:6px}
#pistas .nombre-campeon{font-family:'Rajdhani','Arial Narrow',sans-serif;font-size:14px;font-weight:700;letter-spacing:.3px;color:#e5d3ab}
#pistas .retrato::before{display:none}
.personaje .sugerencias button>span:not(.elegir-campeon){font-family:'Rajdhani','Arial Narrow',sans-serif;font-size:17px;font-weight:600}
/* Cada columna espera a la anterior antes de revelar su pista. */
#pistas .revelando .retrato{animation:apparaitre .4s ease-out}#pistas .revelando td:not(.retrato){animation:girar-pista var(--duracion) ease-in-out var(--retraso) both;transform-origin:center}#pistas .revelando td:not(.retrato)::after{content:'✦';position:absolute;inset:-1px;display:grid;place-items:center;border:1px solid #38505e;border-radius:0;background:linear-gradient(135deg,#203341,#111d29);color:#7894a5;font-size:22px;box-shadow:inset 0 4px 0 #435f70;animation:descubrir-pista var(--duracion) steps(1,end) var(--retraso) both}
.resultado{max-width:610px;margin:24px auto;padding:25px;border-block:1px solid #7c764a;background:linear-gradient(90deg,transparent,#172c29,transparent);text-align:center}.resultado:not([hidden]){animation:apparaitre .5s ease-out}.resultado img{width:88px;height:88px;object-fit:contain;border:1px solid var(--dorado);border-radius:3px;margin-bottom:12px}.resultado h2{font:600 21px Cinzel,serif;color:#e0c58e;margin-bottom:12px}.resultado p{font-size:12px;color:#a8bcb8;line-height:1.8}
.leyenda{max-width:610px;margin:20px auto;padding:20px 24px;border:1px solid #3f4e51;border-radius:3px;background:#111c24}.leyenda summary{cursor:pointer;text-align:center;font:600 14px Cinzel,serif;color:#d5c7a5}.claves{display:flex;justify-content:space-between;gap:12px;margin:22px 0 18px}.claves span{display:grid;gap:8px;text-align:center;font-size:10px;color:#aebbc3}.claves i{display:grid;place-items:center;width:28px;height:28px;margin:auto;border:1px solid #ffffff25;font-size:20px;font-style:normal;border-radius:2px}.leyenda p,.nota{font-size:10px;line-height:1.8;color:#7f929f}.nota{text-align:center;margin-top:22px}
@keyframes girar-pista{0%{transform:perspective(650px) rotateX(0)}50%{transform:perspective(650px) rotateX(90deg)}100%{transform:perspective(650px) rotateX(0)}}@keyframes descubrir-pista{0%{opacity:1}50%,100%{opacity:0}}@keyframes apparaitre{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes abrir-buscador{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.personaje{padding:22px 12px 45px}.header{padding:18px}.header nav a{font-size:11px}.presentacion{padding:32px 0 24px}.presentacion p{font-size:12px}.panel-dia>div{padding:0 12px}.panel-dia span{font-size:9px}.panel-dia strong{font-size:11px}.racha{padding:6px 0;gap:12px}.racha .etiqueta{font-size:8px}#racha-estado{font-size:10px}.campo input{padding:16px 12px}.campo input::placeholder{font-size:11px}.campo button{padding:0 10px;font-size:10px}.sugerencias{max-height:255px}.leyenda{padding:18px 12px}.claves{gap:6px}.claves span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.personaje *,.personaje *::after{animation:none!important;transition:none!important}}
/* Vista compacta: controles y pistas más próximos, manteniendo el texto legible. */
.personaje{max-width:1040px;padding:20px 22px 40px}
.presentacion{padding:20px 0 17px}.presentacion h1{font-size:clamp(25px,3.3vw,34px);margin:8px 0}.presentacion .etiqueta{font-size:9px;letter-spacing:2px}.presentacion p{font-size:12px}
.panel-dia{padding:13px 0}.panel-dia>div{gap:5px;padding:0 28px}.panel-dia strong{font-size:12px}
.racha{margin:12px auto 8px;padding:3px 10px;gap:12px}.nexo{width:44px;height:52px}.racha-cifra{margin:0}.racha-cifra strong{font-size:25px}.racha .etiqueta{font-size:8px}.racha-cifra span{font-size:11px}#racha-estado{font-size:10px}
.busqueda{max-width:530px;margin:12px auto 10px}.busqueda label{margin-bottom:7px;font-size:11px}.campo input{padding:12px 13px;font-size:13px}.campo button{font-size:10px;padding:0 14px}.campo input::placeholder{font-size:11px}#mensaje{margin-top:7px;min-height:18px;font-size:10px}
.sugerencias{max-height:240px}.sugerencias button{padding:6px 8px;gap:11px}.sugerencias img{width:38px;height:38px}.personaje .sugerencias button>span:not(.elegir-campeon){font-size:16px}
.tabla-scroll{margin:9px 0 14px}.personaje table{min-width:800px;border-spacing:6px 7px}.personaje th{padding:7px 2px 9px;font-size:12px;letter-spacing:.7px}.personaje th:first-child{width:92px}
#pistas td{height:94px;padding:11px 7px;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))}
#pistas .valor-pista{font-size:15px;line-height:1.2}#pistas .estado-pista{font-size:12px;margin-top:7px}#pistas td::before{bottom:6px;width:17px}#pistas .flecha{font-size:22px;margin-top:5px}#pistas .flecha+.estado-pista{font-size:10px;margin-top:3px}
#pistas .retrato{padding:8px 5px}#pistas .retrato img{width:56px;height:56px;margin-bottom:5px}#pistas .nombre-campeon{font-size:12px;line-height:1.1}
.leyenda{max-width:530px;margin:12px auto;padding:13px 17px}.leyenda summary{font-size:12px}.claves{margin:14px 0 12px}.claves i{width:23px;height:23px;font-size:17px}.claves span{font-size:9px;gap:5px}.leyenda p,.nota{font-size:10px}.nota{margin-top:13px}
.resultado{max-width:530px;margin:14px auto;padding:17px}.resultado img{width:64px;height:64px;margin-bottom:8px}.resultado h2{font-size:18px;margin-bottom:8px}.resultado p{font-size:11px}
@media(max-width:600px){.personaje{padding:16px 10px 30px}.presentacion{padding:19px 0 16px}.presentacion p{font-size:11px}.panel-dia>div{padding:0 10px}.panel-dia span{font-size:8px}.panel-dia strong{font-size:10px}.racha{justify-content:center;margin:11px auto}.campo button{padding:0 10px}.campo input{padding:12px 10px}.campo input::placeholder{font-size:10px}.leyenda{padding:12px}.sugerencias{max-height:225px}}

/* Pistas progresivas: tres ayudas compactas bajo el nexo. */
.pistas-extra{max-width:530px;margin:15px auto 18px;padding:15px 19px 13px;border:1px solid #8e7a4f;border-radius:6px;background:linear-gradient(135deg,#182630ed,#111b24f5);box-shadow:0 8px 24px #0002}
.cabecera-pistas-extra{text-align:center}.cabecera-pistas-extra h2{font:600 17px 'Rajdhani',sans-serif;color:#e9ddc4;margin:0 0 2px}.cabecera-pistas-extra>span{font-size:9px;color:#8fa1ad}
.opciones-pistas{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}.pista-extra{display:grid;justify-items:center;gap:5px;padding:0;background:transparent;border:0;color:#b5c1c8}.pista-extra:disabled{opacity:.5}.pista-extra strong{font:600 14px 'Rajdhani',sans-serif}.pista-extra small{font-size:9px;color:#8c9ca7;font-weight:400}
.icono-pista{display:grid;place-items:center;width:44px;height:44px;border:2px solid #5b666c;border-radius:50%;color:#a4b0b7;transition:border-color .2s,box-shadow .2s,background .2s}.icono-pista svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pista-extra.desbloqueada .icono-pista{border-color:#c8aa6e;color:#e6c87b;background:#c8aa6e0a}.pista-extra.desbloqueada:not(:disabled):hover .icono-pista,.pista-extra[aria-expanded="true"] .icono-pista{box-shadow:0 0 17px #c8aa6e35;border-color:#f7d98f;background:#c8aa6e18}.pista-extra.desbloqueada small{color:#d2b77d}
.pista-contenido{margin-top:16px;padding-top:14px;border-top:1px solid #bca36d33;text-align:center}.pista-contenido[hidden]{display:none}.rotulo-pista{display:block;font-size:8px;letter-spacing:1.3px;color:#8b9eab;margin-bottom:10px}.titulo-oculto{font:600 21px 'Rajdhani',sans-serif;color:#e8d5a8;line-height:1.3}.icono-habilidad-pista{display:block;width:64px;height:64px;margin:5px auto 2px;border:2px solid #b29a60;border-radius:5px;box-shadow:0 3px 14px #0005}.recorte-pista{max-width:330px;height:125px;margin:0 auto;overflow:hidden;border:1px solid #8d794e;border-radius:4px;background:#0b1421}.recorte-pista img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 36%;transform:scale(2.4)}
@media(max-width:600px){.pistas-extra{padding:13px 12px;margin:12px auto 16px}.opciones-pistas{gap:8px;margin-top:12px}.icono-pista{width:39px;height:39px}.pista-extra strong{font-size:13px}.pista-extra small{font-size:8px}.cabecera-pistas-extra h2{font-size:16px}}
