/* ==========================================================================
   cyubeVR — Official Website  ·  "Cinematic Aurora" theme
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-raised: #0a0e18;
  --bg-card: #0d1220;
  --fg: #eef2f7;
  --fg-muted: #97a3b6;
  --accent: #57d9a3;
  --accent-2: #4cc9f0;
  --accent-3: #b07df5;
  --gradient: linear-gradient(115deg, #6ef0b6, #4cc9f0 48%, #b07df5);
  --font-display: "Chakra Petch", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 14px;
  --nav-h: 72px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.4);
  --max-w: 1220px;
  --line: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

::selection { background: rgba(87, 217, 163, 0.35); color: #fff; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything, very subtle */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("../assets/img/noise.png");
  background-size: 96px 96px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }

/* scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 120;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(76, 201, 240, 0.55);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* soft glow that follows the cursor over dark sections */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 700px; height: 700px;
  margin: -350px 0 0 -350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 217, 163, 0.055), rgba(76, 201, 240, 0.035) 40%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

section { position: relative; }

.section-pad { padding: 120px 0; }

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* kicker chip */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(87, 217, 163, 0.35);
  background: rgba(87, 217, 163, 0.07);
  box-shadow: 0 0 24px rgba(87, 217, 163, 0.12), inset 0 0 12px rgba(87, 217, 163, 0.05);
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(87, 217, 163, 0.9);
}

.section-title {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  text-wrap: balance;
}

.section-sub {
  color: var(--fg-muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 740px;
  margin: 0 auto;
  text-wrap: pretty;
}

.center { text-align: center; }

/* --------------------------------------------------------------------------
   Ambient layers: aurora blobs, starfield, voxel cubes
   -------------------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora i {
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
  will-change: transform;
}
.aurora i:nth-child(1) {
  background: radial-gradient(circle at 40% 40%, #57d9a3, transparent 65%);
  top: -18%; left: -12%;
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  background: radial-gradient(circle at 60% 40%, #4cc9f0, transparent 65%);
  top: 10%; right: -18%;
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  background: radial-gradient(circle at 50% 55%, #b07df5, transparent 65%);
  bottom: -25%; left: 28%;
  animation: drift3 38s ease-in-out infinite alternate;
  opacity: 0.1;
}
@keyframes drift1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(9vw, 7vh, 0) scale(1.2); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0) scale(1.15); } to { transform: translate3d(-8vw, -5vh, 0) scale(0.95); } }
@keyframes drift3 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, -8vh, 0) scale(1.25); } }

/* starfield: two twinkling tiled layers */
.starfield, .starfield::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: repeat;
  background-size: 420px 420px;
}
.starfield {
  background-image:
    radial-gradient(1.2px 1.2px at 22px 46px, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 143px 210px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.4px 1.4px at 289px 88px, rgba(197,232,255,0.8), transparent),
    radial-gradient(1px 1px at 350px 320px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 80px 350px, rgba(190,255,224,0.6), transparent),
    radial-gradient(1.3px 1.3px at 234px 390px, rgba(255,255,255,0.7), transparent);
  animation: twinkle 5.5s ease-in-out infinite alternate;
  opacity: 0.5;
}
.starfield::after {
  content: "";
  background-image:
    radial-gradient(1px 1px at 66px 120px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.3px 1.3px at 188px 30px, rgba(197,232,255,0.75), transparent),
    radial-gradient(1px 1px at 312px 240px, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.2px 1.2px at 410px 160px, rgba(190,255,224,0.65), transparent),
    radial-gradient(1px 1px at 120px 280px, rgba(255,255,255,0.5), transparent);
  animation: twinkle 7s ease-in-out 1.7s infinite alternate-reverse;
  opacity: 0.5;
}
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 0.75; } }

/* floating voxel cubes */
.cubes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.vox {
  position: absolute;
  width: 52px;
  filter: drop-shadow(0 0 14px rgba(87, 217, 163, 0.25));
  animation: voxfloat 15s ease-in-out infinite alternate;
  will-change: transform;
}
.vox polygon { stroke-width: 1.4; }
.vox.v1 { top: 15%; left: 6%; }
.vox.v2 { top: 58%; right: 7%; width: 38px; animation-delay: -5s; animation-duration: 18s; }
.vox.v3 { bottom: 10%; left: 20%; width: 30px; animation-delay: -9s; animation-duration: 13s; opacity: 0.7; }
.vox.v4 { top: 24%; right: 22%; width: 24px; animation-delay: -12s; animation-duration: 21s; opacity: 0.55; }
@keyframes voxfloat {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-64px) rotate(5deg); }
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 14px 40px rgba(0, 0, 0, 0.45);
}
/* phones: a live backdrop blur over video costs real frame time every scroll —
   a nearly opaque bar looks the same and keeps scrolling smooth */
