/* =========================================================
   Luluboo — sistem vizual pornit din logo
   hârtie caldă · culori plate de tipar · linie neagră subțire
   ========================================================= */
:root {
  --paper: #fbf5ea;
  --paper-2: #f3e8d6;
  --paper-3: #ecdfc8;
  --white: #fffdf8;
  --ink: #1b1b1b;
  --ink-2: #4a443d;
  --ink-3: #8a8178;
  --orange: #ea662c;
  --mustard: #f6b532;
  --sky: #88c7f0;
  --cobalt: #3590d4;
  --pink: #f59db9;
  --peach: #fdbb9d;
  --coral: #f98c6c;
  --blush: #fce3d6;
  --sage: #a7cf9b;
  --night: #22386b;

  --mustard-2: #fde9b8;
  --sky-2: #d8ecf9;
  --pink-2: #fcdde6;

  --line: 1.6px solid var(--ink);
  --r: 22px;
  --r-lg: 34px;

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Shantell Sans', 'Comic Sans MS', cursive;
  --f-story: 'Fraunces', Georgia, serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1200px;
  --grain: url('../img/grain.png');
  --swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C40 3 70 3 92 9 L100 16 L108 9 C130 3 160 3 197 9' fill='none' stroke='%231b1b1b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--mustard); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(18px, 4vw, 36px); }

h1, h2, h3, h4 { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 96; line-height: 1; margin: 0; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); line-height: .96; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
h3 { font-size: 1.5rem; line-height: 1.1; font-variation-settings: 'SOFT' 100, 'WONK' 0, 'opsz' 36; }
h4 { font-variation-settings: 'SOFT' 100, 'WONK' 0, 'opsz' 24; }
p { margin: 0; }
.hand { font-family: var(--f-hand); font-style: normal; }

/* litere colorate ca în logo */
.rainbow span { display: inline-block; -webkit-text-stroke: .024em var(--ink); paint-order: stroke fill; }
.rainbow span:nth-child(5n+1) { color: var(--mustard); }
.rainbow span:nth-child(5n+2) { color: var(--pink); }
.rainbow span:nth-child(5n+3) { color: var(--sky); }
.rainbow span:nth-child(5n+4) { color: var(--coral); }
.rainbow span:nth-child(5n) { color: var(--orange); }
.rainbow span:nth-child(odd) { transform: rotate(-3deg) translateY(.02em); }
.rainbow span:nth-child(even) { transform: rotate(2.5deg); }
.u { background: var(--swoosh) left bottom / 100% .32em no-repeat; padding-bottom: .16em; }

/* eticheta scrisă de mână */
.kicker, .hand-label {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--f-hand); font-weight: 600; font-size: 1.08rem; color: var(--orange);
  margin-bottom: .9rem; transform: rotate(-1.5deg); transform-origin: left center;
}
.kicker::before, .hand-label::before {
  content: ''; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-32 -32 64 64'%3E%3Cg fill='%23ea662c'%3E%3Crect x='-6' y='-30' width='12' height='60'/%3E%3Crect x='-6' y='-30' width='12' height='60' transform='rotate(45)'/%3E%3Crect x='-6' y='-30' width='12' height='60' transform='rotate(90)'/%3E%3Crect x='-6' y='-30' width='12' height='60' transform='rotate(135)'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- butoane ---------- */
.btn {
  --bg: transparent; --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.5em; font-family: var(--f-body); font-weight: 700; font-size: 1.02rem; line-height: 1;
  color: var(--fg); background: var(--bg); border: var(--line); border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-spring), background-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: rotate(-1.5deg) translateY(-1px); background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(.97); }
