/* VICKAND / Shape Mania — site styles
   Palette from brand assets; background textures use project images */

:root {
  --asset-header: url("../assests/header%20image%20dev%20page%201.png");
  --asset-promo: url("../assests/google%20play%20stop%20frame.png");
  --asset-shape-a: url("../assests/shapes%20outline%20and%20fill.png");
  --asset-shape-b: url("../assests/shapes%20outline%20and%20fill-5.png");
  --asset-shape-c: url("../assests/shapes%20outline%20and%20fill-10.png");
  --asset-shape-d: url("../assests/shapes%20outline%20and%20fill-2.png");
  --asset-shape-e: url("../assests/shapes%20outline%20and%20fill-3.png");
  --asset-shape-f: url("../assests/shapes%20outline%20and%20fill-4.png");
  --asset-shape-g: url("../assests/shapes%20outline%20and%20fill-7.png");
  --asset-shape-h: url("../assests/shapes%20outline%20and%20fill-11.png");
  --color-bg: #13141a;
  --color-bg-warm: #1b1d26;
  --color-surface: rgba(255, 255, 255, 0.08);
  --color-ink: #f7f8ff;
  --color-ink-muted: #c6cad8;
  --color-body: #dde1ee;
  --color-gold: #ffd261;
  --color-coral: #eea89b;
  --color-slate: #84abc4;
  --color-accent-rose: #b35759;
  --color-accent-green: #78b671;
  --color-border: rgba(232, 237, 255, 0.18);
  --color-btn-dark: #1a1f2c;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 20px 54px rgba(0, 0, 0, 0.34);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-height: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 72rem;
  --space-section: clamp(3.5rem, 8vw, 6rem);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-hover: 0.35s;
  --leading-body: 1.68;
  --leading-tight-heading: 1.18;
}

@keyframes hero-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

/* Continuous gold sweep on primary CTA */
@keyframes hero-shine-loop {
  0% {
    transform: translateX(-165%) skewX(-11deg);
  }
  100% {
    transform: translateX(235%) skewX(-11deg);
  }
}

@keyframes float-visual {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes shape-drift-a {
  0%,
  100% {
    transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0) rotate(-4deg);
  }
  50% {
    transform: translate3d(
        calc(var(--parallax-x, 0px) - 12px),
        calc(var(--parallax-y, 0px) - 10px),
        0
      )
      rotate(4deg);
  }
}

@keyframes shape-drift-b {
  0%,
  100% {
    transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0) rotate(6deg);
  }
  50% {
    transform: translate3d(
        calc(var(--parallax-x, 0px) + 10px),
        calc(var(--parallax-y, 0px) + 12px),
        0
      )
      rotate(-4deg);
  }
}

@keyframes shape-drift-c {
  0%,
  100% {
    transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0) rotate(-3deg) scale(1);
  }
  33% {
    transform: translate3d(
        calc(var(--parallax-x, 0px) + 14px),
        calc(var(--parallax-y, 0px) - 16px),
        0
      )
      rotate(8deg)
      scale(1.05);
  }
  66% {
    transform: translate3d(
        calc(var(--parallax-x, 0px) - 12px),
        calc(var(--parallax-y, 0px) + 10px),
        0
      )
      rotate(-6deg)
      scale(0.97);
  }
}

@keyframes nav-item-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ambient-float-1 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(2.8vmin, -3.4vmin, 0) rotate(9deg);
  }
  50% {
    transform: translate3d(-2.2vmin, -1.2vmin, 0) rotate(-6deg);
  }
  75% {
    transform: translate3d(-2.6vmin, 3.2vmin, 0) rotate(7deg);
  }
}

@keyframes ambient-float-2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate3d(-3.6vmin, 2.9vmin, 0) rotate(-11deg) scale(1.1);
  }
  66% {
    transform: translate3d(3.2vmin, -2.4vmin, 0) rotate(9deg) scale(0.94);
  }
}