@media (max-width: 760px) {
  .nav.scrolled {
    background: rgba(5, 7, 13, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.nav-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none !important; }
.nav-logo img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 14px rgba(87, 217, 163, 0.4));
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: #fff;
  letter-spacing: 0.02em;
}
.wordmark em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav-links > a {
  position: relative;
  color: var(--fg);
  font-weight: 600;
  font-size: 14.5px;
  opacity: 0.82;
  transition: opacity 0.2s;
  padding: 8px 12px;
}
.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links > a:hover { opacity: 1; text-decoration: none; }
.nav-links > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865f2;
  color: #fff !important;
  padding: 10px 20px !important;
  margin-left: 10px;
  border-radius: 999px;
  font-weight: 700 !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 6px 22px rgba(88, 101, 242, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 10px 28px rgba(88, 101, 242, 0.55); }
.nav-cta svg { width: 18px; height: 18px; fill: currentColor; }

.nav-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--fg);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 960px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: rgba(5, 7, 13, 0.97);
    backdrop-filter: blur(18px);
    padding: 26px 24px 34px;
    gap: 14px;
    transform: translateY(-130%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: none; }
  /* the desktop row spacing would shift the button off-center in the column menu */
  .nav-links .nav-cta { margin-left: 0; }
  .nav.menu-open { background: rgba(5, 7, 13, 0.97); }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
/* fixed full-page video layer — every section floats above it */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: hidden;
}
.bg-video video,
.bg-video .hero-poster {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  object-fit: cover;
  /* scale crops the letterbox bars baked into the trailer */
  transform: translate(-50%, -50%) scale(1.14);
  filter: saturate(1.08) contrast(1.03);
}
.bg-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 9, 0.92), rgba(3, 5, 9, 0.86));
  opacity: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 40%, rgba(3, 5, 9, 0.55) 100%),
    linear-gradient(180deg, rgba(3, 5, 9, 0.62) 0%, rgba(3, 5, 9, 0.12) 26%, rgba(3, 5, 9, 0.18) 60%, rgba(3, 5, 9, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 34px) 24px 200px;
  max-width: 980px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: 0.045em;
  margin: 0 0 18px;
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.85);
}
.hero-tagline .grad {
  display: inline-block;
  background: var(--gradient);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(76, 201, 240, 0.35));
  text-shadow: none;
}
@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub {
  color: #d3dce7;
  font-size: clamp(16px, 2vw, 19px);
  max-width: 660px;
  margin: 0 auto 32px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 28px;
}

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.03em;
  padding: 16px 30px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none !important;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.28) 50%, transparent 68%);
  transform: translateX(-160%);
  pointer-events: none;
}
.btn:hover::after { transition: transform 0.7s ease; transform: translateX(160%); }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; position: relative; z-index: 1; }
.btn:hover { transform: translateY(-2px) scale(1.015); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-steam {
  background: linear-gradient(135deg, #16202d, #2a475e);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(102, 192, 244, 0.35) inset, 0 12px 34px rgba(23, 52, 74, 0.65), 0 0 30px rgba(102, 192, 244, 0.12);
}
.btn-steam:hover { box-shadow: 0 0 0 1px rgba(102, 192, 244, 0.55) inset, 0 16px 42px rgba(23, 52, 74, 0.85), 0 0 44px rgba(102, 192, 244, 0.22); }
.btn-ps {
  background: #fff;
  color: #0f3f8c;
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.16), 0 0 30px rgba(76, 201, 240, 0.18);
}
.btn-ps:hover { box-shadow: 0 16px 44px rgba(255, 255, 255, 0.24), 0 0 46px rgba(76, 201, 240, 0.3); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.5); }
.btn-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 12px 34px rgba(88, 101, 242, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.btn-discord:hover { box-shadow: 0 16px 44px rgba(88, 101, 242, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.2) inset; }

/* rating pills */
.hero-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #dbe4ee;
  font-size: 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}