/* butonul-creion: corp negru, gumă portocalie */
.btn-sun {
  --fg: var(--paper);
  background: linear-gradient(90deg, var(--ink) calc(100% - 16px), var(--orange) calc(100% - 16px));
  border-color: var(--ink); padding-right: calc(1.5em + 12px);
}
.btn-sun:hover { background: linear-gradient(90deg, var(--ink) calc(100% - 22px), var(--orange) calc(100% - 22px)); color: var(--paper); }
.btn-pink { --bg: var(--pink); border-color: transparent; }
.btn-mint { --bg: var(--sky); border-color: transparent; }
.btn-lav { --bg: var(--peach); border-color: transparent; }
.btn-lg { font-size: 1.12rem; padding: 1.05em 1.8em; }
.btn-sun.btn-lg { padding-right: calc(1.8em + 14px); }
.btn-sm { font-size: .94rem; padding: .62em 1.05em; }
.btn-sun.btn-sm { padding-right: calc(1.05em + 12px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 46px; height: 46px; display: inline-grid; place-items: center; flex: none; color: var(--ink);
  background: var(--white); border: var(--line); border-radius: 50%;
  transition: transform .25s var(--ease-spring), background-color .2s;
}
.icon-btn:hover { transform: rotate(-8deg) scale(1.05); background: var(--mustard-2); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn.is-on { background: var(--mustard); }

.tag {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .22em .7em; font-weight: 600; font-size: .8rem;
  background: transparent; border: 1.3px solid var(--ink); border-radius: 999px; color: var(--ink-2);
}
.card { background: var(--white); border: var(--line); border-radius: var(--r); }

/* ---------- ornamente din logo ---------- */
.orn { position: absolute; pointer-events: none; z-index: 0; }
.orn-dot { width: 74px; height: 74px; border-radius: 50%; background: var(--orange); }
.orn-blob { width: 230px; height: 200px; background: var(--blush); border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%; }
.orn svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- bara promo + header ---------- */
.promo { background: var(--mustard); color: var(--ink); font-family: var(--f-hand); font-weight: 600; font-size: .95rem; text-align: center; padding: .5rem 1rem; }
.promo b { font-weight: 700; background: var(--swoosh) left bottom / 100% .3em no-repeat; padding-bottom: .1em; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-block: 12px; background: var(--paper); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(27, 27, 27, .12); }
.nav { display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 50px; width: auto; transition: transform .35s var(--ease-spring); }
.logo:hover img { transform: rotate(-2deg) scale(1.03); }
.logo-mark { display: none; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; list-style: none; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; padding: .5em .8em; border-radius: 999px; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: .8em; right: .8em; bottom: .1em; height: .45em; background: var(--swoosh) center / 100% 100% no-repeat; opacity: 0; transform: scaleX(.4); transition: opacity .2s, transform .3s var(--ease-out); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { opacity: 1; transform: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.star-pill {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .42em .85em .42em .55em; font-weight: 800; font-size: 1rem; line-height: 1;
  background: var(--mustard-2); color: var(--ink); border: var(--line); border-radius: 999px;
  transition: transform .25s var(--ease-spring);
}
.star-pill:hover { transform: rotate(-4deg); }
.star-pill svg { width: 21px; height: 21px; }
.star-pill.bump { animation: bump .6s var(--ease-spring); }
.menu-btn { display: none; }
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: calc(100% + 4px); left: 16px; right: 16px; background: var(--white); border: var(--line); border-radius: var(--r); padding: 10px; }
  .nav-links.open a { padding: .8em 1em; }
  .menu-btn { display: inline-grid; }
  .nav { justify-content: space-between; }
  .nav-actions .btn-create { display: none; }
  .logo img { height: 40px; }
}

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(30px, 5vw, 70px) 0 clamp(40px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1, .hero .hero-title { margin-bottom: 1.3rem; }
.hero .hero-title { font-size: clamp(2.6rem, 5.8vw, 4.9rem); line-height: .98; }
.hero-lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36ch; margin-bottom: 1.8rem; }
.hero-try { position: relative; max-width: 540px; padding: 18px; background: var(--white); border: var(--line); border-radius: 26px 30px 24px 32px; }
.hero-try label { display: block; font-family: var(--f-hand); font-weight: 600; margin-bottom: .6rem; }
.hero-try-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-try input { flex: 1 1 200px; min-width: 0; padding: .78em 1.1em; font-size: 1.12rem; font-weight: 600; border: var(--line); border-radius: 999px; background: var(--paper); }
.hero-try input:focus { outline: none; box-shadow: 0 0 0 4px var(--mustard-2); border-color: var(--ink); }
.hero-try input::placeholder { color: var(--ink-3); }
.world-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.world-chip { padding: .36em .85em; font-weight: 600; font-size: .9rem; background: transparent; border: 1.3px solid var(--ink); border-radius: 999px; transition: background-color .2s, transform .25s var(--ease-spring); }
.world-chip:hover { transform: rotate(-3deg); }
.world-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.hero-proof { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 1.8rem; color: var(--ink-2); font-size: .95rem; }
.hero-proof b { display: block; font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 600; font-size: 2rem; color: var(--ink); line-height: 1.05; }

.hero-stage { position: relative; perspective: 1600px; padding-top: 30px; }
.hero-stage .orn-blob { left: -20px; top: 40px; width: 300px; height: 270px; }
.hero-stage .orn-dot { right: 40px; top: 6px; }
.hero-stage .orn-dots { right: -10px; top: 190px; width: 120px; height: 110px; }
.hero-stage .orn-ast { left: 30px; top: -6px; width: 66px; height: 66px; }
.hero-kids { position: relative; display: block; width: 100%; margin-top: -7%; z-index: 3; pointer-events: none; }
.hero-note { position: absolute; z-index: 4; left: 0; top: 150px; font-family: var(--f-hand); font-weight: 600; font-size: 1rem; line-height: 1.25; transform: rotate(-6deg); width: 140px; }
.hero-note svg { width: 64px; height: 40px; margin: 6px 0 0 50px; }
.hero-stage .book3d { position: relative; left: auto; top: auto; margin: 0 auto; transform: rotateY(-22deg) rotateX(6deg) rotateZ(-2deg); }

/* carte 3D, sprijinită pe creionul copiilor */
.book3d {
  --w: 268px; --h: 340px; --d: 28px;
  position: absolute; left: 52%; top: 38%; width: var(--w); height: var(--h); z-index: 2;
  transform-style: preserve-3d; transform: translate(-50%, -50%) rotateY(-22deg) rotateX(6deg) rotateZ(-2deg);
  transition: transform .6s var(--ease-out);
}
.book3d > * { position: absolute; inset: 0; }
.book3d .b-cover { border-radius: 4px 14px 14px 4px; overflow: hidden; transform: translateZ(calc(var(--d) / 2)); background: var(--paper); box-shadow: inset 10px 0 0 rgba(27, 27, 27, .14); }
.book3d .b-cover::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .35; pointer-events: none; z-index: 3; }
.book3d .b-cover .scene { width: 100%; height: 100%; }
.book3d .b-back { background: var(--orange); border-radius: 4px 14px 14px 4px; transform: translateZ(calc(var(--d) / -2)); box-shadow: 30px 40px 50px rgba(27, 27, 27, .18); }
.book3d .b-spine { width: var(--d); left: calc(var(--d) / -2); background: var(--ink); transform: rotateY(-90deg); }
.book3d .b-pages { width: calc(var(--d) - 10px); left: auto; right: calc(5px - (var(--d) - 10px) / 2); top: 6px; bottom: 6px; height: auto; background: repeating-linear-gradient(90deg, var(--white) 0 2px, var(--paper-3) 2px 3px); transform: rotateY(90deg); }
.b-title { position: absolute; left: 0; right: 0; top: 0; padding: 22px 20px 0; text-align: center; z-index: 2; font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 700; color: var(--ink); line-height: 1; }
.b-title .b-name { display: inline-block; font-size: 2.6rem; padding: .05em .35em .12em; background: var(--white); border-radius: 999px; transform: rotate(-2deg); }
.b-title .b-name.pulse-name { animation: bump .5s var(--ease-spring); }
.b-title .b-sub { display: block; font-size: 1.3rem; margin-top: 8px; font-weight: 600; color: var(--ink); text-shadow: 0 0 10px var(--paper), 0 0 2px var(--paper); }
.b-brand { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; z-index: 2; font-family: var(--f-hand); font-weight: 700; color: var(--ink); font-size: .85rem; letter-spacing: .14em; }
.hero-lulu, .floaty, .hero-edge { display: none; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; max-width: 560px; width: 100%; margin: 0 auto; }
  .hero-stage .book3d { --w: 230px; --h: 292px; }
  .b-title .b-name { font-size: 2rem; }
  .b-title .b-sub { font-size: 1.05rem; }
  .hero-note { display: none; }
  .hero-stage .orn-blob { width: 200px; height: 180px; }
}
@media (max-width: 520px) { .hero-stage .book3d { --w: 190px; --h: 242px; } .b-title .b-name { font-size: 1.6rem; } .b-title .b-sub { font-size: .95rem; } }

