/* onegame.cl — Letrero de neón sobre noche ciruela
   Display: Bungee (tipografía de letreros urbanos) / Bungee Inline para el letrero principal
   Texto: Chakra Petch (sans técnica de corte angular)
   Color: ciruela de noche + tres neones, uno por juego (ámbar, magenta, menta) */

@font-face { font-family: "Bungee"; src: url("../fonts/bungee-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bungee Inline"; src: url("../fonts/bungee-inline-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Chakra Petch"; font-weight: 400; src: url("../fonts/chakra-petch-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Chakra Petch"; font-weight: 500; src: url("../fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Chakra Petch"; font-weight: 600; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Chakra Petch"; font-weight: 700; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); font-display: swap; }

:root {
  --plum: #1b0b2a;
  --plum-2: #26113b;
  --plum-3: #34184f;
  --chalk: #fbf3ff;
  --mist: #c9b6dc;
  --amber: #ffb23e;
  --magenta: #ff2e88;
  --mint: #3cf0d2;
  --edge: rgba(251, 243, 255, 0.12);

  --sign: "Bungee", "Arial Black", sans-serif;
  --sign-inline: "Bungee Inline", "Bungee", sans-serif;
  --text: "Chakra Petch", system-ui, sans-serif;

  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: 1.6rem;
  --t-xl: clamp(1.9rem, 3.2vw, 2.5rem);
  --t-2xl: clamp(2.4rem, 5.5vw, 4.4rem);
  --t-hero: clamp(2.5rem, 6.2vw, 5.6rem);

  --wrap: 1240px;
  --gut: clamp(1.25rem, 4vw, 2.75rem);
  --cut: 14px; /* esquinas cortadas, como placas de máquina arcade */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--text); font-size: var(--t-base); line-height: 1.6;
  color: var(--chalk); background: var(--plum); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--sign); font-weight: 400; line-height: 1; letter-spacing: 0.01em; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--amber); color: var(--plum); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke-width: 1.75; }

/* Grano sutil sobre todo para que el color no se vea plano */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 80; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 100; }
.cursor { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid var(--c, var(--mint)); border-radius: 50%;
  transition: width .25s, height .25s, margin .25s, background .25s, border-color .25s, opacity .2s; box-shadow: 0 0 14px -2px var(--c, var(--mint)); }
.cursor.hot { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--c, var(--mint)) 14%, transparent); }
.cursor.press { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor.gone { opacity: 0; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--chalk); }
.cursor:not([style*="--c"]) { --c: var(--mint); }

/* ---------- Encabezado ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-head.scrolled { background: color-mix(in srgb, var(--plum) 82%, transparent); backdrop-filter: blur(14px); border-color: var(--edge); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--sign); font-size: 1.25rem; text-decoration: none; }
.logo .mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--plum); background: var(--amber);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.logo .mark .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { text-decoration: none; font-weight: 500; padding: .5rem .9rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: .6rem; }
.nav .btn::after { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--edge); color: inherit; width: 46px; height: 46px; padding: 0; place-items: center; }
.nav-toggle .x { display: none; }
.menu-open .nav-toggle .x { display: block; }
.menu-open .nav-toggle .bars { display: none; }

/* ---------- Botones ---------- */
.btn { --bc: var(--amber); display: inline-flex; align-items: center; gap: .6rem; font: 600 1rem/1 var(--text); text-decoration: none;
  padding: 1rem 1.4rem; border: 0; cursor: pointer; color: var(--plum); background: var(--bc);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .2s, box-shadow .2s, filter .2s; }
