/* valdelena.com — web v1 (29 oct 2026). Paleta y tipografía del juego (docs/arte.md §18–19): piedra oscura, oro, azul del león, verde nigromante. */
@font-face { font-family: 'Grenze Gotisch'; src: url(/assets/fonts/GrenzeGotisch-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Alegreya'; src: url(/assets/fonts/Alegreya-latin.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
:root {
  --ink: #140c06; --ink2: #22150b; --stone: #3a2a1a; --parch: #f1e2be; --parch2: #fbe7b0; --gold: #f2c55a; --gold2: #c9a04a; --gold3: #8a5a1c;
  --blue: #2c4f9e; --blue2: #1b3270; --red: #c33a2a; --necro: #6cf58a; --frost: #9fd8ff;
  --fd: 'Grenze Gotisch', Georgia, serif; --fb: 'Alegreya', Georgia, serif;
  --mx: 0; --my: 0; --sy: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--parch); font: 400 clamp(17px, 1.15vw + 12px, 20px)/1.6 var(--fb); background: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--fd); font-weight: 800; line-height: 1.05; margin: 0 0 .5em; }
h2 { font-size: clamp(36px, 4.2vw, 64px); text-align: center; color: var(--parch2); text-shadow: 0 3px 0 #3a2008, 0 8px 28px rgba(0,0,0,.6); }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* barra superior */
.top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 3vw, 40px); transition: background .4s, backdrop-filter .4s, padding .4s; }
.top.solid, .doc .top { background: rgba(20,12,6,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-top: 10px; padding-bottom: 10px; box-shadow: 0 1px 0 rgba(242,197,90,.18); }
.brand { font: 800 30px/1 var(--fd); color: var(--parch2); text-decoration: none; text-shadow: 0 2px 0 #3a2008; letter-spacing: .01em; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.top nav a { color: var(--parch); text-decoration: none; font: 700 19px/1 var(--fd); letter-spacing: .02em; opacity: .9; }
.top nav a:hover { color: var(--gold); }
.top .nav-play { padding: 9px 18px; border-radius: 999px; color: #2a1606 !important; background: linear-gradient(180deg, #ffe39a, #e2a93c); box-shadow: 0 0 0 2px #6b3f10 inset, 0 4px 18px rgba(242,197,90,.35); }
.langs { display: flex; border: 1px solid rgba(242,197,90,.45); border-radius: 999px; overflow: hidden; }
.langs a { padding: 6px 11px; font: 700 14px/1 var(--fb); color: var(--parch); text-decoration: none; letter-spacing: .06em; }
.langs a[aria-current] { background: var(--gold); color: #2a1606; }
@media (max-width: 720px) { .top nav a:not(.nav-play) { display: none; } .brand { font-size: 24px; } .top { gap: 12px; } }

/* hero con parallax por capas */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.layers { position: absolute; inset: 0; }
.layer { position: absolute; will-change: transform; transform: translate3d(calc(var(--mx) * var(--k, 0) * -40px), calc(var(--sy) * var(--k, 0) * 1px + var(--my) * var(--k, 0) * -20px), 0); }
.sky { --k: .15; inset: -6% -4%; background: url(/assets/img/hero-sky.webp) center 70% / cover no-repeat; animation: breathe 24s ease-in-out infinite alternate; }
@keyframes breathe { to { scale: 1.06; } }
.castle { --k: .35; right: -4vw; bottom: -6vh; height: 104%; aspect-ratio: 1002 / 1513; }
.castle img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(-20px 10px 40px rgba(0,0,0,.45)); }
.crystal { position: absolute; left: 14%; top: 24%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(170,225,255,.95) 0, rgba(80,170,255,.45) 28%, rgba(40,110,255,0) 65%); mix-blend-mode: screen; animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; scale: .82; } }
.horde { --k: .6; left: -3vw; bottom: -2vh; width: min(46vw, 880px); }
.horde img { width: 100%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.necro { position: absolute; left: 42%; top: 0; width: 26%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(120,255,150,.55), rgba(60,220,110,0) 65%); mix-blend-mode: screen; animation: pulse 2.4s ease-in-out infinite; }
.mist { inset: auto -10% -6% -10%; height: 55%; pointer-events: none; background:
  radial-gradient(40% 50% at 22% 80%, rgba(90,240,130,.28), transparent 70%),
  radial-gradient(35% 40% at 60% 95%, rgba(255,170,80,.18), transparent 70%); filter: blur(8px); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(4%); opacity: .7; } }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.front { --k: 1; left: -3%; right: -3%; bottom: -3vh; }
