/* Oxanium by Severin Meyer, licensed under SIL OFL 1.1. */
@font-face {
  font-family: "Oxanium";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/games/super2048/fonts/oxanium-latin-variable-v1.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  font-family: "Oxanium", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f7f9ff;
  background: #02040a;
  --ink: #f7f9ff;
  --muted: #aebbd0;
  --blue: #19bfff;
  --blue-soft: #7fe4ff;
  --gold: #ffad18;
  --gold-soft: #ffe07a;
  --surface: rgba(5, 10, 21, 0.88);
  --header-height: 4.25rem;
  --display-font: "Oxanium", "Arial Black", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: #02040a;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -15rem, rgba(16, 104, 190, 0.26), transparent 44rem),
    #02040a;
}

.game-page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  isolation: isolate;
}

.game-page-center {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
  overflow-x: clip;
  background: #02040a;
}

a { color: inherit; }

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #03060d;
  background: #fff;
  border-radius: 0.65rem;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.global-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  background: rgba(2, 4, 10, 0.82);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}

.global-header nav,
.global-footer p {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
}

.global-header nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}

.global-brand {
  font-family: var(--display-font);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.global-brand:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 6px;
}

.global-footer {
  position: relative;
  z-index: 5;
  width: 100%;
  background: #02040a;
}

.global-footer p {
  padding: 1.75rem 0;
  color: #8f9db2;
  font-size: 0.88rem;
}

.preview-notice {
  position: relative;
  z-index: 40;
  padding: 0.52rem 1rem;
  color: #171203;
  background: linear-gradient(90deg, #ffe98f, #ffbd31 50%, #ffe98f);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.eyebrow,
.section-index {
  margin: 0;
  color: var(--gold-soft);
  font-family: var(--display-font);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Public pre-launch holding page */
.holding-main {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 7vw, 6rem) 1rem;
  background: #02040a;
}

.holding-media,
.holding-media img,
.holding-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.holding-media { z-index: -3; }

.holding-media img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.holding-shade {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 42%, rgba(2, 5, 12, 0.2), rgba(2, 5, 12, 0.82) 72%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.2), rgba(2, 5, 12, 0.72));
}

.holding-copy {
  width: min(100%, 55rem);
  min-width: 0;
  max-width: 100%;
  text-align: center;
  text-shadow: 0 0.4rem 2.4rem rgba(0, 0, 0, 0.9);
}

.holding-copy h1,
.game-hero h1 {
  margin: 0.3rem 0 1.1rem;
  font-family: var(--display-font);
  font-size: clamp(3.15rem, 10.5vw, 8.8rem);
  font-weight: 950;
  line-height: 0.84;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.holding-copy h1 {
  width: 100%;
  max-width: 100%;
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  white-space: nowrap;
}

.holding-copy > p:not(.eyebrow) {
  margin: 0;
  color: #e9f5ff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.holding-status {
  display: inline-flex;
  margin-top: 1.4rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: #b9c7da;
  background: rgba(2, 5, 12, 0.64);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

/* Private game-page preview */
.game-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  flex: 1 0 auto;
  overflow: clip;
  padding: 0 0 clamp(5rem, 10vw, 10rem);
  scroll-margin-top: var(--header-height);
}

.game-flow {
  position: relative;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3.5rem, 8vw, 8rem);
  margin: 0 auto;
}

.side-art {
  position: sticky;
  z-index: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  grid-row: 1;
  align-self: start;
  display: none;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.94;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.12) contrast(1.06);
}

.side-art-left {
  justify-self: start;
}

.side-art-right {
  justify-self: end;
}

.game-hero,
.game-section,
.merge-sticky {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(1.35rem, 3vw, 2.4rem);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.42);
}

.game-hero {
  min-height: clamp(34rem, 72svh, 48rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;
  background: #050a14;
}

.game-hero-media,
.game-hero-media img,
.game-hero-shade,
.game-hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-area: 1 / 1;
}

.game-hero-media,
.game-hero-media img {
  width: 100%;
  height: 100%;
}

.game-hero-media img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.game-hero-shade {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 36%, rgba(2, 5, 12, 0.05), rgba(2, 5, 12, 0.48) 52%, rgba(2, 5, 12, 0.82) 100%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.06), transparent 46%, rgba(2, 5, 12, 0.78));
}

.game-hero-copy {
  z-index: 2;
  justify-self: stretch;
  align-self: center;
  padding: clamp(2rem, 6vw, 5.5rem);
  text-align: center;
  text-shadow: 0 0.5rem 2.5rem rgba(0, 0, 0, 0.92);
}

