@font-face { font-family: Silkscreen; src: url(fonts/silkscreen-400.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Silkscreen; src: url(fonts/silkscreen-700.ttf); font-weight: 700; font-display: swap; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; overflow-x: clip; }
body { overflow-x: clip; margin: 0; background: #140d0b; color: #e9d9b8; font: 18px/1.65 system-ui, sans-serif; }
a { color: #f7c23b; }
img { image-rendering: pixelated; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 72px 20px; }

/* barra superior */
nav, nav.top { position: sticky; top: 0; z-index: 10; display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 10px 20px; font: 700 13px Silkscreen, monospace; background: #140d0b; border-bottom: 4px solid #2a1c16; }
nav a { text-decoration: none; color: #fff3c4; letter-spacing: 1px; margin-right: 16px; }
nav a:hover { color: #f7c23b; }
nav .brand { display: flex; align-items: center; gap: 10px; color: #f7c23b; margin: 0; }
nav .brand img { image-rendering: pixelated; }
nav span a:last-child { margin-right: 0; }

/* menú hamburguesa (solo móvil) */
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: none; color: #f7c23b; cursor: pointer; }

/* portada: la forja del menú del juego, con fuego, humo y luces vivas */
.hero { --u: clamp(1.8px, calc(min(100vw, 1500px) * .43 / 176), 4.6px); position: relative; min-height: calc(100vh - 56px); display: flex; align-items: flex-end; justify-content: center; padding: 40px 20px calc(var(--u) * 21); overflow: hidden; background: linear-gradient(#151b2e 0 22%, #1c2440 22% 44%, #2a2c4a 44% 66%, #4a3340 66% 80%, #6a3a30 80% 90%, #8a4a2a 90%); }
.heroin { position: relative; z-index: 2; width: 100%; max-width: 1280px; display: flex; align-items: center; justify-content: space-between; align-items: flex-end; gap: 40px; }
.copy { align-self: center; flex: 1 1 380px; min-width: 0; }
.copy h1 { margin: 0; display: flex; flex-direction: column; gap: 10px; font: 700 clamp(48px, 8vw, 104px)/1 Silkscreen, monospace; letter-spacing: .12em; color: #f7c23b; text-shadow: 0 6px 0 #d8561a, 0 12px 0 #140d0b; }
.msub { display: flex; align-items: center; gap: 14px; margin: 28px 0 0; font: 700 clamp(13px, 1.7vw, 22px) Silkscreen, monospace; letter-spacing: .3em; color: #cfbf9a; }
.msub i { width: 28px; height: 6px; background: #d8561a; flex: none; }
.lead { font-size: clamp(17px, 2vw, 24px); margin: 28px 0 8px; color: #fff3c4; max-width: 520px; }
.lead b { color: #f7c23b; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 0; }
.btn { display: inline-block; padding: 14px 24px; background: #e8b030; color: #2a1608; font: 700 13px Silkscreen, monospace; text-decoration: none; box-shadow: inset -4px -4px 0 #a8701a, inset 4px 4px 0 #ffd970; }
.btn.alt { background: #d8d0c0; box-shadow: inset -4px -4px 0 #8f8878, inset 4px 4px 0 #fffaf0; }
.hero .land, .hero .ground { position: absolute; left: 0; right: 0; image-rendering: pixelated; pointer-events: none; }
.hero .land { bottom: calc(var(--u) * 23); height: calc(var(--u) * 118); background: url(img/menu-paisaje.png) repeat-x left bottom / auto 100%; opacity: .9; }
.hero .ground { bottom: 0; height: calc(var(--u) * 23); background: #2a1c16 url(img/menu-suelo.png) repeat-x left top / auto 100%; }
.forge { position: relative; flex: 0 0 auto; width: calc(var(--u) * 176); height: calc(var(--u) * 100); }
.house { position: absolute; inset: 0; background: url(img/menu-exterior.png) 0 0 / 100% 100%; image-rendering: pixelated; }
.house i { position: absolute; image-rendering: pixelated; pointer-events: none; }
.fire { left: calc(var(--u) * 107); top: calc(var(--u) * 61); width: calc(var(--u) * 30); height: calc(var(--u) * 22); overflow: hidden; }
.fire::before, .smoke::before { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 400%; background: url(img/menu-fire.png) 0 0 / 100% 100%; image-rendering: pixelated; animation: sheet .6s steps(4) infinite; }
.smoke::before { background-image: url(img/smoke.png); animation-delay: calc(var(--n) * .15s); }
.smoke { left: calc(var(--u) * 126); top: calc(var(--u) * -6.5); width: calc(var(--u) * 8); height: calc(var(--u) * 8); overflow: hidden; opacity: 0; animation: smokeUp 2.4s linear infinite; animation-delay: calc(var(--n) * .6s); }
.winglow { left: calc(var(--u) * 36); top: calc(var(--u) * 48); width: calc(var(--u) * 30); height: calc(var(--u) * 32); background: radial-gradient(closest-side, rgba(255, 190, 80, .55), transparent); animation: flick 1.7s steps(1) infinite; }
.floorglow { position: absolute; left: calc(var(--u) * 78); top: calc(var(--u) * 96); width: calc(var(--u) * 120); height: calc(var(--u) * 16); background: radial-gradient(ellipse at center, rgba(236, 122, 36, .5), transparent 70%); animation: flick 1.1s steps(1) infinite; }
.scroll { position: absolute; bottom: 14px; left: 50%; z-index: 3; color: #f7c23b; text-decoration: none; font: 700 18px Silkscreen, monospace; animation: bob 1.6s ease-in-out infinite; }
.stars, .embers { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 4px; height: 4px; background: #fff3c4; opacity: .8; animation: blink var(--d, 3s) steps(1) infinite; }
.embers i { position: absolute; bottom: 0; width: 4px; height: 4px; background: #ff8a2a; box-shadow: 0 0 6px #ff6a00; animation: rise var(--d, 8s) linear infinite; opacity: 0; }

/* secciones */
h1, h2, h3 { font-family: Silkscreen, monospace; color: #f7c23b; line-height: 1.25; }
h2 { font-size: clamp(20px, 3vw, 30px); text-align: center; margin: 0 0 32px; }
h2.small { font-size: 20px; margin-top: 56px; }
.sub { text-align: center; max-width: 680px; margin: -12px auto 36px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: #1d130f; border: 4px solid #3d2a1f; padding: 22px; transition: transform .25s ease-out, border-color .25s; }
.card:hover { transform: translateY(-6px); border-color: #f7c23b; }
.card b { font: 700 28px Silkscreen, monospace; color: #e8b030; }
.card h3 { font-size: 16px; margin: 8px 0; }
.card p { margin: 0; font-size: 16px; }
.band { background: #1b1210; border-block: 4px solid #2a1c16; }
.band .wrap { padding-block: 64px; }

/* ayudantes */
.crew { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
@media (min-width: 560px) { .crew { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .crew { grid-template-columns: repeat(8, 1fr); } }
.crew li { text-align: center; }
.crew img { width: 96px; height: 96px; display: block; margin: 0 auto 10px; }
.crew span, .anvils span { display: block; font: 700 12px/1.4 Silkscreen, monospace; letter-spacing: 1px; text-indent: 1px; text-align: center; color: #fff3c4; }

/* capturas: grandes, y se abren a pantalla completa */
.shots { display: grid; gap: 56px; max-width: 1200px; }
.shots h2 { margin-bottom: 0; }
.shots figure { margin: 0; }
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom img { width: 100%; height: auto; display: block; image-rendering: auto; border: 6px solid #3d2a1f; box-shadow: 0 18px 0 rgba(0, 0, 0, .35); transition: border-color .2s; }
.zoom:hover img, .zoom:focus-visible img { border-color: #f7c23b; }
.zoom i { position: absolute; right: 14px; bottom: 28px; padding: 8px 12px; background: rgba(20, 13, 11, .85); color: #f7c23b; font: 700 11px Silkscreen, monospace; letter-spacing: 1px; opacity: 0; transition: opacity .2s; }
.zoom:hover i, .zoom:focus-visible i { opacity: 1; }
figcaption { text-align: center; margin-top: 26px; color: #bda98a; font-size: 17px; }
dialog { padding: 0; border: 4px solid #f7c23b; background: #140d0b; max-width: 96vw; max-height: 96vh; }
dialog::backdrop { background: rgba(0, 0, 0, .85); }
dialog img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; image-rendering: auto; }
dialog .x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: #e8b030; color: #2a1608; font: 700 18px Silkscreen, monospace; cursor: pointer; }

/* apariencias */
.looks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 32px; }
.looks figure { margin: 0; text-align: center; }
.looks img { width: 100%; height: auto; border: 4px solid #3d2a1f; transition: transform .3s ease-out, border-color .3s; }
.looks figure:hover img { transform: scale(1.06) rotate(-1deg); border-color: #f7c23b; }
.anvils { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.anvils li { text-align: center; }
.anvils img { width: 224px; height: auto; display: block; margin: 0 auto 10px; }
.final { text-align: center; }
.final p { max-width: 640px; margin-inline: auto; }

/* aparición al hacer scroll */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.22, 1, .36, 1); }
.js .rv.in { opacity: 1; transform: none; }

@keyframes sheet { to { transform: translateX(-100%); } }
@keyframes smokeUp { 0% { transform: translate(0, 0) scale(1); opacity: .75; } 100% { transform: translate(calc(var(--u) * 4.5), calc(var(--u) * -30)) scale(1.8); opacity: 0; } }
@keyframes flick { 0%, 100% { opacity: 1; } 18% { opacity: .75; } 37% { opacity: .95; } 55% { opacity: .65; } 78% { opacity: .9; } }
@keyframes blink { 0%, 49% { opacity: .85; } 50%, 100% { opacity: .1; } }
@keyframes bob { 50% { transform: translateY(6px); } }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(var(--x, 30px), -90vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .js .rv { opacity: 1; transform: none; } }

/* pie y páginas de texto (privacidad) */
main { max-width: 860px; margin: 0 auto; padding: 32px 20px 64px; }
main h1 { font-size: 30px; text-align: left; }
main h2 { font-size: 20px; margin-top: 40px; text-align: left; }
ul { padding-left: 22px; }
li { margin: 6px 0; }
footer { text-align: center; padding: 24px; color: #8a7a68; font-size: 14px; border-top: 4px solid #2a1c16; }

/* móvil: primero el texto, la herrería apoyada en el suelo debajo */
@media (max-width: 719px) {
  .hero { --u: calc((100vw - 32px) / 176); min-height: auto; padding: 36px 16px calc(var(--u) * 21); }
  .heroin { flex-direction: column; align-items: center; gap: 36px; text-align: center; }
  .copy { flex: none; align-self: auto; width: 100%; }
  .copy h1 { align-items: center; font-size: clamp(44px, 15vw, 64px); }
  .msub { justify-content: center; letter-spacing: .2em; margin-top: 20px; }
  .lead { margin-inline: auto; }
  .cta { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; padding: 16px 12px; font-size: 12px; }
  .scroll { display: none; }
  .wrap { padding: 52px 16px; }
  nav, nav.top { padding: 4px 12px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); gap: 8px; flex-wrap: nowrap; }
  nav, nav.top { position: sticky; }
  .burger { display: inline-flex; }
  nav span { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #140d0b; border-bottom: 4px solid #2a1c16; padding: 4px 0 8px; }
  nav span.open { display: flex; }
  nav span a { margin: 0; padding: 0 20px; min-height: 52px; display: flex; align-items: center; font-size: 13px; letter-spacing: 1px; }
  .crew img { width: 80px; height: 80px; }
  .anvils img { width: 168px; }
  .shots { gap: 40px; }
  .zoom i { opacity: 1; right: 8px; bottom: 22px; }
  dialog { width: 100vw; max-width: 100vw; border-width: 3px 0; }
  dialog img { width: 100vw; max-width: 100vw; height: auto; max-height: 100vh; object-fit: contain; }
  dialog::after { content: 'Gira el móvil para verla más grande'; display: block; padding: 12px 16px; text-align: center; font: 700 10px/1.5 Silkscreen, monospace; color: #cfbf9a; }
  footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); line-height: 2; }
}
@media (max-width: 719px) and (orientation: landscape) {
  dialog::after { display: none; }
  dialog img { max-height: 100vh; width: auto; }
}
@media (hover: none) { .zoom i { opacity: 1; } }
dialog .x { width: 44px; height: 44px; position: fixed; }