@keyframes ambient-float-3 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  20% {
    transform: translate3d(2.6vmin, 3.4vmin, 0) rotate(8deg);
  }
  45% {
    transform: translate3d(-3vmin, 1.8vmin, 0) rotate(-5deg);
  }
  70% {
    transform: translate3d(-2.4vmin, -3.1vmin, 0) rotate(-9deg);
  }
  90% {
    transform: translate3d(1.8vmin, -1.4vmin, 0) rotate(5deg);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn-play-hero__pulse,
  .hero-visual--focus {
    animation: none !important;
  }

  .btn-play-hero__shine::after {
    animation: none !important;
    opacity: 0 !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .ambient-shapes__flake {
    animation: none !important;
  }

  .hero-parallax-shape {
    animation: none !important;
  }

  .hero--focus::after,
  .section--screens::before,
  .section--screens::after {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: var(--leading-body);
  color: var(--color-body);
  background-color: transparent;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

body.is-menu-open {
  overflow: hidden;
}

/* Soft page wash (CSS only — no promo / header artwork) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
      ellipse 120% 80% at 70% 0%,
      rgba(255, 210, 97, 0.2) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 90% 60% at 10% 90%,
      rgba(238, 168, 155, 0.12) 0%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 75% 62% at 12% 8%,
      rgba(132, 171, 196, 0.16) 0%,
      transparent 50%
    ),
    var(--color-bg);
}

/* Floating shape sprites — no Google Play / hero promo art */
.ambient-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-shapes__flake {
  position: absolute;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.27;
  transform-origin: 50% 50%;
  will-change: transform;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25));
}

.ambient-shapes__flake--1 {
  top: 8%;
  left: 2%;
  width: min(11vw, 108px);
  height: min(11vw, 108px);
  background-image: var(--asset-shape-a);
  animation: ambient-float-1 22s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.ambient-shapes__flake--2 {
  top: 18%;
  right: 6%;
  width: min(9vw, 92px);
  height: min(9vw, 92px);
  background-image: var(--asset-shape-d);
  animation: ambient-float-2 28s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: -5s;
}

.ambient-shapes__flake--3 {
  top: 42%;
  left: 8%;
  width: min(8vw, 80px);
  height: min(8vw, 80px);
  background-image: var(--asset-shape-e);
  animation: ambient-float-3 20s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: -3s;
}

.ambient-shapes__flake--4 {
  bottom: 12%;
  left: 14%;
  width: min(10vw, 100px);
  height: min(10vw, 100px);
  background-image: var(--asset-shape-b);
  animation: ambient-float-2 25s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: -9s;
}

.ambient-shapes__flake--5 {
  top: 55%;
  right: 12%;
  width: min(12vw, 118px);
  height: min(12vw, 118px);
  background-image: var(--asset-shape-f);
  animation: ambient-float-1 30s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: -7s;
}

.ambient-shapes__flake--6 {
  bottom: 22%;
  right: 4%;
  width: min(9vw, 94px);
  height: min(9vw, 94px);
  background-image: var(--asset-shape-c);
  animation: ambient-float-3 24s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: -11s;
}

.ambient-shapes__flake--7 {
  top: 68%;
  left: 28%;
  width: min(7vw, 72px);
  height: min(7vw, 72px);
  background-image: var(--asset-shape-g);
  animation: ambient-float-2 18s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: -4s;
}

.ambient-shapes__flake--8 {
  top: 6%;
  left: 42%;
  width: min(8vw, 84px);
  height: min(8vw, 84px);
  background-image: var(--asset-shape-h);
  animation: ambient-float-1 26s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: -13s;
}

@media (max-width: 640px) {
  .ambient-shapes__flake {
    opacity: 0.19;
  }

  .ambient-shapes__flake--7,
  .ambient-shapes__flake--8 {
    display: none;
  }
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-rose);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--duration-hover) var(--ease-out);
}

a:hover {
  color: var(--color-ink);
}

:focus-visible {
  outline: 2px solid var(--color-accent-green);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--color-ink);
  color: var(--color-surface);
  z-index: 9999;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Layout ---------- */

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ---------- Site header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: var(--header-height);
  padding-block: 0.35rem;
  background: linear-gradient(180deg, rgba(24, 27, 36, 0.82) 0%, rgba(19, 22, 30, 0.8) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(198, 202, 216, 0.26);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.site-header:hover {
  background: linear-gradient(180deg, rgba(30, 33, 44, 0.9) 0%, rgba(20, 23, 32, 0.88) 100%);
  border-bottom-color: rgba(255, 210, 97, 0.42);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(132, 171, 196, 0.2) 0%,
    rgba(255, 210, 97, 0.16) 52%,
    rgba(238, 168, 155, 0.18) 100%
  );
  opacity: 0.55;
}

.header-inner {
  position: relative;
  z-index: 1;
  min-height: calc(var(--header-height) - 0.7rem);
  padding-inline: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  transition: transform var(--duration-hover) var(--ease-out),
    opacity var(--duration-hover) var(--ease-out);
}

.brand:hover {
  color: var(--color-ink);
  transform: translateY(-1px);
}

.brand:active {
  transform: translateY(0);
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.brand:hover img {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 8px 24px rgba(255, 208, 88, 0.35);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-ink);
  transition: transform 0.35s var(--ease-spring), background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.nav-toggle:hover {
  border-color: rgba(46, 44, 44, 0.16);
  box-shadow: 0 6px 22px rgba(255, 208, 88, 0.28);
  background: #fffef9;
}

.nav-toggle[aria-expanded="true"] {
  background: linear-gradient(180deg, rgba(40, 46, 63, 0.92) 0%, rgba(28, 33, 48, 0.94) 100%);
  border-color: rgba(255, 210, 97, 0.5);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 210, 97, 0.18) inset;
  color: #ffe8a7;
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.38s var(--ease-out);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.38s var(--ease-spring), top 0.38s var(--ease-spring),
    opacity 0.25s var(--ease-out);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: #d3d7e7;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-hover) var(--ease-out),
    border-color var(--duration-hover) var(--ease-out), transform 0.3s var(--ease-out);
}

