:root {
  --landing-card-bg: rgba(15, 16, 26, 0.86);
  --landing-classic: #10aeef;
  --landing-classic-green: #6cff72;
  --landing-duo: #ff00e5;
}

body.landing-page {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-shell {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  isolation: isolate;
}

.landing-shell::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    radial-gradient(circle at 18% 32%, rgba(16, 174, 239, 0.12), transparent 28%),
    radial-gradient(circle at 82% 30%, rgba(255, 0, 229, 0.12), transparent 30%),
    linear-gradient(180deg, #090a13 0%, var(--bg-0) 50%, #05060b 100%);
}

.landing-shell::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at center, #000 12%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 12%, transparent 82%);
}

.landing-header {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 28px 12px;
  text-align: center;
}

.landing-kicker {
  margin: 0 0 5px;
  color: var(--text-mute);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.landing-title {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(0, 229, 255, 0.24);
}

.landing-intro {
  max-width: 42rem;
  margin: 10px auto 0;
  color: var(--text-soft);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(1000px, calc(100% - 40px));
  margin: 24px auto 56px;
}

.game-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 4vw, 36px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: var(--landing-card-bg);
  box-shadow: 0 26px 70px -34px rgba(0, 0, 0, 0.9);
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.game-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.7;
}

.game-card--classic::before {
  background: radial-gradient(circle at 50% 0%, rgba(16, 174, 239, 0.14), transparent 43%);
}

.game-card--duo::before {
  background: radial-gradient(circle at 50% 0%, rgba(255, 0, 229, 0.14), transparent 43%);
}

.game-card--classic:hover,
.game-card--classic:focus-within {
  border-color: rgba(16, 174, 239, 0.48);
  box-shadow: 0 0 28px rgba(16, 174, 239, 0.12), 0 26px 70px -34px rgba(0, 0, 0, 0.9);
  transform: translateY(-3px);
}

.game-card--duo:hover,
.game-card--duo:focus-within {
  border-color: rgba(255, 0, 229, 0.48);
  box-shadow: 0 0 28px rgba(255, 0, 229, 0.12), 0 26px 70px -34px rgba(0, 0, 0, 0.9);
  transform: translateY(-3px);
}

.game-icon-link,
.game-shot-link {
  display: block;
  border-radius: 22%;
}

.game-icon-link:focus-visible,
.game-shot-link:focus-visible,
.game-store-link:focus-visible,
.landing-explore:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.game-icon {
  width: clamp(108px, 14vw, 142px);
  aspect-ratio: 1;
  border-radius: 22%;
  object-fit: cover;
}

.game-card--classic .game-icon {
  box-shadow: 0 0 28px rgba(16, 174, 239, 0.3), 0 18px 38px -18px #000;
}

.game-card--duo .game-icon {
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.25), 0 0 46px rgba(255, 0, 229, 0.16), 0 18px 38px -18px #000;
}

.game-wordmark {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 16px;
}

.game-wordmark img {
  width: min(270px, 82%);
}

.game-wordmark--duo {
  gap: 0.3em;
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
}

.game-description {
  max-width: 32rem;
  min-height: 3.1em;
  margin: 0 0 20px;
  color: var(--text-soft);
}

.game-shot-link {
  width: min(210px, 64%);
  margin-top: auto;
  border-radius: 24px;
}

.game-shot {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 22px 42px -18px rgba(0, 0, 0, 0.95);
  transition: filter 180ms ease, transform 180ms ease;
}

.game-shot-link:hover .game-shot {
  filter: brightness(1.08);
  transform: scale(1.015);
}

.game-card--classic .game-shot {
  border: 0;
  background: transparent;
  box-shadow: none;
  filter:
    drop-shadow(0 0 1px rgba(16, 174, 239, 0.95))
    drop-shadow(0 0 8px rgba(16, 174, 239, 0.42))
    drop-shadow(0 18px 18px rgba(0, 0, 0, 0.65));
}

.game-card--classic .game-shot-link:hover .game-shot {
  filter:
    brightness(1.08)
    drop-shadow(0 0 1px rgba(16, 174, 239, 0.95))
    drop-shadow(0 0 10px rgba(16, 174, 239, 0.5))
    drop-shadow(0 18px 18px rgba(0, 0, 0, 0.65));
}

.game-card--duo .game-shot {
  border-color: rgba(255, 0, 229, 0.35);
}

.game-actions {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 24px;
}

.game-stores {
  display: flex;
  min-height: 46px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.game-store-link {
  display: block;
}

.game-store-link img {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.game-store-link--amazon {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: #000;
}

.game-store-link--amazon img {
  height: 30px;
}

.coming-soon-badge {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(255, 196, 0, 0.42);
  border-radius: 10px;
  background: rgba(255, 196, 0, 0.06);
  color: var(--neon-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-explore {
  width: 100%;
}

.game-card--classic .landing-explore {
  border-color: rgba(16, 174, 239, 0.64);
  color: #66d2ff;
}

.game-card--classic .landing-explore:hover {
  border-color: var(--landing-classic);
  background: rgba(16, 174, 239, 0.1);
}

.game-card--duo .landing-explore {
  border-color: rgba(255, 0, 229, 0.58);
  color: #ff72f1;
}

.game-card--duo .landing-explore:hover {
  border-color: var(--landing-duo);
  background: rgba(255, 0, 229, 0.09);
}

.landing-footer {
  padding: 0 20px 30px;
  color: var(--text-mute);
  font-size: 0.82rem;
  text-align: center;
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-bottom: 10px;
}

.landing-footer p {
  margin: 0;
}

.landing-footer a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.landing-floats {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.landing-float {
  position: absolute;
  opacity: 0.48;
  filter: drop-shadow(0 0 8px currentColor);
  animation: landing-float 10s ease-in-out infinite;
}

.landing-float--classic-square {
  top: 12%;
  left: 3%;
  width: 54px;
  color: #c44bff;
  animation-delay: -2s;
}

.landing-float--classic-hex {
  bottom: 12%;
  left: 6%;
  width: 62px;
  color: #ff9b34;
  animation-delay: -6s;
}

.landing-float--classic-triangle {
  top: 48%;
  left: 1%;
  width: 48px;
  color: #00e5ff;
  animation-delay: -4s;
}

.landing-float--duo-a {
  top: 11%;
  right: 4%;
  color: #ff007f;
  animation-delay: -1s;
}

.landing-float--duo-b {
  top: 47%;
  right: 1%;
  color: #39ff14;
  animation-delay: -5s;
}

.landing-float--duo-c {
  right: 7%;
  bottom: 10%;
  color: #bd00ff;
  animation-delay: -7s;
}

@keyframes landing-float {
  0%,
  100% {
    transform: translate3d(0, -8px, 0) rotate(-5deg);
  }

  50% {
    transform: translate3d(14px, 10px, 0) rotate(7deg);
  }
}

@media (max-width: 780px) {
  .landing-header {
    padding-top: 24px;
  }

  .game-grid {
    grid-template-columns: 1fr;
    width: min(540px, calc(100% - 28px));
    margin-top: 18px;
  }

  .game-description {
    min-height: 0;
  }

  .landing-float {
    opacity: 0.3;
  }
}

@media (max-width: 420px) {
  .landing-header {
    width: calc(100% - 28px);
  }

  .game-card {
    padding-inline: 20px;
  }

  .game-stores {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card,
  .game-shot,
  .landing-float {
    animation: none;
    transition: none;
  }
}
