:root {
  --hero-canvas: #160f09;
  --hero-surface: #28190d;
  --hero-orange: #ff8500;
  --hero-amber: #ffb21a;
  --hero-gold: #ffd36b;
  --hero-cream: #fff3dc;
  --hero-muted: #d8c1a3;
  --hero-green: #609b2d;
  --hero-line: rgba(255, 211, 107, 0.24);
  --hero-max: 1520px;
  --hero-gutter: clamp(18px, 3.4vw, 64px);
  --hero-radius: 22px;
  --hero-ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
  --hero-ease-press: cubic-bezier(0.4, 0, 0.2, 1);
}

.home-page .topbar {
  z-index: 100;
  background: rgba(22, 15, 9, 0.88);
  border-bottom-color: rgba(255, 211, 107, 0.16);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.game-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: clip;
  color: var(--hero-cream);
  background:
    radial-gradient(circle at 82% 38%, rgba(255, 133, 0, 0.17), transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(96, 155, 45, 0.09), transparent 28%),
    linear-gradient(122deg, #0b0805 0%, var(--hero-canvas) 46%, #211307 100%);
  border-bottom: 1px solid rgba(255, 211, 107, 0.13);
}

.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("../assets/brand/el-palo-hero-arcade.webp") 69% 50% / cover no-repeat;
  opacity: 0.4;
}

.game-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 8, 5, 0.36) 0%, rgba(11, 8, 5, 0.9) 31%, rgba(22, 15, 9, 0.58) 68%, rgba(11, 8, 5, 0.28) 100%),
    linear-gradient(180deg, rgba(11, 8, 5, 0.2), rgba(11, 8, 5, 0.78));
}

.game-hero__grain,
.game-hero__orbit {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.game-hero__grain {
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 13% 21%, rgba(255, 211, 107, 0.9) 0 1px, transparent 1.7px),
    radial-gradient(circle at 79% 17%, rgba(255, 178, 26, 0.85) 0 1.4px, transparent 2px),
    radial-gradient(circle at 91% 72%, rgba(255, 243, 220, 0.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 41% 88%, rgba(255, 133, 0, 0.85) 0 1.2px, transparent 2px);
  background-size: 160px 150px, 230px 210px, 190px 180px, 260px 240px;
}

.game-hero__orbit {
  width: min(72vw, 1040px);
  height: min(72vw, 1040px);
  inset: auto -27vw -42vw auto;
  border: 1px solid rgba(255, 178, 26, 0.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 178, 26, 0.025),
    0 0 0 112px rgba(255, 133, 0, 0.018);
}

.game-hero__layout {
  position: relative;
  width: min(var(--hero-max), calc(100% - (2 * var(--hero-gutter))));
  min-height: 100svh;
  margin-inline: auto;
  padding-block: clamp(112px, 12vh, 148px) clamp(66px, 8vh, 96px);
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(500px, 1.5fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(12px, 2.7vw, 48px);
}

.game-hero__character {
  position: relative;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  pointer-events: none;
}

.game-hero__character::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 82%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 133, 0, 0.18), transparent 68%);
}