.site-nav a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 208, 88, 0.65);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
  color: var(--color-ink);
  border-bottom-color: var(--color-gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.6rem;
  margin: 0.15rem 0.1rem;
  min-height: 3.1rem;
  min-width: 9.5rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  color: #f7f8ff !important;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none !important;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out),
    background 0.35s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 36px rgba(46, 44, 44, 0.18), 0 0 0 1px rgba(255, 208, 88, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  z-index: 150;
  background: rgba(46, 44, 44, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .site-header {
    padding-block: 0.2rem;
  }

  .header-inner {
    min-height: calc(var(--header-height) - 0.4rem);
    padding-inline: 0.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(26, 31, 45, 0.97) 0%, rgba(18, 22, 34, 0.98) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 1.1rem 1.1rem 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: none;
    border-radius: 0;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.46);
    z-index: 180;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.38s var(--ease-spring), opacity 0.32s var(--ease-out),
      visibility 0.38s, box-shadow 0.38s var(--ease-out);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--color-border);
    opacity: 0;
    transform: translateX(12px);
  }

  .site-nav.is-open li {
    animation: nav-item-in 0.45s var(--ease-out) forwards;
  }

  .site-nav.is-open li:nth-child(1) {
    animation-delay: 0.04s;
  }
  .site-nav.is-open li:nth-child(2) {
    animation-delay: 0.09s;
  }
  .site-nav.is-open li:nth-child(3) {
    animation-delay: 0.14s;
  }
  .site-nav.is-open li:nth-child(4) {
    animation-delay: 0.19s;
  }

  .site-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.0625rem;
  }

  .site-nav a:hover {
    transform: translateX(4px);
  }

  .site-nav .nav-cta-wrap {
    margin-top: 1rem;
    border: none;
  }

  .site-nav .nav-cta {
    width: 100%;
    padding: 1rem 1.55rem;
    min-height: 3.15rem;
  }

  /* Mobile perf: tone down expensive blur/filter layers */
  .site-header,
  .site-nav,
  .nav-backdrop,
  .card,
  .cta-band,
  .split-visual,
  .screenshot-frame {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ambient-shapes__flake,
  .hero-parallax-shape,
  .hero--focus::after,
  .section--screens::before,
  .section--screens::after {
    filter: none;
  }

  .ambient-shapes__flake {
    opacity: 0.16;
  }
}

@media (max-width: 768px) and (pointer: coarse) {
  /* iOS/Android keeps :hover after tap; avoid the white sticky square */
  .nav-toggle:hover {
    background: var(--color-surface);
    border-color: var(--color-border);
    box-shadow: none;
  }
}

@media (min-width: 769px) {
  .site-nav .nav-cta-wrap {
    margin-left: 0.85rem;
    list-style: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 var(--space-section);
  background: linear-gradient(
    165deg,
    rgba(34, 41, 58, 0.82) 0%,
    rgba(26, 31, 45, 0.74) 40%,
    rgba(17, 20, 31, 0.62) 100%
  );
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Home: centered story + primary install as focal point */
.hero--focus {
  --parallax-x: 0px;
  --parallax-y: 0px;
  padding-top: clamp(1.35rem, 3.2vw, 2.35rem);
  padding-bottom: clamp(1rem, 2.75vw, 1.75rem);
}

/* Intentionally no .hero::before — avoids google play stop frame / yellow promo on hero */

.hero--focus::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(26vw, 268px);
  aspect-ratio: 1;
  left: -3%;
  top: 8%;
  background-image: var(--asset-shape-a);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.4;
  pointer-events: none;
  animation: shape-drift-a 14s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.22));
}

.hero-parallax-shape {
  position: absolute;
  z-index: 0;
  display: block;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.38;
  will-change: transform;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.24));
}

.hero-parallax-shape--1 {
  top: 20%;
  right: -4%;
  width: min(22vw, 220px);
  aspect-ratio: 1;
  background-image: var(--asset-shape-d);
  animation: shape-drift-b 16s ease-in-out infinite;
  animation-delay: -3s;
}

.hero-parallax-shape--2 {
  bottom: 8%;
  left: 4%;
  width: min(19vw, 188px);
  aspect-ratio: 1;
  background-image: var(--asset-shape-g);
  animation: shape-drift-c 18s ease-in-out infinite;
  animation-delay: -6s;
}

.hero-parallax-shape--3 {
  top: 32%;
  left: 11%;
  width: min(14vw, 140px);
  aspect-ratio: 1;
  background-image: var(--asset-shape-f);
  animation: shape-drift-a 15s ease-in-out infinite;
  animation-delay: -8s;
  opacity: 0.4;
}

@media (max-width: 640px) {
  .hero-parallax-shape--1 {
    top: 14%;
    right: -8%;
    width: min(30vw, 140px);
    opacity: 0.32;
  }

  .hero-parallax-shape--2 {
    bottom: 4%;
    left: -2%;
    width: min(28vw, 128px);
    opacity: 0.3;
  }

  .hero-parallax-shape--3 {
    top: 28%;
    left: -4%;
    width: min(24vw, 116px);
    opacity: 0.32;
  }
}

.hero-focus {
  text-align: center;
  max-width: 38rem;
  width: 100%;
  margin-inline: auto;
  padding-bottom: clamp(1.15rem, 2.8vw, 1.9rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.65rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.game-mark--hero {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(0.65rem, 2vw, 1.1rem);
  padding: 0;
  max-width: min(100%, 24rem);
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
}

.game-mark img {
  height: clamp(32px, 6vw, 44px);
  width: auto;
}

.game-mark--hero img {
  height: auto;
  width: 100%;
  max-height: clamp(2.85rem, 12vw, 4.5rem);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.45));
}

.hero-focus h1 {
  margin: 0 auto 0.75rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #f8f9ff;
  max-width: 22ch;
  text-wrap: balance;
}

