/* NewStars. Concepto: la página es un viaje desde el spawn. El HUD de la esquina cuenta los
   bloques y los niveles de los mobs, y el suelo cambia de Overworld a Nether y a End.
   Regla de forma: radio 0, todo es un bloque. Detalle en DESIGN.md. */

@font-face { font-family: "Display"; src: url("/fonts/display.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Text"; src: url("/fonts/text.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Hud"; src: url("/fonts/hud.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  /* Overworld de noche: piedra, cielo nocturno, texto de pergamino */
  --ow-ground: #0f1517; --ow-ink: #eef0e6; --ow-muted: #a6b0aa;
  /* Nether: netherrack oscuro y lava */
  --ne-ground: #1e0b09; --ne-ink: #f8e9df; --ne-muted: #cfa999;
  /* End: piedra del End y cielo morado */
  --en-ground: #e7e2b3; --en-ink: #1c1630; --en-muted: #4c4563;
  --ground: var(--ow-ground); --ink: var(--ow-ink); --muted: var(--ow-muted);
  --line: color-mix(in srgb, var(--ink) 15%, transparent);
  --gold: #ffd23f; --gold-ink: #1d1600; --lava: #ff6a2b;
  --hud-bg: rgba(10, 10, 12, 0.62); --hud-ink: #f4f4f4;

  --f-display: "Display", "Arial Narrow", sans-serif;
  --f-text: "Text", system-ui, sans-serif;
  --f-hud: "Hud", ui-monospace, monospace;
  --t-mega: clamp(5.5rem, 0.5rem + 23.5vw, 26rem);
  --t-xl: clamp(2.6rem, 1.2rem + 5.2vw, 6.4rem);
  --t-l: clamp(1.6rem, 1.15rem + 1.9vw, 2.9rem);
  --t-m: clamp(1.2rem, 1.08rem + 0.55vw, 1.55rem);
  --t-body: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --t-s: 0.875rem;

  --g: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bevel-hi: inset 3px 3px 0 rgba(255, 255, 255, 0.28);
  --bevel-lo: inset -3px -3px 0 rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--t-body)/1.55 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--gold); color: var(--gold-ink); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, .hud-font { font-family: var(--f-hud); font-weight: 400; letter-spacing: 0.01em; }
code { font-size: 0.92em; padding: 0.05em 0.35em; background: color-mix(in srgb, var(--ink) 10%, transparent); white-space: nowrap; }
b, strong { font-weight: 650; }
.small { font-size: var(--t-s); color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
html.end :focus-visible { outline-color: #6a3fd0; }
main:focus { outline: none; }

.skip { position: fixed; left: var(--g); top: -100px; z-index: 50; padding: 10px 14px; background: var(--gold); color: var(--gold-ink); font-weight: 650; text-decoration: none; }
.skip:focus { top: var(--g); }

/* Botones: bloques con bisel, la etiqueta sube un bloque al pasar el puntero */
.btn { --bg: transparent; --fg: var(--ink); position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--bg); color: var(--fg); font: 650 1rem/1 var(--f-text); text-decoration: none; border: 0; cursor: pointer; isolation: isolate; overflow: hidden; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--flood, var(--ink)); transform: translateY(101%); transition: transform 0.45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { translate: 0 2px; }
.btn-s { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-gold { --bg: var(--gold); --fg: var(--gold-ink); --flood: #fff3c4; box-shadow: var(--bevel-hi), var(--bevel-lo); }
.btn-line { box-shadow: inset 0 0 0 2px var(--ink); --flood: var(--ink); }
.btn-line:hover, .btn-line:focus-visible { --fg: var(--ground); }
.btn-block { --bg: #6f6f6f; --fg: #fff; --flood: #8b8bd1; min-width: min(100%, 320px); justify-content: center; box-shadow: inset 0 0 0 2px #000, inset 4px 4px 0 rgba(255,255,255,.25), inset -4px -4px 0 rgba(0,0,0,.35); font-family: var(--f-hud); font-weight: 400; text-shadow: 2px 2px 0 #3a3a3a; }
.roll { position: relative; display: inline-block; line-height: 1.2; }
.roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.btn .roll { clip-path: inset(0); transition: transform 0.45s var(--ease), clip-path 0.45s var(--ease), color 0.3s; }
.btn:hover .roll, .btn:focus-visible .roll { transform: translateY(-100%); clip-path: inset(100% 0 -100% 0); }
.btn-line:hover .roll, .btn-line:focus-visible .roll { color: var(--ground); }

.inline { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--gold); transition: text-decoration-color 0.3s, color 0.3s; }
.inline:hover { color: var(--gold); }
html.end .inline:hover { color: #5b2fb8; }

/* Barra superior */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px var(--g); padding-top: max(14px, env(safe-area-inset-top)); transition: translate 0.6s var(--ease), background-color 0.4s; }
html.scrolled .bar { background: color-mix(in srgb, var(--ground) 94%, transparent); box-shadow: 0 1px 0 var(--line); }
html.bar-away .bar { translate: 0 -110%; }
.brand { display: flex; align-items: center; gap: 10px; font: 900 1.45rem/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--gold); transition: rotate 0.8s var(--ease); }
html.end .brand-mark { color: #6a3fd0; }
.brand:hover .brand-mark { rotate: 180deg; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a { position: relative; display: block; padding: 10px 10px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; overflow: hidden; }
.nav-list a span { display: inline-block; transition: transform 0.4s var(--ease); }
.nav-list a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s steps(5, end); }
html.end .nav-list a::after { background: #6a3fd0; }
.nav-list a:hover::after, .nav-list a:focus-visible::after, .nav-list a[aria-current]::after { transform: none; }
.nav-list a:hover span { transform: translateY(-2px); }
.nav-toggle { display: none; }
.bar-end { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; box-shadow: inset 0 0 0 2px var(--line); }
.lang button { min-width: 40px; min-height: 40px; background: none; border: 0; color: var(--muted); font: 400 0.875rem var(--f-hud); cursor: pointer; transition: color 0.3s, background 0.3s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

/* HUD: una sola línea legible con el mundo, la distancia y el nivel de los mobs */
.hud { position: fixed; left: var(--g); bottom: max(var(--g), env(safe-area-inset-bottom)); z-index: 15; pointer-events: none; }
.hud p { display: flex; align-items: baseline; gap: 8px; padding: 9px 14px 8px; background: rgba(12, 14, 16, 0.92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); color: #c9cdc8; font: 400 14px/1 var(--f-hud); white-space: nowrap; }
.hud b { font-weight: 400; color: #fff; }
.hud i { font-style: normal; color: #6d726f; }
.hud [data-hud-lvl] { color: #ffd23f; }
.quest-left { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--muted); }
.quest-left b { font-weight: 400; color: var(--ink); }

/* Héroe: el spawn real del servidor */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 120px var(--g) calc(var(--g) * 2.6); overflow: clip; isolation: isolate; color: #f6f3ea; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity 0.8s; }
.hero-media video.playing { opacity: 1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 12, 0.55) 0%, rgba(8, 10, 12, 0.05) 28%, rgba(8, 10, 12, 0.25) 52%, rgba(10, 13, 15, 0.92) 84%, var(--ow-ground) 100%); }
.hero-inner { container-type: inline-size; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 18px; }
.hero-meta { grid-column: 1 / -1; font-size: 0.9375rem; color: #e8e2cf; }
.hero-title { grid-column: 1 / -1; display: grid; }
.hero-word { font: 900 min(var(--t-mega), 24.6cqi)/0.8 var(--f-display); text-transform: uppercase; letter-spacing: -0.012em; margin-left: -0.04em; white-space: nowrap; text-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); }
.hero-sub { margin-top: 10px; font: 650 var(--t-l)/1.08 var(--f-text); letter-spacing: -0.02em; max-width: 22ch; }
.hero-lede { grid-column: 1 / span 6; max-width: 52ch; color: #e7e3d6; }
.hero-actions { grid-column: 7 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-self: end; justify-content: flex-end; }
.ip-copy { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 18px; min-height: 64px; padding: 10px 16px; background: rgba(12, 12, 14, 0.7); color: #fff; border: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); text-align: left; cursor: pointer; transition: box-shadow 0.3s, background 0.3s; }
.ip-copy:hover, .ip-copy:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); background: rgba(12, 12, 14, 0.86); }
.ip-copy-label { grid-column: 1; font-size: 0.8125rem; color: #cfcab8; }
.ip-copy-value { grid-column: 1; font-weight: 650; font-size: 1.15rem; }
.ip-copy-state { grid-column: 2; grid-row: 1 / span 2; color: var(--gold); font-size: 0.9375rem; transition: transform 0.3s steps(3); }
.ip-copy:hover .ip-copy-state { transform: translateY(-3px); }

/* Secciones: márgenes de página = medianil, ritmo vertical variable a propósito */
main > section, .foot, .page-head, .bestiary { padding-inline: var(--g); }
.h2 { font: 900 var(--t-xl)/0.9 var(--f-display); text-transform: uppercase; letter-spacing: -0.005em; text-wrap: balance; }
.lede { font-size: var(--t-m); line-height: 1.4; max-width: 40ch; color: var(--muted); }
.note { color: var(--muted); max-width: 62ch; }
.dim-label { font-size: 0.9375rem; color: var(--muted); margin-bottom: 14px; }

.ips { padding-block: 28px 64px; }
.ips-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); align-items: stretch; }
.ip-card { grid-column: span 4; display: grid; gap: 10px; align-content: start; padding: 22px; box-shadow: inset 0 0 0 2px var(--line); }
.ip-kind { color: var(--muted); }
.ip-addr { font: 650 var(--t-m)/1.2 var(--f-text); word-break: break-word; }
.ip-port { display: block; font-size: 0.9375rem; color: var(--gold); margin-top: 4px; }
.ip-card .btn { justify-self: start; }
.facts { grid-column: span 4; display: grid; gap: 12px; align-content: center; }
.facts li { display: grid; padding-left: 14px; box-shadow: inset 3px 0 0 var(--gold); }
.facts b { font-size: 1.05rem; }
.facts span { color: var(--muted); font-size: 0.9375rem; }

.base { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); padding-block: clamp(80px, 12vw, 180px); }
.base-num { grid-column: 1 / span 5; align-self: start; position: sticky; top: 110px; }
.base-64 { display: block; font: 900 clamp(9rem, 4rem + 22vw, 24rem)/0.78 var(--f-display); letter-spacing: -0.03em; color: var(--gold); margin-left: -0.05em; }
.base-cap { display: block; max-width: 24ch; margin-top: 14px; color: var(--muted); }
.base-copy { grid-column: 7 / span 6; display: grid; gap: 36px; }
.perks { display: grid; gap: 28px; }
.perks li { display: grid; gap: 6px; padding-top: 18px; box-shadow: 0 -2px 0 var(--line); }
.perks h3 { font: 650 var(--t-m)/1.2 var(--f-text); letter-spacing: -0.01em; }
.perks p { color: var(--muted); max-width: 54ch; }

.modes { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 12vw, 160px); }
.modes-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); align-items: end; margin-bottom: 40px; }
.modes-head .h2 { grid-column: 1 / span 7; }
.modes-head .lede { grid-column: 8 / span 5; }
.modes-pair { display: grid; grid-template-columns: 1fr 1fr; }
.mode { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 4vw, 56px); min-height: 380px; }
.mode-chill { background: #cfe8c5; color: #12240f; }
.mode-rpg { background: #2a0e0c; color: #ffe9e1; box-shadow: inset 0 0 0 2px #6b2a22; }
.mode-tag { font-size: 1.1rem; }
.mode-chill .mode-tag { color: #2f6b1f; }
.mode-rpg .mode-tag { color: #ffb02e; }
.mode-name { font: 900 clamp(4rem, 2rem + 9vw, 10rem)/0.8 var(--f-display); text-transform: uppercase; letter-spacing: -0.01em; }
.mode p:last-child { max-width: 40ch; font-size: var(--t-m); line-height: 1.4; }

.friends { padding-block: clamp(60px, 8vw, 120px); }
.friends .h2 { max-width: 16ch; margin-bottom: 40px; }
.index { box-shadow: 0 -2px 0 var(--line); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); align-items: baseline; padding-block: 26px; box-shadow: 0 2px 0 var(--line); transition: background 0.4s var(--ease); }
.row-cmd { grid-column: 1 / span 2; color: var(--gold); font-size: 1rem; }
.row-t { grid-column: 3 / span 4; font: 650 var(--t-m)/1.2 var(--f-text); transition: transform 0.4s var(--ease); }
.row-p { grid-column: 7 / span 6; color: var(--muted); max-width: 52ch; }
.row:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.row:hover .row-t { transform: translateX(12px); }

.world { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); align-items: center; padding-block: clamp(80px, 12vw, 180px); }
.world-copy { grid-column: 1 / span 5; display: grid; gap: 28px; }
.phases { display: grid; gap: 18px; }
.phases div { display: grid; gap: 4px; padding-left: 16px; box-shadow: inset 3px 0 0 var(--line); }
.phases dt { display: flex; gap: 12px; align-items: baseline; font-size: 1.15rem; }
.phases dt span { color: var(--muted); font-size: 0.9375rem; }
.phases dd { color: var(--muted); }
.ciclo { grid-column: 7 / span 6; display: grid; gap: 12px; }
.ciclo-card { position: relative; padding: 52px 20px 20px; background: #0b0e10; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: #a7acaa; }
.ciclo-corners span { position: absolute; font: 400 0.8125rem/1 var(--f-hud); }
[data-corner="fig"] { left: 18px; top: 18px; }
[data-corner="title"] { right: 18px; top: 18px; color: #e9ece6; }
[data-corner="hint"] { left: 18px; top: 40px; }
.globo-stage { width: min(100%, 460px); margin: 0 auto 44px; cursor: ew-resize; }
.globo-stage:focus-visible { outline-offset: -3px; }
.ciclo-bar { position: relative; height: 6px; background: rgba(255, 255, 255, 0.08); margin-bottom: 14px; }
.ciclo-bar i { position: absolute; inset: 0; background: var(--glow); transform-origin: left; transform: scaleX(0.05); transition: background 0.9s; }
.ciclo-bar b { position: absolute; top: -4px; width: 2px; height: 14px; background: #e9ece6; }
/* La lectura viaja sobre la barra con la hora del ciclo (ciclo.js la mueve y la mantiene dentro) */
.ciclo-readout { position: absolute; left: 0; bottom: 16px; font: 400 0.8125rem/1 var(--f-hud); color: var(--glow); white-space: nowrap; transition: color 0.9s; }
.ciclo-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ciclo-modes button { min-height: 44px; background: #15191b; color: #d6d9d4; border: 0; box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), inset -2px -2px 0 rgba(0,0,0,.4); font: 400 0.9375rem var(--f-hud); cursor: pointer; transition: background 0.3s, color 0.3s, translate 0.2s; }
.ciclo-modes button:hover { background: #20262a; translate: 0 -2px; }
.ciclo-modes button[aria-pressed="true"] { background: var(--glow); color: #0b0e10; }
.ciclo figcaption { max-width: 60ch; }

.prog { padding-block: clamp(60px, 8vw, 120px) clamp(100px, 14vw, 200px); }
.statement { font: 650 var(--t-l)/1.15 var(--f-text); letter-spacing: -0.02em; max-width: 30ch; margin-bottom: 48px; text-wrap: balance; }
.prog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--g); margin-bottom: 36px; }
.prog-grid div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding-block: 18px; box-shadow: 0 -2px 0 var(--line); }
.prog-grid dt { color: var(--gold); }
.prog-grid dd { display: grid; gap: 2px; }
.prog-grid dd span { color: var(--muted); }

.bosses { padding-block: clamp(100px, 14vw, 200px); }
.bosses-head { max-width: 900px; display: grid; gap: 20px; margin-bottom: 56px; }
.boss-lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px var(--g); padding-block: 36px; box-shadow: 0 -2px 0 var(--line); }
.boss-meta { grid-column: 1 / -1; color: var(--lava); }
.boss-name { grid-column: 1 / span 7; font: 900 clamp(6rem, 2rem + 18vw, 20rem)/0.78 var(--f-display); text-transform: uppercase; letter-spacing: -0.02em; margin-left: -0.04em; color: var(--lava); }
.boss-lore { grid-column: 8 / span 5; align-self: end; font-size: var(--t-m); line-height: 1.4; font-style: italic; }
.boss-lead > p:last-child { grid-column: 8 / span 5; color: var(--muted); }
.boss-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); margin-block: 24px 44px; }
.boss-list li { display: grid; gap: 6px; padding-top: 16px; box-shadow: 0 -2px 0 var(--line); }
.boss-list .hud-font { color: var(--muted); font-size: 0.875rem; }
.boss-list b { font: 900 2.2rem/0.95 var(--f-display); text-transform: uppercase; }
.boss-list span:last-child { color: var(--muted); }

.join { padding-block: clamp(100px, 14vw, 200px) clamp(60px, 8vw, 100px); }
.join .h2 { margin-bottom: 48px; max-width: 14ch; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); }
.platform { display: grid; gap: 22px; align-content: start; padding: clamp(22px, 3vw, 40px); box-shadow: inset 0 0 0 2px var(--line); }
.platform-name { font: 900 var(--t-xl)/0.85 var(--f-display); text-transform: uppercase; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 2.2em; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; font: 400 1rem/1.6 var(--f-hud); color: var(--muted); }
.steps code { white-space: normal; overflow-wrap: anywhere; }
.warn { padding: 12px 14px; background: #2a0e0c; color: #ffe2d6; }

.final { display: grid; justify-items: center; text-align: center; gap: 24px; padding-block: clamp(80px, 10vw, 140px) clamp(100px, 14vw, 180px); }
.final .h2 { max-width: 18ch; }
.final .lede { margin-inline: auto; }
.redeem { font-size: clamp(1.8rem, 1rem + 4.6vw, 5.2rem); line-height: 1; padding: 18px 28px; background: #1c1630; color: #f4f1ff; box-shadow: inset 4px 4px 0 rgba(255,255,255,.12), inset -4px -4px 0 rgba(0,0,0,.4); }

.foot { padding-block: 40px max(110px, calc(env(safe-area-inset-bottom) + 90px)); box-shadow: 0 -2px 0 var(--line); }
.foot-big { font: 900 clamp(4rem, 0.5rem + 21vw, 24rem)/0.78 var(--f-display); text-transform: uppercase; letter-spacing: -0.015em; margin: 0 0 40px -0.04em; color: color-mix(in srgb, var(--ink) 12%, transparent); white-space: nowrap; }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); align-items: start; }
.foot-col { grid-column: span 5; display: grid; gap: 12px; }
.foot-ip { font-size: 1.15rem; }
.foot-links { grid-column: span 3; display: grid; gap: 4px; }
.foot-links a { display: inline-block; padding-block: 6px; text-decoration: none; color: var(--muted); transition: color 0.3s; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-end { grid-column: span 4; justify-items: end; text-align: right; }

/* Página de jefes */
.page-head { padding-block: 150px 60px; display: grid; gap: 22px; }
.page-title { font: 900 clamp(4.4rem, 1rem + 13vw, 15rem)/0.8 var(--f-display); text-transform: uppercase; letter-spacing: -0.015em; margin-left: -0.04em; color: var(--lava); }
.page-head .lede { max-width: 58ch; }
.bestiary { padding-bottom: 120px; }
.bestiary-group { color: var(--muted); font-size: 1rem; padding-block: 48px 14px; }
.beast { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px var(--g); padding-block: 30px; box-shadow: 0 -2px 0 var(--line); transition: background 0.4s var(--ease); }
.beast:hover { background: color-mix(in srgb, var(--lava) 7%, transparent); }
.beast-name { grid-column: 1 / span 5; grid-row: span 3; font: 900 clamp(2.8rem, 1.4rem + 4.4vw, 6rem)/0.85 var(--f-display); text-transform: uppercase; transition: transform 0.4s var(--ease), color 0.4s; }
.beast:hover .beast-name { transform: translateX(10px); color: var(--lava); }
.beast-meta { grid-column: 6 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--lava); font-size: 0.9375rem; }
.beast-lore { grid-column: 6 / span 7; font-style: italic; max-width: 60ch; }
.beast-how, .beast-loot { grid-column: 6 / span 7; color: var(--muted); max-width: 60ch; }
.beast-loot::before { content: "★ "; color: var(--gold); }

/* 404: la pantalla de muerte */
.dead { min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 22px; text-align: center; padding: 120px var(--g); background: linear-gradient(180deg, rgba(150, 10, 10, 0.55), rgba(60, 0, 0, 0.75)), var(--ground); color: #fff; }
.dead-title { font: 900 clamp(4rem, 1rem + 12vw, 13rem)/0.85 var(--f-display); text-transform: uppercase; text-shadow: 5px 5px 0 #3b0000; }
.dead-cause, .dead-score { font-size: 1.15rem; }
.dead-score b { color: #ffe27a; font-weight: 400; }
.dead-actions { display: grid; gap: 10px; width: min(100%, 360px); margin-top: 12px; }
.dead .small { color: #f0c9c9; }

/* Entrada en escalones, como un bloque que se coloca. Sin JS o con movimiento reducido, todo visible. */
html.motion [data-reveal], html.motion [data-intro] { clip-path: inset(0 0 100% 0); }

/* Teléfono: composición propia */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; background: none; border: 0; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); font: 650 0.9375rem var(--f-text); cursor: pointer; }
  .nav-list { position: fixed; inset: 0; z-index: -1; display: grid; align-content: center; gap: 0; padding: 90px var(--g) 40px; background: var(--ground); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s 0.35s; }
  .nav-list a { font: 900 clamp(2.6rem, 12vw, 4rem)/1 var(--f-display); text-transform: uppercase; padding: 8px 0; }
  .nav-list a::after { left: 0; right: auto; width: 40px; }
  html.menu-open .nav-list { opacity: 1; visibility: visible; transition: opacity 0.35s; }
  html.menu-open { overflow: hidden; }
  .bar-end .btn { display: none; }
  .hero-lede, .hero-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .hero-actions .ip-copy { flex: 1 1 100%; }
  .ip-card, .facts { grid-column: 1 / -1; }
  .base-num { grid-column: 1 / -1; position: static; }
  .base-copy { grid-column: 1 / -1; }
  .modes-head .h2, .modes-head .lede { grid-column: 1 / -1; }
  .modes-pair { grid-template-columns: 1fr; }
  .mode { min-height: 0; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row-cmd, .row-t, .row-p { grid-column: 1; }
  .world-copy, .ciclo { grid-column: 1 / -1; }
  .ciclo-card { padding-inline: 12px; }
  [data-corner="hint"] { display: none; }
  .prog-grid { grid-template-columns: 1fr; }
  .boss-name, .boss-lore, .boss-lead > p:last-child { grid-column: 1 / -1; }
  .boss-list { grid-template-columns: 1fr 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .foot-col, .foot-links, .foot-end { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .beast-name, .beast-meta, .beast-lore, .beast-how, .beast-loot { grid-column: 1 / -1; grid-row: auto; }
  .hud { display: none; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .boss-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .hero-media video { display: none; }
}
/* Globo de bloques: cada modo cambia los materiales (agua, tierra, polos). */
.ciclo { --o: #3f76e4; --l: #5fa043; --c: #eef4f4; --glow: #7fb2ff; }
.ciclo[data-mode="hell"] { --o: #f0661c; --l: #6e2522; --c: #3b3940; --glow: #ff7a2e; }
.ciclo[data-mode="fantasia"] { --o: #46c7b8; --l: #a35bd0; --c: #f6c8ef; --glow: #c99bff; }
.globo-svg { display: block; width: 100%; height: auto; overflow: visible; }
.g-cell { fill: currentColor; stroke: currentColor; stroke-width: 0.7; stroke-linejoin: round; transition: color 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.g-cell[data-k="o"] { --b: var(--o); }
.g-cell[data-k="l"] { --b: var(--l); }
.g-cell[data-k="c"] { --b: var(--c); }
.g-cell[data-v="0"] { --vb: color-mix(in oklab, var(--b), #fff 8%); }
.g-cell[data-v="1"] { --vb: var(--b); }
.g-cell[data-v="2"] { --vb: color-mix(in oklab, var(--b), #000 9%); }
.g-cell[data-v="3"] { --vb: color-mix(in oklab, var(--b), #000 17%); }
.g-cell[data-l="0"] { color: color-mix(in oklab, var(--vb) 42%, #08070c); }
.g-cell[data-l="1"] { color: color-mix(in oklab, var(--vb) 64%, #08070c); }
.g-cell[data-l="2"] { color: color-mix(in oklab, var(--vb) 84%, #08070c); }
.g-cell[data-l="3"] { color: var(--vb); }
.g-air { fill: none; stroke: var(--glow); stroke-width: 10; opacity: 0.16; filter: blur(6px); transition: stroke 0.9s; }
.g-edge { fill: none; stroke: color-mix(in oklab, var(--glow), #fff 30%); stroke-width: 1; opacity: 0.5; transition: stroke 0.9s; }
@media (prefers-reduced-motion: reduce) { .g-cell, .g-air, .g-edge { transition: none; } }