.btn:hover { filter: brightness(1.08); box-shadow: 0 0 28px -4px var(--bc); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-small { padding: .7rem 1rem; font-size: .95rem; }
.btn-line { color: var(--chalk); background: transparent; box-shadow: inset 0 0 0 1.5px var(--edge); clip-path: none; }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--chalk); filter: none; }
.btn-magenta { --bc: var(--magenta); color: #fff; }
.btn-mint { --bc: var(--mint); }

/* ---------- Etiquetas ---------- */
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; padding: .25rem .6rem; border: 1px solid var(--edge); color: var(--mist); }
.tag-18 { border: 0; background: var(--magenta); color: #fff; }

/* ---------- Hero 3D ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1100px; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.2s; }
.world-ready .hero canvas { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--plum) 0%, color-mix(in srgb, var(--plum) 70%, transparent) 34%, transparent 62%),
              linear-gradient(0deg, var(--plum) 0%, transparent 22%); }
.no-webgl .hero { background: radial-gradient(circle at 70% 50%, var(--plum-3), var(--plum) 60%); }
.hero .wrap { height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 76px; }
.hero-copy { max-width: 640px; }
.neon { font-family: var(--sign-inline); font-size: var(--t-hero); line-height: .98; color: var(--chalk); }
.neon .line { display: block; }
.neon .w { display: inline-block; white-space: nowrap; }
.neon .ch { display: inline-block; transition: text-shadow .4s; }
.neon .ch.on { text-shadow: 0 0 6px rgba(255, 46, 136, .9), 0 0 22px rgba(255, 46, 136, .65), 0 0 48px rgba(255, 46, 136, .35); }
.neon .line + .line .ch.on { text-shadow: 0 0 6px rgba(60, 240, 210, .9), 0 0 22px rgba(60, 240, 210, .6), 0 0 48px rgba(60, 240, 210, .3); }
.hero .lede { font-size: var(--t-md); color: var(--mist); max-width: 36ch; margin: 1.6rem 0 2.2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.scroll-hint { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .8rem; color: var(--mist); text-decoration: none; }
.scroll-hint span { width: 1px; height: 38px; background: linear-gradient(var(--chalk), transparent); animation: drip 2s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.beacon { position: absolute; left: 0; top: 0; z-index: 2; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  opacity: 0; transition: opacity .8s 1.6s; will-change: transform; }
.world-ready .beacon { opacity: 1; }
.beacon b { font-family: var(--sign); font-weight: 400; font-size: .85rem; padding: .45rem .7rem; color: var(--plum); background: var(--bc);
  box-shadow: 0 0 22px -4px var(--bc); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); transition: transform .25s; }
.beacon small { font-size: .75rem; color: var(--chalk); background: rgba(27, 11, 42, .7); padding: .1rem .45rem; }
.beacon::after { content: ""; width: 1px; height: 26px; background: var(--bc); }
.beacon:hover b, .beacon:focus-visible b { transform: scale(1.08); }

/* ---------- Cinta de letreros ---------- */
.ticker { background: var(--amber); color: var(--plum); overflow: hidden; border-block: 2px solid var(--plum); transform: rotate(-1.2deg); margin: -1.2rem -2% 0; position: relative; z-index: 3; }
.ticker-track { display: flex; gap: 2.5rem; width: max-content; padding: .9rem 0; font-family: var(--sign); font-size: clamp(1.1rem, 2.4vw, 1.6rem); animation: run 32s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.ticker-track .icon { width: 1.1em; height: 1.1em; stroke-width: 2.4; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 38ch); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--t-2xl); }
.section-head p { margin: 0; color: var(--mist); }
.grid-bg { background-image: linear-gradient(var(--edge) 1px, transparent 1px), linear-gradient(90deg, var(--edge) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top; mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }

/* ---------- Juegos: placas grandes ---------- */
.games { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.game { --gc: var(--amber); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.game.flip { grid-template-columns: .85fr 1.15fr; }
.game.flip .cover-wrap { order: 2; }
.cover-wrap { perspective: 1100px; display: block; text-decoration: none; }
.tilt { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .08s linear; }
.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; background: #12071d;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 40%, transparent); }
.cover::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.18), transparent 45%); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cover-art { position: absolute; inset: 0; z-index: 0; display: grid; place-items: end start; padding: clamp(1rem, 3vw, 2rem); }
.cover-art .cover-title { font-family: var(--sign-inline); font-size: clamp(2.2rem, 5.5vw, 4.4rem); line-height: .9; color: var(--gc); text-shadow: 0 0 24px color-mix(in srgb, var(--gc) 70%, transparent); transform: translateZ(40px); }
.cover-art.rc { background:
  linear-gradient(transparent 55%, rgba(18,7,29,.9)),
  repeating-linear-gradient(90deg, transparent 0 58px, rgba(255,178,62,.12) 58px 60px),
  radial-gradient(ellipse at 75% 30%, rgba(255,46,136,.5), transparent 55%),
  linear-gradient(160deg, #3a1550, #12071d); }
.cover-art.nn { background:
  linear-gradient(transparent 55%, rgba(18,7,29,.9)),
  repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,46,136,.16) 46px 48px),
  radial-gradient(ellipse at 30% 25%, rgba(60,240,210,.35), transparent 50%),
  linear-gradient(200deg, #43123f, #12071d); }
.cover .badges { position: absolute; top: 1rem; right: 1rem; z-index: 2; display: flex; gap: .4rem; }

.game-info h3 { font-size: var(--t-xl); color: var(--gc); margin-bottom: .9rem; }
.game-info p { color: var(--mist); max-width: 46ch; }
.facts { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: grid; gap: .65rem; }
.facts li { display: flex; align-items: center; gap: .7rem; font-size: .98rem; }
.facts .icon { color: var(--gc); }
.game-info .actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-sm); font-weight: 600; color: var(--gc); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

.next-slot { margin-top: clamp(3rem, 6vw, 5rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.6rem 1.8rem; border: 1px dashed color-mix(in srgb, var(--mint) 50%, transparent); }
.next-slot div { display: flex; align-items: center; gap: 1rem; }
.next-slot .icon { width: 2rem; height: 2rem; color: var(--mint); }
.next-slot strong { font-family: var(--sign); font-weight: 400; font-size: var(--t-md); }

/* ---------- Devlog ---------- */
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--edge); }
.log li { border-bottom: 1px solid var(--edge); }
.log a { --lc: var(--mint); position: relative; display: grid; grid-template-columns: 3rem 8.5rem 1fr auto; gap: 1.5rem; align-items: center; padding: 1.7rem 1rem; text-decoration: none; overflow: hidden; isolation: isolate; }
.log a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--lc) 16%, transparent), transparent 70%); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.log a:hover::before, .log a:focus-visible::before { transform: scaleX(1); }
.log .ico { width: 3rem; height: 3rem; display: grid; place-items: center; color: var(--lc); border: 1px solid color-mix(in srgb, var(--lc) 45%, transparent); }
.log time { font-size: var(--t-sm); color: var(--mist); }
.log h3 { font-family: var(--text); font-weight: 700; font-size: var(--t-md); line-height: 1.3; margin-bottom: .25rem; transition: color .3s; }
.log p { margin: 0; color: var(--mist); max-width: 62ch; font-size: .98rem; }
.log a:hover h3 { color: var(--lc); }
.log .go { color: var(--mist); transition: transform .3s, color .3s; }
.log a:hover .go { transform: translate(3px, -3px); color: var(--lc); }
.log [data-project="ruta-caliente"] a { --lc: var(--amber); }
.log [data-project="neon-nights"] a { --lc: var(--magenta); }