.front img { width: 100%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.hero.has-video .hero-video { opacity: 1; }
.hero.has-video .layers { opacity: .0; transition: opacity 1.2s; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(48% 50% at 50% 48%, rgba(20,12,6,.62), rgba(20,12,6,0) 72%), linear-gradient(180deg, rgba(20,12,6,.55), transparent 22%, transparent 70%, var(--ink)); pointer-events: none; }
.hero-copy { position: relative; z-index: 3; text-align: center; padding: 80px 5vw 120px; width: 100%; max-width: 1000px; translate: 0 calc(var(--sy) * -0.25px); opacity: calc(1 - var(--sy) / 700); }
.kicker { margin: 0 0 6px; font: 700 clamp(14px, 1.2vw, 18px)/1 var(--fb); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); opacity: 0; animation: up .9s .2s ease-out forwards; }
.logo { margin: 0; display: grid; justify-items: center; }
.logo-main { font: 900 clamp(54px, 12vw, 200px)/.9 var(--fd); max-width: 100%; letter-spacing: .005em; background: linear-gradient(180deg, #fff6d6 0%, #ffd77a 38%, #e09a2a 62%, #8a4a10 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #2a1606; filter: drop-shadow(0 5px 0 #2a1606) drop-shadow(0 14px 30px rgba(0,0,0,.75)) drop-shadow(0 0 30px rgba(255,190,90,.25));
  opacity: 0; animation: logo 1.6s .35s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes logo { 0% { opacity: 0; transform: scale(1.35) translateY(-10px); filter: blur(14px) drop-shadow(0 0 0 transparent); letter-spacing: .2em; } 60% { opacity: 1; } 100% { opacity: 1; transform: none; letter-spacing: .005em; } }
.logo-sub { font: 800 clamp(26px, 3.4vw, 50px)/1 var(--fd); color: var(--parch2); text-shadow: 0 3px 0 #2a1606, 0 0 18px rgba(0,0,0,.8); margin-top: .1em; opacity: 0; animation: up 1s 1.2s ease-out forwards; }
.logo-main::after { content: ""; }
.tagline { margin: 22px auto 30px; max-width: 640px; font-size: clamp(18px, 1.5vw, 22px); text-shadow: 0 2px 10px rgba(0,0,0,.9); opacity: 0; animation: up 1s 1.5s ease-out forwards; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.free { margin: 14px 0 6px; font-size: 16px; opacity: 0; color: var(--parch); animation: up 1s 1.9s ease-out forwards; text-shadow: 0 2px 8px #000; }
.soon { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 8px 0 0; opacity: 0; animation: up 1s 2.1s ease-out forwards; }
.soon .store { padding: 6px 12px; border: 1px solid rgba(241,226,190,.35); border-radius: 8px; font: 700 14px/1 var(--fb); letter-spacing: .04em; background: rgba(20,12,6,.55); color: var(--parch); opacity: .75; }
.soon em { width: 100%; font-size: 15px; opacity: .8; }

/* botón de jugar con brillo */
.btn-play { position: relative; display: inline-grid; place-items: center; padding: 20px 46px; border-radius: 16px; text-decoration: none; overflow: hidden; isolation: isolate;
  font: 800 clamp(24px, 2.2vw, 32px)/1 var(--fd); color: #fff4d6; letter-spacing: .02em; text-shadow: 0 2px 0 #4a0f08;
  background: radial-gradient(120% 90% at 50% 0%, #ff8a5c 0%, #d8402c 45%, #8e1d12 100%); border: 3px solid #f2c55a;
  box-shadow: 0 0 0 3px #3a1206, 0 12px 30px rgba(0,0,0,.55), 0 0 40px rgba(255,120,60,.45); animation: up 1s 1.7s ease-out both, glow 2.6s 2.7s ease-in-out infinite; transition: transform .2s; }
.btn-play::before { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 3.4s 2.4s ease-in-out infinite; z-index: -1; }
.btn-play:hover { transform: translateY(-3px) scale(1.03); }
.btn-play:active { transform: translateY(1px) scale(.98); }
@keyframes glow { 50% { box-shadow: 0 0 0 3px #3a1206, 0 12px 30px rgba(0,0,0,.55), 0 0 70px rgba(255,150,70,.8); } }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn-play.big { font-size: clamp(28px, 2.8vw, 40px); padding: 24px 56px; }

.scroll-cue { position: absolute; z-index: 3; bottom: 18px; left: 50%; translate: -50% 0; color: var(--parch); text-decoration: none; font: 700 13px/1 var(--fb); letter-spacing: .3em; text-transform: uppercase; opacity: .8; padding-bottom: 28px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 14px; height: 14px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); translate: -50% 0; rotate: 45deg; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* secciones */
section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.divider { width: min(520px, 80%); height: auto; margin: 0 auto 26px; opacity: .95; }
.story { text-align: center; background: radial-gradient(70% 60% at 50% 0%, rgba(201,160,74,.12), transparent 70%), var(--ink); }
.story p { max-width: 760px; margin: 0 auto; font-size: clamp(19px, 1.5vw, 23px); color: #ecdcb7; }
.feats { background: linear-gradient(180deg, var(--ink), #1b120a 40%, var(--ink)); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.feat { position: relative; text-align: center; padding: 30px 22px 28px; border-radius: 22px; background: linear-gradient(180deg, rgba(58,42,26,.75), rgba(26,17,9,.9)); border: 1px solid rgba(242,197,90,.25);
  box-shadow: inset 0 1px 0 rgba(255,230,170,.12), 0 18px 40px rgba(0,0,0,.35); transition: transform .35s, box-shadow .35s, border-color .35s; }
.feat:hover { transform: translateY(-8px); border-color: rgba(242,197,90,.6); box-shadow: inset 0 1px 0 rgba(255,230,170,.2), 0 26px 50px rgba(0,0,0,.45), 0 0 40px rgba(242,197,90,.12); }
.feat img { width: 116px; height: 116px; object-fit: contain; margin: -64px auto 10px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)); transition: transform .5s cubic-bezier(.2,.9,.3,1.4); }
.feat:hover img { transform: translateY(-6px) rotate(-6deg) scale(1.08); }
.feat h3 { font-size: 34px; color: var(--gold); margin-bottom: .3em; }
.feat p { margin: 0; font-size: 17px; color: #e3d2ab; }
@media (max-width: 980px) { .feat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 70px; } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feats .feat-grid { padding-top: 40px; }

.gallery { background: var(--ink); }
.lead { text-align: center; margin: -6px auto 40px; color: #d9c79f; }
.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; perspective: 1200px; }
.shot { margin: 0; grid-column: span 3; }
.shot:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.shot:nth-child(2) { grid-column: span 2; }
.shot:nth-child(3) { grid-column: span 2; }
.shot.tall { grid-column: span 2; grid-row: span 2; }
.shot:nth-child(4) { grid-column: span 4; grid-row: span 2; }
.tilt { all: unset; cursor: zoom-in; position: relative; display: block; height: 100%; border-radius: 18px; overflow: hidden; transform-style: preserve-3d; transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateZ(0);
  transition: transform .25s ease-out, box-shadow .25s; box-shadow: 0 0 0 1px rgba(242,197,90,.28), 0 20px 50px rgba(0,0,0,.5); }
.tilt img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tilt:hover { box-shadow: 0 0 0 2px rgba(242,197,90,.7), 0 30px 70px rgba(0,0,0,.6), 0 0 50px rgba(242,197,90,.15); }
.tilt:hover img { transform: scale(1.05); }
.glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,240,200,.28), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tilt:hover .glare { opacity: 1; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr 1fr; } .shot, .shot:nth-child(n) { grid-column: span 2; grid-row: auto; } .shot.tall { grid-column: span 2; } .shot.tall img { aspect-ratio: 9 / 12; } }

.trailer { background: radial-gradient(60% 50% at 50% 50%, rgba(44,79,158,.18), transparent 70%), var(--ink); }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 2px rgba(242,197,90,.4), 0 30px 80px rgba(0,0,0,.6); margin-top: 30px; }
.trailer-video, .trailer-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trailer-video { opacity: 0; transition: opacity 1s; }
.screen.has-video .trailer-video { opacity: 1; }
.screen.has-video .trailer-play { opacity: 0; pointer-events: none; }
.trailer-still { animation: kenburns 30s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.12) translate(-2%, -1%); } }
.trailer-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-decoration: none; color: var(--parch2); font: 700 clamp(18px, 1.6vw, 24px)/1.3 var(--fb); text-align: center; padding: 20px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(20,12,6,.45), rgba(20,12,6,.1)); text-shadow: 0 2px 10px #000; transition: opacity .6s; }
.tri { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #ff8a5c, #b52b1c); border: 3px solid var(--gold); box-shadow: 0 0 0 4px rgba(20,12,6,.6), 0 0 40px rgba(255,120,60,.6); animation: glow 2.6s ease-in-out infinite; }
.tri::after { content: ""; margin-left: 8px; border-left: 30px solid #fff4d6; border-top: 18px solid transparent; border-bottom: 18px solid transparent; }
.trailer-play:hover .tri { transform: scale(1.08); }

.perks { background: var(--ink); text-align: center; }
.perks ul { list-style: none; padding: 0; margin: 30px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 30px; max-width: 900px; text-align: left; }
.perks li { position: relative; padding: 14px 18px 14px 54px; border-radius: 14px; background: rgba(58,42,26,.45); border: 1px solid rgba(242,197,90,.16); }
.perks li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; rotate: 45deg; background: linear-gradient(135deg, #ffe39a, #c9862a); box-shadow: 0 0 12px rgba(242,197,90,.5); border-radius: 3px; }
@media (max-width: 700px) { .perks ul { grid-template-columns: 1fr; } }

.cta { text-align: center; overflow: hidden; padding: clamp(110px, 14vw, 200px) 0; }
.cta-bg { position: absolute; inset: -10% 0; background: url(/assets/img/title-wide.webp) center 40% / cover no-repeat; transform: translateY(calc((var(--cta, 0) - .5) * 80px)); filter: saturate(1.05); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--ink), rgba(20,12,6,.55) 30%, rgba(20,12,6,.55) 70%, var(--ink)); }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(48px, 6vw, 96px); }
.cta p { font-size: clamp(19px, 1.5vw, 23px); text-shadow: 0 2px 10px #000; }
.cta .note { font-size: 15px; opacity: .85; margin-top: 18px; }
.cta .btn-play, .cta .soon { animation-delay: 0s; }
.cta .soon { opacity: 1; animation: none; }

.foot { text-align: center; padding: 60px 5vw 50px; background: #0e0804; border-top: 1px solid rgba(242,197,90,.15); font-size: 16px; }
.foot-logo { font: 800 40px/1 var(--fd); color: var(--parch2); margin: 0 0 14px; }
.foot .small { font-size: 14px; opacity: .7; margin: 6px 0; }

/* aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* visor de capturas */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(8,5,2,.92); backdrop-filter: blur(6px); padding: 4vw; animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 14px; box-shadow: 0 0 0 2px rgba(242,197,90,.5), 0 30px 90px #000; animation: zoom .35s cubic-bezier(.2,.8,.2,1); }
.lb-close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); background: var(--ink2); color: var(--parch); font-size: 30px; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { transform: scale(.9); opacity: 0; } }

/* páginas de texto (privacidad, 404) */
.doc { background: radial-gradient(80% 40% at 50% 0%, rgba(201,160,74,.14), transparent 70%), var(--ink); }
.paper { padding: 130px 5vw 70px; }
.paper article { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 60px); border-radius: 22px; background: linear-gradient(180deg, rgba(58,42,26,.6), rgba(26,17,9,.85)); border: 1px solid rgba(242,197,90,.25); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.paper h1 { font-size: clamp(36px, 4.5vw, 58px); color: var(--parch2); text-shadow: 0 3px 0 #3a2008; }
.paper h2 { text-align: left; font-size: clamp(26px, 2.6vw, 34px); color: var(--gold); margin-top: 1.4em; text-shadow: none; }
.paper p, .paper li { color: #ecdcb7; }
.paper .back { margin-top: 2em; }
.nf .paper article { text-align: center; }
.nf .btn-play { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .layer, .cta-bg, .hero-copy { transform: none !important; translate: none !important; }
  .embers { display: none; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .castle { right: -38vw; height: 70%; bottom: 0; opacity: .9; }
  .horde { width: 92vw; left: -22vw; bottom: -1vh; }
  .hero-copy { padding: 70px 18px 110px; }
  .kicker { letter-spacing: .16em; font-size: 12px; }
  .tagline { font-size: 17px; margin: 16px auto 22px; }
  .btn-play { padding: 18px 30px; }
  .soon .store { font-size: 12px; }
}
@media (max-height: 979px) { .scroll-cue { display: none; } .hero-copy { padding-bottom: 50px; } }
