/* Punchillion · guía «Cómo se juega» (WB-05). Sale de tools/web/guide.py; usa site.css como base. */

@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

/* --- Cabecera de la guía --- */
.g-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header) + 30px) 0 56px; text-align: center; }
.g-hero .scene .ridge { bottom: 0; }
.g-hero .wrap { display: grid; gap: 18px; justify-items: center; }
.g-hero h1 { font-size: clamp(3.4rem, 15vw, 6rem); }
.nav a[aria-current] { color: var(--gold); }

.basics { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; max-width: 920px; }
.basics li {
  display: grid; justify-items: center; gap: 4px; padding: 16px 10px 14px; border-radius: 18px; text-align: center;
  background: rgba(27, 12, 38, .82); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--hero), 0 6px 0 3px var(--ink);
}
.basics li:nth-child(odd) { transform: rotate(-1.5deg); }
.basics li:nth-child(even) { transform: rotate(1.5deg); }
.basics img { width: 52px; height: 52px; filter: drop-shadow(0 3px 0 var(--ink)); }
.basics b { font-family: var(--title); font-weight: 400; font-size: 1.6rem; line-height: 1; letter-spacing: .04em; color: var(--gold); text-transform: uppercase; }
.basics span { font-size: .98rem; color: var(--paper); }

/* --- Índice --- */
.toc { position: relative; z-index: 2; padding: 6px 0 20px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.toc a {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; text-decoration: none;
  background: var(--ink); border: 2px solid var(--void); color: var(--paper);
  font-family: var(--title); font-size: 1.1rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1.05;
  transition: transform .15s, border-color .15s;
}
.toc a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px) rotate(-1deg); }
.toc img { width: 34px; height: 34px; flex: none; object-fit: contain; }

/* --- Secciones --- */
.g-sec { padding: 52px 0; position: relative; }
.g-sec:nth-of-type(even) { background: linear-gradient(180deg, transparent, rgba(46, 18, 96, .5) 15%, rgba(46, 18, 96, .5) 85%, transparent); }
.g-grid { display: grid; gap: 26px; align-items: center; }
.g-text h2 { font-size: clamp(2.4rem, 10vw, 3.6rem); margin-bottom: 14px; }
.g-text h3 { font-family: var(--title); font-weight: 400; font-size: 1.6rem; letter-spacing: .05em; color: var(--orange); margin: 16px 0 4px; text-transform: uppercase; }
.g-text p { margin: 0 0 12px; }
.g-text b, .g-ultis b { color: var(--gold); font-weight: 400; }
.g-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.g-list li { position: relative; padding-left: 28px; }
.g-list li::before {
  content: ""; position: absolute; left: 2px; top: .35em; width: 16px; height: 16px;
  background: var(--orange); border: 2px solid var(--ink);
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 35%);
}

.tip {
  position: relative; margin: 18px 0 0; padding: 16px 16px 14px; border-radius: 14px;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  transform: rotate(-1deg); font-size: 1.05rem;
}
.tip span {
  position: absolute; top: -16px; left: 12px; padding: 3px 10px 1px; border-radius: 6px;
  background: var(--crimson); color: var(--cream); border: 2px solid var(--ink);
  font-family: var(--title); letter-spacing: .12em; text-transform: uppercase; font-size: 1rem; transform: rotate(-3deg);
}