@media (min-width: 960px) {
  .hero-focus h1 {
    max-width: 26ch;
  }
}

.hero-focus__lead {
  margin: 0 auto;
  max-width: 44ch;
  line-height: 1.7;
  text-wrap: pretty;
  color: var(--color-body);
}

.hero-cta-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(1.05rem, 2.8vw, 1.45rem);
  width: 100%;
  justify-content: center;
}

.btn-play-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 0.35rem auto;
  padding: 1.15rem 1.95rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  color: #1a1f2c !important;
  background: linear-gradient(145deg, #ffe078 0%, var(--color-gold) 40%, #ffc93d 100%);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 0 rgba(180, 130, 40, 0.35), 0 18px 48px rgba(255, 200, 70, 0.45),
    0 0 0 1px rgba(46, 44, 44, 0.06);
  cursor: pointer;
  overflow: visible;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out),
    filter 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.btn-play-hero:hover {
  color: #141720 !important;
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.03);
  box-shadow: 0 6px 0 rgba(180, 130, 40, 0.38), 0 26px 56px rgba(255, 190, 60, 0.55),
    0 0 0 1px rgba(46, 44, 44, 0.08);
}

.btn-play-hero:active {
  color: #141720 !important;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 2px 0 rgba(180, 130, 40, 0.35), 0 12px 32px rgba(255, 200, 70, 0.4);
}

.btn-play-hero__inner {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
  text-align: center;
  transform: none;
}

.btn-play-hero__icon {
  flex-shrink: 0;
  opacity: 1;
  color: inherit;
  display: block;
}

.btn-play-hero__pulse {
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(255, 208, 88, 0.85);
  z-index: 0;
  pointer-events: none;
  animation: hero-pulse-ring 2.4s var(--ease-out) infinite;
}

.btn-play-hero__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.btn-play-hero__shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.75) 48%,
    rgba(255, 246, 210, 0.35) 52%,
    transparent 100%
  );
  opacity: 0.72;
  animation: hero-shine-loop 3.2s linear infinite;
  will-change: transform;
}

.btn-play-hero:hover .btn-play-hero__shine::after {
  opacity: 0.92;
  animation-duration: 2.35s;
}

.store-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}

.store-download-link img {
  display: block;
  width: clamp(220px, 64vw, 390px);
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.3));
  transition: transform 0.35s var(--ease-spring), filter 0.35s var(--ease-out);
}

.store-download-link:hover img {
  transform: translateY(-2px) scale(1.015);
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.34));
}

.hero-visual--focus {
  margin-top: 0;
  animation: float-visual 5.5s ease-in-out infinite;
  transition: box-shadow 0.45s var(--ease-out);
}

.hero-visual--focus:hover {
  box-shadow: 0 24px 56px rgba(46, 44, 44, 0.16);
}

.hero-visual--focus img {
  transition: transform 0.45s var(--ease-spring);
}

.hero-visual--focus:hover img {
  transform: scale(1.02);
}

/* Hero promo: show full artwork (no crop); gold frame fills any letterboxing */
.hero--focus .hero-visual {
  max-width: min(100%, 50rem);
  margin-inline: auto;
  display: block;
}

.hero--focus .hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.section-eyebrow--spaced {
  margin-bottom: 0.65rem;
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-on-scroll--delayed {
  transition-delay: 0.12s;
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--color-ink-muted);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.88rem 1.65rem;
  min-height: 3.2rem;
  margin: 0.2rem 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.38s var(--ease-spring), box-shadow 0.38s var(--ease-out),
    background 0.38s var(--ease-out), color 0.38s var(--ease-out),
    border-color 0.38s var(--ease-out);
}

.btn__icon-play {
  flex-shrink: 0;
  opacity: 0.95;
  display: block;
}

.btn-primary {
  background: var(--color-btn-dark);
  color: #f7f8ff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #edf0ff;
  border-color: var(--color-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-gold);
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.65rem 1rem;
  background: rgba(18, 21, 30, 0.72);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e7f8;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-section) 0;
}

/* Render offscreen blocks lazily where supported */
.section,
.about-block,
.game-preview,
.section--game-dual,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 760px;
}

.section--texture {
  position: relative;
  overflow: hidden;
}

/* Texture wash only — no promo SVG / store frame */
.section--texture::before {
  content: "";
  position: absolute;
  left: -8%;
  top: 15%;
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(132, 171, 196, 0.16) 0%,
    rgba(255, 208, 88, 0.1) 38%,
    transparent 68%
  );
  opacity: 0.85;
  filter: blur(0.5px);
}

.section--texture .container {
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 42rem;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
}

.section-header--wide {
  max-width: 48rem;
}

.section-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-rose);
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight-heading);
  text-wrap: balance;
  color: var(--color-ink);
}

.section-intro {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 1.0625rem;
  line-height: 1.68;
  max-width: 44rem;
  text-wrap: pretty;
}

/* Feature cards */
.card-grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .card-grid.card-grid--quad {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid.card-grid--quad {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1.65rem 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.38s var(--ease-out), transform 0.38s var(--ease-spring),
    border-color 0.38s var(--ease-out), background 0.38s var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(255, 208, 88, 0.58);
  background: rgba(255, 255, 255, 0.12);
}

.card-icon {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border-radius: 0;
  background: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
  align-self: flex-start;
}

.card-icon__img {
  width: 2.75rem;
  height: 2.75rem;
  max-width: 2.75rem;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}

.card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--color-body);
}