.rating-pill .stars { color: #ffd166; letter-spacing: 2.5px; font-size: 13px; text-shadow: 0 0 12px rgba(255, 209, 102, 0.5); }
/* honest stars: gold up to the actual score (--fill), then a quieter,
   desaturated gold for the missing fraction of the last star */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .rating-pill .stars,
  .platform .rating-line .stars {
    background: linear-gradient(90deg, #ffd166 var(--fill, 100%), #d4b160 var(--fill, 100%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.rating-pill strong { color: #fff; }

/* trailer button floating just above the community strip */
.strip-trailer-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 18px);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.strip-trailer-wrap .btn { pointer-events: auto; }
.strip-trailer-wrap .yt { fill: #ff5c5c; filter: drop-shadow(0 0 8px rgba(255, 92, 92, 0.45)); }
/* the packed mobile hero has no room to float — join the strip's flow
   (the rules live in the shared max-width media block further down,
   after the base hero rules they override) */

/* community-builds strip inside the hero's first viewport */
.hero-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 14px 0 16px;
  background: linear-gradient(180deg, rgba(4, 6, 10, 0), rgba(4, 6, 10, 0.72) 30%, rgba(4, 6, 10, 0.85));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.strip-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 0 26px 10px;
  text-decoration: none !important;
}
.strip-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.strip-sub {
  color: #b7c3d2;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.strip-label:hover .strip-sub { color: #fff; }

/* video pause/play toggle — floats above everything since the video runs page-wide */
.video-toggle {
  position: fixed;
  z-index: 95;
  right: 18px; bottom: 18px;
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(9, 13, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.35s ease;
}
.video-toggle.offscreen { opacity: 0; pointer-events: none; }
.video-toggle:hover { background: rgba(9, 13, 22, 0.8); border-color: rgba(255, 255, 255, 0.4); }
.video-toggle svg { width: 18px; height: 18px; fill: #fff; }
.video-toggle .ico-play { display: none; }
.video-toggle.paused .ico-play { display: block; }
.video-toggle.paused .ico-pause { display: none; }

/* --------------------------------------------------------------------------
   Marquee film strip
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 11px;
  width: max-content;
  animation: marquee 75s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.marquee-track a {
  position: relative;
  flex: none;
  width: 172px;
  height: 97px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.marquee-track a:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(87, 217, 163, 0.3), 0 0 0 1px rgba(110, 240, 182, 0.45) inset;
  z-index: 2;
}
.marquee-track img { width: 100%; height: 100%; object-fit: cover; }
/* touch: the strip looks scrollable, so it IS scrollable — native swipe
   instead of the auto-marquee (main.js also skips duplicating the content) */
@media (hover: none) and (pointer: coarse) {
  .marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee-track { animation: none; padding: 4px 18px 8px; }
}
@media (max-width: 640px) {
  .marquee-track a { width: 134px; height: 76px; }
  .hero-content { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 168px; }
  .hero-sub { font-size: 15px; margin-bottom: 24px; }
  .hero-actions { gap: 10px; margin-bottom: 20px; }
  .btn { padding: 13px 22px; font-size: 15px; }
  /* the packed mobile hero: strip flows after the content instead of
     overlaying it, and the trailer button joins the strip's flow */
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .hero-content { padding-bottom: 30px; margin: auto; }
  .hero-strip { position: static; }
  .strip-trailer-wrap { position: static; margin: 4px 0 12px; }
  .strip-trailer-wrap .btn { padding: 11px 20px; font-size: 14px; }
  /* one-column grid: the narrower pill stretches to match the wider one */
  .hero-ratings { display: grid; justify-content: center; }
  .rating-pill { font-size: 12.5px; padding: 9px 18px; text-align: left; }
  /* both pills become matching two-line badges: verdict on top, the full
     review count as a quieter sub-line — nothing gets hidden */
  .rating-pill .r-sep { display: none; }
  .rating-pill .r-more {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: #a9b6c6;
  }
  .strip-label { padding: 0 18px 8px; flex-wrap: wrap; gap: 8px; }
}

/* --------------------------------------------------------------------------
   About / pillars
   -------------------------------------------------------------------------- */
.about-section {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(87, 217, 163, 0.05), transparent),
    var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* pointer-tracking spotlight on cards */
.pillar, .mini, .com-card, .platform { position: relative; overflow: hidden; }
.pillar::after, .mini::after, .com-card::after, .platform::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 240, 182, 0.09), rgba(76, 201, 240, 0.04) 45%, transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.pillar:hover::after, .mini:hover::after, .com-card:hover::after, .platform:hover::after { opacity: 1; }

.pillar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(87, 217, 163, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(87, 217, 163, 0.1);
}
.pillar-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(87, 217, 163, 0.16), rgba(76, 201, 240, 0.1));
  border: 1px solid rgba(87, 217, 163, 0.35);
  box-shadow: 0 0 26px rgba(87, 217, 163, 0.18);
  margin-bottom: 20px;
}
.pillar-icon svg { width: 27px; height: 27px; fill: var(--accent); filter: drop-shadow(0 0 6px rgba(87, 217, 163, 0.6)); }
.pillar h3 { font-size: 21px; font-weight: 600; }
.pillar p { color: var(--fg-muted); font-size: 15.5px; margin: 0; }

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.stats-band {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 320px at 50% 50%, rgba(76, 201, 240, 0.06), transparent),
    var(--bg-raised);
  padding: 72px 0;
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; } }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(76, 201, 240, 0.3));
  line-height: 1;
}
.stat-label {
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 14.5px;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Feature rows
   -------------------------------------------------------------------------- */
.features-section {
  background:
    radial-gradient(1000px 500px at 15% 30%, rgba(176, 125, 245, 0.05), transparent),
    radial-gradient(1000px 500px at 85% 70%, rgba(87, 217, 163, 0.05), transparent),
    var(--bg);
}
.feature-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  margin-top: 100px;
}
.feature-row.flip { grid-template-columns: 1fr 1.15fr; }
.feature-row.flip .feature-media { order: 2; }
@media (max-width: 900px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; margin-top: 64px; }
  .feature-row.flip .feature-media { order: 0; }
}

