/* ============================================================
   LA SALA DEL TESORO — capa visual de /suerte y /en/luck
   ------------------------------------------------------------
   Esto va ENCIMA de styles.css y no quita nada de lo que ya hay:
   la logica (pg-suerte*.js) sigue tocando exactamente los mismos
   elementos y las mismas clases. Aqui solo se pinta mas:

     - portada con moneda 3D, anillos orbitales, rayos y aurora
     - cinta de ultimos premios que corre sola
     - cristal con haz de luz en el borde y foco que sigue al raton
     - numeros que cuentan, tarjetas que se inclinan
     - polvo de oro por todo el lienzo
     - la rueda con bombillas de feria, rayos y halo
     - la mina con antorchas y polvo, la forja con brasas
     - el podio con medallas

   Todo lo que se mueve se apaga con "reducir movimiento", y todo
   lo que necesita JavaScript tiene su plan B sin JavaScript.
   Los .min del css no se tocan: este archivo va aparte a proposito.
   ============================================================ */

@property --ec-ang { syntax: "<angle>"; inherits: true; initial-value: 200deg; }
@property --ec-brillo { syntax: "<number>"; inherits: true; initial-value: 0; }

main {
  --ec-oro: #ffc94d;
  --ec-oro-2: #ffe9a8;
  --ec-oro-3: #c98a1b;
  --ec-oro-4: #7a4e0e;
  --ec-mor: #9b6bff;
  --ec-cian: #58e1ff;
  --ec-rosa: #ff63cf;
  --ec-verde: #3fe58b;
  --ec-obs: #0b0a10;
  --ec-obs-2: #12101a;
  --ec-curva: cubic-bezier(0.22, 1, 0.36, 1);
}

/* lo que JS inyecta nunca debe pelearse con [hidden] */
.ec-luz[hidden], .ec-cinta[hidden] { display: none !important; }

/* ============================================================
   1. LA PORTADA
   ============================================================ */
.cs-portada {
  overflow: hidden;
  padding-bottom: clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(180deg, #08070b 0%, #0d0b13 70%, var(--cs-fondo, #0f0e12) 100%);
}
.cs-portada-dentro { position: relative; z-index: 3; }
.cs-portada-dentro > * { max-width: min(100%, 640px); }

/* capa de fondo: rayos, malla en perspectiva y aurora */
.ec-hero-fondo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ec-rayos {
  position: absolute;
  right: -18%; top: 50%;
  width: 120vmin; height: 120vmin;
  margin-top: -60vmin;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(255, 201, 77, 0.17) 0deg 3deg, transparent 3deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 4%, rgba(0, 0, 0, 0.55) 34%, transparent 66%);
  mask-image: radial-gradient(circle, #000 4%, rgba(0, 0, 0, 0.55) 34%, transparent 66%);
  animation: ec-gira-simple 70s linear infinite;
  will-change: transform;
}
.ec-malla {
  position: absolute;
  left: -20%; right: -20%; bottom: -2px;
  height: 62%;
  overflow: hidden;
  transform: perspective(380px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 90%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 90%);
  opacity: 0.55;
}
.ec-malla::before {
  content: ""; position: absolute; left: 0; right: 0; top: -48px; bottom: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 201, 77, 0.22) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 201, 77, 0.22) 0 1px, transparent 1px 48px);
  animation: ec-malla 5s linear infinite;
}
.ec-malla::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--cs-fondo, #0f0e12) 0%, transparent 55%); }
@keyframes ec-malla { to { transform: translateY(48px); } }
.ec-aurora { position: absolute; border-radius: 50%; opacity: 0.6; will-change: transform; }
.ec-aurora.a1 { width: 46vmax; height: 28vmax; left: -12vmax; top: -14vmax; background: radial-gradient(closest-side, rgba(255, 138, 43, 0.5), rgba(255, 138, 43, 0.16) 55%, transparent); animation: ec-flota-a 18s ease-in-out infinite alternate; }
.ec-aurora.a2 { width: 44vmax; height: 30vmax; right: -10vmax; top: -12vmax; background: radial-gradient(closest-side, rgba(155, 107, 255, 0.5), rgba(155, 107, 255, 0.16) 55%, transparent); animation: ec-flota-a 23s ease-in-out -7s infinite alternate-reverse; }
@keyframes ec-flota-a { from { transform: translate3d(-4%, 0, 0) scale(1); } to { transform: translate3d(8%, 12%, 0) scale(1.18); } }

/* titulo: letras que entran una a una, oro que respira */
.cs-portada h1 { text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
.cs-portada .titulo-oro {
  display: inline-block;
  background: linear-gradient(100deg, #ff9a2b 0%, #ffe9a8 22%, #ffc94d 40%, #fff6d1 50%, #ffc94d 60%, #e38a14 80%, #ffcf5a 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 170, 40, 0.45));
  text-shadow: none;
  background-position: 22% 0;
}
/* el titulo se revela de izquierda a derecha, con desenfoque que se aclara */
.ec-listo .cs-portada .titulo-oro { animation: ec-titulo-entra 1.3s var(--ec-curva) 0.2s backwards; }
@keyframes ec-titulo-entra { from { clip-path: inset(-200% 100% -200% -60%); opacity: 0; transform: translateX(-0.4em) skewX(-8deg); } to { clip-path: inset(-200% -60% -200% -60%); opacity: 1; transform: none; } }
.ec-listo .cs-portada h1, .ec-listo .cs-portada-texto, .ec-listo .cs-portada-hola, .ec-listo .cs-portada .volver { animation: ec-aparece 0.9s var(--ec-curva) backwards; }
.ec-listo .cs-portada-hola { animation-delay: 0.05s; }
.ec-listo .cs-portada-texto { animation-delay: 0.55s; }

.cs-portada-hola { display: flex; width: fit-content; align-items: center; gap: 0.7em; }
.cs-portada-hola::before, .cs-portada-hola::after {
  content: ""; width: 0.55em; height: 0.55em; background: var(--ec-oro);
  transform: rotate(45deg); box-shadow: 0 0 12px var(--ec-oro);
  animation: ec-gema-pulso 2.6s ease-in-out infinite;
}
.cs-portada-hola::after { animation-delay: -1.3s; }
@keyframes ec-gema-pulso { 0%, 100% { transform: rotate(45deg) scale(1); opacity: 1; } 50% { transform: rotate(45deg) scale(0.55); opacity: 0.5; } }

/* la moneda 3D y sus anillos */
.ec-orbe {
  position: absolute; z-index: 2; pointer-events: none;
  right: clamp(1rem, 7vw, 7rem); top: 50%;
  width: clamp(220px, 34vw, 430px); aspect-ratio: 1;
  margin-top: calc(clamp(220px, 34vw, 430px) / -2 + 1rem);
  perspective: 900px;
  transform: translate3d(calc(var(--ec-px, 0) * -14px), calc(var(--ec-sy, 0) * -0.12px + var(--ec-py, 0) * -10px), 0) rotateY(calc(var(--ec-px, 0) * 10deg)) rotateX(calc(var(--ec-py, 0) * -8deg));
}
.ec-anillo { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 201, 77, 0.35); animation: ec-gira-simple 40s linear infinite; }
.ec-anillo.r2 { inset: 9%; border-style: solid; border-color: rgba(155, 107, 255, 0.28); animation-duration: 28s; animation-direction: reverse; }
.ec-anillo.r3 { inset: 20%; border: 1px dotted rgba(88, 225, 255, 0.4); animation-duration: 19s; }
.ec-anillo::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ec-oro-2); box-shadow: 0 0 14px 3px var(--ec-oro); }
.ec-anillo.r2::after { background: #d9c6ff; box-shadow: 0 0 14px 3px var(--ec-mor); }
.ec-anillo.r3::after { background: #c8f6ff; box-shadow: 0 0 12px 3px var(--ec-cian); }
@keyframes ec-gira-simple { to { transform: rotate(360deg); } }
@keyframes ec-rota-c { to { transform: translate(-50%, -50%) rotate(360deg); } }
.ec-resplandor { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 190, 60, 0.55), rgba(255, 138, 43, 0.18) 55%, transparent 75%); filter: blur(10px); animation: ec-latido 3.4s ease-in-out infinite; }
@keyframes ec-latido { 0%, 100% { transform: scale(0.92); opacity: 0.8; } 50% { transform: scale(1.08); opacity: 1; } }