/* ---------- secțiuni ---------- */
.section { padding-block: clamp(70px, 10vw, 130px); position: relative; }
.section-head { max-width: 700px; margin-bottom: 52px; position: relative; z-index: 1; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { transform: rotate(-1.5deg); transform-origin: center; }
.section-head p { font-size: 1.15rem; color: var(--ink-2); margin-top: 1.1rem; max-width: 56ch; }
.section-head.center p { margin-inline: auto; }

/* marquee coperți */
.cover-marquee { overflow: hidden; padding-block: 26px 34px; border-block: var(--line); background: var(--paper-2); }
.cover-track { display: flex; gap: 26px; width: max-content; animation: marquee 70s linear infinite; }
.cover-marquee:hover .cover-track { animation-play-state: paused; }
.mini-cover { width: 168px; height: 214px; flex: none; position: relative; overflow: hidden; border-radius: 3px 12px 12px 3px; text-decoration: none; box-shadow: 8px 10px 0 rgba(27, 27, 27, .08); transition: transform .4s var(--ease-spring); }
.mini-cover:nth-child(odd) { transform: rotate(-2deg); }
.mini-cover:nth-child(even) { transform: rotate(1.6deg) translateY(8px); }
.mini-cover:hover { transform: rotate(0) translateY(-6px) scale(1.04); }
.mini-cover .scene { width: 100%; height: 100%; }
.mini-cover::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: rgba(27, 27, 27, .16); z-index: 2; }
.mini-cover::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .35; }
.mini-cover span { position: absolute; left: 14px; right: 10px; top: 12px; z-index: 2; font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 700; font-size: 1.02rem; line-height: 1.04; color: var(--ink); background: var(--white); padding: .35em .5em; border-radius: 10px; }

/* pași */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.step { position: relative; }
.step:nth-child(2) { margin-top: 60px; }
.step:nth-child(3) { margin-top: 20px; }
.step-art { aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; margin-bottom: 22px; position: relative; }
.step-art::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .3; pointer-events: none; }
.step-art .scene { width: 100%; height: 100%; }
.step-num { position: absolute; top: -26px; left: -8px; z-index: 2; font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-style: italic; font-weight: 700; font-size: 5rem; line-height: 1; color: var(--orange); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.step:nth-child(2) .step-num { color: var(--sky); }
.step:nth-child(3) .step-num { color: var(--mustard); }
.step h3 { margin-bottom: .5rem; font-size: 1.65rem; }
.step p { color: var(--ink-2); }
.photo-demo { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px; background: var(--sky-2); gap: 10px; }
.photo-demo .ph { aspect-ratio: 3/4; border-radius: 14px; background: var(--peach); display: grid; place-items: center; position: relative; overflow: hidden; transform: rotate(-3deg); box-shadow: 4px 5px 0 rgba(27, 27, 27, .1); }
.photo-demo .ph::before { content: ''; position: absolute; inset: 6px 6px 24px; border-radius: 8px; background: var(--paper); }
.photo-demo .ph svg { width: 64%; position: relative; }
.photo-demo .ph.illus { background: var(--white); transform: rotate(3deg); }
.photo-demo .ph.illus::before { display: none; }
.photo-demo .ph.illus .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-demo .arrow { font-family: var(--f-hand); font-size: 2rem; font-weight: 700; animation: nudge 1.4s ease-in-out infinite; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 60px; } .step { margin-top: 0 !important; } }

