:root {
  --bg: #160C1C;
  --bg-alt: #1D1024;
  --card: #241531;
  --card-soft: #2A1838;
  --border: rgba(255, 255, 255, 0.09);
  --text: #F7EFE0;
  --text-soft: #C9BBD1;
  --purple: #9B2FB0;
  --purple-dark: #7A2389;
  --orange: #FF6B4A;
  --orange-dark: #E4573A;
  --accent: var(--orange);
  --plum: #2B0B33;
  --yellow: #FFC93C;
  --pink: #FF5FA2;
  --teal: #3DD6C6;
  --lilac: #C48CE0;
  --cream: #FFF3E3;
  --pop: cubic-bezier(0.3, 1.6, 0.5, 1);
  --smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 94px; /* fixed header height, unscrolled - updated per breakpoint */
  --header-scrolled: 73px; /* its height once the page is scrolled (it shrinks) */
  /* Fonts. Baloo 2 / Plus Jakarta Sans have no Chinese or Japanese glyphs, so
     those pages slot a matching Noto font in via --cjk (loaded per page by build.js). */
  --cjk: 'Plus Jakarta Sans';
  --font-head: 'Baloo 2', var(--cjk), sans-serif;
  --font-body: 'Plus Jakarta Sans', var(--cjk), sans-serif;
}
html[lang^="zh"] { --cjk: 'Noto Sans TC'; }
html[lang="ja"] { --cjk: 'Noto Sans JP'; }
/* CJK line breaking: strict rules (no line may start with ー, small kana or closing
   punctuation), and for Japanese break between phrases rather than mid-word. */
html[lang^="zh"], html[lang="ja"] { line-break: strict; }
html[lang="ja"] { word-break: auto-phrase; }

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  margin: 0;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

/* ---------- scroll reveal ----------
   Only `from` keyframes + `backwards` fill, so once the entrance finishes the
   element's own transform (e.g. card hover lifts) is back in control. */
.js .reveal { opacity: 0; }
.js .reveal.is-visible {
  opacity: 1;
  animation: reveal-up 0.85s var(--smooth) var(--d, 0s) backwards;
}
@keyframes reveal-up { from { opacity: 0; transform: translateY(40px); } }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 48px;
  background: rgba(22, 12, 28, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(24, 13, 31, 0.94);
  padding: 16px 48px;
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.6);
}
.logo-long { height: 42px; width: auto; transition: height 0.3s ease; }
.site-header.is-scrolled .logo-long { height: 36px; }
.logo-icon { height: 44px; width: 44px; display: none; }
.header-right { display: flex; align-items: center; gap: 20px; }

/* Language menu: round flag + code button, dropdown list of all languages. */
.lang { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 11px 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lang-btn:hover, .lang.is-open .lang-btn { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.2); }
.flag {
  display: block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.flag svg { display: block; width: 100%; height: 100%; }
.lang-chev { opacity: 0.8; transition: transform 0.25s ease; }
.lang.is-open .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 210px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(28, 14, 36, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.25s var(--pop), visibility 0s; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s ease;
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(255, 255, 255, 0.08); outline: none; }
.lang-menu a[aria-current] { background: rgba(255, 107, 74, 0.16); color: #FFB39F; }
.lang-menu .flag { width: 24px; height: 24px; }

/* Social icon buttons (header + footer). Each lights up in its brand colour. */
.socials { display: flex; gap: 8px; }
.social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s var(--pop), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.social svg { width: 18px; height: 18px; }
.social:hover { transform: translateY(-3px) scale(1.08); color: #fff; border-color: transparent; }
.s-facebook:hover  { background: #1877F2; }
.s-instagram:hover { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.s-tiktok:hover    { background: #000; box-shadow: -2px -2px 0 #25F4EE, 2px 2px 0 #FE2C55; }
.s-youtube:hover   { background: #FF0000; }

/* ---------- burger + slide-in mobile menu (tablet / mobile only) ---------- */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
}
.burger:hover span { background: var(--orange); }
.burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--smooth), opacity 0.2s ease, background 0.2s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20.75px; }
.burger span:nth-child(3) { top: 26.5px; }
/* Morphs into an X while the menu is open. */
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.75px) rotate(-45deg); }

/* Panel sits under the header (z 49 vs 50) so the logo and the X stay on top.
   visibility is delayed on close so the links can't be tabbed to while hidden. */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 49;
  width: min(380px, 88vw);
  padding: 110px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: linear-gradient(170deg, #2E0F3D 0%, #1A0B22 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.2, 1), visibility 0s linear 0.35s;
}
.mobile-menu.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.2, 1), visibility 0s;
}
.mobile-links { display: flex; flex-direction: column; }
.mobile-links a {
  padding: 14px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease;
}
.mobile-links a:hover { color: var(--orange); }
.mobile-menu .btn-steam { justify-content: center; padding: 17px 26px; font-size: 16px; }
/* Links and button glide in right-to-left, quickly staggered, as the panel opens. */
.mobile-links a, .mobile-menu .btn-steam {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.3s ease, transform 0.35s var(--smooth), color 0.2s ease;
}
.mobile-menu.is-open .mobile-links a, .mobile-menu.is-open .btn-steam {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 35ms + 90ms);
}
.mobile-menu.is-open .btn-steam:hover { transform: translateY(-3px) scale(1.03); transition-delay: 0s; }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(10, 4, 14, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.menu-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
body.menu-open { overflow: hidden; }
.nav-links { display: flex; gap: 34px; font-size: 15px; font-weight: 600; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--smooth);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  transition: transform 0.2s var(--pop), box-shadow 0.2s ease, background 0.4s ease;
}
.btn-steam:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 26px -10px rgba(155, 47, 176, 0.7); }

/* ---------- hero ---------- */
.hero {
  --blob-a: #9B2FB0; --blob-b: #FF6B4A; --blob-c: #6A2396; --blob-d: #FF5FA2;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 160px 0 120px 0;
  /* clip, not hidden: a hidden box can still be scrolled sideways when a button
     inside it takes focus (the oversized rings make it scrollable). */
  overflow: hidden;
  overflow: clip;
  background: #1E0B28;
  isolation: isolate;
}
.hero[data-slide="fun"] { --blob-a: #FFC93C; --blob-b: #FF3D7F; --blob-c: #FFB36B; --blob-d: #9B2FB0; }

/* Background is taller than the hero so the scroll parallax (JS `translate`)
   never shows an edge. */
.hero-bg { position: absolute; inset: -15% 0; z-index: 0; pointer-events: none; will-change: translate; }
.hero-bg-layer { position: absolute; inset: 0; transition: opacity 1.1s ease; }
.bg-stream { background: radial-gradient(ellipse at 72% 45%, #4D1B63 0%, #2E0F3D 45%, #170A20 100%); }
.bg-fun { background: radial-gradient(ellipse at 72% 45%, #FFA15E 0%, #FF6B4A 48%, #E4432A 100%); opacity: 0; }
.hero[data-slide="fun"] .bg-fun { opacity: 1; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  transition: background-color 1.2s ease;
  animation: blob-float var(--dur) ease-in-out infinite alternate;
}
.blob-1 { width: 46vw; height: 46vw; top: 0;   left: -12%;  background-color: var(--blob-a); --dur: 18s; }
.blob-2 { width: 38vw; height: 38vw; top: 34%; right: -10%; background-color: var(--blob-b); --dur: 22s; animation-delay: -6s; }
.blob-3 { width: 30vw; height: 30vw; bottom: 0; left: 30%;  background-color: var(--blob-c); --dur: 16s; animation-delay: -3s; }
.blob-4 { width: 18vw; height: 18vw; top: 20%; left: 45%;  background-color: var(--blob-d); --dur: 13s; animation-delay: -9s; opacity: 0.4; }
@keyframes blob-float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6vw, 4vh) scale(1.15); }
  100% { transform: translate(-4vw, 8vh) scale(0.9); }
}

/* Slowly panning dot grid. */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.4px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 75%);
  animation: pattern-pan 40s linear infinite;
}
.hero[data-slide="fun"] .hero-pattern { background-image: radial-gradient(rgba(43, 11, 51, 0.16) 1.4px, transparent 1.6px); }
@keyframes pattern-pan { to { background-position: 300px 150px; } }

