:root {
  --bg: #070b14;
  --surface: rgba(11, 17, 34, 0.72);
  --surface-strong: rgba(16, 24, 46, 0.9);
  --text: #ffffff;
  --muted: #aeb9cc;
  --primary: #00a3ff;
  --secondary: #8a2bff;
  --accent: #ff3dd8;
  --gold: #ffb000;
  --border: rgba(130, 210, 255, 0.22);
  --glow: rgba(0, 163, 255, 0.28);
  --hero-gradient: linear-gradient(135deg, #00a3ff 0%, #8a2bff 48%, #ff3dd8 100%);
  --card-radius: 26px;
  --button-radius: 14px;
  --font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-family);
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 163, 255, 0.16), transparent 30%),
    radial-gradient(circle at 80% 15%, rgba(255, 61, 216, 0.14), transparent 28%),
    radial-gradient(circle at 50% 85%, rgba(138, 43, 255, 0.13), transparent 34%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-glow {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -2;
}
.site-glow-one { top: 5%; right: -12%; background: var(--secondary); }
.site-glow-two { bottom: 2%; left: -14%; background: var(--primary); }

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1180px, calc(100% - 36px));
  margin: 14px auto 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 16, 30, 0.82), rgba(10, 16, 30, 0.58));
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-logo { width: 46px; height: 46px; border-radius: 12px; }
.brand-name { line-height: 1.05; font-size: 0.92rem; max-width: 170px; }

.nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-weight: 600; font-size: 0.94rem; }
.nav a { transition: color .25s ease, text-shadow .25s ease; }
.nav a:hover { color: var(--text); text-shadow: 0 0 18px var(--glow); }
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--button-radius);
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.nav-cta {
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.04);
}
.button { padding: 17px 23px; }
.button-primary, .nav-cta:hover {
  background: var(--hero-gradient);
  box-shadow: 0 14px 38px var(--glow), 0 0 0 1px rgba(255,255,255,.13) inset;
}
.button-secondary {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
}
.button:hover, .nav-cta:hover { transform: translateY(-3px); }
.menu-toggle { display: none; }

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 30px;
  padding: 96px 0 72px;
  position: relative;
}
.hero::before, .games::before, .cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 76%);
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 76%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { content: "///"; color: var(--accent); letter-spacing: 0.04em; }
.hero h1, .section-heading h2, .about h2, .cta h2 {
  margin: 0;
  letter-spacing: -0.07em;
  line-height: 0.92;
}
.hero h1 {
  max-width: 650px;
  font-size: clamp(4rem, 8vw, 7.9rem);
  font-weight: 950;
}
.hero h1 span, .gradient-text {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-description {
  width: min(520px, 100%);
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.hero-art {
  position: relative;
  min-height: 640px;
  transform-style: preserve-3d;
}
.orbital-platform {
  position: absolute;
  left: 50%; top: 55%;
  width: min(440px, 80vw); height: min(440px, 80vw);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.16), rgba(0,163,255,.08) 28%, rgba(138,43,255,.08) 46%, transparent 70%);
  filter: drop-shadow(0 0 80px var(--glow));
}
.ring {
  position: absolute; inset: 12%; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  animation: orbit 18s linear infinite;
}
.ring-one { box-shadow: 0 0 40px rgba(0,163,255,.38); border-color: rgba(0,163,255,.45); }
.ring-two { inset: 25%; border-color: rgba(255,61,216,.48); animation-direction: reverse; animation-duration: 13s; }
.ring-three { inset: 38%; border-color: rgba(255,176,0,.4); animation-duration: 9s; }
.brand-emblem {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 116px; height: 116px; border-radius: 30px;
  font-size: 4rem; font-weight: 950;
  color: white;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.2);
}