/* zona copiilor */
.kids-zone { background: var(--sky); overflow: hidden; isolation: isolate; border-radius: 48px 56px 44px 52px; margin-inline: clamp(8px, 2vw, 24px); }
.kids-zone .kicker { color: var(--ink); }
.kids-zone .section-head p { color: var(--ink); }
.kids-zone-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.kids-zone-sky svg { width: 100%; height: 100%; }
.kz-perks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.kz-perk { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; padding: .5em 1em; background: var(--white); border-radius: 999px; }
.kz-perk svg { width: 19px; height: 19px; }
.kz-boo { position: absolute; right: clamp(16px, 6vw, 90px); top: 70px; width: 150px; z-index: 1; }
.kz-boo .speech { position: absolute; right: 110px; top: -6px; width: max-content; max-width: 190px; font-family: var(--f-hand); font-weight: 600; font-size: .95rem; line-height: 1.25; background: var(--white); padding: .6em .9em; border-radius: 18px 18px 4px 18px; transform: rotate(-3deg); }
@media (max-width: 900px) { .kz-boo { display: none; } }

/* carduri de poveste */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 30px 26px; }
.story-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--white); border-radius: 24px; padding: 10px 10px 16px; position: relative; transition: transform .4s var(--ease-spring); }
.story-card:nth-child(3n+1):hover { transform: translateY(-6px) rotate(-1.2deg); }
.story-card:nth-child(3n+2):hover { transform: translateY(-6px) rotate(1deg); }
.story-card:nth-child(3n):hover { transform: translateY(-6px) rotate(-.6deg); }
.story-card .sc-art { aspect-ratio: 4/3; position: relative; overflow: hidden; border-radius: 16px; }
.story-card .sc-art::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .3; pointer-events: none; z-index: 1; }
.story-card .sc-art .scene { width: 100%; height: 100%; transition: transform .7s var(--ease-out); }
.story-card:hover .sc-art .scene { transform: scale(1.05); }
.story-card .sc-body { padding: 14px 8px 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.story-card h3 { font-size: 1.32rem; }
.story-card p { color: var(--ink-2); font-size: .96rem; line-height: 1.45; }
.sc-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.sc-play { position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; display: grid; place-items: center; z-index: 2; color: var(--paper); background: var(--ink); border-radius: 50%; transition: transform .35s var(--ease-spring), background-color .2s; }
.story-card:hover .sc-play { transform: scale(1.12) rotate(-8deg); background: var(--orange); }
.sc-play svg { width: 18px; height: 18px; margin-left: 3px; }
.sc-badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: .3em; padding: .28em .75em; font-family: var(--f-hand); font-weight: 700; font-size: .85rem; background: var(--mustard); border-radius: 999px; transform: rotate(-4deg); }
.sc-badge svg { width: 14px; height: 14px; }
.sc-badge.new { background: var(--white); }
.sc-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(27, 27, 27, .18); z-index: 2; }
.sc-progress i { display: block; height: 100%; background: var(--orange); }
.story-card.locked { pointer-events: none; background: transparent; border: 1.6px dashed var(--ink-3); }
.story-card.locked .sc-art .scene { filter: grayscale(.9) contrast(.8) brightness(1.08); opacity: .7; }
.lock-overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.lock-overlay div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--f-hand); font-weight: 700; text-align: center; background: var(--white); padding: .7em 1em; border-radius: 16px; transform: rotate(-3deg); }
.lock-overlay svg { width: 30px; height: 30px; }

/* lumi */
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
.world { position: relative; text-decoration: none; color: var(--ink); text-align: center; }
.world-art { position: relative; aspect-ratio: 1; width: 86%; margin: 0 auto 14px; transition: transform .45s var(--ease-spring); }
.world-art::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--c, var(--mustard)); transform: translate(10px, 8px); }
.world-art > .scene { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.world-art::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: var(--line); transform: translate(-2px, -2px); pointer-events: none; }
.world:nth-child(8n+1) { --c: var(--mustard); } .world:nth-child(8n+2) { --c: var(--pink); } .world:nth-child(8n+3) { --c: var(--sky); } .world:nth-child(8n+4) { --c: var(--coral); }
.world:nth-child(8n+5) { --c: var(--peach); } .world:nth-child(8n+6) { --c: var(--orange); } .world:nth-child(8n+7) { --c: var(--cobalt); } .world:nth-child(8n) { --c: var(--mustard); }
.world:hover .world-art { transform: rotate(-6deg) scale(1.04); }
.world h3 { font-size: 1.4rem; }
.world p { font-size: .92rem; color: var(--ink-2); margin-top: 4px; line-height: 1.35; }
@media (max-width: 900px) { .worlds { grid-template-columns: repeat(2, 1fr); } }