/* Orbit rings around the characters, each with a glowing dot riding on it. */
.ring {
  position: absolute;
  top: 50%;
  left: 72%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color 1s ease;
  animation: spin var(--dur) linear infinite;
}
.ring::after {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 18px var(--dot);
}
.ring-1 { width: 760px; height: 760px; margin: -380px 0 0 -380px; --dur: 38s; --dot: var(--orange); }
.ring-2 { width: 1100px; height: 1100px; margin: -550px 0 0 -550px; --dur: 60s; --dot: var(--yellow); border-style: dashed; animation-direction: reverse; }
.hero[data-slide="fun"] .ring { border-color: rgba(43, 11, 51, 0.16); }
.hero[data-slide="fun"] .ring-1 { --dot: #fff; }
.hero[data-slide="fun"] .ring-2 { --dot: var(--plum); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* ---------- hero slides ----------
   Both slides share one grid cell. Entering lines rise out of a mask with a
   little tilt, leaving lines fly up and out. Keyframe animations (not
   transitions) so the first slide also animates on page load. */
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; visibility: hidden; }
.hero-slide.is-active, .hero-slide.is-leaving { visibility: visible; }
.hero-slide.is-leaving { pointer-events: none; }

.hero-slide.is-active .anim-line { animation: line-in 0.95s var(--smooth) calc(var(--i) * 110ms + 250ms) both; }
.hero-slide.is-leaving .anim-line { animation: line-out 0.5s cubic-bezier(0.6, 0, 0.8, 0.4) calc(var(--i) * 50ms) both; }
.hero-slide.is-active .anim-fade { animation: fade-up 0.8s var(--smooth) calc(var(--i) * 110ms + 250ms) both; }
.hero-slide.is-leaving .anim-fade { animation: fade-out 0.45s ease-in both; }

@keyframes line-in  { from { transform: translateY(115%) rotate(6deg); } to { transform: none; } }
@keyframes line-out { from { transform: none; } to { transform: translateY(-115%) rotate(-4deg); } }
@keyframes fade-up  { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-18px); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.hero-slide[data-slide="stream"] .eyebrow { color: #FFB39F; background: rgba(255, 107, 74, 0.16); }
.hero-slide[data-slide="fun"] .eyebrow { color: var(--plum); background: rgba(43, 11, 51, 0.12); }

.hero h1 {
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.01em;
}
/* The padding/negative-margin pair gives the mask room so Baloo's tall glyphs
   aren't clipped while keeping the tight line spacing. nowrap keeps each
   phrase ("Live on stream.") on a single line - the font size is sized so
   the longest one still fits the column. clip-path (not overflow) masks the
   rise-in vertically only, so glyph edges are never trimmed sideways. */
.hero h1 .line { display: block; clip-path: inset(0 -100vw); white-space: nowrap; padding: 0.12em 0 0.08em; margin: -0.12em 0 -0.08em; }
.hero h1 .line > span { display: inline-block; transform-origin: left bottom; }
.hero h1 mark { position: relative; background: none; color: inherit; }
.hero h1 mark::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.14em;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.3;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-slide.is-active h1 mark::after { animation: underline-in 0.6s var(--smooth) 0.9s both; }
@keyframes underline-in { to { transform: scaleX(1); } }

.hero-slide[data-slide="stream"] h1 { color: var(--text); }
.hero-slide[data-slide="stream"] h1 mark { color: var(--orange); }
.hero-slide[data-slide="fun"] h1 { color: var(--plum); }
.hero-slide[data-slide="fun"] h1 mark { color: #fff; }

.hero-sub { margin: 24px 0 0 0; max-width: 540px; text-wrap: pretty; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; }
.hero-slide[data-slide="stream"] .hero-sub { color: var(--text-soft); }
.hero-slide[data-slide="fun"] .hero-sub { color: rgba(43, 11, 51, 0.85); font-weight: 500; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; animation: fade-up 0.8s var(--smooth) 0.9s both; }
.hero-cta .btn-steam { padding: 17px 30px; font-size: 16px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--text); padding: 15px 26px;
  border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s ease, color 0.4s ease, transform 0.2s var(--pop);
}
.btn-ghost:hover { border-color: var(--orange); transform: translateY(-3px); }
.hero[data-slide="fun"] .hero-cta .btn-steam { background: var(--plum); }
.hero[data-slide="fun"] .btn-ghost { color: var(--plum); border-color: rgba(43, 11, 51, 0.35); }
.hero[data-slide="fun"] .btn-ghost:hover { border-color: var(--plum); }

.hero-pager { display: flex; gap: 32px; margin-top: 48px; animation: fade-up 0.8s var(--smooth) 1.1s both; }
.pager-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 10px;
  align-items: baseline;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  color: var(--text);
  opacity: 0.55;
  transition: opacity 0.3s ease, color 0.6s ease;
}
.pager-item:hover, .pager-item.is-active { opacity: 1; }
.pager-num { font-family: var(--font-head); font-weight: 800; font-size: 16px; }
.pager-label { font-weight: 700; font-size: 14px; }
.pager-bar { grid-column: 1 / -1; width: 160px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.pager-bar span { display: block; height: 100%; border-radius: inherit; background: currentColor; transform: scaleX(0); transform-origin: left; }
.pager-item.is-active .pager-bar span { animation: pager-fill 7s linear forwards; }
@keyframes pager-fill { to { transform: scaleX(1); } }
.hero[data-slide="fun"] .pager-item { color: var(--plum); }
.hero[data-slide="fun"] .pager-bar { background: rgba(43, 11, 51, 0.18); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid currentColor;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.6s ease;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: currentColor;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
.hero[data-slide="fun"] .scroll-cue { color: rgba(43, 11, 51, 0.55); }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- hero characters ---------- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: stage-in 1.1s var(--smooth) 0.3s both;
}
@keyframes stage-in { from { opacity: 0; transform: translateY(50px) scale(0.9); } }

/* Character stage. Mouse parallax is written by JS to the individual `translate`
   property; the CSS loops below animate `transform`. The two compose instead of
   overwriting each other. Everything is sized in % so the stage scales down. */
.hero-stage {
  position: relative;
  width: min(580px, 100%);
  aspect-ratio: 1 / 1.02;
}
.hero-stage.hop { animation: stage-hop 0.75s var(--pop); }
@keyframes stage-hop {
  0%   { transform: none; }
  35%  { transform: translateY(-26px) scale(1.04); }
  65%  { transform: translateY(5px) scale(1.01, 0.98); }
  100% { transform: none; }
}
.hero-stage [data-depth] { will-change: translate; }

.hero-char { position: absolute; }
.char-drift {
  position: relative;
  animation: char-drift var(--drift-dur) ease-in-out var(--drift-delay, 0s) infinite;
}
.char-bob {
  position: relative;
  animation: char-bob var(--bob-dur) ease-in-out var(--bob-delay, 0s) infinite;
}
.char-bob img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,0.42)) drop-shadow(0 4px 6px rgba(0,0,0,0.22));
}
/* Soft ground shadow - same duration/delay as the bob, so it shrinks and fades
   exactly while the character floats up. */
.char-shadow {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -5%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, transparent 72%);
  filter: blur(5px);
  animation: char-shadow var(--bob-dur) ease-in-out var(--bob-delay, 0s) infinite;
}

/* Different speeds, swing ranges and z-index per character, so they slide past
   each other: banana passes behind the bear, pickle passes in front of it. */
.char-banana {
  width: 36%; left: 2%; bottom: 13%; z-index: 2;
  --drift-dur: 9s;  --drift-a: -8%;  --drift-b: 34%;
  --bob-dur: 3.6s;  --bob-h: -16px;  --rot-a: -7deg; --rot-b: -2deg;
}
.char-bear {
  width: 56%; left: 22%; bottom: 3%; z-index: 4;
  --drift-dur: 12s; --drift-a: -5%;  --drift-b: 5%;
  --bob-dur: 4.6s;  --bob-h: -12px;  --rot-a: -2deg; --rot-b: 2deg;
  --drift-delay: -3s; --bob-delay: -1.2s;
}
.char-pickle {
  width: 32%; right: 2%; bottom: 9%; z-index: 6;
  --drift-dur: 7s;  --drift-a: 8%;   --drift-b: -40%;
  --bob-dur: 3s;    --bob-h: -20px;  --rot-a: 9deg;  --rot-b: 4deg;
  --drift-delay: -2s; --bob-delay: -0.7s;
}

@keyframes char-drift {
  0%, 100% { transform: translateX(var(--drift-a)); }
  50%      { transform: translateX(var(--drift-b)); }
}
@keyframes char-bob {
  0%, 100% { transform: translateY(0) rotate(var(--rot-a)); }
  50%      { transform: translateY(var(--bob-h)) rotate(var(--rot-b)); }
}
@keyframes char-shadow {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(0.72); opacity: 0.55; }
}

/* Colour bubbles - glossy circles wandering on their own loops, layered at
   different z-index so some sit behind the characters and some in front. */
