/* Página de entrada de eromash.app. No carga estilos.css: ese archivo deja el body sin scroll, para el juego. */
html {
  color-scheme: dark;
}
html,
body {
  margin: 0;
  background: #111111;
  color: #f2ecec;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body {
  min-height: 100%;
}
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: #c8402d #0e0b0b;
  }
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
*::-webkit-scrollbar-track {
  background: #0e0b0b;
}
*::-webkit-scrollbar-thumb {
  background: #c8402d;
  border: 2px solid #0e0b0b;
  border-top-color: #ff8d71;
  border-left-color: #ff8d71;
  border-right-color: #5e130d;
  border-bottom-color: #5e130d;
}
*::-webkit-scrollbar-thumb:hover {
  background: #ff8d71;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid #e0b2b2;
  outline-offset: 3px;
}
button {
  font: inherit;
}

.saltar {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 5;
  background: #9c2315;
  color: #f2ecec;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
}
.saltar:focus {
  top: 12px;
}

.barra {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(16px, 4vw);
  background: #111111;
  border-bottom: 1px solid #2e2525;
}
.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #f2ecec;
  min-height: 48px;
}
.marca svg {
  width: 36px;
  height: auto;
  display: block;
}
.barra nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
}
.idioma {
  color: #e0b2b2;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.idioma:hover {
  color: #f2ecec;
}
.entrar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  box-sizing: border-box;
  background: #9c2315;
  color: #f2ecec;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid #9c2315;
}
.entrar:hover {
  background: #c8402d;
  border-color: #c8402d;
}

.hero {
  min-height: calc(100svh - 69px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-cuerpo {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 28px max(16px, 4vw) 8px;
  display: grid;
  gap: 12px 32px;
  align-items: center;
  flex: 1;
}
.hero h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-size: clamp(56px, 8vw, 104px);
}
.lead {
  margin: 14px 0 0;
  max-width: 36em;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}
.fogata {
  position: relative;
  width: 150px;
  height: 108px;
  margin-top: 18px;
}
.fogata svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.ll {
  transform-box: fill-box;
  transform-origin: center bottom;
}
.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
.hero-fig {
  margin: 0;
  justify-self: end;
}
.hero-fig img {
  width: auto;
  max-width: min(100%, 420px);
  max-height: min(52vh, 480px);
  height: auto;
  display: block;
}

.chispa {
  position: absolute;
  width: 4px;
  height: 4px;
  left: 46%;
  bottom: 36px;
  background: #ffd98a;
  pointer-events: none;
}
.chispa:nth-child(2) {
  background: #ff8d71;
}
.chispa:nth-child(3) {
  background: #c8402d;
  width: 3px;
  height: 3px;
}
.chispa:nth-child(4) {
  background: #ffe7a8;
}
.chispa:nth-child(5) {
  background: #ff8d71;
  width: 3px;
  height: 3px;
}

.zonas {
  position: relative;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-top: 1px solid #2e2525;
}
.zonas li {
  flex: 1 0 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
  min-height: 72px;
  padding: 14px 18px 16px;
  box-sizing: border-box;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  border-right: 1px solid #2e2525;
}
.zonas li:last-child {
  border-right: 0;
}
.zonas i {
  display: block;
  width: 28px;
  height: 3px;
}
.zonas::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 18%;
  background: #ffd98a;
  pointer-events: none;
}

.par {
  max-width: 1120px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 36px max(16px, 4vw);
  display: grid;
  gap: 18px 28px;
}
.par p {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid #ffd98a;
  color: #e0b2b2;
  font-size: 18px;
  line-height: 1.5;
}