/* vârste */
.ages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.age { padding: 24px 22px 26px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; border-radius: 26px 30px 22px 28px; transition: transform .4s var(--ease-spring); }
.age:hover { transform: rotate(-2deg) translateY(-4px); }
.age b { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 600; font-size: 3.2rem; line-height: .9; }
.age small { font-family: var(--f-hand); font-weight: 600; font-size: .98rem; }
.age p { font-size: .96rem; color: var(--ink); opacity: .85; line-height: 1.4; }
.age:nth-child(1) { background: var(--pink); }
.age:nth-child(2) { background: var(--mustard); }
.age:nth-child(3) { background: var(--sky); }
.age:nth-child(4) { background: var(--peach); }
@media (max-width: 900px) { .ages { grid-template-columns: repeat(2, 1fr); } }

/* stiluri */
.styles-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.style-tile { font-weight: 600; font-family: var(--f-hand); text-align: center; }
.style-tile .st-art { position: relative; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; margin-bottom: 10px; transition: transform .4s var(--ease-spring); }
.style-tile:nth-child(odd) .st-art { transform: rotate(-1.5deg); }
.style-tile:nth-child(even) .st-art { transform: rotate(1.5deg); }
.style-tile:hover .st-art { transform: rotate(0) translateY(-6px); }
.style-tile .scene { width: 100%; height: 100%; }
@media (max-width: 900px) { .styles-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .styles-row { grid-template-columns: repeat(2, 1fr); } }

/* stiluri de ilustrație simulate doar cu filtre CSS (ieftine pentru GPU) */
.fx-watercolor, .fx-crayon, .fx-clay, .fx-comic, .fx-pastel, .fx-retro { --play: paused; }
.fx-watercolor { filter: saturate(.7) brightness(1.08) blur(.7px); }
.fx-crayon { filter: contrast(1.15) saturate(1.15) sepia(.18); }
.fx-comic { filter: contrast(1.3) saturate(1.45); }
.fx-clay { filter: saturate(1.25) contrast(1.05) drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
.fx-pastel { filter: saturate(.55) brightness(1.12) contrast(.92); }
.fx-retro { filter: sepia(.5) saturate(1.2) hue-rotate(-12deg); }

/* recenzii */
.reviews { columns: 3 300px; column-gap: 22px; }
.review { break-inside: avoid; margin-bottom: 22px; padding: 26px 24px 22px; border: 0; border-radius: 24px 30px 22px 28px; position: relative; }
.review::before { content: '“'; position: absolute; top: -14px; left: 18px; font-family: var(--f-display); font-size: 5rem; line-height: 1; color: var(--ink); }
.review:nth-child(4n+1) { background: var(--mustard-2); }
.review:nth-child(4n+2) { background: var(--pink-2); }
.review:nth-child(4n+3) { background: var(--sky-2); }
.review:nth-child(4n) { background: var(--blush); }
.review .stars { display: flex; gap: 2px; margin: 8px 0 10px; }
.review .stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0 0 16px; font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'opsz' 18; font-size: 1.12rem; line-height: 1.5; }
.review footer { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.review footer small { display: block; font-weight: 500; color: var(--ink-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; background: var(--ink); color: var(--paper); flex: none; }

/* ce primești */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: var(--line); }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 24px 20px 24px 0; border-bottom: var(--line); }
.feature:not(:nth-child(3n)) { border-right: var(--line); }
.feature:not(:nth-child(3n+1)) { padding-left: 22px; }
.feature .fi { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--mustard-2); }
.feature:nth-child(3n+2) .fi { background: var(--pink-2); }
.feature:nth-child(3n) .fi { background: var(--sky-2); }
.feature .fi svg { width: 23px; height: 23px; }
.feature h4 { font-size: 1.22rem; margin-bottom: 4px; }
.feature p { font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } .feature { border-right: 0 !important; padding-left: 0 !important; } }

/* prețuri */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 920px; margin: 0 auto; align-items: start; }
.price { padding: 34px 32px; position: relative; display: flex; flex-direction: column; gap: 16px; border-radius: 30px 34px 28px 32px; }
.price.featured { background: var(--mustard); border-color: var(--mustard); transform: rotate(1deg); }
.price .ribbon { position: absolute; top: -18px; right: 26px; background: var(--ink); color: var(--paper); border-radius: 999px; padding: .35em 1em; font-family: var(--f-hand); font-weight: 700; transform: rotate(5deg); }
.price h3 { font-size: 1.7rem; }
.price .amount { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 600; font-size: 3.6rem; line-height: 1; }
.price .amount small { font-size: 1.2rem; font-family: var(--f-body); font-weight: 600; }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.price li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.price .btn { margin-top: 8px; align-self: flex-start; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } .price.featured { transform: none; } }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; border-top: var(--line); }
.faq details { border-bottom: var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 4px; font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'opsz' 36; font-weight: 600; font-size: 1.35rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--mustard-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1b1b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/18px no-repeat; transition: transform .35s var(--ease-spring), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--mustard); }
.faq details p { padding: 0 4px 24px; color: var(--ink-2); max-width: 64ch; }