/* ---------- Lab ---------- */
.lab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.exp { --ec: var(--mint); position: relative; padding: 1.8rem; background: var(--plum-2); display: flex; flex-direction: column; gap: .75rem; min-height: 280px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); overflow: hidden; }
.exp::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: var(--ec); filter: blur(60px); opacity: .28; transition: opacity .4s, transform .6s; }
.exp:hover::before { opacity: .5; transform: scale(1.3); }
.exp .big { width: 2.6rem; height: 2.6rem; color: var(--ec); stroke-width: 1.5; }
.exp h3 { font-size: var(--t-md); }
.exp p { color: var(--mist); margin: 0; flex: 1; }
.exp .tag { align-self: flex-start; }
.exp .status { color: var(--ec); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about h2 { font-size: var(--t-2xl); }
.about p { font-size: var(--t-md); color: var(--mist); }
.about a { color: var(--mint); }

/* ---------- Pie ---------- */
.site-foot { position: relative; padding: 4rem 0 2rem; overflow: hidden; border-top: 1px solid var(--edge); }
.foot-sign { font-family: var(--sign-inline); font-size: clamp(3.5rem, 15vw, 13rem); line-height: .85; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--magenta) 70%, transparent);
  text-shadow: 0 0 40px rgba(255, 46, 136, .25); white-space: nowrap; margin-bottom: 2.5rem; user-select: none; }