.bubble {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.55), transparent 42%), var(--c);
  box-shadow: 0 12px 26px -8px rgba(0,0,0,0.45);
  animation: var(--path) var(--dur) ease-in-out var(--delay, 0s) infinite;
}
.b1 { --c: var(--purple);  width: 24%; top: 4%;  left: 10%; z-index: 1; --path: orbit-a; --dur: 14s; opacity: 0.7; filter: blur(2px); }
.b2 { --c: var(--orange);  width: 13%; top: 10%; right: 8%; z-index: 1; --path: orbit-b; --dur: 11s; --delay: -4s; opacity: 0.85; }
.b3 { --c: var(--yellow);  width: 7%;  top: 46%; left: 3%;  z-index: 3; --path: orbit-c; --dur: 9s;  --delay: -2s; }
.b4 { --c: var(--pink);    width: 30%; bottom: 4%; right: 10%; z-index: 1; --path: orbit-b; --dur: 17s; --delay: -8s; opacity: 0.55; filter: blur(3px); }
.b5 { --c: var(--teal);    width: 5.5%; top: 30%; right: 24%; z-index: 5; --path: orbit-a; --dur: 8s; --delay: -5s; }
.b6 { --c: var(--lilac);   width: 9%;  bottom: 16%; left: 30%; z-index: 3; --path: orbit-c; --dur: 12s; --delay: -6s; opacity: 0.9; }
.b7 { --c: var(--orange);  width: 4%;  top: 18%; left: 44%; z-index: 7; --path: orbit-a; --dur: 7s;  --delay: -1s; }
/* Orange bubbles would vanish on the orange slide - recolour them there. */
.hero[data-slide="fun"] .b2 { --c: var(--purple); }
.hero[data-slide="fun"] .b7 { --c: var(--plum); }

@keyframes orbit-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(32px, -22px) scale(1.06); }
  50%      { transform: translate(10px, -48px) scale(0.94); }
  75%      { transform: translate(-26px, -16px) scale(1.03); }
}
@keyframes orbit-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-38px, 26px) scale(0.93); }
  66%      { transform: translate(22px, 42px) scale(1.07); }
}
@keyframes orbit-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(26px, 30px) scale(1.08); }
  50%      { transform: translate(-16px, 52px) scale(0.95); }
  75%      { transform: translate(-32px, 12px) scale(1.02); }
}

/* ---------- sections ---------- */
section { position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-pad { padding: 90px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px auto; display: flex; flex-direction: column; gap: 14px; }
.eyebrow-static { font-size: 13px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.section-head h2 { font-weight: 800; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.1; }

/* Full-screen sections: every section fills at least one screen on any device
   (svh = the visible height on phones, ignoring the browser bar) with its
   content centred. Top padding clears the fixed header, so menu jumps land on
   the very top of the section. `section.screen` outranks the per-section
   paddings defined elsewhere. */
section.screen {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 72px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.play-card { border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 18px; border: 2px solid; }
.play-card.fun { background: rgba(255,107,74,0.09); border-color: rgba(255,107,74,0.35); }
.play-card h3 { font-size: 22px; }
.play-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.play-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; }
.play-icon.fun { background: var(--orange); }
.play-icon.stream { background: var(--purple); }

/* ---------- two ways to play: full-width split ---------- */
.split { background: var(--bg-alt); border-top: 1px solid var(--border); }
.split .section-head { margin-bottom: 48px; }
/* Panels run to the bottom edge, and stretch to fill whatever height the
   heading leaves on the screen. */
.split.screen { padding-bottom: 0; justify-content: flex-start; }
.split-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
.split-panel {
  position: relative;
  padding: 80px clamp(28px, 5vw, 84px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  overflow: clip;
}
/* Photo layer, kept faint on purpose (low opacity + desaturated) so it reads
   as texture behind the panel colour; slow zoom on hover. A soft colour
   vignette on top keeps the text side clean. */
.split-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  filter: grayscale(0.5) contrast(1.1);
  transition: transform 1.4s var(--smooth);
}
.split-panel.fun .split-bg { opacity: 0.6; mix-blend-mode: multiply; }
.split-panel:hover .split-bg { transform: scale(1.06); }
.split-panel::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.split-panel.stream { background-color: #2A0F38; color: var(--text); }
.split-panel.stream::before { background: linear-gradient(160deg, rgba(42, 15, 56, 0.55) 0%, rgba(42, 15, 56, 0) 60%); }
/* Light-orange text: the photo (multiplied in) plus a warm shade on the text side
   darken the orange enough for it to stand out. */
.split-panel.fun { background-color: var(--orange); color: #FFE0CC; }
.split-panel.fun::before { background: linear-gradient(100deg, rgba(110, 28, 10, 0.5) 0%, rgba(110, 28, 10, 0.3) 55%, rgba(110, 28, 10, 0.05) 100%); }

.split-inner { position: relative; z-index: 2; max-width: 540px; display: flex; flex-direction: column; gap: 20px; }
.split-inner .play-icon { width: 64px; height: 64px; border-radius: 20px; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5); }
.split-panel.fun .play-icon.fun { background: var(--plum); }
.split-inner h3 { font-size: clamp(36px, 3.4vw, 50px); font-weight: 800; line-height: 1.05; }
.split-inner > p { margin: 0; font-size: 17.5px; line-height: 1.6; }
.split-panel.stream .split-inner > p { color: var(--text-soft); }
.split-panel.fun .split-inner > p { color: #FFD3B8; font-weight: 500; }

.info-list { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.info-list li { display: flex; gap: 16px; align-items: center; font-size: 17px; font-weight: 600; line-height: 1.4; }
.info-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--ic);
  color: var(--ic-fg);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s var(--pop);
}
.info-icon svg { width: 28px; height: 28px; }
.info-list li:hover .info-icon { transform: rotate(-10deg) scale(1.12); }

/* ---------- characters: full-screen photo ---------- */
.cast {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  overflow: clip;
  background-color: #140320; /* = the image's own dark edge, so gaps blend in */
}
/* The banner is very wide (~2.27:1) with empty space on its left. Instead of
   `cover` (which would crop the sides and push the characters under the text)
   it's shown whole, anchored right. It starts one header-height down, so when
   the section is at the top of the screen the fixed header never covers it.
   Its left/top/bottom edges are masked out so it melts into the background. */
.cast-bg {
  position: absolute;
  top: var(--header-scrolled);
  right: 0;
  width: 92%;
  aspect-ratio: 1888 / 833;
  transform-origin: 50% 0; /* breathing zoom grows down/sideways, never up under the header */
  background: url('../images/characters-desk.jpg') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%), linear-gradient(to bottom, transparent 0, #000 7%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 14%), linear-gradient(to bottom, transparent 0, #000 7%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
/* The strip above the banner: its own top rows, heavily blurred, so the scene
   glows up to the previous section's edge instead of leaving a flat dark gap. */
.cast-glow {
  position: absolute;
  top: -40px; /* blur fades at the box edge - start above the section so it's clipped off */
  right: 0;
  width: 92%;
  height: calc(var(--header-scrolled) + 140px);
  /* 1600% tall = only the image's top ~6% (dark room + lights, no characters)
     is stretched over the strip. */
  background: url('../images/characters-desk.jpg') right top / 100% 1600% no-repeat;
  filter: blur(22px) saturate(1.2);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%), linear-gradient(to bottom, #000 0, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 20%), linear-gradient(to bottom, #000 0, #000 60%, transparent 100%);
  mask-composite: intersect;
}
/* Slow "breathing" zoom on the banner (the individual `scale` property, so it
   never fights the effects' own transforms). */
.cast-bg { animation: cast-breathe 18s ease-in-out infinite alternate; }
@keyframes cast-breathe { from { scale: 1; } to { scale: 1.035; } }

/* ---------- characters: effects layer (orbs, streaks, embers) ---------- */
.cast-fx { position: absolute; inset: 0; pointer-events: none; }
.cast-fx [data-depth] { will-change: translate; }

/* Streaks: a short glowing dash travels along each curve, from the monitor
   outwards. dasharray "140 2000" = one 140-long dash and a gap longer than the
   path, so only one dash is ever visible; dashoffset 140 -> -1000 moves it from
   just before the start to just past the end. */
.cast-lines { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; overflow: visible; }
.cast-lines .line-base path { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 2; }
.cast-lines .streak {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 140 2000;
  stroke-dashoffset: 140;
  filter: drop-shadow(0 0 6px rgba(255, 140, 220, 0.9));
  animation: streak-run var(--dur) cubic-bezier(0.45, 0, 0.25, 1) var(--delay, 0s) infinite;
}
@keyframes streak-run {
  0%   { stroke-dashoffset: 140; opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { stroke-dashoffset: -1000; opacity: 0; }
}

/* Glowing orbs: bright core fading into their colour, wandering on the same
   orbit loops as the hero bubbles, gently twinkling. */
.orb-fx {
  position: absolute;
  width: max(var(--size), 7px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--c) 38%, transparent 72%);
  box-shadow: 0 0 14px 2px var(--c);
  mix-blend-mode: screen;
  animation: var(--path) var(--dur) ease-in-out var(--delay, 0s) infinite, twinkle 2.6s ease-in-out var(--delay, 0s) infinite;
}
.orb-fx.bokeh {
  width: var(--size);
  background: radial-gradient(circle, var(--c) 0%, transparent 70%);
  box-shadow: none;
  filter: blur(6px);
  opacity: 0.45;
  animation: var(--path) var(--dur) ease-in-out var(--delay, 0s) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Embers: tiny sparks floating up from the desk and fading out. */
.ember {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px 2px var(--c);
  mix-blend-mode: screen;
  opacity: 0;
  animation: ember-rise var(--dur) ease-out var(--delay, 0s) infinite;
}
@keyframes ember-rise {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(24px, -180px) scale(0.3); opacity: 0; }
}

.cast::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20, 3, 32, 0.8) 0%, rgba(20, 3, 32, 0.4) 30%, rgba(20, 3, 32, 0) 48%);
}
/* Text hugs the left edge, lined up with the header logo (48px) rather than the
   centred page column - so the section uses the full width and the text stays in
   the banner's empty space instead of drifting onto the characters. */
.cast .cast-inner { position: relative; z-index: 2; width: 100%; max-width: none; margin: 0; padding-left: 48px; padding-right: 24px; }
/* Text column stretches right until ~30px short of the characters: they start
   ~47% across the screen (banner 92% wide, anchored right, banana ~42% into it),
   minus the 48px left padding and the gap. Capped at 820px on very wide screens. */
.cast-copy { max-width: min(820px, 47vw - 80px); text-align: left; }
.cast h2 { margin-top: 14px; font-size: clamp(36px, 3.8vw, 64px); font-weight: 800; line-height: 1.04; }

/* '8 base characters / Scenes / Accessories' pills */
.cast-perks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cast-perks li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--pop), border-color 0.2s ease;
}
.cast-perks li:hover { transform: translateY(-3px); border-color: var(--pk); }
.perk-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--pk); color: var(--pk-fg, #fff); }
.perk-icon svg { width: 17px; height: 17px; }
.cast .glb-callout { max-width: none; } /* fills the (wide) text column */
.cast h2 .hl { color: var(--orange); }

.glb-callout {
  margin-top: 28px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  border-radius: 26px;
  background: rgba(255, 107, 74, 0.12);
  border: 2px solid rgba(255, 107, 74, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.glb-badge {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  animation: glb-glow 2.4s ease-in-out infinite;
}
.glb-badge span { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: 0.06em; line-height: 1; }
@keyframes glb-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.5); transform: rotate(0); }
  50%      { box-shadow: 0 0 0 12px rgba(255, 107, 74, 0); transform: rotate(-4deg); }
}
.glb-lead { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 2.3vw, 33px); line-height: 1.18; }
.glb-lead strong { color: var(--orange); }
.glb-small { margin: 8px 0 0 0; color: var(--text-soft); font-size: 16px; }