/* --- Escenario de ilustración --- */
.stage {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3; width: 100%;
  border-radius: 22px; border: 5px solid var(--ink); background: var(--void);
  box-shadow: 0 0 0 4px var(--gold), 0 12px 0 4px var(--void), 0 24px 50px rgba(0, 0, 0, .45);
  --t: 2.6s;
}
.stage > img.st-sky { position: absolute; inset: 0; width: 100%; height: 64%; object-fit: cover; z-index: -2; }
.stage > img.st-ridge { position: absolute; left: -5%; width: 110%; max-width: none; top: 24%; z-index: -2; opacity: .95; }
.st-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: -1;
  background: radial-gradient(ellipse 60% 40% at 50% 70%, rgba(255, 230, 160, .45), transparent 70%), linear-gradient(180deg, #6fd06a, #3f9e4d); }
.st-ground::before { content: ""; position: absolute; inset: -6px 0 auto; height: 12px; background: #2f7a3c; border-radius: 50%; }
.st-ground.z2 { background: radial-gradient(ellipse 60% 40% at 50% 70%, rgba(255, 220, 160, .4), transparent 70%), linear-gradient(180deg, #e0905a, #a9523a); }
.st-ground.z2::before { background: #8c3f2c; }
.st-ground.z3 { background: linear-gradient(180deg, #5a2f3a, #2a1420); }
.st-ground.z3::before { background: #ff7a1a; height: 6px; }
.st-ground.z5 { background: radial-gradient(ellipse 60% 40% at 50% 70%, rgba(94, 242, 255, .25), transparent 70%), linear-gradient(180deg, #3b1d6b, #1c0e2a); }
.st-ground.z5::before { background: #7a3fd0; }

.sp { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: var(--s, 16%); aspect-ratio: 1; translate: -50% -50%; }
.sp img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp .acc-shield { inset: -18%; width: 136%; height: 136%; opacity: .85; }

.hand { position: absolute; width: 18%; z-index: 4; left: 50%; top: 52%; translate: -20% -10%; filter: drop-shadow(0 6px 0 rgba(27, 12, 38, .5)); }
.burst { position: absolute; left: 50%; top: 68%; width: 42%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; z-index: 3;
  border: 6px solid var(--cream); background: radial-gradient(circle, rgba(255, 243, 160, .55), rgba(255, 122, 26, .2) 60%, transparent 70%); opacity: 0; }
.pop { position: absolute; left: 50%; top: 40%; translate: -50% -50%; z-index: 5; opacity: 0;
  font-family: var(--title); font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1; color: var(--cream);
  -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill; text-shadow: -3px 0 0 var(--gem), 3px 0 0 var(--glitch), 0 5px 0 var(--ink); }
.say { position: absolute; left: 50%; top: 18%; translate: -50% -50%; z-index: 5; white-space: nowrap; opacity: 0;
  font-family: var(--title); text-transform: uppercase; font-size: clamp(1.4rem, 5vw, 2.2rem); line-height: 1; letter-spacing: .04em;
  color: var(--gold); -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.say.bad { color: var(--crimson); }
.say.good { color: #7dffa0; }
.tag { position: absolute; left: 10px; top: 10px; z-index: 6; padding: 4px 10px 2px; border-radius: 8px;
  font-family: var(--title); letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--gold); border: 2px solid var(--gold); }

/* Golpe rápido */
.an-tap .h-tap { animation: tap var(--t) ease-in-out infinite; }
@keyframes tap { 0%, 15% { transform: translate(30%, -40%) rotate(-10deg); } 28% { transform: none; } 40%, 100% { transform: translate(30%, -40%) rotate(-10deg); } }
.an-tap .b-tap { animation: burst var(--t) ease-out infinite; }
@keyframes burst { 0%, 27% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; } 50%, 100% { opacity: 0; transform: scale(1.05); } }
.an-tap .hit, .an-charge .hit, .an-ulti .hit { animation: fly var(--t) ease-in infinite; }
@keyframes fly {
  0%, 29% { transform: none; opacity: 1; }
  52% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.9); opacity: 0; }
  80% { transform: scale(.2); opacity: 0; }
  92%, 100% { transform: none; opacity: 1; }
}
.an-tap .p-tap { animation: popup var(--t) ease-out infinite; }
@keyframes popup { 0%, 30% { opacity: 0; transform: scale(.4); } 36% { opacity: 1; transform: scale(1.2); } 60% { opacity: 1; transform: translateY(-30%) scale(1); } 72%, 100% { opacity: 0; transform: translateY(-50%); } }

/* Golpe cargado */
.an-charge { --t: 3.4s; }
.an-charge .hit { animation-name: fly-late; }
@keyframes fly-late {
  0%, 58% { transform: none; opacity: 1; }
  74% { transform: translate(calc(var(--dx) * 1.6), calc(var(--dy) * 1.4)) rotate(var(--rot)) scale(.9); opacity: 0; }
  88% { transform: scale(.2); opacity: 0; }
  96%, 100% { transform: none; opacity: 1; }
}
.chring { position: absolute; left: 50%; top: 66%; width: 30%; aspect-ratio: 1; translate: -50% -50%; z-index: 3; border-radius: 50%; opacity: 0;
  background: conic-gradient(var(--orange) calc(var(--p) * 1%), rgba(27, 12, 38, .5) 0);
  -webkit-mask: radial-gradient(closest-side, transparent 70%, #000 72%); mask: radial-gradient(closest-side, transparent 70%, #000 72%); }
.an-charge .chring { animation: charge var(--t) linear infinite; }
@keyframes charge { 0%, 8% { --p: 0; opacity: 0; } 10% { opacity: 1; } 55% { --p: 100; opacity: 1; } 57%, 100% { --p: 100; opacity: 0; } }
.an-charge .h-charge { animation: hold var(--t) ease-in-out infinite; }
@keyframes hold { 0%, 4% { transform: translate(30%, -40%) rotate(-10deg); } 10%, 55% { transform: scale(.94); } 57% { transform: translate(10%, -20%); } 70%, 100% { transform: translate(30%, -40%) rotate(-10deg); } }
.an-charge .b-charge { width: 92%; animation: burst-big var(--t) ease-out infinite; border-color: var(--orange); }
@keyframes burst-big { 0%, 56% { opacity: 0; transform: scale(.15); } 59% { opacity: 1; } 78%, 100% { opacity: 0; transform: scale(1); } }
.an-charge .s-hold { animation: say-a var(--t) steps(1) infinite; }
.an-charge .s-rel { animation: say-b var(--t) ease-out infinite; color: var(--orange); }
@keyframes say-a { 0%, 9% { opacity: 0; } 10%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes say-b { 0%, 56% { opacity: 0; transform: scale(.5); } 60% { opacity: 1; transform: scale(1.2); } 66%, 82% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; } }
.an-charge .p-charge { animation: popup-late var(--t) ease-out infinite; top: 46%; color: var(--orange); font-size: clamp(2.6rem, 9vw, 4.2rem); }
@keyframes popup-late { 0%, 58% { opacity: 0; transform: scale(.4); } 63% { opacity: 1; transform: scale(1.3); } 82% { opacity: 1; transform: translateY(-20%); } 90%, 100% { opacity: 0; } }

/* Escudos */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo .stage { aspect-ratio: 3 / 4; --t: 2.8s; }
.duo .hand { width: 30%; left: 52%; top: 58%; }
.an-block .h-poke { animation: poke var(--t) ease-in-out infinite; }
@keyframes poke { 0%, 10%, 30%, 40%, 60%, 100% { transform: translate(30%, -30%) rotate(-10deg); } 20%, 50% { transform: none; } }
.an-block .sp .acc-shield { animation: wob var(--t) ease-in-out infinite; }
@keyframes wob { 0%, 19%, 27%, 49%, 57%, 100% { transform: none; } 21%, 51% { transform: scale(1.08); filter: brightness(1.6); } }
.an-block .s-block { animation: blink2 var(--t) ease-out infinite; top: 26%; }
@keyframes blink2 { 0%, 19% { opacity: 0; } 22%, 34% { opacity: 1; } 38%, 49% { opacity: 0; } 52%, 66% { opacity: 1; } 70%, 100% { opacity: 0; } }
.an-break .chring.sm { left: 50%; top: 64%; width: 50%; animation: charge var(--t) linear infinite; }
.an-break .h-break { animation: hold var(--t) ease-in-out infinite; }
.an-break .sp .acc-shield { animation: shatter var(--t) ease-out infinite; }
@keyframes shatter { 0%, 56% { transform: none; opacity: .85; } 60% { transform: scale(1.25); opacity: 1; filter: brightness(2); } 66%, 92% { transform: scale(1.5); opacity: 0; } 100% { opacity: .85; transform: none; } }
.shardfx { position: absolute; left: 50%; top: 60%; width: 12%; z-index: 4; opacity: 0; filter: drop-shadow(0 0 4px var(--gem)); animation: shard var(--t) ease-out infinite; }
@keyframes shard { 0%, 57% { opacity: 0; transform: none; } 60% { opacity: 1; } 85%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } }
.an-break .s-broken { animation: say-b var(--t) ease-out infinite; top: 26%; font-size: clamp(1.1rem, 4vw, 1.8rem); }
.an-block .s-block { font-size: clamp(1.2rem, 4.4vw, 2rem); }

/* Pisotón */
.an-stomp { --t: 3s; }
.an-stomp .boss { animation: sway var(--t) ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: translateX(-6%); } 50% { transform: translateX(6%); } }
.warn { position: absolute; left: 56%; top: 58%; width: 40%; aspect-ratio: 1; translate: -50% -50%; z-index: 3; border-radius: 50%;
  border: 6px solid var(--crimson); box-shadow: 0 0 20px var(--crimson), inset 0 0 20px rgba(255, 61, 77, .5); animation: close var(--t) linear infinite; }
@keyframes close { 0% { transform: scale(2.2); opacity: 0; } 8% { opacity: 1; } 70% { transform: scale(.85); opacity: 1; } 76%, 100% { transform: scale(.85); opacity: 0; } }
.bang { position: absolute; left: 56%; top: 30%; translate: -50% -50%; z-index: 4; font-family: var(--title); font-size: clamp(3rem, 10vw, 4.4rem); line-height: 1;
  color: var(--crimson); -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; animation: bang .5s ease-in-out infinite alternate; }
@keyframes bang { to { transform: scale(1.2) rotate(8deg); } }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.oc { position: relative; padding: 14px 12px 50px; border-radius: 16px; background: var(--ink); border: 3px solid; text-align: center; }
.oc.ok { border-color: #7dffa0; }
.oc.ko { border-color: var(--crimson); }
.oc b { font-family: var(--title); font-weight: 400; font-size: 1.4rem; letter-spacing: .05em; text-transform: uppercase; }
.oc.ok b { color: #7dffa0; } .oc.ko b { color: var(--crimson); }
.oc p { margin: 6px 0 0; font-size: .98rem; }
.oc p b { font-family: var(--text); font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--gold) !important; }
.oc .say { position: absolute; top: auto; bottom: 8px; opacity: 1; translate: -50% 0; font-size: 1.3rem; }
.dizzy { position: relative; width: 84px; margin: 0 auto 8px; }
.dizzy > img.face { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--crimson); object-fit: cover; object-position: 50% 20%; animation: dz 1.2s ease-in-out infinite; }
@keyframes dz { 50% { transform: rotate(-8deg); } }
.star { position: absolute; left: 50%; top: 2px; width: 22px; height: 22px; margin-left: -11px; animation: orbit 1.1s linear infinite; transform-origin: 11px 34px; rotate: var(--a); }
@keyframes orbit { to { transform: rotate(360deg); } }

/* Combo */
.combo-card { padding: 26px 20px; border-radius: 22px; background: var(--ink); border: 4px solid var(--ink); box-shadow: 0 0 0 4px var(--hero), 0 12px 0 4px var(--void); text-align: center; }
.combo-num { font-family: var(--title); font-size: clamp(2rem, 8vw, 3rem); letter-spacing: .06em; color: var(--muted); }
.combo-num b { display: inline-block; min-width: 3.4ch; text-align: left; color: var(--gold); -webkit-text-stroke: .12em var(--ink); paint-order: stroke fill; font-size: 1.5em; text-shadow: 0 5px 0 var(--void); }
.combo-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 14px 0 8px; }
.combo-bar i { height: 22px; border-radius: 6px; background: var(--void); border: 2px solid var(--night); animation: seg 5s steps(1) infinite; animation-delay: calc(var(--i) * .4s); }
@keyframes seg { 0% { background: linear-gradient(180deg, var(--gold), var(--orange)); } 80%, 100% { background: var(--void); } }
.combo-scale { display: flex; justify-content: space-between; font-family: var(--title); letter-spacing: .08em; color: var(--orange); font-size: 1.2rem; }

/* Dorados */
.an-gold { --t: 3.4s; }
.golden img:first-child { filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(1.15); }
.golden { filter: drop-shadow(0 0 10px var(--gold)) drop-shadow(0 0 4px var(--cream)); animation: goldy var(--t) ease-in infinite; }
@keyframes goldy { 0%, 56% { transform: none; opacity: 1; } 60% { transform: scale(1.2); filter: brightness(2) drop-shadow(0 0 20px var(--gold)); } 70%, 90% { transform: scale(.3) translateY(-80%); opacity: 0; } 100% { opacity: 1; transform: none; } }
.an-gold .chring { top: 62%; width: 42%; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(27, 12, 38, .5) 0); animation: charge var(--t) linear infinite; }
.an-gold .b-gold { top: 62%; width: 70%; border-color: var(--gold); animation: burst-big var(--t) ease-out infinite; }
.banner { position: absolute; left: 50%; top: 20%; translate: -50% -50%; z-index: 6; white-space: nowrap; padding: 8px 16px 5px; border-radius: 10px;
  background: var(--gold); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  font-family: var(--title); font-size: clamp(1.2rem, 4.6vw, 2rem); letter-spacing: .04em; text-transform: uppercase; animation: banner var(--t) ease-out infinite; }
.banner b { color: var(--crimson); }
@keyframes banner { 0%, 60% { opacity: 0; transform: scale(.4) rotate(-10deg); } 65% { opacity: 1; transform: scale(1.15) rotate(-3deg); } 70%, 92% { opacity: 1; transform: rotate(-3deg); } 98%, 100% { opacity: 0; } }

/* Ulti */
.an-ulti { --t: 3.6s; }
.an-ulti .hit { animation-name: fly-late; }
.ubtn { position: absolute; right: 6%; bottom: 8%; width: 24%; aspect-ratio: 1; z-index: 5; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--ink) 0); border: 4px solid var(--ink); animation: ufill var(--t) linear infinite; }
.ubtn img { width: 78%; height: 78%; border-radius: 50%; background: var(--night); padding: 8%; }
@keyframes ufill { 0% { --p: 0; } 50% { --p: 100; transform: none; } 54% { --p: 100; transform: scale(1.18); box-shadow: 0 0 30px var(--gold); } 58% { --p: 0; transform: none; } 100% { --p: 0; } }
.flash { position: absolute; inset: 0; z-index: 4; background: radial-gradient(circle at 50% 65%, #fff, var(--gold) 30%, transparent 70%); opacity: 0; animation: uflash var(--t) ease-out infinite; }
@keyframes uflash { 0%, 56% { opacity: 0; } 59% { opacity: .95; } 72%, 100% { opacity: 0; } }
.an-ulti .s-ulti { top: 26%; font-size: clamp(2.6rem, 10vw, 4.6rem); color: var(--cream); animation: say-b var(--t) ease-out infinite; }

.g-ultis { padding: 0 0 52px; }
.g-ultis p { text-align: center; color: var(--muted); margin: 0 0 16px; }
.ultis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ultis li { display: grid; grid-template-columns: 48px 1fr; gap: 0 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--ink); border: 2px solid var(--void); }
.ultis img { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: var(--night); padding: 3px; border: 2px solid var(--hero); }
.ultis b { font-family: var(--title); font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.05; }
.ultis span { font-size: .9rem; color: var(--muted); line-height: 1.25; }

/* Mejoras */
.upcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.upcard { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, var(--void), var(--ink)); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--gem), 0 7px 0 3px var(--ink); }
.upcard:nth-child(2) { box-shadow: 0 0 0 3px var(--crimson), 0 7px 0 3px var(--ink); }
.upcard:nth-child(3) { box-shadow: 0 0 0 3px var(--hero), 0 7px 0 3px var(--ink); }
.upcard:nth-child(4) { box-shadow: 0 0 0 3px var(--gold), 0 7px 0 3px var(--ink); }
.upcard img { width: 58px; height: 58px; animation: bob 3s ease-in-out infinite; }
.upcard:nth-child(2) img { animation-delay: -.8s; } .upcard:nth-child(3) img { animation-delay: -1.6s; } .upcard:nth-child(4) img { animation-delay: -2.4s; }
.upcard b { font-family: var(--title); font-weight: 400; font-size: 1.6rem; letter-spacing: .05em; color: var(--gold); text-transform: uppercase; }
.upcard span { font-size: .95rem; }

/* Oleadas y jefes */
.track { padding: 20px 16px; border-radius: 22px; background: var(--ink); border: 4px solid var(--ink); box-shadow: 0 0 0 4px var(--gold), 0 12px 0 4px var(--void); }
.track > p { margin: 0 0 10px; font-family: var(--title); letter-spacing: .1em; color: var(--muted); text-align: center; text-transform: uppercase; }
.track ol { list-style: none; margin: 0; padding: 0 0 34px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; align-items: end; }
.track li { position: relative; display: grid; justify-items: center; }
.track li i { width: 100%; max-width: 30px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .8rem;
  background: var(--void); border: 2px solid var(--hero); color: var(--muted); animation: wave 5s steps(1) infinite; }
.track li:nth-child(1) i { animation-delay: 0s; } .track li:nth-child(2) i { animation-delay: .5s; } .track li:nth-child(3) i { animation-delay: 1s; }
.track li:nth-child(4) i { animation-delay: 1.5s; } .track li:nth-child(6) i { animation-delay: 2.5s; } .track li:nth-child(7) i { animation-delay: 3s; }
.track li:nth-child(8) i { animation-delay: 3.5s; } .track li:nth-child(9) i { animation-delay: 4s; }
@keyframes wave { 0% { background: var(--gold); color: var(--ink); border-color: var(--ink); } 10%, 100% { background: var(--void); color: var(--muted); border-color: var(--hero); } }
.track .sp { position: relative; left: auto; top: auto; translate: none; width: 100%; }
.track .king .sp { width: 130%; }
.track li > span { position: absolute; top: 100%; margin-top: 4px; font-family: var(--title); font-size: .85rem; letter-spacing: .05em; color: var(--orange); white-space: nowrap; text-transform: uppercase; }
.track .king > span { color: var(--crimson); }
.timer { position: relative; height: 22px; border-radius: 99px; background: var(--void); border: 2px solid var(--night); overflow: hidden; }
.timer i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--crimson), var(--orange)); transform-origin: left; animation: drain 5s linear infinite; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.timer span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--title); letter-spacing: .1em; color: var(--cream); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }

.an-phase { --t: 5s; }
.an-phase .guard { animation: guardfall var(--t) ease-in infinite; animation-delay: calc(var(--d) * 1); }
@keyframes guardfall { 0%, 30% { transform: none; opacity: 1; } 36% { transform: scale(1.2); filter: brightness(2); } 44%, 92% { transform: translateY(-60%) scale(.3) rotate(40deg); opacity: 0; } 100% { opacity: 1; transform: none; } }
.an-phase .boss::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; border: 4px dashed var(--gem); animation: protect var(--t) linear infinite; }
@keyframes protect { 0%, 58% { opacity: 1; transform: rotate(0); } 62%, 100% { opacity: 0; transform: rotate(90deg); } }
.an-phase .s-prot { top: 14%; animation: prot var(--t) steps(1) infinite; color: var(--gem); }
@keyframes prot { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
.an-phase .s-free { top: 14%; animation: free var(--t) ease-out infinite; }
@keyframes free { 0%, 60% { opacity: 0; transform: scale(.5); } 65% { opacity: 1; transform: scale(1.15); } 70%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

.tries { padding: 20px 18px; border-radius: 22px; background: var(--ink); box-shadow: 0 0 0 4px var(--crimson), 0 12px 0 4px var(--void); display: grid; gap: 16px; justify-items: center; }
.tries ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.tries li { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; align-items: center; font-family: var(--title); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.hp { height: 20px; border-radius: 99px; background: var(--void); border: 2px solid var(--night); overflow: hidden; }
.hp i { display: block; height: 100%; background: linear-gradient(90deg, #ff3d4d, #ff7a1a); border-radius: 99px; }
.btn-fake { display: inline-block; padding: 10px 22px 7px; border-radius: 14px; background: var(--crimson); color: var(--cream); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  font-family: var(--title); font-size: 1.5rem; letter-spacing: .05em; text-transform: uppercase; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; animation: throb 1.4s ease-in-out infinite; }

/* Evoluciones */
.evo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: end; }
.evo li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.evo .aura { width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--c), transparent 70%); animation: pulse 2s ease-in-out infinite; }
.evo li:nth-child(2) .aura { width: 90%; } .evo li:nth-child(1) .aura { width: 80%; }
.evo .aura img { width: 66%; filter: drop-shadow(0 4px 0 var(--ink)); }
.evo li:nth-child(n+2) .aura img { width: 74%; } .evo li:nth-child(n+4) .aura img { width: 84%; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.evo b { font-family: var(--title); font-weight: 400; font-size: clamp(.8rem, 2.6vw, 1.1rem); letter-spacing: .03em; line-height: 1; color: var(--c); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-transform: uppercase; min-height: 2em; }
.evo .cost { display: inline-flex; align-items: center; gap: 2px; font-size: .9rem; color: var(--muted); }
.evo .cost img { width: 18px; height: 18px; }
.evo em { position: absolute; top: -6px; right: -2px; font-style: normal; font-family: var(--title); font-size: .95rem; background: var(--gold); color: var(--ink); padding: 1px 5px 0; border-radius: 6px; border: 2px solid var(--ink); transform: rotate(8deg); }

/* Ascensión */
.asc { display: grid; gap: 14px; }
.asc-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--ink); box-shadow: 0 0 0 3px var(--hero), 0 8px 0 3px var(--void); }
.asc-head img { width: 70px; height: 70px; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 0 12px var(--hero)); }
.asc-head p { margin: 0; }
.kl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kl > div { padding: 14px 14px 10px; border-radius: 16px; background: var(--ink); border: 3px solid; }
.kl .keep { border-color: #7dffa0; } .kl .lose { border-color: var(--crimson); }
.kl b { font-family: var(--title); font-weight: 400; font-size: 1.5rem; letter-spacing: .05em; text-transform: uppercase; }
.kl .keep b { color: #7dffa0; } .kl .lose b { color: var(--crimson); }
.kl ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: .96rem; }
.kl .keep li::before { content: "✓ "; color: #7dffa0; }
.kl .lose li::before { content: "✗ "; color: var(--crimson); }

/* Monedas */
.cur { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cur > div { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 16px 10px; border-radius: 16px; background: var(--ink); border: 3px solid var(--void); }
.cur img { width: 58px; height: 58px; animation: bob 3s ease-in-out infinite; }
.cur > div:nth-child(2) img { animation-delay: -.7s; } .cur > div:nth-child(3) img { animation-delay: -1.4s; } .cur > div:nth-child(4) img { animation-delay: -2.1s; }
.cur b { font-family: var(--title); font-weight: 400; font-size: 1.6rem; letter-spacing: .05em; color: var(--gold); text-transform: uppercase; }
.cur span { font-size: .95rem; color: var(--paper); }

/* Sin conexión */
.welcome { position: relative; display: grid; justify-items: center; gap: 8px; padding: 30px 20px 26px; border-radius: 22px; text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--hero), var(--void) 45%, var(--ink)); box-shadow: 0 0 0 4px var(--gold), 0 12px 0 4px var(--void); }
.w-t { font-family: var(--title); font-weight: 400; font-size: clamp(2.2rem, 8vw, 3.2rem); color: var(--gold); -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill; text-transform: uppercase; }
.w-num { display: inline-flex; align-items: center; gap: 8px; font-family: var(--title); font-size: 2.6rem; color: var(--gem); -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; }
.moon { position: absolute; top: -18px; right: -8px; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); box-shadow: inset -12px -6px 0 rgba(27, 12, 38, .18), 0 5px 0 var(--ink);
  font-family: var(--title); font-size: 1.5rem; transform: rotate(10deg); }

