/* =========================================================
   EduOrvix — design system
   Galaxy (child zone, dark) + Daylight (parent zone, light)
   ========================================================= */

@font-face { font-family: "Fredoka"; font-weight: 400; font-display: swap; src: url(../fonts/fredoka-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url(../fonts/fredoka-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url(../fonts/fredoka-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url(../fonts/fredoka-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url(../fonts/nunito-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url(../fonts/nunito-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url(../fonts/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url(../fonts/nunito-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url(../fonts/nunito-latin-900-normal.woff2) format("woff2"); }

:root {
  /* brand (from logo) */
  --ink: #2E0A75;
  --cyan: #2ED3F6;
  --blue: #2F6BFF;
  --lime: #8EE02B;
  --spark: #FFC94D;   /* streaks, XP, badges */
  --rose: #FF6B9A;    /* hearts, wrong answers softened */

  /* galaxy theme (default) */
  --bg: #0D0726;
  --bg-2: #170C42;
  --bg-3: #22125C;
  --text: #F3F0FF;
  --muted: #B9B2DC;
  --line: rgba(190, 175, 255, .18);
  --glass: rgba(255, 255, 255, .06);
  --glass-strong: rgba(255, 255, 255, .11);
  --glass-line: rgba(255, 255, 255, .16);
  --accent: var(--cyan);
  --accent-2: var(--lime);
  --on-accent: #10073A;
  --glow: rgba(46, 211, 246, .45);
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 45%, var(--lime));
  --nebula-1: rgba(87, 52, 255, .35);
  --nebula-2: rgba(46, 211, 246, .18);

  /* daylight (parent zone) */
  --day: #F2EFFF;
  --day-2: #FFFFFF;
  --day-text: #1E0C4F;
  --day-muted: #5A4F86;
  --day-line: #DCD5F7;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --r-xl: 40px;
  --shadow: 0 30px 60px -30px rgba(5, 2, 30, .8);

  --f-display: "Fredoka", ui-rounded, "Segoe UI Rounded", system-ui, sans-serif;
  --f-body: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* type scale, 1.25 */
  --t-xs: .8rem;
  --t-s: .9rem;
  --t-m: 1.0625rem;
  --t-l: 1.3rem;
  --t-xl: 1.65rem;
  --t-2xl: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --t-3xl: clamp(2.3rem, 1.5rem + 3.4vw, 3.6rem);
  --t-4xl: clamp(2.8rem, 1.6rem + 5.4vw, 5.6rem);

  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 74px;
  color-scheme: dark;
}

/* unlockable themes */
html[data-theme="ocean"]  { --bg:#04172B; --bg-2:#082A47; --bg-3:#0D3B61; --accent:#38E1FF; --accent-2:#5CF2C2; --glow:rgba(56,225,255,.45); --nebula-1:rgba(20,120,255,.32); --nebula-2:rgba(92,242,194,.16); --grad:linear-gradient(120deg,#38E1FF,#2F6BFF 50%,#5CF2C2); }
html[data-theme="jungle"] { --bg:#061A10; --bg-2:#0B2A1A; --bg-3:#123B25; --accent:#9BF05A; --accent-2:#FFD54D; --glow:rgba(155,240,90,.4); --nebula-1:rgba(40,160,80,.32); --nebula-2:rgba(255,213,77,.14); --grad:linear-gradient(120deg,#9BF05A,#2FD3A0 50%,#FFD54D); --on-accent:#08200F; }
html[data-theme="sunset"] { --bg:#1E0820; --bg-2:#2E0C2B; --bg-3:#43123A; --accent:#FF9D5C; --accent-2:#FF6B9A; --glow:rgba(255,157,92,.42); --nebula-1:rgba(255,90,120,.3); --nebula-2:rgba(255,190,90,.18); --grad:linear-gradient(120deg,#FFC94D,#FF9D5C 45%,#FF6B9A); --on-accent:#2A0A1E; }
html[data-theme="candy"]  { --bg:#1C0A2E; --bg-2:#2A0F45; --bg-3:#3A1660; --accent:#FF8AD8; --accent-2:#8AF0FF; --glow:rgba(255,138,216,.42); --nebula-1:rgba(255,120,220,.28); --nebula-2:rgba(138,240,255,.18); --grad:linear-gradient(120deg,#FF8AD8,#B78CFF 50%,#8AF0FF); --on-accent:#2A0A3A; }
html[data-theme="aurora"] { --bg:#03111A; --bg-2:#06202C; --bg-3:#0A2F3E; --accent:#5CFFB4; --accent-2:#B48CFF; --glow:rgba(92,255,180,.4); --nebula-1:rgba(92,255,180,.2); --nebula-2:rgba(180,140,255,.24); --grad:linear-gradient(120deg,#5CFFB4,#38E1FF 45%,#B48CFF); --on-accent:#04211A; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-m);
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before { /* nebula wash, fixed */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 0%, var(--nebula-1), transparent 70%),
    radial-gradient(50vw 50vh at 0% 60%, var(--nebula-2), transparent 70%),
    var(--bg);
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: var(--t-4xl); letter-spacing: -.02em; }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); line-height: 1.2; }
h4 { font-size: var(--t-l); line-height: 1.25; }
p { margin: 0 0 1em; }
.lede { font-size: var(--t-l); color: var(--muted); max-width: 40ch; line-height: 1.5; }
.measure { max-width: 64ch; }
.muted { color: var(--muted); }
.small { font-size: var(--t-s); }
.tiny { font-size: var(--t-xs); }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: var(--t-l); line-height: 1.5; }
.kicker { font-family: var(--f-display); font-weight: 500; font-size: var(--t-l); color: var(--accent); margin: 0 0 .4em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- grid helpers ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 980px) { .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--accent); --b-fg: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.6em; border-radius: 999px; border: 0;
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; position: relative; isolation: isolate;
  box-shadow: 0 10px 30px -10px var(--glow), inset 0 -3px 0 rgba(0,0,0,.18);
  transition: transform .2s cubic-bezier(.3,1.6,.6,1), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 40px -12px var(--glow), inset 0 -3px 0 rgba(0,0,0,.18); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-grad { background: var(--grad); }
.btn-ghost { --b-bg: var(--glass-strong); --b-fg: var(--text); box-shadow: inset 0 0 0 1.5px var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { --b-bg: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-lime { --b-bg: var(--lime); --b-fg: #12230A; }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .95rem; }
.btn-lg { min-height: 60px; padding: 0 2em; font-size: 1.2rem; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 800; color: var(--accent); text-decoration: none; display: inline-flex; gap: .35em; align-items: center; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  border: 1px solid var(--glass-line);
  border-radius: var(--r-l);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.12);
}
.panel { padding: clamp(20px, 3vw, 32px); }
.chip {
  display: inline-flex; align-items: center; gap: .45em; padding: .35em .9em; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-line); font-weight: 800; font-size: var(--t-s);
}
.chip-accent { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.chip-lime { background: rgba(142,224,43,.15); border-color: rgba(142,224,43,.45); color: var(--lime); }
.chip-spark { background: rgba(255,201,77,.14); border-color: rgba(255,201,77,.45); color: var(--spark); }

/* blink / live dot */
.live-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(142,224,43,.7); animation: livepulse 1.6s infinite; flex: none; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(142,224,43,.7);} 70% { box-shadow: 0 0 0 10px rgba(142,224,43,0);} 100% { box-shadow: 0 0 0 0 rgba(142,224,43,0);} }
.blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.neon {
  color: #fff; text-shadow: 0 0 6px var(--accent), 0 0 18px var(--accent), 0 0 42px var(--glow);
  animation: neonflicker 5s infinite;
}
@keyframes neonflicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; text-shadow: 0 0 6px var(--accent), 0 0 18px var(--accent), 0 0 42px var(--glow); }
  20%, 24%, 55% { opacity: .55; text-shadow: none; }
}
.typer { display: inline-block; min-height: 1.2em; }
.typer::after { content: ""; display: inline-block; width: .08em; height: .95em; background: currentColor; margin-left: .06em; vertical-align: -.08em; animation: blink 1s steps(2,start) infinite; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, transform .35s;
}
.site-header.scrolled { background: rgba(13,7,38,.9); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 1px 0 var(--line); }
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: 18px; width: 100%; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.nav-top {
  display: inline-flex; align-items: center; gap: .3em; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: .98rem; color: var(--text); background: none; border: 0;
}
.nav-links a:hover, .nav-links button.nav-top:hover, .nav-links a[aria-current="page"] { background: var(--glass-strong); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; min-width: 280px; padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transition: .2s; list-style: none; margin: 0;
  background: rgba(13,7,38,.9); background: color-mix(in srgb, var(--bg-2) 92%, transparent); border: 1px solid var(--glass-line); border-radius: var(--r-m);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.nav-links li:hover > .dropdown, .nav-links li:focus-within > .dropdown, .nav-links li.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; width: 100%; }
.dropdown a span.ic { font-size: 1.35rem; line-height: 1; margin-top: 2px; }
.dropdown a b { display: block; font-size: .98rem; }
.dropdown a small { display: block; color: var(--muted); font-weight: 600; font-size: .82rem; line-height: 1.35; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.hud {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 12px; border-radius: 999px; text-decoration: none;
  background: var(--glass-strong); border: 1px solid var(--glass-line); font-weight: 900; font-size: .92rem;
}
.hud .hud-streak { color: var(--spark); }
.hud .hud-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-size: 1.05rem; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass-strong); place-items: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: .25s; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1120px) {
  .nav-links, .nav-actions .btn-book { display: none; }
  .menu-btn { display: grid; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 420px) { .brand img { height: 32px; } .hud .hud-xp { display: none; } }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 55; padding: calc(var(--header-h) + 12px) var(--gutter) 32px;
  background: rgba(13,7,38,.9); background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu-open .drawer { opacity: 1; visibility: visible; }
.drawer h5 { font-family: var(--f-display); font-weight: 500; color: var(--muted); font-size: 1rem; margin: 22px 0 8px; }
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer a { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.drawer .btn { width: 100%; margin-top: 22px; }
.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 24px) 0 64px; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 50%, color-mix(in srgb, var(--bg) 15%, transparent) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; width: 100%; }
.hero h1 { margin: .25em 0 .35em; max-width: 18ch; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.2rem); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero .typed-row { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 500; color: var(--muted); margin-bottom: 1.4em; min-height: 1.4em; }
.hero .typed-row .typer { color: var(--accent); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 36px; }
.hero-meta div { display: grid; }
.hero-meta b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.hero-meta span { color: var(--muted); font-size: var(--t-s); font-weight: 700; }
.hero-stage { position: relative; aspect-ratio: 1; perspective: 1000px; max-width: 560px; justify-self: center; width: 100%; }
.hero-stage .orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.18); transform: rotateX(70deg); animation: spin 24s linear infinite; }
.hero-stage .orbit.o2 { inset: -4%; border-style: solid; border-color: rgba(46,211,246,.18); animation-duration: 40s; animation-direction: reverse; }
@keyframes spin { to { transform: rotateX(70deg) rotateZ(360deg); } }
.hero-stage .orvi-big { position: absolute; inset: 12%; transform-style: preserve-3d; will-change: transform; }
.hero-stage .orvi-big img { width: 100%; filter: drop-shadow(0 40px 60px rgba(46,211,246,.35)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1.5deg);} 50% { transform: translateY(-18px) rotate(1.5deg);} }
.float-chip { position: absolute; z-index: 2; padding: 10px 14px; border-radius: 18px; font-weight: 800; font-size: .92rem; display: flex; gap: 8px; align-items: center; animation: bob 6s ease-in-out infinite; white-space: nowrap; }
.float-chip .em { font-size: 1.4rem; }
.float-chip.c1 { top: 8%; left: -4%; animation-delay: -1s; }
.float-chip.c2 { top: 40%; right: -6%; animation-delay: -2.5s; }
.float-chip.c3 { bottom: 8%; left: 4%; animation-delay: -4s; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: grid; justify-items: center; gap: 6px; color: var(--muted); font-weight: 800; font-size: .8rem; text-decoration: none; }
.scroll-cue i { width: 26px; height: 42px; border: 2px solid currentColor; border-radius: 20px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--accent); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px);} 40% { opacity: 1;} 100% { opacity: 0; transform: translateY(12px);} }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 340px; order: -1; margin-top: 8px; }
  .float-chip { font-size: .8rem; padding: 7px 10px; }
  .float-chip.c1 { left: 0; } .float-chip.c2 { right: 0; }
  .hero .typed-row { min-height: 2.9em; }
  .hero h1 { max-width: none; }
  .scroll-cue { display: none; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 70%, transparent) 60%, color-mix(in srgb, var(--bg) 40%, transparent)); }
}