.floating-card {
  position: absolute;
  width: 210px;
  min-height: 292px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(0,0,0,.38), 0 0 45px var(--glow);
  overflow: hidden;
  animation: float 5s ease-in-out infinite;
}
.floating-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--card-bg, var(--hero-gradient));
  opacity: .56;
  -webkit-mask-image: radial-gradient(circle at 50% 35%, black, transparent 70%);
  mask-image: radial-gradient(circle at 50% 35%, black, transparent 70%);
}
.floating-card:nth-child(1) { left: 42%; top: 4%; transform: rotate(8deg); }
.floating-card:nth-child(2) { left: 12%; top: 24%; transform: rotate(-13deg); animation-delay: -.8s; }
.floating-card:nth-child(3) { right: 4%; top: 28%; transform: rotate(13deg); animation-delay: -1.4s; }
.floating-card-content { position: relative; min-height: 255px; display: flex; flex-direction: column; justify-content: flex-end; }
.floating-card h3 { margin: 0; font-size: 1.05rem; }
.floating-card p { margin: 6px 0 0; color: rgba(255,255,255,.74); font-size: .88rem; }
.card-planet {
  position: absolute; left: 50%; top: 28%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, white, var(--primary) 18%, var(--secondary) 50%, transparent 72%);
  box-shadow: 0 0 60px var(--glow);
}
.particle {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--hero-gradient);
  box-shadow: 0 0 25px var(--glow);
  animation: float 4s ease-in-out infinite;
}
.p1 { left: 5%; top: 22%; } .p2 { right: 13%; top: 8%; animation-delay: -.6s; }
.p3 { left: 18%; bottom: 14%; animation-delay: -1s; } .p4 { right: 4%; bottom: 26%; animation-delay: -1.7s; }

.section-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 28px;
}
.section-heading h2, .about h2, .cta h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 950; }
.section-heading p:not(.eyebrow), .about p, .cta p { color: var(--muted); line-height: 1.7; max-width: 640px; }
.text-link { color: var(--text); font-weight: 800; display: inline-flex; gap: 10px; align-items: center; }
.text-link span { color: var(--primary); }

.games { position: relative; padding: 56px 0 78px; }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game-card {
  min-height: 470px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.game-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,.36); box-shadow: 0 34px 90px rgba(0,0,0,.44), 0 0 42px var(--glow); }
.game-cover {
  height: 235px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--cover-bg);
  border: 1px solid rgba(255,255,255,.15);
}
.game-cover::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.88), transparent 7%),
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.2), transparent 18%),
    linear-gradient(140deg, rgba(255,255,255,.16), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 16px);
  mix-blend-mode: screen;
}
.game-cover::after {
  content: attr(data-icon); position: absolute; right: 16px; top: 12px; font-size: 1.8rem; color: white; filter: drop-shadow(0 0 12px var(--glow));
}
.game-card h3 { margin: 20px 0 10px; font-size: 1.7rem; letter-spacing: .05em; }
.tag-row, .platform-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag, .platform {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  padding: 7px 9px;
  text-transform: uppercase;
}
.game-card p { color: var(--muted); line-height: 1.6; min-height: 52px; }
.platform-row { margin-top: 18px; }

.about { display: grid; grid-template-columns: .78fr 1.22fr; gap: 22px; padding: 70px 0 30px; }
.glass-panel, .feature-card, .stats, .cta, .footer {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,.03));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 80px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.045);
}
.about-intro { padding: 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-card { padding: 26px; }
.feature-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  color: var(--primary);
  font-size: 1.7rem;
  box-shadow: 0 0 28px var(--glow);
}
.feature-card h3 { margin: 20px 0 8px; }
.feature-card p { margin: 0; }

.stats {
  margin-top: 34px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat { padding: 18px 20px; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; background: var(--hero-gradient); color: transparent; -webkit-background-clip: text; background-clip: text; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-weight: 700; }

.cta {
  position: relative;
  overflow: hidden;
  margin-top: 54px;
  margin-bottom: 54px;
  padding: 44px;
  min-height: 300px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}
.cta-visual {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 72% 45%, rgba(255,255,255,.36), transparent 8%),
    radial-gradient(circle at 72% 45%, rgba(0,163,255,.26), transparent 24%),
    radial-gradient(circle at 78% 50%, rgba(255,61,216,.22), transparent 36%),
    linear-gradient(120deg, rgba(0,0,0,.12), rgba(138,43,255,.22));
  opacity: .9;
}
.cta-copy, .cta-actions { position: relative; }
.cta-copy p { max-width: 600px; }
.cta-actions { display: flex; align-items: end; flex-direction: column; gap: 18px; }