/* Game teaser / CTA band */
.cta-band {
  position: relative;
  margin: var(--space-section) 0;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(
      155deg,
      rgba(38, 44, 62, 0.72) 0%,
      rgba(24, 28, 40, 0.82) 45%,
      rgba(18, 22, 34, 0.88) 100%
    ),
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 200, 90, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 95% 80%, rgba(180, 120, 200, 0.1) 0%, transparent 50%);
  color: #f2f4ff;
  text-align: center;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.cta-band:not(.cta-band--store)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(132, 171, 196, 0.08) 0%,
    rgba(255, 210, 97, 0.06) 50%,
    rgba(238, 168, 155, 0.07) 100%
  );
  opacity: 0.85;
}

.cta-band:not(.cta-band--store) > * {
  position: relative;
  z-index: 1;
}

.cta-band--store {
  background: linear-gradient(145deg, rgba(20, 23, 34, 0.9) 0%, rgba(15, 18, 28, 0.88) 100%);
  color: #fff;
}

.cta-band--store::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(46, 44, 44, 0.9) 0%,
    rgba(46, 44, 44, 0.78) 42%,
    rgba(90, 118, 130, 0.55) 100%
  );
  pointer-events: none;
}

.cta-band--store > * {
  position: relative;
  z-index: 1;
}

.cta-band__fineprint {
  margin: 1rem auto 0;
  max-width: 32rem;
  font-size: 0.8125rem;
  opacity: 0.78;
}

.cta-band--store h2 {
  color: #fff;
}

.cta-band--store > p:not(.cta-band__fineprint) {
  opacity: 0.92;
}

.cta-band__btn {
  background: var(--color-gold) !important;
  color: var(--color-ink) !important;
  box-shadow: var(--shadow-md);
  transition: transform 0.38s var(--ease-spring), box-shadow 0.38s var(--ease-out),
    filter 0.35s var(--ease-out) !important;
}

.cta-band__btn:hover {
  color: var(--color-ink) !important;
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.04);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22) !important;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fdfdff;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  line-height: 1.68;
  opacity: 0.9;
  color: rgba(226, 231, 248, 0.95);
}

.cta-band .btn-primary {
  background: linear-gradient(145deg, #ffe078 0%, var(--color-gold) 42%, #ffc93d 100%);
  color: #1a1f2c !important;
  border: 2px solid rgba(255, 255, 255, 0.45);
  font-weight: 700;
  padding-inline: 2rem;
  min-height: 3.2rem;
  box-shadow: 0 4px 0 rgba(140, 100, 35, 0.35), 0 16px 40px rgba(255, 190, 70, 0.25);
  transform: none;
}

.cta-band .btn-primary:hover {
  color: #141720 !important;
  filter: brightness(1.04);
  box-shadow: 0 5px 0 rgba(140, 100, 35, 0.38), 0 22px 48px rgba(255, 185, 60, 0.35);
}

.cta-band .store-download-link {
  margin-top: 0.2rem;
}

.cta-band .store-download-link img {
  width: clamp(210px, 42vw, 320px);
}

.store-download-link.cta-band__btn,
.store-download-link.cta-band__btn:hover {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/* Split with illustration */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .split--reverse .split-visual {
    order: -1;
  }
}

.split-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.split-visual--svg {
  padding: clamp(1rem, 3vw, 2rem);
}

.split-visual--svg img,
.split-visual--svg object {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.split-visual:hover img {
  transform: scale(1.02);
}

.split-body h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.split-body p {
  margin: 0 0 1rem;
  color: var(--color-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 40rem;
}

.split-body p:last-child {
  margin-bottom: 0;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  background: linear-gradient(180deg, rgba(25, 30, 43, 0.86) 0%, rgba(19, 23, 34, 0.76) 100%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: -20% -15% auto auto;
  width: min(64vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle at 35% 40%,
    rgba(238, 168, 155, 0.14) 0%,
    rgba(132, 171, 196, 0.12) 45%,
    transparent 72%
  );
  opacity: 0.9;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__inner {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
}

.page-hero__inner .game-mark--hero {
  margin-left: auto;
  margin-right: auto;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--color-ink);
}

.page-hero .lead {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--color-body);
  font-size: 1.125rem;
  line-height: 1.72;
  text-wrap: pretty;
}

/* Game page: centred section titles (clear grid / readable) */
.page-game .section > .container > .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 44rem;
}

.page-game .section > .container > .section-header .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 44rem;
}

.section-header--center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* About timeline / list */
.about-block {
  position: relative;
  padding: var(--space-section) 0;
  overflow: hidden;
}

.about-block::before {
  content: "";
  position: absolute;
  left: -12%;
  top: 8%;
  width: min(58vw, 460px);
  height: min(58vw, 460px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at 42% 38%,
    rgba(132, 171, 196, 0.14) 0%,
    rgba(255, 208, 88, 0.09) 52%,
    transparent 70%
  );
  opacity: 0.85;
}

.about-block .container {
  position: relative;
  z-index: 1;
}

.prose {
  max-width: 42rem;
}

.prose h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.prose h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h1:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--color-body);
  line-height: 1.7;
  text-wrap: pretty;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--color-body);
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.68;
}