/* page hero (inner pages) */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 clamp(40px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../img/hero-galaxy-960.webp) center/cover; opacity: .22; mask-image: linear-gradient(180deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); }
.page-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.page-hero h1 { font-size: var(--t-3xl); max-width: 18ch; }
.page-hero .ph-orvi { width: clamp(110px, 16vw, 200px); animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 20px 40px var(--glow)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: var(--t-s); font-weight: 700; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
@media (max-width: 700px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero .ph-orvi { display: none; } }

/* ---------- 3D journey ---------- */
.journey { position: relative; height: 560vh; }
.journey-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.journey canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.journey-fallback { position: absolute; inset: 0; background: url(../img/hero-galaxy.webp) center/cover; }
.journey-ui { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; }
.journey-card {
  position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%; max-width: 440px; padding: 28px; opacity: 0; pointer-events: none;
  transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); transform: translateY(30px) rotateX(10deg);
}
.journey-card.active { opacity: 1; transform: none; pointer-events: auto; }
.journey-card .world { font-size: 2.6rem; line-height: 1; margin-bottom: 10px; display: block; }
.journey-card h3 { font-size: var(--t-2xl); }
.journey-card p { color: var(--muted); }
.journey-intro { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 var(--gutter); transition: opacity .5s; }
.journey-intro h2 { font-size: var(--t-4xl); max-width: 14ch; margin: 0 auto .3em; }
.journey-progress { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; display: grid; gap: 14px; pointer-events: auto; }
.journey-progress button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: transparent; padding: 0; transition: .3s; }
.journey-progress button.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px var(--glow); transform: scale(1.3); }
.journey-hint { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; font-weight: 800; font-size: .85rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) {
  .journey { height: 480vh; }
  .journey-card { left: 16px; right: 16px; top: auto; bottom: 70px; translate: none; max-width: none; padding: 20px; }
  .journey-card .world { font-size: 2rem; }
  .journey-progress { right: 10px; }
}

