/* ==========================================================================
   BLOSOM AI — official website stylesheet
   Shares the design language of the BLOSOM Flutter app (tokens below).
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  color-scheme: light;

  /* Brand (app tokens) */
  --primary: #6C63FF;
  --secondary: #42D6B5;
  --accent: #FFCA5C;
  --petal: #FF8FB1;
  --success: #42C98A;
  --danger: #FF6B6B;

  /* Surfaces */
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface-2: #F0F2F9;
  --border: #E6E8F2;
  --text: #202332;
  --muted: #8B91A7;          /* app token: icons, decorative, large text */
  --text-2: #5D6379;         /* body copy: AA contrast on bg + surface */

  /* Derived */
  --primary-ink: #5047E5;    /* small primary text on light surfaces */
  --btn-bg: #5F56F5;         /* filled button (white label passes AA) */
  --btn-edge: #4038C9;
  --primary-soft: #ECEBFF;
  --secondary-soft: #DFF8F1;
  --secondary-ink: #0E7360;
  --accent-soft: #FFF3D9;
  --accent-ink: #8A5A00;
  --petal-soft: #FFE9F0;
  --petal-ink: #B8336A;
  --success-ink: #1A7F5A;
  --header-bg: rgba(255, 255, 255, .58);          /* frosted glass, at top of page */
  --header-bg-scrolled: rgba(247, 248, 252, .76);

  /* Aurora (brand gradient) */
  --aurora: linear-gradient(120deg, #6C63FF 0%, #A66CFF 45%, #FF8FB1 80%, #FFB38A 100%);
  /* Same hues, deepened so white text stays >= 4.5:1 at every point (worst 4.67:1).
     Used wherever the gradient carries white text: CTAs, AI badge, chat bubbles. */
  --aurora-strong: linear-gradient(120deg, #5B52F2 0%, #8150EA 45%, #B4479B 80%, #C24A6E 100%);
  --aurora-text: var(--aurora-strong);
  --aurora-edge: #4A3AB8;
  --aurora-op: .42;

  /* Hero / world lighting */
  --sky-top: #E9EBFF;
  --sky-bottom: #F7F8FC;
  --hill-far: #D5EEDC;
  --hill-mid: #B4E3C3;
  --hill-near: #8FD3A6;
  --hill-front: #F7F8FC;
  --roof: #FFB38A;
  --wall: #FFF7EC;
  --cloud: #FFFFFF;
  --cloud-shade: #EEF0FB;
  --star-op: 0;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(32, 35, 50, .03), 0 8px 22px -6px rgba(54, 48, 140, .07);
  --shadow-md: 0 2px 6px rgba(32, 35, 50, .03), 0 20px 44px -12px rgba(54, 48, 140, .12);
  --shadow-lg: 0 4px 12px rgba(32, 35, 50, .04), 0 36px 84px -20px rgba(54, 48, 140, .2);

  /* Radius / spacing */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-xl: 32px;
  --r-pill: 999px;

  --font-display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: 16px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #8C85FF;
    --secondary: #4FE0C0;
    --accent: #FFD47A;
    --petal: #FF9DBC;
    --bg: #11131F;
    --surface: #1B1E2E;
    --surface-2: #242840;
    --border: #2E3350;
    --text: #EEF0FA;
    --muted: #9AA0BC;
    --text-2: #A7ADC8;
    --primary-ink: #ABA6FF;
    --btn-bg: #5F56F5;
    --btn-edge: #3A33B8;
    --primary-soft: #262650;
    --secondary-soft: #173832;
    --secondary-ink: #6FECD0;
    --accent-soft: #3A3120;
    --accent-ink: #FFD47A;
    --petal-soft: #3A2333;
    --petal-ink: #FFB3CB;
    --success-ink: #6FE0A8;
    --header-bg: rgba(17, 19, 31, .5);
    --header-bg-scrolled: rgba(17, 19, 31, .74);
    --aurora-text: var(--aurora);
    --aurora-edge: #3A2F99;
    --aurora-op: .2;
    --sky-top: #161936;
    --sky-bottom: #11131F;
    --hill-far: #1E2A3E;
    --hill-mid: #1C3236;
    --hill-near: #1D3D35;
    --hill-front: #11131F;
    --roof: #C9775A;
    --wall: #3A3550;
    --cloud: #2A2E4C;
    --cloud-shade: #232741;
    --star-op: 1;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 22px -6px rgba(0, 0, 0, .28);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .25), 0 20px 44px -12px rgba(0, 0, 0, .4);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, .25), 0 36px 84px -20px rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #8C85FF;
  --secondary: #4FE0C0;
  --accent: #FFD47A;
  --petal: #FF9DBC;
  --bg: #11131F;
  --surface: #1B1E2E;
  --surface-2: #242840;
  --border: #2E3350;
  --text: #EEF0FA;
  --muted: #9AA0BC;
  --text-2: #A7ADC8;
  --primary-ink: #ABA6FF;
  --btn-bg: #5F56F5;
  --btn-edge: #3A33B8;
  --primary-soft: #262650;
  --secondary-soft: #173832;
  --secondary-ink: #6FECD0;
  --accent-soft: #3A3120;
  --accent-ink: #FFD47A;
  --petal-soft: #3A2333;
  --petal-ink: #FFB3CB;
  --success-ink: #6FE0A8;
  --header-bg: rgba(17, 19, 31, .5);
  --header-bg-scrolled: rgba(17, 19, 31, .74);
  --aurora-text: var(--aurora);
  --aurora-edge: #3A2F99;
  --aurora-op: .2;
  --sky-top: #161936;
  --sky-bottom: #11131F;
  --hill-far: #1E2A3E;
  --hill-mid: #1C3236;
  --hill-near: #1D3D35;
  --hill-front: #11131F;
  --roof: #C9775A;
  --wall: #3A3550;
  --cloud: #2A2E4C;
  --cloud-shade: #232741;
  --star-op: 1;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 22px -6px rgba(0, 0, 0, .28);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .25), 0 20px 44px -12px rgba(0, 0, 0, .4);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .25), 0 36px 84px -20px rgba(0, 0, 0, .55);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }
@media (min-width: 1600px) { :root { --container: 1280px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
svg { overflow: visible; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 900; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
ul { margin: 0; padding: 0; }
::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--btn-bg); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

main { overflow-x: hidden; }
@supports (overflow: clip) { main { overflow-x: clip; } }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 3. Typography helpers ---------- */
.display {
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.5rem);
  line-height: .96;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.h2 {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.75rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.15; }
.h4 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-2); }
.hl { color: var(--primary); }
.hl-swash { position: relative; display: inline-block; white-space: nowrap; }
.hl-swash svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .32em; overflow: visible; }
.hl-swash path { stroke: var(--accent); stroke-width: 7; fill: none; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s .6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.eyebrow {
  --eb-bg: var(--primary-soft);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: .8125rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary-ink);
  /* soft fill + thin aurora rim */
  border: 1.5px solid transparent;
  background: linear-gradient(var(--eb-bg), var(--eb-bg)) padding-box, var(--aurora) border-box;
  padding: 7px 14px 7px 9px; border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.eyebrow svg { width: 18px; height: 18px; }
.eyebrow--teal { color: var(--secondary-ink); --eb-bg: var(--secondary-soft); }
.eyebrow--gold { color: var(--accent-ink); --eb-bg: var(--accent-soft); }
.eyebrow--pink { color: var(--petal-ink); --eb-bg: var(--petal-soft); }
.eyebrow--on-dark { color: #CFCBFF; --eb-bg: #262848; }
.eyebrow--aurora { color: #fff; border: 0; padding: 8.5px 16px 8.5px 11px; background: var(--btn-bg); background-image: var(--aurora-strong); box-shadow: 0 10px 24px -12px rgba(166, 108, 255, .8); }

/* Gradient text (large display text only). Light: deep aurora (>= 4.6:1). Dark: full aurora. */
.text-aurora { background: var(--aurora-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
@media (forced-colors: active) { .text-aurora { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; } }

/* AI badge chip (wordmark + inline) */
.ai-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: .8125rem; line-height: 1; letter-spacing: .06em;
  padding: 5px 7px 4px; border-radius: 8px; color: #fff;
  background: var(--btn-bg); background-image: var(--aurora-strong);
  box-shadow: 0 2px 0 var(--aurora-edge), 0 6px 14px -6px rgba(166, 108, 255, .7);
  white-space: nowrap; flex: none;
}

/* Soft aurora glow (decorative, static unless motion is allowed) */
.aurora-glow {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  background: var(--aurora); filter: blur(72px); opacity: var(--aurora-op);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}
@keyframes auroraDrift { from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); } to { transform: translate3d(-4%, 3%, 0) rotate(10deg) scale(1.06); } }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-bottom: 20px; }
.section-head .lead { margin: 0; }

/* ---------- 4. Buttons ---------- */
.btn {
  --edge: 5px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border-radius: 18px; border: 0;
  font-family: var(--font-display); font-weight: 900; font-size: 1.0625rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out), background-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary {
  background-color: var(--btn-bg); background-image: var(--aurora-strong); background-size: 170% 100%; background-position: 0% 50%;
  color: #fff; box-shadow: 0 var(--edge) 0 var(--aurora-edge), 0 14px 28px -8px rgba(129, 80, 234, .5);
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out), background-position .5s var(--ease-out);
}
.btn--primary:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 calc(var(--edge) + 2px) 0 var(--aurora-edge), 0 20px 36px -10px rgba(180, 71, 155, .45); }
.btn--ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--border), 0 var(--edge) 0 var(--border); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--primary), 0 calc(var(--edge) + 2px) 0 var(--primary-soft); }
.btn--light { background: #fff; color: #2A2470; box-shadow: 0 var(--edge) 0 rgba(20, 16, 90, .35); }
.btn--light:hover { transform: translateY(-2px); }
.btn--dark { background: #202332; color: #fff; box-shadow: 0 var(--edge) 0 #0B0C14; }
.btn:active { transform: translateY(var(--edge)) scale(.96); box-shadow: 0 0 0 transparent; }
.btn--sm { min-height: 44px; padding: 0 18px; border-radius: 14px; font-size: .9375rem; --edge: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px 14px; align-items: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-display); font-weight: 800; color: var(--primary-ink); text-decoration: none;
}
.text-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 60%, transparent);
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: 0 1px 0 var(--border), 0 10px 30px -18px rgba(54, 48, 140, .3);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--bg); }
}
.nav { display: flex; align-items: center; height: 76px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; flex: none; }
.brand-mark { width: 38px; height: 38px; transition: transform .5s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(72deg) scale(1.06); }
.brand-word { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: .02em; }
.brand .ai-badge { margin-left: -4px; transform: translateY(-1px); }
.nav-primary { margin-left: auto; }
.nav-links { display: none; list-style: none; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; text-decoration: none; color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--primary-ink); background: var(--primary-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--surface); border: 1.5px solid var(--border); color: var(--text);
  transition: transform .15s var(--ease-out), border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--primary); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-toggle .i-moon-wrap { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun-wrap { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon-wrap { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun-wrap { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon-wrap { display: block; }
}
.nav-download { display: none; }
.menu-toggle { display: inline-grid; }

@media (min-width: 960px) { .nav-download { display: inline-flex; } }
@media (min-width: 1120px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed; inset: 76px 0 auto 0; z-index: 99;
  padding: 8px var(--gutter) 24px;
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: transform .28s var(--ease-out), opacity .2s, visibility 0s .28s;
}
.mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .28s var(--ease-out), opacity .2s; }
.mobile-menu ul { list-style: none; display: grid; gap: 4px; margin-bottom: 16px; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px;
  border-radius: 16px; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1.25rem;
}
.mobile-menu a:not(.btn):hover, .mobile-menu a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
.mobile-menu a:not(.btn) svg { width: 20px; height: 20px; color: var(--muted); }
.mobile-menu .btn { width: 100%; }
@media (min-width: 1120px) { .mobile-menu { display: none; } }

/* ---------- 6. Sections & cards ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--alt { background: var(--surface); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px;
  border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2);
  font-family: var(--font-display); font-weight: 800; font-size: .8125rem; letter-spacing: .02em;
}
.chip svg { width: 16px; height: 16px; }
.chip--xp { background: var(--accent-soft); color: var(--accent-ink); }
.chip--coin { background: var(--accent-soft); color: var(--accent-ink); }
.chip--teal { background: var(--secondary-soft); color: var(--secondary-ink); }
.chip--purple { background: var(--primary-soft); color: var(--primary-ink); }
.chip--pink { background: var(--petal-soft); color: var(--petal-ink); }

.ic { width: 24px; height: 24px; flex: none; }
.ic-gold { color: #F5B83D; }
.ic-purple { color: var(--primary); }
.ic-teal { color: var(--secondary); }
.ic-pink { color: var(--petal); }
.ic-green { color: var(--success); }
.ic-red { color: var(--danger); }

/* Icon tile used in feature cards */
.tile {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; flex: none;
  background: var(--primary-soft); color: var(--primary);
}
.tile svg { width: 30px; height: 30px; }
.tile--teal { background: var(--secondary-soft); color: var(--secondary); }
.tile--gold { background: var(--accent-soft); color: #F5B83D; }
.tile--pink { background: var(--petal-soft); color: var(--petal); }
.tile--green { background: var(--secondary-soft); color: var(--success); }
.tile--red { background: var(--petal-soft); color: var(--danger); }
.tile--aurora { background: var(--btn-bg); background-image: var(--aurora-strong); color: #fff; box-shadow: 0 8px 18px -10px rgba(129, 80, 234, .8); }

/* ---------- 7. Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="scale"] { transform: scale(.92); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.paused, .paused * { animation-play-state: paused !important; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: -76px; padding-top: 76px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 78%);
}
.aurora-glow--hero { width: min(860px, 130vw); aspect-ratio: 1.3; right: -16%; top: 2%; }
@media (max-width: 959px) { .aurora-glow--hero { right: -55%; top: 36%; } }
.hero-inner {
  display: grid; gap: 24px; align-items: center;
  padding-top: clamp(32px, 6vw, 72px); padding-bottom: 0;
  position: relative; z-index: 2;
}
.hero-copy { max-width: 640px; }
.hero-copy .display { margin-bottom: 24px; }
.hero-copy .lead { margin-bottom: 32px; max-width: 30em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; color: var(--text-2); font-size: .9375rem; font-weight: 600; list-style: none; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 20px; height: 20px; color: var(--success); }
.hero-play { margin-top: 12px; }

.hero-stage { position: relative; height: clamp(400px, 92vw, 560px); margin-inline: auto; width: 100%; max-width: 560px; }
.hero-stage .stage-glow {
  position: absolute; left: 50%; top: 52%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
}
:root[data-theme="dark"] .hero-stage .stage-glow { background: radial-gradient(closest-side, rgba(140, 133, 255, .22), rgba(140, 133, 255, 0)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-stage .stage-glow { background: radial-gradient(closest-side, rgba(140, 133, 255, .22), rgba(140, 133, 255, 0)); } }
.hero-char { position: absolute; left: 50%; bottom: 6%; width: min(58%, 290px); transform: translateX(-50%); z-index: 2; }
.hero-pip { position: absolute; left: 70%; top: 22%; width: min(19%, 96px); z-index: 3; }
.hero-island { position: absolute; left: 50%; bottom: 0; width: 92%; transform: translateX(-50%); z-index: 1; }

.float-card {
  position: absolute; z-index: 4;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  animation: bob 6s ease-in-out infinite;
}
.float-xp {
  left: 0; top: 18%; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; color: var(--accent-ink);
  animation-delay: -1s;
}
.float-xp .tile { width: 40px; height: 40px; border-radius: 12px; }
.float-xp .tile svg { width: 26px; height: 26px; }
.float-coins { right: 0; top: 4%; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; animation-delay: -3s; }
.float-coins .lbl { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); line-height: 1; }
.float-coins .num { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.375rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.coin-icon { width: 40px; height: 40px; }
.coin-icon.bump { animation: coinBump .5s var(--ease-spring); }
@keyframes coinBump { 0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(-8deg); } 100% { transform: scale(1); } }
.float-quest { right: 0; bottom: 14%; width: 232px; padding: 14px 16px 16px; animation-delay: -2s; }
.quest-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.quest-top .tile { width: 36px; height: 36px; border-radius: 11px; }
.quest-top .tile svg { width: 22px; height: 22px; }
.quest-top > span:last-child { display: grid; }
.quest-kicker { font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-ink); line-height: 1.2; }
.quest-title { font-family: var(--font-display); font-weight: 900; font-size: 1.0625rem; line-height: 1.15; }
.quest-desc { font-size: .8125rem; color: var(--text-2); margin-bottom: 10px; line-height: 1.4; }
.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--secondary); transition: width .8s var(--ease-out); }
.bar--xp > span { background: var(--primary); }
.quest-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .75rem; font-weight: 700; color: var(--text-2); }
.quest-foot b { color: var(--accent-ink); font-family: var(--font-display); font-weight: 900; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.xp-pop {
  position: absolute; z-index: 6; pointer-events: none;
  font-family: var(--font-display); font-weight: 900; font-size: 1.125rem; color: var(--accent-ink);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; white-space: nowrap;
  animation: xpUp 1.3s var(--ease-out) forwards;
}
@keyframes xpUp { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 20% { opacity: 1; transform: translateY(0) scale(1.08); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(1); } }

.hero-landscape { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; }
.hero-landscape svg { width: 100%; height: clamp(160px, 22vw, 300px); }
.hz-far { fill: var(--hill-far); }
.hz-mid { fill: var(--hill-mid); }
.hz-near { fill: var(--hill-near); }
.hz-front { fill: var(--hill-front); }
.hz-roof { fill: var(--roof); }
.hz-wall { fill: var(--wall); }
.hz-win { fill: #FFCA5C; }
.hz-tree { fill: var(--hill-near); }
.hz-trunk { fill: #A0745A; }
.stars { opacity: var(--star-op); transition: opacity .4s; }
.stars circle { fill: #fff; animation: twinkle 3s ease-in-out infinite; }
.stars circle:nth-child(3n) { animation-delay: -1s; }
.stars circle:nth-child(3n+1) { animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }

.clouds { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.clouds .stars { position: absolute; inset: 0; width: 100%; height: 75%; }
.cloud { position: absolute; width: 180px; animation: drift linear infinite; }
.cloud path { fill: var(--cloud); }
.cloud .shade { fill: var(--cloud-shade); }
.cloud--1 { top: 16%; width: 200px; animation-duration: 70s; animation-delay: -10s; }
.cloud--2 { top: 34%; width: 130px; animation-duration: 90s; animation-delay: -55s; opacity: .85; }
.cloud--3 { top: 8%; width: 150px; animation-duration: 80s; animation-delay: -35s; opacity: .7; }
.cloud--4 { top: 52%; width: 240px; animation-duration: 110s; animation-delay: -80s; opacity: .6; }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(calc(100vw + 40px)); } }

.petals { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.petal { position: absolute; top: -40px; width: 16px; height: 16px; animation: fall linear infinite; opacity: .85; }
.petal svg { width: 100%; height: 100%; animation: spin 4s ease-in-out infinite alternate; }
@keyframes fall {
  0% { transform: translate3d(0, -40px, 0); opacity: 0; }
  10% { opacity: .9; }
  90% { opacity: .9; }
  100% { transform: translate3d(-120px, 760px, 0); opacity: 0; }
}
@keyframes spin { from { transform: rotate(-30deg) scale(1); } to { transform: rotate(160deg) scale(.8); } }

.sparkle { position: absolute; width: 18px; height: 18px; color: var(--accent); animation: sparkle 2.6s ease-in-out infinite; pointer-events: none; z-index: 3; }
@keyframes sparkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 32px; padding-top: 56px; min-height: min(760px, calc(100vh - 20px)); padding-bottom: 72px; }
  .hero-stage { height: 580px; max-width: none; }
  .float-xp { left: -4%; }
}
@media (max-width: 480px) {
  .hero-stage { height: 480px; }
  .hero-char { width: 54%; left: 40%; bottom: 17%; }
  .hero-pip { left: 74%; top: 20%; }
  .float-quest { width: 186px; padding: 12px 12px 14px; right: -4px; bottom: 2%; }
  .float-quest .quest-desc { display: none; }
  .float-coins { right: -4px; }
  .float-xp { left: -4px; font-size: 1.05rem; }
  .hero-meta { font-size: .875rem; }
}

/* ---------- 9. Character SVG ---------- */
.char { overflow: visible; }
.char .c-hair { fill: var(--c-hair, #4A3326); transition: fill .4s; }
.char .c-hair-shade { fill: var(--c-hair-shade, #33221A); transition: fill .4s; }
.char .c-hood { fill: var(--c-hood, #6C63FF); transition: fill .4s; }
.char .c-hood-dark { fill: var(--c-hood-dark, #5249E6); transition: fill .4s; }
.char .c-pack { fill: var(--c-pack, #42D6B5); transition: fill .4s; }
.char .c-pack-dark { fill: var(--c-pack-dark, #27B392); transition: fill .4s; }
.char .c-body { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.4s ease-in-out infinite; }
.char .c-head { animation: headBob 3.4s ease-in-out infinite; }
.char .c-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 5.2s infinite; }
.char .c-sprout { transform-box: fill-box; transform-origin: 30% 100%; animation: sway 3.6s ease-in-out infinite; }
.char .acc { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .4s var(--ease-spring); }
.char .acc.on { opacity: 1; transform: none; }
.char.pop { animation: charPop .45s var(--ease-spring); }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.015, 1.03); } }
@keyframes headBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.08); } 96% { transform: scaleY(1); } }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(7deg); } }
@keyframes charPop { 0% { transform: scale(1); } 40% { transform: scale(.95, 1.04); } 100% { transform: scale(1); } }

.pet { animation: petFloat 4.2s ease-in-out infinite; }
.pet svg { width: 100%; height: auto; }
@keyframes petFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* ---------- 10. How it works ---------- */
.steps { display: grid; gap: 20px; list-style: none; counter-reset: s; position: relative; }
.step {
  position: relative; padding: 28px 24px 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--font-display); font-weight: 900; font-size: 3.5rem; line-height: 1; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 2px var(--primary); margin-bottom: 20px; display: block;
}
.step .tile { position: absolute; top: 28px; right: 24px; }
.step:hover .tile svg { animation: wiggle .6s var(--ease-spring); }
@keyframes wiggle { 0% { transform: rotate(0); } 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(8deg); } 100% { transform: rotate(0); } }
.step h3 { font-size: 1.5rem; letter-spacing: .04em; margin-bottom: 8px; text-transform: uppercase; }
.step p { margin: 0; color: var(--text-2); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps::before {
    content: ""; position: absolute; left: 6%; right: 6%; top: 60px; height: 0;
    border-top: 3px dashed var(--border); z-index: -1;
  }
}

/* ---------- 11. Tasks / phone ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--rev > :first-child { order: 2; }
}
.feature-list { list-style: none; display: grid; gap: 14px; margin-top: 32px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tile { width: 44px; height: 44px; border-radius: 14px; }
.feature-list .tile svg { width: 24px; height: 24px; }
.feature-list strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.125rem; line-height: 1.3; }
.feature-list span { color: var(--text-2); font-size: .975rem; }

.phone-wrap { position: relative; display: grid; place-items: center; padding-block: 24px; }
.phone-blob { position: absolute; width: min(460px, 96%); aspect-ratio: 1; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: var(--primary-soft); animation: morph 14s ease-in-out infinite; }
@keyframes morph { 0%, 100% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; transform: rotate(0); } 50% { border-radius: 56% 44% 46% 54% / 40% 58% 42% 60%; transform: rotate(12deg); } }
.phone {
  position: relative; width: 300px; max-width: 86vw; aspect-ratio: 300 / 620;
  border-radius: 48px; padding: 11px; background: #15172A;
  box-shadow: inset 0 0 0 2px #2C2F48, 0 0 0 1px rgba(127,127,160,.25), 0 40px 80px -20px rgba(32, 28, 110, .45), 0 18px 36px -18px rgba(0, 0, 0, .4);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background: #F7F8FC; color: #202332; display: flex; flex-direction: column;
  font-size: 13px; line-height: 1.35;
}
:root[data-theme="dark"] .phone-screen { background: #11131F; color: #EEF0FA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone-screen { background: #11131F; color: #EEF0FA; } }
.phone-island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 6px; font-weight: 700; font-size: 12px; }
.phone-status .si { display: flex; gap: 5px; align-items: center; }
.phone-status svg { width: 14px; height: 14px; }
.app-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; }
.app-avatar { width: 40px; height: 40px; border-radius: 14px; background: var(--primary-soft); overflow: hidden; flex: none; }
.app-avatar svg { width: 100%; height: 100%; }
.app-hello { flex: 1; min-width: 0; }
.app-hello b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 15px; line-height: 1.15; }
.app-hello small { color: var(--text-2); font-size: 11px; font-weight: 600; }
.app-coins { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 5px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-display); font-weight: 900; font-size: 12px; font-variant-numeric: tabular-nums; }
.app-coins svg { width: 16px; height: 16px; }
.app-xp { margin: 6px 16px 10px; }
.app-xp .row { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.app-xp .row b { color: var(--primary-ink); font-family: var(--font-display); font-weight: 900; }
.app-xp .bar { height: 8px; }
.routine { margin: 4px 12px 10px; padding: 14px 12px 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 6px 18px -10px rgba(54, 48, 140, .25); position: relative; }
.routine-head { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; }
.routine-head .tile { width: 32px; height: 32px; border-radius: 10px; }
.routine-head .tile svg { width: 20px; height: 20px; }
.routine-head b { font-family: var(--font-display); font-weight: 900; font-size: 15px; flex: 1; }
.routine-count { font-family: var(--font-display); font-weight: 900; font-size: 12px; color: var(--secondary-ink); background: var(--secondary-soft); border-radius: 99px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.routine .bar { height: 7px; margin: 0 4px 8px; }
.check-list { list-style: none; display: grid; gap: 2px; }
.check-item {
  position: relative; width: 100%; display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 6px 6px; border: 0; border-radius: 14px; background: transparent; text-align: left;
  font-weight: 600; font-size: 14px; transition: background-color .2s;
}
.check-item:hover { background: var(--surface-2); }
.check-box {
  position: relative; width: 26px; height: 26px; flex: none; border-radius: 9px;
  border: 2.5px solid var(--border); background: var(--surface); display: grid; place-items: center;
  transition: background-color .25s, border-color .25s;
}
.check-box svg { width: 16px; height: 16px; color: #fff; }
.check-box path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s .08s var(--ease-out); }
.check-item .lbl { flex: 1; transition: color .25s; }
.check-item .state { display: none; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.check-item .xpv { font-family: var(--font-display); font-weight: 900; font-size: 11px; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 7px; border-radius: 99px; }
.check-item[aria-pressed="true"] .check-box { background: var(--success); border-color: var(--success); animation: checkPop .4s var(--ease-spring); }
.check-item[aria-pressed="true"] .check-box path { stroke-dashoffset: 0; }
.check-item[aria-pressed="true"] .lbl { color: var(--text-2); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--success) 70%, transparent); }
.check-item[aria-pressed="true"] .state { display: inline; color: var(--success-ink); }
.check-item[aria-pressed="true"] .xpv { display: none; }
@keyframes checkPop { 0% { transform: scale(.85); } 55% { transform: scale(1.1); } 100% { transform: scale(1); } }
.routine-done {
  position: absolute; inset: 0; border-radius: inherit; display: grid; place-content: center; text-align: center; gap: 4px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); opacity: 0; transform: scale(.96); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease-spring);
}
.routine-done.show { opacity: 1; transform: none; }
.routine-done .big { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--primary-ink); }
.routine-done .xp { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--accent-ink); }
.routine-done svg { width: 48px; height: 48px; margin-inline: auto; color: #F5B83D; }
.app-chal { margin: 0 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--primary-soft); }
.app-chal .tile { width: 32px; height: 32px; border-radius: 10px; background: var(--surface); }
.app-chal .tile svg { width: 20px; height: 20px; }
.app-chal b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 12.5px; }
.app-chal small { font-size: 11px; color: var(--text-2); font-weight: 600; }
.app-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 8px 22px; border-top: 1px solid var(--border); background: var(--surface); }
.app-tabs span { display: grid; place-items: center; gap: 2px; font-size: 9px; font-weight: 700; color: var(--muted); }
.app-tabs span.on { color: var(--primary); }
.app-tabs svg { width: 20px; height: 20px; }
.phone .xp-pop { font-size: 14px; right: 18px; }
.phone-chip { position: absolute; z-index: 5; box-shadow: var(--shadow-md); animation: bob 5s ease-in-out infinite; }
.phone-chip.c1 { left: max(0px, calc(50% - 250px)); top: 18%; }
.phone-chip.c2 { right: max(0px, calc(50% - 250px)); top: 44%; animation-delay: -2s; }
.phone-chip.c3 { left: max(0px, calc(50% - 230px)); bottom: 14%; animation-delay: -3.5s; }
.phone-chip { padding: 8px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-display); font-weight: 900; font-size: .9375rem; display: inline-flex; gap: 8px; align-items: center; }
.phone-chip svg { width: 22px; height: 22px; }
@media (max-width: 520px) { .phone-chip { display: none; } }
.demo-hint { margin-top: 18px; text-align: center; font-size: .875rem; color: var(--text-2); font-weight: 600; position: relative; }

/* ---------- 11b. AI companion (Pip) ---------- */
.ai-section { isolation: isolate; overflow: hidden; }
.ai-section > .container { position: relative; z-index: 1; }
.aurora-glow--ai { width: min(820px, 150vw); aspect-ratio: 1.15; left: 50%; top: 58%; translate: -50% -50%; }
@media (min-width: 960px) { .aurora-glow--ai { left: 28%; top: 50%; } }
.ai-features .tile--aurora svg { width: 26px; height: 26px; }
.ai-footnote {
  display: flex; gap: 10px; align-items: flex-start; margin: 28px 0 0; padding: 14px 16px; max-width: 36em;
  border-radius: 18px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border);
  font-size: .875rem; line-height: 1.5; color: var(--text-2);
}
.ai-footnote svg { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: 1px; }
.ai-phone-wrap { padding-block: 40px 24px; }
.ai-pip { position: absolute; z-index: 6; width: 92px; right: max(0px, calc(50% - 222px)); top: 6px; }
.ai-chip.c1 { left: max(0px, calc(50% - 300px)); right: auto; top: 34%; bottom: auto; }
.ai-chip.c2 { left: auto; right: max(0px, calc(50% - 300px)); top: auto; bottom: 24%; animation-delay: -2.5s; }
@media (max-width: 520px) { .ai-pip { width: 70px; right: 0; top: 0; } }

.chat .phone-screen { font-size: 12.5px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-bottom: 1px solid var(--border); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--petal-soft); display: grid; place-items: center; flex: none; }
.chat-avatar svg { width: 36px; height: 36px; }
.chat-who { flex: 1; min-width: 0; }
.chat-who b { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 900; font-size: 15px; line-height: 1.2; }
.chat-who .ai-badge { font-size: 9.5px; padding: 3px 5px 2.5px; border-radius: 6px; box-shadow: none; }
.chat-who small { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--text-2); }
.chat-who .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }
.chat-head .si { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.chat-head .si svg { width: 16px; height: 16px; }
.chat-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 9px; padding: 14px 12px 8px; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 18px; line-height: 1.42; font-weight: 600; }
.bubble--me { align-self: flex-end; background-color: var(--btn-bg); background-image: var(--aurora-strong); color: #fff; border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.pip-row { position: relative; align-self: flex-start; max-width: 86%; }
.bubble--pip { max-width: none; display: inline-flex; gap: 6px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.bubble--pip svg { width: 15px; height: 15px; color: #F5B83D; flex: none; }
.chat-typing { position: absolute; left: 0; top: 0; display: none; gap: 4px; padding: 13px 14px; border-radius: 18px; border-bottom-left-radius: 6px; background: var(--surface); border: 1px solid var(--border); }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typingDot 1s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.gen-cards { list-style: none; display: grid; gap: 7px; }
.gen-card {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px 8px 8px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 16px -12px rgba(54, 48, 140, .35);
}
.gen-card .tile { width: 32px; height: 32px; border-radius: 11px; }
.gen-card .tile svg { width: 19px; height: 19px; }
.gen-txt { flex: 1; min-width: 0; display: grid; }
.gen-txt b { font-family: var(--font-display); font-weight: 900; font-size: 13.5px; line-height: 1.2; }
.gen-txt small { font-size: 10.5px; color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gen-card .xpv { font-family: var(--font-display); font-weight: 900; font-size: 11px; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 7px; border-radius: 99px; white-space: nowrap; }
.add-all {
  position: relative; display: grid; place-items: center; min-height: 38px; margin-top: 2px; border-radius: 13px;
  background-color: var(--btn-bg); background-image: var(--aurora-strong); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 3px 0 var(--aurora-edge);
}
.add-all > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; transition: opacity .25s, transform .35s var(--ease-spring); }
.add-all svg { width: 15px; height: 15px; }
.add-all .add-done { opacity: 0; transform: scale(.8); }
.add-all.press { transform: translateY(3px); box-shadow: none; }
.add-all.done { background-image: none; background-color: #1A7F5A; box-shadow: 0 3px 0 #11583E; }
.add-all.done .add-label { opacity: 0; transform: scale(.8); }
.add-all.done .add-done { opacity: 1; transform: none; }
.chat-compose { display: flex; align-items: center; gap: 8px; padding: 10px 12px 22px; border-top: 1px solid var(--border); background: var(--surface); }
.compose-field {
  position: relative; flex: 1; min-width: 0; height: 38px; padding: 0 13px; border-radius: 19px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: flex-end; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 600;
}
.compose-ph { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-2); font-weight: 500; }
.compose-text { flex: none; }
.compose-field .caret { display: none; width: 1.5px; height: 15px; margin-left: 1px; background: var(--primary); flex: none; animation: caretBlink 1s steps(1) infinite; }
.compose-field.has-text .compose-ph { display: none; }
.compose-field.has-text .caret { display: block; }
@keyframes caretBlink { 50% { opacity: 0; } }
.send-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background-color: var(--btn-bg); background-image: var(--aurora-strong); }
.send-btn svg { width: 17px; height: 17px; transform: translateX(-1px); }
.send-btn.pulse { animation: checkPop .4s var(--ease-spring); }
/* Animated states — only while the JS demo is playing (static final state otherwise) */
.chat.is-playing [data-step] { opacity: 0; transform: translateY(10px) scale(.94); transition: opacity .35s var(--ease-out), transform .5s var(--ease-spring); }
.chat.is-playing [data-step].in { opacity: 1; transform: none; }
.chat.is-playing .chat-typing { display: flex; }
.chat .phone .xp-pop, .chat.phone .xp-pop { font-size: 14px; }

/* ---------- 12. Adventure ---------- */
.adventure { overflow: hidden; }
.areas { position: relative; display: grid; gap: clamp(40px, 6vw, 72px); }
.area { display: grid; gap: 24px; align-items: center; position: relative; }
.area-scene {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg); isolation: isolate; background: #222;
}
.area-scene svg { width: 100%; height: 100%; }
.area-scene .layer { will-change: transform; }
.area-lock {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px;
  background: rgba(255, 255, 255, .92); color: #202332; font-family: var(--font-display); font-weight: 900; font-size: .9375rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}
.area-lock .lv { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 99px; background: var(--btn-bg); color: #fff; font-size: .8125rem; }
.area-num { font-family: var(--font-display); font-weight: 900; font-size: .875rem; letter-spacing: .14em; color: var(--text-2); text-transform: uppercase; margin-bottom: 8px; display: block; }
.area-info h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); text-transform: uppercase; margin-bottom: 12px; letter-spacing: -.01em; }
.area-info p { color: var(--text-2); margin-bottom: 18px; }
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.area-tags .chip { min-height: 34px; padding: 6px 12px; }
@media (min-width: 900px) {
  .area { grid-template-columns: 1.35fr 1fr; gap: 56px; }
  .area:nth-of-type(even) { grid-template-columns: 1fr 1.35fr; }
  .area:nth-of-type(even) .area-scene { order: 2; }
  .area-info { padding-block: 24px; }
}
.world-rail { display: none; }
@media (min-width: 1200px) {
  .world-rail {
    display: block; position: absolute; left: calc(var(--gutter) * -1 + 8px); top: 8%; bottom: 8%; width: 6px;
    border-radius: 99px; background: var(--border);
  }
  .world-rail span { display: block; width: 100%; height: var(--rail, 0%); border-radius: inherit; background: linear-gradient(var(--secondary), var(--primary)); }
}
.adventure-cta { margin-top: clamp(40px, 5vw, 64px); display: flex; justify-content: center; }

/* Scene animation helpers */
.anim-glow { animation: glow 2.8s ease-in-out infinite; }
.anim-glow:nth-of-type(2n) { animation-delay: -1.2s; }
.anim-glow:nth-of-type(3n) { animation-delay: -2s; }
@keyframes glow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.anim-fly { animation: fly 7s ease-in-out infinite; transform-box: fill-box; }
.anim-fly:nth-of-type(2n) { animation-duration: 9s; animation-delay: -3s; }
.anim-fly:nth-of-type(3n) { animation-duration: 6s; animation-delay: -5s; }
@keyframes fly { 0%, 100% { transform: translate(0, 0); opacity: .3; } 30% { opacity: 1; } 50% { transform: translate(14px, -18px); } 75% { transform: translate(-8px, -6px); opacity: .8; } }
.anim-float { animation: islandFloat 7s ease-in-out infinite; }
.anim-float-2 { animation: islandFloat 9s ease-in-out -3s infinite; }
@keyframes islandFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.anim-flag { transform-box: fill-box; transform-origin: 0 50%; animation: flag 2.4s ease-in-out infinite; }
@keyframes flag { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(6deg) scaleX(.9); } }
.anim-fall { animation: waterfall 1.2s linear infinite; }
@keyframes waterfall { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -40; } }
.anim-cloud { animation: cloudSlide 30s ease-in-out infinite alternate; }
@keyframes cloudSlide { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
.anim-sway { transform-box: fill-box; transform-origin: 50% 0; animation: lanternSway 3s ease-in-out infinite; }
@keyframes lanternSway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* ---------- 13. Character customizer ---------- */
.custom { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 960px) { .custom { grid-template-columns: 1fr 1.05fr; gap: 32px; } }
.custom-stage {
  position: relative; min-height: 460px; border-radius: var(--r-xl); overflow: hidden;
  background: var(--primary-soft); display: grid; place-items: end center; padding: 96px 0 40px;
}
.custom-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 42%, color-mix(in srgb, var(--surface) 75%, transparent), transparent 70%); }
.custom-stage .pedestal { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); width: 280px; height: 60px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 16%, transparent); }
.custom-char { position: relative; width: min(250px, 58vw); z-index: 2; }
.custom-pet { position: absolute; z-index: 3; width: min(84px, 20vw); left: calc(50% + min(92px, 22vw)); top: 26%; transition: opacity .3s, transform .4s var(--ease-spring); }
.custom-pet.hidden { opacity: 0; transform: scale(.4); }
.custom-pet .pet-v { display: none; }
.custom-pet .pet-v.on { display: block; }
.nameplate {
  position: absolute; top: 20px; left: 20px; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.nameplate .lv { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--btn-bg); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: .875rem; }