.prose code {
  font-size: 0.9em;
  font-family: ui-monospace, monospace;
  background: rgba(46, 44, 44, 0.08);
  padding: 0.15em 0.45em;
  border-radius: 6px;
}

/* Phone screenshots */
.section--screens {
  --parallax-x: 0px;
  --parallax-y: 0px;
  --shot-parallax-y: 0px;
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.35rem, 3.5vw, 2.4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(20, 25, 35, 0.62) 0%, rgba(16, 19, 28, 0.7) 100%);
}

.section--screens::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -6%;
  bottom: 6%;
  width: min(34vw, 320px);
  aspect-ratio: 1;
  background-image: var(--asset-shape-b);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.32;
  pointer-events: none;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.22));
  animation: shape-drift-b 22s ease-in-out infinite;
  animation-delay: -4s;
  will-change: transform;
}

.section--screens::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -4%;
  top: 10%;
  width: min(26vw, 248px);
  aspect-ratio: 1;
  background-image: var(--asset-shape-c);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.28;
  pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.2));
  animation: shape-drift-c 26s ease-in-out infinite;
  animation-delay: -9s;
  will-change: transform;
}

@media (max-width: 640px) {
  .section--screens::before {
    width: min(42vw, 200px);
    opacity: 0.24;
    right: -12%;
  }

  .section--screens::after {
    width: min(38vw, 168px);
    opacity: 0.2;
    left: -14%;
  }
}

.section--screens .section-header {
  margin-bottom: clamp(0.75rem, 2vw, 1.35rem);
}

.section--screens .container {
  position: relative;
  z-index: 1;
}

.screenshot-strip {
  display: grid;
  gap: 1rem;
  margin-top: 0.35rem;
}

