/* KND Verse · kndverse.com — portada aprobada, extraída de prototype/lobby/css/lobby.css (base, portada,
   botones toon y movimiento reducido). */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow: hidden; height: 100dvh;
  font: 15px/1.45 var(--kv-font); color: var(--kv-text);
  background: var(--kv-void);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
code { font-family: var(--kv-mono); color: var(--kv-cyan); font-size: .9em; }
:focus-visible { outline: 3px solid var(--kv-cyan-hi); outline-offset: 3px; }
.skip { position: fixed; z-index: 90; left: 8px; top: -60px; padding: 10px 14px; border-radius: 10px; background: var(--kv-cyan); color: var(--kv-ink); font-weight: 800; text-decoration: none; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.muted { color: var(--kv-muted); }


/* =========================================================
   Portada (lo primero que ve el usuario): estilo portada de juego.
   Serio (tipografía, sobriedad), caricaturesco (botones gruesos con contorno, mascota)
   y sci-fi (Nexus City con su torre holográfica, destellos, etiquetas técnicas).
   ========================================================= */
.attract { position: fixed; inset: 0; z-index: 50; overflow: hidden; background: #070520; display: grid; place-items: center; }
.attract-sky { position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 50% 30%, rgba(90, 60, 255, .35), transparent 70%),
    linear-gradient(180deg, #0a0726 0%, #1a1260 45%, #2a1a8a 70%, #1b1462 100%); }
.attract-sky::before { content: ""; position: absolute; inset: 0; opacity: .55; mix-blend-mode: screen;
  background: url("art/viewport-nebula-1920.webp") center 20% / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 0 45%, transparent 75%); mask-image: linear-gradient(#000 0 45%, transparent 75%);
  animation: kv-drift 40s ease-in-out infinite alternate; }
@keyframes kv-drift { from { transform: scale(1); } to { transform: scale(1.08) translateX(-2%); } }

/* Destellos en cruz */
.attract-stars { position: absolute; inset: 0; pointer-events: none; }
.attract-stars i { position: absolute; width: 18px; height: 18px; opacity: .85; animation: kv-twinkle 3.6s ease-in-out infinite; }
.attract-stars i::before, .attract-stars i::after { content: ""; position: absolute; left: 50%; top: 50%; background: #dff8ff; border-radius: 2px; transform: translate(-50%, -50%); box-shadow: 0 0 8px #8be9ff; }
.attract-stars i::before { width: 2px; height: 100%; }
.attract-stars i::after { width: 100%; height: 2px; }
.attract-stars i:nth-child(1) { left: 8%; top: 18%; }
.attract-stars i:nth-child(2) { left: 22%; top: 9%; transform: scale(.6); animation-delay: -1s; }
.attract-stars i:nth-child(3) { left: 37%; top: 30%; transform: scale(.5); animation-delay: -2.2s; }
.attract-stars i:nth-child(4) { left: 61%; top: 12%; transform: scale(.8); animation-delay: -.6s; }
.attract-stars i:nth-child(5) { left: 78%; top: 24%; animation-delay: -2.8s; }
.attract-stars i:nth-child(6) { left: 90%; top: 10%; transform: scale(.55); animation-delay: -1.7s; }
.attract-stars i:nth-child(7) { left: 14%; top: 42%; transform: scale(.45); animation-delay: -3.1s; }
.attract-stars i:nth-child(8) { left: 86%; top: 46%; transform: scale(.7); animation-delay: -.3s; }
.attract-stars i:nth-child(9) { left: 50%; top: 5%; transform: scale(.4); animation-delay: -2.5s; }
.attract-stars i:nth-child(10) { left: 69%; top: 38%; transform: scale(.35); animation-delay: -1.2s; }
@keyframes kv-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* El mundo ilustrado abajo: Nexus City */
.attract-city { position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
  background: url("art/window-city-v1-1672.webp") 62% 100% / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent 0, #000 34%); mask-image: linear-gradient(transparent 0, #000 34%); }
.attract-city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(7, 5, 32, .1), rgba(7, 5, 32, .55)); }
.attract-beam { position: absolute; z-index: 1; left: 62%; bottom: 30%; width: 70px; height: 120%; transform: translateX(-50%);
  background: linear-gradient(transparent, rgba(255, 92, 198, .35) 40%, rgba(111, 244, 255, .5)); filter: blur(10px); mix-blend-mode: screen; animation: kv-beam 4s ease-in-out infinite; }
@keyframes kv-beam { 50% { opacity: .55; width: 50px; } }

.attract-nav { position: absolute; z-index: 3; top: 0; left: 0; display: flex; gap: 18px; padding: calc(20px + var(--kv-safe-t)) 24px 0 calc(24px + var(--kv-safe-l)); }
.attract-nav a { text-decoration: none; display: inline-block;  background: none; border: 0; padding: 6px 0; cursor: pointer; font: 700 11px/1 var(--kv-hud); letter-spacing: .14em; text-transform: uppercase; color: #e8ebff; }
.attract-nav a:hover { color: var(--kv-cyan-hi); }

/* Logo y botones sin titular ni placa (dueño, 2026-10-25): solo el halo oscuro suave de siempre detrás */
.attract-body { position: relative; z-index: 2; display: grid; justify-items: center; gap: 24px; padding: 56px 20px; text-align: center; max-width: 900px; }
.attract-body::before { content: ""; position: absolute; inset: -6% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 5, 32, .62), rgba(7, 5, 32, 0)); }
.hero-logo { width: min(640px, 84vw); filter: drop-shadow(0 10px 0 rgba(5, 4, 15, .55)); }
.hero-logo > img { width: 100%; height: auto; }
.hero-logo .kv-live { max-width: none; }
.hero-logo .kv-live .stage { background: transparent; padding: 0; }
.attract-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
a.btn-chunky { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
#enter-btn { min-width: 200px; font-size: 18px; letter-spacing: .16em; }
.attract-who { font: 600 11px/1 var(--kv-mono); letter-spacing: .22em; color: #c6cbf2; text-transform: uppercase; min-height: 11px; }

/* Botón grueso (toon): contorno negro, relieve, brillo */
.btn-chunky { position: relative; min-height: 54px; padding: 0 26px; cursor: pointer;
  font: 900 16px/1 var(--kv-display); font-stretch: 120%; letter-spacing: .08em; color: var(--kv-ink);
  background: linear-gradient(180deg, var(--kv-cyan-hi), var(--kv-cyan) 60%, #00a9c4);
  border: var(--kv-outline); border-radius: 14px; box-shadow: var(--kv-bevel), 0 0 26px rgba(0, 215, 233, .35);
  transition: transform .15s var(--kv-bounce), box-shadow .15s; }
.btn-chunky:hover { transform: translateY(-2px); }
.btn-chunky:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--kv-void); }
.btn-chunky--pink { color: #fff; text-shadow: 0 2px 0 var(--kv-void); background: linear-gradient(180deg, #d4258f, #c81a88 50%, #b0006f); box-shadow: var(--kv-bevel), 0 0 26px rgba(237, 0, 158, .35); }
.btn-chunky--ghost { color: #fff; background: rgba(16, 13, 48, .92); box-shadow: var(--kv-bevel), inset 0 0 0 2px rgba(160, 180, 255, .45); }
.btn-chunky--sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
#enter-btn::before { content: ""; position: absolute; inset: -9px; border: 2px solid rgba(0, 215, 233, .55); border-radius: 20px; animation: kv-ring 2.2s ease-out infinite; pointer-events: none; }
@keyframes kv-ring { from { opacity: .9; transform: scale(.96); } to { opacity: 0; transform: scale(1.18); } }
.link-quiet { background: none; border: 0; color: #dfe3ff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; padding: 8px; }

@media (max-width: 760px) {
  .attract-nav { gap: 12px; padding-left: 16px; padding-right: 16px; flex-wrap: wrap; }
  .attract-nav a { text-decoration: none; display: inline-block;  font-size: 10px; letter-spacing: .1em; }
    .attract-body { padding: 64px 16px 40px; gap: 16px; }
  .attract-ctas { flex-direction: column; align-items: stretch; width: min(320px, 100%); }
  .attract-city { height: 46%; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .attract-nav { padding-top: 12px; }
    .attract-body { padding: 40px 16px 24px; gap: 10px; }
  .hero-logo { width: min(400px, 56vw); }
  .attract-who { display: none; }
  .btn-chunky { min-height: 42px; font-size: 14px; }
}

/* =========================================================
   El otro universo (dueño, 2026-10-25; después: «más pequeño y difuminado, no tan sólido»): una capa encima de todo que solo se ve dentro de la lente que sigue al puntero
   (máscara radial en --mx/--my/--r). Fondo negro cósmico, el texto con el estilo de las cortinillas (Orbitron ancho, línea
   técnica en mono) y los botones en contorno, cada uno exactamente sobre su gemelo de este universo (landing.js los mide).
   ========================================================= */
.alt { position: absolute; inset: 0; z-index: 4; pointer-events: none; --mx: -999px; --my: -999px; --r: 0px;
  background: radial-gradient(ellipse 60% 45% at 30% 30%, rgba(88, 46, 160, .28), transparent 70%),
              radial-gradient(ellipse 50% 40% at 75% 70%, rgba(0, 140, 170, .18), transparent 70%), #000;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, #000 46%, rgba(0, 0, 0, .78) 64%, rgba(0, 0, 0, .35) 82%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, #000 46%, rgba(0, 0, 0, .78) 64%, rgba(0, 0, 0, .35) 82%, transparent 100%); }
.alt-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.alt-mark, .alt-btn, .alt-link { position: absolute; left: 0; top: 0; visibility: hidden; }
.alt.is-placed .alt-mark, .alt.is-placed .alt-btn, .alt.is-placed .alt-link { visibility: visible; }
.alt-mark { display: grid; place-items: center; align-content: center; gap: .9em; text-align: center; filter: url(#alt-warp); --split: 0px; }
.alt-word { margin: 0 -.2em 0 0; color: #fff; white-space: nowrap; font: 500 var(--alt-fs, 64px)/1 var(--kv-hud); letter-spacing: .2em;
  text-shadow: calc(var(--split) * -1) 0 rgba(255, 43, 214, .85), var(--split) 0 rgba(0, 229, 255, .85); }
.alt-tag { display: flex; justify-content: center; margin: 0; color: #6aa6b8; font: 600 11px/1 var(--kv-mono); letter-spacing: .42em; white-space: nowrap; }
.alt-tag span + span::before { content: "·"; margin: 0 1.1em 0 .7em; color: #3f6674; }
.alt-btn { display: grid; place-items: center; border: 1px solid rgba(106, 166, 184, .55); color: #dff8ff; background: rgba(0, 0, 0, .55);
  font: 600 12px/1 var(--kv-mono); letter-spacing: .32em; text-indent: .32em; }
.alt-btn--pink { border-color: rgba(255, 43, 214, .5); }
/* the top links, on the far side in the cards' technical line (mono, wide tracking), centred on their twins */
.alt-link { display: grid; place-items: center; overflow: visible; white-space: nowrap; color: #6aa6b8; font: 500 10px/1 var(--kv-mono); letter-spacing: .3em; text-indent: .3em; }
.alt-ring { position: absolute; z-index: 5; left: 0; top: 0; width: 0; height: 0; pointer-events: none; border-radius: 50%; opacity: 0;
  border: 1px solid rgba(0, 229, 255, .16); box-shadow: 0 0 22px rgba(0, 229, 255, .14), inset 0 0 26px rgba(255, 43, 214, .12); filter: blur(1.5px);
  transform: translate(-50%, -50%); }
.alt-defs { position: absolute; }
@media (prefers-reduced-motion: reduce) { .alt-mark { filter: none; } }

.build-tag { position: absolute; bottom: calc(14px + var(--kv-safe-b)); left: 0; right: 0; text-align: center; font: 600 10px/1.4 var(--kv-mono); letter-spacing: .24em; color: #8d93c4; padding: 0 12px; }


/* =========================================================
   Movimiento reducido: sin parallax, vuelos, deriva, anillos ni brillos.
   ========================================================= */
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) *, html:not([data-motion="full"]) *::before, html:not([data-motion="full"]) *::after { animation: none !important; transition: none !important; }
}