/* ---------- feature cards: tilted 3D ---------- */
.tilt { transform-style: preserve-3d; transition: transform .15s ease-out; will-change: transform; }
.tilt > * { transform: translateZ(30px); }
.feature {
  position: relative; padding: 28px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 100%;
  text-decoration: none;
}
.feature .f-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; background: var(--glass-strong); border: 1px solid var(--glass-line); margin-bottom: 8px; }
.feature h3 { margin: 0; }
.feature p { color: var(--muted); margin: 0; }
.feature .link-arrow { margin-top: auto; padding-top: 10px; }
.feature::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); opacity: .5; transition: .4s; pointer-events: none; }
.feature:hover::after { opacity: .9; transform: scale(1.2); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: clamp(14px, 2vw, 24px); }
.bento > :nth-child(1) { grid-column: span 3; grid-row: span 2; }
.bento > :nth-child(2) { grid-column: span 3; }
.bento > :nth-child(3) { grid-column: span 3; }
.bento > :nth-child(4), .bento > :nth-child(5), .bento > :nth-child(6) { grid-column: span 2; }
.bento .feature.big h3 { font-size: var(--t-2xl); }
.bento .feature.big .demo { margin-top: 16px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento > * { grid-column: span 1 !important; grid-row: auto !important; } .bento > :nth-child(1) { grid-column: span 2 !important; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento > * { grid-column: auto !important; } }

/* mini streak demo */
.streak-demo { display: flex; gap: 8px; flex-wrap: wrap; }
.streak-demo span { width: 40px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: .78rem; background: var(--glass); border: 1px solid var(--line); color: var(--muted); }
.streak-demo span.on { background: linear-gradient(180deg, rgba(255,201,77,.35), rgba(255,120,60,.25)); border-color: rgba(255,201,77,.6); color: #fff; }
.streak-demo span.on::before { content: "🔥"; display: block; font-size: 1rem; }

/* ---------- glass coverflow slider ---------- */
.slider { position: relative; perspective: 1400px; }
.slider-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 40px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; transform-style: preserve-3d; cursor: grab;
}
.slider-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(380px, 82vw); scroll-snap-align: center; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s; transform-style: preserve-3d; user-select: none; }
.slide .glass { height: 100%; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.slide .s-num { font-family: var(--f-display); font-size: 3.4rem; font-weight: 700; line-height: 1; }
.slide .s-ic { font-size: 3rem; line-height: 1; }
.slide h3 { margin: 0; }
.slide p { color: var(--muted); margin: 0; }
.slide ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--muted); }
.slider-ctrl { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.slider-ctrl button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass-strong); display: grid; place-items: center; transition: .2s; }
.slider-ctrl button:hover { background: var(--accent); color: var(--on-accent); }
.slider-dots { display: flex; gap: 8px; margin-right: auto; }
.slider-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgba(255,255,255,.3); transition: .3s; }
.slider-dots button.on { width: 30px; background: var(--accent); }