.screenshot-strip--five {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 520px) {
  .screenshot-strip--five {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .screenshot-strip--five:not(.screenshot-strip--showcase) {
    grid-template-columns: repeat(5, 1fr);
  }
}

.screenshot-strip--three {
  grid-template-columns: 1fr;
}

@media (max-width: 979px) {
  /* Mobile carousel for both home and game screenshot strips */
  .screenshot-strip--showcase {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0.6rem;
    padding: 0.35rem 0.6rem 0.25rem;
    margin-inline: -0.6rem;
    scrollbar-width: none;
    touch-action: pan-x;
    /* Reliable, visible edge fade on mobile */
    box-shadow: inset 30px 0 26px -18px rgba(19, 20, 26, 0.9),
      inset -30px 0 26px -18px rgba(19, 20, 26, 0.9),
      inset 56px 0 44px -34px rgba(255, 210, 97, 0.1),
      inset -56px 0 44px -34px rgba(255, 210, 97, 0.1);
  }

  .screenshot-strip--showcase::-webkit-scrollbar {
    display: none;
  }

  .screenshot-strip--showcase .screenshot-frame {
    flex: 0 0 clamp(9.4rem, 56vw, 12.25rem);
    max-width: clamp(9.4rem, 56vw, 12.25rem);
    min-width: 0;
    scroll-snap-align: center;
    transform: none !important;
  }

  .screenshot-strip--showcase .screenshot-frame:hover {
    transform: none !important;
    filter: none;
  }
}

.carousel-dots {
  display: none;
}

@media (max-width: 979px) {
  .carousel-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.78rem auto 0;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(20, 24, 34, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  }

  .carousel-dot {
    appearance: none;
    border: 0;
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 999px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: rgba(214, 222, 242, 0.48);
    transition: width 0.26s var(--ease-out), background 0.26s var(--ease-out),
      box-shadow 0.26s var(--ease-out), transform 0.26s var(--ease-out);
  }

  .carousel-dot.is-active {
    width: 1.05rem;
    background: linear-gradient(180deg, #ffe58d 0%, var(--color-gold) 100%);
    box-shadow: 0 0 0 1px rgba(255, 236, 172, 0.45) inset, 0 0 16px rgba(255, 210, 97, 0.35);
    transform: translateY(-1px);
  }
}

@media (min-width: 980px) {
  .screenshot-strip--showcase {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(0.35rem, 1.1vw, 0.7rem);
    padding: 0.65rem 0 0.2rem;
    max-width: min(100%, 60rem);
    margin-inline: auto;
    perspective: 1600px;
  }

  .screenshot-strip--showcase .screenshot-frame {
    flex: 0 1 clamp(6.5rem, 8.5vw, 8.25rem);
    max-width: 8.25rem;
    transform-origin: 50% 100%;
  }

  /* Fan layout — symmetric arc; outer slots = yellow-frame shots */
  .screenshot-strip--showcase .screenshot-frame:nth-child(1) {
    transform: rotate(-5.5deg) translateY(calc(5px + var(--shot-parallax-y) * 0.48));
    z-index: 1;
  }
  .screenshot-strip--showcase .screenshot-frame:nth-child(2) {
    transform: rotate(-2.25deg) translateY(calc(2px + var(--shot-parallax-y) * 0.58));
    z-index: 2;
  }
  .screenshot-strip--showcase .screenshot-frame:nth-child(3) {
    transform: translateY(calc(-2px + var(--shot-parallax-y) * -0.38));
    z-index: 3;
  }
  .screenshot-strip--showcase .screenshot-frame:nth-child(4) {
    transform: rotate(2.25deg) translateY(calc(2px + var(--shot-parallax-y) * 0.58));
    z-index: 2;
  }
  .screenshot-strip--showcase .screenshot-frame:nth-child(5) {
    transform: rotate(5.5deg) translateY(calc(5px + var(--shot-parallax-y) * 0.48));
    z-index: 1;
  }

  /* Hovered card lifts slightly; siblings ease back like a spread deck */
  .screenshot-strip--showcase .screenshot-frame {
    transition: transform 0.55s var(--ease-spring), box-shadow 0.4s var(--ease-out),
      border-color 0.35s var(--ease-out), filter 0.4s var(--ease-out), z-index 0s linear 0.2s;
  }

  .screenshot-strip--showcase .screenshot-frame:hover {
    transform: scale(1.06) translateY(calc(-10px + var(--shot-parallax-y) * 0.15)) rotate(0deg) !important;
    z-index: 12;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45);
    filter: brightness(1.04);
  }

  .screenshot-strip--showcase:has(.screenshot-frame:hover) .screenshot-frame:not(:hover) {
    filter: brightness(0.92);
  }

  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(1):hover) .screenshot-frame:nth-child(2) {
    transform: rotate(-4deg) translateY(16px) translateX(10px) scale(0.94) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(1):hover) .screenshot-frame:nth-child(3) {
    transform: translateY(16px) translateX(18px) scale(0.93) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(1):hover) .screenshot-frame:nth-child(4) {
    transform: rotate(4deg) translateY(16px) translateX(26px) scale(0.92) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(1):hover) .screenshot-frame:nth-child(5) {
    transform: rotate(8deg) translateY(18px) translateX(34px) scale(0.91) !important;
  }

  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(2):hover) .screenshot-frame:nth-child(1) {
    transform: rotate(-9deg) translateY(18px) translateX(-18px) scale(0.93) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(2):hover) .screenshot-frame:nth-child(3) {
    transform: translateY(14px) translateX(16px) scale(0.93) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(2):hover) .screenshot-frame:nth-child(4) {
    transform: rotate(4deg) translateY(16px) translateX(24px) scale(0.92) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(2):hover) .screenshot-frame:nth-child(5) {
    transform: rotate(8deg) translateY(18px) translateX(32px) scale(0.91) !important;
  }

  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(3):hover) .screenshot-frame:nth-child(1) {
    transform: rotate(-10deg) translateY(20px) translateX(-28px) scale(0.91) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(3):hover) .screenshot-frame:nth-child(2) {
    transform: rotate(-5deg) translateY(16px) translateX(-14px) scale(0.93) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(3):hover) .screenshot-frame:nth-child(4) {
    transform: rotate(5deg) translateY(16px) translateX(14px) scale(0.93) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(3):hover) .screenshot-frame:nth-child(5) {
    transform: rotate(10deg) translateY(20px) translateX(28px) scale(0.91) !important;
  }

  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(4):hover) .screenshot-frame:nth-child(1) {
    transform: rotate(-9deg) translateY(18px) translateX(-34px) scale(0.91) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(4):hover) .screenshot-frame:nth-child(2) {
    transform: rotate(-5deg) translateY(16px) translateX(-24px) scale(0.92) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(4):hover) .screenshot-frame:nth-child(3) {
    transform: translateY(14px) translateX(-16px) scale(0.93) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(4):hover) .screenshot-frame:nth-child(5) {
    transform: rotate(8deg) translateY(16px) translateX(18px) scale(0.93) !important;
  }

  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(5):hover) .screenshot-frame:nth-child(1) {
    transform: rotate(-10deg) translateY(18px) translateX(-36px) scale(0.91) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(5):hover) .screenshot-frame:nth-child(2) {
    transform: rotate(-5deg) translateY(16px) translateX(-28px) scale(0.92) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(5):hover) .screenshot-frame:nth-child(3) {
    transform: translateY(14px) translateX(-18px) scale(0.93) !important;
  }
  .screenshot-strip--showcase:has(.screenshot-frame:nth-child(5):hover) .screenshot-frame:nth-child(4) {
    transform: rotate(4deg) translateY(14px) translateX(-10px) scale(0.94) !important;
  }
}

/* Game page: three screenshots — straight row, even spacing */
.screenshot-strip--row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0.6rem;
  padding: 0.35rem 0.6rem 0.25rem;
  margin-inline: -0.6rem;
  scrollbar-width: none;
  touch-action: pan-x;
  /* Reliable, visible edge fade on mobile */
  box-shadow: inset 30px 0 26px -18px rgba(19, 20, 26, 0.9),
    inset -30px 0 26px -18px rgba(19, 20, 26, 0.9),
    inset 56px 0 44px -34px rgba(255, 210, 97, 0.1),
    inset -56px 0 44px -34px rgba(255, 210, 97, 0.1);
}

.screenshot-strip--row::-webkit-scrollbar {
  display: none;
}

.screenshot-strip--row .screenshot-frame {
  flex: 0 0 clamp(9.4rem, 56vw, 12.25rem);
  max-width: clamp(9.4rem, 56vw, 12.25rem);
  min-width: 0;
  scroll-snap-align: center;
  transform: none !important;
}