.footer {
  margin-bottom: 24px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1fr;
  gap: 28px;
}
.footer-brand p { color: var(--muted); line-height: 1.7; }
.footer-email { color: var(--primary); font-weight: 800; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-column h4, .newsletter label { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--primary); }
.footer-column a { display: block; color: var(--muted); margin: 10px 0; font-weight: 600; }
.newsletter { align-self: start; }
.input-row { display: flex; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.04); }
.input-row input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: white; padding: 15px; }
.input-row button { border: 0; padding: 0 18px; color: white; background: var(--hero-gradient); font-size: 1.2rem; cursor: pointer; }
.copyright { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: .9rem; }

[data-animate] { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s ease; }
[data-animate].in-view { opacity: 1; transform: translateY(0); }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -16px; } }

@media (max-width: 980px) {
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 12px;
  }
  .nav, .nav-cta {
    display: none;
  }
  .site-header.is-open .nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    display: grid; padding: 20px;
    background: rgba(10, 16, 30, .94); border: 1px solid var(--border); border-radius: 20px;
  }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .hero-art { min-height: 540px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .section-shell, .site-header { width: min(100% - 24px, 1180px); }
  .hero h1 { font-size: clamp(3.3rem, 16vw, 5rem); }
  .hero-actions, .cta-actions { align-items: stretch; flex-direction: column; }
  .floating-card { width: 168px; min-height: 230px; }
  .floating-card:nth-child(1) { left: 32%; }
  .floating-card:nth-child(2) { left: 1%; }
  .floating-card:nth-child(3) { right: -4%; }
  .game-grid, .feature-grid, .stats, .footer-links { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat:last-child { border-bottom: 0; }
  .section-heading, .cta { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
}

/* Simplified JeeJay Labs layout */
.site-header {
  justify-content: flex-start;
}

.games {
  padding-top: 42px;
  padding-bottom: 72px;
}

.games .section-heading {
  justify-content: center;
  text-align: center;
}

.games .section-heading > div {
  width: 100%;
}

.games .section-heading p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}


.video-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  justify-items: center;
}

.video-card {
  width: min(360px, 100%);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0,0,0,.42), 0 0 48px var(--glow);
}

.video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: calc(var(--card-radius) - 10px);
  background: #000;
}

@media (max-width: 900px) {
  .video-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .video-card-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    min-height: 68px;
    top: 10px;
    margin-top: 10px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-bottom: 40px;
  }

  .video-card {
    width: min(390px, 100%);
    padding: 9px;
  }
}


/* Premium header refinement */
.site-header {
  position: sticky;
  justify-content: flex-start;
  overflow: hidden;
  isolation: isolate;
  padding: 14px 20px;
  border: 1px solid rgba(146, 225, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(9, 15, 29, 0.9), rgba(9, 15, 29, 0.64)),
    linear-gradient(90deg, rgba(0, 163, 255, 0.05), rgba(138, 43, 255, 0.04), rgba(255, 61, 216, 0.05));
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255,255,255,0.03) inset,
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(0,163,255,0.65), rgba(138,43,255,0.25), rgba(255,61,216,0.55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: -55%;
  height: 120%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: rotate(-6deg);
  pointer-events: none;
  opacity: 0.65;
}

.brand {
  position: relative;
  z-index: 1;
  gap: 16px;
  padding: 4px 2px;
  transition: transform .25s ease, filter .25s ease;
}

.brand:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 22px rgba(0, 163, 255, 0.18));
}

.brand::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,163,255,0.18), rgba(138,43,255,0.12) 46%, transparent 74%);
  transform: translateY(-50%);
  filter: blur(10px);
  z-index: -1;
}

.brand-logo {
  width: 60px;
  height: 60px;
  padding: 7px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.28),
    0 0 30px rgba(0,163,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.brand-name {
  position: relative;
  display: inline-block;
  font-size: clamp(1.12rem, 1.2vw, 1.3rem);
  line-height: 1;
  max-width: none;
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.brand-name::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,163,255,0.95), rgba(138,43,255,0.9), rgba(255,61,216,0.95));
  box-shadow: 0 0 20px rgba(0,163,255,0.35);
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    gap: 12px;
  }

  .brand::before {
    width: 72px;
    height: 72px;
    left: 8px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    padding: 6px;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

  .brand-name::after {
    margin-top: 8px;
    height: 2px;
  }
}


