/* ==========================================================================
   ChibiChu.xyz — design system
   Visual DNA taken from the game itself (Gacha Life / ChibiChu Mode):
   bubble-rounded shapes, pastel pink panels, deep space-plum backdrop,
   sparkle confetti, mint + gold accents.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --font-display: "Baloo 2", "Comfortaa", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;

  --rose-100: #ffe8f4;
  --rose-200: #ffd0e7;
  --rose-300: #fdaad2;
  --rose-400: #f97fb6;
  --rose-500: #ef4f92;
  --rose-600: #d92d72;
  --rose-700: #a81b56;
  --plum-200: #e4d2f7;
  --plum-300: #c9a7e8;
  --plum-500: #8b5fb0;
  --violet-500: #7c5cff;
  --mint-400: #4fd6bd;
  --sky-400: #6fc2ff;
  --sun-400: #ffc95c;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 38px;
  --r-pill: 999px;

  --shell: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --step: clamp(3.5rem, 7.5vw, 6.5rem);

  --ease: cubic-bezier(.22, .68, .35, 1);
  --lift: 0 22px 50px -22px rgba(88, 20, 58, .38);
  --lift-soft: 0 10px 30px -14px rgba(88, 20, 58, .3);
}

/* Light — pastel studio, like the game's own pink UI panels */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #fff4fa;
  --bg-2: #fdf0fb;
  --bg-3: #f6ecff;
  --surface: rgba(255, 255, 255, .82);
  --surface-2: #fffafd;
  --surface-3: #fff1f8;
  --ink: #3d1630;
  --ink-soft: #6d3a59;
  --muted: #8b5f7c;
  --line: rgba(206, 106, 158, .28);
  --line-strong: rgba(199, 74, 138, .5);
  --brand: #d92d72;
  --brand-2: #f472ab;
  --brand-soft: #ffe3f0;
  --brand-ink: #fff;
  --glow: rgba(244, 127, 182, .35);
  --confetti: .5;
  --star: .38;
  --shadow-lg: 0 30px 70px -30px rgba(120, 30, 78, .45);
  --shadow-card: 0 18px 40px -24px rgba(120, 30, 78, .5);
  --header-bg: rgba(255, 246, 251, .82);
  --safe-bg: rgba(226, 250, 240, .85);
  --safe-line: rgba(38, 160, 118, .4);
  --safe-ink: #1c7a58;
}

/* Dark — the in-game space backdrop behind the character */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #150d1f;
  --bg-2: #1d1229;
  --bg-3: #241436;
  --surface: rgba(46, 30, 60, .72);
  --surface-2: #2c1c3c;
  --surface-3: #341f47;
  --ink: #fff0f8;
  --ink-soft: #f4d6e8;
  --muted: #c4a3c0;
  --line: rgba(255, 172, 214, .2);
  --line-strong: rgba(255, 150, 203, .45);
  --brand: #ff8ec4;
  --brand-2: #ffb0d6;
  --brand-soft: rgba(255, 142, 196, .14);
  --brand-ink: #2a0f26;
  --glow: rgba(255, 130, 190, .28);
  --confetti: .38;
  --star: .8;
  --shadow-lg: 0 34px 80px -34px rgba(0, 0, 0, .85);
  --shadow-card: 0 20px 46px -26px rgba(0, 0, 0, .8);
  --header-bg: rgba(21, 13, 31, .8);
  --safe-bg: rgba(31, 87, 68, .28);
  --safe-line: rgba(79, 214, 189, .38);
  --safe-ink: #8ff0d8;
}

