/* Catto Pew Pew! — site styles */
:root {
  --game-blue: #108CE4;
  /* Outline colour = a tint of the element's own colour, never pure white. --stroke only sizes the number outline. */
  --stroke: 4px;
  --sub: 18px;          /* one size for every subtitle / lead paragraph */
  --sub-lh: 1.65;
  --ice-ring: #BFE6F5;   /* outline for white / light surfaces on the sky background (tint of the game blue) */
  --ice-lip: #CCE7EC;
  --navy-ring: #4C819A;  /* outline for dark navy cards */
  --sky: #E9F9FD;
  --sky-2: #D6F2FC;
  --navy: #153650;
  --navy-shadow: #7191A5;
  --night: #101737;
  --band: #23465C;
  --tile: #204661;
  --tile-border: #4C819A;
  --accent: #68CCFE;
  --brand-blue: #1AA3F2;
  --kicker: #A9DCEA;
  --body-dark: #E6F3FB;
  --white: #FFFFFF;
  --lime-a: #EAFF69;
  --lime-b: #B8EF35;
  --lime-ring: #EAFF96;
  --lime-lip: #6F9B27;
  --cyan-a: #72FFFF;
  --cyan-b: #16CFEE;
  --cyan-ring: #CAFFFF;
  --cyan-lip: #1596B4;
  --disc-a: #747DF4;
  --disc-b: #5865F2;
  --disc-ring: #A5ACFF;
  --disc-lip: #3B43A2;
  --pink: #F7B8C9;
  --butter: #F8E7A0;
  --ice: #DBF2FF;
  --peach: #FFE4CD;
  --mint: #B1EEDB;
  --lavender: #BCB5FF;
  --display: "Titan One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .25, 1);
  --wrap: 1344px;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: 0; }