/* Compact centered brand header */
.site-header {
  min-height: 58px;
  padding: 7px 14px;
  justify-content: center;
}

.brand {
  width: 100%;
  justify-content: center;
  gap: 10px;
  padding: 0;
}

.brand::before {
  left: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-72px, -50%);
}

.brand-logo {
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 13px;
}

.brand-name {
  font-size: 0.98rem;
  letter-spacing: 0.11em;
}

.brand-name::after {
  margin-top: 6px;
  height: 2px;
}

@media (max-width: 620px) {
  .site-header {
    min-height: 54px;
    padding: 6px 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand::before {
    width: 56px;
    height: 56px;
    transform: translate(-66px, -50%);
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    padding: 4px;
  }

  .brand-name {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }
}


/* Shorter centered header */
.site-header {
  width: min(560px, calc(100% - 36px));
  min-height: 58px;
  top: 10px;
  margin: 10px auto 0;
  padding: 8px 16px;
  border-radius: 18px;
}

.site-header::after {
  opacity: 0.45;
}

.brand {
  gap: 12px;
}

.brand::before {
  width: 64px;
  height: 64px;
  left: 6px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  padding: 5px;
  border-radius: 14px;
}

.brand-name {
  font-size: clamp(0.94rem, 1vw, 1.08rem);
  letter-spacing: 0.12em;
}

.brand-name::after {
  margin-top: 6px;
  height: 2px;
}

/* Hero right-side character showcase replacing animated abstract elements */
.hero {
  grid-template-columns: 0.95fr 1.05fr;
}

.hero-media {
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-stage {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 34px;
  overflow: hidden;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03)),
    linear-gradient(135deg, rgba(0,163,255,0.08), rgba(138,43,255,0.09), rgba(255,61,216,0.08));
  border: 1px solid rgba(156, 228, 255, 0.2);
  box-shadow: 0 34px 90px rgba(0,0,0,0.42), 0 0 52px rgba(0, 163, 255, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.character-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 18%, rgba(0,163,255,0.28), transparent 22%),
    radial-gradient(circle at 82% 20%, rgba(255,61,216,0.18), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(138,43,255,0.14), transparent 32%);
  pointer-events: none;
}

.character-stage-frame {
  position: absolute;
  inset: 14px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  pointer-events: none;
  z-index: 2;
}

.character-stage-poster,
.character-stage-video {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: cover;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(8,14,28,0.92), rgba(18,26,48,0.88));
}

.character-stage-poster {
  z-index: 0;
}

.character-stage-video {
  z-index: 1;
}

.character-stage-badge {
  position: absolute;
  left: 30px;
  bottom: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  background: rgba(7, 11, 20, 0.62);
  border: 1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.character-stage-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00A3FF, #FF3DD8);
  box-shadow: 0 0 18px rgba(0,163,255,0.6);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 500px;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(90%, 440px);
    min-height: 54px;
    padding: 8px 14px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }

  .hero-media {
    min-height: 420px;
  }

  .character-stage {
    width: min(100%, 380px);
    padding: 12px;
    border-radius: 28px;
  }

  .character-stage-poster,
  .character-stage-video,
  .character-stage-frame {
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 20px;
  }

  .character-stage-badge {
    left: 22px;
    bottom: 22px;
    font-size: 0.68rem;
    padding: 9px 12px;
  }
}


/* Custom background support for every game video card */
.video-card {
  position: relative;
  isolation: isolate;
  background: var(--surface);
}

.video-card-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--surface);
  border-radius: inherit;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(7,11,20,0.08), rgba(7,11,20,0.26));
  pointer-events: none;
}

.video-card video {
  position: relative;
  z-index: 1;
  background: transparent;
}


/* Background music control */
.bgm-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(130, 210, 255, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 13, 26, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06);
  cursor: pointer;
  font: 800 .78rem/1 var(--font-family);
  letter-spacing: .04em;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.bgm-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.36);
}

.bgm-toggle.is-playing {
  background: linear-gradient(135deg, rgba(0,163,255,.86), rgba(138,43,255,.86), rgba(255,61,216,.82));
  box-shadow: 0 14px 40px rgba(0,0,0,.34), 0 0 30px var(--glow);
}

.bgm-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  font-size: 1rem;
}