/* ---------- 2. Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- 3. Backdrop: gradient + sparkle confetti ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, var(--bg-3) 0%, transparent 62%),
    radial-gradient(900px 560px at 6% 4%, var(--bg-2) 0%, transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, var(--bg-3) 100%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(680px 420px at 50% 12%, var(--glow) 0%, transparent 70%);
  opacity: .55;
}
.bg-stars {
  position: fixed;
  inset: -10%;
  z-index: -2;
  pointer-events: none;
  opacity: var(--star);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='18' cy='32' r='1.4'/%3E%3Ccircle cx='96' cy='14' r='1'/%3E%3Ccircle cx='168' cy='48' r='1.7'/%3E%3Ccircle cx='232' cy='20' r='1.1'/%3E%3Ccircle cx='52' cy='118' r='1.2'/%3E%3Ccircle cx='142' cy='96' r='1'/%3E%3Ccircle cx='212' cy='150' r='1.5'/%3E%3Ccircle cx='30' cy='206' r='1.3'/%3E%3Ccircle cx='122' cy='188' r='1'/%3E%3Ccircle cx='248' cy='220' r='1.6'/%3E%3Ccircle cx='78' cy='240' r='1.1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
  animation: twinkle 7s var(--ease) infinite alternate;
}
.bg-confetti {
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  opacity: var(--confetti);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cg fill='%23f97fb6'%3E%3Cpath d='M42 52c0 6-4 10-10 10 6 0 10 4 10 10 0-6 4-10 10-10-6 0-10-4-10-10Z' opacity='.5'/%3E%3Cpath d='M244 34c0 4-2.6 6.6-6.6 6.6 4 0 6.6 2.6 6.6 6.6 0-4 2.6-6.6 6.6-6.6-4 0-6.6-2.6-6.6-6.6Z' opacity='.38'/%3E%3Ccircle cx='150' cy='30' r='3' opacity='.42'/%3E%3Ccircle cx='286' cy='152' r='3.4' opacity='.3'/%3E%3Cpath d='M100 196c0 5-3.3 8.3-8.3 8.3 5 0 8.3 3.3 8.3 8.3 0-5 3.3-8.3 8.3-8.3-5 0-8.3-3.3-8.3-8.3Z' opacity='.42'/%3E%3C/g%3E%3Cg fill='%238b5fb0'%3E%3Cpath d='M186 118c0 4.4-2.9 7.3-7.3 7.3 4.4 0 7.3 2.9 7.3 7.3 0-4.4 2.9-7.3 7.3-7.3-4.4 0-7.3-2.9-7.3-7.3Z' opacity='.38'/%3E%3Ccircle cx='38' cy='232' r='2.6' opacity='.35'/%3E%3Ccircle cx='272' cy='272' r='2.4' opacity='.3'/%3E%3C/g%3E%3Cg fill='%23ffc95c'%3E%3Ccircle cx='196' cy='276' r='3' opacity='.4'/%3E%3Cpath d='M288 226c0 3.6-2.4 6-6 6 3.6 0 6 2.4 6 6 0-3.6 2.4-6 6-6-3.6 0-6-2.4-6-6Z' opacity='.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 320px;
  animation: drift 48s linear infinite;
}
@keyframes twinkle { from { opacity: calc(var(--star) * .55); } to { opacity: var(--star); } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-320px, -320px, 0); } }

/* ---------- 4. Layout primitives ---------- */
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { margin-block: var(--step); }
.section--tint {
  position: relative;
  isolation: isolate;
}
.section--tint::before {
  content: "";
  position: absolute;
  inset: calc(var(--step) * -.55) calc(var(--gutter) * -1);
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--surface-3) 12%, var(--surface-3) 88%, transparent);
  border-block: 1px solid var(--line);
}
.skip {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 90;
  padding: .7rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- 5. Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: .38rem .95rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow::before { content: "\2726"; font-size: .95em; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  margin: 0 0 2.4rem;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  text-align: center;
}
.section-title::before,
.section-title::after {
  content: "\2727";
  color: var(--brand);
  font-size: .62em;
  opacity: .75;
}
.section-title--left { justify-content: flex-start; text-align: left; }
.section-lead {
  max-width: 62ch;
  margin: -.9rem auto 2.4rem;
  text-align: center;
  font-size: 1.06rem;
}
.section-lead--left { margin-inline: 0; text-align: left; }
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.head-row .section-title { margin-bottom: 0; }
.head-row + .section-lead { margin-top: 0; }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--brand-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 56px;
  padding: .8rem 1.7rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 14px 28px -12px var(--glow), inset 0 -3px 0 rgba(0, 0, 0, .12);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 38px -14px var(--glow), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn:active { transform: translateY(-1px); }
.btn--ghost {
  --btn-bg: var(--surface);
  --btn-fg: var(--brand);
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow-soft, 0 10px 26px -16px rgba(120, 30, 78, .5));
}
.btn--ghost:hover { --btn-bg: var(--brand-soft); }
.btn--mint { --btn-bg: var(--mint-400); --btn-fg: #10362d; }
.btn--sm { min-height: 44px; padding: .5rem 1.1rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn.disabled {
  --btn-bg: var(--surface-3);
  --btn-fg: var(--muted);
  border: 2px dashed var(--line-strong);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
  text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
  transition: color .2s var(--ease);
}
.text-link::after { content: "\2192"; text-decoration: none; transition: transform .2s var(--ease); }
.text-link:hover { color: var(--brand-2); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- 7. Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 2px solid var(--line-strong);
  box-shadow: 0 8px 18px -8px var(--glow);
}
.brand b { color: var(--brand); font-weight: 800; }
.nav-links {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-left: auto;
}
.nav-links a {
  padding: .5rem .85rem;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-weight: 700;
  font-size: .96rem;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-actions { display: flex; align-items: center; gap: .55rem; }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform .22s var(--ease), background-color .22s var(--ease);
}
.theme-toggle:hover { transform: rotate(-18deg) scale(1.06); background: var(--brand-soft); }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: inline; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2.4px;
  margin: 3.4px auto;
  border-radius: 2px;
  background: var(--brand);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem);
}
.hero-copy { max-width: 36rem; }
.wordmark {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: .1rem 0 1rem -6px;
  filter: drop-shadow(0 16px 30px rgba(120, 30, 78, .28));
}
.wordmark text { paint-order: stroke fill; }
[data-theme="dark"] .wordmark { filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .6)); }
.hero h1 { margin: 0; }
.hero-sub {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -.01em;
}
.hero-lead {
  max-width: 40ch;
  margin-bottom: 1.8rem;
  font-size: clamp(1.02rem, .98rem + .3vw, 1.16rem);
}
.hero-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.hero-note b { color: var(--ink-soft); }
.hero-art {
  position: relative;
  padding-bottom: 10%;
}
.shot {
  position: relative;
  border-radius: var(--r-lg);
  border: 2px solid var(--line-strong);
  background: var(--surface-2);
  padding: .45rem;
  box-shadow: var(--shadow-lg);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.shot img {
  width: 100%;
  border-radius: calc(var(--r-lg) - 8px);
  background: #1b1130;
}
.hero-art .shot--main { width: 100%; transform: rotate(-2.2deg); }
.hero-art .shot--side {
  position: absolute;
  right: -3%;
  bottom: 0;
  z-index: 3;
  width: 46%;
  transform: rotate(3.4deg);
}
.shot:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 34px 70px -26px var(--glow); }
.hero-art .shot--main:hover { transform: rotate(-.8deg) translateY(-6px); }
.hero-art .shot--side:hover { transform: rotate(1.2deg) translateY(-6px); }
.shot-cap {
  display: block;
  padding: .5rem .35rem .15rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
}
.ribbon {
  position: absolute;
  top: -16px;
  left: -10px;
  z-index: 4;
  padding: .55rem 1.6rem;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--rose-300), var(--rose-500));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 12px 26px -12px rgba(217, 45, 114, .8);
  transform: rotate(-6deg);
}
.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
}
.ribbon::before { left: -7px; }
.ribbon::after { right: -7px; }
.fps-chip {
  position: absolute;
  left: -14px;
  bottom: 22%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  border-radius: var(--r-pill);
  border: 2px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 800;
  box-shadow: var(--shadow-card);
}
.fps-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-400);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint-400) 22%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- 9. Panels / cards ---------- */
.panel {
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Feature list — mirrors the game's own rounded tiles */
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.feature {
  position: relative;
  display: flex;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.feature-ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 20px;
  border: 2px solid var(--line);
  background: linear-gradient(140deg, var(--rose-100), var(--rose-200));
  font-size: 1.55rem;
  line-height: 1;
}
[data-theme="dark"] .feature-ico { background: linear-gradient(140deg, rgba(255, 142, 196, .2), rgba(255, 142, 196, .08)); }
.feature h3 { margin-bottom: .3rem; font-size: 1.24rem; }
.feature p { margin: 0; font-size: .97rem; }
.feature-no {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  opacity: .35;
}

/* Platform / download cards */
.dl-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1.25rem; align-items: start; }
.dl-card {
  position: relative;
  padding: 1.7rem 1.6rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
}
.dl-card--hero {
  background: linear-gradient(165deg, var(--surface-2), var(--surface-3));
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.dl-badge {
  position: absolute;
  top: -14px;
  left: 1.6rem;
  padding: .3rem .85rem;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px -10px var(--glow);
}
.dl-card h3 { margin-bottom: .4rem; font-size: 1.6rem; }
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}
.dl-card ul { display: grid; gap: .45rem; margin-bottom: 1.3rem; }
.dl-card li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: .97rem; }
.dl-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
}
.dl-card li b { color: var(--ink-soft); }
.safe-note {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.1rem;
  padding: .7rem 1rem;
  border: 1px solid var(--safe-line);
  border-radius: var(--r-md);
  background: var(--safe-bg);
  color: var(--safe-ink);
  font-size: .9rem;
  font-weight: 800;
}
.planned {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  border-radius: var(--r-pill);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.filters button {
  min-height: 44px;
  padding: .45rem 1.05rem;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filters button:hover { border-color: var(--line-strong); color: var(--brand); }
.filters button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 10px 20px -12px var(--glow);
}
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.gallery figure { margin: 0; }
.gallery .shot { padding: .4rem; }
.gallery .shot img { aspect-ratio: 16 / 10; object-fit: cover; }
.gallery figcaption {
  padding: .65rem .3rem .1rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}
.gallery figure:nth-child(3n + 1) .shot { transform: rotate(-1.6deg); }
.gallery figure:nth-child(3n + 2) .shot { transform: rotate(1.3deg) translateY(6px); }
.gallery figure:nth-child(3n + 3) .shot { transform: rotate(-1deg) translateY(-4px); }
.gallery figure:hover .shot { transform: rotate(0deg) translateY(-6px); }
.gallery .shot { cursor: zoom-in; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 12px 24px -12px var(--glow);
}
.step h3 { margin-bottom: .25rem; font-size: 1.2rem; }
.step p { margin: 0; font-size: .97rem; }

/* Release rows */
.releases { border: 2px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.releases a {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.4rem;
  transition: background-color .2s var(--ease);
}
.releases a + a { border-top: 1px solid var(--line); }
.releases a:hover { background: var(--brand-soft); }
.releases strong { font-family: var(--font-display); font-size: 1.1rem; }
.releases span { color: var(--muted); font-size: .95rem; }
.pill {
  display: inline-block;
  padding: .28rem .8rem;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  border: 1px solid var(--line-strong);
  color: var(--brand);
  font-size: .82rem;
  font-weight: 800;
}

/* FAQ */
.faq-group {
  margin: 0 0 1.2rem;
  font-size: 1.15rem;
  color: var(--brand);
  text-align: center;
}
.faq-item {
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: .7rem;
  overflow: hidden;
  transition: border-color .22s var(--ease), background-color .22s var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq-item summary {
  position: relative;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-item p { margin: 0; padding: 0 1.3rem 1.2rem; }
.faq-item a { color: var(--brand); text-decoration: underline; text-underline-offset: .2em; }

/* Game tiles / video tiles */
.tile {
  display: block;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.tile:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile strong { display: block; padding: .8rem 1rem; font-family: var(--font-display); font-size: 1.02rem; }
.video-tile { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; }
.play {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  color: var(--brand-ink);
  font-size: 1.1rem;
  box-shadow: 0 12px 24px -12px var(--glow);
}
.video-tile small { display: block; color: var(--muted); font-size: .87rem; }

/* Share bar */
.share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.6rem 0 0;
  color: var(--muted);
  font-weight: 700;
}
.share div { display: flex; gap: .45rem; }
.share a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-size: 1.05rem;
  font-weight: 800;
  transition: transform .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.share a:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); }

/* ---------- 10. Article pages ---------- */
.article-hero {
  position: relative;
  isolation: isolate;
  margin-top: 2rem;
  padding: clamp(2rem, 6vw, 4.2rem);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(620px 320px at 88% 0%, var(--brand-soft), transparent 65%),
    var(--surface-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.article-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: .5;
  mask-image: linear-gradient(115deg, transparent 42%, #000 100%);
}
.crumb {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.1rem;
  color: var(--brand);
  font-weight: 800;
  font-size: .9rem;
}
.crumb::before { content: "\2190"; }
.article-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); margin-bottom: .8rem; }
.article-hero .intro { max-width: 62ch; margin-bottom: 1.8rem; font-size: 1.08rem; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .38fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.article-layout article section {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.7rem;
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.article-layout h2 { margin-bottom: .55rem; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.article-layout section p:last-child { margin-bottom: 0; }
.article-aside {
  position: sticky;
  top: 100px;
  padding: 1.4rem 1.5rem;
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.article-aside h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.article-aside a {
  display: block;
  padding: .65rem .2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.article-aside a:hover { color: var(--brand); padding-left: .5rem; }
.format-list { margin: 0 0 1rem; }
.format-list div {
  display: grid;
  grid-template-columns: minmax(7ch, .3fr) 1fr;
  gap: 1rem;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}
.format-list dt { margin: 0; font-family: var(--font-display); font-weight: 800; color: var(--brand); }
.format-list dd { margin: 0; }

/* ---------- 11. Footer ---------- */
.foot {
  margin-top: var(--step);
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--surface-3));
}
.foot-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.foot strong { font-family: var(--font-display); font-size: 1.2rem; }
.foot p { max-width: 54ch; margin: .4rem 0 0; font-size: .92rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
.foot-links a { color: var(--muted); font-weight: 700; font-size: .93rem; }
.foot-links a:hover { color: var(--brand); }

/* ---------- 12. Lightbox ---------- */
.viewer {
  max-width: min(94vw, 1180px);
  max-height: 92vh;
  padding: .7rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.viewer::backdrop { background: rgba(20, 8, 18, .82); backdrop-filter: blur(6px); }
.viewer img { max-height: calc(92vh - 90px); border-radius: var(--r-md); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .4rem .3rem .1rem; }
.viewer-cap { color: var(--muted); font-weight: 700; font-size: .93rem; }
.viewer-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s var(--ease);
}
.viewer-btn:hover { transform: scale(1.08); }

/* ---------- 13. Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1080px) {
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .dl-card--hero { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .nav-links a { padding: .45rem .62rem; font-size: .92rem; }
  .nav { gap: .9rem; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.4rem; }
  .hero-copy { max-width: 44rem; }
  .hero-art { max-width: 640px; }
  .wordmark { width: min(100%, 500px); }
  .feature-list { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 78px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: 1rem var(--gutter) 1.6rem;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .3s var(--ease);
  }
  .nav-links.is-open { transform: none; }
  .nav-links a { padding: .75rem 1rem; font-size: 1.05rem; }
  .menu-toggle { display: block; }
  .nav .btn { display: none; }
  .dl-grid { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .releases a { grid-template-columns: 1fr auto; gap: .3rem .8rem; }
  .releases a span:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero-art { padding-bottom: 16%; }
  .hero-art .shot--side { width: 42%; right: 0; }
  .ribbon { top: -12px; left: 0; font-size: .8rem; padding: .45rem 1.1rem; }
  .fps-chip { left: -6px; bottom: 26%; font-size: .74rem; padding: .35rem .7rem; }
  .feature { flex-direction: column; }
}

/* ---------- 15. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .top, .bg, .bg-stars, .bg-confetti, .share, .filters { display: none !important; }
  body { background: #fff; color: #000; }
}
