:root {
  --bg: #090d16;
  --ink: #f5f7fb;
  --muted: #9fb0c8;
  --line: rgba(159, 176, 200, 0.18);
  --accent: #5df2c1;
  --accent-2: #79a8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(93, 242, 193, 0.14), transparent 24%),
    radial-gradient(circle at 80% 20%, rgba(121, 168, 255, 0.18), transparent 22%),
    radial-gradient(circle at bottom center, rgba(255, 116, 71, 0.12), transparent 18%),
    linear-gradient(180deg, #05070d 0%, var(--bg) 100%);
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(transparent 0, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: soft-light;
}

.site-shell {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 102px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 38px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.lang-button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: flex-end;
  padding: 40px;
  border-radius: 28px;
  overflow: visible;
  background:
    radial-gradient(circle at top left, rgba(121, 168, 255, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(4, 8, 15, 0.22), rgba(4, 8, 15, 0.88));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    radial-gradient(circle at top, rgba(121, 168, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #0b1220 0%, #06090f 100%);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(3, 6, 10, 0.16) 0%, rgba(3, 6, 10, 0.55) 56%, rgba(3, 6, 10, 0.9) 100%),
    linear-gradient(90deg, rgba(3, 6, 10, 0.52) 0%, rgba(3, 6, 10, 0.16) 45%, rgba(3, 6, 10, 0.46) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
.quote {
  margin: 0;
  line-height: 0.96;
}

h1,
h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(3.9rem, 8.8vw, 7.8rem);
  max-width: none;
  margin: 10px 0 0;
  line-height: 0.9;
}

.title-line {
  display: block;
}

#hero-line-2 {
  white-space: nowrap;
  font-size: 0.74em;
  letter-spacing: 0.01em;
}

.download-dots {
  display: inline-block;
  white-space: nowrap;
  margin-left: 0.02em;
}

.download-wrap {
  white-space: nowrap;
}

.download-dots span {
  opacity: 0.18;
  animation: downloadPulse 1.6s infinite ease-in-out;
}

.download-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.download-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

h2 {
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  max-width: 14ch;
  margin-top: 10px;
}

p {
  line-height: 1.7;
  font-size: 1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
  font-size: 0.92rem;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111f;
  box-shadow: 0 10px 30px rgba(93, 242, 193, 0.2);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.games {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.games-heading {
  max-width: 860px;
}

.games-intro {
  max-width: 720px;
  margin: 0;
}

.games-carousel {
  position: relative;
  --game-media-height: 331px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(159, 176, 200, 0.12);
  border-radius: 32px;
  background: rgba(15, 21, 34, 0.72);
}

.games-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 340px);
  grid-template-columns: none;
  justify-content: center;
  gap: 22px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 28px 0 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.games-grid::-webkit-scrollbar {
  display: none;
}

.games-grid.is-overflowing {
  justify-content: start;
}

.games-grid .game-card {
  scroll-snap-align: center;
}

.games-grid .game-card-featured {
  grid-column: auto;
}

.games-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(245, 247, 251, 0.2);
  border-radius: 50%;
  background: rgba(5, 8, 15, 0.82);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-50%);
}

.games-carousel-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.games-carousel-button-previous {
  left: 10px;
}

.games-carousel-button-next {
  right: 10px;
}

.game-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(7, 11, 20, 0.72);
  box-shadow: var(--shadow);
  overflow: visible;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(121, 168, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(93, 242, 193, 0.1), transparent 24%);
  pointer-events: none;
}

.game-card-featured {
  grid-column: span 2;
}

.game-media,
.game-copy {
  position: relative;
  z-index: 1;
}

.game-media {
  width: 100%;
  height: var(--game-media-height);
  min-height: var(--game-media-height);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.84), rgba(7, 12, 20, 0.94));
}

.game-media-video {
  min-height: 0;
  width: min(100%, 152px);
  height: var(--game-media-height);
  aspect-ratio: 1320 / 2868;
  margin-inline: auto;
}

.game-trailer {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.86) contrast(1.06) brightness(0.9);
}

.store-stack {
  position: absolute;
  inset: 0;
}