/* ---------- under the hood ---------- */
/* Background = the hero's orange "Just for fun" slide: warm radial gradient,
   drifting colour blobs (reusing .blob with the fun palette), orbit rings and
   the panning dot grid. Layers: .hood-bg (0) < dot grid ::before (1) < content (2). */
.hood {
  --blob-a: #FFC93C; --blob-b: #FF3D7F; --blob-c: #FFB36B; --blob-d: #9B2FB0;
  background: radial-gradient(ellipse at 50% 45%, #FFA15E 0%, #FF6B4A 48%, #E4432A 100%);
  color: var(--plum);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.hood-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hood .ring { left: 50%; border-color: rgba(43, 11, 51, 0.16); }
.hood .ring-1 { --dot: #fff; }
.hood .ring-2 { --dot: var(--plum); }
.hood::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(43, 11, 51, 0.12) 1.4px, transparent 1.6px);
  background-size: 30px 30px;
  animation: pattern-pan 40s linear infinite;
  pointer-events: none;
}
.hood .wrap { position: relative; z-index: 2; }
.hood .eyebrow-static { color: rgba(43, 11, 51, 0.7); }
.hood .section-head h2 { font-size: clamp(36px, 3.8vw, 54px); }

/* Narrower grid than the page column so there's room at the sides for the
   bear and tiger to peek out from behind it. */
.hood-stage { position: relative; max-width: 1000px; margin: 0 auto; }
.hood-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hood-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 24px;
  background: var(--card-bg);
  color: var(--card-fg);
  box-shadow: 0 6px 0 rgba(43, 11, 51, 0.25);
  transition: transform 0.4s var(--pop), box-shadow 0.35s ease;
}
.hood-card:hover { transform: translateY(-10px) rotate(-1.5deg); box-shadow: 0 24px 40px -16px rgba(43, 11, 51, 0.6); }
.hood-card:nth-child(even):hover { transform: translateY(-10px) rotate(1.5deg); }
.hood-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--ic-bg);
  color: var(--ic-fg);
  transition: transform 0.45s var(--pop);
}
.hood-icon svg { width: 26px; height: 26px; }
.hood-card:hover .hood-icon { transform: scale(1.14) rotate(-10deg); }
.hood-card h3 { font-size: 20px; line-height: 1.2; margin-top: 4px; }
.hood-card p { margin: 0; font-size: 15px; line-height: 1.5; opacity: 0.85; }

/* Peeking characters: tucked under the grid (z 1 vs 2) so only the part
   sticking out past the cards shows. Outer .peek = mouse parallax (JS writes
   `translate`), inner = a slow lean in/out, img = soft shadow. */
.peek { position: absolute; z-index: 1; pointer-events: none; will-change: translate; }
.peek img { width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(43, 11, 51, 0.45)) drop-shadow(0 4px 6px rgba(43, 11, 51, 0.25)); }
.peek-bear  { width: 230px; left: -112px; top: 8%; }
.peek-tiger { width: 230px; right: -112px; bottom: 4%; }
.peek-bear .peek-inner  { transform-origin: 100% 100%; animation: peek-left 4.4s ease-in-out infinite; }
.peek-tiger .peek-inner { transform-origin: 0 100%;    animation: peek-right 5s ease-in-out -1.5s infinite; }
@keyframes peek-left {
  0%, 100% { transform: rotate(-12deg) translateX(0); }
  50%      { transform: rotate(-18deg) translateX(-14px); }
}
@keyframes peek-right {
  0%, 100% { transform: rotate(12deg) translateX(0); }
  50%      { transform: rotate(18deg) translateX(14px); }
}