.foot-row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font-size: var(--t-sm); color: var(--mist); }
.foot-row nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-row a { text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.foot-row a:hover { color: var(--chalk); }

/* ---------- Páginas internas ---------- */
.page-hero { padding: calc(76px + clamp(3.5rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem); position: relative; }
.page-hero h1 { font-size: var(--t-2xl); }
.page-hero p { font-size: var(--t-md); color: var(--mist); max-width: 46ch; margin-top: 1.2rem; }
.crumbs { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-sm); color: var(--mist); margin-bottom: 1.4rem; text-decoration: none; }
.crumbs:hover { color: var(--chalk); }

.ficha { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ficha .cover { aspect-ratio: 16 / 9; }
.side { position: sticky; top: 100px; display: grid; gap: 1.4rem; align-content: start; padding: 1.6rem; background: var(--plum-2);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.side .btn { justify-content: center; }
.side .facts { margin: 0; }
.side p { margin: 0; color: var(--mist); font-size: .95rem; }
.side p a { color: var(--chalk); }
.prose { max-width: 66ch; }
.prose p, .prose li { color: color-mix(in srgb, var(--chalk) 86%, var(--mist)); }
.prose h2 { font-size: var(--t-lg); margin: 2.8rem 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--gc, var(--amber)); }
.prose a { color: var(--mint); }
.prose code { background: var(--plum-3); padding: .1rem .4rem; font-size: .92em; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1rem; }
.shot { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--plum-2); color: var(--mist); font-size: var(--t-sm); overflow: hidden; border: 1px solid var(--edge); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.note { border-left: 3px solid var(--mint); background: var(--plum-2); padding: 1rem 1.25rem; margin: 1.5rem 0; }

.post-head { padding: calc(76px + clamp(3rem, 7vw, 5rem)) 0 2.5rem; }
.post-head h1 { font-family: var(--sign); font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 20ch; line-height: 1.05; }
.post-meta { display: flex; gap: .8rem; align-items: center; margin-top: 1.5rem; font-size: var(--t-sm); color: var(--mist); flex-wrap: wrap; }
.post-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.post-body { padding-bottom: clamp(4rem, 8vw, 7rem); }
.post-body .prose { font-size: 1.125rem; line-height: 1.75; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filters button { font: 500 .95rem var(--text); color: var(--mist); background: none; border: 1px solid var(--edge); padding: .55rem 1.1rem; cursor: pointer; transition: all .25s; }
.filters button:hover { color: var(--chalk); border-color: var(--chalk); }
.filters button[aria-pressed="true"] { background: var(--chalk); color: var(--plum); border-color: var(--chalk); }

dialog.gate { border: 0; padding: 2.2rem; max-width: 440px; background: var(--plum-2); color: var(--chalk); box-shadow: 0 0 0 1px var(--magenta), 0 0 60px -10px var(--magenta);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
dialog.gate::backdrop { background: rgba(27, 11, 42, .8); backdrop-filter: blur(6px); }
dialog.gate .icon { width: 2.6rem; height: 2.6rem; color: var(--magenta); margin-bottom: 1rem; }
dialog.gate h2 { font-size: var(--t-lg); margin-bottom: .8rem; }
dialog.gate p { color: var(--mist); }
dialog.gate .row { display: flex; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; }

.lost { min-height: 88vh; display: grid; place-items: center; text-align: center; padding-top: 76px; }
.lost h1 { font-family: var(--sign-inline); font-size: clamp(6rem, 24vw, 15rem); color: var(--mint); text-shadow: 0 0 40px rgba(60, 240, 210, .45); }
.lost p { color: var(--mist); margin: 1rem auto 2rem; max-width: 38ch; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .game, .game.flip { grid-template-columns: 1fr; }
  .game.flip .cover-wrap { order: 0; }
  .lab, .about, .ficha { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .side { position: static; }
  .log a { grid-template-columns: 3rem 1fr auto; gap: .4rem 1.1rem; }
  .log a time { grid-column: 2; grid-row: 1; }
  .log a > div { grid-column: 2; }
  .log .ico { grid-row: span 2; }
  .log .go { grid-row: 1 / span 2; grid-column: 3; }
  .shots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gut) 1.5rem;
    background: var(--plum); border-bottom: 1px solid var(--edge); transform: translateY(-120%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  .nav.open { transform: none; }
  .nav a { padding: 1rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--edge); }
  .nav a::after { display: none; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; border: 0; }
  .hero { height: 100svh; min-height: 700px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero .wrap { height: auto; padding: 0 0 4rem; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero::before { background: linear-gradient(0deg, var(--plum) 38%, color-mix(in srgb, var(--plum) 60%, transparent) 55%, transparent 72%); }
  .beacon b { font-size: .7rem; }
  .beacon small { display: none; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.prose .log a { color: inherit; text-decoration: none; }
.prose .log h3 { margin: 0 0 .25rem; }