.game-hero__character img {
  position: absolute;
  inset: 1% -58% -8% -58%;
  width: 216%;
  height: 107%;
  object-fit: cover;
  object-position: 50% 48%;
  display: block;
  opacity: 0.88;
  -webkit-mask-image: radial-gradient(ellipse 54% 68% at 50% 50%, #000 42%, transparent 86%);
  mask-image: radial-gradient(ellipse 54% 68% at 50% 50%, #000 42%, transparent 86%);
}

.game-hero__content {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 830px;
}

.game-hero__eyebrow {
  width: fit-content;
  margin: 0 0 clamp(16px, 2.2vh, 24px);
  padding: 8px 12px 7px;
  border: 1px solid rgba(255, 178, 26, 0.42);
  border-radius: 999px;
  color: var(--hero-gold);
  background: rgba(40, 25, 13, 0.7);
  font-size: clamp(0.69rem, 0.64rem + 0.18vw, 0.82rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.game-hero__title {
  max-width: 13.5ch;
  margin: 0;
  color: var(--hero-cream);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(2.75rem, 4.55vw, 5.15rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.game-hero__title-line {
  display: block;
}

.game-hero__title-line + .game-hero__title-line {
  margin-top: 0.15em;
  color: var(--hero-gold);
  text-shadow: 0 0.08em 0 rgba(120, 57, 0, 0.8);
}

.game-hero__support {
  max-width: 61ch;
  margin: clamp(22px, 3vh, 30px) 0 0;
  color: rgba(255, 243, 220, 0.84);
  font-size: clamp(1rem, 0.92rem + 0.28vw, 1.19rem);
  line-height: 1.65;
}

.game-hero__tension {
  margin: 14px 0 0;
  color: var(--hero-cream);
  font-size: clamp(1rem, 0.94rem + 0.2vw, 1.12rem);
  font-weight: 800;
  line-height: 1.45;
}

.game-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3.6vh, 34px);
}

.game-hero__button {
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transition:
    transform 150ms var(--hero-ease-press),
    color 190ms var(--hero-ease-out),
    background-color 190ms var(--hero-ease-out),
    border-color 190ms var(--hero-ease-out),
    box-shadow 190ms var(--hero-ease-out);
}

.game-hero__button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.game-hero__button--primary {
  color: #211307;
  background: linear-gradient(135deg, var(--hero-gold), var(--hero-amber) 62%, var(--hero-orange));
  border-color: rgba(255, 243, 220, 0.55);
  box-shadow: 0 14px 36px rgba(255, 133, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.66);
}

.game-hero__button--secondary {
  color: var(--hero-cream);
  background: rgba(22, 15, 9, 0.62);
  border-color: rgba(255, 211, 107, 0.33);
}

.game-hero__button:focus-visible {
  outline: 3px solid var(--hero-cream);
  outline-offset: 4px;
}

.game-hero__status {
  max-width: 58ch;
  margin: 20px 0 0;
  padding-left: 13px;
  color: rgba(216, 193, 163, 0.86);
  border-left: 3px solid var(--hero-green);
  font-size: 0.78rem;
  line-height: 1.55;
}

.game-hero__status strong {
  color: #b9dc91;
}

.game-hero__prize-stage {
  position: relative;
  z-index: 2;
  min-width: 0;
  margin: 0;
}

.game-hero__prize-canvas {
  position: relative;
  min-height: clamp(470px, 58vh, 640px);
}

.game-hero__prize-canvas::before {
  content: "";
  position: absolute;
  inset: 11% -12% 5%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 58%, rgba(255, 178, 26, 0.22), rgba(255, 133, 0, 0.06) 42%, transparent 69%);
}

.game-hero__timer {
  position: absolute;
  z-index: 5;
  top: 4%;
  left: 1%;
  width: min(100%, 222px);
  padding: 13px 15px 12px;
  border: 1px solid rgba(255, 211, 107, 0.45);
  border-radius: 16px;
  color: var(--hero-cream);
  background: rgba(22, 15, 9, 0.83);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.08);
}

.game-hero__timer-kicker,
.game-hero__timer-note {
  display: block;
}

.game-hero__timer-kicker {
  color: var(--hero-muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.game-hero__timer time {
  display: block;
  margin-block: 3px 2px;
  color: var(--hero-gold);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(2.25rem, 3.2vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.game-hero__timer-note {
  color: rgba(255, 243, 220, 0.78);
  font-size: 0.68rem;
  line-height: 1.35;
}

.game-hero__prize {
  position: absolute;
  z-index: 2;
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 24px rgba(0, 0, 0, 0.52));
}

.game-hero__prize--ps5 {
  left: -15%;
  bottom: 3%;
  width: 74%;
  z-index: 3;
}

.game-hero__prize--gta6 {
  left: 29%;
  bottom: 5%;
  width: 28%;
  z-index: 5;
  clip-path: polygon(8% 5%, 93% 8%, 93% 91%, 8% 94%);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.58));
}

.game-hero__prize--switch {
  top: 21%;
  right: -14%;
  width: 73%;
}

.game-hero__prize--rayban {
  right: -8%;
  bottom: 0;
  width: 58%;
  z-index: 4;
}

.game-hero__prize-caption {
  position: relative;
  z-index: 6;
  margin: -8px 0 0;
  color: rgba(216, 193, 163, 0.76);
  font-size: 0.69rem;
  line-height: 1.45;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .game-hero__button:hover {
    transform: translateY(-2px);
  }

  .game-hero__button--primary:hover {
    box-shadow: 0 18px 42px rgba(255, 133, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.72);
  }

  .game-hero__button--secondary:hover {
    color: var(--hero-gold);
    background: rgba(40, 25, 13, 0.86);
    border-color: rgba(255, 211, 107, 0.6);
  }
}

.game-hero__button:active {
  transform: translateY(1px) scale(0.985);
}

.js-motion .game-hero__eyebrow,
.js-motion .game-hero__title,
.js-motion .game-hero__support,
.js-motion .game-hero__tension,
.js-motion .game-hero__actions,
.js-motion .game-hero__status,
.js-motion .game-hero__timer {
  opacity: 0;
  animation: gameHeroEnter 620ms var(--hero-ease-out) forwards;
}

.js-motion .game-hero__title { animation-delay: 90ms; }
.js-motion .game-hero__support { animation-delay: 160ms; }
.js-motion .game-hero__tension { animation-delay: 220ms; }
.js-motion .game-hero__actions { animation-delay: 280ms; }
.js-motion .game-hero__status { animation-delay: 340ms; }
.js-motion .game-hero__timer { animation-delay: 250ms; }

.js-motion .game-hero__prize--ps5 {
  animation: gameHeroFloat 6.8s ease-in-out 700ms infinite alternate;
}

.js-motion .game-hero__prize--gta6 {
  animation: gameHeroFloat 6.5s ease-in-out 860ms infinite alternate-reverse;
}

.js-motion .game-hero__prize--switch {
  animation: gameHeroFloat 7.6s ease-in-out 980ms infinite alternate-reverse;
}

.js-motion .game-hero__prize--rayban {
  animation: gameHeroFloat 6.1s ease-in-out 820ms infinite alternate;
}

.js-motion .game-hero__grain {
  animation: gameHeroDrift 18s linear infinite alternate;
}

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

@keyframes gameHeroFloat {
  from { transform: translate3d(0, 0, 0) rotate(-0.8deg); }
  to { transform: translate3d(0, -8px, 0) rotate(0.8deg); }
}

@keyframes gameHeroDrift {
  from { transform: translate3d(-8px, -5px, 0); }
  to { transform: translate3d(8px, 5px, 0); }
}

@media (max-width: 1180px) {
  .game-hero__layout {
    grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
    gap: clamp(18px, 3vw, 36px);
  }

  .game-hero__character {
    position: absolute;
    inset: 84px auto 0 -14%;
    width: 46%;
    opacity: 0.2;
  }

  .game-hero__content {
    grid-column: 1;
  }

  .game-hero__prize-stage {
    grid-column: 2;
  }

  .game-hero__title {
    font-size: clamp(2.7rem, 5.8vw, 4.75rem);
  }
}

@media (min-width: 1181px) and (max-height: 780px) {
  .game-hero__layout {
    padding-block: 88px 40px;
  }

  .game-hero__title {
    font-size: 3.2rem;
  }

  .game-hero__support {
    margin-top: 17px;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .game-hero__tension {
    margin-top: 9px;
    font-size: 0.96rem;
  }

  .game-hero__actions {
    margin-top: 18px;
  }

  .game-hero__status {
    margin-top: 14px;
  }

  .game-hero__prize-canvas {
    min-height: 510px;
  }
}

@media (max-width: 820px) {
  .game-hero::before {
    background-image: url("../assets/brand/el-palo-hero-arcade-960.webp");
    background-position: 72% 50%;
    opacity: 0.3;
  }

  .game-hero::after {
    background: linear-gradient(180deg, rgba(11, 8, 5, 0.72) 0%, rgba(22, 15, 9, 0.92) 58%, rgba(11, 8, 5, 0.8) 100%);
  }

  .game-hero__layout {
    width: min(680px, calc(100% - (2 * var(--hero-gutter))));
    min-height: auto;
    padding-block: 108px 64px;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .game-hero__character {
    inset: 74px -12% auto auto;
    width: 72%;
    height: 440px;
    opacity: 0.14;
  }

  .game-hero__content,
  .game-hero__prize-stage {
    grid-column: 1;
  }

  .game-hero__content {
    max-width: 650px;
  }

  .game-hero__title {
    max-width: 14ch;
    font-size: clamp(2.45rem, 8.8vw, 4.5rem);
  }

  .game-hero__prize-canvas {
    width: min(100%, 520px);
    min-height: 390px;
    margin-inline: auto;
  }

  .game-hero__prize-caption {
    max-width: 54ch;
    margin-inline: auto;
  }
}

@media (min-width: 600px) and (max-height: 560px) {
  .game-hero__layout {
    min-height: 100svh;
    padding-block: 16px 28px;
    align-items: start;
  }

  .game-hero__eyebrow {
    margin-bottom: 9px;
    padding-block: 6px 5px;
    font-size: 0.62rem;
  }

  .game-hero__title {
    max-width: 21ch;
    font-size: 1.75rem;
    line-height: 1;
  }

  .game-hero__title-line + .game-hero__title-line {
    margin-top: 0.1em;
  }

  .game-hero__support {
    margin-top: 10px;
    font-size: 0.76rem;
    line-height: 1.42;
  }

  .game-hero__tension {
    margin-top: 6px;
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .game-hero__actions {
    gap: 8px;
    margin-top: 10px;
  }

  .game-hero__button {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
  }

  .game-hero__status {
    margin-top: 12px;
  }

  .game-hero__prize-canvas {
    min-height: 275px;
  }

  .game-hero__prize--switch {
    right: -4%;
  }

  .game-hero__prize--rayban {
    right: 0;
  }

  .game-hero__timer {
    top: 5%;
  }

  .game-hero__prize-caption {
    font-size: 0.62rem;
  }
}

@media (max-width: 520px) {
  .game-hero__layout {
    padding-block: 96px 52px;
    gap: 18px;
  }

  .game-hero__eyebrow {
    margin-bottom: 14px;
    padding: 7px 10px 6px;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .game-hero__title {
    max-width: 13.8ch;
    font-size: clamp(2.08rem, 10.6vw, 3.2rem);
    line-height: 1.01;
    letter-spacing: -0.044em;
  }

  .game-hero__support {
    margin-top: 18px;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .game-hero__tension {
    margin-top: 10px;
    font-size: 0.96rem;
  }

  .game-hero__actions {
    align-items: stretch;
    margin-top: 21px;
  }

  .game-hero__button {
    width: 100%;
    min-height: 48px;
  }

  .game-hero__status {
    margin-top: 16px;
    font-size: 0.74rem;
  }

  .game-hero__prize-canvas {
    min-height: 300px;
  }

  .game-hero__timer {
    top: 0;
    left: 50%;
    width: 194px;
    translate: -50% 0;
    text-align: center;
  }

  .game-hero__timer time {
    font-size: 2.25rem;
  }

  .game-hero__prize--ps5 {
    left: -2%;
    bottom: 1%;
    width: 54%;
  }

  .game-hero__prize--gta6 {
    left: 30%;
    bottom: 5%;
    width: 27%;
  }

  .game-hero__prize--switch {
    top: 30%;
    right: -4%;
    width: 55%;
  }

  .game-hero__prize--rayban {
    right: 12%;
    bottom: -2%;
    width: 39%;
  }

  .game-hero__prize-caption {
    margin-top: 0;
    font-size: 0.66rem;
  }
}

@media (max-width: 340px) {
  .game-hero__layout {
    width: calc(100% - 32px);
  }

  .game-hero__title {
    font-size: 2rem;
  }

  .game-hero__support,
  .game-hero__tension {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-motion .game-hero__eyebrow,
  .js-motion .game-hero__title,
  .js-motion .game-hero__support,
  .js-motion .game-hero__tension,
  .js-motion .game-hero__actions,
  .js-motion .game-hero__status,
  .js-motion .game-hero__timer {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .js-motion .game-hero__prize,
  .js-motion .game-hero__grain {
    transform: none !important;
    animation: none !important;
  }

  .game-hero *,
  .game-hero *::before,
  .game-hero *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