.c-plum   { --card-bg: var(--plum);   --card-fg: var(--text); --ic-bg: var(--orange); --ic-fg: #fff; }
.c-cream  { --card-bg: var(--cream);  --card-fg: var(--plum); --ic-bg: var(--purple); --ic-fg: #fff; }
.c-yellow { --card-bg: var(--yellow); --card-fg: var(--plum); --ic-bg: var(--plum);   --ic-fg: var(--yellow); }
.c-purple { --card-bg: var(--purple); --card-fg: #fff;        --ic-bg: var(--yellow); --ic-fg: var(--plum); }
.c-teal   { --card-bg: var(--teal);   --card-fg: var(--plum); --ic-bg: var(--plum);   --ic-fg: var(--teal); }
.c-pink   { --card-bg: var(--pink);   --card-fg: var(--plum); --ic-bg: #fff;          --ic-fg: var(--pink); }

/* ---------- system requirements ---------- */
/* Background = the hero's purple "For streaming" slide: dark plum radial
   gradient, drifting glow blobs (stream palette) and the panning dot grid -
   no orbit rings. Layers: .reqs-bg (0) < dot grid ::before (1) < content (2). */
.reqs {
  --blob-a: #9B2FB0; --blob-b: #FF6B4A; --blob-c: #6A2396; --blob-d: #FF5FA2;
  background: radial-gradient(ellipse at 50% 45%, #4D1B63 0%, #2E0F3D 45%, #170A20 100%);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.reqs-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.reqs::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.4px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 80%);
  animation: pattern-pan 40s linear infinite;
  pointer-events: none;
}
.reqs .wrap { position: relative; z-index: 2; }
/* Wide enough for the intro to sit on two (balanced) lines on desktop. */
.reqs .section-head { max-width: 1000px; }
.reqs-intro { margin: 0; color: var(--text-soft); font-size: 16px; line-height: 1.6; text-wrap: balance; }

/* Spec rows: label | value columns (no dashes), labels line up across rows. */
.play-card .spec-list { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 12px; }
.play-card .spec-list li { display: contents; }
.spec-k { font-weight: 700; }
.spec-v { color: var(--text-soft); }
/* Narrower than the page column so the banana has room to peek out on the right. */
.reqs-grid { max-width: 1000px; margin: 0 auto; }
.rec-slot { position: relative; display: flex; }
.rec-slot > .play-card {
  position: relative;
  z-index: 2;
  flex: 1;
  /* solid (not see-through) so the banana is properly hidden behind it */
  background: linear-gradient(rgba(255, 107, 74, 0.12), rgba(255, 107, 74, 0.12)), var(--card);
}
/* Banana (225px wide = 554px tall) centred vertically on the Recommended card
   (top 50% minus half its height); it sticks out ~85px above and below the card,
   so the section gets a little extra bottom room on desktop. */
.peek-banana { width: 225px; right: -96px; top: 50%; margin-top: -277px; }
.reqs.screen { padding-bottom: 150px; }
.reqs .section-head { position: relative; z-index: 3; margin-bottom: 100px; } /* text above the banana; room for its head */
.peek-banana .peek-inner { transform-origin: 0 100%; animation: peek-banana 4.8s ease-in-out -0.8s infinite; }
/* gentler lean than the small peekers - on a tall banana a big tilt swings the head off screen */
@keyframes peek-banana {
  0%, 100% { transform: rotate(4deg) translateX(0); }
  50%      { transform: rotate(8deg) translateX(12px); }
}
/* Peekers only appear once the cards they hide behind have faded in - otherwise
   they'd float fully visible in front of empty space for a moment. */
.js .peek { opacity: 0; transition: opacity 0.6s ease 0.35s; }
.js .rec-slot:has(> .play-card.is-visible) .peek,
.js .hood-stage:has(.hood-card.is-visible) .peek { opacity: 1; }

/* ---------- community gallery ---------- */
/* Light ivory from the logo (#F8E1BC) with soft pastel glows (reusing .blob)
   and the panning dot grid in plum. Layers: .gallery-bg (0) < dots (1) < content (2). */
.gallery {
  --blob-a: #FFB79A; --blob-b: #FF9EC4; --blob-c: #D7B4F2; --blob-d: #FFD66B;
  background: radial-gradient(ellipse at 50% 40%, #FFF3DE 0%, #F8E1BC 55%, #EFCF9F 100%);
  color: var(--plum);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.gallery-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.gallery-bg .blob { opacity: 0.5; }
.gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(43, 11, 51, 0.14) 1.4px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 85%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 85%);
  animation: pattern-pan 40s linear infinite;
  pointer-events: none;
}
.gallery .wrap, .gallery-slider { position: relative; z-index: 2; }
.gallery .section-head { max-width: 900px; margin-bottom: 26px; }
.gallery .eyebrow-static { color: rgba(43, 11, 51, 0.7); }
.gallery .section-head h2 { font-size: clamp(36px, 3.8vw, 54px); }
.gallery-intro { margin: 0; font-size: 16px; line-height: 1.65; color: rgba(43, 11, 51, 0.82); text-wrap: balance; }
.gallery-intro a { color: var(--orange-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.gallery-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  box-shadow: 0 12px 24px -12px rgba(43, 11, 51, 0.6);
  transition: transform 0.2s var(--pop), background 0.2s ease;
}
.btn-mail:hover { transform: translateY(-3px) scale(1.03); background: var(--purple); }
.gallery-cta-note { font-size: 13.5px; font-weight: 600; color: rgba(43, 11, 51, 0.6); }

/* Strip: a horizontally scrolling viewport (auto-scrolled by script.js, also
   swipeable / draggable), edges faded out. */
.gallery-viewport {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 18px 0 34px;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-viewport.is-dragging { cursor: grabbing; }
.gallery-track { display: flex; gap: 22px; width: max-content; padding: 0 48px; }

/* Cards: every thumbnail the same size (4:5), video cropped to fit. */
.clip {
  flex: 0 0 240px;
  width: 240px;
  display: flex; /* buttons centre content vertically by default - stack from the top instead */
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  border: none;
  border-radius: 22px;
  overflow: hidden;
  background: #FFFBF3;
  color: var(--plum);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(43, 11, 51, 0.1), 0 18px 30px -18px rgba(43, 11, 51, 0.4);
  transition: transform 0.35s var(--pop), box-shadow 0.3s ease;
}
.clip:hover, .clip:focus-visible { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 6px 0 rgba(43, 11, 51, 0.1), 0 26px 40px -18px rgba(43, 11, 51, 0.55); }
.clip:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.clip-thumb { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tb, var(--plum)); }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--smooth); pointer-events: none; }
.clip-thumb img.contain { object-fit: contain; padding: 22px 14px 0; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.35)); }
.clip:hover .clip-thumb img { transform: scale(1.06); }
.clip-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 3px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--orange);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--pop);
}
.clip:hover .clip-play { transform: scale(1.14); }
.clip-badge, .clip-orient {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.clip-badge { left: 12px; background: rgba(43, 11, 51, 0.78); color: #fff; }
.clip-orient { right: 12px; background: rgba(255, 255, 255, 0.85); color: var(--plum); }
.clip-meta { display: block; padding: 14px 18px 18px; }
.clip-title { display: block; margin-bottom: 8px; font-family: var(--font-head); font-weight: 800; font-size: 19px; line-height: 1.2; }
.clip-row { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.55; }
.clip-k { min-width: 64px; font-weight: 700; }
.clip-v { opacity: 0.75; }

.gallery-arrow {
  position: absolute;
  top: calc(18px + 240px * 1.25 / 2); /* centred on the thumbnails */
  z-index: 3;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--plum);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(43, 11, 51, 0.7);
  transition: transform 0.25s var(--pop), background 0.2s ease;
}
.gallery-arrow:hover { transform: scale(1.1); background: var(--orange); }
.gallery-arrow.prev { left: 22px; }
.gallery-arrow.next { right: 22px; }

/* Popup player: the media keeps its own shape - landscape is limited by width,
   portrait by height - so either orientation fits the screen. */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 64px 20px 24px;
  background: rgba(20, 6, 26, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.vmodal.is-open { opacity: 1; }
.vmodal-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; transform: scale(0.94); transition: transform 0.3s var(--pop); }
.vmodal.is-open .vmodal-box { transform: none; }
.vmodal-media video, .vmodal-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1280px);
  max-height: 72vh;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.vmodal-caption { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--text); }