.cinta {
  padding: 8px 0 28px max(16px, 4vw);
}
.cinta-cabeza {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  padding-bottom: 14px;
}
.cinta h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.flechas {
  display: flex;
  gap: 8px;
}
.flecha {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #2e2525;
  background: #1a1414;
  color: #f2ecec;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.flecha:hover {
  border-color: #c8402d;
  color: #ffd98a;
}
.riel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  overscroll-behavior-x: contain;
  padding: 2px 12vw 12px 0;
  scrollbar-width: none;
}
.riel::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}
.carta {
  flex: 0 0 min(78vw, 680px);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 360px;
  background: #1a1414;
  border: 1px solid #2e2525;
  border-radius: 16px;
  overflow: hidden;
}
.escena {
  background: #0a0707;
  display: grid;
  place-items: center;
  padding: 20px;
  min-height: 200px;
}
.escena.fila {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}
.escena .fogata {
  width: 180px;
  height: 128px;
  margin: 0;
}
.cofre {
  width: 86px;
  height: auto;
  display: block;
}
.escena svg {
  width: min(100%, 280px);
  height: auto;
  display: block;
}
.carta .texto {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.carta h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
}
.carta p {
  margin: 0;
  color: #e0b2b2;
  line-height: 1.5;
  font-size: 16px;
}
.aviso {
  transform-origin: 200px 168px;
}
.fusion {
  position: relative;
  width: 220px;
  height: 120px;
}
.pieza {
  position: absolute;
  top: 28px;
  width: 64px;
  height: 64px;
  border-radius: 8px;
}
.pieza.a {
  left: 28px;
  background: #c8402d;
}
.pieza.b {
  right: 28px;
  background: #9c2315;
}
.fusion::after {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 46px;
  margin-left: -8px;
  color: #ffd98a;
  font-size: 18px;
  opacity: 0;
}
.ramas {
  display: flex;
  gap: 18px;
  align-items: flex-end;
}
.ramas span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.ramas svg {
  width: 54px;
  height: 54px;
  display: block;
}
.runa {
  transform-origin: center bottom;
}
.avance {
  height: 3px;
  background: #2e2525;
  margin: 4px 12vw 0 0;
}
.avance i {
  display: block;
  height: 100%;
  background: #ffd98a;
  transform: scaleX(0.18);
  transform-origin: left center;
}

.banda {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px max(16px, 4vw) 8px;
}
.banda h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}
.cuatro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cuatro figure {
  margin: 0;
  background: #1a1414;
  border: 1px solid #2e2525;
  border-radius: 16px;
  padding: 16px 8px 14px;
  text-align: center;
}
.cuatro svg {
  width: min(100%, 92px);
  height: auto;
  display: block;
  margin: 0 auto;
}
.cuatro figcaption {
  margin-top: 8px;
  font-weight: 700;
  font-size: 15px;
}
.banda .cierre {
  margin: 18px 0 0;
  max-width: 46em;
  color: #e0b2b2;
  font-size: 18px;
  line-height: 1.5;
}

