@font-face {
  font-family: 'PT Serif';
  src: url('/fonts/PTSerif-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Luckiest Guy';
  src: url('/fonts/LuckiestGuy-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: 'PT Serif', Georgia, serif;
  color: #fff7ea;
  background: #ead8b7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #4b250d;
  --paper: #fff7ea;
  --muted: #38312b;
  --wine: #7b1e12;
  --wine-light: #a6422d;
  --coral: #d49a6a;
  --line: rgba(255, 247, 234, 0.38);
}

* { box-sizing: border-box; }

html {
  min-width: 0;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  overflow-x: clip;
  margin: 0;
  background-color: #ead8b7;
  background-image: url('/images/bg/fondo-original.jpeg');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 2px solid var(--wine-light);
  outline-offset: 5px;
}

.site-header,
.hero,
.how-to-play,
.site-footer {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Luckiest Guy', sans-serif;
  font-size: 17px;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(75, 37, 13, 0.8);
}

.brand b {
  color: var(--wine-light);
  font-weight: 400;
  -webkit-text-stroke: 0.35px var(--paper);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--paper);
  font-family: 'Luckiest Guy', sans-serif;
  font-size: 13px;
  -webkit-text-stroke: 0.35px var(--ink);
  text-shadow: 0 2px 5px rgba(75, 37, 13, 0.92);
}

.header-links a:hover,
.site-footer a:hover { color: var(--wine-light); }

.language-link {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  color: var(--wine-light);
  -webkit-text-stroke: 0.3px var(--paper);
  text-shadow: 0 2px 5px rgba(75, 37, 13, 0.92);
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 0.94fr;
  align-items: center;
  position: relative;
  padding-block: 22px 70px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  isolation: isolate;
  max-width: 550px;
  padding: 24px 26px 24px 16px;
  animation: arrive 700ms ease-out both;
}

.hero-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  right: -36px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(255, 247, 234, 0.78), rgba(255, 247, 234, 0.74) 76%, rgba(255, 247, 234, 0.6));
}

.eyebrow {
  margin: 0 0 21px;
  color: var(--wine);
  font-family: 'Luckiest Guy', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 14px rgba(212, 154, 106, 0.7);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 23px;
  font-family: 'Luckiest Guy', Georgia, serif;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 400;
  line-height: 0.99;
  color: var(--ink);
}

h1 em {
  color: var(--wine-light);
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 400;
}

.hero-description {
  max-width: 440px;
  margin-bottom: 30px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 20px;
  font-family: 'Luckiest Guy', sans-serif;
  font-size: 14px;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button--play {
  min-width: 180px;
  gap: 22px;
  border-color: var(--wine);
  background: transparent;
  color: var(--wine);
}

.button--play:hover { background: rgba(123, 30, 18, 0.1); }
.button--play span { font-family: sans-serif; font-size: 18px; }

.button--store {
  min-width: 208px;
  justify-content: flex-start;
  gap: 10px;
  border-color: var(--wine);
  background: var(--wine);
  color: var(--paper);
}

.button--store:hover { border-color: var(--wine-light); background: var(--wine-light); }
.store-mark { color: var(--paper); font-family: sans-serif; font-size: 19px; }
.store-copy { display: grid; gap: 2px; }
.store-copy small { color: var(--paper); font-family: 'PT Serif', Georgia, serif; font-size: 9px; }

.age-note {
  max-width: 440px;
  margin: 18px 0 0;
  color: var(--wine);
  font-size: 12px;
  line-height: 1.6;
}

.hero-art {
  min-width: 0;
  height: 460px;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  isolation: isolate;
  animation: arrive 850ms 100ms ease-out both;
}

.devices-stage {
  width: min(100%, 550px);
  height: 100%;
  position: relative;
  margin-inline: auto;
  transform: translateY(-18px);
}

.device {
  position: absolute;
  margin: 0;
  padding: 8px;
  border: 2px solid rgba(255, 247, 234, 0.9);
  background: #261a15;
  box-shadow: 0 18px 40px rgba(42, 22, 14, 0.45), 0 0 0 1px rgba(123, 30, 18, 0.55);
}

.device-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #211710;
}