.feature-media {
  position: relative;
  border-radius: var(--radius);
  padding: 3px;
  background: linear-gradient(135deg, rgba(110, 240, 182, 0.35), rgba(76, 201, 240, 0.12) 40%, rgba(176, 125, 245, 0.3));
  box-shadow: var(--shadow-lg), 0 0 90px var(--glow, transparent);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.feature-media:hover { box-shadow: 0 34px 90px rgba(0, 0, 0, 0.7), 0 0 110px var(--glow, rgba(76, 201, 240, 0.14)); }
/* ambient glow tinted to each screenshot */
.feature-row.glow-green .feature-media { --glow: rgba(87, 217, 163, 0.16); }
.feature-row.glow-warm .feature-media { --glow: rgba(255, 164, 92, 0.13); }
.feature-row.glow-ice .feature-media { --glow: rgba(92, 156, 255, 0.16); }
.feature-row.glow-gold .feature-media { --glow: rgba(255, 196, 92, 0.13); }
.feature-media .frame {
  border-radius: calc(var(--radius) - 3px);
  overflow: hidden;
  background: var(--bg-card);
}
.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.feature-media:hover img { transform: scale(1.045); }

.feature-copy h3 {
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
}
.feature-copy p { color: var(--fg-muted); margin: 0 0 10px; }
.feature-copy .kicker { margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   Small feature cards
   -------------------------------------------------------------------------- */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 90px;
}
@media (max-width: 980px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mini-grid { grid-template-columns: 1fr; } }

.mini {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.mini:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 201, 240, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(76, 201, 240, 0.08);
}
.mini h4 { font-size: 17px; font-weight: 600; margin-bottom: 7px; display: flex; align-items: center; gap: 11px; }
.mini h4 .emoji { font-size: 21px; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15)); }
.mini p { color: var(--fg-muted); font-size: 14.5px; margin: 0; }

/* --------------------------------------------------------------------------
   Quote band — big typography floating on the aurora canvas
   -------------------------------------------------------------------------- */