footer {
  border-top: 1px solid #2e2525;
  margin-top: 36px;
}
.pie {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px max(16px, 4vw) 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}
.pie p {
  margin: 0;
  color: #e0b2b2;
  line-height: 1.45;
  max-width: 40em;
}
.pie nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.pie a {
  color: #f2ecec;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-cuerpo {
    grid-template-columns: 1.15fr 0.85fr;
    padding-top: 18px;
  }
  .par {
    grid-template-columns: 1fr 1fr;
  }
  .cinta {
    display: grid;
    grid-template-columns: minmax(200px, 240px) 1fr;
    gap: 20px 28px;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 36px;
  }
  .cinta-cabeza {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 22px;
    height: auto;
    padding-bottom: 18px;
    max-width: none;
  }
  .avance {
    grid-column: 2;
  }
}
@media (max-width: 720px) {
  .carta {
    grid-template-columns: 1fr;
    flex-basis: 86vw;
    min-height: 0;
  }
  .carta .texto {
    padding: 18px 18px 22px;
  }
  .barra {
    flex-wrap: wrap;
  }
}
@media (max-width: 520px) {
  .cuatro {
    gap: 8px;
  }
  .cuatro figure {
    padding: 12px 4px 10px;
  }
  .cuatro figcaption {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation: sube 0.7s cubic-bezier(0.22, 0.8, 0.2, 1) both;
  }
  .lead {
    animation: sube 0.7s 0.1s cubic-bezier(0.22, 0.8, 0.2, 1) both;
  }
  .fogata {
    animation: sube 0.7s 0.16s cubic-bezier(0.22, 0.8, 0.2, 1) both;
  }
  .acciones {
    animation: sube 0.7s 0.22s cubic-bezier(0.22, 0.8, 0.2, 1) both;
  }
  .hero-fig img {
    animation:
      aparece 0.9s 0.05s cubic-bezier(0.22, 0.8, 0.2, 1) both,
      flota 7s ease-in-out 1s infinite;
  }
  .ll.a {
    animation: llama 1.15s ease-in-out infinite;
  }
  .ll.b {
    animation: llama 0.85s ease-in-out -0.2s infinite;
  }
  .ll.c {
    animation: llama 0.7s ease-in-out -0.35s infinite;
  }
  .ll.d {
    animation: llama 0.5s ease-in-out -0.1s infinite;
  }
  .chispa {
    animation: ascua 2.6s linear infinite;
  }
  .chispa:nth-child(2) {
    animation-duration: 2.4s;
  }
  .chispa:nth-child(3) {
    animation-duration: 3.1s;
    animation-delay: 0.5s;
  }
  .chispa:nth-child(4) {
    animation-duration: 2.2s;
    animation-delay: 1.1s;
  }
  .chispa:nth-child(5) {
    animation-duration: 2.8s;
    animation-delay: 0.2s;
  }
  .chispa:nth-child(6) {
    animation-duration: 3.4s;
    animation-delay: 1.6s;
  }
  .zonas::after {
    animation: corre 9s linear infinite;
  }
  .aviso {
    animation: pulso 1.6s ease-in-out infinite;
  }
  .pieza.a {
    animation: junta-a 3.2s ease-in-out infinite;
  }
  .pieza.b {
    animation: junta-b 3.2s ease-in-out infinite;
  }
  .fusion::after {
    animation: brillo 3.2s ease-in-out infinite;
  }
  .runa {
    animation: prende 2.4s ease-in-out infinite;
  }
  .runa:nth-child(2) {
    animation-delay: 0.4s;
  }
  .runa:nth-child(3) {
    animation-delay: 0.8s;
  }
  .cuatro figure {
    animation: sube 0.55s cubic-bezier(0.22, 0.8, 0.2, 1) both;
  }
  .cuatro figure:nth-child(2) {
    animation-delay: 0.08s;
  }
  .cuatro figure:nth-child(3) {
    animation-delay: 0.16s;
  }
  .cuatro figure:nth-child(4) {
    animation-delay: 0.24s;
  }
}
@keyframes sube {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes aparece {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes flota {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes llama {
  50% {
    transform: scaleX(0.9) scaleY(1.12);
  }
}
@keyframes ascua {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx, 10px), -78px) scale(0.3);
    opacity: 0;
  }
}
@keyframes corre {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(456%);
  }
}
@keyframes pulso {
  50% {
    opacity: 0.45;
  }
}
@keyframes junta-a {
  0%,
  100% {
    transform: translateX(0);
  }
  42%,
  68% {
    transform: translateX(34px);
  }
}
@keyframes junta-b {
  0%,
  100% {
    transform: translateX(0);
  }
  42%,
  68% {
    transform: translateX(-34px);
  }
}
@keyframes brillo {
  0%,
  30%,
  78%,
  100% {
    opacity: 0;
  }
  46%,
  64% {
    opacity: 1;
  }
}
@keyframes prende {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
  .pieza.a {
    transform: translateX(34px);
  }
  .pieza.b {
    transform: translateX(-34px);
  }
  .fusion::after {
    opacity: 1;
  }
  .runa {
    opacity: 1;
  }
}