.game-media-store {
  background:
    radial-gradient(circle at top left, rgba(121, 168, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(8, 14, 24, 0.84), rgba(4, 7, 13, 0.98));
}

.store-stack {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 10px;
  padding: 18px;
}

.store-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-copy {
  display: grid;
  grid-template-rows: 24px 42px 26px var(--game-media-height) 96px 44px;
  gap: 12px;
  align-content: start;
}

.game-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.game-status {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  padding: 3px 8px;
  border: 1px solid rgba(255, 196, 92, 0.46);
  border-radius: 999px;
  background: rgba(255, 196, 92, 0.08);
  color: #ffc45c;
  font-size: 0.86em;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.game-card h3 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: 0.03em;
  line-height: 0.94;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-tagline,
.game-description {
  margin: 0;
}

.game-tagline {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-description {
  color: var(--muted);
  line-height: 1.5;
  min-height: calc(1.5em * 4);
  min-width: 0;
}

.game-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  min-height: 44px;
}

.game-store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.store-badges {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 112px;
  height: 36px;
  overflow: hidden;
}

.store-badge-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-badge-image-google {
  width: 100%;
  height: 100%;
}

section {
  margin-bottom: 120px;
}

.section-heading {
  margin-bottom: 22px;
}

.single-panel,
.contact-card {
  max-width: 640px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact .section-heading h2 {
  max-width: none;
  text-wrap: balance;
}

@keyframes downloadPulse {
  0%,
  20%,
  100% {
    opacity: 0.18;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-0.04em);
  }
}


@media (max-width: 920px) {
  .topbar {
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }

  .nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-left: auto;
    justify-content: flex-end;
  }

  .brand-logo {
    height: 72px;
  }

  .hero {
    min-height: 78vh;
    padding: 24px;
  }

  .games-grid {
    grid-auto-columns: minmax(280px, 86vw);
    grid-template-columns: none;
  }

  .game-card-featured {
    grid-column: span 1;
  }

  h1,
  h2 {
    max-width: none;
  }

  h1 {
    font-size: clamp(3.4rem, 11vw, 5.8rem);
  }

}

@media (max-height: 860px) and (min-width: 921px) {
  .games {
    gap: 18px;
  }

  .games-grid {
    gap: 16px;
  }

  .games-carousel {
    --game-media-height: 288px;
  }

  .game-card {
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
  }

  .game-media {
    border-radius: 18px;
  }

  .game-copy {
    gap: 10px;
    grid-template-rows: 22px 36px 24px var(--game-media-height) 96px 40px;
  }

  .game-meta {
    gap: 8px 12px;
    font-size: 0.7rem;
  }

  .game-card h3 {
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    line-height: 0.92;
  }

  .game-tagline {
    font-size: 0.92rem;
  }

  .game-description {
    font-size: 0.88rem;
    -webkit-line-clamp: 4;
  }

  .game-actions {
    margin-top: 0;
    min-height: 40px;
  }

  .store-badges {
    gap: 6px;
  }

  .store-badge {
    width: 104px;
    height: 34px;
  }

  .game-store-actions {
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1160px);
  }

  .hero {
    min-height: 72vh;
    padding: 20px;
    border-radius: 22px;
    align-items: flex-end;
  }

  .brand-logo {
    height: 54px;
  }

  .topbar {
    gap: 10px;
  }

  .nav {
    gap: 8px;
    font-size: 0.8rem;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
    line-height: 0.92;
  }

  .hero-copy {
    max-width: 100%;
  }

  #hero-line-2 {
    font-size: 0.68em;
    letter-spacing: 0.005em;
  }

  html[lang="es"] h1 {
    font-size: clamp(2.7rem, 12.65vw, 4.35rem);
  }

  html[lang="es"] #hero-line-2 {
    font-size: 0.7em;
    letter-spacing: 0;
  }

  .eyebrow {
    font-size: 1.1rem;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .button {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.88rem;
  }

  .game-media {
    min-height: 220px;
  }

  .lang-button {
    min-width: 34px;
    min-height: 28px;
    padding: 0 8px;
  }

  .lang-switch {
    gap: 4px;
    padding: 3px;
  }

}

/* Video cards use the responsive ratio instead of the art-card minimum height. */
.game-media-video {
  min-height: 0;
}