.interlude {
  position: relative;
  height: min(74vh, 680px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}
/* the trailer shows through here; the veil fades its top/bottom edges into the
   page's dark base so video and aurora never touch with a hard seam */
.interlude .veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 11, 0.97) 0%, rgba(4, 6, 11, 0) 26%, rgba(4, 6, 11, 0) 74%, rgba(4, 6, 11, 0.97) 100%),
    radial-gradient(ellipse 64% 70% at 50% 52%, rgba(3, 5, 9, 0.4), transparent 76%);
}
.interlude .inner { position: relative; z-index: 2; max-width: 860px; padding: 0 24px; }
.interlude blockquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 14px;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.9);
  text-wrap: balance;
}
.interlude .attribution {
  color: #c4d0dd;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-section {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(76, 201, 240, 0.07), transparent),
    var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#platforms, #community, #press { background: var(--bg); }
/* the gallery gets almost the full screen — the art deserves the space */
.gallery-section .wrap { max-width: min(96vw, 2400px); }

.gallery-note,
.supporters-note {
  max-width: 660px;
  margin: 14px auto 0;
  font-size: 13.5px;
  color: #93a1b3;
  text-wrap: pretty;
}

/* magazine mosaic: 12 columns, row spans computed per tile by JS */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 8px;
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 58px;
  will-change: transform;
}
@media (max-width: 1000px) { .gallery-grid { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.g-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}
.g-item.feat { border-radius: var(--radius); }
.g-item.in {
  opacity: 1;
  animation: gpop 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
/* hand-placed collage feel on the small tiles, straighten on hover */
.g-item.base:nth-child(odd).in { transform: rotate(0.5deg); }
.g-item.base:nth-child(even).in { transform: rotate(-0.4deg); }
@keyframes gpop {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.g-item.in:hover {
  transform: translateY(-5px) rotate(0deg) scale(1.012) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 36px rgba(87, 217, 163, 0.16);
  z-index: 3;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.55s ease, opacity 0.4s ease;
  opacity: 0;
}
.g-item img.loaded { opacity: 1; }
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
  transition: box-shadow 0.3s ease;
}
.g-item:hover::after { box-shadow: inset 0 0 0 1px rgba(110, 240, 182, 0.5); }
.g-item:hover img { transform: scale(1.055); }
.g-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 16px 13px;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 10, 0.92));
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.g-caption .by { display: block; font-weight: 400; color: #a9b8c9; font-size: 12px; margin-top: 1px; }
.g-caption::after {
  content: "↗";
  position: absolute;
  right: 14px; bottom: 13px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(87, 217, 163, 0.7);
}
.g-item:hover .g-caption { opacity: 1; transform: none; }
.g-item.anon .g-caption { display: none; }
/* cinematic feature tiles carry their credit permanently */
.g-item.feat .g-caption {
  opacity: 1;
  transform: none;
  font-family: var(--font-display);
  font-size: 17px;
  padding: 60px 20px 16px;
}
.g-item.feat .g-caption .by { font-family: var(--font-body); font-size: 12.5px; color: #b9c5d4; }
@media (hover: none) { .g-caption { display: none; } .g-item.feat .g-caption { display: block; } }


/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 8, 0.9);
  overflow: hidden;
}
.lightbox.open { display: flex; }
/* ambient: the artwork itself, blurred out to light the room */
.lb-ambient {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: blur(70px) saturate(1.25) brightness(0.42);
  transform: scale(1.1);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.lightbox.open .lb-ambient { opacity: 1; }
.lb-count {
  position: fixed;
  top: 30px; left: 34px;
  z-index: 201;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.lb-stage { position: relative; max-width: 97.5vw; max-height: 95vh; }
.lightbox.open .lb-stage { animation: lbIn 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.94) translateY(14px); }
  to { opacity: 1; transform: none; }
}
.lb-stage img {
  max-width: 97.5vw;
  max-height: 94vh;
  width: auto; height: auto;
  border-radius: 10px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 90px rgba(76, 201, 240, 0.1);
}
/* caption floats over the artwork so the image can take the whole screen */
.lb-caption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  max-width: 94%;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 14, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #eef2f7;
  white-space: nowrap;
}
.lb-caption strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}
.lb-caption .by {
  font-size: 13px;
  color: #c6d1df;
}
.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 201;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); }
.lb-btn svg { width: 24px; height: 24px; fill: #fff; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close { top: 24px; right: 18px; transform: none; }
/* phones: the caption moves below the image (an overlay pill would cover half
   of the small artwork), and the arrows flank it at the bottom of the screen */
@media (max-width: 700px) {
  .lb-stage img { max-height: 72vh; }
  .lb-caption {
    position: static;
    transform: none;
    margin: 14px auto 0;
    padding: 8px 16px;
    gap: 8px;
    white-space: normal;
    flex-wrap: wrap;
    max-width: 96%;
  }
  .lb-caption strong { font-size: 14px; }
  .lb-caption .by { font-size: 12px; }
  .lb-btn { width: 44px; height: 44px; top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-close { top: 16px; bottom: auto; right: 16px; }
  .lb-count { top: 22px; left: 20px; }
}
.lb-spinner { position: absolute; inset: 0; display: grid; place-items: center; }
.lb-spinner[hidden] { display: none !important; }
.lb-spinner div {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* floating escape hatch while scrolling through the tall gallery */
.gallery-skip {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 14px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(110, 240, 182, 0.32);
  background: rgba(6, 10, 17, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #cfe7db;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.2s, color 0.2s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.gallery-skip svg { width: 15px; height: 15px; fill: currentColor; }
.gallery-skip.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.gallery-skip:hover { border-color: rgba(110, 240, 182, 0.65); color: #fff; }

/* --------------------------------------------------------------------------
   Platforms
   -------------------------------------------------------------------------- */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 60px;
}
@media (max-width: 860px) { .platform-grid { grid-template-columns: 1fr; } }

.platform {
  position: relative;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px 36px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.platform::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.platform.steam::before { background: linear-gradient(90deg, transparent, #66c0f4, transparent); box-shadow: 0 0 18px rgba(102, 192, 244, 0.6); }
.platform.psvr::before { background: linear-gradient(90deg, transparent, #0070d1, transparent); box-shadow: 0 0 18px rgba(0, 112, 209, 0.7); }
.platform:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.platform.steam:hover { border-color: rgba(102, 192, 244, 0.4); }
.platform.psvr:hover { border-color: rgba(0, 112, 209, 0.55); }
.platform-head { display: flex; align-items: center; gap: 15px; margin-bottom: 14px; }
.platform-head svg { width: 42px; height: 42px; fill: #fff; filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2)); }
.platform h3 { font-size: 24px; margin: 0; }
.platform .sub { color: var(--fg-muted); font-size: 14px; margin: 0; }
.platform ul {
  list-style: none;
  margin: 16px 0 28px;
  padding: 0;
  color: var(--fg-muted);
  font-size: 15px;
}
.platform ul li { padding-left: 26px; position: relative; margin-bottom: 10px; }
.platform ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(87, 217, 163, 0.6);
}
.platform .btn { margin-top: auto; }
.platform .rating-line { font-size: 14px; color: var(--fg-muted); margin: 0 0 20px; }
.platform .rating-line .stars { color: #ffd166; letter-spacing: 2px; text-shadow: 0 0 10px rgba(255, 209, 102, 0.4); }
.platform .rating-line strong { color: var(--fg); }

/* --------------------------------------------------------------------------
   Community
   -------------------------------------------------------------------------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
@media (max-width: 980px) { .community-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .community-grid { grid-template-columns: 1fr; } }

.com-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px 26px;
  color: var(--fg) !important;
  text-decoration: none !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.com-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.com-card svg { width: 30px; height: 30px; fill: var(--fg); margin-bottom: 10px; }
.com-card.discord:hover { border-color: rgba(88, 101, 242, 0.65); box-shadow: 0 18px 44px rgba(0,0,0,0.45), 0 0 34px rgba(88, 101, 242, 0.18); }
.com-card.discord svg { fill: #7984f5; filter: drop-shadow(0 0 10px rgba(121, 132, 245, 0.5)); }
.com-card.trello:hover { border-color: rgba(87, 217, 163, 0.55); box-shadow: 0 18px 44px rgba(0,0,0,0.45), 0 0 34px rgba(87, 217, 163, 0.16); }
.com-card.trello svg { fill: var(--accent); filter: drop-shadow(0 0 10px rgba(87, 217, 163, 0.5)); }
.com-card.youtube:hover { border-color: rgba(255, 60, 60, 0.6); box-shadow: 0 18px 44px rgba(0,0,0,0.45), 0 0 34px rgba(255, 60, 60, 0.15); }
.com-card.youtube svg { fill: #ff5c5c; filter: drop-shadow(0 0 10px rgba(255, 92, 92, 0.5)); }
.com-card.twitter:hover { border-color: rgba(255, 255, 255, 0.45); }
.com-card.twitter svg { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35)); }
.com-card.bluesky:hover { border-color: rgba(0, 133, 255, 0.55); box-shadow: 0 18px 44px rgba(0,0,0,0.45), 0 0 34px rgba(0, 133, 255, 0.18); }
.com-card.bluesky svg { fill: #59a8ff; filter: drop-shadow(0 0 10px rgba(0, 133, 255, 0.5)); }
/* X + Bluesky share one grid cell as a compact stacked pair */
.com-stack { display: grid; gap: 20px; }
.com-stack .com-card { flex-direction: row; align-items: center; gap: 16px; padding: 18px 24px; }
.com-stack .com-card svg { margin-bottom: 0; flex-shrink: 0; }
.com-stack .com-card h4 { margin: 0; }
.com-stack .com-card p { margin: 2px 0 0; font-size: 13.5px; color: var(--fg-muted); }
.com-card.steamf:hover { border-color: rgba(102, 192, 244, 0.55); box-shadow: 0 18px 44px rgba(0,0,0,0.45), 0 0 34px rgba(102, 192, 244, 0.16); }
.com-card.steamf svg { fill: #66c0f4; filter: drop-shadow(0 0 10px rgba(102, 192, 244, 0.5)); }
.com-card.news:hover { border-color: rgba(176, 125, 245, 0.55); box-shadow: 0 18px 44px rgba(0,0,0,0.45), 0 0 34px rgba(176, 125, 245, 0.16); }
.com-card.news svg { fill: var(--accent-3); filter: drop-shadow(0 0 10px rgba(176, 125, 245, 0.5)); }
.com-card h4 { margin: 0; font-size: 17.5px; }
.com-card p { margin: 0; color: var(--fg-muted); font-size: 14px; }

/* --------------------------------------------------------------------------
   Press
   -------------------------------------------------------------------------- */
.press-box {
  margin-top: 60px;
  background: linear-gradient(135deg, rgba(87, 217, 163, 0.07), rgba(76, 201, 240, 0.05) 50%, rgba(176, 125, 245, 0.06));
  border: 1px solid rgba(87, 217, 163, 0.22);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
  box-shadow: 0 0 60px rgba(87, 217, 163, 0.05);
}
@media (max-width: 860px) { .press-box { grid-template-columns: 1fr; } }
.press-box h3 { font-size: 21px; }
.press-box p { color: var(--fg-muted); font-size: 15.5px; margin: 0 0 14px; }
.press-box .small { font-size: 13.5px; opacity: 0.85; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.cta-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 150px 24px;
}
.cta-final .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.6) saturate(1.1);
  animation: slowzoom 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.cta-final .veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 60%, transparent 30%, rgba(3, 5, 9, 0.5)),
    linear-gradient(180deg, var(--bg) 0%, rgba(5, 7, 13, 0.15) 30%, rgba(5, 7, 13, 0.3) 70%, #05070b 100%);
}
.cta-final .inner { position: relative; z-index: 1; }
.cta-final h2 {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 700;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.85);
}
.cta-final p {
  color: #dae3ec;
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 18px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}
.cta-final .hero-actions { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  position: relative;
  background: #04060a;
  padding: 64px 0 42px;
  font-size: 14.5px;
}
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(87, 217, 163, 0.4), rgba(76, 201, 240, 0.4), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 36px;
  margin-bottom: 46px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo img { height: 38px; }
.footer-brand p { color: var(--fg-muted); max-width: 320px; margin: 0; }
footer h5 {
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 16px;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer ul li { margin-bottom: 10px; }
footer ul a { color: #c3cedb; transition: color 0.2s; }
footer ul a:hover { color: var(--accent); text-decoration: none; }
.footer-studio { display: flex; align-items: center; justify-content: flex-end; opacity: 0.92; }
.footer-studio img { height: 160px; width: auto; }
@media (max-width: 900px) { .footer-studio { grid-column: 1 / -1; justify-content: center; } }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: var(--fg-muted);
  font-size: 13.5px;
}
.footer-bottom a { color: var(--fg-muted); }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Trailer modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 8, 0.93);
  backdrop-filter: blur(10px);
  padding: 24px;
}
.modal.open { display: flex; }
.modal-frame {
  position: relative;
  width: min(95vw, calc(90vh * (16 / 9)));
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(76, 201, 240, 0.12);
  background: #000;
}
/* laid out oversized and scaled down by main.js so YouTube serves 1440p */
.modal-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
  transform-origin: 0 0;
}

/* --------------------------------------------------------------------------
   Patreon supporters
   -------------------------------------------------------------------------- */
.supporters-section { background: var(--bg); }
.supporter-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  max-width: 1080px;
  margin: 46px auto 0;
}
/* little silver plates: steel-glass body, polished metallic lettering, a top
   light and a glint that sweeps across each one at its own rhythm */
.supporter-wall { position: relative; }
.supporter-wall::before {
  content: "";
  position: absolute;
  inset: -70px -8%;
  background: radial-gradient(58% 75% at 50% 42%, rgba(175, 200, 235, 0.05), transparent 75%);
  pointer-events: none;
}
.supporter {
  position: relative;
  overflow: hidden;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(214, 226, 240, 0.42);
  background: linear-gradient(180deg, rgba(122, 136, 156, 0.4), rgba(58, 66, 80, 0.5));
  font-size: 13.5px;
  box-shadow:
    inset 0 1px 0 rgba(240, 247, 255, 0.5),
    inset 0 -7px 12px rgba(38, 46, 60, 0.45),
    0 0 18px rgba(175, 200, 235, 0.13),
    0 2px 10px rgba(0, 0, 0, 0.35);
}
.supporter .sn {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #d7e0ec 42%, #94a2b5 72%, #eef3fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.supporter::before {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(245, 250, 255, 0.4), transparent);
  transform: skewX(-22deg) translateX(-130%);
  animation: medalSheen 7s linear infinite;
  pointer-events: none;
}
.supporter:nth-child(3n)::before { animation-delay: 2.4s; }
.supporter:nth-child(3n + 1)::before { animation-delay: 4.9s; }
.supporter:nth-child(5n)::before { animation-delay: 1.3s; }
.supporter:nth-child(7n)::before { animation-delay: 6.1s; }
@keyframes medalSheen {
  0% { transform: skewX(-22deg) translateX(-130%); }
  20% { transform: skewX(-22deg) translateX(560%); }
  100% { transform: skewX(-22deg) translateX(560%); }
}

/* --------------------------------------------------------------------------
   Impressum page
   -------------------------------------------------------------------------- */
.legal-page {
  padding: calc(var(--nav-h) + 70px) 0 100px;
  min-height: 70vh;
}
.legal-page h1 { font-size: 38px; }
.legal-page .card {
  margin-top: 30px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 36px;
  max-width: 640px;
  line-height: 2;
  color: #c9d4e0;
}

/* --------------------------------------------------------------------------
   FX layer: WebGL canvas, loader, ghost type, text bands, cursor ring
   -------------------------------------------------------------------------- */

/* intro loader */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #04060b;
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#loader.out { opacity: 0; visibility: hidden; }
.l-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.l-cube { width: 62px; animation: lspin 2.2s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(87, 217, 163, 0.4)); }
.l-cube polygon { stroke-width: 1.5; }
.l-cube .lc-top { fill: rgba(110, 240, 182, 0.34); stroke: rgba(110, 240, 182, 0.9); }
.l-cube .lc-right { fill: rgba(76, 201, 240, 0.2); stroke: rgba(76, 201, 240, 0.7); }
.l-cube .lc-left { fill: rgba(176, 125, 245, 0.16); stroke: rgba(176, 125, 245, 0.6); }
@keyframes lspin {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}
.l-word { font-size: 26px; }
.l-bar {
  width: 190px; height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.l-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(76, 201, 240, 0.6);
  transform-origin: left;
  transform: scaleX(0);
  animation: lbar 1.1s cubic-bezier(0.3, 0, 0.2, 1) 0.15s forwards;
}
@keyframes lbar { to { transform: scaleX(1); } }

/* WebGL canvas sits between the trailer (z0) and the content (z2) */
#fx {
  position: fixed;
  inset: 0;
  /* canvas is a replaced element: inset alone keeps its intrinsic size,
     so at fractional devicePixelRatio it would overflow the viewport and
     render every hole/effect misaligned — force the box to the viewport */
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
section, footer { position: relative; z-index: 2; }

/* with the GPU background live, sections open up and CSS ambience retires */
html.fx .about-section,
html.fx .features-section,
html.fx #platforms,
html.fx #community,
html.fx #supporters,
html.fx #press { background: transparent; }
html.fx .stats-band { background: rgba(10, 14, 24, 0.42); }
html.fx .gallery-section { background: transparent; border-color: transparent; }
html.fx footer { background: rgba(4, 6, 10, 0.68); }
html.fx .aurora, html.fx .starfield { display: none; }



/* hero title choreography (chars wrapped by fx.js) */
.hero-tagline .ch {
  display: inline-block;
  font-style: normal;
  opacity: 0;
  transform: translateY(0.4em) rotate(6deg);
  filter: blur(8px);
}
html.intro-done .hero-tagline .ch {
  animation: chIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes chIn {
  to { opacity: 1; transform: none; filter: blur(0); }
}
.hero-tagline.split .grad { opacity: 0; }
html.intro-done .hero-tagline.split .grad {
  animation:
    gradIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards,
    sheen 7s ease-in-out 2s infinite;
}
@keyframes gradIn {
  from { opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(6px) drop-shadow(0 0 26px rgba(76, 201, 240, 0.35)); }
  to { opacity: 1; clip-path: inset(0 -8% 0 0); filter: blur(0) drop-shadow(0 0 26px rgba(76, 201, 240, 0.35)); }
}

/* section titles arrive from a blur */
.section-title.reveal {
  transform: translateY(30px) scale(0.985);
  filter: blur(12px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}
/* must re-clear transform here: this rule outranks .reveal.visible in order,
   and a stuck translateY paints the heading onto the paragraph below */
.section-title.reveal.visible { filter: blur(0); transform: none; }

/* --------------------------------------------------------------------------
   Reduced motion: switch off the decorative animation, keep the content.
   (The hero trailer keeps playing — it IS the content; a pause button is provided.)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; filter: none; }
  .aurora i, .starfield, .starfield::after, .vox, .hero-scroll,
  .hero-tagline .grad, .cta-final .bg, .l-cube, .supporter::before { animation: none !important; }
  .marquee-track { animation-duration: 240s; }
  #loader { display: none; }
}