.nameplate b { display: block; font-family: var(--font-display); font-weight: 900; line-height: 1.1; }
.nameplate small { color: var(--text-2); font-size: .75rem; font-weight: 600; }
.equip-toast {
  position: absolute; bottom: 16px; left: 50%; z-index: 4; transform: translate(-50%, 10px); opacity: 0;
  padding: 8px 14px; border-radius: 99px; background: #202332; color: #fff; font-weight: 700; font-size: .875rem; white-space: nowrap;
  transition: opacity .25s, transform .35s var(--ease-spring);
}
.equip-toast.show { opacity: 1; transform: translate(-50%, 0); }
.custom-panel { padding: 24px; display: flex; flex-direction: column; }
@media (min-width: 640px) { .custom-panel { padding: 32px; } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab {
  min-height: 44px; padding: 0 13px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface);
  font-family: var(--font-display); font-weight: 800; font-size: .875rem; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px; transition: all .2s;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { border-color: var(--primary); color: var(--text); }
.tab[aria-selected="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; box-shadow: 0 4px 0 var(--btn-edge); }
.tab-panel h3 { font-size: 1.25rem; margin-bottom: 4px; }
.tab-panel > p { color: var(--text-2); font-size: .9375rem; margin-bottom: 16px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 10px; }
.opt {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 12px 6px 10px; min-height: 92px;
  border-radius: 18px; border: 2px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: .8125rem; color: var(--text-2); transition: transform .2s var(--ease-spring), border-color .2s, box-shadow .2s;
}
.opt:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.opt:active { transform: scale(.96); }
.opt[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); color: var(--text); }
.opt[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--success); color: #fff; font-size: 13px; font-weight: 900; box-shadow: 0 0 0 3px var(--surface);
}
.swatch { width: 40px; height: 40px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15), 0 0 0 3px var(--surface), 0 0 0 4.5px var(--border); }
.opt svg.opt-art { width: 44px; height: 44px; }
.custom-foot { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.custom-foot p { margin: 0; color: var(--text-2); font-size: .875rem; }

/* ---------- 14. Collection ---------- */
.collect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; }
@media (min-width: 640px) { .collect-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .collect-grid { grid-template-columns: repeat(6, 1fr); } }
.item {
  --rar: #A7AEC6; --rar-soft: #EEF0F6; --rar-ink: #555C74;
  position: relative; border-radius: 22px; padding: 10px 10px 14px; background: var(--surface);
  border: 3px solid var(--rar); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.item:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 18px 36px -12px color-mix(in srgb, var(--rar) 70%, transparent); }