/* CTA final */
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(46px, 7vw, 80px) 24px 0; border-radius: 44px 52px 40px 48px; background: var(--pink); }
.cta-band h2 { margin: 0 auto 1rem; max-width: 16ch; color: var(--ink); }
.cta-band p { font-size: 1.18rem; max-width: 44ch; margin: 0 auto 1.8rem; font-weight: 500; }
.cta-band .btn-sun { background: linear-gradient(90deg, var(--ink) calc(100% - 16px), var(--mustard) calc(100% - 16px)); }
.cta-kids { width: min(760px, 100%); margin: 30px auto 0; position: relative; z-index: 1; }
.cta-band .orn-dots { left: 6%; top: 40px; width: 120px; height: 110px; }
.cta-band .orn-ast { right: 7%; top: 50px; width: 80px; height: 80px; }

/* footer */
.site-footer { background: var(--paper-2); margin-top: 100px; padding: 70px 0 36px; border-top: var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-logo img { width: 260px; max-width: 100%; }
.site-footer h4 { font-size: 1.15rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { border-top: var(--line); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; color: var(--ink-2); }
.credit { text-decoration: none; color: var(--ink-2); }
.credit b { font-weight: 700; color: var(--ink); background: var(--swoosh) left bottom / 100% .3em no-repeat; padding-bottom: .12em; }
.credit:hover b { color: var(--orange); }
.pay { display: flex; gap: 8px; flex-wrap: wrap; }
.pay span { padding: .25em .65em; border: 1.3px solid var(--ink-3); border-radius: 8px; font-weight: 700; font-size: .78rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- BIBLIOTECA ---------- */
.lib-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(30px, 5vw, 70px) 0 90px; }
.lib-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.lib-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin-bottom: 1.1rem; }
.lib-hero p { color: var(--ink-2); font-size: 1.15rem; max-width: 44ch; }
.lib-hero .orn-blob { right: 8%; top: 20px; width: 360px; height: 320px; z-index: -1; }
.lib-hero .orn-dots { left: 46%; top: 30px; width: 110px; height: 100px; }
.passport-mini { padding: 22px; transform: rotate(2deg); border-radius: 26px 30px 24px 28px; }
.passport-mini h3 { font-size: 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pm-level { font-family: var(--f-hand); font-weight: 600; color: var(--orange); margin: 4px 0 12px; }
.bar { height: 12px; border: 1.3px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--orange); transition: width 1s var(--ease-out); }
.pm-stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.pm-sticker { aspect-ratio: 1; border: 1.4px dashed var(--ink-3); border-radius: 50%; display: grid; place-items: center; padding: 8px; }
.pm-sticker.got { border: 0; background: var(--mustard-2); }
.pm-sticker.got .sticker-svg { animation: pop-in .6s var(--ease-spring) both; }
.pm-sticker:not(.got) .sticker-svg { filter: grayscale(1) opacity(.18); }
@media (max-width: 860px) { .lib-hero-grid { grid-template-columns: 1fr; } .passport-mini { transform: none; } }

.lib-tools { position: relative; z-index: 3; margin-top: -40px; padding: 18px; display: grid; gap: 14px; border-radius: 26px; }
.search { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 16px; border: var(--line); border-radius: 999px; background: var(--paper); }
.search svg { width: 21px; height: 21px; flex: none; color: var(--ink-2); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: .72em 0; font-size: 1.06rem; font-weight: 500; outline: none; }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.chip-row > span { font-family: var(--f-hand); font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.chip { padding: .42em .95em; font-weight: 600; font-size: .94rem; background: transparent; border: 1.3px solid var(--ink); border-radius: 999px; transition: background-color .2s, transform .25s var(--ease-spring); }
.chip:hover { transform: rotate(-2deg); background: var(--paper-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lib-empty { text-align: center; padding: 50px 20px; font-family: var(--f-hand); font-weight: 600; color: var(--ink-2); font-size: 1.15rem; }
.continue-card { display: grid; grid-template-columns: 230px 1fr; overflow: hidden; text-decoration: none; color: var(--ink); margin-bottom: 44px; transition: transform .35s var(--ease-spring); border-radius: 26px; }
.continue-card:hover { transform: rotate(-.6deg) translateY(-3px); }
.continue-card .cc-art { min-height: 160px; position: relative; }
.continue-card .cc-art .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.continue-card .cc-body { padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.continue-card .cc-body small { font-family: var(--f-hand); font-weight: 700; color: var(--orange); font-size: .98rem; }
@media (max-width: 600px) { .continue-card { grid-template-columns: 1fr; } .continue-card .cc-art { height: 150px; } }

/* ---------- MODALE ---------- */
.modal-back { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(27, 27, 27, .45); backdrop-filter: blur(4px); animation: fade-in .25s ease both; }
.modal { width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow: auto; padding: 32px 30px 30px; position: relative; text-align: center; background: var(--paper); border-radius: 30px 36px 28px 34px; box-shadow: 0 30px 80px rgba(27, 27, 27, .25); animation: pop-in .5s var(--ease-spring) both; }
.modal .close { position: absolute; top: 14px; right: 14px; }
.modal h2 { font-size: clamp(1.9rem, 5vw, 2.5rem); margin-bottom: .55rem; }
.modal p { color: var(--ink-2); }
.modal .lulu-top { width: 120px; margin: -6px auto 8px; }
.name-input { width: 100%; text-align: center; padding: .6em 1em; font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 600; font-size: 1.7rem; border: var(--line); border-radius: 999px; background: var(--white); margin: 18px 0 14px; }
.name-input:focus { outline: none; box-shadow: 0 0 0 4px var(--mustard-2); }
.modal .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.passport-modal { max-width: 640px; }
.passport-modal .pm-stickers { gap: 12px; }
.passport-head { display: flex; gap: 16px; align-items: center; text-align: left; margin-bottom: 18px; }
.passport-head .lulu-av { width: 84px; flex: none; }
.passport-head small { font-family: var(--f-hand); font-weight: 600; color: var(--ink-2); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.stat { padding: 12px 8px; background: var(--white); border-radius: 18px; }
.stat b { display: block; font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 600; font-size: 2rem; line-height: 1; }
.stat small { font-weight: 600; color: var(--ink-2); }

/* toast */
.toast-wrap { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 300; display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast { display: inline-flex; align-items: center; gap: .6em; padding: .75em 1.2em; font-weight: 600; background: var(--ink); color: var(--paper); border-radius: 999px; animation: toast-in .5s var(--ease-spring) both; }
.toast svg { width: 21px; height: 21px; }
.toast.out { animation: toast-out .3s ease both; }
.fly-star { position: fixed; z-index: 400; width: 28px; height: 28px; pointer-events: none; }

/* ---------- tipar riso pentru personaje ---------- */

/* ---------- animații SVG ---------- */
/* performanță: ilustrațiile mici se mișcă doar la hover, iar cele din afara ecranului stau pe loc */
.mini-cover .scene, .world .scene, .story-card .scene, .style-tile .scene, .pick .scene, .continue-card .scene, .next-up .scene, .step-art .scene { --play: paused; }
.world:hover .scene, .story-card:hover .scene, .step:hover .scene, .pick:hover .scene { --play: running; }
.twinkle, .bob, .bob-slow, .blink, .spin-slow, .spin-slower, .drift, .firefly, .wave, .sway, .sway-slow, .rise, .fall, .swim, .flutter, .flutter-path, .flame, .flicker, .float, .glow, .pulse, .smoke, .flag, .wobble, .float-note, .spout, .wing-l, .wing-r, .wave-arm, .tail { animation-play-state: var(--play, running); }
.scene .layer { transition: transform .7s var(--ease-out); }
.twinkle { animation: twinkle 3.2s ease-in-out infinite; }
.bob { animation: bob 3.6s ease-in-out infinite; }
.bob-slow { animation: bob 5s ease-in-out infinite; }
.blink { animation: blink 5s infinite; transform-box: fill-box; transform-origin: center; }
.spin-slow { animation: spin 40s linear infinite; transform-box: fill-box; transform-origin: center; }
.spin-slower { animation: spin 26s linear infinite; transform-box: fill-box; transform-origin: center; }
.drift { animation: drift 40s ease-in-out infinite alternate; }
.firefly { animation: firefly 6s ease-in-out infinite; }
.wave { animation: wave 6s linear infinite; }
.sway { animation: sway 4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom center; }
.sway-slow { animation: sway-sm 5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom center; }
.rise { animation: rise 8s linear infinite; }
.fall { animation: fall 9s linear infinite; }
.swim { animation: swim 3s ease-in-out infinite; }
.flutter { animation: flutter .25s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.flutter-path { animation: flutter-path 9s ease-in-out infinite; }
.flame, .flicker { animation: flicker .18s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: top center; }
.flicker { transform-origin: bottom center; }
.float { animation: bob 4s ease-in-out infinite; }
.glow { animation: glow 3s ease-in-out infinite; }
.pulse { animation: glow 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.smoke { animation: smoke 4s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
.flag { animation: flag 1.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: left center; }
.wobble { animation: wobble 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
.pop { animation: pop-in .7s var(--ease-spring) both; transform-box: fill-box; transform-origin: bottom center; }
.float-note { animation: note 3.5s ease-in-out infinite; }
.spout { animation: spout 3s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
.wing-l { animation: wing 1.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: right bottom; }
.wing-r { animation: wing 1.6s ease-in-out infinite alternate-reverse; transform-box: fill-box; transform-origin: left bottom; }
.wave-arm { animation: wave-arm 1.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom left; }
.tail { animation: tail 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: left bottom; }

@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
@keyframes firefly { 0%, 100% { transform: translate(0, 0); opacity: .3; } 25% { transform: translate(12px, -10px); opacity: 1; } 50% { transform: translate(-6px, -22px); opacity: .5; } 75% { transform: translate(-14px, -6px); opacity: 1; } }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes sway-sm { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateY(-540px); opacity: 0; } }
@keyframes fall { 0% { transform: translate(0, 0); } 50% { transform: translate(14px, 270px); } 100% { transform: translate(0, 540px); } }
@keyframes swim { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, -6px); } }
@keyframes flutter { from { transform: scaleX(1); } to { transform: scaleX(.3); } }
@keyframes flutter-path { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(40px, -30px); } 50% { transform: translate(80px, 0); } 75% { transform: translate(30px, 20px); } }
@keyframes flicker { from { transform: scale(1, 1); } to { transform: scale(.85, 1.15); } }
@keyframes glow { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes smoke { 0% { transform: translateY(0) scale(.8); opacity: .9; } 100% { transform: translateY(-40px) scale(1.3); opacity: 0; } }
@keyframes flag { from { transform: scaleX(1) skewY(0); } to { transform: scaleX(.8) skewY(8deg); } }
@keyframes wobble { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(1.08, .92); } 60% { transform: scale(.95, 1.06); } }
@keyframes pop-in { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes note { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-50px) rotate(10deg); opacity: 0; } }
@keyframes spout { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.25); } }
@keyframes wing { from { transform: rotate(0); } to { transform: rotate(-14deg); } }
@keyframes wave-arm { from { transform: rotate(0); } to { transform: rotate(-20deg); } }
@keyframes tail { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.2) rotate(-4deg); } 100% { transform: scale(1); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { transform: translateY(30px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(20px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= meniul „din creion” (toate paginile) ================= */
.menu-btn { position: relative; z-index: 70; }
.hb { position: relative; width: 20px; height: 14px; display: block; }
.hb i { position: absolute; left: 0; right: 0; height: 2.4px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-spring), opacity .2s, top .3s var(--ease-out); }
.hb i:nth-child(1) { top: 0; }
.hb i:nth-child(2) { top: 6px; }
.hb i:nth-child(3) { top: 12px; }
.menu-btn.is-open { background: var(--mustard); }
.menu-btn.is-open .hb i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn.is-open .hb i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-btn.is-open .hb i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.menu-btn:active { transform: scale(.94); }

.pmenu { position: fixed; inset: 0; z-index: 65; }
.pmenu-scrim { position: absolute; inset: 0; background: rgba(255, 255, 255, .9); }
.pmenu-sheet {
  position: absolute; inset: 0; background: #fff;
  background-image: repeating-linear-gradient(180deg, transparent 0 46px, rgba(136, 199, 240, .22) 46px 47px);
  box-shadow: 0 10px 30px rgba(27, 27, 27, .12);
}
.pmenu-nav { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 90px 24px calc(min(92vw, 560px) * .436 + 40px); text-align: center; }
.pmenu-nav ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: clamp(4px, 1.6svh, 14px); }
.pm-item { position: relative; display: inline-block; text-decoration: none; color: var(--ink); padding: 4px 10px 10px; -webkit-tap-highlight-color: transparent; }
.pm-txt { display: inline-block; font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 600; font-size: clamp(1.8rem, 7.4vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em; }
.pm-item:active .pm-txt { transform: scale(.97); }
.pm-ul { position: absolute; left: 6%; right: 6%; bottom: 0; width: 88%; height: 12px; overflow: visible; }
.pm-ul path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pm-item:nth-child(even) .pm-ul path, li:nth-child(even) .pm-ul path { stroke: var(--sky); }
li:nth-child(3n) .pm-ul path { stroke: var(--mustard); }
.pmenu-cta { margin-top: 8px; padding: 1em 1.8em; }
.pmenu-cta .pm-txt { font-family: var(--f-body); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; font-variation-settings: normal; }
.pmenu-kids { position: absolute; left: 50%; top: 0; width: min(92vw, 560px); height: auto; transform: translate(-50%, -120%); cursor: pointer; filter: drop-shadow(0 8px 10px rgba(27, 27, 27, .12)); user-select: none; }
html.pmenu-lock, html.pmenu-lock body { overflow: hidden; }

/* semnătura de la final */
.dev-credit { margin: 26px 0 0; text-align: center; font-size: .86rem; letter-spacing: .02em; }
.dev-credit a { color: var(--ink-3); text-decoration: none; }
.dev-credit b { color: var(--ink-2); font-weight: 700; }
.dev-credit a:hover b { color: var(--orange); }
.pmenu-cta, .pmenu-cta:hover { color: var(--paper); }
html.pmenu-lock .site-header { z-index: 80; }
html.pmenu-lock .site-header .star-pill { opacity: 0; pointer-events: none; }
.pmenu-scrim { background: rgba(255, 255, 255, .97); }
html.pmenu-lock .site-header { background: transparent; box-shadow: none; }
html.pmenu-lock .site-header .logo { opacity: 0; transition: opacity .2s; }

/* ===== fundal de acuarelă pastel pe tot site-ul ===== */
body { background: #fffdfa url('../img/fundal-acuarela.webp') center top / 100% auto repeat-y; }
@media (max-width: 700px) { body { background-image: url('../img/fundal-acuarela-sm.webp'); background-size: 160% auto; } }
.site-footer { background: rgba(255, 255, 255, .55); }
.site-header { background: rgba(255, 253, 250, .92); }
.reader-body { background-image: none; }