.game-hero h1 {
  width: 100%;
  max-width: 100%;
  color: #fff;
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  white-space: nowrap;
  filter: drop-shadow(-0.04em 0 0 rgba(22, 183, 255, 0.78)) drop-shadow(0.04em 0 0 rgba(255, 179, 31, 0.7));
}

.game-hero-tagline {
  margin: 0;
  color: #dcecff;
  font-size: clamp(0.92rem, 1.8vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-cue {
  width: 2.65rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  border-radius: 50%;
  color: #dff7ff;
  background: rgba(3, 8, 18, 0.58);
  box-shadow: 0 0 2rem rgba(22, 183, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-scroll-cue svg { width: 1.2rem; }

.game-pulse {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 2rem), 59rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: clamp(-7.5rem, -8vw, -5rem) auto 0;
  padding: 0.6rem;
  border-radius: 1.55rem;
  background: rgba(4, 10, 21, 0.76);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.pulse-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: clamp(0.8rem, 2vw, 1.15rem);
  border-radius: 1.05rem;
  background: linear-gradient(145deg, rgba(22, 183, 255, 0.08), rgba(255, 179, 31, 0.04));
}

.pulse-icon,
.updates-icon {
  flex: 0 0 auto;
  width: 2.8rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  color: var(--blue-soft);
  background: rgba(19, 151, 225, 0.16);
  box-shadow: inset 0 0 1.2rem rgba(22, 183, 255, 0.08);
}

.pulse-icon-gold {
  color: var(--gold-soft);
  background: rgba(255, 173, 24, 0.14);
}

.pulse-icon-spark {
  color: #d8c0ff;
  background: rgba(135, 83, 255, 0.14);
}

.pulse-icon svg,
.updates-icon svg { width: 1.5rem; }

.pulse-item strong,
.pulse-item span {
  display: block;
  min-width: 0;
}

.pulse-item strong {
  font-family: var(--display-font);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-item div > span {
  margin-top: 0.18rem;
  color: #8fa0b8;
  font-size: 0.72rem;
  line-height: 1.35;
}

.game-section {
  padding: clamp(1.5rem, 5vw, 4.75rem);
  background:
    radial-gradient(circle at 90% 10%, rgba(21, 155, 230, 0.14), transparent 24rem),
    linear-gradient(145deg, rgba(10, 18, 34, 0.96), rgba(3, 7, 16, 0.96));
}

.game-section h2,
.merge-copy h2 {
  margin: 0.55rem 0 1rem;
  font-family: var(--display-font);
  font-size: clamp(2.15rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.game-section p:not(.section-index),
.merge-copy p:not(.section-index) {
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.55vw, 1.14rem);
  line-height: 1.72;
}

.trailer-section {
  min-height: min(82svh, 49rem);
  display: grid;
  grid-template-columns: minmax(15rem, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.trailer-copy { position: relative; z-index: 2; }

.trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(1rem, 2.4vw, 1.75rem);
  color: #eaf7ff;
  background:
    linear-gradient(rgba(33, 142, 218, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 142, 218, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(17, 137, 220, 0.2), transparent 44%),
    #030814;
  background-size: 2.25rem 2.25rem, 2.25rem 2.25rem, auto, auto;
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.64), 0 1.5rem 4rem rgba(0, 0, 0, 0.36);
}

.trailer-glow {
  position: absolute;
  z-index: -1;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 183, 255, 0.2), transparent 68%);
  filter: blur(0.2rem);
}

.trailer-play {
  width: clamp(4.5rem, 8vw, 6.5rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06101d;
  background: linear-gradient(135deg, #74e6ff, #ffbe34 72%);
  box-shadow: 0 0 3.6rem rgba(22, 183, 255, 0.28), 0 0 5rem rgba(255, 173, 24, 0.16);
}

.trailer-play svg {
  width: 2rem;
  fill: currentColor;
  stroke: none;
  transform: translateX(0.12rem);
}

.trailer-status {
  position: absolute;
  inset: auto 1.25rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #dcecff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trailer-status span { color: #7f90a8; }

.merge-journey {
  position: relative;
  left: 50%;
  width: min(94vw, 96rem);
  min-height: min(78svh, 56rem);
  transform: translateX(-50%);
}

.merge-sticky {
  min-height: min(78svh, 56rem);
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: clamp(1.5rem, 5vw, 5rem);
  background: #030712;
}

.merge-backdrop,
.merge-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.merge-backdrop {
  z-index: -3;
  display: block;
  object-fit: cover;
  object-position: center;
}

.merge-vignette {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 50%, rgba(2, 5, 12, 0.04), rgba(2, 5, 12, 0.55) 64%, rgba(2, 5, 12, 0.9) 100%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.64), transparent 35%, transparent 68%, rgba(2, 5, 12, 0.75));
}

.merge-copy {
  position: absolute;
  z-index: 3;
  top: clamp(2rem, 7vh, 5rem);
  left: 50%;
  width: min(calc(100% - 3rem), 47rem);
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 600ms ease, transform 700ms ease;
}

.merge-copy p { margin-inline: auto; }

.merge-static-equation {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 2vw, 1.3rem);
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 900;
}

.static-tile,
.merge-tile {
  width: clamp(5.4rem, 12vw, 10rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: clamp(1rem, 2vw, 1.6rem);
  font-family: var(--display-font);
  font-size: clamp(1.2rem, 3.4vw, 2.8rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 2rem rgba(255, 255, 255, 0.09), 0 1.4rem 3rem rgba(0, 0, 0, 0.5);
}

.static-tile-blue,
.merge-tile-left {
  color: #edfbff;
  background: linear-gradient(145deg, #07396b, #0ea9ef);
  box-shadow: inset 0 0 2rem rgba(126, 231, 255, 0.2), 0 0 3rem rgba(16, 164, 235, 0.24);
}

.static-tile-gold,
.merge-tile-right {
  color: #fff8dc;
  background: linear-gradient(145deg, #7c3c03, #ffad18);
  box-shadow: inset 0 0 2rem rgba(255, 236, 155, 0.2), 0 0 3rem rgba(255, 173, 24, 0.22);
}

.static-tile-result,
.merge-tile-result {
  color: #231300;
  background: linear-gradient(145deg, #fff3aa, #ff9b08 78%);
  box-shadow: inset 0 0 2rem rgba(255, 255, 255, 0.3), 0 0 4.5rem rgba(255, 173, 24, 0.5);
}

.merge-arena { display: none; }

.merge-final-line {
  position: absolute;
  z-index: 4;
  right: 1.5rem;
  bottom: clamp(2.5rem, 7vh, 5rem);
  left: 1.5rem;
  margin: 0;
  color: #fff0b8;
  font-family: var(--display-font);
  font-size: clamp(0.82rem, 1.5vw, 1.05rem);
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.merge-progress { display: none; }

.has-game-motion .merge-journey { height: 420svh; }

.has-game-motion .merge-sticky {
  position: sticky;
  top: var(--header-height);
  height: calc(100svh - var(--header-height));
  min-height: 0;
}

.has-game-motion .merge-static-equation { display: none; }

.has-game-motion .merge-arena {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
}

.has-game-motion .merge-tile {
  position: absolute;
  top: 52%;
  left: 50%;
  width: clamp(8rem, 15vw, 13rem);
  font-size: clamp(1.8rem, 4.2vw, 3.8rem);
  will-change: transform, opacity;
  transition:
    opacity 260ms ease,
    transform 1100ms cubic-bezier(0.16, 0.78, 0.18, 1);
}

.has-game-motion .merge-tile-left {
  transform: translate3d(calc(-50% - min(58vw, 49rem)), -50%, 0) rotate(-9deg);
}

.has-game-motion .merge-tile-right {
  transform: translate3d(calc(-50% + min(58vw, 49rem)), -50%, 0) rotate(9deg);
}

.has-game-motion .merge-tile-result {
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.32) rotate(-8deg);
  transition:
    opacity 360ms ease,
    transform 650ms cubic-bezier(0.12, 0.82, 0.18, 1.15);
}

.has-game-motion .merge-impact {
  position: absolute;
  z-index: 2;
  top: 52%;
  left: 50%;
  width: min(22vw, 17rem);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 244, 187, 0.95), rgba(255, 173, 24, 0.38) 26%, rgba(22, 183, 255, 0.2) 48%, transparent 70%);
  filter: blur(0.2rem);
  transform: translate(-50%, -50%) scale(0.15);
  transition: opacity 260ms ease, transform 520ms cubic-bezier(0.15, 0.8, 0.2, 1);
}

.has-game-motion .merge-final-line {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 450ms ease 240ms, transform 550ms ease 240ms;
}

.has-game-motion .merge-progress {
  position: absolute;
  z-index: 5;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: 1.3rem;
  left: clamp(1.5rem, 5vw, 4rem);
  height: 0.18rem;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.has-game-motion .merge-progress span {
  display: block;
  width: calc(var(--merge-progress, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  box-shadow: 0 0 1rem rgba(22, 183, 255, 0.5);
}

.has-game-motion .merge-journey.is-assembling .merge-copy {
  opacity: 0.22;
  transform: translate(-50%, -0.75rem);
}

.has-game-motion .merge-journey.is-assembling .merge-tile-left {
  transform: translate3d(calc(-50% - 54%), -50%, 0) rotate(-1deg);
}

.has-game-motion .merge-journey.is-assembling .merge-tile-right {
  transform: translate3d(calc(-50% + 54%), -50%, 0) rotate(1deg);
}

.has-game-motion .merge-journey.is-merged .merge-copy { opacity: 0; }

.has-game-motion .merge-journey.is-merged .merge-tile-left,
.has-game-motion .merge-journey.is-merged .merge-tile-right {
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(1.08);
  transition-duration: 180ms, 300ms;
}

.has-game-motion .merge-journey.is-merged .merge-impact {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.45);
}

.has-game-motion .merge-journey.is-merged .merge-tile-result {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1) rotate(0);
  transition-delay: 180ms;
}

.has-game-motion .merge-journey.is-merged .merge-final-line {
  opacity: 1;
  transform: translateY(0);
}

.game-updates {
  min-height: 25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.3rem, 3vw, 2.2rem);
  align-items: center;
  background:
    radial-gradient(circle at 15% 50%, rgba(134, 73, 255, 0.15), transparent 22rem),
    linear-gradient(145deg, rgba(11, 17, 32, 0.98), rgba(3, 7, 15, 0.98));
}

.updates-icon {
  width: clamp(4.5rem, 8vw, 6.5rem);
  border-radius: 1.4rem;
  color: #d7bdff;
  background: linear-gradient(145deg, rgba(134, 73, 255, 0.22), rgba(22, 183, 255, 0.12));
}

.updates-icon svg { width: 2.6rem; }

@media (min-width: 75rem) {
  .game-page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-page-center {
    width: 70vw;
    margin-inline: auto;
    grid-column: 1;
    grid-row: 1;
    background:
      linear-gradient(
        90deg,
        transparent 0,
        rgba(2, 4, 10, 0.38) 3vw,
        rgba(2, 4, 10, 0.82) 7vw,
        #02040a 10vw,
        #02040a calc(100% - 10vw),
        rgba(2, 4, 10, 0.82) calc(100% - 7vw),
        rgba(2, 4, 10, 0.38) calc(100% - 3vw),
        transparent 100%
      );
  }

  .side-art {
    position: fixed;
    top: 0;
    bottom: 0;
    display: block;
    width: 35vw;
    height: 100vh;
    height: 100svh;
    grid-row: auto;
    opacity: 1;
  }

  .side-art-left {
    left: 0;
    background-image: url("/assets/games/super2048/images/decor/super2048-side-left-900x1800-v1.webp");
    background-position: left center;
  }

  .side-art-right {
    right: 0;
    background-image: url("/assets/games/super2048/images/decor/super2048-side-right-900x1800-v1.webp");
    background-position: right center;
  }

  .global-header {
    background:
      linear-gradient(
        90deg,
        transparent 0,
        rgba(2, 4, 10, 0.9) 10vw,
        rgba(2, 4, 10, 0.9) calc(100% - 10vw),
        transparent 100%
      );
    box-shadow: none;
  }

  .preview-notice {
    background: linear-gradient(
      90deg,
      transparent 0,
      #ffe98f 10vw,
      #ffbd31 50%,
      #ffe98f calc(100% - 10vw),
      transparent 100%
    );
  }

  .game-hero {
    border-radius: 0 0 clamp(1.35rem, 3vw, 2.4rem) clamp(1.35rem, 3vw, 2.4rem);
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 10vw,
      #000 calc(100% - 10vw),
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 10vw,
      #000 calc(100% - 10vw),
      transparent 100%
    );
  }

  .holding-main {
    background: transparent;
  }

  .holding-media,
  .holding-shade {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 10vw,
      #000 calc(100% - 10vw),
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 10vw,
      #000 calc(100% - 10vw),
      transparent 100%
    );
  }

  .game-hero-copy {
    padding-right: max(clamp(2rem, 6vw, 5.5rem), 11vw);
    padding-left: max(clamp(2rem, 6vw, 5.5rem), 11vw);
  }

  .game-hero h1 {
    font-size: clamp(3rem, 6.5vw, 7.5rem);
  }

  .game-pulse,
  .game-section {
    width: calc(100% - 20vw);
    justify-self: center;
  }

  .merge-journey {
    width: 100%;
  }

  .merge-sticky {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 10vw,
      #000 calc(100% - 10vw),
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 10vw,
      #000 calc(100% - 10vw),
      transparent 100%
    );
  }

  .global-footer {
    background: linear-gradient(
      90deg,
      transparent 0,
      #02040a 10vw,
      #02040a calc(100% - 10vw),
      transparent 100%
    );
  }
}

@media (min-width: 75rem) and (max-width: 90rem) {
  .trailer-section {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 64rem) {
  .game-flow { gap: clamp(3rem, 9vw, 5rem); }

  .trailer-section {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .trailer-copy { max-width: 38rem; }
}

@media (max-width: 46rem) {
  :root { --header-height: 3.75rem; }

  .global-header nav,
  .global-footer p { width: min(100% - 1.25rem, 72rem); }

  .game-stage { padding-top: 0.5rem; }
  .game-flow { width: min(calc(100% - 0.75rem), 68rem); }

  .holding-copy h1,
  .game-hero h1 {
    font-size: clamp(2.55rem, 15vw, 4.3rem);
    letter-spacing: -0.07em;
  }

  .holding-media img,
  .game-hero-media img { object-position: center; }

  .game-hero {
    min-height: min(48rem, calc(100svh - var(--header-height) - 2rem));
    border-radius: 1.2rem;
  }

  .game-hero-copy { padding: 1.5rem 1rem; }

  .game-hero-tagline {
    font-size: 0.78rem;
    letter-spacing: 0.07em;
  }

  .hero-scroll-cue { margin-top: 2rem; }

  .game-pulse {
    width: min(calc(100% - 1rem), 28rem);
    grid-template-columns: 1fr;
    margin-top: -3rem;
  }

  .pulse-item { padding: 0.72rem; }

  .game-hero,
  .game-section,
  .merge-sticky { border-radius: 1.2rem; }

  .game-section { padding: 1.5rem; }

  .trailer-status {
    inset: auto 0.8rem 0.75rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .trailer-play { width: 4.2rem; }

  .merge-journey { width: 100vw; }

  .has-game-motion .merge-journey { height: 340svh; }

  .has-game-motion .merge-sticky {
    top: var(--header-height);
    height: calc(100svh - var(--header-height));
    border-radius: 0;
  }

  .merge-copy {
    top: 2rem;
    width: calc(100% - 2rem);
  }

  .merge-copy h2 { font-size: clamp(2.25rem, 12vw, 3.6rem); }

  .merge-copy p:not(.section-index) { font-size: 0.9rem; }

  .merge-static-equation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: min(100%, 20rem);
  }

  .merge-static-equation .static-tile-result {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .static-tile { width: clamp(5rem, 27vw, 7.5rem); }

  .has-game-motion .merge-tile {
    top: 54%;
    width: clamp(7rem, 32vw, 9rem);
  }

  .has-game-motion .merge-impact { top: 54%; }

  .merge-final-line {
    bottom: 3.1rem;
    font-size: 0.72rem;
  }

  .game-updates {
    min-height: 22rem;
    grid-template-columns: 1fr;
  }
}

@media (max-height: 32rem) and (orientation: landscape) {
  :root { --header-height: 3.5rem; }

  .game-hero { min-height: 22rem; }
  .hero-scroll-cue { display: none; }

  .merge-journey,
  .has-game-motion .merge-journey {
    height: auto;
    min-height: 32rem;
  }

  .merge-sticky,
  .has-game-motion .merge-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 32rem;
    align-content: center;
    padding-block: 2rem;
  }

  .merge-copy,
  .has-game-motion .merge-copy {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 42rem);
    opacity: 1 !important;
    transform: none !important;
  }

  .merge-copy p:not(.section-index) { display: none; }

  .merge-static-equation,
  .has-game-motion .merge-static-equation {
    display: flex;
    margin-top: 1rem;
  }

  .has-game-motion .merge-arena,
  .has-game-motion .merge-progress { display: none; }

  .merge-final-line,
  .has-game-motion .merge-final-line {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 1.35rem 0 0;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .has-game-motion [data-reveal] {
    opacity: 0;
    transform: translateY(2.2rem);
    transition: opacity 650ms ease, transform 720ms cubic-bezier(0.2, 0.75, 0.2, 1);
  }

  .has-game-motion [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-scroll-cue { animation: hero-cue 1.8s ease-in-out infinite; }

  @keyframes hero-cue {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(0.45rem); }
  }
}

@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;
  }
}