.item-art { position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--rar-soft); display: grid; place-items: center; overflow: hidden; }
.item-art svg { width: 68%; height: 68%; transition: transform .4s var(--ease-spring); }
.item:hover .item-art svg { transform: scale(1.1) rotate(4deg); }
.item h3 { font-size: 1rem; margin: 10px 2px 6px; line-height: 1.2; font-weight: 900; }
.rarity { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 900; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rar-ink); background: var(--rar-soft); padding: 3px 8px 3px 6px; border-radius: 99px; }
.rarity i { display: inline-block; width: 8px; height: 8px; transform: rotate(45deg); border-radius: 2px; background: var(--rar); }
.item .cat { display: block; margin-top: 6px; font-size: .75rem; font-weight: 600; color: var(--text-2); }
.r-common { --rar: #A7AEC6; --rar-soft: #EFF1F7; --rar-ink: #4F566E; }
.r-uncommon { --rar: #42C98A; --rar-soft: #E2F7EC; --rar-ink: #16714C; }
.r-rare { --rar: #4DA3FF; --rar-soft: #E3F0FF; --rar-ink: #1B5FB0; }
.r-epic { --rar: #8C6CFF; --rar-soft: #EEE9FF; --rar-ink: #5B3BD8; }
.r-legendary { --rar: #FFB938; --rar-soft: #FFF3D6; --rar-ink: #8A5A00; }
.r-mythic { --rar: #FF8FB1; --rar-soft: #FFE9F0; --rar-ink: #B8336A; }
.item.r-mythic { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ang, 0deg), #FF8FB1, #8C85FF, #42D6B5, #FFCA5C, #FF8FB1) border-box; animation: mythic 4s linear infinite; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes mythic { to { --ang: 360deg; } }
:root[data-theme="dark"] :is(.item, .item-legend) { --rar-soft: color-mix(in srgb, var(--rar) 16%, #1B1E2E); --rar-ink: color-mix(in srgb, var(--rar) 55%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.item, .item-legend) { --rar-soft: color-mix(in srgb, var(--rar) 16%, #1B1E2E); --rar-ink: color-mix(in srgb, var(--rar) 55%, #fff); } }
.r-legendary .item-art::after, .r-mythic .item-art::after {
  content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.65) 50%, transparent 60%);
  transform: translateX(-70%); animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-70%); } 100% { transform: translateX(70%); } }
.js .collect-grid .item { opacity: 0; transform: scale(.7) translateY(16px); transition: opacity .45s var(--ease-out) var(--d, 0s), transform .6s var(--ease-spring) var(--d, 0s), box-shadow .3s; }
.js .collect-grid .item.is-in { opacity: 1; transform: none; }
.js .collect-grid .item.settled { transition: transform .3s var(--ease-out), box-shadow .3s; }
.js .collect-grid .item.settled:hover { transform: translateY(-6px) rotate(-1.5deg); }
.rarity-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; list-style: none; }
.rarity-legend li { padding: 0; }
.rarity-legend .rarity { font-size: .75rem; padding: 6px 12px 6px 10px; }

/* ---------- 15. Streak ---------- */
.streak-wrap { display: grid; gap: 24px; }
@media (min-width: 960px) { .streak-wrap { grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: stretch; } }
.streak-card { padding: 32px; border-radius: var(--r-xl); background: #FFF4E5; color: #3B2410; position: relative; overflow: hidden; }
:root[data-theme="dark"] .streak-card { background: #2B2118; color: #FFE9CF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .streak-card { background: #2B2118; color: #FFE9CF; } }
.streak-flame { position: absolute; right: 18px; top: 16px; width: 92px; height: 92px; opacity: .9; transform-origin: 50% 90%; animation: flicker 1.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 33% { transform: scale(1.06, .97) rotate(2deg); } 66% { transform: scale(.97, 1.05) rotate(-1deg); } }
.streak-card > * { position: relative; }
.streak-card .streak-flame { position: absolute; }
.streak-big { margin-top: 84px; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.5rem); line-height: 1; letter-spacing: -.02em; }
.streak-big span { font-variant-numeric: tabular-nums; }
.streak-card p { margin: 12px 0 24px; opacity: .85; }
.milestones { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.milestones li {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 99px;
  font-family: var(--font-display); font-weight: 900; font-size: .875rem;
  background: rgba(255, 255, 255, .6); color: inherit; border: 1.5px dashed rgba(160, 90, 20, .35);
}
:root[data-theme="dark"] .milestones li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 200, 140, .3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .milestones li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 200, 140, .3); } }
.milestones li.done { background: #FF9F43; color: #2A1600; border: 1.5px solid #FF9F43; }
.milestones li svg { width: 14px; height: 14px; }
.cal { padding: 28px; border-radius: var(--r-xl); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.cal-head h3 { font-size: 1.375rem; }
.cal-legend { display: flex; gap: 14px; font-size: .8125rem; color: var(--text-2); font-weight: 600; list-style: none; flex-wrap: wrap; }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-grid .dow { font-family: var(--font-display); font-weight: 900; font-size: .8125rem; color: var(--text-2); padding-bottom: 6px; }
.day {
  position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(.8rem, .7rem + .4vw, 1rem); color: var(--text-2);
  background: var(--surface-2); transition: background-color .3s, color .3s, transform .3s var(--ease-spring);
}
.day.empty { background: transparent; }
.day.future { opacity: .55; }
.day.done { background: var(--success); color: #0F3A28; transform: scale(1); animation: checkPop .45s var(--ease-spring); }
.day.done::after { content: "✓"; position: absolute; top: 2px; right: 5px; font-size: .625rem; font-weight: 900; }
.day.today { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px #FF9F43; }
.day.today.done { background: #FF9F43; color: #2A1600; }
@media (max-width: 400px) { .cal { padding: 18px; } .cal-grid { gap: 4px; } .day { border-radius: 9px; } .day.done::after { display: none; } }

/* ---------- 16. Offline ---------- */
.offline {
  position: relative; overflow: hidden; border-radius: clamp(24px, 3vw, 40px);
  background: #171A2E; color: #EEF0FA; padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 72px);
  display: grid; gap: 40px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.offline .stars { --star-op: 1; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 1; }
.offline > * { position: relative; }
.offline .h2 { color: #fff; margin-bottom: 20px; }
.offline .lead { color: #B9BEDA; }
.offline-points { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 560px) { .offline-points { grid-template-columns: 1fr 1fr; } }
.offline-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: #DADDF0; font-size: .975rem; }
.offline-points .tile { width: 40px; height: 40px; border-radius: 12px; background: rgba(140, 133, 255, .16); color: #B4AFFF; }
.offline-points .tile svg { width: 22px; height: 22px; }
.offline-points b { display: block; color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.0625rem; }
@media (min-width: 960px) { .offline { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.os-panel { background: #22253C; border: 1px solid #33385A; border-radius: 28px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); max-width: 420px; width: 100%; justify-self: center; }
.os-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; }
.os-row + .os-row { border-top: 1px solid #2F3352; border-radius: 0; }
.os-row .tile { width: 40px; height: 40px; border-radius: 12px; }
.os-row .tile svg { width: 22px; height: 22px; }
.os-row .tile.plane { background: #FF9F43; color: #fff; }
.os-row .tile.wifi { background: #4DA3FF; color: #fff; transition: background-color .3s; }
.os-row .tile.app { background: #42D6B5; color: #0F3A31; }
.os-row .name { flex: 1; font-weight: 700; white-space: nowrap; }
.os-row .val { white-space: nowrap; }
.os-row .val { color: #9AA0BC; font-weight: 600; font-size: .9375rem; }
.switch {
  position: relative; width: 64px; height: 38px; border-radius: 99px; border: 0; padding: 0; flex: none;
  background: #3A3F63; transition: background-color .3s;
}
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .35s var(--ease-spring); }
.switch[aria-checked="true"] { background: #42C98A; }
.switch[aria-checked="true"]::after { transform: translateX(26px); }
.offline-on .tile.wifi { background: #4A4F70; }
.os-toast {
  margin-top: 14px; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 20px;
  background: #F7F8FC; color: #202332; transition: transform .4s var(--ease-spring);
}
.os-toast .tile { width: 40px; height: 40px; border-radius: 12px; background: #E2F7EC; color: #1A7F5A; }
.os-toast b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.0625rem; }
.os-toast span { font-size: .9rem; color: #4A5068; }
.os-toast.flash { animation: checkPop .45s var(--ease-spring); }
.os-saved { margin-top: 12px; display: grid; gap: 8px; list-style: none; }
.os-saved li { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: #C9CDE4; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.os-saved svg { width: 18px; height: 18px; color: #42C98A; flex: none; }
.os-saved em { white-space: nowrap; margin-left: auto; font-style: normal; font-size: .75rem; color: #9AA0BC; }

/* ---------- 17. Mini games ---------- */
.games { display: grid; gap: 18px; grid-template-columns: 1fr; list-style: none; }
@media (min-width: 600px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .games { grid-template-columns: repeat(6, 1fr); gap: 22px; } .games > li { grid-column: span 2; } .games > li:nth-child(4) { grid-column: 2 / span 2; } }
.game {
  --glow: var(--primary);
  height: 100%; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  padding: 12px 12px 22px; box-shadow: var(--shadow-sm);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .25s var(--ease-out), box-shadow .3s, border-color .3s;
  outline: none;
}
.game:hover, .game:focus-within, .game.is-active { --ty: -8px; box-shadow: 0 24px 48px -16px color-mix(in srgb, var(--glow) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--glow) 40%, transparent); border-color: color-mix(in srgb, var(--glow) 50%, var(--border)); }
.game-art { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 18px; }
.game-art svg { width: 100%; height: 100%; transition: transform .5s var(--ease-out); }
.game:hover .game-art svg { transform: scale(1.05); }
.game h3 { font-size: 1.375rem; margin: 0 8px 6px; }
.game p { margin: 0 8px 14px; color: var(--text-2); font-size: .9375rem; }
.game .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 8px; }
.game:hover .game-icon { animation: wiggle .6s var(--ease-spring); }
.play-banner {
  margin-top: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-radius: var(--r-lg); background: var(--secondary-soft); border: 1px solid color-mix(in srgb, var(--secondary) 35%, transparent);
}
.play-banner b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.375rem; }
.play-banner span { color: var(--text-2); }
.play-banner .left { display: flex; align-items: center; gap: 16px; }

/* ---------- 18. Download ---------- */
.download {
  position: relative; overflow: hidden; border-radius: clamp(24px, 3vw, 40px);
  background-color: #5F56F5; background-image: var(--aurora-strong); color: #fff;
  padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 72px);
  box-shadow: 0 30px 70px -30px rgba(129, 80, 234, .55);
  display: grid; gap: 32px; align-items: center;
}
.download .h2 { color: #fff; margin-bottom: 16px; }
.download .lead { color: #fff; margin-bottom: 28px; }
.download-pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .14; pointer-events: none; }
.download > *:not(.download-pattern) { position: relative; }
@media (min-width: 960px) { .download { grid-template-columns: 1.25fr .75fr; } }
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.store-badge {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 14px;
  border-radius: 12px; background: #000; color: #fff; border: 1.5px solid #A6A6A6; text-decoration: none; cursor: default;
}
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge small { display: block; font-size: .6875rem; line-height: 1; letter-spacing: .02em; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; }
.store-badge b { display: block; font-size: 1.3rem; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; }
.soon {
  position: absolute; top: -11px; right: -10px; padding: 3px 9px; border-radius: 99px; background: #FFCA5C; color: #3B2A00;
  font-family: var(--font-display); font-weight: 900; font-size: .6875rem; letter-spacing: .08em; transform: rotate(4deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.waitlist { max-width: 520px; }
.waitlist label { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.0625rem; margin-bottom: 10px; }
.wl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-row input {
  flex: 1 1 220px; min-width: 0; height: 56px; padding: 0 18px; border-radius: 16px; border: 2px solid transparent;
  background: #fff; color: #202332; font-size: 1rem; font-weight: 600;
}
.wl-row input::placeholder { color: #7A8099; }
.wl-row input:focus { outline: none; border-color: #FFCA5C; box-shadow: 0 0 0 4px rgba(255, 202, 92, .35); }
.wl-row input[aria-invalid="true"] { border-color: #FF6B6B; }
.wl-row .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .wl-row .btn { width: 100%; } }
.wl-note { margin-top: 12px; font-size: .875rem; color: #fff; display: flex; gap: 8px; align-items: flex-start; }
.wl-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.wl-error { margin-top: 10px; font-weight: 700; color: #fff; background: rgba(40, 10, 50, .42); border: 1.5px solid rgba(255, 160, 160, .7); padding: 8px 12px; border-radius: 12px; display: none; }
.wl-error.show { display: block; }
.wl-success { display: none; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.wl-success.show { display: flex; animation: checkPop .5s var(--ease-spring); }
.wl-success .tile { background: #42C98A; color: #fff; }
.wl-success b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; }
.wl-success span { color: #fff; font-size: .9375rem; }
.wl-success button { background: none; border: 0; color: #fff; text-decoration: underline; font-weight: 700; padding: 0; min-height: 44px; }
.download-art { position: relative; height: 340px; display: none; }
@media (min-width: 960px) { .download-art { display: block; } }
.download-art .char { position: absolute; bottom: 0; left: 50%; width: 220px; transform: translateX(-50%); }
.download-art .pet { position: absolute; top: 20px; right: 4%; width: 80px; }
.download-art .disc { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 300px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.download-play { margin-top: 20px; color: #fff; }
.download-play a { color: #fff; font-weight: 700; }

/* ---------- 19. Footer ---------- */
.site-footer { padding: 72px 0 32px; background: var(--surface); border-top: 1px solid var(--border); }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; max-width: 340px; }
.foot-brand p { color: var(--text-2); margin: 14px 0 20px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-col h2 { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; font-weight: 900; }
.foot-col ul { list-style: none; display: grid; gap: 2px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--text); }
.foot-col a:hover { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 4px; }
.socials { display: flex; gap: 10px; list-style: none; }
.social { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); }
.social svg { width: 22px; height: 22px; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--text-2); font-size: .9rem; }
.foot-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-bottom a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.foot-bottom a:hover { color: var(--text); text-decoration: underline; }

/* ---------- 20. Inner pages ---------- */
.page-hero {
  position: relative; overflow: hidden; margin-top: -76px; padding: calc(76px + clamp(48px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, var(--sky-top), var(--bg));
}
.page-hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  right: -12%; top: -24%; width: min(680px, 110vw); aspect-ratio: 1.3;
  background: var(--aurora); filter: blur(80px); opacity: calc(var(--aurora-op) * .75);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero + .section { padding-top: 16px; }
.page-hero .display { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.75rem); margin-bottom: 20px; }
.page-hero .lead { max-width: 40em; }
.page-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.3fr .7fr; } }
.page-hero-art { position: relative; height: 300px; }
.page-hero-art .char { position: absolute; left: 50%; bottom: 0; width: 210px; transform: translateX(-50%); }
.page-hero-art .pet { position: absolute; right: 12%; top: 6%; width: 74px; }
@media (max-width: 899px) { .page-hero-art { height: 240px; } .page-hero-art .char { width: 150px; } }

.feat-group { margin-bottom: clamp(56px, 7vw, 88px); }
.feat-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.feat-group-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); text-transform: uppercase; }
.feat-grid { display: grid; gap: 18px; grid-template-columns: 1fr; list-style: none; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.feat { padding: 26px; height: 100%; transition: transform .3s var(--ease-out), box-shadow .3s; }
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feat:hover .tile svg { animation: wiggle .6s var(--ease-spring); }
.feat h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.feat p { color: var(--text-2); margin: 0 0 14px; font-size: .975rem; }
.feat .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feat--wide { grid-column: 1 / -1; }
.feat-group-intro { margin: -8px 0 24px; max-width: 46em; color: var(--text-2); }
.feat-group--ai .feat { position: relative; overflow: hidden; }
.feat-group--ai .feat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--aurora); opacity: .85; }
.feat-note { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.feat-note svg { width: 20px; height: 20px; flex: none; color: var(--primary); margin-top: 2px; }
@media (min-width: 1024px) { .feat--wide { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; } .feat--wide h3 { margin-top: 18px; } }

.xp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.xp-table th, .xp-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.xp-table th { font-family: var(--font-display); font-weight: 900; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.xp-table td:last-child, .xp-table th:last-child { text-align: right; font-family: var(--font-display); font-weight: 900; color: var(--accent-ink); }
.xp-table tr:last-child td { border-bottom: 0; }

.levelup {
  position: relative; border-radius: var(--r-lg); padding: 28px; background: #1B1E2E; color: #fff; text-align: center; overflow: hidden;
}
.levelup .lvl-k { font-family: var(--font-display); font-weight: 900; letter-spacing: .2em; color: #FFD47A; font-size: .875rem; }
.levelup .lvl-n { font-family: var(--font-display); font-weight: 900; font-size: 4rem; line-height: 1; margin: 6px 0 16px; }
.levelup ul { list-style: none; display: grid; gap: 8px; text-align: left; max-width: 280px; margin: 0 auto; }
.levelup li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-weight: 700; }
.levelup li svg { width: 22px; height: 22px; }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 56px 0 16px; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.25rem; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 8px; }
.prose strong { color: var(--text); }
.prose a { color: var(--primary-ink); font-weight: 700; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.legal-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 260px 1fr; gap: 64px; align-items: start; } }
.toc { position: sticky; top: 100px; padding: 20px; }
.toc h2 { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 2px; font-size: .9375rem; }
.toc a { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--primary-ink); text-decoration: underline; }
@media (max-width: 1023px) { .toc { position: static; } }
.summary-cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0 0 16px; list-style: none; padding: 0 !important; }
@media (min-width: 640px) { .summary-cards { grid-template-columns: repeat(2, 1fr); } }
.summary-cards li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.summary-cards b { display: block; color: var(--text); font-family: var(--font-display); font-weight: 900; font-size: 1.0625rem; }
.summary-cards .tile { width: 44px; height: 44px; border-radius: 14px; }
.summary-cards .tile svg { width: 24px; height: 24px; }
.updated { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--text-2); font-size: .9375rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 16px 20px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.125rem; line-height: 1.3; border-radius: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { flex: 1; }
.faq summary .plus { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); flex: none; transition: transform .3s var(--ease-spring), background-color .2s; }
.faq summary .plus svg { width: 18px; height: 18px; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--btn-bg); color: #fff; }
.faq .a { padding: 0 20px 20px; color: var(--text-2); }
.faq .a p:last-child { margin-bottom: 0; }
.faq details[open] .a { animation: faqIn .35s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.help-cards { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; }
@media (min-width: 640px) { .help-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .help-cards { grid-template-columns: repeat(4, 1fr); } }
.help-cards a { display: block; height: 100%; padding: 22px; text-decoration: none; transition: transform .3s var(--ease-out), box-shadow .3s; }
.help-cards a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.help-cards h3 { font-size: 1.15rem; margin: 14px 0 4px; }
.help-cards p { margin: 0; color: var(--text-2); font-size: .9375rem; }
.contact-card { display: grid; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); align-items: center; }
@media (min-width: 860px) { .contact-card { grid-template-columns: 1fr auto; } }
.contact-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); margin-bottom: 10px; text-transform: uppercase; }
.contact-card p { color: var(--text-2); margin: 0; }
.mail-big { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); color: var(--primary-ink); }

/* Adventure page */
.npc { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); margin-top: 20px; box-shadow: var(--shadow-sm); }
.npc-portrait { width: 72px; height: 72px; border-radius: 22px; flex: none; overflow: hidden; }
.npc-portrait svg { width: 100%; height: 100%; }
.npc b { font-family: var(--font-display); font-weight: 900; font-size: 1.125rem; display: block; }
.npc .role { font-size: .8125rem; color: var(--text-2); font-weight: 600; }
.npc q { display: block; margin: 8px 0 12px; color: var(--text); font-weight: 500; quotes: "“" "”"; }
.npc .accept { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 12px; background: var(--btn-bg); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: .8125rem; letter-spacing: .06em; }
.inside { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.inside li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.inside svg { width: 22px; height: 22px; flex: none; }
.area-detail { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--border); }
.area-detail:first-of-type { border-top: 0; }
.area-detail .area { align-items: start; }
.area-detail .area-scene { position: sticky; top: 100px; }
@media (max-width: 899px) { .area-detail .area-scene { position: relative; top: 0; } }

.map-path { display: grid; gap: 10px; list-style: none; counter-reset: m; }
@media (min-width: 760px) { .map-path { grid-template-columns: repeat(5, 1fr); } }
.map-path a {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; font-family: var(--font-display); font-weight: 900; line-height: 1.15; transition: transform .25s var(--ease-out), box-shadow .25s; height: 100%;
}
.map-path a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.map-path .dot { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: .8125rem; flex: none; }
.map-path small { display: block; font-size: .75rem; color: var(--text-2); font-weight: 700; font-family: var(--font-body); }

.interact-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); list-style: none; }
@media (min-width: 760px) { .interact-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .interact-grid { grid-template-columns: repeat(6, 1fr); } }
.interact-grid li { padding: 18px; text-align: center; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-display); font-weight: 900; }
.interact-grid .tile { margin: 0 auto 10px; }

.chest-seq { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; counter-reset: c; }
.chest-seq li { counter-increment: c; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; }
.chest-seq li::before { content: counter(c); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-display); font-weight: 900; font-size: .8125rem; }

/* About */
.loop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; list-style: none; }
.loop li { display: inline-flex; align-items: center; gap: 10px; }
.loop .node { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-display); font-weight: 900; letter-spacing: .06em; box-shadow: var(--shadow-sm); }
.loop .node svg { width: 22px; height: 22px; }
.loop .arrow { color: var(--muted); width: 20px; height: 20px; }
.principles { display: grid; gap: 18px; grid-template-columns: 1fr; list-style: none; }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles li { padding: 26px; }
.principles h3 { font-size: 1.3rem; margin: 16px 0 8px; }
.principles p { margin: 0; color: var(--text-2); }
.today-card { max-width: 380px; padding: 24px; border-radius: var(--r-xl); margin-inline: auto; }
.today-card .k { font-family: var(--font-display); font-weight: 900; letter-spacing: .16em; font-size: .8125rem; color: var(--text-2); margin-bottom: 10px; display: block; }
.today-stats { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.today-stats li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.today-stats svg { width: 22px; height: 22px; }
.today-card .next { padding: 14px; border-radius: 16px; background: var(--primary-soft); margin-bottom: 10px; }
.today-card .next b { display: block; font-family: var(--font-display); font-weight: 900; }
.today-card .reward { padding: 14px; border-radius: 16px; background: var(--accent-soft); display: flex; gap: 10px; align-items: center; }
.today-card .reward b { font-family: var(--font-display); font-weight: 900; }
.audience { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.audience li { padding: 10px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; }

/* CTA band (inner pages) */
.cta-band { border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px); background-color: #5F56F5; background-image: var(--aurora-strong); color: #fff; display: grid; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band .h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); }
.cta-band p { color: #fff; margin: 12px 0 0; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.nf .pet { width: 120px; margin: 0 auto 24px; }
.nf .display { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem); margin-bottom: 16px; }
.nf .btn-row { justify-content: center; margin-top: 24px; }

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal], .js .collect-grid .item { opacity: 1 !important; transform: none !important; }
  .petals, .clouds .cloud, .sparkle { display: none; }
  .hl-swash path { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .mobile-menu, .site-footer, .petals, .clouds { display: none !important; }
  body { background: #fff; color: #000; }
}