/* ---------- daylight (parent zone) ---------- */
.day { background: var(--day); color: var(--day-text); --muted: var(--day-muted); --line: var(--day-line); --text: var(--day-text); color-scheme: light; }
.day .glass, .day .card-day { background: var(--day-2); border: 1px solid var(--day-line); box-shadow: 0 24px 50px -32px rgba(46,10,117,.45); backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: var(--r-l); }
.day .kicker { color: var(--blue); }
.day .chip { background: #fff; border-color: var(--day-line); }
.day .btn-ghost { --b-bg: #fff; --b-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--day-line); }
.day .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.day .btn { --b-bg: var(--ink); --b-fg: #fff; box-shadow: 0 12px 26px -12px rgba(46,10,117,.6); }
.day .btn.btn-ghost { --b-bg: #fff; --b-fg: var(--ink); }
.day .link-arrow { color: var(--blue); }
.day a:not(.btn):not(.link-arrow) { color: var(--ink); }
.day :focus-visible { outline-color: var(--blue); }
.day-curve { height: 80px; background: var(--day); clip-path: ellipse(75% 100% at 50% 100%); margin-top: -1px; }
.day-curve.bottom { clip-path: ellipse(75% 100% at 50% 0%); }

.trust-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.trust-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.trust-list .ti { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: #EAE4FF; }
.trust-list b { display: block; font-size: 1.05rem; }
.trust-list span { color: var(--muted); font-size: .97rem; }

/* steps (real sequences only) */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0,1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 26px 22px 22px; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-accent); margin-bottom: 14px; }
.day .steps li::before { background: var(--ink); color: #fff; }
.steps li h4 { margin-bottom: .3em; }
.steps li p { color: var(--muted); margin: 0; font-size: .97rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 47px; left: calc(22px + 52px); right: -18px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* programme cards with 3D flip-in */
.prog-card { position: relative; padding: 30px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; text-decoration: none; min-height: 100%; }
.prog-card .age { font-family: var(--f-display); font-size: 3rem; font-weight: 700; line-height: 1; }
.prog-card h3 { margin: 0; font-size: var(--t-2xl); }
.prog-card ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.prog-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.prog-card li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: .6em; }
.prog-card .btn { margin-top: auto; align-self: flex-start; }
.prog-card .art { position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%; opacity: .9; filter: blur(.3px); }
.prog-explorer .art { background: radial-gradient(circle at 35% 35%, #9DF3FF, #2ED3F6 40%, #1B4FD8 80%); box-shadow: 0 0 60px rgba(46,211,246,.6); }
.prog-builder .art { background: radial-gradient(circle at 35% 35%, #E3FFB0, #8EE02B 40%, #2C8A1A 80%); box-shadow: 0 0 60px rgba(142,224,43,.5); }
.prog-studio .art { background: radial-gradient(circle at 35% 35%, #E2D2FF, #8F6BFF 40%, #3B178F 80%); box-shadow: 0 0 60px rgba(143,107,255,.6); }

/* stats */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.stat { padding: 24px; }
.stat b { display: block; font-family: var(--f-display); font-size: var(--t-3xl); font-weight: 600; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-weight: 700; font-size: .96rem; }
@media (max-width: 800px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--r-l); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; font-size: .97rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.compare th[scope="row"] { font-weight: 800; white-space: nowrap; }
.compare .us { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.day .compare .us { background: #ECE6FF; }
.compare thead .us { border-radius: 16px 16px 0 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-m); padding: 0 22px; transition: background .2s; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 800; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-family: var(--f-display); font-size: 1.6rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* countdown */
.countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown div { min-width: 78px; padding: 12px 10px; border-radius: 18px; text-align: center; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.countdown b { display: block; font-family: var(--f-display); font-size: 2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .78rem; font-weight: 800; color: var(--muted); }
.day .countdown div { background: #fff; border-color: var(--day-line); }

/* CTA banner */
.cta-band { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px); border-radius: var(--r-xl); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../img/hero-galaxy-960.webp) center/cover; opacity: .55; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, color-mix(in srgb, var(--bg) 94%, transparent) 35%, color-mix(in srgb, var(--bg) 30%, transparent)); }
.cta-band .orvi-peek { position: absolute; right: 4%; bottom: -18%; width: clamp(140px, 22vw, 280px); animation: bob 5s ease-in-out infinite; }
@media (max-width: 700px) { .cta-band .orvi-peek { opacity: .25; } }

/* ---------- footer ---------- */
.site-footer { position: relative; padding: 80px 0 30px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0,0,0,.25)); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-grid h5 { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .96rem; }
.foot-grid a:hover { color: var(--text); }
.foot-brand img { height: 46px; width: auto; margin-bottom: 16px; }
.foot-brand p { color: var(--muted); max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-strong); border: 1px solid var(--glass-line); color: var(--text); }
.socials a:hover { background: var(--accent); color: var(--on-accent); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; font-weight: 600; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; max-width: 380px; }
.newsletter input { flex: 1; min-width: 0; }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* floating WhatsApp (parents) */
.wa-fab { position: fixed; left: 16px; bottom: 16px; z-index: 45; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 30px -10px rgba(37,211,102,.7); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.08); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 800; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.input, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--glass-line);
  background: rgba(255,255,255,.06); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select option { color: #111; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.day input, .day select, .day textarea { background: #fff; border-color: var(--day-line); color: var(--day-text); }
.day input:focus, .day select:focus, .day textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,107,255,.15); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; margin-bottom: 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.day .check input { accent-color: var(--ink); }
.form-msg { padding: 14px 16px; border-radius: 14px; font-weight: 700; margin-top: 12px; display: none; }
.form-msg.ok { display: block; background: rgba(142,224,43,.16); border: 1px solid rgba(142,224,43,.5); }
.form-msg.err { display: block; background: rgba(255,107,154,.14); border: 1px solid rgba(255,107,154,.5); }
.hp { position: absolute; left: -9999px; }

/* ---------- prose (articles, legal) ---------- */
.prose { max-width: 70ch; font-size: 1.09rem; line-height: 1.72; }
.prose h2 { font-size: var(--t-2xl); margin-top: 1.8em; }
.prose h3 { font-size: var(--t-xl); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--glass); border-radius: 0 16px 16px 0; font-weight: 700; }
.day .prose blockquote { background: #fff; border-color: var(--blue); }
.prose .answer-first { font-size: 1.15rem; padding: 20px 22px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.day .prose .answer-first { background: #fff; border-color: var(--day-line); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .97rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* guide cards */
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; text-decoration: none; height: 100%; transition: transform .25s; }
.guide-card:hover { transform: translateY(-4px); }
.guide-card .tag { align-self: flex-start; }
.guide-card h3 { margin: 4px 0 0; font-size: 1.35rem; }
.guide-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.guide-card .meta { margin-top: auto; padding-top: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-row button { border: 1.5px solid var(--line); background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 800; }
.filter-row button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { position: relative; max-width: 460px; margin-bottom: 18px; }
.search input { padding-left: 46px; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; opacity: .55; }

/* ---------- learn zone / app ---------- */
.app-shell { padding-top: calc(var(--header-h) + 28px); padding-bottom: 80px; min-height: 100vh; }
.app-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 20px; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; }
@media (max-width: 980px) { .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; } .span-3 { grid-column: span 6; } }
@media (max-width: 520px) { .span-3 { grid-column: span 12; } }
.welcome { display: flex; gap: 20px; align-items: center; padding: 26px; }
.welcome .av { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-size: 2.8rem; background: var(--grad); flex: none; box-shadow: 0 14px 30px -12px var(--glow); }
.welcome h1 { font-size: var(--t-2xl); margin: 0 0 4px; }
.level-bar { height: 14px; border-radius: 14px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 10px; }
.level-bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.big-streak { display: flex; gap: 18px; align-items: center; padding: 26px; }
.flame { font-size: 4rem; line-height: 1; filter: drop-shadow(0 0 20px rgba(255,150,50,.7)); animation: flame 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
.flame.cold { filter: grayscale(1) opacity(.5); animation: none; }
@keyframes flame { 0%,100% { transform: scale(1) rotate(-2deg);} 50% { transform: scale(1.08, 1.12) rotate(2deg);} }
.big-streak b { font-family: var(--f-display); font-size: 3rem; line-height: 1; font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.cal span { aspect-ratio: 1; border-radius: 9px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--muted); }
.cal span.on { background: linear-gradient(160deg, var(--spark), #FF8A3D); color: #3A1500; }
.cal span.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal .dow { background: none; aspect-ratio: auto; }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255,255,255,.1) 0); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg-2); }
.ring b { position: relative; font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; }
.activity-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; text-decoration: none; height: 100%; position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.3,1.6,.6,1); }
.activity-card:hover { transform: translateY(-5px) rotate(-.5deg); }
.activity-card .a-ic { font-size: 2.4rem; line-height: 1; }
.activity-card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.activity-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.activity-card .xp { position: absolute; top: 16px; right: 16px; }
.mission { display: flex; gap: 18px; align-items: center; padding: 22px 26px; }
.mission img { width: 86px; flex: none; animation: bob 4s ease-in-out infinite; }

/* game stage */
.arcade-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; }
.arcade-tabs button { flex: none; display: inline-flex; gap: 8px; align-items: center; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--glass-line); background: var(--glass); font-weight: 800; }
.arcade-tabs button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 10px 24px -10px var(--glow); }
.stage { padding: clamp(20px, 3.4vw, 40px); min-height: 460px; position: relative; overflow: hidden; }
.stage-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.progress-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.progress-dots i { width: 26px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.15); }
.progress-dots i.done { background: var(--lime); }
.progress-dots i.miss { background: var(--rose); }
.progress-dots i.cur { background: var(--accent); }
.q-text { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); line-height: 1.25; margin-bottom: 22px; max-width: 30ch; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .options { grid-template-columns: 1fr; } }
.opt {
  display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px 18px; min-height: 64px; border-radius: 18px;
  border: 2px solid var(--glass-line); background: var(--glass); font-weight: 800; font-size: 1.05rem; transition: transform .15s, background .2s, border-color .2s;
}
.opt:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--accent); background: var(--glass-strong); }
.opt .k { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.12); font-family: var(--f-display); }
.opt.right { border-color: var(--lime); background: rgba(142,224,43,.18); }
.opt.right .k { background: var(--lime); color: #12230A; }
.opt.wrong { border-color: var(--rose); background: rgba(255,107,154,.14); animation: shake .4s; }
.opt[disabled] { cursor: default; }
@keyframes shake { 20%, 60% { transform: translateX(-6px);} 40%, 80% { transform: translateX(6px);} }
.explain { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(46,211,246,.1); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); display: flex; gap: 12px; align-items: flex-start; }
.explain img { width: 44px; flex: none; }
.stage-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.timer-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 18px; }
.timer-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--spark), var(--rose)); background-size: 300% 100%; transition: width 1s linear; }
.result { text-align: center; padding: 20px 0; }
.result .score { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 4vw, 5rem); font-weight: 700; line-height: 1; }
.result img { width: 130px; margin: 0 auto 10px; animation: bob 3s ease-in-out infinite; }
.result .btn-row { justify-content: center; margin-top: 18px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pick { padding: 18px; border-radius: 18px; border: 2px solid var(--glass-line); background: var(--glass); text-align: left; font-weight: 800; display: grid; gap: 4px; transition: .2s; }
.pick:hover, .pick.on { border-color: var(--accent); background: var(--glass-strong); }
.pick .em { font-size: 1.8rem; }
.pick small { color: var(--muted); font-weight: 700; }

/* word scramble */
.letters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0; min-height: 70px; }
.tile { width: 58px; height: 64px; border-radius: 16px; border: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 1.8rem; font-weight: 600; background: linear-gradient(180deg, #fff, #D9D2FF); color: var(--ink); box-shadow: 0 6px 0 #9C8FE0, 0 14px 20px -10px rgba(0,0,0,.6); transition: transform .15s; touch-action: manipulation; }
.tile:hover { transform: translateY(-3px); }
.tile:active { transform: translateY(3px); box-shadow: 0 2px 0 #9C8FE0; }
.tile.used { opacity: .2; pointer-events: none; }
.answer-slots { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; min-height: 70px; }
.answer-slots span { width: 52px; height: 60px; border-radius: 14px; border: 2px dashed var(--glass-line); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; }
.answer-slots span.fill { border-style: solid; border-color: var(--accent); background: var(--glass-strong); }
.answer-slots.ok span { border-color: var(--lime); background: rgba(142,224,43,.2); }

/* memory */
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 560px; margin: 0 auto; perspective: 900px; }
.card3d { aspect-ratio: 1; border: 0; padding: 0; background: none; position: relative; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3,1.4,.6,1); }
.card3d.flip, .card3d.matched { transform: rotateY(180deg); }
.card3d .face { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: clamp(1.6rem, 6vw, 2.6rem); }
.card3d .front { background: var(--grad); box-shadow: inset 0 0 0 3px rgba(255,255,255,.3); }
.card3d .front::after { content: "?"; font-family: var(--f-display); font-weight: 700; color: var(--on-accent); font-size: 1.6rem; }
.card3d .back { background: #fff; color: var(--ink); transform: rotateY(180deg); font-weight: 800; font-size: clamp(.7rem, 2.6vw, .95rem); text-align: center; padding: 6px; line-height: 1.2; }
.card3d .back .e { display: block; font-size: clamp(1.4rem, 5vw, 2.2rem); }
.card3d.matched .back { background: #E4FFC6; box-shadow: 0 0 0 3px var(--lime); }

/* matching */
.match-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; position: relative; }
.match-col { display: grid; gap: 12px; }
.m-item { padding: 14px 16px; min-height: 58px; border-radius: 16px; border: 2px solid var(--glass-line); background: var(--glass); font-weight: 800; text-align: left; transition: .2s; }
.m-item.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, transparent); transform: scale(1.02); }
.m-item.done { border-color: var(--lime); background: rgba(142,224,43,.16); opacity: .85; pointer-events: none; }
.m-item.bad { animation: shake .4s; border-color: var(--rose); }
.match-lines { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
@media (max-width: 560px) { .match-board { gap: 10px 14px; } .m-item { font-size: .9rem; padding: 12px; } }

/* drag & drop */
.sortable { display: grid; gap: 10px; max-width: 560px; list-style: none; padding: 0; margin: 0 auto; }
.drag-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--glass-strong); border: 2px solid var(--glass-line); font-weight: 800; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; transition: box-shadow .2s, border-color .2s; }
.drag-item .grip { opacity: .6; letter-spacing: -2px; }
.drag-item.dragging { cursor: grabbing; box-shadow: 0 22px 40px -14px rgba(0,0,0,.7); border-color: var(--accent); z-index: 5; position: relative; transition: none; }
.drag-item.ok { border-color: var(--lime); background: rgba(142,224,43,.15); }
.drag-item.no { border-color: var(--rose); }
.buckets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.bucket { min-height: 180px; padding: 16px; border-radius: 22px; border: 2px dashed var(--glass-line); display: flex; flex-direction: column; gap: 8px; transition: .2s; }
.bucket h4 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.bucket.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); transform: scale(1.02); }
.pool { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 64px; }
.pool .drag-item { padding: 10px 14px; }
.ghost-drag { position: fixed; z-index: 999; pointer-events: none; transform: rotate(-3deg) scale(1.05); }