.ec-mon-caja { position: absolute; inset: 26%; transform-style: preserve-3d; animation: ec-flota 5.5s ease-in-out infinite; }
@keyframes ec-flota { 0%, 100% { transform: translateY(-3%); } 50% { transform: translateY(3%); } }
.ec-mon { position: absolute; inset: 0; transform-style: preserve-3d; animation: ec-mon-gira 7s linear infinite; }
@keyframes ec-mon-gira { from { transform: rotateX(14deg) rotateY(0deg); } to { transform: rotateX(14deg) rotateY(360deg); } }
.ec-cara, .ec-canto {
  position: absolute; inset: 0; border-radius: 50%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.ec-cara {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 32% 28%, #fff1b8 0%, transparent 34%),
    radial-gradient(circle at 50% 50%, #ffd45e 0%, #f0a91f 58%, #b8750f 100%);
  box-shadow: inset 0 0 0 5% #e9a21d, inset 0 0 0 calc(5% + 3px) #8a550a, inset 0 0 36px rgba(122, 78, 14, 0.7);
  transform: translateZ(7px);
}
.ec-cara::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 3px solid rgba(138, 85, 10, 0.55); box-shadow: 0 2px 0 rgba(255, 238, 168, 0.55) inset; }
.ec-cara { overflow: hidden; }
.ec-cara::after { content: ""; position: absolute; top: 0; bottom: 0; left: -110%; right: -110%; background: linear-gradient(115deg, transparent 43%, rgba(255, 248, 214, 0.5) 50%, transparent 57%); animation: ec-barrido 4.2s linear infinite; }
@keyframes ec-barrido { from { transform: translateX(-28%); } to { transform: translateX(28%); } }
.ec-cara svg { width: 52%; height: 52%; filter: drop-shadow(0 2px 0 rgba(255, 238, 168, 0.5)) drop-shadow(0 -1px 0 rgba(90, 54, 6, 0.6)); image-rendering: pixelated; }
.ec-cara.trasera { transform: rotateY(180deg) translateZ(7px); }
.ec-canto { backface-visibility: visible; background: #b8750f; }
.ec-canto:nth-child(3) { transform: translateZ(-6px); }
.ec-canto:nth-child(4) { transform: translateZ(-4px); background: #c98a1b; }
.ec-canto:nth-child(5) { transform: translateZ(-2px); background: #dc9c1c; }
.ec-canto:nth-child(6) { transform: translateZ(0); background: #e8aa22; }
.ec-canto:nth-child(7) { transform: translateZ(2px); background: #f0b52d; }
.ec-canto:nth-child(8) { transform: translateZ(4px); background: #dc9c1c; }
.ec-canto:nth-child(9) { transform: translateZ(6px); background: #c98a1b; }

/* satelites: cosas que caen del cielo alrededor de la moneda */
.ec-sat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: ec-gira-simple var(--t, 22s) linear infinite; animation-delay: var(--d, 0s); }
.ec-sat > span { position: absolute; left: calc(var(--r, 46%) * 1); top: -22px; width: 44px; height: 44px; animation: ec-gira-simple var(--t, 22s) linear infinite reverse; animation-delay: var(--d, 0s); filter: drop-shadow(0 0 12px var(--glow, rgba(255, 201, 77, 0.6))); }
.ec-sat svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.ec-sat:nth-of-type(1) { --r: 0; --t: 24s; --glow: rgba(88, 225, 255, 0.7); }
.ec-sat:nth-of-type(2) { --r: 0; --t: 31s; --d: -9s; --glow: rgba(63, 229, 139, 0.7); }
.ec-sat:nth-of-type(3) { --r: 0; --t: 27s; --d: -17s; --glow: rgba(255, 99, 207, 0.7); }
.ec-sat:nth-of-type(1) > span { left: calc(min(17vw, 215px) - 22px); }
.ec-sat:nth-of-type(2) > span { left: calc(min(14vw, 175px) - 22px); }
.ec-sat:nth-of-type(3) > span { left: calc(min(11vw, 140px) - 22px); }

@media (max-width: 960px) {
  .ec-orbe { opacity: 0.32; right: -12vw; width: min(78vw, 360px); margin-top: calc(min(78vw, 360px) / -2); }
  .ec-rayos { right: -50%; }
  .cs-portada-dentro > * { max-width: 100%; }
}
@media (max-width: 560px) { .ec-orbe { display: none; } }

/* ============================================================
   2. LA CINTA DE PREMIOS
   ============================================================ */
.ec-cinta {
  position: relative; overflow: hidden;
  border-block: 1px solid rgba(255, 201, 77, 0.22);
  background: linear-gradient(90deg, rgba(255, 138, 43, 0.12), rgba(155, 107, 255, 0.1) 50%, rgba(255, 138, 43, 0.12)), #0a090e;
}
.ec-cinta::before, .ec-cinta::after { content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none; }
.ec-cinta::before { left: 0; background: linear-gradient(90deg, #0a090e, transparent); }
.ec-cinta::after { right: 0; background: linear-gradient(270deg, #0a090e, transparent); }
.ec-cinta-et {
  position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 0.5em;
  padding: 0 1.1rem 0 clamp(0.8rem, 3vw, 2rem);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #1a0f05;
  background: linear-gradient(90deg, var(--ec-oro), #ffae2b);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  padding-right: 1.9rem;
}
.ec-cinta-et i { width: 8px; height: 8px; border-radius: 50%; background: #c0392b; box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.7); animation: ec-vivo 1.8s ease-out infinite; }
@keyframes ec-vivo { 0% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.7); } 100% { box-shadow: 0 0 0 9px rgba(192, 57, 43, 0); } }
.ec-cinta-pista { display: flex; width: max-content; padding-block: 0.7rem; animation: ec-cinta var(--ec-dur, 40s) linear infinite; }
.ec-cinta:hover .ec-cinta-pista { animation-play-state: paused; }
@keyframes ec-cinta { to { transform: translateX(-50%); } }
.ec-cinta-item { flex: none; display: inline-flex; align-items: center; gap: 0.6em; padding-inline: 1.6rem; font-size: 0.9rem; color: var(--ink-dim, #b5afa1); white-space: nowrap; }
.ec-cinta-item::before { content: "✦"; color: var(--ec-oro); text-shadow: 0 0 10px var(--ec-oro); }
.ec-cinta-item b { color: var(--ec-oro-2); font-weight: 700; }
.ec-cinta-item:first-child { margin-left: clamp(7rem, 14vw, 9rem); }

/* ============================================================
   3. EL LIENZO, LA NAVEGACION Y EL CRISTAL
   ============================================================ */
.cs {
  background:
    radial-gradient(900px 520px at 90% -4%, rgba(155, 107, 255, 0.14), transparent 62%),
    radial-gradient(860px 520px at 4% 6%, rgba(255, 138, 43, 0.11), transparent 62%),
    radial-gradient(1100px 600px at 50% 112%, rgba(255, 201, 77, 0.09), transparent 66%),
    linear-gradient(180deg, #0f0e12 0%, #0c0b11 100%);
}
.cs > .ec-lienzo, .jg-zona > .ec-lienzo {
  position: sticky; top: 0; z-index: 0; display: block;
  width: 100%; height: 100vh; margin-bottom: -100vh;
  pointer-events: none;
}
.cs-cuerpo, .cs-nav { position: relative; z-index: 2; }
.cs-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 9, 14, 0.96);
  border-bottom: 1px solid rgba(255, 201, 77, 0.18);
  box-shadow: 0 10px 30px -18px #000;
}

/* cursor: un foco dorado que persigue al raton por todo el lienzo */
.ec-foco {
  position: fixed; left: 0; top: 0; z-index: 1; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  pointer-events: none; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 190, 70, 0.1), rgba(155, 107, 255, 0.05) 55%, transparent);
  transition: opacity 0.5s; will-change: transform;
}
.ec-foco.on { opacity: 1; }

/* el cristal: haz que corre por el borde + foco bajo el dedo */
.cs-card, .cs-tarjeta, .cs-dato, .cs-obj, .cs-juego, .mina-gordo, .regla-caja, .juego, .cs-pend-item, .cs-podio, .hu-caja, .rueda-marco, .tabla-premios, .tablon-ganadores, .mina-mesa, .fj-mesa {
  --ec-mx: 50%; --ec-my: 0%;
}
/* el haz del borde mira hacia el raton (--ec-ang lo pone suerte-epica.js en el .ec-luz que se esta tocando) */
.ec-luz {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: radial-gradient(260px circle at var(--ec-mx) var(--ec-my), rgba(255, 214, 120, 0.13), transparent 62%);
  opacity: 0; transition: opacity 0.35s;
}
.ec-luz::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ec-ang), transparent 0 62%, rgba(255, 201, 77, 0) 62%, rgba(255, 233, 168, 0.95) 86%, rgba(255, 99, 207, 0.75) 94%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.cs-card:hover > .ec-luz, .cs-tarjeta:hover > .ec-luz, .cs-dato:hover > .ec-luz, .cs-obj:hover > .ec-luz, .cs-juego:hover > .ec-luz,
.mina-gordo:hover > .ec-luz, .regla-caja:hover > .ec-luz, .juego:hover > .ec-luz, .cs-pend-item:hover > .ec-luz, .cs-podio:hover > .ec-luz,
.hu-caja:hover > .ec-luz, .tabla-premios:hover > .ec-luz, .tablon-ganadores:hover > .ec-luz, .mina-mesa:hover > .ec-luz, .fj-mesa:hover > .ec-luz,
.rueda-marco:hover > .ec-luz { opacity: 1; }
/* el haz siempre visible en lo importante */
.cs-gp > .ec-luz, .cs-jug > .ec-luz, .hu-caja > .ec-luz, .cs-obj.es-disponible > .ec-luz, .cs-pend-item > .ec-luz { opacity: 0.85; }

.cs-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0) 34%),
    linear-gradient(0deg, rgba(155, 107, 255, 0.05), rgba(255, 138, 43, 0.04)),
    rgba(20, 18, 27, 0.78);
  border-color: rgba(255, 201, 77, 0.22);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -20px 40px -30px rgba(255, 138, 43, 0.14);
}

/* titulares de seccion */
.cs-cab { position: relative; }
.cs-cab h2 {
  background: linear-gradient(100deg, #fff 0%, #fff 38%, #ffe9a8 47%, #fff6d8 50%, #ffe9a8 53%, #fff 62%, #fff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: ec-titulo-pasa 7s ease-in-out infinite;
  text-shadow: none;
}
@keyframes ec-titulo-pasa { 0%, 55% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.cs-cab:not(.cs-cab-sub)::after {
  content: ""; display: block; width: min(220px, 40%); height: 3px; margin-top: 0.7rem; border-radius: 3px;
  background: linear-gradient(90deg, var(--ec-oro), var(--ec-rosa) 60%, transparent);
  box-shadow: 0 0 18px rgba(255, 201, 77, 0.55);
  transform-origin: left; animation: ec-linea 1.1s var(--ec-curva) 0.3s both;
}
@keyframes ec-linea { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cs-eyebrow { text-shadow: 0 0 14px rgba(255, 201, 77, 0.5); }
.cs-eyebrow::before { content: "◆"; font-size: 0.8em; color: var(--ec-oro); animation: ec-gema-pulso2 2.4s ease-in-out infinite; }
@keyframes ec-gema-pulso2 { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

/* ============================================================
   4. EL JUGADOR, LOS DATOS Y LAS SEIS TARJETAS
   ============================================================ */
.cs-jug {
  overflow: hidden;
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(255, 138, 43, 0.14), transparent 70%),
    radial-gradient(460px 240px at 100% 0%, rgba(155, 107, 255, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 40%),
    rgba(18, 16, 25, 0.86);
}
.cs-avatar { position: relative; box-shadow: 0 0 0 2px rgba(255, 201, 77, 0.55), 0 0 28px rgba(255, 170, 40, 0.45); }
.cs-avatar::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed rgba(255, 201, 77, 0.55); animation: ec-gira-simple 14s linear infinite; pointer-events: none; }
.cs-avatar::after { content: ""; position: absolute; inset: -13px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 233, 168, 0.8) 90%, transparent); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); animation: ec-gira-simple 3s linear infinite; pointer-events: none; }
.cs-nivel-chip { box-shadow: 0 0 22px -4px rgba(255, 201, 77, 0.5); }

.cs-dato { position: relative; overflow: hidden; transition: transform 0.35s var(--ec-curva), border-color 0.3s, box-shadow 0.3s; }
.cs-dato::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--ec-oro), transparent); opacity: 0.7; }
.cs-dato:hover { transform: translateY(-2px); border-color: rgba(255, 201, 77, 0.5); box-shadow: 0 16px 30px -20px rgba(255, 170, 40, 0.6); }
.cs-dato dd { text-shadow: 0 0 24px rgba(255, 201, 77, 0.35); }
.cs-dato.es-grande dd {
  background: linear-gradient(100deg, #ffd777, #fff3c8 45%, #ffb93b);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 14px rgba(255, 170, 40, 0.4));
}
.ec-sube-num { animation: ec-sube-num 0.9s var(--ec-curva); }
@keyframes ec-sube-num {
  0% { transform: scale(1); filter: brightness(1); }
  30% { transform: scale(1.12); filter: brightness(1.8) drop-shadow(0 0 18px #ffc94d); }
  100% { transform: scale(1); filter: brightness(1); }
}

.cs-tarjeta { overflow: hidden; transition: transform 0.25s var(--ec-curva), border-color 0.3s, box-shadow 0.3s; }
.cs-tarjeta:hover { box-shadow: 0 26px 46px -22px rgba(255, 138, 43, 0.6), 0 0 0 1px rgba(255, 201, 77, 0.35); }
.cs-tarjeta-ico { display: inline-block; filter: drop-shadow(0 0 12px rgba(255, 201, 77, 0.5)); transition: transform 0.5s var(--ec-curva); }
.cs-tarjeta:hover .cs-tarjeta-ico { transform: translateY(-4px) rotate(-8deg) scale(1.25); }
.cs-tarjeta strong { text-shadow: 0 0 24px rgba(255, 201, 77, 0.4); }
.cs-tarjeta::after {
  content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 201, 77, 0.18), transparent); transition: transform 0.6s var(--ec-curva); pointer-events: none;
}
.cs-tarjeta:hover::after { transform: scale(2.1); }

/* ============================================================
   5. GRAN PREMIO
   ============================================================ */
.cs-gp {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(155, 107, 255, 0.22), transparent 66%),
    radial-gradient(520px 320px at 5% 100%, rgba(255, 138, 43, 0.2), transparent 66%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent 38%),
    rgba(17, 15, 24, 0.9);
  border-color: rgba(255, 201, 77, 0.45);
  box-shadow: 0 30px 70px -34px rgba(255, 138, 43, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cs-gp::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 380px; height: 380px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 201, 77, 0.17) 0deg 4deg, transparent 4deg 14deg);
  -webkit-mask-image: radial-gradient(circle, #000, transparent 68%); mask-image: radial-gradient(circle, #000, transparent 68%);
  animation: ec-gira-simple 38s linear infinite;
}
.cs-gp-cifra {
  position: relative; width: fit-content;
  font-size: clamp(3.6rem, 11vw, 6.6rem) !important;
  background: linear-gradient(100deg, #ff9a2b 0%, #ffe9a8 24%, #ffc94d 42%, #fff7d6 52%, #ffc94d 62%, #e38a14 82%, #ffcf5a 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 32px rgba(255, 170, 40, 0.55)) drop-shadow(0 4px 0 rgba(90, 54, 6, 0.55));
}
.cs-gp-cifra::before, .cs-gp-cifra::after { content: "✦"; position: absolute; color: #fff3c4; -webkit-text-fill-color: #fff3c4; font-size: 0.32em; text-shadow: 0 0 14px #ffc94d; animation: ec-chispa 2.6s ease-in-out infinite; }
.cs-gp-cifra::before { right: -0.55em; top: 0.05em; }
.cs-gp-cifra::after { right: -0.95em; top: 0.55em; font-size: 0.2em; animation-delay: -1.2s; }
@keyframes ec-chispa { 0%, 100% { transform: scale(0.2) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
.cs-gp-lema { text-shadow: 0 0 20px rgba(255, 138, 43, 0.5); }
.cs-gp-lista li { transition: transform 0.25s var(--ec-curva), border-color 0.25s; }
.cs-gp-lista li:hover { transform: translateY(-2px); border-color: var(--cs-filo-fuerte); }

/* ============================================================
   6. OBJETIVOS, INVITACIONES, RECOMPENSAS
   ============================================================ */
.cs-subtabs button { transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s var(--ec-curva); }
.cs-subtabs button:hover { transform: translateY(-1px); }
.cs-subtabs button[aria-selected="true"], .cs-subtabs button.es-aqui { box-shadow: 0 0 26px -6px rgba(255, 201, 77, 0.65); }

.cs-obj { position: relative; transition: transform 0.35s var(--ec-curva), border-color 0.3s, box-shadow 0.35s; animation: ec-aparece 0.7s var(--ec-curva) backwards; }
.cs-obj:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(255, 170, 40, 0.5); }
.cs-obj.es-disponible { box-shadow: 0 0 0 1px rgba(255, 138, 43, 0.7), 0 0 36px -8px rgba(255, 138, 43, 0.6); animation: ec-aparece 0.7s var(--ec-curva) backwards; }
.cs-obj.es-completado { box-shadow: 0 0 30px -14px rgba(63, 229, 139, 0.55); }
.cs-obj-ico { position: relative; box-shadow: 0 0 22px -6px rgba(255, 201, 77, 0.55); }
.cs-obj .cs-chip { transition: transform 0.3s var(--ec-curva); }
.cs-obj:hover .cs-chip { transform: scale(1.06); }
@keyframes ec-aparece { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.cs-pend-item, .cs-hist-lista li, .cs-inv-lista > li, .cs-semana-lista > li, .cs-esc-paso, .cs-podio li { animation: ec-aparece 0.6s var(--ec-curva) backwards; }
.cs-pend-item { box-shadow: 0 0 34px -14px rgba(255, 170, 40, 0.5); }

/* barras: raya con rayas que avanzan y punta que centellea */
.cs-barra { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 201, 77, 0.1); }
.cs-barra i { position: relative; background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0 8px, transparent 8px 16px), linear-gradient(90deg, var(--cs-oro-hondo, #a9782b), var(--cs-oro, #e4b85a) 60%, var(--cs-naranja, #ff8a2b)); background-size: 22px 100%, 100% 100%; }
.cs-barra i::after { content: ""; position: absolute; right: -1px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: radial-gradient(closest-side, #fff, rgba(255, 233, 168, 0.8) 40%, transparent); box-shadow: 0 0 14px 3px rgba(255, 201, 77, 0.8); opacity: 0.9; }
.cs-barra.es-completa i { background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0 8px, transparent 8px 16px), linear-gradient(90deg, #2f8c4c, var(--ec-verde)); }
.cs-barra.es-completa i::after { box-shadow: 0 0 14px 3px rgba(63, 229, 139, 0.8); }
.cs-barra i[style*="width: 0%"]::after, .cs-barra i[style*="--p: 0%"]::after { display: none; }

/* invitaciones */
.cs-inv-codigo { text-shadow: 0 0 26px rgba(255, 201, 77, 0.55); letter-spacing: 0.12em; }
.cs-inv-stats > div { transition: transform 0.3s var(--ec-curva), border-color 0.3s; }
.cs-inv-stats > div:hover { transform: translateY(-3px); }
.cs-inv-stats .es-oro dd { text-shadow: 0 0 24px rgba(255, 201, 77, 0.6); }
.cs-esc-paso { transition: transform 0.3s var(--ec-curva); }
.cs-esc-paso:hover { transform: translateY(-3px); }

/* ============================================================
   7. SALON DE LA FORTUNA: MEDALLAS
   ============================================================ */
.cs-podio { overflow: hidden; }
.cs-podio::after { content: "♛"; position: absolute; right: 10px; top: -8px; font-size: 5rem; line-height: 1; color: rgba(255, 201, 77, 0.07); pointer-events: none; transform: rotate(14deg); }
.cs-podio li { position: relative; border-radius: 12px; transition: transform 0.3s var(--ec-curva), background 0.3s; animation-delay: calc(var(--n, 0) * 0.08s); }
.cs-podio li:hover { transform: translateX(4px); }
.cs-podio li::before {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  font-size: 1rem !important; color: #1a0f05 !important; font-weight: 700;
  background: radial-gradient(circle at 32% 28%, #f2f2f2, #9a9a9a 80%); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.cs-podio li:nth-child(1)::before { background: radial-gradient(circle at 32% 28%, #fff3c4, #f0a91f 62%, #a9680c); box-shadow: inset 0 0 0 2px rgba(122, 78, 14, 0.4), 0 0 18px rgba(255, 201, 77, 0.85); animation: ec-latido-medalla 2.2s ease-in-out infinite; }
.cs-podio li:nth-child(2)::before { background: radial-gradient(circle at 32% 28%, #ffffff, #c4ccd6 62%, #7f8996); }
.cs-podio li:nth-child(3)::before { background: radial-gradient(circle at 32% 28%, #ffd8b0, #cd7f32 62%, #8a4f1c); }
.cs-podio li:nth-child(n+4)::before { background: rgba(255, 255, 255, 0.07); color: var(--cs-apagado) !important; box-shadow: none; }
@keyframes ec-latido-medalla { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.cs-podio li:nth-child(1) { background: linear-gradient(90deg, rgba(255, 201, 77, 0.2), rgba(255, 201, 77, 0.02)); box-shadow: inset 0 0 0 1px rgba(255, 201, 77, 0.28); }
.cs-podio li:nth-child(1) span { color: var(--ec-oro-2); }

/* ============================================================
   8. JUGAR AHORA + SELECTOR DE JUEGOS
   ============================================================ */
.cs-juego { position: relative; overflow: hidden; transition: transform 0.25s var(--ec-curva), box-shadow 0.35s; }
.cs-juego::after { content: ""; position: absolute; inset: auto -20% -50% -20%; height: 90%; pointer-events: none; background: radial-gradient(closest-side, var(--ec-juego, rgba(255, 170, 40, 0.28)), transparent); transition: transform 0.6s var(--ec-curva); }
.cs-juego.es-mina { --ec-juego: rgba(63, 229, 139, 0.26); }
.cs-juego.es-forja { --ec-juego: rgba(255, 99, 60, 0.3); }
.cs-juego:hover { box-shadow: 0 28px 50px -24px var(--ec-juego); }
.cs-juego:hover::after { transform: translateY(-20%) scale(1.3); }
.cs-juego h3 { text-shadow: 0 0 22px var(--ec-juego); }

.jg-zona {
  position: relative;
  margin-top: 0;
  background:
    radial-gradient(800px 420px at 50% 0%, rgba(255, 138, 43, 0.1), transparent 66%),
    linear-gradient(180deg, #0c0b11 0%, #100d0c 40%, #0d0a09 100%);
  padding-bottom: clamp(1.4rem, 4vw, 2.6rem);
}
.jg-zona::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 201, 77, 0.7), transparent); box-shadow: 0 0 22px rgba(255, 201, 77, 0.6); z-index: 3; }
.jg-zona > .wrap, .jg-zona > .jg-paneles { position: relative; z-index: 2; }
.jg-barra { padding-top: clamp(1.4rem, 3.5vw, 2.2rem); }
.jg-barra-et { color: var(--ec-oro); text-shadow: 0 0 16px rgba(255, 201, 77, 0.55); }
.jg-selector {
  background: linear-gradient(180deg, #17131b, #0d0b11);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 201, 77, 0.2), 0 20px 50px -26px rgba(0, 0, 0, 0.9);
}
.jg-selector::after {
  content: ""; position: absolute; inset: -1px; border-radius: 17px; padding: 1px; pointer-events: none;
  background: conic-gradient(from 210deg, transparent 0 55%, rgba(255, 233, 168, 0.9) 78%, rgba(155, 107, 255, 0.8) 90%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.jg-corredera { box-shadow: 0 0 36px -4px var(--jg-luz, var(--ember-glow)), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.jg-tab { transition: color 0.3s, transform 0.3s var(--ec-curva); }
.jg-tab:hover:not(.esta-puesta) { transform: translateY(-2px); }
.jg-tab-ico { transition: transform 0.5s var(--ec-curva); }
.jg-tab:hover .jg-tab-ico, .jg-tab.esta-puesta .jg-tab-ico { transform: rotate(-10deg) scale(1.2); }
.jg-tab.esta-puesta .jg-tab-ico { filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.35)); }
.jg-tab-nuevo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; border: 2px solid rgba(255, 99, 207, 0.85); animation: ec-nuevo 1.8s ease-out infinite; }
@keyframes ec-nuevo { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.55, 1.9); opacity: 0; } }

/* la hucha: caja fuerte */
.hu-caja {
  background:
    radial-gradient(90% 160% at 0% 50%, rgba(255, 190, 60, 0.26), transparent 62%),
    radial-gradient(60% 140% at 100% 0%, rgba(155, 107, 255, 0.2), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 40%), #1a140d;
  box-shadow: var(--bevel), 0 0 0 1px rgba(255, 201, 77, 0.42), 0 28px 60px -34px rgba(255, 138, 43, 0.55);
}
.hu-moneda { filter: drop-shadow(0 0 16px rgba(255, 201, 77, 0.7)); animation: ec-mon-gira-2d 5s ease-in-out infinite; }
@keyframes ec-mon-gira-2d { 0%, 100% { transform: rotateY(0deg); } 50% { transform: rotateY(360deg); } }
.hu-saldo { filter: drop-shadow(0 0 22px rgba(255, 170, 40, 0.5)); }
.hu-caja.es-sube { animation: ec-caja-sube 1.1s var(--ec-curva); }
@keyframes ec-caja-sube { 0% { transform: scale(1); } 25% { transform: scale(1.015); } 100% { transform: scale(1); } }

/* ============================================================
   9. LA RUEDA: FERIA, RAYOS Y HALO
   ============================================================ */
.jg-panel { position: relative; }
.col-rueda { position: relative; }
.rueda-marco {
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(255, 170, 40, 0.16), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(155, 107, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #1a1411, #0f0c0a);
  box-shadow: var(--bevel), 0 0 0 1px rgba(255, 201, 77, 0.32), 0 36px 80px -40px rgba(255, 138, 43, 0.6);
}
.rueda-envoltorio { position: relative; }
.ec-rueda-rayos {
  position: absolute; z-index: -2; left: 50%; top: 50%; width: 190%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 201, 77, 0.2) 0deg 4deg, transparent 4deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, rgba(0, 0, 0, 0.4) 34%, transparent 52%);
  mask-image: radial-gradient(circle, #000 18%, rgba(0, 0, 0, 0.4) 34%, transparent 52%);
  animation: ec-rota-c 50s linear infinite; opacity: 0.8; transition: opacity 0.6s; will-change: transform;
}
.rueda-envoltorio.girando .ec-rueda-rayos { animation-duration: 6s; opacity: 1; }
.ec-bombillas { position: absolute; inset: -4.5%; z-index: 4; pointer-events: none; border-radius: 50%; }
.ec-bombilla {
  position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  transform: rotate(calc(var(--k) * 1deg)) translateY(calc(var(--rad, 50) * -1px));
}
.ec-bombilla::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffe9a8 38%, #ffb21f 100%);
  box-shadow: 0 0 10px 2px rgba(255, 190, 50, 0.9), 0 0 22px 4px rgba(255, 138, 43, 0.5);
}
/* cada grupo (una de cada tres bombillas) apaga y enciende a su turno: asi corre la luz sin 30 animaciones */
.ec-bg { position: absolute; inset: 0; animation: ec-bombilla 1.6s steps(1, end) infinite; }
.ec-bg.g1 { animation-delay: 0.2s; }
.ec-bg.g2 { animation-delay: 0.4s; }
@keyframes ec-bombilla { 0% { opacity: 1; } 50% { opacity: 0.25; } }
.rueda-envoltorio.girando .ec-bg { animation: ec-bombilla-corre 0.5s linear infinite; }
.rueda-envoltorio.girando .ec-bg.g1 { animation-delay: 0.08s; }
.rueda-envoltorio.girando .ec-bg.g2 { animation-delay: 0.16s; }
.rueda-envoltorio.girando .ec-bombilla::after { background: radial-gradient(circle at 35% 30%, #fff, #ffd9f6 38%, #ff63cf 100%); box-shadow: 0 0 12px 3px rgba(255, 99, 207, 0.9), 0 0 26px 6px rgba(155, 107, 255, 0.5); }
@keyframes ec-bombilla-corre { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.rueda-envoltorio::after { content: ""; position: absolute; inset: -14%; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 170, 40, 0.38), rgba(255, 138, 43, 0.12) 60%, transparent 76%); animation: ec-latido 3.6s ease-in-out infinite; }
.rueda-envoltorio.girando::after { animation-duration: 0.8s; background: radial-gradient(closest-side, rgba(255, 99, 207, 0.5), rgba(155, 107, 255, 0.18) 60%, transparent 76%); }
.rueda-centro:not(:disabled) { filter: drop-shadow(0 0 12px rgba(150, 220, 255, 0.65)); animation: ec-pulso-boton 2.2s ease-in-out infinite; }
@keyframes ec-pulso-boton { 0%, 100% { scale: 1; } 50% { scale: 1.045; } }
.rueda-sonido { backdrop-filter: blur(6px); }

.tabla-premios, .tablon-ganadores, .historial { background: linear-gradient(180deg, rgba(30, 24, 18, 0.9), rgba(14, 11, 9, 0.95)); box-shadow: var(--bevel), 0 0 0 1px rgba(255, 201, 77, 0.2), 0 26px 50px -34px #000; }
.tabla-titulo { text-shadow: 0 0 14px rgba(255, 201, 77, 0.5); }
.premios-cumbre > * { position: relative; overflow: hidden; transition: transform 0.35s var(--ec-curva), box-shadow 0.35s; }
.premios-cumbre > *::before { content: ""; position: absolute; top: 0; bottom: 0; left: -110%; right: -110%; pointer-events: none; background: linear-gradient(115deg, transparent 43%, rgba(255, 255, 255, 0.2) 50%, transparent 57%); animation: ec-barrido 5s linear infinite; }
.premios-cumbre > *:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 36px -18px rgba(255, 99, 207, 0.65); }
.lista-premios li { transition: transform 0.25s var(--ec-curva), background 0.25s; }
.lista-premios li:hover { transform: translateX(5px); }
.lista-premios li.es-mitico, .lista-premios li.es-unico { position: relative; overflow: hidden; }
.lista-premios li.es-mitico::after, .lista-premios li.es-legendario::after, .lista-premios li.es-unico::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%); }
.lista-ganadores li { animation: ec-aparece 0.6s var(--ec-curva) backwards; }

.rueda-premio { box-shadow: 0 0 0 1px rgba(255, 201, 77, 0.6), 0 0 70px -10px rgba(255, 170, 40, 0.7); overflow: hidden; }
.rueda-premio:not([hidden]) { animation: ec-premio-entra 1s var(--ec-curva) both; }
@keyframes ec-premio-entra { 0% { opacity: 0; transform: scale(0.7) rotate(-3deg); filter: blur(12px) brightness(2.4); } 60% { transform: scale(1.04); filter: blur(0) brightness(1.4); } 100% { opacity: 1; transform: none; filter: none; } }
.rueda-premio h2 { text-shadow: 0 0 34px rgba(255, 201, 77, 0.7); }

/* el fogonazo de pantalla cuando cae un premio gordo */
.ec-fogonazo { position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: 0; }
.ec-fogonazo.on { animation: ec-fogonazo 1.5s ease-out; }
@keyframes ec-fogonazo { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }
.ec-fogonazo { background: radial-gradient(circle at 50% 45%, rgba(255, 233, 168, 0.55), rgba(255, 170, 40, 0.22) 40%, transparent 72%); }
.ec-fogonazo.mitico { background: radial-gradient(circle at 50% 45%, rgba(255, 220, 245, 0.62), rgba(255, 99, 207, 0.3) 38%, rgba(155, 107, 255, 0.14) 60%, transparent 76%); }
.ec-fogonazo.epico { background: radial-gradient(circle at 50% 45%, rgba(207, 230, 255, 0.5), rgba(92, 180, 255, 0.25) 42%, transparent 72%); }
.ec-tiembla { animation: ec-tiembla 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes ec-tiembla { 10%, 90% { transform: translate3d(-2px, 0, 0); } 20%, 80% { transform: translate3d(4px, 1px, 0); } 30%, 50%, 70% { transform: translate3d(-7px, -2px, 0); } 40%, 60% { transform: translate3d(7px, 2px, 0); } }

/* ============================================================
   10. LA MINA: ANTORCHAS Y POLVO
   ============================================================ */
.mina-mesa { background: radial-gradient(70% 50% at 50% 0%, rgba(63, 229, 139, 0.12), transparent 70%), linear-gradient(180deg, #131814, #0a0d0b); box-shadow: var(--bevel), 0 0 0 1px rgba(63, 229, 139, 0.3), 0 36px 70px -40px rgba(63, 229, 139, 0.5); }
.mina-cueva { position: relative; }
.mina-viga { position: relative; }
.mina-viga::before, .mina-viga::after { content: ""; position: absolute; top: 50%; width: 120px; height: 120px; margin-top: -60px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 170, 60, 0.45), transparent 70%); animation: ec-antorcha 0.9s ease-in-out infinite alternate; }
.mina-viga::before { left: -30px; }
.mina-viga::after { right: -30px; animation-delay: -0.4s; }
@keyframes ec-antorcha { from { opacity: 0.55; transform: scale(0.9); } to { opacity: 1; transform: scale(1.1); } }
.ec-polvo { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; border-radius: inherit; }
.ec-polvo i { position: absolute; bottom: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255, 233, 168, 0.65); box-shadow: 0 0 8px rgba(255, 201, 77, 0.8); animation: ec-polvo var(--t) linear infinite; animation-delay: var(--d); }
@keyframes ec-polvo { from { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: 1; } to { transform: translate3d(var(--dx), -330px, 0); opacity: 0; } }
.mina-bloque { transition: transform 0.25s var(--ec-curva), filter 0.25s, box-shadow 0.25s; }
.mina-bloque:not(:disabled):hover { transform: translateY(-3px) scale(1.06); filter: brightness(1.25); box-shadow: 0 0 22px rgba(63, 229, 139, 0.55); z-index: 2; }
.mina-bloque.es-gema { animation: ec-gema-sale 0.6s var(--ec-curva); box-shadow: 0 0 26px rgba(63, 229, 139, 0.7), inset 0 0 18px rgba(63, 229, 139, 0.45); }
@keyframes ec-gema-sale { 0% { transform: scale(0.7); filter: brightness(3); } 55% { transform: scale(1.2); } 100% { transform: scale(1); filter: none; } }
.mina-bloque.es-tnt { box-shadow: 0 0 26px rgba(255, 70, 40, 0.8), inset 0 0 18px rgba(255, 70, 40, 0.5); }
.mina-bloque.es-estallo { animation: ec-estallo 0.7s ease-out; }
@keyframes ec-estallo { 0% { transform: scale(1); filter: brightness(1); } 25% { transform: scale(1.4); filter: brightness(4) saturate(2); } 100% { transform: scale(1); filter: none; } }
.mina-mesa.es-reventada { animation: ec-tiembla 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; box-shadow: var(--bevel), 0 0 0 1px rgba(255, 70, 40, 0.8), 0 0 90px -10px rgba(255, 70, 40, 0.8); }
.mina-dato strong, .fj-dato strong { text-shadow: 0 0 22px rgba(255, 201, 77, 0.45); }
.mina-dato.es-siguiente strong { color: #7dffb5; text-shadow: 0 0 22px rgba(63, 229, 139, 0.7); }
.mina-paso, .fj-paso { transition: transform 0.35s var(--ec-curva); }
.mina-paso:hover, .fj-paso:hover { transform: translateY(-4px); }
.mina-paso-num, .fj-paso-num { text-shadow: 0 0 20px rgba(255, 201, 77, 0.6); }
.mina-gordo { position: relative; overflow: hidden; transition: transform 0.35s var(--ec-curva), box-shadow 0.35s; }
.mina-gordo::before { content: ""; position: absolute; top: 0; bottom: 0; left: -110%; right: -110%; pointer-events: none; background: linear-gradient(115deg, transparent 43%, rgba(255, 233, 168, 0.18) 50%, transparent 57%); animation: ec-barrido 5.5s linear infinite; }
.mina-gordo:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -20px rgba(255, 201, 77, 0.55); }
.mina-gordo-ico { filter: drop-shadow(0 0 14px rgba(255, 201, 77, 0.65)); animation: ec-flota 4.5s ease-in-out infinite; }

/* ============================================================
   11. LA FORJA: BRASAS
   ============================================================ */
.fj-mesa { background: radial-gradient(70% 55% at 50% 100%, rgba(255, 90, 40, 0.24), transparent 70%), linear-gradient(180deg, #1a100c, #0d0807); box-shadow: var(--bevel), 0 0 0 1px rgba(255, 122, 61, 0.38), 0 36px 80px -40px rgba(255, 90, 40, 0.65); }
.fj-escena { position: relative; overflow: hidden; border-radius: 14px; }
.fj-escena > canvas.ec-brasas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.fj-pieza { filter: drop-shadow(0 0 18px rgba(255, 130, 40, 0.8)); }
.fj-martillo { filter: drop-shadow(0 0 10px rgba(255, 201, 77, 0.55)); }
.fj-escena.es-golpe, .fj-mesa.es-golpe { animation: ec-golpe 0.45s ease-out; }
@keyframes ec-golpe { 0% { transform: scale(1); } 20% { transform: scale(0.985) translateY(3px); filter: brightness(1.5); } 100% { transform: none; } }
.fj-mesa.es-rompe, .fj-escena.es-rompe { animation: ec-tiembla 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
.fj-escalera > li { transition: transform 0.3s var(--ec-curva), box-shadow 0.3s; }
.fj-escalera > li:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -20px rgba(255, 138, 43, 0.65); }
.fj-btn-golpe:not([hidden]) { box-shadow: 0 0 22px -2px rgba(255, 138, 43, 0.75); animation: ec-pulso-forja 1.6s ease-in-out infinite; }
@keyframes ec-pulso-forja { 0%, 100% { scale: 1; } 50% { scale: 1.05; } }

/* ============================================================
   12. REGLAS Y "MAS JUEGOS"
   ============================================================ */
.regla-caja { overflow: hidden; transition: transform 0.25s var(--ec-curva), box-shadow 0.35s; }
.regla-caja:hover { box-shadow: 0 30px 50px -26px rgba(255, 138, 43, 0.5); }
/* la casilla del icono ya es una rejilla de 3,6rem con el dibujo centrado (styles.css): aqui solo se mueve y se ilumina */
.suerte-reglas .regla-caja { align-content: start; gap: 0.8rem; }
.suerte-reglas .regla-icono { animation: ec-flota 5s ease-in-out infinite; box-shadow: inset 0 0 0 2px #ffab35, 0 0 26px -6px #ffab35; }
.suerte-reglas .regla-icono > svg { width: 2.3rem; height: 2.3rem; filter: drop-shadow(0 0 8px rgba(255, 201, 77, 0.65)); }
.regla-caja:nth-child(2) .regla-icono { animation-delay: -1.6s; }
.regla-caja:nth-child(3) .regla-icono { animation-delay: -3.2s; }
.juego { position: relative; overflow: hidden; transition: transform 0.25s var(--ec-curva), box-shadow 0.35s; }
.juego:hover { box-shadow: 0 28px 50px -26px rgba(155, 107, 255, 0.5); }
.juego-ico { filter: drop-shadow(0 0 14px rgba(255, 201, 77, 0.55)); }

/* ============================================================
   13. ENTRADAS AL HACER SCROLL
   ============================================================ */
.js .ec-rev { opacity: 0; transform: translateY(34px) scale(0.985); transition: opacity 0.9s var(--ec-curva), transform 0.9s var(--ec-curva); transition-delay: calc(var(--ec-i, 0) * 0.08s); }
.js .ec-rev.ec-visto { opacity: 1; transform: none; }
/* plan B: solo si suerte-epica.js no llega a arrancar (si arranca, el observador las revela) */
.js:not(.ec-listo) .ec-rev { animation: ec-rev-plan-b 0.01s 3.5s forwards; }
@keyframes ec-rev-plan-b { to { opacity: 1; transform: none; } }

/* ============================================================
   14. MOVIL Y MOVIMIENTO REDUCIDO
   ============================================================ */
@media (max-width: 720px) {
  .ec-foco { display: none; }
  .ec-bombilla { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
  .ec-cinta-et { font-size: 0.62rem; padding-right: 1.4rem; }
  .ec-cinta-item:first-child { margin-left: 6.4rem; }
  .cs-gp::after { width: 240px; height: 240px; }
  .mina-viga::before, .mina-viga::after { display: none; }
}
@media (hover: none), (pointer: coarse) { .ec-luz { display: none; } .ec-foco { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ec-rayos, .ec-malla, .ec-aurora, .ec-anillo, .ec-mon, .ec-mon-caja, .ec-sat, .ec-sat > span, .ec-cinta-pista,   .ec-bg,
  .ec-polvo i, .ec-rueda-rayos, .ec-cae, .fj-escena::before, .cs-gp::after, .cs-avatar::before, .cs-avatar::after, .jg-selector::after, .ec-luz::after { animation: none !important; }
  .js .ec-rev { opacity: 1; transform: none; transition: none; animation: none; }
  .ec-lienzo, .ec-orbe .ec-sat, .ec-polvo, .ec-foco, .ec-lluvia { display: none !important; }
  .ec-cinta-pista { overflow-x: auto; width: 100%; }
}

/* ============================================================
   15. PIEZAS SUELTAS QUE CREA EL JAVASCRIPT
   ============================================================ */
.cs-pend-item { position: relative; }
.ec-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ec-fogonazo.tnt { background: radial-gradient(circle at 50% 50%, rgba(255, 240, 200, 0.7), rgba(255, 90, 40, 0.4) 34%, rgba(120, 20, 10, 0.25) 62%, transparent 80%); }
.ec-chispita {
  position: fixed; z-index: 9991; width: 6px; height: 6px; margin: -3px 0 0 -3px; pointer-events: none;
  background: #ffe9a8; transform: rotate(45deg); box-shadow: 0 0 10px 2px rgba(255, 201, 77, 0.9);
  animation: ec-chispita 0.7s cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
}
@keyframes ec-chispita { to { transform: translate(var(--dx), var(--dy)) rotate(225deg) scale(0); opacity: 0; } }
.ec-moneda-cae {
  position: fixed; z-index: 9991; width: 26px; height: 26px; margin-left: -13px; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 201, 77, 0.9));
  animation: ec-moneda-cae var(--t, 1.3s) cubic-bezier(0.4, 0.1, 0.7, 1) forwards;
}
.ec-moneda-cae svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
@keyframes ec-moneda-cae {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(0.4); }
  12% { opacity: 1; transform: translate(calc(var(--dx) * 0.2), 10px) rotate(calc(var(--g) * 0.1)) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--g)) scale(0.9); }
}

/* la portada es mas alta para que la moneda respire */
.cs-portada { display: flex; align-items: center; min-height: clamp(310px, 34vw, 430px); }
.cs-portada .wrap { width: 100%; }

/* un poco de aire entre las piezas que la hoja original dejaba pegadas */
.cs-tarjetas { margin-top: 1rem; }
.cs-vincular { margin-top: 1rem; }

/* lluvia de tesoros por la portada */
.ec-lluvia { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ec-cae { position: absolute; top: -40px; opacity: 0; animation: ec-cae var(--t, 12s) linear forwards; will-change: transform; }
.ec-cae svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
@keyframes ec-cae {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0); }
  10% { opacity: var(--o, 0.7); }
  85% { opacity: var(--o, 0.7); }
  100% { opacity: 0; transform: translate3d(var(--x), 440px, 0) rotate(var(--g)); }
}
/* la moneda se puede tocar */
.ec-mon-caja { pointer-events: auto; cursor: pointer; }
.ec-mon.ec-rapido { animation: ec-mon-loca 1.4s cubic-bezier(0.3, 0.1, 0.2, 1); }
@keyframes ec-mon-loca { from { transform: rotateX(14deg) rotateY(0deg) scale(1); } 50% { transform: rotateX(14deg) rotateY(1080deg) scale(1.28); } to { transform: rotateX(14deg) rotateY(1440deg) scale(1); } }

/* cartas de cumbre: lamina holografica que sigue al raton */
.premios-cumbre > *::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; z-index: 1;
  background:
    radial-gradient(160px circle at var(--ec-mx, 50%) var(--ec-my, 0%), rgba(255, 255, 255, 0.35), transparent 62%),
    conic-gradient(from 20deg at var(--ec-mx, 50%) var(--ec-my, 50%), rgba(255, 99, 207, 0.3), rgba(88, 225, 255, 0.3), rgba(255, 233, 168, 0.3), rgba(155, 107, 255, 0.3), rgba(255, 99, 207, 0.3));
  mix-blend-mode: color-dodge;
}
.premios-cumbre > *:hover::after { opacity: 0.75; }

/* cuatro pasos en una fila cuando caben */
.mina-como, .fj-como { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* la forja encendida detras del yunque */
.fj-escena::before {
  content: ""; position: absolute; left: 50%; bottom: -30%; width: 90%; height: 80%; transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 110, 40, 0.5), rgba(255, 60, 20, 0.16) 60%, transparent 80%);
  animation: ec-fragua 2.8s ease-in-out infinite alternate;
}
@keyframes ec-fragua { from { opacity: 0.55; transform: translateX(-50%) scale(0.92); } to { opacity: 1; transform: translateX(-50%) scale(1.08); } }


/* ============================================================
   16. FUERA DE PANTALLA, Y MODO LIGERO
   ------------------------------------------------------------
   suerte-epica.js pone .ec-fuera en la portada, el centro y la zona de
   juegos cuando no se ven. Se quita la animacion (animation: none), no se
   pausa: en Chrome una animacion pausada sigue costando en cada fotograma.
   Al volver, la animacion vuelve a empezar, que en un adorno es lo de menos.
   Solo se tocan los adornos que no paran; las entradas y lo que da
   respuesta al juego (golpes, gemas, estallidos) no se tocan nunca.
   ============================================================ */
.ec-fuera .ec-rayos, .ec-fuera .ec-aurora, .ec-fuera .ec-malla::before, .ec-fuera .ec-anillo,
.ec-fuera .ec-sat, .ec-fuera .ec-sat > span, .ec-fuera .ec-mon-caja, .ec-fuera .ec-mon,
.ec-fuera .ec-resplandor, .ec-fuera .ec-cara::after,
.ec-fuera .cs-portada-hola::before, .ec-fuera .cs-portada-hola::after,
.ec-fuera .cs-avatar::before, .ec-fuera .cs-avatar::after, .ec-fuera .cs-gp::after,
.ec-fuera .cs-gp-cifra::before, .ec-fuera .cs-gp-cifra::after, .ec-fuera .cs-eyebrow::before,
.ec-fuera .cs-podio li::before,
.ec-fuera .ec-bg, .ec-fuera .ec-rueda-rayos, .ec-fuera .rueda-fuego::before, .ec-fuera .rueda-fuego::after,
.ec-fuera .rueda-halo, .ec-fuera .rueda-envoltorio::after, .ec-fuera .hu-moneda,
.ec-fuera .mina-viga::before, .ec-fuera .mina-viga::after, .ec-fuera .ec-polvo i,
.ec-fuera .mina-gordo::before, .ec-fuera .mina-gordo-ico, .ec-fuera .premios-cumbre > *::before,
.ec-fuera .fj-escena::before, .ec-fuera .rueda-centro, .ec-fuera .fj-btn-golpe,
.ec-fuera .suerte-reglas .regla-icono, .ec-fuera .jg-tab-nuevo::after {
  animation: none !important;
}
/* modo ligero: lo decide suerte-epica.js al medir los fotogramas (o lo recuerda de otra visita) */
.ec-ligera .ec-aurora, .ec-ligera .ec-rayos, .ec-ligera .ec-malla, .ec-ligera .ec-lluvia,
.ec-ligera .ec-lienzo, .ec-ligera .ec-foco, .ec-ligera .ec-luz, .ec-ligera .ec-polvo,
.ec-ligera .ec-rueda-rayos, .ec-ligera .ec-anillo, .ec-ligera .ec-sat { display: none !important; }
.ec-ligera .ec-mon-caja, .ec-ligera .ec-mon, .ec-ligera .ec-cara::after, .ec-ligera .ec-resplandor,
.ec-ligera .cs-portada-hola::before, .ec-ligera .cs-portada-hola::after,
.ec-ligera .cs-avatar::before, .ec-ligera .cs-avatar::after, .ec-ligera .cs-gp::after,
.ec-ligera .cs-gp-cifra::before, .ec-ligera .cs-gp-cifra::after, .ec-ligera .cs-podio li::before,
.ec-ligera .rueda-fuego::before, .ec-ligera .rueda-fuego::after, .ec-ligera .rueda-halo,
.ec-ligera .rueda-envoltorio::after, .ec-ligera .hu-moneda, .ec-ligera .mina-viga::before,
.ec-ligera .mina-viga::after, .ec-ligera .mina-gordo::before, .ec-ligera .mina-gordo-ico,
.ec-ligera .premios-cumbre > *::before, .ec-ligera .fj-escena::before,
.ec-ligera .suerte-reglas .regla-icono, .ec-ligera .jg-tab-nuevo::after, .ec-ligera .ec-cinta-pista { animation: none !important; }
.ec-ligera .ec-cinta-pista { overflow-x: auto; width: 100%; }
.ec-ligera .ec-aurora, .ec-ligera .ec-mon-caja { will-change: auto; }

/* En esta pagina el decorado de Halloween se queda quieto: los murcielagos que cruzan, la niebla que
   se desliza y las calabazas que parpadean eran ~60 animaciones y ~100 capas mas encima de todo lo
   que ya se mueve aqui. Lo fijo (telas, calabazas, luna) sigue puesto. */
.ec-listo .hw-capa, .ec-listo .hw-capa *, .ec-listo .hw-fondo, .ec-listo .hw-fondo *,
.ec-listo .hw-div, .ec-listo .hw-div * { animation: none !important; }
.ec-listo .hw-murci { display: none; }

/* ============================================================
   17. LA HUIDA
   ------------------------------------------------------------
   Un personaje corre por la mina, el Nether y el End. El juego esta en 3D
   (Three.js, bin/huida/*.js empaquetado en assets/js/huida-3d.min.js, que solo
   se descarga al abrir la pestaña); la logica y el dinero son del servidor
   (api/_lib/huida*.js) y los menus los pone main.js (bloque "la huida").
   Aqui solo esta como se ve. Los menus solo animan transform y opacity.
   ============================================================ */

/* cuatro pestañas en el selector (antes eran tres) */
.jg-selector { grid-template-columns: repeat(4, 1fr); }
.jg-corredera { width: calc((100% - 0.7rem - 0.9rem) / 4); }
.jg-selector:has(.jg-tab.es-huida.esta-puesta) .jg-corredera { --jg-color: #3fe0c5; --jg-luz: #b7fff1; transform: translateX(calc(300% + 0.9rem)); }
.jg-tab.es-huida.esta-puesta { color: #04211c; }
@media (max-width: 900px) {
  .jg-selector { grid-template-columns: 1fr; gap: 0.25rem; }
  .jg-corredera { width: auto; right: 0.35rem; height: calc((100% - 0.7rem - 0.75rem) / 4); bottom: auto; }
  .jg-selector:has(.jg-tab.es-rueda.esta-puesta) .jg-corredera { transform: translateY(0); }
  .jg-selector:has(.jg-tab.es-mina.esta-puesta) .jg-corredera { transform: translateY(calc(100% + 0.25rem)); }
  .jg-selector:has(.jg-tab.es-forja.esta-puesta) .jg-corredera { transform: translateY(calc(200% + 0.5rem)); }
  .jg-selector:has(.jg-tab.es-huida.esta-puesta) .jg-corredera { transform: translateY(calc(300% + 0.75rem)); }
  .jg-tab { padding: 0.7rem 0.8rem; }
  .jg-tab-txt span { white-space: normal; }
  .jg-tab-nuevo { top: 50%; transform: translateY(-50%); }
}
.cs-juego.es-huida { --ec-juego: rgba(63, 224, 197, 0.3); }
.cs-juegos { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

/* --- el escenario: el lienzo 3D y, encima, lo que se pinta con HTML --- */
.huida-zona {
  --hd-a: #3fe0c5; --hd-a2: #b7fff1; --hd-oscuro: #04211c; --hd-glow: rgba(63, 224, 197, 0.32); --hd-gema: #4df0ff;
  --r-comun: #9aa3b5; --r-raro: #4da6ff; --r-epico: #b46bff; --r-legendario: #ffb43b; --r-especial: #3fe0c5;
}
.hd-juego { margin-top: clamp(1.2rem, 3vw, 1.8rem); display: grid; gap: 0.7rem; }
.hd-escena {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; background: #0d0907;
  height: min(78vh, 40rem); min-height: 22rem; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: var(--bevel), 0 0 0 1px rgba(63, 224, 197, 0.3), 0 0 0 5px rgba(63, 224, 197, 0.05), 0 40px 80px -40px var(--hd-glow);
}
.hd-escena:fullscreen { height: 100vh; border-radius: 0; }
.hd-escena:-webkit-full-screen { height: 100vh; border-radius: 0; }
.hd-lienzo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
@media (max-width: 760px) { .hd-escena { height: min(76svh, 42rem); min-height: 26rem; } }
@media (min-width: 1100px) { .hd-escena { height: clamp(30rem, 62vh, 44rem); } }

.hd-capa { position: absolute; inset: 0; z-index: 2; display: grid; pointer-events: none; }
.hd-capa[hidden] { display: none; }
.hd-capa button, .hd-capa a, .hd-fin-caja, .hd-pausa-caja, .hd-intro-caja { pointer-events: auto; }
.hd-et { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }

/* rarezas: un color para cada una, en bordes, etiquetas y brillos */
[data-r="comun"] { --r: var(--r-comun); }
[data-r="raro"] { --r: var(--r-raro); }
[data-r="epico"] { --r: var(--r-epico); }
[data-r="legendario"] { --r: var(--r-legendario); }
[data-r="especial"] { --r: var(--r-especial); }
.hd-rareza { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.12rem 0.55rem; border-radius: 999px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #0b0b10; background: var(--r, var(--r-comun)); box-shadow: 0 0 16px -2px var(--r, transparent); }

/* menu: el personaje gira detras; arriba, quien es; abajo, el boton */
.hd-menu { align-content: space-between; padding: clamp(0.8rem, 2.4vw, 1.3rem); background: linear-gradient(180deg, rgba(5, 3, 2, 0.55), transparent 30%, transparent 55%, rgba(5, 3, 2, 0.82)); }
.hd-menu-cab { display: grid; gap: 0.2rem; justify-items: start; width: fit-content; max-width: min(18rem, 70%); padding: 0.7rem 0.95rem; border-radius: 14px; background: rgba(8, 6, 10, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.hd-menu-cab strong { font-family: var(--font-display); font-size: clamp(1.5rem, 4.4vw, 2.2rem); line-height: 1; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); }
.hd-menu-cab small { color: rgba(255, 255, 255, 0.8); font-size: 0.78rem; }
.hd-flecha { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; padding: 0 0 0.2rem; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.9rem; line-height: 1; color: #fff; background: rgba(8, 6, 10, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.hd-flecha:hover { background: rgba(63, 224, 197, 0.3); }
.hd-flecha.es-izq { left: clamp(0.5rem, 2vw, 1.2rem); }
.hd-flecha.es-der { right: clamp(0.5rem, 2vw, 1.2rem); }
.hd-flecha[hidden] { display: none; }
.hd-menu-pie { display: grid; justify-items: center; gap: 0.6rem; }
.hd-menu-fila { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.hd-menu-fila .btn { padding: 0.6em 1.1em; font-size: 0.74rem; }
.hd-correr { position: relative; min-width: min(18rem, 78vw); padding: 0.95rem 2rem; font-size: 1.15rem; letter-spacing: 0.04em; color: var(--hd-oscuro); background: linear-gradient(180deg, var(--hd-a2), var(--hd-a)); box-shadow: 0 0 0 1px var(--hd-a2), 0 10px 30px -8px var(--hd-glow); }
.hd-correr::after { content: ""; position: absolute; inset: -4px; border-radius: 10px; box-shadow: 0 0 0 2px var(--hd-a); opacity: 0; animation: hd-latido 2.4s ease-out infinite; pointer-events: none; }
@keyframes hd-latido { 0% { transform: scale(0.97); opacity: 0.7; } 70%, 100% { transform: scale(1.1); opacity: 0; } }
.hd-correr:hover:not(:disabled) { filter: brightness(1.07); }
.hd-correr:disabled { cursor: wait; opacity: 0.6; }
.hd-correr:disabled::after { animation: none; }
.hd-menu-nota { margin: 0; max-width: 42ch; text-align: center; font-size: 0.8rem; line-height: 1.5; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
.hd-menu-nota b { color: var(--hd-a2); }

/* la cuenta atras */
.hd-cuenta { place-items: center; background: radial-gradient(circle, rgba(0, 0, 0, 0.18), transparent 60%); }
.hd-cuenta b { font-family: var(--font-display); font-size: clamp(5rem, 22vw, 10rem); line-height: 1; color: #fff; text-shadow: 0 0 40px var(--hd-glow), 0 4px 0 rgba(0, 0, 0, 0.5); animation: hd-pop 0.6s ease-out both; }
@keyframes hd-pop { from { transform: scale(1.7); opacity: 0; } 30% { opacity: 1; } to { transform: scale(0.92); opacity: 0.9; } }

/* el tutorial: la pista que sale cuando casi se para el tiempo */
.hd-tuto { align-items: start; justify-items: center; padding: clamp(0.8rem, 3vw, 1.4rem) 1rem; }
.hd-tuto-caja { display: grid; justify-items: center; gap: 0.25rem; min-width: min(17rem, 92%); max-width: 22rem; padding: 0.85rem 1.2rem 0.8rem; border-radius: 16px; text-align: center; color: #fff;
  background: rgba(8, 10, 14, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(63, 224, 197, 0.55), 0 14px 40px -12px rgba(0, 0, 0, 0.8); }
.hd-tuto-caja strong { font-family: var(--font-display); font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1; letter-spacing: 0.02em; color: var(--hd-a2); }
.hd-tuto-caja small { font-size: 0.8rem; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }
.hd-tuto-ico { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 12px; font-size: 1.9rem; line-height: 1; color: var(--hd-oscuro); background: linear-gradient(180deg, var(--hd-a2), var(--hd-a)); animation: hd-rebote 0.9s ease-in-out infinite alternate; }
.hd-tuto-ico.es-arriba { animation-name: hd-sube; } .hd-tuto-ico.es-abajo { animation-name: hd-baja; } .hd-tuto-ico.es-lados { animation-name: hd-lado; }
@keyframes hd-rebote { to { transform: translateY(-4px); } }
@keyframes hd-sube { from { transform: translateY(5px); } to { transform: translateY(-7px); } }
@keyframes hd-baja { from { transform: translateY(-7px); } to { transform: translateY(5px); } }
@keyframes hd-lado { from { transform: translateX(-9px); } to { transform: translateX(9px); } }
.hd-tuto-pasos { display: flex; gap: 0.35rem; margin-top: 0.25rem; }
.hd-tuto-pasos i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.hd-tuto-pasos i.es-hecho { background: var(--hd-a); box-shadow: 0 0 10px var(--hd-a); }

/* la primera vez: tres cosas que saber */
.hd-intro { place-items: center; padding: 1rem; background: rgba(4, 3, 2, 0.72); pointer-events: auto; }
.hd-intro-caja { display: grid; gap: 0.7rem; justify-items: center; width: min(27rem, 100%); padding: 1.3rem 1.3rem 1.2rem; border-radius: 18px; text-align: center; background: linear-gradient(180deg, #1a1612, #0c0a08); box-shadow: var(--bevel), 0 0 0 1px rgba(63, 224, 197, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.85); }
.hd-intro-caja h3 { margin: 0; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: #fff; }
.hd-intro-lista { display: grid; gap: 0.5rem; width: 100%; margin: 0.2rem 0 0.3rem; padding: 0; list-style: none; text-align: left; }
.hd-intro-lista li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: center; gap: 0.7rem; padding: 0.5rem 0.7rem; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 0.84rem; line-height: 1.4; color: var(--ink-dim); }
.hd-intro-lista li b { color: #fff; display: block; font-size: 0.92rem; }
.hd-intro-lista .hd-intro-ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; font-size: 1.4rem; color: var(--hd-oscuro); background: linear-gradient(180deg, var(--hd-a2), var(--hd-a)); }

/* avisos que salen un momento (logros, cosas desbloqueadas) */
.hd-toasts { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 6; display: grid; gap: 0.5rem; justify-items: end; pointer-events: none; max-width: min(22rem, 86%); }
.hd-toast { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.1rem 0.7rem; align-items: center; padding: 0.6rem 0.9rem; border-radius: 14px; color: #fff; background: rgba(10, 12, 16, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--r, rgba(255, 210, 63, 0.7)), 0 12px 30px -10px rgba(0, 0, 0, 0.8); animation: hd-entra 0.4s ease-out both; }
.hd-toast.es-sale { animation: hd-sale 0.4s ease-in both; }
.hd-toast-ico { grid-row: 1 / 3; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; font-size: 1.3rem; color: #2a1c00; background: linear-gradient(180deg, #ffe9a0, #ffc83c); }
.hd-toast b { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #ffd86a; }
.hd-toast span { font-size: 0.86rem; font-weight: 700; }
@keyframes hd-entra { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hd-sale { to { transform: translateX(110%); opacity: 0; } }

/* lo de arriba mientras se corre */
.hd-hud { align-content: start; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.5rem; padding: clamp(0.6rem, 2vw, 1rem); align-items: start; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 22%); }
.hd-hud-izq { display: grid; gap: 0.2rem; justify-items: start; }
.hd-dist { display: inline-flex; align-items: baseline; gap: 0.25rem; font-family: var(--font-display); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.hd-dist b { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.hd-dist small { font-size: 1rem; opacity: 0.8; }
.hd-gemas { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.18rem 0.6rem 0.18rem 0.4rem; border-radius: 999px; font-weight: 800; font-size: 0.95rem; color: #fff; background: rgba(0, 0, 0, 0.45); }
.hd-gemas svg, .hd-gema-ico svg { display: block; width: 1.05rem; height: 1.05rem; image-rendering: pixelated; }
.hd-poderes { display: flex; flex-wrap: wrap; justify-content: center; align-content: start; gap: 0.35rem; }
.hd-poder { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.22rem 0.55rem 0.22rem 0.4rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; color: #fff; background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 1px var(--p); }
.hd-poder i { width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--p); box-shadow: 0 0 10px var(--p); }
.hd-hud-der { display: flex; gap: 0.35rem; }
.hd-mini { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: 10px; cursor: pointer; color: #fff; font-size: 0.95rem; background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.hd-mini:hover { background: rgba(0, 0, 0, 0.7); }
.hd-mini[aria-pressed="false"] { opacity: 0.55; }
.hd-mini svg { display: block; width: 1.15rem; height: 1.15rem; }
.hd-reto { grid-column: 1 / -1; display: grid; gap: 0.18rem; max-width: 20rem; }
.hd-reto-txt { font-size: 0.7rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.hd-reto-barra { display: block; height: 5px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.hd-reto-barra i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--hd-a), var(--hd-a2)); }
.hd-hud.es-tuto .hd-reto { display: none; }

/* pausa y fin */
.hd-pausa, .hd-fin { place-items: center; padding: 1rem; background: rgba(4, 3, 2, 0.66); pointer-events: auto; }
.hd-pausa-caja, .hd-fin-caja { display: grid; gap: 0.7rem; justify-items: center; text-align: center; width: min(24rem, 100%); padding: 1.2rem 1.2rem 1.1rem; border-radius: 16px; background: linear-gradient(180deg, #181410, #0c0a08); box-shadow: var(--bevel), 0 0 0 1px rgba(63, 224, 197, 0.35), 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.hd-pausa-caja h3, .hd-fin-caja h3 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.hd-fin-dist { font-family: var(--font-display); font-size: clamp(2.6rem, 9vw, 3.8rem); line-height: 1; color: var(--hd-a2); text-shadow: 0 0 30px var(--hd-glow); }
.hd-fin-dist small { font-size: 1.2rem; opacity: 0.8; }
.hd-fin-caja.es-record .hd-fin-dist { color: #ffe27a; text-shadow: 0 0 34px rgba(255, 200, 60, 0.5); }
.hd-chapa { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #2a1c00; background: linear-gradient(180deg, #ffe9a0, #ffc83c); }
.hd-fin-datos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.9rem; margin: 0; padding: 0; list-style: none; font-size: 0.86rem; color: var(--ink-dim); }
.hd-fin-datos b { color: var(--ink); }
.hd-fin-datos .hd-gema-ico { display: inline-block; vertical-align: -0.2em; }
.hd-fin-retos { display: grid; gap: 0.3rem; width: 100%; margin: 0; padding: 0; list-style: none; }
.hd-fin-retos li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.35rem 0.7rem; border-radius: 8px; font-size: 0.82rem; font-weight: 700; color: #8ff2b6; background: #14231b; }
.hd-fin-logros li { color: #ffe27a; background: #2a2208; }
.hd-fin-dinero { margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: #8ff2b6; }
.hd-fin-nota { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--ink-dim); }
.hd-fin-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }

/* sin 3D / cargando */
.hd-carga, .hd-sin3d { place-items: center; align-content: center; gap: 0.6rem; padding: 1.5rem; text-align: center; background: radial-gradient(70% 60% at 50% 40%, rgba(63, 224, 197, 0.14), transparent 70%), #0b0907; pointer-events: auto; }
.hd-carga p, .hd-sin3d p { margin: 0; max-width: 34ch; font-size: 0.88rem; line-height: 1.55; color: var(--ink-dim); }
.hd-carga-barra { display: block; width: min(14rem, 60vw); height: 5px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.hd-carga-barra i { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, var(--hd-a), var(--hd-a2)); animation: hd-vaiven 1.1s ease-in-out infinite alternate; }
@keyframes hd-vaiven { from { transform: translateX(-30%); } to { transform: translateX(160%); } }
.hd-teclas { margin: 0; text-align: center; font-size: 0.78rem; color: var(--ink-faint); }
.hd-solo-tactil { display: none; }
@media (pointer: coarse) { .hd-solo-teclado { display: none; } .hd-solo-tactil { display: inline; } }
.hd-teclas kbd { padding: 0.05rem 0.4rem; border-radius: 4px; font: inherit; font-weight: 700; color: var(--ink-dim); background: var(--panel-sunk); box-shadow: var(--bevel); }

/* lo tuyo, de un vistazo: gemas, mejor carrera, racha y retos de hoy */
.hd-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.6rem; }
.hd-dato { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 0.75rem; padding: 0.7rem 0.9rem; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%), var(--panel-sunk); box-shadow: var(--bevel); }
.hd-dato-ico { grid-row: 1 / 3; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; font-size: 1.3rem; background: rgba(255, 255, 255, 0.06); }
.hd-dato-ico svg { display: block; width: 1.5rem; height: 1.5rem; image-rendering: pixelated; }
.hd-dato span { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.hd-dato b { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hd-aro { grid-row: 1 / 3; position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 0.72rem; font-weight: 800; color: var(--hd-a2);
  background: conic-gradient(var(--hd-a) calc(var(--p, 0) * 1%), rgba(255, 255, 255, 0.1) 0); }
.hd-aro::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--panel-sunk); }
.hd-aro b { position: relative; font-family: inherit; font-size: inherit; }

/* --- las secciones debajo --- */
.hd-tabs { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; padding: 0.2rem 0.1rem 0.4rem; margin: 0.4rem -0.1rem 0; }
.hd-tabs::-webkit-scrollbar { display: none; }
.hd-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1.05rem; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.84rem; font-weight: 700; color: var(--ink-dim); background: var(--panel-sunk); box-shadow: var(--bevel); }
.hd-tab:hover { color: var(--ink); }
.hd-tab[aria-selected="true"] { color: var(--hd-oscuro); background: linear-gradient(180deg, var(--hd-a2), var(--hd-a)); box-shadow: 0 0 0 1px var(--hd-a2), 0 8px 22px -10px var(--hd-glow); }
.hd-tab-punto { min-width: 1.1rem; padding: 0.05rem 0.3rem; border-radius: 999px; font-size: 0.62rem; line-height: 1.15; text-align: center; color: #fff; background: #e0452d; }
.hd-vista { display: grid; gap: 0.8rem; align-content: start; min-height: 10rem; }
.hd-vista:focus { outline: none; }
.hd-intro-txt { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--ink-dim); max-width: 72ch; }
.hd-intro-txt strong { color: var(--ink); }
.hd-aviso { margin: 0; padding: 0.6rem 0.9rem; border-radius: 10px; font-size: 0.84rem; line-height: 1.5; color: #ffd9a0; background: #2a1d0a; box-shadow: var(--bevel); }
.hd-vacio { margin: 0; font-size: 0.84rem; color: var(--ink-faint); }
.hd-nota { margin: 0; font-size: 0.8rem; line-height: 1.55; color: var(--ink-faint); max-width: 75ch; }
.hd-nota strong { color: var(--ink-dim); }

/* las tarjetas de cosas (armario y tienda) */
.hd-cuadricula { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.2rem, 1fr)); gap: 0.7rem; }
.hd-it { position: relative; overflow: hidden; display: grid; gap: 0.35rem; align-content: start; padding: 0.55rem; border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--r, #888) 14%, transparent), transparent 55%), var(--panel-sunk); box-shadow: var(--bevel), inset 0 2px 0 var(--r, transparent); }
.hd-it.es-puesta { box-shadow: var(--bevel), 0 0 0 2px var(--hd-a), 0 0 24px -6px var(--hd-glow); }
.hd-it.es-bloqueada .hd-it-img img { filter: grayscale(0.7) brightness(0.65); }
.hd-it-img { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: radial-gradient(70% 60% at 50% 75%, color-mix(in srgb, var(--r, #3fe0c5) 26%, transparent), transparent 76%), linear-gradient(180deg, #1d1a24, #0e0c12); }
.hd-it-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hd-it-img .hd-glifo { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 0 14px var(--r, #fff)); }
.hd-it-img .hd-estela-ico { width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--e); box-shadow: 0 0 34px 6px var(--e); opacity: 0.9; }
.hd-it.es-legendario::after, .hd-it[data-r="legendario"]::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 230, 160, 0.16), transparent); animation: hd-brillo 4.5s ease-in-out infinite; }
@keyframes hd-brillo { 0%, 55% { transform: translateX(0) skewX(-12deg); } 100% { transform: translateX(520%) skewX(-12deg); } }
.hd-it-nom { display: flex; align-items: baseline; justify-content: space-between; gap: 0.4rem; font-weight: 800; color: var(--ink); font-size: 0.9rem; }
.hd-it-r { font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--r, var(--ink-faint)); }
.hd-it-desc { margin: 0; font-size: 0.73rem; line-height: 1.4; color: var(--ink-dim); min-height: 2.1em; }
.hd-it-via { display: inline-flex; align-items: center; gap: 0.3rem; width: fit-content; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.66rem; font-weight: 700; color: var(--ink-dim); background: rgba(255, 255, 255, 0.07); }
.hd-it-via svg { display: block; width: 0.8rem; height: 0.8rem; image-rendering: pixelated; }
.hd-it-pie { display: grid; gap: 0.3rem; }
.hd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; padding: 0.45rem 0.6rem; border: 0; border-radius: 9px; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 800; text-decoration: none; text-align: center; color: var(--hd-oscuro); background: linear-gradient(180deg, var(--hd-a2), var(--hd-a)); }
.hd-btn:hover:not(:disabled) { filter: brightness(1.08); }
.hd-btn:disabled { cursor: not-allowed; color: var(--ink-faint); background: #26222c; box-shadow: var(--bevel); }
.hd-btn.es-suave { color: var(--ink); background: #2b2733; box-shadow: var(--bevel); }
.hd-btn.es-dinero { color: #2a1c00; background: linear-gradient(180deg, #ffe9a0, #ffc83c); }
.hd-btn.es-puesto, .hd-btn.es-puesto:disabled { color: #8ff2b6; background: #17261e; cursor: default; }
.hd-btn svg { display: block; width: 0.95rem; height: 0.95rem; image-rendering: pixelated; }

/* filtros y categorias */
.hd-filtros { display: grid; gap: 0.55rem; }
.hd-filtro { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.8rem; }
.hd-filtro-et { flex: 0 0 8.2rem; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.hd-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
@media (max-width: 640px) { .hd-filtro-et { flex-basis: 100%; } }
.hd-chip { padding: 0.32rem 0.75rem; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.76rem; font-weight: 700; color: var(--ink-dim); background: #221d28; box-shadow: var(--bevel); }
.hd-chip:hover { color: var(--ink); }
.hd-chip[aria-pressed="true"] { color: var(--hd-oscuro); background: var(--hd-a2); box-shadow: none; }

/* los packs */
.hd-packs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: 0.7rem; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: thin; }
.hd-pack { display: grid; gap: 0.35rem; align-content: space-between; padding: 0.85rem 0.95rem; border-radius: 14px; background: linear-gradient(130deg, #2e2409, #15110a 70%); box-shadow: var(--bevel), 0 0 0 1px rgba(255, 200, 60, 0.4); }
.hd-pack strong { font-family: var(--font-display); font-size: 1.15rem; color: #ffe27a; }
.hd-pack p { margin: 0; font-size: 0.78rem; line-height: 1.45; color: var(--ink-dim); }
.hd-pack-ahorro { font-size: 0.7rem; font-weight: 800; color: #8ff2b6; }
.hd-pack-minis { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.hd-pack-minis img { width: 2.1rem; height: 2.8rem; object-fit: contain; border-radius: 6px; background: rgba(255, 255, 255, 0.05); }
.hd-pack .hd-btn { width: auto; justify-self: start; padding: 0.5rem 1rem; }

/* el armario: a la izquierda las ranuras, a la derecha lo que tienes para esa ranura */
.hd-armario { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: 0.9rem; align-items: start; }
@media (max-width: 760px) { .hd-armario { grid-template-columns: 1fr; } }
.hd-ranuras { display: grid; gap: 0.35rem; }
@media (max-width: 760px) { .hd-ranuras { grid-auto-flow: column; grid-auto-columns: minmax(8.5rem, 1fr); overflow-x: auto; padding-bottom: 0.3rem; } }
.hd-ranura { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: center; gap: 0 0.6rem; padding: 0.45rem 0.6rem; border: 0; border-radius: 12px; cursor: pointer; font: inherit; text-align: left; color: var(--ink); background: var(--panel-sunk); box-shadow: var(--bevel), inset 3px 0 0 var(--r, transparent); }
.hd-ranura:hover { background: #211b17; }
.hd-ranura[aria-pressed="true"] { box-shadow: var(--bevel), inset 3px 0 0 var(--r, var(--hd-a)), 0 0 0 2px var(--hd-a); }
.hd-ranura-ico { grid-row: 1 / 3; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 9px; overflow: hidden; font-size: 1.2rem; background: rgba(255, 255, 255, 0.06); }
.hd-ranura-ico img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hd-ranura span { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.hd-ranura b { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-ranura em { font-style: normal; font-size: 0.62rem; color: var(--ink-faint); }

/* los retos del dia */
.hd-retos { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.hd-r { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.4rem 0.9rem; padding: 0.75rem 0.9rem; border-radius: 12px; background: var(--panel-sunk); box-shadow: var(--bevel); }
.hd-r-m { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; color: var(--hd-a2); min-width: 4.6rem; }
.hd-r-m small { font-size: 0.8rem; opacity: 0.75; }
.hd-r-txt strong { display: block; color: var(--ink); font-size: 0.92rem; }
.hd-r-txt span { font-size: 0.78rem; color: var(--ink-dim); }
.hd-r-pago { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.hd-r.es-hecho { box-shadow: var(--bevel), 0 0 0 1px rgba(143, 242, 182, 0.4); }
.hd-r.es-hecho .hd-r-pago, .hd-r.es-hecho .hd-r-m { color: #8ff2b6; }
.hd-r-raya { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; transform-origin: left; transform: scaleX(0); background: var(--hd-a); opacity: 0.8; }
.hd-resumen { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hd-res-dato { display: grid; gap: 0.1rem; min-width: 7.5rem; padding: 0.6rem 0.9rem; border-radius: 12px; background: var(--panel-sunk); box-shadow: var(--bevel); }
.hd-res-dato span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.hd-res-dato b { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); font-variant-numeric: tabular-nums; }

/* los logros */
.hd-logros { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem; }
.hd-logro { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.15rem 0.7rem; align-items: center; padding: 0.7rem 0.8rem; border-radius: 14px; background: var(--panel-sunk); box-shadow: var(--bevel); }
.hd-logro-ico { grid-row: 1 / 4; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; font-size: 1.35rem; color: var(--ink-faint); background: rgba(255, 255, 255, 0.06); }
.hd-logro.es-hecho { box-shadow: var(--bevel), 0 0 0 1px rgba(255, 210, 63, 0.45); }
.hd-logro.es-hecho .hd-logro-ico { color: #2a1c00; background: linear-gradient(180deg, #ffe9a0, #ffc83c); }
.hd-logro strong { font-size: 0.9rem; color: var(--ink); }
.hd-logro small { font-size: 0.74rem; line-height: 1.4; color: var(--ink-dim); }
.hd-logro-barra { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.hd-logro-barra i { display: block; height: 100%; width: 100%; transform-origin: left; background: var(--hd-a); }
.hd-logro.es-hecho .hd-logro-barra i { background: #ffc83c; }
.hd-logro-premio { grid-column: 2; font-size: 0.68rem; font-weight: 700; color: #ffd86a; }

/* clasificaciones */
.hd-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.8rem; }
.hd-top { display: grid; gap: 0.35rem; padding: 0.8rem 0.9rem; border-radius: 14px; background: var(--panel-sunk); box-shadow: var(--bevel); }
.hd-top h4 { margin: 0 0 0.2rem; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.hd-top ol { display: grid; gap: 0.25rem; margin: 0; padding: 0; list-style: none; counter-reset: top; }
.hd-top li { counter-increment: top; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: 0.5rem; align-items: baseline; font-size: 0.86rem; color: var(--ink-dim); }
.hd-top li::before { content: counter(top); font-family: var(--font-display); color: var(--ink-faint); }
.hd-top li:nth-child(-n+3)::before { color: var(--hd-a2); }
.hd-top li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.hd-top li b { font-variant-numeric: tabular-nums; color: var(--hd-a2); }

/* como se juega */
.hd-como { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.hd-paso { display: grid; gap: 0.3rem; align-content: start; padding: 0.85rem 0.95rem; border-radius: 14px; background: var(--panel-sunk); box-shadow: var(--bevel); }
.hd-paso strong { color: var(--ink); font-size: 0.95rem; }
.hd-paso p { margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--ink-dim); }
.hd-paso kbd { padding: 0.05rem 0.4rem; border-radius: 4px; font: inherit; font-size: 0.78rem; font-weight: 700; color: var(--ink); background: #26222c; box-shadow: var(--bevel); }

@media (prefers-reduced-motion: reduce) {
  .hd-cuenta b, .hd-carga-barra i, .hd-correr::after, .hd-tuto-ico, .hd-toast, .hd-it::after { animation: none !important; }
}

/* --- el candado: La huida todavia no esta abierta. Se ve el juego corriendo solo y "Correr" avisa de que esta cerrado --- */
.hd-candado { grid-template-rows: auto 1fr auto; padding: clamp(0.8rem, 2.5vw, 1.4rem); gap: 0.6rem; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 28%, transparent 62%, rgba(0, 0, 0, 0.55)); }
.hd-cand-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.hd-cand-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(20, 14, 8, 0.72); border: 1px solid rgba(255, 211, 107, 0.5); color: #ffd36b; font: 700 0.72rem/1 var(--font-body, inherit); letter-spacing: 0.14em; text-transform: uppercase; backdrop-filter: blur(6px); }
.hd-cand-chip small { font: 500 0.68rem/1 var(--font-body, inherit); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.65); padding-left: 0.5rem; border-left: 1px solid rgba(255, 255, 255, 0.25); }
.hd-cand-ico { display: inline-block; width: 1.05em; height: 1.05em; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffd36b' d='M5 7h6v1h1v6H4V8h1z'/%3E%3Cpath fill='%23b98419' d='M4 12h8v2H4z'/%3E%3Cpath fill='%23140e08' d='M7 9h2v3H7z'/%3E%3Cpath fill='%23cfd6dd' d='M6 2h4v1h1v1h1v3h-2V5H7v2H5V4h1V3z'/%3E%3C/svg%3E"); }
.hd-cand-bioma { font: 700 clamp(1.1rem, 3.4vw, 1.7rem)/1 var(--display, inherit); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.hd-cand-pie { grid-row: 3; display: grid; justify-items: center; gap: 0.55rem; }
.hd-correr.es-cerrado { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; width: min(100%, 17rem); background: linear-gradient(180deg, #5a5348, #3a352d); color: rgba(255, 255, 255, 0.85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px rgba(0, 0, 0, 0.5); cursor: not-allowed; }
.hd-correr.es-cerrado::after { display: none; }
.hd-cand-aviso { min-height: 1.3em; margin: 0; padding: 0.35rem 0.8rem; border-radius: 0.6rem; background: rgba(20, 14, 8, 0.72); color: #ffd36b; text-align: center; font-weight: 600; backdrop-filter: blur(6px); }
.hd-cand-aviso:empty { visibility: hidden; }
.es-sacude { animation: hd-sacude 0.45s ease; }
@keyframes hd-sacude { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.huida-zona.es-candado .hd-tabs, .huida-zona.es-candado .hd-vista, .huida-zona.es-candado .hd-datos, .huida-zona.es-candado .hd-teclas, .huida-zona.es-candado .hd-nota { display: none; }
.jg-tab.es-candado .jg-tab-nuevo { background: rgba(255, 211, 107, 0.16); color: #ffd36b; border-color: rgba(255, 211, 107, 0.45); }

/* lo que viene: los tres mundos, debajo de la escena */
.hd-previa { margin-top: 1.4rem; display: grid; gap: 0.8rem; }
.hd-previa[hidden] { display: none; }
.hd-previa h3 { margin: 0; font: 700 clamp(1.2rem, 3.4vw, 1.7rem)/1.1 var(--display, inherit); }
.hd-previa-txt { margin: 0; max-width: 60ch; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.6; }
.hd-biomas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.hd-bioma { position: relative; display: grid; align-content: start; gap: 0.3rem; padding: 0.9rem 0.95rem 1rem; text-align: left; color: inherit; font: inherit; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.12); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.hd-bioma:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); }
.hd-bioma[aria-pressed="true"] { border-color: var(--hd-b, #3fe0c5); background: linear-gradient(180deg, color-mix(in srgb, var(--hd-b, #3fe0c5) 22%, transparent), rgba(255, 255, 255, 0.02)); box-shadow: 0 0 0 1px var(--hd-b, #3fe0c5) inset; }
.hd-bioma[data-bioma="0"] { --hd-b: #d89a4a; } .hd-bioma[data-bioma="1"] { --hd-b: #ff6a2a; } .hd-bioma[data-bioma="2"] { --hd-b: #b36bff; }
.hd-bioma-n { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--hd-b); color: #140e08; font-weight: 800; font-size: 0.8rem; }
.hd-bioma strong { font-size: 1.02rem; }
.hd-bioma > span:last-child { font-size: 0.82rem; line-height: 1.5; color: var(--ink-dim); }
.hd-previa-lista { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.hd-previa-lista li { padding: 0.4rem 0.75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); font-size: 0.8rem; color: var(--ink-dim); }
@media (max-width: 760px) { .hd-biomas { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .es-sacude { animation: none; } .hd-bioma { transition: none; } }

/* el gran premio vive en su propia pestaña (se abre desde el perfil) */
.cs-gp-volver { margin: 0.2rem 0 0.6rem; font-size: 0.85rem; }
.cs-gp-volver a { color: var(--ink-dim); text-decoration: none; }
.cs-gp-volver a:hover { color: #fff; text-decoration: underline; }
.cs-perfil-premios { justify-self: start; margin-top: 0.4rem; }

/* ============================================================
   18. MAS VISUAL: LA MINA, LA FORJA Y EL PREMIO DE LA RUEDA
   Todo estatico (degradados) o de un solo disparo (sin bucles): no
   cuesta nada cuando la pagina esta quieta.
   ============================================================ */

/* --- la mina: piedra con grietas y cuarzo, cada bloque algo distinto --- */
.mina-bloque:not(.es-abierto) {
  background: linear-gradient(180deg, #7b756c 0%, #58524b 38%, #433e38 100%);
}
.mina-bloque:not(.es-abierto) .mina-cara {
  opacity: 1;
  background-repeat: no-repeat;
  background-size: 30% 34%, 26% 28%, 3px 3px, 2px 2px, 3px 3px, 100% 100%;
  background-position: 18% 22%, 74% 70%, 62% 24%, 30% 70%, 82% 36%, 0 0;
  background-image:
    linear-gradient(118deg, transparent 46%, rgba(0, 0, 0, 0.3) 47.5%, rgba(0, 0, 0, 0.3) 50%, transparent 51.5%),
    linear-gradient(62deg, transparent 46%, rgba(0, 0, 0, 0.26) 47.5%, rgba(0, 0, 0, 0.26) 50%, transparent 51.5%),
    linear-gradient(#dfe9ee, #dfe9ee),
    linear-gradient(#bfd4de, #bfd4de),
    linear-gradient(#e9e2c8, #e9e2c8),
    radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, 0.13), transparent 60%);
}
.mina-bloque:not(.es-abierto):nth-child(3n + 1) .mina-cara { background-position: 70% 20%, 22% 66%, 28% 30%, 74% 74%, 46% 52%, 0 0; }
.mina-bloque:not(.es-abierto):nth-child(3n + 2) .mina-cara { background-position: 24% 60%, 66% 26%, 76% 62%, 20% 24%, 54% 80%, 0 0; transform: scaleX(-1); }
.mina-bloque:not(.es-abierto):nth-child(4n + 3) { filter: brightness(0.94); }
.mina-bloque:not(.es-abierto):nth-child(7n + 2) { background: linear-gradient(180deg, #716f66 0%, #4f5148 40%, #3c3d36 100%); }
.mina-bloque:not(.es-abierto):hover:not(:disabled) { filter: brightness(1.18); }

/* la gema aparece con un resplandor que se abre y se apaga (una vez) */
.mina-bloque.es-gema svg { filter: drop-shadow(0 0 7px rgba(143, 242, 182, 0.75)); }
.mina-bloque.es-gema::after, .mina-bloque.es-tnt::after {
  content: ''; position: absolute; inset: -34%; z-index: 2; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(143, 242, 182, 0.7), rgba(143, 242, 182, 0) 62%);
  animation: ec-mina-brillo 0.75s ease-out;
}
.mina-bloque.es-tnt::after { background: radial-gradient(circle, rgba(255, 150, 90, 0.8), rgba(255, 70, 40, 0) 62%); }
.mina-bloque.es-estallo::after { animation-duration: 1.1s; inset: -90%; background: radial-gradient(circle, rgba(255, 238, 190, 0.95), rgba(255, 110, 50, 0.5) 38%, rgba(255, 70, 40, 0) 66%); }
@keyframes ec-mina-brillo { from { scale: 0.3; opacity: 1; } to { scale: 1.35; opacity: 0; } }

/* --- la forja: un yunque de verdad (con cuerno, cintura y base) sobre su tocon --- */
.fj-base {
  width: clamp(8.4rem, 31vw, 12rem);
  height: clamp(3.2rem, 9.5vw, 4.4rem);
  translate: -9% 0;
  background:
    linear-gradient(180deg, #8d8d99 0, #6a6a75 8%, #3c3c44 9%, #2d2d34 52%, #1c1c21 100%);
  box-shadow: none;
  clip-path: polygon(22% 0, 100% 0, 100% 24%, 90% 33%, 77% 39%, 75% 71%, 93% 100%, 13% 100%, 30% 71%, 30% 39%, 22% 35%, 9% 27%, 0 21%);
}
/* la cara de arriba, que se pone al rojo cuando hay pieza en el fuego */
.fj-base::after {
  content: ''; position: absolute; left: 22%; right: 0; top: 0; width: auto; height: 9%; transform: none;
  background: linear-gradient(180deg, #ffd39a, #ff8a3d); box-shadow: none; opacity: 0; transition: opacity 0.6s ease;
}
.fj-base::before {
  content: ''; position: absolute; left: 0; top: 0; width: 28%; height: 24%;
  background: linear-gradient(180deg, #ffd39a, #ff8a3d); opacity: 0; transition: opacity 0.6s ease;
  clip-path: polygon(78% 0, 100% 0, 100% 100%, 0 82%);
}
.fj-escena.es-viva .fj-base::after, .fj-escena.es-viva .fj-base::before { opacity: 0.9; }
/* el tocon */
.fj-yunque::after {
  content: ''; width: 46%; height: clamp(0.9rem, 3vw, 1.4rem); margin-top: -1px; translate: -9% 0;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #4a3322, #2c1e14);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.9);
}
/* el calor sobre la cara del yunque */
.fj-yunque::before {
  content: ''; position: absolute; left: 50%; top: calc(100% - clamp(3.2rem, 9.5vw, 4.4rem) - clamp(0.9rem, 3vw, 1.4rem) - 1.4rem);
  width: 70%; height: 3.6rem; translate: -50% 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 150, 60, 0.7), transparent 70%);
  opacity: 0; transition: opacity 0.6s ease;
}
.fj-escena.es-viva .fj-yunque::before { opacity: 1; }
.fj-escena.es-aguanta .fj-yunque::before { background: radial-gradient(50% 50% at 50% 50%, rgba(120, 200, 255, 0.75), transparent 70%); opacity: 1; }

/* --- el premio de la rueda: haces de luz del color de la rareza (fijos) --- */
.col-rueda .rueda-premio.r-epico::before, .col-rueda .rueda-premio.r-legendario::before, .col-rueda .rueda-premio.r-mitico::before {
  content: ''; position: absolute; left: 50%; top: -85%; width: 150%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, var(--tono) 0 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 62%); mask-image: radial-gradient(circle, #000 0, transparent 62%);
  opacity: 0.3; animation: ec-premio-haz 1.1s ease-out backwards;
}
.col-rueda .rueda-premio.r-mitico::before { opacity: 0.42; }
.col-rueda .rueda-premio > .premio-rareza, .col-rueda .rueda-premio > h2, .col-rueda .rueda-premio > p { position: relative; z-index: 1; }
@keyframes ec-premio-haz { from { opacity: 0; scale: 0.6; } }

@media (prefers-reduced-motion: reduce) {
  .mina-bloque.es-gema::after, .mina-bloque.es-tnt::after, .col-rueda .rueda-premio::before { animation: none !important; }
  .mina-bloque.es-gema::after, .mina-bloque.es-tnt::after { display: none; }
}

/* la vida extra (una al dia, con estrellas) */
.hd-vida { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem 0.9rem; align-items: center; padding: 0.85rem 1rem; border-radius: 14px; border: 1px solid rgba(255, 111, 143, 0.35); background: linear-gradient(135deg, rgba(255, 111, 143, 0.12), rgba(255, 111, 143, 0.02) 60%), #17121c; }
.hd-vida.es-lista { border-color: rgba(143, 242, 182, 0.5); background: linear-gradient(135deg, rgba(143, 242, 182, 0.12), rgba(143, 242, 182, 0.02) 60%), #121a17; }
.hd-vida-grande { grid-row: 1 / 3; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; font-size: 1.7rem; color: #ff6f8f; background: rgba(255, 111, 143, 0.12); text-shadow: 0 0 14px rgba(255, 111, 143, 0.7); }
.hd-vida.es-lista .hd-vida-grande { color: #8ff2b6; background: rgba(143, 242, 182, 0.12); text-shadow: 0 0 14px rgba(143, 242, 182, 0.6); }
.hd-vida-txt strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.hd-vida-txt p { margin: 0.15rem 0 0; font-size: 0.78rem; line-height: 1.45; color: var(--ink-dim); max-width: 62ch; }
.hd-vida-pie { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; }
.hd-vida-pie .hd-btn { width: auto; padding: 0.45rem 1rem; }
.hd-btn.es-vida { color: #3a0b18; background: linear-gradient(180deg, #ffb3c4, #ff6f8f); }
.hd-vida-estado { font-size: 0.78rem; font-weight: 700; color: var(--ink-faint); }
.hd-vida-estado.es-ok { color: #8ff2b6; }
.hd-vida-pill { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.3rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; color: #ffb3c4; background: rgba(255, 111, 143, 0.16); box-shadow: 0 0 0 1px rgba(255, 111, 143, 0.5); }
.hd-poder.es-vida i { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; font-style: normal; font-size: 0.8rem; line-height: 1; color: var(--p); text-shadow: 0 0 10px var(--p); }
.hd-estrella-ico { color: #ffd86a; text-shadow: 0 0 10px rgba(255, 200, 60, 0.6); }
.hd-vida-ico { color: #ff6f8f; text-shadow: 0 0 10px rgba(255, 111, 143, 0.6); }
