/* Lotus Edu v34 "Night Pond / Living Ink" reskin layer — FE-WAVE #72994 (DESIGN-SYSTEM-v1).
   Loaded AFTER the legacy inline styles; re-maps the legacy CSS variables to the
   Night Pond tokens so every legacy rule inherits the approved palette.
   Additive only: no legacy selector is deleted; i18n markup, age-gate and all
   API flows untouched. */
@font-face{font-family:Fraunces;src:url(fonts/fraunces-latin-wght-normal.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:Fraunces;src:url(fonts/fraunces-latin-wght-italic.woff2) format("woff2");font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:Bricolage;src:url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:JBMono;src:url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");font-weight:100 800;font-display:swap}

/* ── Night Pond tokens (DESIGN-SYSTEM-v1 §3) ── */
:root{
  --ink-0:#05070F; --ink-1:#0A1024; --ink-2:#0B2630; --ink-3:#12343A;
  --lotus:#F08F95; --lotus-deep:#E4647A; --petal:#FEEBDD;
  --glow:#9BF6D1; --lantern:#FFC76B; --koi:#FF7A59; --iris:#A99BFF; --sky:#7CC8FF;
  --paper:#F6EFE4; --paper-ink:#1B1A24; --paper-rule:#E3D6C3;
  --fg:#EEF1F8; --fg-2:#AAB3C8;
  --f-display:Fraunces,"Iowan Old Style",Georgia,serif;
  --f-ui:Bricolage,"Segoe UI",system-ui,sans-serif;
  --f-mono:JBMono,ui-monospace,Menlo,monospace;
  --ease-spring:cubic-bezier(.34,1.56,.64,1); --ease-out:cubic-bezier(.16,1,.3,1);
  --door:var(--sky); /* Lotus Edu owns the sky hue end-to-end (§3) */
}

/* ── Legacy variable re-map: the whole old app inherits Night Pond ── */
:root{
  --bg:#0A1024; --bg2:#101A33; --surface:rgba(16,26,51,.82); --surface-solid:#101A33;
  --primary:#7CC8FF; --primary-2:#5FB3F0; --accent:#9BF6D1; --gold:#FFC76B;
  --success:#9BF6D1; --danger:#E4647A; --text:#EEF1F8; --muted:#AAB3C8;
  --line:rgba(238,241,248,.12); --shadow:0 10px 34px rgba(2,4,12,.55);
  --lotus-500:#F08F95; --lotus-ink:#3A1520;
}

/* ── Typography voice (§2): display = Fraunces, UI = Bricolage ── */
body.lm34{font-family:var(--f-ui)!important}
body.lm34 h1, body.lm34 h2, body.lm34 h3, body.lm34 .celebrate-emoji + h2{
  font-family:var(--f-display)!important; letter-spacing:-.03em; font-weight:700}
body.lm34 h1{line-height:1.04}
body.lm34 .ch-title, body.lm34 .section-title, body.lm34 .brand{font-family:var(--f-ui)}

/* ── Water texture: caustics + film grain (§4) ── */
.lm34-caustics{position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.9;
  background:
   radial-gradient(42% 30% at 18% 12%, rgba(124,200,255,.14), transparent 70%),
   radial-gradient(36% 34% at 84% 20%, rgba(169,155,255,.10), transparent 70%),
   radial-gradient(50% 40% at 60% 96%, rgba(11,38,48,.85), transparent 70%);
  animation:lm34caust 28s ease-in-out infinite alternate}
@keyframes lm34caust{to{transform:translate3d(3%,-2%,0) rotate(4deg) scale(1.06)}}
.lm34-grain{position:fixed;inset:0;pointer-events:none;z-index:90;opacity:.06;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
.lm34-ff{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}

/* ── Ripples (§4): every press on a data-lm34-ripple target ── */
.lm34-ring{position:fixed;border:2px solid rgba(124,200,255,.7);border-radius:50%;pointer-events:none;
  width:12px;height:12px;transform:translate(-50%,-50%) scale(0);opacity:.8;z-index:95;
  animation:lm34rip .8s var(--ease-out) forwards}
@keyframes lm34rip{to{transform:translate(-50%,-50%) scale(9);opacity:0}}

/* ── Shared button skin: pills of light on dark water ── */
body.lm34 .btn, body.lm34 .btn-primary, body.lm34 .btn-send, body.lm34 .celebrate-btn{
  border-radius:999px!important;font-weight:600;font-family:var(--f-ui);
  box-shadow:0 0 0 1px rgba(255,255,255,.22) inset, 0 10px 30px -10px rgba(124,200,255,.55)!important;
  transition:transform .35s var(--ease-spring), box-shadow .3s, filter .3s}
body.lm34 .btn:hover, body.lm34 .btn-primary:hover, body.lm34 .celebrate-btn:hover{
  transform:translateY(-2px);filter:brightness(1.08)}
body.lm34 .btn-ghost{background:rgba(255,255,255,.05);border:1px solid var(--line)}

/* Reduced motion: stillness is a feature, not a bug (§7) */
@media (prefers-reduced-motion: reduce){
  .lm34-caustics, .lm34-bloom .petal, .lm34-lamp .cone, .lm34-pulse{animation:none!important}
  body.lm34 *{scroll-behavior:auto}
}
