/* Sonhovive · landing. Colores, tipografía y bordes del juego (scripts/ui/ui_theme.gd):
   asfalto oscuro, cartón y papel, tinta negra gruesa, tricolor. */
@font-face { font-family: "Exo 2"; font-weight: 400; font-display: swap; src: url(/assets/fonts/exo2-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Exo 2"; font-weight: 400; font-display: swap; src: url(/assets/fonts/exo2-ext-400.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Exo 2"; font-weight: 700; font-display: swap; src: url(/assets/fonts/exo2-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Exo 2"; font-weight: 700; font-display: swap; src: url(/assets/fonts/exo2-ext-700.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Exo 2"; font-weight: 900; font-display: swap; src: url(/assets/fonts/exo2-900.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Exo 2"; font-weight: 900; font-display: swap; src: url(/assets/fonts/exo2-ext-900.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }

:root {
  --night: #14120f; --asphalt: #232019; --ink: #1b1712; --paper: #f6ebd3; --cardboard: #c8a46e; --cardboard-d: #8a6a3c;
  --yellow: #f5c518; --blue: #2a5db0; --red: #d23a2e; --green: #3f9c4a;
  --text: #f6ebd3; --muted: #cbbd9f;
  --r: 14px; --lip: 0 6px 0 var(--ink);
  --wrap: 1120px;
  --z-nav: 30; --z-modal: 50;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 17px/1.6 "Exo 2", system-ui, sans-serif; overflow-x: hidden;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px), radial-gradient(rgba(0,0,0,.25) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 900; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--yellow); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* Botones como los del juego: borde de tinta y labio negro abajo */
.btn { display: inline-flex; align-items: center; gap: .55em; min-height: 52px; padding: .7em 1.25em; border: 3px solid var(--ink); border-radius: var(--r);
  font: 900 1.05rem/1 "Exo 2", sans-serif; text-decoration: none; color: var(--ink); cursor: pointer; box-shadow: var(--lip);
  transition: transform .15s, box-shadow .15s, filter .15s; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.btn-yellow { background: var(--yellow); }
.btn-red { background: var(--red); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-ghost { background: rgba(20,18,15,.6); color: var(--paper); border-color: var(--paper); box-shadow: none; cursor: default; }
.btn-ghost svg { fill: currentColor; stroke: none; }
.btn-sm { min-height: 40px; padding: .45em .9em; font-size: .9rem; box-shadow: 0 4px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Barra superior */
.nav { position: fixed; top: 12px; left: 12px; right: 12px; z-index: var(--z-nav); display: flex; align-items: center; gap: 18px; padding: 8px 12px 8px 14px;
  background: rgba(20,18,15,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 2px solid rgba(246,235,211,.15); border-radius: 18px; transition: background .2s; }
.nav.solid { background: rgba(20,18,15,.94); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .06em; }
.brand img { border-radius: 9px; border: 2px solid var(--ink); }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 700; color: var(--muted); }
.nav-links a:hover { color: var(--yellow); }
.langs { display: flex; gap: 4px; }
.langs button { min-width: 40px; min-height: 36px; border: 2px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font: 700 .85rem "Exo 2"; cursor: pointer; }
.langs button[aria-pressed="true"] { color: var(--ink); background: var(--paper); border-color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } .langs { margin-left: auto; } .nav-cta { display: none; } }

/* Héroe con video real */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transform: scale(1.06); }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse at center, rgba(20,18,15,.55) 0%, rgba(20,18,15,.25) 45%, rgba(20,18,15,.7) 100%),
  linear-gradient(180deg, rgba(20,18,15,.5) 0%, rgba(20,18,15,0) 30%, rgba(20,18,15,0) 70%, var(--night) 100%); }
.hero-in { text-align: center; padding: 110px 16px 90px; max-width: 900px; }
.hero-icon { margin: 0 auto 18px; width: 112px; height: 112px; border-radius: 26px; border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 18px 40px rgba(0,0,0,.5); animation: bob 4s ease-in-out infinite; }
.kicker { text-transform: uppercase; letter-spacing: .28em; font-weight: 900; font-size: .85rem; color: var(--yellow); margin-bottom: .6em; }
.hero-title { font-size: clamp(3.4rem, 13vw, 9.5rem); letter-spacing: -.03em; margin: 0; line-height: .9;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink), 0 22px 50px rgba(0,0,0,.6); }
.hero-title span:first-child { color: var(--paper); }
.hero-title span:last-child { color: var(--yellow); }
.tricolor { display: flex; height: 8px; width: min(420px, 70%); margin: 18px auto; border-radius: 4px; overflow: hidden; }
.tricolor i { flex: 1; } .tricolor i:nth-child(1) { background: var(--yellow); } .tricolor i:nth-child(2) { background: var(--blue); } .tricolor i:nth-child(3) { background: var(--red); }
.hero-sub { font-size: clamp(1.3rem, 3.4vw, 2rem); font-weight: 900; margin-bottom: .4em; }
.hero-lead { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 640px; margin: 0 auto 1.6em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 1.2em; }
.hero-facts { font-weight: 700; color: var(--muted); font-size: .95rem; letter-spacing: .04em; }
.scroll-cue { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; text-decoration: none; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.5; animation: cue 1.6s ease-in-out infinite; }
/* humo de lacrimógena que cruza el héroe */
.smoke { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.smoke i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; background: radial-gradient(circle, rgba(235,232,210,.16), transparent 62%); filter: blur(8px); animation: drift 26s linear infinite; }
.smoke i:nth-child(1) { left: -20%; top: 50%; } .smoke i:nth-child(2) { left: 60%; top: 10%; animation-duration: 34s; animation-delay: -10s; }
.smoke i:nth-child(3) { left: 20%; top: 70%; animation-duration: 30s; animation-delay: -18s; } .smoke i:nth-child(4) { left: 80%; top: 60%; animation-duration: 40s; animation-delay: -4s; }

/* Pancarta que corre */
.banner-clip { overflow: hidden; padding: 14px 0; margin-top: -40px; position: relative; z-index: 2; }
.banner { background: var(--yellow); color: var(--ink); border-block: 4px solid var(--ink); transform: rotate(-1.6deg) scaleX(1.04); overflow: hidden; }
.banner-track { display: flex; gap: 48px; width: max-content; padding: 12px 0; font-weight: 900; font-size: clamp(1rem, 2.6vw, 1.6rem); letter-spacing: .04em; animation: marquee 38s linear infinite; }
.banner-track span::after { content: "★"; margin-left: 48px; color: var(--red); }

/* Secciones */
section { scroll-margin-top: 90px; }
.story { padding: 120px 0 60px; }
.huge { font-size: clamp(2.8rem, 9vw, 6.5rem); color: var(--paper); letter-spacing: -.03em; }
.story-p { font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 700; max-width: 900px; line-height: 1.35; }
.story-p.muted { font-weight: 400; font-size: clamp(1.05rem, 2.2vw, 1.35rem); }
.sec-title { font-size: clamp(2rem, 5.5vw, 3.6rem); color: var(--yellow); }
.sec-title.light { color: var(--paper); }
.sec-sub { max-width: 760px; color: var(--muted); font-size: 1.1rem; margin-bottom: 2em; }
.play { padding: 40px 0 90px; }
.cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 8px 0 var(--ink); }
.card h3 { font-size: 1.35rem; }
.card p { color: #3b3326; }
.card-ic { width: 54px; height: 54px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 14px; margin-bottom: 14px; }
.card-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic-y { background: var(--yellow); } .ic-b { background: #8fb0e6; } .ic-r { background: #f08b80; }
.loot { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--muted); font-weight: 700; }
.loot img { width: 40px; height: 40px; object-fit: contain; }

/* Héroes */
.heroes { background: linear-gradient(180deg, var(--night), #1e2a44 40%, #1e2a44 60%, var(--night)); padding: 100px 0; position: relative; }
.hero-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.hcard { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.hcard-top { position: relative; height: 230px; background: var(--blue); border-bottom: 3px solid var(--ink); overflow: hidden; }
.hcard-top::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px); }
.hcard[data-c="1"] .hcard-top { background: var(--red); } .hcard[data-c="2"] .hcard-top { background: var(--green); }
.hcard-top img { position: absolute; bottom: -6px; left: 50%; height: 240px; width: auto; transform: translateX(-50%); transition: transform .3s; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
.hcard:hover .hcard-top img { transform: translateX(-50%) translateY(-6px) scale(1.03); }
.hcard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.hcard h3 { font-size: 1.7rem; margin-bottom: .3em; }
.hcard .bio { font-size: .95rem; }
.power { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 14px 16px; margin: 6px 0 12px; }
.power-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.power-h strong { color: var(--yellow); font-size: 1.15rem; }
.power-h span { font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.power p { color: var(--paper); font-size: .93rem; margin: 0; }
.trait { font-size: .9rem; color: #4a4030; }
.watch { margin-top: auto; align-self: flex-start; }

/* Jefes */
.bosses { padding: 100px 0 40px; }
.boss-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 26px; overscroll-behavior-x: contain; }
.boss-cards::-webkit-scrollbar { height: 10px; } .boss-cards::-webkit-scrollbar-thumb { background: var(--cardboard-d); border-radius: 5px; }
.bcard { scroll-snap-align: start; padding: 0; overflow: hidden; display: flex; flex-direction: column; background: #2a241b; color: var(--paper); border-color: var(--ink); }
.bcard p, .bcard li { color: var(--paper); }
.bcard-top { position: relative; height: 220px; background: radial-gradient(circle at 50% 70%, #6b1d17, #2a0d0b 70%); border-bottom: 3px solid var(--ink); }
.bcard-top img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 200px; width: auto; filter: drop-shadow(0 8px 0 rgba(0,0,0,.4)); }
.bcard-top video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.bcard.playing .bcard-top video { opacity: 1; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 10px; font-weight: 900; font-size: .85rem; }
.bcard-body { padding: 18px 20px 22px; }
.bcard h3 { color: var(--yellow); font-size: 1.6rem; }
.bcard ul { margin: 0; padding-left: 1.1em; font-size: .92rem; display: grid; gap: .5em; }
.mini-title { color: var(--paper); font-size: 1.5rem; margin-top: 30px; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.mcard { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; background: #2a241b; color: var(--paper); }
.mcard img { width: 120px; height: 100px; object-fit: contain; }
.mcard h4 { margin: 0 0 .3em; font-size: 1.2rem; color: var(--yellow); }
.mcard p, .mcard li { color: var(--paper); font-size: .9rem; }
.mcard ul { padding-left: 1.1em; margin: 0; }

/* En memoria */
.memory { padding: 110px 0; background: #0d0c0a; text-align: center; }
.memory-in { max-width: 820px; }
.memory p { font-size: clamp(1.1rem, 2.4vw, 1.45rem); color: var(--paper); line-height: 1.55; }

/* Descargar */
.download { padding: 110px 0 70px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.dl-card h3 { font-size: 1.5rem; }
.muted-ink { color: #5a4f3c !important; }
.soon { margin-top: 14px; display: inline-block; padding: 10px 16px; border: 3px dashed var(--cardboard-d); border-radius: 12px; font-weight: 900; color: var(--cardboard-d); }

/* Probadores */
.testers { background: linear-gradient(135deg, #3a1411, #14120f 60%); padding: 100px 0; border-block: 4px solid var(--ink); }
.testers-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .testers-in { grid-template-columns: 1fr; } }
.steps { padding-left: 1.2em; color: var(--muted); display: grid; gap: .4em; }
.tt-form { display: grid; gap: 12px; }
.tt-form label { font-weight: 700; }
.tt-form input[type=email] { min-height: 50px; padding: 10px 14px; font: 400 1rem "Exo 2"; border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); }
.consent { display: grid !important; grid-template-columns: 26px 1fr; gap: 10px; font-weight: 400 !important; font-size: .88rem; color: #3b3326; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tt-status { min-height: 1.4em; margin: 0; font-weight: 700; }
.tt-status.ok { color: var(--green); } .tt-status.err { color: var(--red); }
.link { color: var(--blue); font-weight: 700; }

/* Aviso de privacidad todavía sin publicar: sin formulario ni enlaces al aviso */
.tt-soon { display: none; }
.priv-off .tt-form, .priv-off #priv-link, .priv-off #ft-priv, .priv-off .ft-priv-sep { display: none; }
.priv-off .tt-soon { display: grid; gap: 10px; }
.tt-soon strong { font-size: 1.4rem; }

/* Privacidad, autor, preguntas */
.privacy { padding: 90px 0 30px; }
.checks { list-style: none; padding: 0; display: grid; gap: 12px; margin: 0 0 26px; font-size: 1.1rem; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.checks li::before { content: ""; width: 24px; height: 24px; margin-top: 3px; border-radius: 6px; border: 2px solid var(--ink); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/16px no-repeat; }
.author { padding: 60px 0; }
.author-card { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.author-card img { border-radius: 22px; border: 3px solid var(--ink); }
.author-card .sec-title { color: var(--ink); font-size: clamp(1.6rem, 4vw, 2.4rem); }
@media (max-width: 560px) { .author-card { grid-template-columns: 1fr; } }
.faq { padding: 40px 0 100px; max-width: 860px; }
.faq details { border: 3px solid var(--ink); border-radius: 14px; background: #2a241b; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 900; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; }
.faq summary::after { content: "+"; color: var(--yellow); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }
.footer { background: #0d0c0a; padding-bottom: 30px; }
.footer .tricolor { width: 100%; margin: 0; border-radius: 0; height: 6px; }
.footer-in { padding-top: 26px; text-align: center; color: var(--muted); }
.footer a { color: var(--paper); }

/* Ventana del clip */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(10,9,7,.86); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(980px, 100%); background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; padding: 18px; box-shadow: 0 10px 0 var(--ink); }
.modal-box video { width: 100%; border-radius: 10px; border: 3px solid var(--ink); background: #000; }
.modal-x { position: absolute; top: -18px; right: -12px; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: var(--red); color: #fff; font: 900 1.6rem/1 "Exo 2"; cursor: pointer; box-shadow: 0 4px 0 var(--ink); }

/* Entradas al hacer scroll (solo con JS: boot.js pone la clase js) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes cue { 50% { transform: translateY(6px); } }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(60vw); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-video { display: none; }
  .hero { background: url(/media/hero.jpg) center/cover; }
}