/* Misiones */
.mis { display: grid; gap: 16px; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mlist li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--ink); border: 2px solid var(--void); }
.mlist .chk { width: 24px; height: 24px; border-radius: 6px; border: 3px solid var(--hero); }
.mlist li.done .chk { background: #7dffa0; border-color: var(--ink); }
.mlist li.done { border-color: #7dffa0; }
.mlist b { display: inline-flex; align-items: center; gap: 4px; color: var(--glitch); font-weight: 400; }
.mlist b img { width: 20px; height: 20px; }
.streak { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.streak li { display: grid; justify-items: center; padding: 6px 2px; border-radius: 10px; background: var(--ink); border: 2px solid var(--void); }
.streak span { font-size: .7rem; color: var(--muted); }
.streak b { font-family: var(--title); font-size: 1.3rem; color: var(--glitch); font-weight: 400; }
.streak li.today { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 4px 0 var(--gold); }

/* Cierre */
.g-end .qbig { font-family: var(--title); font-size: 9rem; line-height: .8; color: var(--crimson); -webkit-text-stroke: .08em var(--ink); paint-order: stroke fill; text-shadow: 0 0 40px rgba(255, 61, 77, .7); animation: wobble2 2.2s ease-in-out infinite; }
@keyframes wobble2 { 50% { transform: rotate(10deg) scale(1.08); } }
.g-end .lead { color: var(--paper); }
.cta { text-decoration: none; }
.cta { font-family: var(--title); font-size: 1.8rem; letter-spacing: .05em; text-transform: uppercase; }

/* --- Escritorio --- */
@media (min-width: 760px) {
  .basics { grid-template-columns: repeat(4, 1fr); }
  .toc ul { grid-template-columns: repeat(4, 1fr); }
  .g-sec { padding: 80px 0; }
  .g-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .g-sec.flip .g-ill { order: 2; }
  .ultis { grid-template-columns: repeat(3, 1fr); }
  .upcards, .cur { gap: 18px; }
}
@media (min-width: 1040px) {
  .toc ul { grid-template-columns: repeat(7, 1fr); }
  .toc a { flex-direction: column; text-align: center; padding: 12px 6px; font-size: 1rem; }
  .toc img { width: 44px; height: 44px; }
  .ultis { grid-template-columns: repeat(4, 1fr); }
}