.h-xl { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.06; }
.h-lg { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; }
.h-md { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -.5px; }
.shadow-navy { color: var(--navy); text-shadow: 0 3px 0 var(--navy-shadow); }
.shadow-blue { color: var(--game-blue); text-shadow: 0 4px 0 #0A5A9E; }
.shadow-sky { color: var(--accent); text-shadow: 0 3px 0 #102C41; }
.shadow-white { color: #fff; text-shadow: 0 3px 0 #0B2740; }
.kicker {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--kicker);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.kicker.on-light { color: #2B88B8; }
.lead { font-size: var(--sub); line-height: var(--sub-lh); margin: 18px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  --a: var(--lime-a); --b: var(--lime-b); --ring: var(--lime-ring); --lip: var(--lime-lip); --ink: #123852;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 32px 18px;
  border-radius: 22px;
  border: 4px solid var(--ring);
  background: linear-gradient(160deg, var(--a), var(--b) 75%);
  color: var(--ink);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
  letter-spacing: .5px;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(255,255,255,.45);
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.35),
    inset 0 -3px 0 rgba(0,0,0,.08),
    0 6px 0 var(--lip),
    0 9px 0 rgba(10,30,50,.85),
    0 14px 26px rgba(7,27,73,.28);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.btn:hover, .btn:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.07) saturate(1.05);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.4),
    inset 0 -3px 0 rgba(0,0,0,.08),
    0 9px 0 var(--lip),
    0 12px 0 rgba(10,30,50,.85),
    0 0 28px rgba(213,255,88,.32),
    0 18px 30px rgba(7,27,73,.3);
}
.btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 2px 0 var(--lip), 0 4px 0 rgba(10,30,50,.85); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.btn.cyan { --a: var(--cyan-a); --b: var(--cyan-b); --ring: var(--cyan-ring); --lip: var(--cyan-lip); --ink: #0F3550; }
.btn.blue { --a: #4FBDFF; --b: var(--game-blue); --ring: #A8DDFF; --lip: #0A5A9E; --ink: #fff; text-shadow: 0 2px 0 rgba(6,40,90,.45); }
.btn.yt { --a: #FF4F62; --b: #F0142F; --ring: #FFA3AE; --lip: #9E0B1E; --ink: #fff; text-shadow: 0 2px 0 rgba(90,0,12,.4); }
.btn.discord { --a: var(--disc-a); --b: var(--disc-b); --ring: var(--disc-ring); --lip: var(--disc-lip); --ink: #fff; text-shadow: 0 2px 0 rgba(20,24,90,.45); }
.btn.sm { padding: 13px 20px 12px; font-size: 16px; border-radius: 17px; border-width: 3px; }
.btn.xl { padding: 28px 48px 26px; font-size: clamp(24px, 3vw, 40px); border-radius: 28px; border-width: 5px; }
.btn.xl svg { width: 40px; height: 40px; }

/* ---------- Social tiles ---------- */
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(23,51,79,.55);
  border: 2px solid var(--lime-ring);
  color: #fff;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social:hover, .social:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(160deg, var(--lime-a), var(--lime-b));
  color: #24440E;
  box-shadow: 0 0 22px rgba(213,255,88,.35);
}
.socials.big .social { width: 72px; height: 72px; border-radius: 20px; }
.socials.big .social svg { width: 34px; height: 34px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 86px;
  transition: height .25s var(--ease);
}
.nav::before, .nav::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .3s ease; }
.nav::before { background: linear-gradient(180deg, rgba(13,22,49,.78), rgba(13,22,49,.18)); }
.nav::after { background: var(--night); opacity: 0; box-shadow: 0 6px 0 rgba(8,14,40,.35); }
.nav.solid::after, .nav.always-solid::after { opacity: 1; }
.nav-inner { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; gap: 24px; }
.nav-logo { display: block; flex: none; }
.nav-logo img { height: 62px; width: auto; filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); transition: transform .25s var(--ease); }
.nav-logo:hover img { transform: rotate(-3deg) scale(1.04); }
.nav-links { display: flex; gap: 6px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: rgba(255,255,255,.12); }
.nav-links a[aria-current="page"] { color: var(--lime-a); }
.nav .socials { gap: 8px; }
.nav .social { width: 42px; height: 40px; border-radius: 13px; }
.nav .social svg { width: 19px; height: 19px; }
.burger {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: #18344F;
  border: 2px solid var(--navy-ring);
  color: #fff;
  cursor: pointer;
  place-items: center;
}
.burger svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; fill: none; }
.mobile-menu {
  position: fixed; inset: 76px 0 auto 0; z-index: 49;
  background: var(--night);
  padding: 12px 16px 22px;
  border-bottom: 3px solid var(--tile-border);
  display: none;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.mobile-menu.open { display: block; animation: drop .22s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
.mobile-menu a {
  display: block;
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 16px;
  font-family: var(--display);
  font-size: 21px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid transparent;
}
.mobile-menu a[aria-current="page"] { background: #285673; border-color: var(--kicker); }
.mobile-menu .btn { display: flex; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(760px, 100svh);
  display: flex;
  align-items: center;
  color: #fff;
  background: #0D3A66 center/cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.kenburns { animation: kenburns 28s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, 1%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(13,30,66,.70) 0%, rgba(13,30,66,0) 32%),
    linear-gradient(0deg, rgba(10,40,80,.75) 0%, rgba(10,40,80,0) 45%),
    radial-gradient(ellipse at 50% 45%, rgba(10,30,70,.15), rgba(10,30,70,.55) 75%);
}
/* Moves with transform (GPU), not background-position, so the hero isn't repainted every frame.
   The layer is one tile larger up and left, and slides one tile per loop: the same motion as before. */
.hero-paws {
  position: absolute; top: -506px; left: -900px; right: 0; bottom: 0; z-index: -1;
  background-size: 900px auto;
  opacity: .16;
  mix-blend-mode: screen;
  animation: paws 60s linear infinite;
  will-change: transform;
}
@keyframes paws { to { transform: translate(900px, 506px); } }
.hero-inner { padding-top: 130px; padding-bottom: 220px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(560px, 82vw); height: auto; filter: drop-shadow(0 10px 0 rgba(6,22,50,.35)) drop-shadow(0 18px 30px rgba(0,0,0,.25)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1deg); } }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: .5px;
  text-shadow: 0 3px 0 rgba(9,22,55,.65), 0 6px 18px rgba(9,22,55,.45);
}
.hero p.sub {
  max-width: 640px;
  margin: 14px auto 0;
  font-weight: 700;
  font-size: var(--sub);
  line-height: var(--sub-lh);
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.countdown { margin-top: 22px; width: 100%; text-align: center; }
.countdown-title { margin: 0; font-family: var(--display); font-size: clamp(17px, 1.9vw, 24px); letter-spacing: .4px; text-shadow: 0 3px 0 rgba(9,22,55,.6), 0 6px 16px rgba(9,22,55,.4); }
.countdown-title .star { display: inline-block; margin: 0 8px; }
.countdown-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; width: 100%; }
.countdown-boxes div { width: auto; padding: 14px 6px 12px; text-align: center; border-radius: 20px; background: linear-gradient(180deg, #fff, #E4F6FF); border: 3px solid #A8DDFF; box-shadow: 0 6px 0 #0A5A9E, 0 12px 24px rgba(7,27,73,.3); color: var(--navy); }
.countdown-boxes b { display: block; font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1; color: var(--game-blue); text-shadow: 0 3px 0 #BFE3F8; font-variant-numeric: tabular-nums; }
.countdown-boxes span { display: block; margin-top: 4px; font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.platforms { margin-top: 22px; font-weight: 800; font-size: 14px; letter-spacing: .5px; opacity: .92; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.cloud-divider { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1; display: block; width: 100%; height: clamp(120px, 15.5vw, 224px); pointer-events: none; overflow: hidden; }
.cloud-divider .cl-far { animation: drift 18s ease-in-out infinite alternate; }
.cloud-divider .cl-mid { animation: drift 13s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-18px); } to { transform: translateX(18px); } }

/* Letter wave on headings */
.wave-word { display: inline-block; white-space: nowrap; }
.wave-word > span { display: inline-block; animation: letter-wave 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .055s); }
@keyframes letter-wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 1.5x more intense wave on feature headers */
.wave-intense .wave-ch {
  position: relative;
  display: inline-block;
  isolation: isolate;
  animation: letter-wave-intense 2.0s ease-in-out infinite;
  animation-delay: calc(var(--i) * .055s);
}
@keyframes letter-wave-intense { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Decorative backdrop ---------- */
.deco { position: relative; overflow: hidden; isolation: isolate; }
.deco::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(104,204,254,.18) 0 120px, transparent 121px),
    radial-gradient(circle at 88% 70%, rgba(104,204,254,.16) 0 170px, transparent 171px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
/* Loading-screen icon tile in the light sections (Unity: ScrollingBackgroundNew2, scrolls diagonally) */
.tex-zone { position: relative; isolation: isolate; }
.tex {
  position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 240px, #000 calc(100% - 180px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 240px, #000 calc(100% - 180px), transparent 100%);
}
.tex-move { position: absolute; top: -540px; left: 0; right: -960px; bottom: 0; background-size: 960px 540px; animation: texmove 52s linear infinite; will-change: transform; }
@keyframes texmove { to { transform: translate(-960px, 540px); } }
.spark { position: absolute; z-index: -1; width: 34px; height: 34px; fill: #9ADCF8; opacity: .8; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.6) rotate(25deg); opacity: .35; } }

/* ---------- Intro ---------- */
.intro { padding: 40px 0 70px; }
.intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.intro-art { position: relative; }
.intro-art img { width: 100%; height: auto; filter: drop-shadow(0 16px 0 rgba(21,54,80,.14)) drop-shadow(0 24px 40px rgba(23,59,92,.22)); animation: bob 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid var(--ice-ring);
  box-shadow: 0 4px 0 #CCE7EC;
  font-weight: 900; font-size: 13px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  transition: transform .2s var(--ease);
}
a.chip:hover { transform: translateY(-2px); }
.chip svg { width: 18px; height: 18px; fill: currentColor; }
.chip.soon { opacity: .7; border-style: dashed; }

/* ---------- Marquee ---------- */
.marquee { padding: 70px 0 90px; overflow: hidden; }
.marquee-stage { transform: rotate(-4deg); margin: 0 -60px; display: grid; gap: 14px; }
.track { display: flex; gap: 14px; width: max-content; animation: slide 70s linear infinite; }
.track.rev { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.shot {
  flex: none;
  width: 510px;
  padding: 7px;
  border-radius: 26px;
  background: var(--c, var(--ice));
  box-shadow: 0 8px 0 rgba(35,50,86,.09), 0 16px 26px rgba(23,59,92,.10);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.shot:hover { transform: scale(1.06) translateY(-6px) rotate(1deg); box-shadow: 0 12px 0 rgba(35,50,86,.1), 0 24px 34px rgba(23,59,92,.18); }
.shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 18px; }
.shot span { display: block; margin-top: 9px; text-align: center; font-family: var(--display); font-size: 15px; color: var(--navy); letter-spacing: .3px; }

/* ---------- Features ---------- */
.features { padding: 20px 0 40px; }
.feature { padding: 70px 0 100px; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature.flip .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.feature.flip .frame-wrap { order: 2; }
.frame-wrap { position: relative; }
.frame {
  position: relative;
  border-radius: 24px;
  border: 6px solid var(--ice-ring);
  outline: 2px solid #A4DCE6;
  background: #0E2D47;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 14px 0 #CCE7EC, 0 26px 44px rgba(23,59,92,.16);
}
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }
/* Each feature has one colour: light / base fill, light ring, dark outline, darkest lip */
.feature { --n1: #6FCBFF; --n2: var(--game-blue); --nr: #A8DDFF; --n3: #0A5A9E; --n4: #063D6E; }
.feature:nth-of-type(3n+2) { --n1: #FFD45C; --n2: #FFB020; --nr: #FFE7A3; --n3: #B9730A; --n4: #7E4E05; }
.feature:nth-of-type(3n+3) { --n1: #FF9EC6; --n2: #F0609A; --nr: #FFC9DF; --n3: #A8305F; --n4: #731D40; }
.feature-copy .num {
  display: inline-grid; place-items: center;
  min-width: 150px; height: 150px; padding: 0 24px; margin-bottom: 26px;
  border-radius: 40px;
  background: linear-gradient(160deg, var(--n1), var(--n2) 75%);
  border: 4px solid var(--nr);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.35), 0 9px 0 var(--n3), 0 18px 28px rgba(23,59,92,.22);
  font-family: var(--display); font-size: 108px; line-height: 1; letter-spacing: 0;
  color: #fff; text-shadow: 0 6px 0 var(--n3);
}
/* Heading: per-letter gradient fill matching 01/02/03, smooth outer stroke behind, and 3D shadow cast from the full outline width */
.feature-copy h2 { position: relative; line-height: 1.18; }
.feature-copy h2 .wave-ch > b {
  position: relative; z-index: 2;
  display: inline-block;
  font-weight: 400;
  background: linear-gradient(160deg, var(--n1), var(--n2) 75%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.feature-copy h2 .wave-ch::before,
.feature-copy h2 .wave-ch::after {
  content: attr(data-ch);
  position: absolute; inset: 0;
  font-weight: 400;
  pointer-events: none;
  -webkit-text-stroke-width: 9px;
  stroke-linejoin: round;
}
.feature-copy h2 .wave-ch::before {
  z-index: 1;
  color: var(--nr);
  -webkit-text-stroke-color: var(--nr);
}
.feature-copy h2 .wave-ch::after {
  z-index: 0;
  color: var(--n3);
  -webkit-text-stroke-color: var(--n3);
  transform: translateY(7px);
}
.modes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; max-width: 520px; }
.modes li { position: relative; padding: 14px 18px 14px 52px; border-radius: 18px; background: #fff; border: 2px solid var(--ice-ring); box-shadow: 0 5px 0 #CCE7EC; font-size: 17px; font-weight: 700; }
.modes li::before { content: "\2B50"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.modes b { color: var(--game-blue); font-weight: 900; }
.feature-copy p { margin: 16px 0 0; font-size: var(--sub); line-height: var(--sub-lh); max-width: 520px; }

/* ---------- Trailer ---------- */
.trailer { padding: 40px 0 120px; text-align: center; }
.trailer .frame { max-width: 1040px; margin: 34px auto 0; cursor: pointer; }
.trailer .frame video, .trailer .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; inset: 0; margin: auto;
  width: 112px; height: 112px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--lime-a), var(--lime-b));
  border: 5px solid var(--lime-ring);
  box-shadow: 0 7px 0 var(--lime-lip), 0 11px 0 rgba(10,30,50,.85), 0 0 0 14px rgba(255,255,255,.18);
  transition: transform .25s var(--ease);
  animation: pulse 2.2s ease-in-out infinite;
  border-style: solid;
  cursor: pointer;
}
/* no extra offset: the triangle's centroid sits on the circle's centre */
.play svg { width: 44px; height: 44px; fill: #123852; }
.trailer .frame:hover .play { transform: scale(1.08); }
@keyframes pulse { 50% { box-shadow: 0 7px 0 var(--lime-lip), 0 11px 0 rgba(10,30,50,.85), 0 0 0 26px rgba(255,255,255,0); } }
.trailer .frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(10,30,60,.45), rgba(10,30,60,.05) 50%);
  transition: opacity .3s;
}
.trailer .frame.playing::after { opacity: 0; }

/* ---------- Discord CTA ---------- */
.cta-band { padding: 10px 0 110px; text-align: center; }
.cta-band p { margin: 22px auto 0; max-width: 560px; font-weight: 700; font-size: var(--sub); line-height: var(--sub-lh); }

/* ---------- Dark band (CPPVR login/loading blue radial gradient + darker tiling texture) ---------- */
.dark {
  position: relative;
  background: radial-gradient(ellipse 80% 72% at 50% 36%, #28CCFA 0%, #1094EC 46%, #056DD0 100%);
  color: #F2FAFF;
  overflow: hidden;
  isolation: isolate;
}
.dark-tile {
  position: absolute; top: -540px; left: 0; right: -960px; bottom: 0; z-index: -1; pointer-events: none;
  background-size: 960px 540px;
  animation: tilemove 52s linear infinite;
  will-change: transform;
  mix-blend-mode: multiply;
  opacity: .72;
}
.wave-top, .wave-bottom { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.credits { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 100px; }
.credits-head { text-align: center; max-width: 720px; margin: 0 auto; }
.credits-head .kicker { color: #E2F6FF; text-shadow: 0 2px 0 rgba(5,45,105,.35); }
.credit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 46px; }
.credit {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 22px;
  background: rgba(8, 55, 114, .58);
  border: 2px solid #7BD6FF;
  box-shadow: 0 6px 0 #063876, 0 14px 28px rgba(4,34,78,.22);
  transition: transform .25s var(--ease), border-color .25s;
}
.credit:hover { transform: translateY(-4px); border-color: #C7EEFF; }
.credit .avatar {
  display: block; width: 64px; height: 64px; border-radius: 18px;
  object-fit: cover; background: #0B3E78;
  border: 3px solid #7BD6FF;
  box-shadow: 0 4px 0 rgba(4,34,78,.35);
}
.credit.studio { grid-column: 1 / -1; padding: 26px 30px 30px; }
.credit.studio .studio-head { display: flex; align-items: center; justify-content: center; gap: 26px; text-align: left; }
.studio-team { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.studio-team li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.studio-team img { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; background: #0B3E78; border: 3px solid #7BD6FF; box-shadow: 0 4px 0 rgba(4,34,78,.35); }
.studio-team b { margin-top: 10px; font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1.2; color: #fff; text-shadow: 0 2px 0 #06356F; }
.studio-team span { margin-top: 3px; font-size: 14px; color: #E5F4FF; }
@media (max-width: 760px) { .studio-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } .credit.studio { padding: 24px 18px 26px; } }
.credit.studio .studio-logo { width: 96px; height: 96px; object-fit: contain; flex: none; }
.credit.studio h3 { margin-top: 0; font-size: 26px; }
.credit h3 { margin-top: 16px; font-size: 22px; color: #fff; text-shadow: 0 2px 0 #06356F; }
.credit p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: #E5F4FF; }
.kicker .cross { display: inline-block; width: .9em; height: 1.15em; margin-left: .45em; vertical-align: -.2em; fill: currentColor; }
.signoff { margin-top: 36px; text-align: center; font-weight: 800; color: #E6F7FF; letter-spacing: .4px; text-shadow: 0 2px 0 rgba(5,45,105,.35); }

/* ---------- Connect band ---------- */
.connect {
  position: relative;
  padding: 90px 0;
  text-align: center;
  color: #fff;
  background: #102C41 center/cover no-repeat;
  isolation: isolate;
  overflow: hidden;
}
.connect::before { content: ""; position: absolute; inset: -20px; z-index: -1; background: inherit; filter: blur(8px) saturate(1.1); }
.connect::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(16,44,65,.66); }
.connect .socials { justify-content: center; margin-top: 30px; gap: 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #DCEBF5; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand img { height: 92px; width: auto; }
.footer-brand p { margin: 14px 0 18px; max-width: 300px; font-size: 15px; color: #B9CBE0; }
.footer h4 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--kicker); text-transform: uppercase; letter-spacing: .5px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: inline-block; padding: 8px 0; font-weight: 900; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; text-decoration: none; color: #DCEBF5; transition: color .2s; }
.footer li a:hover { color: var(--lime-a); }
.footer-platform { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.meta-badge { display: inline-flex; align-items: center; gap: 14px; padding: 12px 24px 12px 18px; border-radius: 16px; background: #fff; color: #0B1A2E; text-decoration: none; box-shadow: 0 5px 0 rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.meta-badge:hover { transform: translateY(-3px); }
.meta-badge svg { width: 46px; height: 46px; fill: #0866FF; }
.meta-badge span { display: flex; flex-direction: column; font-family: var(--display); font-size: 24px; line-height: 1.05; }
.meta-badge small { font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #5B6B80; }
.steam-old { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #8C99C0; text-decoration: none; }
.steam-old svg { width: 18px; height: 18px; fill: currentColor; }
.steam-old:hover { color: #DCEBF5; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(169,220,234,.18); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8C99C0; }
.footer-bottom a { color: #8C99C0; }

/* ---------- Page header (sub pages — CPPVR login/loading radial blue gradient) ---------- */
.page-hero {
  position: relative;
  padding: 150px 0 210px;
  text-align: center;
  color: #fff;
  background: radial-gradient(ellipse 75% 75% at 50% 42%, #28CCFA 0%, #1092EB 46%, #056BCF 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero-tile { position: absolute; top: -540px; left: 0; right: -960px; bottom: 0; z-index: -1; background-size: 960px 540px; animation: tilemove 52s linear infinite; mix-blend-mode: multiply; opacity: .72; will-change: transform; }
/* transform (GPU) instead of background-position: same diagonal drift, no repaint per frame */
@keyframes tilemove { to { transform: translate(-960px, 540px); } }
.page-hero h1 { font-size: clamp(48px, 8vw, 104px); line-height: 1; letter-spacing: 1px; text-shadow: 0 5px 0 #0B4A8C, 0 12px 30px rgba(6,30,80,.35); }
.page-hero p { max-width: 620px; margin: 18px auto 0; font-weight: 700; font-size: var(--sub); line-height: var(--sub-lh); text-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* ---------- Panel ---------- */
.panel {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 36px;
  background: #fff;
  border: 3px solid var(--ice-ring);
  box-shadow: 0 12px 0 #CCE7EC, 0 30px 60px rgba(23,59,92,.12);
  z-index: 2;
}
.merch-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.merch-grid .frame { aspect-ratio: 3/2; }
.coming {
  display: inline-block;
  padding: 8px 14px; border-radius: 10px;
  background: var(--butter);
  border: 2px solid #F2D873;
  box-shadow: 0 4px 0 #D9B23A;
  font-weight: 900; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #6A4A00;
}
.coming.out { background: #D9F3FF; border-color: #A8DDFF; box-shadow: 0 4px 0 #4FA6DA; color: #0A4F86; }
.price { margin: 10px 0 0; font-family: var(--display); font-size: 40px; color: var(--game-blue); text-shadow: 0 3px 0 #BFE3F8; }
.price small { font-family: var(--body); font-size: 15px; font-weight: 900; color: var(--navy); letter-spacing: 1px; }
.merch-gallery { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; align-items: stretch; }
.merch-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; border: 4px solid var(--ice-ring); box-shadow: 0 6px 0 #CCE7EC; background: #0B0B0B; }
.merch-main { display: block; transition: transform .25s var(--ease); }
.merch-main:hover { transform: translateY(-4px) rotate(-1deg); }
.merch-thumbs { display: grid; grid-template-rows: 1fr 1.3fr; gap: 14px; }
.merch-thumbs img:first-child { background: #F2F2F2; }
.merch-thumbs img:last-child { object-fit: cover; object-position: top; background: #1AA3F2; }
.kit-list { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.kit-list li { display: flex; gap: 12px; align-items: center; font-weight: 800; }
.kit-list li b {
  width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--lime-a), var(--lime-b)); border: 2px solid var(--lime-ring); box-shadow: 0 3px 0 var(--lime-lip);
  color: #24440E; font-size: 16px;
}
.kit-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kit-preview img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; border: 4px solid var(--ice-ring); box-shadow: 0 6px 0 #CCE7EC; }
.kit-preview img:first-child { grid-column: span 3; }

/* ---------- Expanded merch ---------- */
.merch-stack { display: grid; gap: 36px; max-width: 1080px; margin: 0 auto; }
.merch-stack > .panel { max-width: none; width: 100%; margin: 0; }

/* Animated RobaRoba showcase banner (single clean outline, zero overlap) */
.merch-stage {
  position: relative;
  border-radius: 36px;
  background: #F7F6F2;
  border: 3px solid var(--ice-ring);
  box-shadow: 0 12px 0 #CCE7EC, 0 30px 60px rgba(23,59,92,.12);
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
}
.merch-stage-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.merch-stage-media video {
  width: calc(100% + 4px);
  height: 100%;
  margin-left: -2px;
  object-fit: cover;
  object-position: 62% center;
}
.merch-stage-copy {
  position: relative;
  z-index: 2;
  width: 44%;
  padding: 48px 24px 48px 48px;
}
.merch-stage-copy .lead { max-width: 400px; }
.merch-stage-cta { margin-top: 26px; }

/* Interactive product gallery (single outline per photo) */
.merch-viewer { display: grid; gap: 14px; }
.merch-photo {
  aspect-ratio: 6 / 7;
  border-radius: 22px;
  border: 4px solid var(--ice-ring);
  box-shadow: 0 8px 0 #CCE7EC;
  background: var(--photo-bg, #111418);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.merch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s ease;
}
.merch-thumbs-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.merch-thumb {
  appearance: none;
  padding: 6px;
  border-radius: 16px;
  border: 3px solid var(--ice-ring);
  background: #F5FBFE;
  cursor: pointer;
  display: grid;
  gap: 6px;
  text-align: center;
  color: var(--navy);
  transition: transform .18s var(--ease), border-color .18s ease, box-shadow .18s ease;
}
.merch-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 0;
  box-shadow: none;
  background: #111418;
}
.merch-thumb span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .3px;
  line-height: 1.15;
}
.merch-thumb:hover { transform: scale(1.07); border-color: var(--accent); }
.merch-thumb.active { border-color: var(--game-blue); background: #E4F5FF; box-shadow: 0 4px 0 #A8DDFF; }
.merch-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.merch-note { margin: 16px 0 0; font-size: 14px; color: #4A7A94; font-weight: 800; }

/* Gold gradient kicker & bold FREE CODE highlight */
.kicker.gold-grad {
  display: inline-block;
  background: linear-gradient(180deg, #FFE04A 0%, #F5A600 58%, #C46F00 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(120, 62, 0, .24));
}
.free-code {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--navy);
}

/* Exclusive in-game cosmetic spotlight */
.merch-cosmetic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}
.merch-cosmetic-art {
  max-width: 340px;
  width: 100%;
  justify-self: center;
  border-radius: 44px;
  overflow: hidden;
  border: 4px solid var(--ice-ring);
  box-shadow: 0 8px 0 #CCE7EC;
  background: #F4FBFF;
}
.merch-cosmetic-art img { width: 100%; height: auto; }

/* Meet the developer card */
.merch-dev {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.merch-dev-photo {
  border-radius: 26px;
  background: linear-gradient(180deg, #E2F6FF 0%, #C6EBFA 100%);
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}
.merch-dev-photo img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(16,54,80,.18));
}
.merch-dev-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.merch-socials { display: flex; gap: 10px; }
.merch-socials .social {
  width: 44px; height: 44px;
  background: var(--navy);
  border-color: var(--ice-ring);
}
/* Same hover fill as the title-bar icons: lime gradient with dark icon */
.merch-socials .social:hover, .merch-socials .social:focus-visible {
  background: linear-gradient(160deg, var(--lime-a), var(--lime-b));
  border-color: var(--lime-ring);
  color: #24440E;
  box-shadow: 0 0 22px rgba(213,255,88,.35);
}

/* Creator kit hover gallery */
.kit-thumb { cursor: pointer; transition: transform .2s var(--ease), border-color .2s ease; }
.kit-thumb:hover, .kit-thumb:focus-visible { transform: scale(1.04); outline: none; }
.kit-thumb.active { border-color: var(--game-blue); }
.kit-preview img:first-child { transition: opacity .15s ease; }

/* Plain (privacy) page: flat background, no fades */
.plain-zone { background: var(--sky); }
.plain-zone .panel { box-shadow: 0 6px 0 #CCE7EC; }

@media (max-width: 900px) {
  .merch-stage {
    display: grid;
    min-height: 0;
    border-radius: 26px;
  }
  .merch-stage-media {
    position: relative;
    aspect-ratio: 16 / 10;
  }
  .merch-stage-media video {
    width: 100%;
    margin-left: 0;
    object-position: 80% center;
  }
  .merch-stage-copy {
    width: 100%;
    padding: 26px 22px 30px;
    text-align: center;
  }
  .merch-stage-copy .lead { margin-left: auto; margin-right: auto; }
  .merch-grid, .merch-cosmetic, .merch-dev { grid-template-columns: 1fr; gap: 30px; }
  .merch-cosmetic-copy, .merch-dev-copy { text-align: center; }
  .merch-cosmetic .kit-list li { justify-content: center; }
  .merch-dev-actions { justify-content: center; }
  .merch-thumbs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Legal */
.legal { font-size: 16.5px; line-height: 1.75; color: #24445C; }
.legal h2 { margin: 44px 0 10px; font-size: 30px; color: var(--navy); text-shadow: 0 2px 0 #B9D9E6; }
.legal h3 { margin: 28px 0 6px; font-size: 21px; color: #1F6E9C; }
.legal p { margin: 10px 0; }
.legal ul { margin: 10px 0; padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal li::marker { color: var(--brand-blue); }
.legal a { color: #006FBD; font-weight: 700; }
.legal .updated { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 10px; background: var(--ice); font-weight: 800; font-size: 14px; color: var(--navy); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.toc a { padding: 7px 12px; border-radius: 10px; background: var(--sky); border: 2px solid var(--ice-ring); font-weight: 800; font-size: 13px; text-decoration: none; color: var(--navy); }
.toc a:hover { border-color: var(--accent); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(8,16,40,.6); backdrop-filter: blur(8px); }
.modal.open { display: grid; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-card { width: min(980px, 100%); border-radius: 26px; background: #fff; border: 4px solid var(--ice-ring); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.modal-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 22px; }
.modal-bar strong { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--navy); }
.modal-close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--sky); color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-video { position: relative; aspect-ratio: 16/9; background: #000; }
.modal-video video, .modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav .socials { display: none; }
  .credit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav { height: 76px; }
  .nav::before { opacity: 0; }
  .nav::after { opacity: 1; }
  .nav-links, .nav .nav-cta { display: none; }
  .burger { display: grid; }
  .nav-logo img { height: 52px; }
  .hero { min-height: 680px; }
  .hero-inner { padding-top: 116px; padding-bottom: 150px; }
  .intro-grid, .feature-grid, .feature.flip .feature-grid, .merch-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .frame-wrap { order: 0; }
  .intro-art { max-width: 460px; margin: 0 auto; }
  .intro-copy, .feature-copy { text-align: center; }
  .feature-copy p { margin-left: auto; margin-right: auto; }
  .chips { justify-content: center; }
  .feature { padding: 50px 0 60px; }

  .shot { width: 345px; border-radius: 20px; padding: 5px; }
  .marquee-stage, .track { gap: 10px; }
  .shot img { border-radius: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-brand .socials { justify-content: center; }
  .panel { padding: 28px 20px; border-radius: 26px; }
  .page-hero { padding: 120px 0 110px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .credit-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .btn { padding: 18px 22px 16px; font-size: 19px; }
  .btn.xl { padding: 22px 26px 20px; font-size: 22px; white-space: normal; }
  .btn.xl svg { width: 30px; height: 30px; }
  .play { width: 84px; height: 84px; }
  .play svg { width: 34px; height: 34px; }
  .socials.big .social { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .countdown-boxes { gap: 8px; }
  .countdown-boxes div { width: auto; border-radius: 16px; }
  .countdown-boxes b { font-size: 32px; }
  .countdown-boxes span { font-size: 10px; }
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .tex-move, .hero-tile, .cloud-divider .cl-far, .cloud-divider .cl-mid { animation: none; }
}

/* Blur-up loading: a tiny blurred copy (inlined by src/lqip.py) shows at once; the full image sharpens in over it */
.lqip { background-size: cover; background-position: center; background-repeat: no-repeat; }
.lqip-fit { background-size: contain; }
.lqip-v { background-size: cover; background-position: center; background-repeat: no-repeat; }
img.lqip-in { animation: lqip-in .45s ease-out; }
@keyframes lqip-in { from { filter: blur(14px); } to { filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { img.lqip-in { animation: none; } }