.device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.device--tv {
  top: 24px;
  left: 50%;
  z-index: 1;
  width: min(400px, 80%);
  aspect-ratio: 1.6;
  padding: 8px 8px 15px;
  border-radius: 10px;
  transform: translateX(-50%) rotate(-2deg);
}

.device--tv::before,
.device--tv::after {
  content: '';
  position: absolute;
  left: 50%;
  background: #5d4335;
  transform: translateX(-50%);
}

.device--tv::before {
  bottom: -32px;
  width: 68px;
  height: 28px;
  clip-path: polygon(28% 0, 72% 0, 100% 100%, 0 100%);
}

.device--tv::after {
  bottom: -38px;
  width: 126px;
  height: 8px;
  border-radius: 50%;
}

.device--tablet {
  bottom: 58px;
  left: 1%;
  z-index: 2;
  width: min(250px, 49%);
  aspect-ratio: 1.58;
  padding: 7px;
  border-radius: 15px;
  background: #e6d5c0;
  transform: rotate(-7deg);
}

.device--phone {
  right: 1%;
  bottom: 94px;
  z-index: 3;
  width: min(184px, 39%);
  aspect-ratio: 1.55;
  padding: 7px 8px;
  border-radius: 19px;
  transform: rotate(6deg);
}

.device--phone::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 3px;
  width: 3px;
  height: 24px;
  border-radius: 2px;
  background: #d7c6af;
  transform: translateY(-50%);
}

.how-to-play { padding-block: 40px 82px; border-top: 1px solid var(--line); }

.how-to-play,
.site-footer {
  position: relative;
  isolation: isolate;
}

.how-to-play::before,
.site-footer::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: rgba(255, 247, 234, 0.74);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-heading .eyebrow { margin-bottom: 0; }
h2 { margin-bottom: 0; font-family: 'Luckiest Guy', sans-serif; font-size: 28px; font-weight: 400; }

.seo-intro { padding-top: 32px; }

.seo-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.step { min-height: 145px; padding: 22px 24px 0 0; }
.step + .step { border-left: 1px solid var(--line); padding-left: 24px; }
.step-number { color: var(--coral); font-family: 'Luckiest Guy', sans-serif; font-size: 12px; }
h3 { margin: 14px 0 7px; font-family: 'Luckiest Guy', sans-serif; font-size: 17px; font-weight: 400; }

.step p {
  max-width: 280px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--wine);
  font-size: 12px;
}

.eyebrow,
.hero-description,
.age-note,
.step-number,
.step p,
.site-footer,
h2,
h3 {
  color: var(--muted);
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .site-header, .hero, .how-to-play, .site-footer { width: min(100% - 40px, 560px); }
  .site-header { height: 72px; }
  .hero-copy { padding: 18px 12px; }
  .hero-copy::before { right: -8px; left: -8px; }
  .brand { font-size: 14px; }
  .header-links { gap: 18px; font-size: 12px; }
  .language-link { padding-left: 14px; }
  .hero { grid-template-columns: 1fr; padding-block: 29px 42px; }
  .hero-copy { max-width: 520px; }
  h1 { font-size: clamp(34px, 10.5vw, 62px); }
  .hero-description { max-width: 500px; font-size: 16px; }
  .hero-art { height: 350px; margin-top: 20px; }
  .hero-art { height: 360px; }
  .devices-stage { transform: translateY(-8px); }
  .device--tv { top: 18px; width: min(340px, 86%); }
  .device--tablet { bottom: 34px; left: 1%; width: min(215px, 61%); }
  .device--phone { right: 0; bottom: 70px; width: min(158px, 46%); }
  .hero-index { bottom: 11px; }
  .how-to-play { padding-block: 34px 50px; }
  .seo-intro { padding-top: 28px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  h2 { font-size: 25px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { min-height: auto; padding: 18px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step h3 { margin-top: 8px; }
  .site-footer { min-height: 66px; gap: 12px; font-size: 10px; }
}

@media (max-width: 420px) {
  .site-header, .hero, .how-to-play, .site-footer { width: calc(100% - 32px); }
  .header-links a:first-child { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .site-footer span { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}