.vmodal-title { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.vmodal-meta { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--text-soft); }
.vmodal-meta b { color: var(--text); margin-right: 4px; }
.vmodal-note { font-size: 13px; color: var(--text-soft); opacity: 0.8; }
.vmodal-close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--plum);
  transition: transform 0.2s var(--pop), background 0.2s ease;
}
.vmodal-close:hover { transform: rotate(90deg); background: var(--orange); color: #fff; }
body.modal-open { overflow: hidden; }

/* ---------- shop page ---------- */
/* Brand gradient (orange -> pink -> purple) with drifting glows and the dot grid.
   The free Demo and FaceNoodle Hero (sold on Steam). */
.shop-home {
  --blob-a: #FFC93C; --blob-b: #FF5FA2; --blob-c: #9B2FB0; --blob-d: #FF6B4A;
  background: linear-gradient(135deg, #FF7A4A 0%, #E8417E 45%, #7A2389 100%);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.shop-home-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.shop-home::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.4px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 25%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 45%, black 25%, transparent 80%);
  animation: pattern-pan 40s linear infinite;
  pointer-events: none;
}
.shop-home .wrap { position: relative; z-index: 2; }
.shop-home .section-head { max-width: 820px; margin-bottom: 40px; }
.shop-home .eyebrow-static { color: rgba(255, 255, 255, 0.85); }
.shop-home .section-head h1, .shop-home .section-head h2 { font-size: clamp(36px, 3.8vw, 56px); text-wrap: balance; }
.shop-home-intro { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); text-wrap: balance; }

.home-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 0 auto; }
.home-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border-radius: 26px;
  background: rgba(32, 12, 40, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -30px rgba(43, 11, 51, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.home-plan.featured { border: 2px solid var(--yellow); }
.home-plan-badge {
  position: absolute;
  z-index: 1; /* above the edition's character, which overlaps the card top */
  top: -14px;
  right: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--yellow);
}
.home-plan-head { display: flex; gap: 14px; align-items: center; }
.home-plan-head h3 { font-size: 23px; line-height: 1.15; }
.home-plan-head p { margin: 4px 0 0; font-size: 14.5px; color: var(--text-soft); }
.shop-home .plan-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.shop-home .plan-icon svg { width: 26px; height: 26px; }
.shop-home .plan-icon.demo { background: var(--teal); color: var(--plum); }
.shop-home .plan-icon.full { background: linear-gradient(135deg, var(--orange), var(--purple)); }
.home-plan-price { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 50px; line-height: 1; }
.home-plan-price small { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text-soft); }
.home-plan-list { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.home-plan-list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.45; }
.home-plan-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(61, 214, 198, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233DD6C6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.home-plan-list li.minus { color: var(--text-soft); }
.home-plan-list li.minus::before { background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9BBD1' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.home-plan-cta { justify-content: center; padding: 15px 24px; font-size: 15.5px; }

/* Demo / Hero: two cards, each edition's banana standing up out of its card. */
/* wider than the page container so each feature fits on one line */
.home-plans.editions { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(1040px, calc(100vw - 64px)); max-width: none; position: relative; left: 50%; translate: -50% 0; gap: 24px; margin-top: 215px; align-items: stretch; }
/* "Coming soon on Steam": a label in button style, not clickable until the Steam link exists */
.btn-steam.is-soon { cursor: default; }
.btn-steam.is-soon:hover { transform: none; box-shadow: none; }
.editions .home-plan { padding-left: 24px; padding-right: 24px; }
.editions .home-plan { padding-top: 0; }
.home-plan-art { height: 160px; margin: -110px 0 0; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.home-plan-art img { height: 250px; width: auto; max-width: none; filter: drop-shadow(0 18px 18px rgba(20, 4, 28, 0.55)); transition: transform 0.6s var(--pop); }
.home-plan:hover .home-plan-art img { transform: translateY(-8px) rotate(-2deg); }
.editions .home-plan-head { text-align: center; justify-content: center; }
/* subtitles wrap differently per language: keep two lines so prices and lists line up */
.editions .home-plan-head p { line-height: 1.45; min-height: 2.9em; }
.editions .home-plan-price { flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; min-height: 84px; }
.editions .home-plan-list { gap: 8px; }
.editions .home-plan-list li { font-size: 13.5px; line-height: 1.4; padding-left: 26px; }
.editions .home-plan-list li::before { top: 0; width: 18px; height: 18px; }
/* features an edition doesn't include: greyed out with a dash */
.home-plan-list li.off { color: rgba(201, 187, 209, 0.5); text-decoration: line-through; text-decoration-color: rgba(201, 187, 209, 0.35); }
.home-plan-list li.off::before { background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9BBD1' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 11px no-repeat; opacity: 0.6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.shop-price-note { margin: 22px 0 0; text-align: center; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.home-bundles-head { margin: 56px 0 20px; text-align: center; }
.home-bundles-head h3 { font-size: clamp(28px, 2.6vw, 38px); }
.home-bundles-head p { margin: 8px 0 0; font-size: 16px; color: rgba(255, 255, 255, 0.9); }
.home-bundles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.home-bundle {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  color: var(--plum);
  background: #FFFBF3;
  box-shadow: 0 6px 0 rgba(43, 11, 51, 0.18), 0 18px 30px -18px rgba(43, 11, 51, 0.6);
  transition: transform 0.35s var(--pop), box-shadow 0.3s ease;
}
.home-bundle:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 6px 0 rgba(43, 11, 51, 0.18), 0 28px 40px -18px rgba(43, 11, 51, 0.7); }
.home-bundle:nth-child(even):hover { transform: translateY(-8px) rotate(1deg); }
.home-bundle-art { aspect-ratio: 1; background: var(--art); }
.home-bundle-art img { width: 100%; height: 100%; object-fit: contain; padding: 6%; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35)); transition: transform 0.6s var(--smooth); }
.home-bundle:hover .home-bundle-art img { transform: scale(1.06); }
.home-bundle-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.home-bundle-name { font-family: var(--font-head); font-weight: 800; font-size: 19px; line-height: 1.15; }
.home-bundle-count { font-size: 13px; font-weight: 600; opacity: 0.65; }
.home-bundle-buy { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-bundle-buy b { font-family: var(--font-head); font-size: 20px; }
.shop-home .btn-buy { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--plum); transition: background 0.2s ease; }
.home-bundle:hover .btn-buy { background: var(--orange); }


@media (max-width: 1100px) {
  .home-bundles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 921px) and (max-width: 1279px) {
  .home-plans.editions { gap: 14px; }
  .editions .home-plan { padding-left: 18px; padding-right: 18px; }
  .editions .home-plan-list li { font-size: 12.5px; padding-left: 24px; }
}
@media (max-width: 920px) {
  .home-plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .home-plans.editions { grid-template-columns: minmax(0, 1fr); width: auto; max-width: 520px; left: auto; translate: none; margin-top: 230px; row-gap: 200px; }
}
@media (max-width: 600px) {
  .home-plan { padding: 24px 20px; }
  .home-plan-price { font-size: 42px; }
  .home-bundles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-bundle-name { font-size: 17px; }
  .home-bundle-buy b { font-size: 17px; }
}

/* ---------- RESOURCES PAGE (<code>/resources.html): video tutorials ---------- */
.res-page {
  --blob-a: #9B2FB0; --blob-b: #FF6B4A; --blob-c: #3DD6C6; --blob-d: #FF5FA2;
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 64px) 0 96px;
  background: linear-gradient(160deg, #3B1352 0%, #2B0B33 55%, #1E0726 100%);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.res-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.4px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 70%);
  animation: pattern-pan 40s linear infinite;
  pointer-events: none;
}
.res-page-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.res-page .blob { opacity: 0.35; }
.res-page .wrap { position: relative; z-index: 2; }
.res-head { max-width: 760px; margin-bottom: 48px; }
.res-head h1 { margin: 10px 0 14px; font-size: clamp(36px, 4vw, 58px); line-height: 1.05; text-wrap: balance; }
.res-head p { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); text-wrap: balance; }

.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.res-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  color: var(--plum);
  background: #FFFBF3;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18), 0 22px 40px -22px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s var(--pop), box-shadow 0.3s ease;
}
a.res-card:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18), 0 32px 48px -22px rgba(0, 0, 0, 0.75); }
.res-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; }
.res-thumb img { position: absolute; left: 50%; bottom: -14%; height: 118%; width: auto; max-width: none; translate: -50% 0; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.35)); transition: transform 0.6s var(--smooth); }
a.res-card:hover .res-thumb img { transform: scale(1.06); }
.res-play {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  padding-left: 4px;
  color: var(--plum);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--pop), background 0.2s ease;
}
a.res-card:hover .res-play { transform: scale(1.1); background: #fff; color: var(--orange); }
.res-card.is-soon .res-play { opacity: 0.7; }
.res-soon {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--plum); background: var(--yellow);
}
.res-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.res-num { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--orange); }
.res-title { font-family: var(--font-head); font-weight: 800; font-size: 21px; line-height: 1.15; }
.res-desc { font-size: 14.5px; line-height: 1.5; opacity: 0.75; flex: 1; }
.res-foot { margin-top: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--purple); }
.res-card.is-soon .res-foot { color: rgba(43, 11, 51, 0.45); }

.res-help {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 56px; padding: 28px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.res-help h2 { margin: 0 0 4px; font-size: 26px; }
.res-help p { margin: 0; color: rgba(255, 255, 255, 0.8); }
.res-help .btn-steam { flex-shrink: 0; }

@media (max-width: 1000px) {
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .res-page { padding-top: calc(var(--header-h) + 32px); }
  .res-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .res-help { flex-direction: column; align-items: flex-start; padding: 24px; }
  .res-help .btn-steam { width: 100%; justify-content: center; }
}

/* ---------- DEMO DOWNLOAD PAGE (<code>/demo.html) ----------
   Teal + purple (the Demo card's colours), big banana on the left, message and
   download button on the right. */
.demo-page {
  --blob-a: #3DD6C6; --blob-b: #9B2FB0; --blob-c: #138A8F; --blob-d: #FF5FA2;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 88px;
  background: linear-gradient(140deg, #0F5E66 0%, #3B1A5C 55%, #2B0B33 100%);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.demo-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.4px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 35% 50%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 35% 50%, black 20%, transparent 75%);
  animation: pattern-pan 40s linear infinite;
  pointer-events: none;
}
.demo-page-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.demo-page .blob { opacity: 0.45; }
.demo-page-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }

.demo-page-art { position: relative; display: grid; place-items: center; min-height: 560px; }
.demo-page-ring {
  position: absolute;
  width: min(460px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(61, 214, 198, 0.55), rgba(155, 47, 176, 0.35) 60%, transparent 72%);
  border: 2px dashed rgba(255, 255, 255, 0.22);
  animation: spin 60s linear infinite;
}
.demo-page-art img {
  position: relative;
  height: 560px;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 30px 30px rgba(10, 2, 16, 0.55));
  animation: demo-bob 5s ease-in-out infinite;
}
@keyframes demo-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