.bgm-toggle.has-error { opacity: .65; }

@media (max-width: 620px) {
  .bgm-toggle {
    right: 12px;
    bottom: 12px;
    min-height: 40px;
    padding: 8px 11px;
  }

  .bgm-label {
    display: none;
  }
}


/* Hero without CTA button */
.hero-copy .hero-description {
  margin-bottom: 0;
}

/* =========================================================
   FINAL RESPONSIVE HERO + CHARACTER PREVIEW OVERRIDES
   ========================================================= */
.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  width: min(560px, calc(100% - 36px));
  min-height: 58px;
  margin: 10px auto 0;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  padding: 5px;
  border-radius: 14px;
}

.brand-name {
  max-width: none;
  font-size: clamp(.94rem, 1vw, 1.08rem);
  line-height: 1;
  letter-spacing: .12em;
}

.brand-name::after {
  height: 2px;
  margin-top: 6px;
}

.hero {
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: 70px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(4rem, 7vw, 7.5rem);
}

.hero-description {
  width: min(520px, 100%);
}

.hero-art,
.hero-media {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-stage {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  padding: 16px;
  border-radius: 34px;
}

.character-stage-frame {
  position: absolute;
  inset: 14px;
  z-index: 3;
  border-radius: 26px;
  pointer-events: none;
}

.character-stage-poster,
.character-stage-video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  transform: translate(-50%, -50%);
  display: block;
  border: 0;
  border-radius: 26px;
  object-fit: contain;
  object-position: center center;
  background:
    radial-gradient(circle at 50% 35%, rgba(0,163,255,.08), transparent 45%),
    #070b14;
}

.character-stage-poster { z-index: 1; }
.character-stage-video { z-index: 2; }

.character-stage.cover-mode .character-stage-poster,
.character-stage.cover-mode .character-stage-video {
  object-fit: cover;
}

.character-stage.character-cutout .character-stage-poster,
.character-stage.character-cutout .character-stage-video {
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
}

.character-stage-badge {
  left: 30px;
  bottom: 28px;
  z-index: 4;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 58px;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy { text-align: center; }
  .hero h1,
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-art,
  .hero-media { min-height: 520px; }
  .character-stage { width: min(100%, 460px); }
}

@media (max-width: 620px) {
  .site-header {
    top: 8px;
    width: min(92%, 440px);
    min-height: 52px;
    margin-top: 8px;
    padding: 7px 12px;
    border-radius: 16px;
  }

  .brand { gap: 10px; }

  .brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    padding: 4px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: .88rem;
    letter-spacing: .09em;
  }

  .brand-name::after { margin-top: 5px; }

  .hero {
    width: min(100% - 24px, 1180px);
    padding: 48px 0 42px;
    gap: 38px;
  }

  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }

  .hero-description {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-art,
  .hero-media {
    width: 100%;
    min-height: auto;
  }

  .character-stage {
    width: min(100%, 380px);
    aspect-ratio: 4 / 5;
    padding: 10px;
    border-radius: 26px;
  }

  .character-stage-frame {
    inset: 10px;
    width: auto;
    height: auto;
    border-radius: 19px;
  }

  .character-stage-poster,
  .character-stage-video {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 19px;
    object-fit: contain;
    object-position: center center;
  }

  .character-stage.character-cutout .character-stage-poster,
  .character-stage.character-cutout .character-stage-video {
    width: 94%;
    height: 94%;
    object-position: center bottom;
  }

  .character-stage-badge {
    left: 20px;
    bottom: 20px;
    padding: 8px 11px;
    font-size: .64rem;
  }
}

@media (max-width: 390px) {
  .site-header { width: calc(100% - 20px); }
  .brand-logo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .brand-name {
    font-size: .8rem;
    letter-spacing: .07em;
  }
  .hero { width: calc(100% - 20px); }
  .character-stage {
    width: 100%;
    border-radius: 22px;
  }
  .character-stage-frame,
  .character-stage-poster,
  .character-stage-video { border-radius: 16px; }
  .character-stage-badge {
    left: 17px;
    bottom: 17px;
    font-size: .6rem;
  }
}


/* =========================================================
   FINAL HERO MEDIA LAYOUT
   Poster fills the preview card; video sits smaller bottom-left.
   ========================================================= */