@media (min-width: 980px) {
  .screenshot-strip--row {
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: clamp(0.85rem, 2.2vw, 1.35rem);
    max-width: min(100%, 48rem);
    margin-left: auto;
    margin-right: auto;
  }

  .screenshot-strip--row .screenshot-frame {
    flex: 1 1 0;
    min-width: 0;
    max-width: 11rem;
    transform: none !important;
  }

  .screenshot-strip--row .screenshot-frame:hover {
    transform: translateY(-10px) scale(1.04) !important;
    z-index: 3;
    filter: brightness(1.03);
  }

  .screenshot-strip--row:has(.screenshot-frame:hover) .screenshot-frame:not(:hover) {
    opacity: 0.92;
    filter: brightness(0.94);
  }
}

@media (min-width: 580px) {
  .screenshot-strip--three:not(.screenshot-strip--row) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.screenshot-frame {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, var(--shadow-sm);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.35s var(--ease-out), transform 0.45s var(--ease-spring),
    border-color 0.35s var(--ease-out);
}

.screenshot-frame:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 208, 88, 0.35);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Game page */
.game-preview {
  margin-bottom: var(--space-section);
}

.page-game .game-preview--centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(30rem, 68vh, 48rem);
  padding-block: clamp(2.25rem, 6vw, 4rem);
  margin-bottom: var(--space-section);
}

.page-game .game-preview--centered .split {
  align-items: center;
}

@media (min-width: 800px) {
  .page-game .game-preview--centered .split {
    min-height: min(440px, 52vh);
  }
}

.game-features,
.feature-list {
  max-width: 42rem;
  padding: 0;
  list-style: none;
}

.game-features li,
.feature-list li {
  display: block;
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 1rem;
  color: var(--color-body);
  font-size: 1.0625rem;
  line-height: 1.68;
}

.game-features li::before,
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-accent-green);
}

.feature-list strong,
.game-features li strong {
  display: inline;
  font-weight: 700;
  color: var(--color-ink);
}

ul.feature-list.prose {
  padding-left: 0;
}

.page-game ul.feature-list {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.35rem 1.5rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

/* Game page: two glass boxes — vertical stack under 900px, two columns wider. */
.game-dual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: row;
  gap: clamp(1.15rem, 2.6vw, 1.85rem);
  align-items: stretch;
  width: 100%;
}

@media (min-width: 900px) {
  .game-dual {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.2rem, 2.8vw, 1.9rem);
  }
}

.game-dual__col {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.page-game .game-dual__box {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.page-game .section--game-dual .game-dual__header {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.page-game .section--game-dual .game-dual__title {
  font-size: clamp(1.5rem, 2.35vw, 1.95rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.page-game .section--game-dual .game-dual__list {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  max-width: none;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-game .section--game-dual .game-dual__list li {
  font-size: 1.0625rem;
  line-height: 1.68;
  margin-bottom: 1rem;
  color: var(--color-body);
}

.page-game .section--game-dual .game-dual__list li:last-child {
  margin-bottom: 0;
}

.page-game .section--game-dual .game-dual__list strong {
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
  color: var(--color-ink);
}

@media (max-width: 899px) {
  .game-dual {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-game .section--game-dual .game-dual__header {
    text-align: center;
  }
}

.store-badge {
  display: inline-block;
  margin-top: 0.5rem;
}

.store-badge img {
  height: 54px;
  width: auto;
}

@media (max-width: 480px) {
  .store-badge img {
    height: 48px;
  }
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: var(--space-section);
  padding: 2.5rem 0;
  background: linear-gradient(180deg, rgba(24, 27, 36, 0.92) 0%, rgba(18, 21, 30, 0.94) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(198, 202, 216, 0.22);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  color: rgba(224, 230, 248, 0.82);
  font-size: 0.875rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    95deg,
    rgba(132, 171, 196, 0.12) 0%,
    rgba(255, 210, 97, 0.08) 48%,
    rgba(238, 168, 155, 0.1) 100%
  );
  opacity: 0.55;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  display: inline-block;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  transform: translateY(-2px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: #f7f8ff;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

@media (max-width: 360px) {
  body {
    font-size: 1rem;
  }

  .container {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .hero-focus {
    padding-bottom: 1.25rem;
  }

  .hero-focus h1 {
    font-size: clamp(1.65rem, 8.2vw, 2rem);
  }

  .hero-focus__lead {
    font-size: 1rem;
  }

  .btn-play-hero {
    width: 100%;
    justify-content: center;
    padding-inline: 1rem;
    border-radius: 18px;
  }

  .store-download-link img {
    width: min(92vw, 390px);
  }

  .btn-play-hero__inner {
    justify-content: center;
    text-align: center;
    line-height: 1;
  }

  .hero-badge {
    left: 0.5rem;
    right: 0.5rem;
    max-width: calc(100% - 1rem);
    padding: 0.55rem 0.7rem;
    font-size: 0.75rem;
  }

  .site-nav {
    width: min(18rem, 94vw);
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-frame,
  .screenshot-frame:hover,
  .screenshot-strip--showcase .screenshot-frame,
  .screenshot-strip--row .screenshot-frame:hover {
    transform: none !important;
  }
}