.demo-page-copy .eyebrow-static { color: var(--teal); }
.demo-page-copy h1 { margin: 10px 0 20px; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.05; text-wrap: balance; }
.demo-page-copy p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, 0.88); max-width: 600px; }
.demo-page-copy .demo-page-lead { font-size: 19px; color: #fff; }

.demo-page-cta { margin: 30px 0 34px; }
.demo-page-download { padding: 18px 34px; font-size: 18px; gap: 10px; }
.demo-page-download.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.demo-page-soon { margin: 12px 0 0 !important; font-size: 15px !important; font-weight: 700; color: var(--yellow) !important; }
.demo-page-note { margin: 12px 0 0 !important; font-size: 14px !important; color: rgba(255, 255, 255, 0.7) !important; }
.demo-page-note a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

.demo-page-thanks { padding: 24px 26px; border-radius: 22px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); max-width: 600px; }
.demo-page-thanks p { margin: 0 0 16px; font-size: 16px; }
.demo-page-follow { display: block; margin-bottom: 12px; font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.demo-page-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.25s var(--pop), background 0.2s ease, border-color 0.2s ease;
}
.demo-social svg { width: 18px; height: 18px; }
.demo-social:hover { transform: translateY(-3px); border-color: transparent; }
.demo-social.s-facebook:hover { background: #1877F2; }
.demo-social.s-instagram:hover { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); }
.demo-social.s-youtube:hover { background: #FF0000; }

@media (max-width: 920px) {
  .demo-page-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; text-align: center; }
  .demo-page-art { min-height: 360px; }
  .demo-page-art img { height: 360px; }
  .demo-page-copy p, .demo-page-thanks { margin-left: auto; margin-right: auto; }
  .demo-page-socials { justify-content: center; }
}
@media (max-width: 600px) {
  .demo-page { padding-top: calc(var(--header-h) + 24px); }
  .demo-page-art { min-height: 290px; }
  .demo-page-art img { height: 290px; }
  .demo-page-download { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-page-ring, .demo-page-art img { animation: none; }
}

/* ---------- contact ---------- */
/* Dark purple like the Requirements section (glows + dot grid), text left, form right. */
.contact {
  --blob-a: #9B2FB0; --blob-b: #FF6B4A; --blob-c: #6A2396; --blob-d: #FF5FA2;
  background: radial-gradient(ellipse at 30% 40%, #4D1B63 0%, #2E0F3D 45%, #170A20 100%);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.contact-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.4px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 80%);
  animation: pattern-pan 40s linear infinite;
  pointer-events: none;
}
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.contact-copy h2 { margin-top: 14px; font-size: clamp(36px, 3.8vw, 54px); font-weight: 800; line-height: 1.06; }
.contact-copy > p { margin: 18px 0 0; max-width: 520px; color: var(--text-soft); font-size: 17px; line-height: 1.65; }
.contact-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact-topics li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--pop), border-color 0.2s ease;
}
.contact-topics li:hover { transform: translateY(-3px); border-color: var(--tc); }
.topic-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tc); color: var(--tc-fg, #fff); }
.topic-icon svg { width: 16px; height: 16px; }
.contact-direct { margin: 26px 0 0; font-size: 14.5px; color: var(--text-soft); }
.contact-direct a { color: var(--orange); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  background: rgba(36, 21, 49, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; color: var(--text-soft); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF5F7A; }
.form-send { align-self: flex-start; padding: 15px 30px; font-size: 15.5px; cursor: pointer; }
.form-send:disabled { opacity: 0.6; cursor: progress; }
/* the button, with "Message sent!" + a little banana on its right */
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-sent { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 18px; color: #7FE3A0; }
.form-sent[hidden] { display: none; }
.form-sent img { height: 46px; width: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4)); rotate: -10deg; }
.form-sent.is-in { animation: sent-pop 0.55s var(--pop) both; }
.form-sent.is-in img { animation: sent-wiggle 1.2s ease-in-out 0.35s 2; }
@keyframes sent-pop { from { opacity: 0; transform: translateX(-12px) scale(0.7); } }
@keyframes sent-wiggle { 0%, 100% { rotate: -10deg; } 50% { rotate: 8deg; } }
@media (prefers-reduced-motion: reduce) { .form-sent.is-in, .form-sent.is-in img { animation: none; } }
/* spam trap: off-screen, never seen or focused by people */
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--text-soft); }
.form-status.is-error { color: #FF8FA0; }
.form-status.is-ok { color: #7FE3A0; }
.form-status a { color: inherit; text-decoration: underline; }

/* ---------- legal pages (legal/*.html, built by Website-source/build-legal.js) ---------- */
.legal-hero {
  --blob-a: #9B2FB0; --blob-b: #FF6B4A; --blob-c: #6A2396;
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 88px;
  background: radial-gradient(ellipse at 30% 30%, #4D1B63 0%, #2E0F3D 50%, #170A20 100%);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.legal-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.4px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 40% 50%, black 25%, transparent 80%);
  mask-image: radial-gradient(ellipse at 40% 50%, black 25%, transparent 80%);
  animation: pattern-pan 40s linear infinite;
  pointer-events: none;
}
.legal-hero-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.legal-hero-inner > div { max-width: calc(100% - 500px); } /* keep the title clear of the peeking characters */
.legal-hero h1 { margin-top: 10px; font-size: clamp(36px, 4.4vw, 60px); font-weight: 800; line-height: 1.05; }
.legal-hero p { margin: 12px 0 0; font-size: 17px; color: var(--text-soft); }
/* Big homepage characters peeking up from the bottom edge of the banner (the
   banner clips them). Outer .lp = mouse parallax (JS writes `translate`), img = slow bob. */
.legal-peek {
  position: absolute;
  right: max(24px, calc(50% - 600px));
  bottom: 0;
  width: 470px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.lp { position: absolute; bottom: 0; will-change: translate; }
.lp img { display: block; width: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); animation: legal-peek 4.4s ease-in-out infinite; }
.lp-front { right: 30px; z-index: 2; }
.lp-front img { height: 340px; margin-bottom: -120px; }
.lp-back { right: 250px; z-index: 1; }
.lp-back img { height: 300px; margin-bottom: -95px; rotate: -9deg; animation-delay: -1.8s; animation-duration: 5.2s; }
@keyframes legal-peek { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
.legal-toc { position: sticky; top: calc(var(--header-scrolled) + 24px); padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); }
.legal-toc-head { display: block; margin-bottom: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a { display: block; padding: 6px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--text-soft); transition: background 0.15s ease, color 0.15s ease; }
.legal-toc a:hover { background: rgba(255, 255, 255, 0.06); color: var(--orange); }

.doc { max-width: 780px; font-size: 16px; line-height: 1.7; color: var(--text-soft); }
.doc h2, .doc h3 { color: var(--text); scroll-margin-top: calc(var(--header-scrolled) + 20px); }
.doc h2 { margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 27px; line-height: 1.2; }
.doc h2:first-of-type { margin-top: 32px; }
.doc h3 { margin: 28px 0 10px; font-size: 20px; }
.doc p { margin: 0 0 16px; }
.doc strong { color: var(--text); font-weight: 700; }
.doc ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.doc li { margin-bottom: 8px; padding-left: 4px; }
.doc li::marker { color: var(--orange); }
.doc a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc code { padding: 2px 7px; border-radius: 6px; font-family: Consolas, 'Courier New', monospace; font-size: 0.88em; color: #FFD9C9; background: rgba(255, 255, 255, 0.07); overflow-wrap: anywhere; }
/* Document details (dates, publisher, address): fine print at the end of each document. */
.doc .doc-meta {
  margin: 36px 0 0;
  padding: 16px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(201, 187, 209, 0.75);
  border-top: 1px solid var(--border);
}
.doc .doc-meta a { color: inherit; }
.doc-divider { margin: 64px 0 0; border: none; height: 2px; background: linear-gradient(90deg, var(--orange), var(--purple), transparent); }
/* Japanese titles like エンドユーザー使用許諾契約 are one long "phrase": let them wrap on phones. */
html[lang="ja"] .legal-hero h1 { word-break: normal; }
/* Tables in legal documents (Third-Party Notices) */
.doc .doc-table { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.doc th { color: var(--text); font-weight: 700; background: rgba(255, 255, 255, 0.05); white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }
.doc .num { text-align: right; white-space: nowrap; }
/* Third-Party Notices: licence text files to download */
.doc .doc-files { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 18px; }
.doc .doc-files li { margin: 0; padding: 0; font-size: 14px; }
.doc .doc-files li::marker { content: none; }
.doc .doc-files a { display: inline-block; padding: 2px 0; font-family: Consolas, 'Courier New', monospace; font-size: 13px; }
/* Translations: "the English version applies" note at the top of the document. */
.doc .doc-note { margin: 0 0 8px; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.55; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-left: 3px solid var(--orange); }

/* Seller identity in small print (legal pages footer, checkout). */
.fine-print { margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; color: rgba(201, 187, 209, 0.6); }

@media (max-width: 920px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .legal-toc { position: static; }
  .legal-toc ol { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .legal-toc a { padding: 5px 12px; border: 1px solid var(--border); border-radius: 99px; font-size: 13px; }
  .legal-hero-inner > div { max-width: calc(100% - 300px); }
  .legal-peek { width: 300px; right: 12px; }
  .lp-front { right: 10px; }
  .lp-front img { height: 230px; margin-bottom: -80px; }
  .lp-back { right: 150px; }
  .lp-back img { height: 200px; margin-bottom: -65px; }
}
@media (max-width: 600px) {
  /* phones: room for the title on top, one character peeking below it */
  .legal-hero { padding-bottom: 150px; }
  .legal-hero-inner > div { max-width: none; }
  .lp-back { display: none; }
  .lp-front img { height: 190px; margin-bottom: -60px; }
  .doc h2 { font-size: 23px; }
}

/* ---------- CTA banner (compact strip) ---------- */
.cta-banner { padding: 56px 0; background: linear-gradient(160deg, #2A1030, #160C1C 70%); border-top: 1px solid var(--border); }
.cta-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-banner h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.cta-banner p { margin: 8px 0 0; color: var(--text-soft); font-size: 15.5px; }
.cta-banner .btn-steam { flex-shrink: 0; padding: 17px 32px; font-size: 16px; }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 32px 0; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 280px; }
.footer-brand p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.footer-mail svg { color: var(--orange); }
.footer-mail:hover { color: var(--orange); }
.footer-brand .socials { margin-top: 6px; gap: 10px; }
.footer-brand .social { width: 42px; height: 42px; }
.footer-brand .social svg { width: 20px; height: 20px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col span.head { font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); }
.footer-col a { color: var(--text-soft); font-size: 14px; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-soft); }

/* ---------- responsive ---------- */
/* Laptop widths: seven menu links + language + Shop button only fit with tighter
   spacing and without the header social icons (they're still in the footer). */
@media (max-width: 1500px) {
  .nav-links { gap: 22px; font-size: 14.5px; }
  .header-right { gap: 14px; }
}
@media (min-width: 1301px) and (max-width: 1500px) {
  .site-header .socials { display: none; }
}
.header-right > .btn-steam, .nav-links a { white-space: nowrap; }
@media (max-width: 1360px) {
  .peek-banana { right: -72px; } /* less side room: keep the leaning beanie on screen */
  .social { width: 34px; height: 34px; }
}

@media (max-width: 1100px) {
  .hood-grid { grid-template-columns: repeat(2, 1fr); }
  /* No room at the sides any more: the bear and tiger peek over the top edge
     of the cards instead (the heading makes space for their heads). */
  .hood .section-head { margin-bottom: 150px; }
  /* Banana: same idea - peeks over the top of the Recommended card */
  /* face (eyes + mouth) sits ~45% down the banana - show that much above the card */
  .reqs .section-head { margin-bottom: 240px; }
  .peek-banana { width: 200px; right: 8%; top: -230px; margin-top: 0; }
  .reqs.screen { padding-bottom: 72px; } /* banana now ends inside the card - no extra room needed */
  .peek-bear  { width: 180px; left: 4%;  top: -160px; }
  .peek-tiger { width: 180px; right: 4%; top: -160px; bottom: auto; }
  @keyframes peek-left  { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-10deg) translateY(-10px); } }
  @keyframes peek-right { 0%, 100% { transform: rotate(6deg) translateY(0); }  50% { transform: rotate(10deg) translateY(-10px); } }
}

/* Tablet + mobile (and small laptops, where six links + language menu + icons
   + Steam don't fit): nav and Steam button move into the burger menu; the social icons stay
   in the header, smaller, with the burger at the far right. */
@media (max-width: 1300px) {
  .site-header, .site-header.is-scrolled { padding: 16px 32px; }
  :root { --header-h: 76px; --header-scrolled: 77px; }
  .nav-links, .header-right > .btn-steam { display: none; }
  .burger { display: block; }
  .lang-btn { height: 32px; padding: 0 9px 0 4px; gap: 6px; }
  .lang-btn .flag { width: 22px; height: 22px; }
  .header-right { gap: 14px; }
  .site-header .socials { gap: 6px; }
  .site-header .social { width: 32px; height: 32px; }
  .site-header .social svg { width: 15px; height: 15px; }
}
@media (min-width: 1301px) {
  .mobile-menu, .menu-backdrop { display: none; }
}

/* Characters section on tablets (incl. landscape iPads) / phones / small laptops:
   there isn't enough empty space beside the characters for the text, so stack
   instead - banner across the top (at least 300px tall, cropped towards the
   characters on phones), text starting just below it. */
@media (max-width: 1280px) {
  .cast { --cast-img-h: max(44.1vw, 300px); } /* 44.1vw = the banner's own 833/1888 ratio */
  .cast.screen { justify-content: flex-start; padding-top: calc(var(--header-scrolled) + var(--cast-img-h) - 24px); }
  .cast-bg {
    top: var(--header-scrolled); /* below the header, like desktop */
    left: 0;
    width: 100%;
    height: var(--cast-img-h);
    aspect-ratio: auto;
    transform: none;
    background-position: 92% center; /* phones crop the sides: keep banana -> penguin in view */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 70%, transparent 100%);
  }
  .cast-glow {
    left: 0;
    width: 100%;
    background-size: calc(var(--cast-img-h) * 2.2665) 1600%; /* same width as the cropped banner */
    background-position: 92% top;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 60%, transparent 100%);
  }
  .cast::before { display: none; }
  .cast .cast-inner { padding-left: 32px; padding-right: 32px; }
  .cast-copy { max-width: 640px; }
}

@media (max-width: 920px) {
  .site-header, .site-header.is-scrolled { padding: 14px 20px; }
  :root { --header-h: 72px; --header-scrolled: 73px; }
  section.screen, .reqs.screen { padding-bottom: 56px; }
  .logo-long { display: none; }
  .logo-icon { display: block; }
  .wrap { padding: 0 24px; }

  .hero { padding: 104px 0 90px 0; }
  .mobile-menu { padding-top: 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-visual { order: -1; }
  .hero-stage { width: min(340px, 82%); }
  .hero h1 { font-size: clamp(31px, 10vw, 60px); } /* scales down on very small phones so long lines still fit */
  .hero-pager { gap: 22px; margin-top: 36px; }
  .pager-bar { width: 120px; }
  .ring { left: 50%; top: 28%; }
  .ring-1 { width: 520px; height: 520px; margin: -260px 0 0 -260px; }
  .ring-2 { width: 760px; height: 760px; margin: -380px 0 0 -380px; }
  .scroll-cue { display: none; }

  .split-grid { grid-template-columns: minmax(0, 1fr); }
  /* Stacked on phones/tablets: each half gets a full screen of its own. */
  .split-panel { min-height: 100vh; min-height: 100svh; align-items: center; padding: 72px 24px; }

  .cast .cast-inner { padding-left: 24px; padding-right: 24px; }
  .glb-callout { grid-template-columns: 1fr; padding: 24px; }

  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner .wrap { flex-direction: column; text-align: center; gap: 22px; }
  .gallery-arrow { display: none; } /* phones/tablets swipe instead */
  .clip { flex-basis: 220px; width: 220px; }
  .gallery-track { gap: 16px; padding: 0 24px; }
  /* Cards stacked: leave room between them for the banana's head */
  .reqs .section-head { margin-bottom: 52px; }
  .reqs-grid { row-gap: 245px; }
  .footer-cols { flex-direction: column; gap: 32px; }
}

@media (max-width: 600px) {
  .header-right { gap: 10px; }
  .lang-code { display: none; } /* phones: just the flag + arrow */
  .lang-btn { padding: 0 6px 0 4px; }
  .site-header .socials { gap: 5px; }
  .site-header .social { width: 29px; height: 29px; }
  .site-header .social svg { width: 13px; height: 13px; }
  .burger { width: 42px; height: 42px; }
  .burger span { left: 11px; }
  .burger span:nth-child(1) { top: 14px; }
  .burger span:nth-child(2) { top: 19.75px; }
  .burger span:nth-child(3) { top: 25.5px; }
  .hood-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-send { align-self: stretch; justify-content: center; }
  /* Small phones: a little less padding / heading size so long words (e.g.
     'Armazenamento') and unbreakable CJK phrases still fit the screen. */
  .play-card { padding: 26px 22px; }
  .play-card .spec-list { column-gap: 12px; }
  .contact-copy h2 { font-size: 32px; }
  /* Let grid columns shrink below their longest word on tiny phones (320px). */
  .two-col, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .play-card .spec-list { grid-template-columns: auto minmax(0, 1fr); }
  .spec-k, .spec-v, .contact-direct a { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
  /* Japanese phrase-breaking can't split long headline phrases; fall back to
     normal (still strict) CJK breaking on phones. */
  html[lang="ja"] h2, html[lang="ja"] h3 { word-break: normal; }
  .hood .section-head { margin-bottom: 110px; }
  .peek-bear, .peek-tiger { width: 130px; top: -116px; }
  .peek-tiger { right: 10%; } /* its lean tips it right - keep the ear on screen */
  .peek-banana { width: 150px; top: -175px; }
  .reqs-grid { row-gap: 190px; }
}

/* Visitors who ask for less motion get every loop and entrance switched off
   (slides then only change when the pager is clicked). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; }
}