.character-stage {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  border-radius: 34px;
  background: #070b14;
}

.character-stage::before {
  display: none;
}

.character-stage-poster {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  background: #070b14;
}

.character-stage-video {
  position: absolute;
  z-index: 2;
  right: auto;
  top: auto;
  width: 48%;
  height: 58%;
  left: 5%;
  bottom: 5%;
  transform: none;
  object-fit: contain;
  object-position: left bottom;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.character-stage-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: auto;
  height: auto;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.character-stage-badge {
  left: auto;
  right: 22px;
  bottom: 22px;
  z-index: 4;
}

@media (max-width: 620px) {
  .character-stage {
    width: min(100%, 380px);
    border-radius: 26px;
  }

  .character-stage-poster {
    width: 100%;
    height: 100%;
    border-radius: inherit;
  }

  .character-stage-video {
    width: 52%;
    height: 56%;
    left: 4%;
    bottom: 4%;
    border-radius: 14px;
  }

  .character-stage-frame {
    inset: 0;
    border-radius: inherit;
  }

  .character-stage-badge {
    left: auto;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 390px) {
  .character-stage-video {
    width: 54%;
    height: 54%;
    left: 3%;
    bottom: 3%;
    border-radius: 12px;
  }

  .character-stage-badge {
    right: 13px;
    bottom: 13px;
  }
}


/* =========================================================
   APPLE MOBILE / SAFARI COMPATIBILITY FIX
   ========================================================= */

/* Keep the full poster image filling the frame. */
.character-stage-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Compact character animation in the top-right corner. */
.character-stage-video {
  position: absolute;
  z-index: 2;
  width: clamp(96px, 34%, 165px);
  height: clamp(96px, 34%, 165px);
  top: clamp(14px, 4%, 24px);
  right: clamp(14px, 4%, 24px);
  left: auto;
  bottom: auto;
  transform: none;
  display: block;
  object-fit: contain;
  object-position: top right;
  border: 0;
  border-radius: 12px;
  background: transparent;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* iOS Safari does not consistently preserve alpha in VP8/VP9 WebM.
   Screen blending removes the decoded black matte while retaining the character. */
.is-apple-mobile .alpha-character-video {
  background: transparent !important;
  mix-blend-mode: screen;
  -webkit-mix-blend-mode: screen;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.is-apple-mobile .video-card,
.is-apple-mobile .character-stage {
  isolation: isolate;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.is-apple-mobile .video-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
}

/* Prevent the sticky header from covering the hero on iPhone/iPad. */
@media (max-width: 620px) {
  .site-header {
    position: relative;
    top: auto;
    width: calc(100% - 24px);
    max-width: 440px;
    min-height: 54px;
    margin: max(10px, env(safe-area-inset-top)) auto 0;
    padding: 7px 12px;
  }

  .hero {
    padding-top: 30px;
  }

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

  .character-stage-video {
    width: clamp(88px, 30%, 124px);
    height: clamp(88px, 30%, 124px);
    top: 14px;
    right: 14px;
    left: auto;
    bottom: auto;
    border-radius: 10px;
  }

  .character-stage-badge {
    right: 16px;
    bottom: 16px;
    left: auto;
  }

  .video-card {
    width: min(88vw, 360px);
    max-height: 640px;
  }
}

@media (max-width: 390px) {
  .site-header {
    width: calc(100% - 20px);
  }

  .hero {
    padding-top: 24px;
  }

  .character-stage-video {
    width: 88px;
    height: 88px;
    top: 12px;
    right: 12px;
  }

  .video-card {
    width: min(90vw, 340px);
  }
}

/* Additional safe-area spacing for installed/full-screen Apple web apps. */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}


/* =========================================================
   FINAL FIXES — STABLE APPLE HERO/CARDS + OPAQUE ALPHA VIDEO
   ========================================================= */

.character-stage-video {
  width: clamp(92px, 31%, 150px);
  height: clamp(92px, 31%, 150px);
  left: clamp(14px, 4%, 20px);
  bottom: clamp(14px, 4%, 20px);
  top: auto;
  right: auto;
  transform: none;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
}

.video-card-media {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
}

.video-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card::after {
  z-index: 0;
}

.alpha-video-canvas {
  display: none;
}

:is(.is-apple-mobile, .is-safari) .alpha-video-source {
  opacity: 0 !important;
  pointer-events: none;
}

:is(.is-apple-mobile, .is-safari) .alpha-video-canvas {
  display: block;
  background: transparent !important;
  pointer-events: none;
}

:is(.is-apple-mobile, .is-safari) .character-stage-video.alpha-video-canvas {
  position: absolute;
  z-index: 2;
  width: clamp(92px, 31%, 150px);
  height: clamp(92px, 31%, 150px);
  left: clamp(14px, 4%, 20px);
  bottom: clamp(14px, 4%, 20px);
  top: auto;
  right: auto;
  border-radius: 12px;
}

:is(.is-apple-mobile, .is-safari) .video-card-media.alpha-video-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--card-radius) - 10px);
}