/* pattern puzzle */
.seq { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 10px 0 24px; }
.seq span { width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; font-family: var(--f-display); font-weight: 600; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.seq span.q { border: 2px dashed var(--accent); color: var(--accent); animation: livepulse 1.6s infinite; }

/* snap & solve */
.snap-drop { border: 2.5px dashed var(--glass-line); border-radius: var(--r-l); padding: 34px 20px; text-align: center; display: grid; gap: 14px; justify-items: center; transition: .2s; position: relative; }
.snap-drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.snap-drop .big-ic { font-size: 3.4rem; }
.cam-wrap { position: relative; border-radius: var(--r-l); overflow: hidden; background: #000; aspect-ratio: 4/3; }
.cam-wrap video { width: 100%; height: 100%; object-fit: cover; }
.cam-frame { position: absolute; inset: 12%; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.cam-btns { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; }
.shutter { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.3); }
.preview-img { border-radius: 18px; max-height: 360px; width: auto; margin: 0 auto; box-shadow: var(--shadow); }
.solution { line-height: 1.7; }
.solution h4 { margin: 1em 0 .4em; }
.solution ol { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.solution ol > li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); opacity: 0; transform: translateY(10px); animation: stepIn .5s forwards; }
.solution ol > li::before { content: counter(s); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: var(--on-accent); font-family: var(--f-display); font-weight: 700; }
@keyframes stepIn { to { opacity: 1; transform: none; } }
.solution .final { padding: 16px 18px; border-radius: 16px; background: rgba(142,224,43,.15); border: 1px solid rgba(142,224,43,.5); font-weight: 800; font-size: 1.15rem; }
.scan-line { position: absolute; left: 0; right: 0; height: 3px; background: var(--accent); box-shadow: 0 0 20px var(--accent); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { 0% { top: 0; } 50% { top: calc(100% - 3px);} 100% { top: 0; } }
.ocr-box { position: relative; display: inline-block; border-radius: 18px; overflow: hidden; }

/* rewards */
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.reward { position: relative; padding: 20px 14px 16px; border-radius: 22px; text-align: center; border: 2px solid var(--glass-line); background: var(--glass); display: grid; gap: 4px; justify-items: center; transition: transform .25s cubic-bezier(.3,1.6,.6,1); }
.reward:hover { transform: translateY(-4px) rotate(-1deg); }
.reward .r-ic { font-size: 2.8rem; line-height: 1.1; }
.reward b { font-size: 1rem; }
.reward small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.reward.locked .r-ic { filter: grayscale(1) brightness(.6); opacity: .55; }
.reward.locked::after { content: "🔒"; position: absolute; top: 10px; right: 12px; font-size: .95rem; }
.reward.equipped { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.reward.unlocked.badge { background: linear-gradient(170deg, rgba(255,201,77,.22), rgba(255,255,255,.04)); border-color: rgba(255,201,77,.55); }
.reward button { margin-top: 6px; }
.theme-swatch { width: 100%; height: 60px; border-radius: 14px; margin-bottom: 6px; }

/* modal / celebrate */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(5, 2, 25, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: .3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal .box { width: min(460px, 100%); padding: 32px 26px; text-align: center; transform: scale(.85) translateY(20px); transition: transform .45s cubic-bezier(.3,1.6,.5,1); max-height: 90vh; overflow-y: auto; }
.modal.open .box { transform: none; }
.modal .burst { font-size: 5rem; line-height: 1; animation: pop .7s cubic-bezier(.3,1.8,.5,1); }
@keyframes pop { 0% { transform: scale(0) rotate(-30deg);} 100% { transform: scale(1) rotate(0);} }
.toast-stack { position: fixed; top: calc(var(--header-h) + 10px); left: 50%; translate: -50% 0; z-index: 210; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 12px 18px; border-radius: 999px; font-weight: 800; background: rgba(13,7,38,.9); background: color-mix(in srgb, var(--bg-2) 92%, transparent); border: 1px solid var(--glass-line); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: toastIn .4s cubic-bezier(.3,1.6,.5,1); display: flex; gap: 8px; align-items: center; }
.toast.xp { border-color: rgba(255,201,77,.6); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.9);} }
.xp-pop { position: fixed; z-index: 220; pointer-events: none; font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--spark); text-shadow: 0 2px 12px rgba(0,0,0,.6); animation: xpfly 1.1s forwards; }
@keyframes xpfly { from { opacity: 1; transform: translate(-50%, 0) scale(.8);} to { opacity: 0; transform: translate(-50%, -80px) scale(1.3);} }

/* ---------- Orvi guide ---------- */
.orvi-fab { position: fixed; right: 14px; bottom: 14px; z-index: 70; display: flex; align-items: flex-end; gap: 8px; }
.orvi-btn { width: 88px; height: 88px; border: 0; padding: 0; background: none; position: relative; animation: bob 4.5s ease-in-out infinite; filter: drop-shadow(0 12px 22px var(--glow)); }
.orvi-btn img { width: 100%; height: 100%; }
.orvi-btn::before { content: ""; position: absolute; inset: 12% 10% 0; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); z-index: -1; animation: livepulse 2.5s infinite; }
.orvi-btn .ping { position: absolute; top: 6px; right: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); border: 3px solid var(--bg); }
.orvi-bubble { max-width: 230px; margin-bottom: 54px; padding: 12px 14px; border-radius: 18px 18px 4px 18px; font-weight: 800; font-size: .92rem; line-height: 1.4; background: #fff; color: var(--ink); box-shadow: var(--shadow); animation: toastIn .4s cubic-bezier(.3,1.6,.5,1); position: relative; }
.orvi-bubble button { display: block; margin-top: 6px; background: none; border: 0; padding: 0; color: var(--blue); font-weight: 900; }
.orvi-bubble .x { position: absolute; top: 4px; right: 8px; margin: 0; color: #999; font-size: 1rem; }
@media (max-width: 520px) { .orvi-btn { width: 70px; height: 70px; } .orvi-bubble { max-width: 190px; margin-bottom: 44px; font-size: .85rem; } }
.orvi-panel {
  position: fixed; right: 14px; bottom: 14px; z-index: 80; width: min(410px, calc(100vw - 20px)); height: min(640px, calc(100vh - 28px)); height: min(640px, calc(100svh - 28px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 28px;
  background: rgba(13,7,38,.9); background: color-mix(in srgb, var(--bg-2) 94%, transparent); border: 1px solid var(--glass-line); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transform: translateY(30px) scale(.94); transform-origin: bottom right; opacity: 0; visibility: hidden; transition: .35s cubic-bezier(.3,1.4,.5,1);
}
.orvi-panel.open { transform: none; opacity: 1; visibility: visible; }
@media (max-width: 520px) { .orvi-panel { right: 10px; left: 10px; bottom: 10px; width: auto; height: calc(100vh - 20px); height: calc(100svh - 20px); } }
.op-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--grad); color: var(--on-accent); }
.op-head img { width: 46px; height: 46px; }
.op-head b { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; display: block; line-height: 1.1; }
.op-head small { font-weight: 800; opacity: .8; }
.op-head .icon-btn { margin-left: auto; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.25); display: grid; place-items: center; color: inherit; flex: none; }
.icon-btn:hover { background: rgba(255,255,255,.4); }
.icon-btn.on { background: var(--on-accent); color: #fff; }
.op-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 18px; font-size: .97rem; line-height: 1.5; animation: toastIn .3s; word-wrap: break-word; }
.msg.bot { background: var(--glass-strong); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); font-weight: 700; border-bottom-right-radius: 6px; }
.msg p { margin: 0 0 .5em; } .msg p:last-child { margin: 0; }
.msg ul, .msg ol { margin: .3em 0; padding-left: 1.2em; }
.msg a { color: var(--accent); font-weight: 800; }
.msg strong { color: var(--accent); }
.msg.me strong { color: inherit; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: tdot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 100% { transform: translateY(0); opacity: .4;} 50% { transform: translateY(-5px); opacity: 1;} }
.starters { display: flex; flex-wrap: wrap; gap: 8px; }
.starters button { border: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent); background: transparent; color: var(--accent); padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: .86rem; }
.starters button:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.op-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: center; }
.op-form input { min-height: 46px; border-radius: 999px; }
.op-form .icon-btn { background: var(--glass-strong); color: var(--text); width: 46px; height: 46px; }
.op-form .send { background: var(--accent); color: var(--on-accent); }
.op-form .mic.rec { background: var(--rose); color: #fff; animation: livepulse 1.2s infinite; }
.op-note { font-size: .74rem; color: var(--muted); text-align: center; padding: 0 12px 10px; }

/* tour */
.tour-spot { position: fixed; z-index: 150; border-radius: 22px; box-shadow: 0 0 0 9999px rgba(5,2,25,.72), 0 0 0 4px var(--accent), 0 0 40px var(--glow); transition: all .5s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tour-card { position: fixed; z-index: 151; width: min(340px, calc(100vw - 32px)); padding: 20px; transition: all .5s cubic-bezier(.2,.8,.2,1); background: rgba(13,7,38,.9); background: color-mix(in srgb, var(--bg-2) 96%, transparent); }
.tour-card .tc-top { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.tour-card img { width: 52px; }
.tour-card .btn-row { justify-content: flex-end; margin-top: 12px; }

/* ---------- cinematic intro ---------- */
.intro { position: fixed; inset: 0; z-index: 500; background: #05021A; display: grid; place-items: center; overflow: hidden; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-inner { position: relative; text-align: center; padding: 0 20px; }
.intro-logo { width: min(560px, 82vw); opacity: 0; transform: scale(.6); filter: blur(20px); }
.intro-line { font-family: var(--f-display); font-size: clamp(1.1rem, 3.4vw, 1.7rem); font-weight: 500; color: #CFC8FF; margin-top: 22px; min-height: 1.4em; }
.intro-line span { display: inline-block; opacity: 0; transform: translateY(14px); }
.intro-orvi { position: absolute; width: clamp(110px, 16vw, 170px); right: 8%; bottom: -200px; transition: bottom 1s cubic-bezier(.3,1.5,.5,1); }
.intro-orvi.in { bottom: 8%; }
.intro-hi { position: absolute; right: calc(8% + clamp(110px, 16vw, 170px)); bottom: calc(8% + 90px); background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-weight: 900; opacity: 0; transform: scale(.6); transition: .4s cubic-bezier(.3,1.6,.5,1) .5s; }
.intro-orvi.in + .intro-hi { opacity: 1; transform: none; }
.intro-skip { position: absolute; top: 18px; right: 18px; z-index: 2; }
.intro.out { animation: introOut 1s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes introOut { to { clip-path: circle(0% at 50% 50%); opacity: .3; } }
.intro { clip-path: circle(150% at 50% 50%); }
.intro-bar { position: absolute; left: 50%; bottom: 40px; translate: -50% 0; width: 160px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 0; background: var(--grad); }

/* ---------- reveal (one orchestrated system) ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-3d { opacity: 0; transform: perspective(1000px) rotateX(18deg) translateY(50px) scale(.96); transform-origin: 50% 100%; transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.js .rv-3d.in { opacity: 1; transform: none; }

/* depth tunnel (scroll-scrubbed big type) */
.tunnel { position: relative; }
.tunnel.tunnel-on { height: 420vh; }
.tunnel:not(.tunnel-on) .tunnel-sticky { position: relative; height: auto; padding: 80px 0; }
.tunnel:not(.tunnel-on) .tunnel-words { height: auto; display: grid; gap: 10px; justify-items: center; }
.tunnel:not(.tunnel-on) .tunnel-words span { position: static; translate: none; }
.tunnel-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; perspective: 900px; }
.tunnel-words { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.tunnel-words span { position: absolute; left: 50%; top: 50%; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 1.4rem + 6vw, 7rem); white-space: nowrap; translate: -50% -50%; will-change: transform, opacity; line-height: 1; text-align: center; }
.tunnel-words span:nth-child(odd) { color: transparent; -webkit-text-stroke: 2px var(--accent); }
.tunnel-words span.solid { color: var(--text); -webkit-text-stroke: 0; }

/* marquee */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marq 40s linear infinite; }
.marquee-track span { font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; white-space: nowrap; color: var(--muted); display: inline-flex; gap: 14px; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* sample week / timeline */
.week { display: grid; gap: 12px; }
.week-row { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 18px 20px; border-radius: 18px; align-items: start; }
.week-row b { font-family: var(--f-display); font-weight: 600; }
@media (max-width: 600px) { .week-row { grid-template-columns: 1fr; gap: 4px; } }
.curr-map { display: grid; gap: 14px; }
.curr-row { display: grid; grid-template-columns: 60px 1fr 1fr 1fr; gap: 16px; padding: 20px; border-radius: 20px; align-items: start; }
.curr-row .ic { font-size: 2.2rem; }
.curr-row h4 { margin: 0 0 4px; }
.curr-row p { margin: 0; color: var(--muted); font-size: .95rem; }
.curr-row .band { font-weight: 800; font-size: .82rem; color: var(--accent); display: block; margin-bottom: 2px; }
.day .curr-row .band { color: var(--blue); }
@media (max-width: 860px) { .curr-row { grid-template-columns: 1fr; } }

/* mentor cards */
.mentor { padding: 26px; display: grid; gap: 10px; }
.mentor .ph { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font-size: 2.2rem; background: #EAE4FF; }
.mentor h3 { margin: 0; font-size: 1.3rem; }

/* report sample */
.report { padding: 28px; }
.radar { width: 100%; max-width: 360px; margin: 0 auto; }
.radar text { font-family: var(--f-body); font-weight: 800; font-size: 11px; fill: var(--muted); }
.strength-list { display: grid; gap: 10px; }
.strength { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; }
.strength .bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 4px; }
.day .strength .bar { background: #E6E0FA; }
.strength .bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }

/* readiness flow */
.flow-steps { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.flow-steps span { padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: .88rem; background: var(--glass); border: 1px solid var(--line); color: var(--muted); }
.flow-steps span.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.flow-steps span.done { color: var(--lime); border-color: rgba(142,224,43,.5); }

/* 404 */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px 20px; }
.lost .n { font-family: var(--f-display); font-size: clamp(6rem, 20vw, 14rem); font-weight: 700; line-height: .9; }

/* noscript / reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .rv-3d { opacity: 1; transform: none; }
  .journey { height: auto; }
  .journey-sticky { position: relative; height: auto; }
  .tunnel { height: auto; }
  .tunnel-sticky { position: relative; height: auto; padding: 80px 0; }
  .tunnel-words { height: auto; display: grid; gap: 10px; }
  .tunnel-words span { position: static; translate: none; }
}
html.reduce-motion .rv, html.reduce-motion .rv-3d { opacity: 1 !important; transform: none !important; }

/* print (profile report) */
@media print {
  body { background: #fff; color: #000; }
  body::before, .site-header, .site-footer, .orvi-fab, .orvi-panel, .wa-fab, .no-print, .drawer { display: none !important; }
  .glass { background: #fff; box-shadow: none; border: 1px solid #ccc; backdrop-filter: none; }
  .print-only { display: block !important; }
  * { color: #111 !important; }
}
.print-only { display: none; }

/* helpers */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .wrap-f { flex-wrap: wrap; } .ai-c { align-items: center; } .jc-sb { justify-content: space-between; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line); margin: 24px 0; border: 0; }
.kbd { font-family: var(--f-display); padding: 2px 8px; border-radius: 6px; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.note { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); font-size: .95rem; }
.day .note { background: #fff; }

/* journey static mode (reduced motion / no WebGL) */
.journey-static { height: auto; }
.journey-static .journey-sticky { position: relative; height: auto; padding: 100px 0 60px; overflow: visible; }
.journey-static .journey-fallback { opacity: .25; }
.journey-static .journey-intro { position: relative; inset: auto; margin-bottom: 40px; opacity: 1 !important; }
.journey-static .journey-ui { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding: 0 var(--gutter); max-width: var(--wrap); margin: 0 auto; pointer-events: auto; }
.journey-static .journey-card { position: relative; left: auto; top: auto; translate: none; opacity: 1; transform: none; max-width: none; pointer-events: auto; bottom: auto; right: auto; }
.journey-static .journey-progress, .journey-static .journey-hint { display: none; }