.is-apple-mobile .video-card,
.is-apple-mobile .character-stage {
  isolation: isolate;
}

.is-apple-mobile .alpha-character-video,
.is-apple-mobile .video-card video {
  mix-blend-mode: normal !important;
  -webkit-mix-blend-mode: normal !important;
}

@media (max-width: 620px) {
  .character-stage-video {
    width: clamp(86px, 28%, 116px);
    height: clamp(86px, 28%, 116px);
    left: 12px;
    bottom: 12px;
    top: auto;
    right: auto;
    border-radius: 10px;
  }

  :is(.is-apple-mobile, .is-safari) .character-stage-video.alpha-video-canvas {
    width: clamp(86px, 28%, 116px);
    height: clamp(86px, 28%, 116px);
    left: 12px;
    bottom: 12px;
    top: auto;
    right: auto;
    border-radius: 10px;
  }

  .video-card {
    width: min(88vw, 360px);
    max-height: 640px;
  }
}

@media (max-width: 390px) {
  .character-stage-video {
    width: 82px;
    height: 82px;
    left: 10px;
    bottom: 10px;
  }

  :is(.is-apple-mobile, .is-safari) .character-stage-video.alpha-video-canvas {
    width: 82px;
    height: 82px;
    left: 10px;
    bottom: 10px;
  }

  .video-card {
    width: min(90vw, 340px);
  }
}


/* =========================================================
   FINAL MP4-ONLY OPAQUE VIDEO MODE
   Cards and character preview contain only standard MP4 video.
   No image background, poster, canvas, alpha, or blend processing.
   ========================================================= */
.video-card-background,
.character-stage-poster,
.alpha-video-canvas {
  display: none !important;
}

.video-card,
.character-stage {
  background: #000 !important;
  overflow: hidden !important;
}

.video-card video,
.video-card .video-card-media,
.character-stage-video,
.alpha-character-video,
.alpha-video-source,
.alpha-blend-fallback {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #000 !important;
  mix-blend-mode: normal !important;
  -webkit-mix-blend-mode: normal !important;
  filter: none !important;
}

.video-card video,
.video-card .video-card-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.character-stage-video {
  object-fit: contain !important;
  object-position: center center !important;
}


/* =========================================================
   CARD FILL TUNING
   Fill the cards better and slightly reduce card height so
   opaque MP4 videos look larger with less empty black area.
   ========================================================= */
.video-card {
  max-width: 360px !important;
  aspect-ratio: 4 / 5 !important;
}

.video-card video,
.video-card .video-card-media {
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 620px) {
  .video-card {
    width: min(100%, 340px) !important;
    max-width: 340px !important;
    aspect-ratio: 4 / 5 !important;
  }
}


/* =========================================================
   HERO PREVIEW FULL-FILL TUNING
   Make the character preview video fill the whole preview card.
   ========================================================= */
.character-stage-video,
.alpha-character-video.character-stage-video,
.character-stage .alpha-character-video {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: inherit !important;
}

/* =========================================================
   SEAMLESS VIDEO TRANSITIONS
   Two video layers crossfade so the card never flashes black
   while the next MP4 is loading.
   ========================================================= */
.video-transition-layer {
  opacity: 0 !important;
  transition: opacity 220ms ease !important;
  pointer-events: none !important;
}

.video-transition-layer.is-active {
  opacity: 1 !important;
}

.video-card .video-transition-layer,
.character-stage .video-transition-layer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
