@font-face { font-family: "Baloo 2"; src: url(/fonts/baloo2-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; src: url(/fonts/baloo2-latinext.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/fonts/atkinson-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/fonts/atkinson-latinext.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #161210;
  --ink-soft: #5b5650;
  --line: #e9e3d6;
  --paper: #fffdf6;
  --card: #ffffff;
  --yolk: #f5c400;
  --yolk-deep: #c99d00;
  --yolk-tint: #fff4c2;
  --ok: #2f9e5b;
  --ok-deep: #1f7442;
  --ok-tint: #dcf3e4;
  --bad: #d9262e;
  --bad-deep: #a3161d;
  --bad-tint: #ffe1e1;
  --fire: #ff7a1a;
  --lock: #e5e0d6;
  --lock-deep: #c9c2b4;
  --c: #2b57c9;        /* culoarea categoriei curente, setată din JS */
  --c-deep: #1c3d96;
  --c-tint: #e4ecff;
  --f-display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --r: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.05rem/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
@media (min-width: 640px) {
  body { background: radial-gradient(circle at 20% 10%, #fff4c2 0, transparent 40%), radial-gradient(circle at 80% 90%, #e4ecff 0, transparent 40%), #f6f1e4; }
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0; }

.app {
  position: relative;
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) { .app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(60, 40, 0, .12); } }
.boot { margin: auto; padding: 40px; font-family: var(--f-display); font-size: 1.3rem; }

/* ---------- butoane 3D ---------- */
.btn {
  --b: var(--ok); --bd: var(--ok-deep); --t: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px;
  border: 0; border-radius: 16px;
  background: var(--b); color: var(--t);
  font: 800 1.12rem/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 5px 0 var(--bd);
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
  user-select: none;
}
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--bd); }
.btn[disabled] { --b: var(--lock); --bd: var(--lock-deep); --t: #9a9385; cursor: default; }
.btn[disabled]:active { transform: none; box-shadow: 0 5px 0 var(--bd); }
.btn--wide { width: 100%; }
.btn--yolk { --b: var(--yolk); --bd: var(--yolk-deep); --t: var(--ink); }
.btn--bad { --b: var(--bad); --bd: var(--bad-deep); }
.btn--cat { --b: var(--c); --bd: var(--c-deep); --t: var(--c-on, #fff); }
.btn--ghost { --b: #fff; --bd: var(--line); --t: var(--ink); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn--link { background: none; border: 0; box-shadow: none; color: var(--ink-soft); text-transform: none; font-weight: 700; letter-spacing: 0; min-height: 44px; text-decoration: underline; }
.btn--link:active { transform: none; box-shadow: none; }

/* ---------- bara de sus ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-t)) 14px 10px;
  background: rgba(255, 253, 246, .94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.stat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 12px;
  font: 800 1.1rem/1 var(--f-display);
  border: 0; background: none;
}
.stat__ico { font-size: 1.35rem; line-height: 1; }
.stat--fire { color: var(--fire); }
.stat--fire.is-off { color: #b8b0a2; filter: grayscale(1); }
.stat--xp { color: #c58b00; }
.top__cat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 14px;
  border: 2px solid var(--line); background: #fff; box-shadow: 0 3px 0 var(--line);
  font: 800 1rem/1 var(--f-display);
}
.top__cat .chip-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--c-tint); display: grid; place-items: center; font-size: 1.2rem; }
.top__spacer { flex: 1; }
.top__caret { font-size: .8rem; color: var(--ink-soft); margin-left: -2px; }
.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.world { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 2px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 0 var(--line); text-align: left; }
.world:active { transform: translateY(4px); box-shadow: none; }
.world.is-on { border-color: var(--wc); background: var(--wt); box-shadow: 0 4px 0 var(--wc); }
.world__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem; background: var(--wt); box-shadow: inset 0 -4px 0 rgba(0,0,0,.06); }
.world.is-on .world__ico { background: #fff; }
.world b { font: 800 1.05rem/1.15 var(--f-display); }
.world .bar { width: 100%; height: 10px; margin: 0; }
.world small { color: var(--ink-soft); font-size: .82rem; }
.gear { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--ink-soft); display: grid; place-items: center; }
.gear svg { width: 24px; height: 24px; }
.gear__ring { position: absolute; inset: 2px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p, 0) * 1%), transparent 0); -webkit-mask: radial-gradient(circle, transparent 15px, #000 16px); mask: radial-gradient(circle, transparent 15px, #000 16px); }

/* ---------- ecranul principal ---------- */
.main { flex: 1; padding: 14px 16px calc(96px + var(--safe-b)); }
.hello { display: flex; align-items: flex-end; gap: 10px; margin: 4px 0 14px; }
.hello .felix { width: 78px; flex: none; }
.bubble {
  position: relative; flex: 1;
  background: #fff; border: 2px solid var(--line); border-radius: 18px;
  padding: 10px 14px; font-weight: 600;
}
.bubble::after { content: ""; position: absolute; left: -10px; bottom: 18px; width: 16px; height: 16px; background: #fff; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: rotate(45deg); }

.goal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 16px; }
.goal__txt { flex: 1; min-width: 0; }
.goal__txt b { font-family: var(--f-display); font-size: 1.05rem; }
.goal__txt small { display: block; color: var(--ink-soft); font-size: .85rem; }
.bar { height: 16px; border-radius: 99px; background: var(--lock); overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(var(--yolk), #ffb300); box-shadow: inset 0 -4px 0 rgba(0,0,0,.08), inset 0 4px 0 rgba(255,255,255,.45); transition: width .6s cubic-bezier(.2,.9,.3,1.2); }
.goal__chest { font-size: 2rem; }

.cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -16px 6px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px 8px 8px; border-radius: 14px;
  border: 2px solid var(--line); background: #fff; box-shadow: 0 3px 0 var(--line);
  font: 800 .98rem/1 var(--f-display);
}
.cat-chip span { font-size: 1.3rem; }
.cat-chip.is-on { border-color: var(--cc); background: var(--ct); box-shadow: 0 3px 0 var(--cc); }
.cat-chip:active { transform: translateY(3px); box-shadow: none; }

/* drumul */
.unit {
  margin: 18px 0 8px; padding: 14px 16px; border-radius: var(--r);
  background: var(--c); color: var(--c-on, #fff); box-shadow: 0 5px 0 var(--c-deep);
  display: flex; align-items: center; gap: 12px;
}
.unit h2 { font-size: 1.25rem; }
.unit p { margin: 2px 0 0; font-size: .92rem; opacity: .92; }
.unit__lvl { margin-left: auto; font: 800 .8rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.28); padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.path { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 18px 0 8px; }
.node-wrap { position: relative; transform: translateX(var(--x, 0)); }
.node {
  position: relative; width: 76px; height: 70px; border-radius: 50%;
  border: 0; background: var(--c); color: var(--c-on, #fff);
  box-shadow: 0 7px 0 var(--c-deep);
  display: grid; place-items: center; font-size: 2rem;
  transition: transform .08s, box-shadow .08s;
}
.node:active { transform: translateY(7px); box-shadow: 0 0 0 var(--c-deep); }
.node svg { width: 34px; height: 34px; }
.node.is-done { background: var(--yolk); box-shadow: 0 7px 0 var(--yolk-deep); color: var(--ink); }
.node.is-lock { background: var(--lock); box-shadow: 0 7px 0 var(--lock-deep); color: #a39b8c; cursor: default; }
.node.is-lock:active { transform: none; box-shadow: 0 7px 0 var(--lock-deep); }
.node.is-chest, .node.is-trophy { background: none; box-shadow: none; font-size: 3rem; width: 84px; }
.node.is-chest.is-done { filter: grayscale(.4) opacity(.45); }
.node.is-chest.is-lock, .node.is-trophy.is-lock { filter: grayscale(1) opacity(.55); }
.node.is-current { animation: bob 1.6s ease-in-out infinite; }
.node.is-current::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 4px solid var(--c-tint); box-shadow: 0 0 0 3px var(--c); opacity: .9; }
.node.is-chest.is-current::before, .node.is-trophy.is-current::before { display: none; }
.start-tag {
  position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--c); border: 2px solid var(--line);
  font: 800 .95rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 12px; white-space: nowrap; animation: hop 1.6s ease-in-out infinite;
  pointer-events: none;
}
.start-tag::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; }
.path__felix { position: absolute; width: 92px; opacity: .95; pointer-events: none; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

.practice { margin-top: 24px; padding: 16px; border-radius: var(--r); border: 2px dashed var(--c); background: var(--c-tint); text-align: center; }
.practice h3 { font-size: 1.2rem; margin-bottom: 4px; }
.practice p { margin: 0 0 12px; color: var(--ink-soft); }

/* bara de jos */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; z-index: 20;
  display: flex; justify-content: space-around;
  padding: 8px 10px calc(8px + var(--safe-b));
  background: #fff; border-top: 2px solid var(--line);
}
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px solid transparent; background: none; border-radius: 14px; padding: 6px 4px; font: 800 .8rem/1 var(--f-display); color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.nav button span { font-size: 1.6rem; line-height: 1.1; filter: grayscale(.6); }
.nav button.is-on { border-color: #bcd4ff; background: #eef4ff; color: #1c63d6; }
.nav button.is-on span { filter: none; }

/* ---------- lecția ---------- */
.lesson { display: flex; flex-direction: column; min-height: 100dvh; }
.lesson__top { display: flex; align-items: center; gap: 12px; padding: calc(14px + var(--safe-t)) 16px 6px; }
.x { width: 44px; height: 44px; border: 0; background: none; color: #a39b8c; display: grid; place-items: center; flex: none; }
.x svg { width: 26px; height: 26px; }
.lesson__bar { flex: 1; height: 18px; border-radius: 99px; background: var(--lock); overflow: hidden; }
.lesson__bar i { display: block; height: 100%; background: linear-gradient(#5fd38a, var(--ok)); border-radius: inherit; box-shadow: inset 0 4px 0 rgba(255,255,255,.35); transition: width .45s cubic-bezier(.2,.9,.3,1.3); }
.combo { font: 800 1rem/1 var(--f-display); color: var(--fire); min-width: 44px; text-align: right; }
.combo.pop { animation: pop .5s; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-6deg); } 100% { transform: scale(1); } }

.q { flex: 1; padding: 10px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.q__kicker { font: 800 .85rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.q__head { display: flex; align-items: flex-start; gap: 10px; }
.q__head .felix { width: 62px; flex: none; }
.q__text { flex: 1; font: 700 1.38rem/1.25 var(--f-display); }
.speak { flex: none; width: 46px; height: 46px; border-radius: 14px; border: 0; background: #1c9bf0; color: #fff; box-shadow: 0 4px 0 #1477ba; display: grid; place-items: center; }
.speak:active { transform: translateY(4px); box-shadow: none; }
.speak.is-on { background: var(--bad); box-shadow: 0 4px 0 var(--bad-deep); }
.speak--mic:not(.is-on) { animation: invita 1.8s ease-in-out infinite; }
@keyframes invita { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.vtoggle { flex: none; width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 1.25rem; display: grid; place-items: center; }
.vtoggle[aria-pressed="false"] { opacity: .6; }
.speak svg { width: 24px; height: 24px; }
.q__media { display: grid; place-items: center; min-height: 92px; padding: 8px; border-radius: var(--r); background: var(--c-tint); }
.q__emoji { font-size: 4.2rem; line-height: 1; animation: in-pop .45s cubic-bezier(.2,.9,.3,1.4); }
.q__count { font-size: 2.4rem; line-height: 1.25; text-align: center; letter-spacing: .08em; max-width: 300px; }
.q__flag { width: min(240px, 70%); aspect-ratio: 4 / 3; border-radius: 10px; box-shadow: 0 0 0 2px rgba(0,0,0,.08), 0 8px 18px rgba(0,0,0,.12); object-fit: cover; background: #fff; animation: in-pop .45s cubic-bezier(.2,.9,.3,1.4); }
.q__math { font: 800 2.6rem/1.1 var(--f-display); letter-spacing: .02em; text-align: center; }
@keyframes in-pop { from { transform: scale(.6); opacity: 0; } }

.opts { display: grid; gap: 12px; }
.opts--flags { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 12px 16px;
  border: 2px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 4px 0 var(--line);
  font: 700 1.12rem/1.25 var(--f-body); text-align: left;
  transition: transform .08s, box-shadow .08s, background .15s, border-color .15s;
}
.opt:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.opt__k { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; font: 800 .9rem/1 var(--f-display); color: var(--ink-soft); }
.opt.is-sel { border-color: #84c4ff; background: #ddf0ff; box-shadow: 0 4px 0 #84c4ff; }
.opt.is-sel .opt__k { border-color: #84c4ff; color: #1477ba; }
.opt.is-right { border-color: var(--ok); background: var(--ok-tint); box-shadow: 0 4px 0 var(--ok); }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-tint); box-shadow: 0 4px 0 var(--bad); animation: shake .4s; }
.opt[disabled] { cursor: default; }
.opt--flag { flex-direction: column; justify-content: center; padding: 10px; }
.opt--flag img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.opt--flag .opt__k { display: none; }
.opt--big { justify-content: center; font: 800 1.6rem/1 var(--f-display); }
.opts--nums { grid-template-columns: repeat(3, 1fr); }
.opts--nums .opt { justify-content: center; }
.opts--nums .opt__k { display: none; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.check { padding: 14px 18px calc(18px + var(--safe-b)); border-top: 2px solid var(--line); }

.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  width: 100%; max-width: 520px; z-index: 40;
  padding: 18px 18px calc(20px + var(--safe-b));
  border-radius: 24px 24px 0 0;
  transition: transform .32s cubic-bezier(.2,.9,.3,1.1);
}
.sheet.is-open { transform: translate(-50%, 0); }
.sheet--ok { background: var(--ok-tint); color: var(--ok-deep); }
.sheet--bad { background: var(--bad-tint); color: var(--bad-deep); }
.sheet__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sheet__head .felix { width: 58px; }
.sheet h3 { font-size: 1.6rem; }
.sheet__ans { font-weight: 800; margin: 0 0 4px; }
.sheet__why { margin: 0 0 16px; color: var(--ink); font-size: 1.02rem; }

/* ---------- ecrane mari (final, serie, onboarding) ---------- */
.full { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: calc(24px + var(--safe-t)) 22px calc(24px + var(--safe-b)); text-align: center; }
.full .felix { width: 150px; }
.full h1 { font-size: 2.1rem; }
.full p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; max-width: 380px; }
.full .actions { width: 100%; max-width: 400px; display: grid; gap: 12px; margin-top: 10px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 400px; }
.tile { border-radius: 16px; border: 2px solid var(--tc, var(--yolk)); overflow: hidden; background: #fff; animation: rise .5s both; }
.tile:nth-child(2) { animation-delay: .12s; }
.tile:nth-child(3) { animation-delay: .24s; }
.tile b { display: block; background: var(--tc, var(--yolk)); color: #fff; font: 800 .78rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; padding: 6px 4px; }
.tile span { display: block; padding: 10px 4px; font: 800 1.35rem/1 var(--f-display); color: var(--tc, var(--ink)); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }

.flame { font-size: 6rem; line-height: 1; animation: flame 1.2s ease-in-out infinite; filter: drop-shadow(0 8px 16px rgba(255,122,26,.35)); }
@keyframes flame { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08) rotate(2deg); } }
.big-num { font: 800 4.6rem/1 var(--f-display); color: var(--fire); }
.week { display: flex; gap: 8px; justify-content: center; }
.week div { display: grid; gap: 4px; justify-items: center; font: 800 .8rem/1 var(--f-display); color: var(--ink-soft); }
.week i { width: 34px; height: 34px; border-radius: 50%; background: var(--lock); display: grid; place-items: center; font-style: normal; color: #fff; font-size: 1rem; }
.week i.on { background: var(--fire); box-shadow: 0 3px 0 #c95300; }
.week i.today { outline: 3px solid var(--fire); outline-offset: 2px; }

.challenge { width: 100%; max-width: 400px; text-align: left; padding: 16px; border-radius: var(--r); background: var(--yolk-tint); border: 2px solid var(--yolk); }
.challenge b { font-family: var(--f-display); font-size: 1.1rem; display: block; margin-bottom: 4px; }
.challenge small { display: block; margin-top: 8px; color: var(--ink-soft); }

.choices { width: 100%; max-width: 400px; display: grid; gap: 12px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 0 var(--line); text-align: left; }
.choice:active { transform: translateY(4px); box-shadow: none; }
.choice.is-sel { border-color: var(--c); background: var(--c-tint); box-shadow: 0 4px 0 var(--c); }
.choice__ico { font-size: 2.2rem; flex: none; }
.choice b { display: block; font: 800 1.2rem/1.1 var(--f-display); }
.choice small { color: var(--ink-soft); }
.field { width: 100%; max-width: 400px; min-height: 58px; padding: 0 18px; border: 2px solid var(--line); border-radius: 16px; background: #fff; font: 700 1.3rem/1 var(--f-display); text-align: center; }
.cod-err { color: var(--bad); font-weight: 700; min-height: 1.4em; margin: -6px 0 0 !important; }
.shake { animation: shake .4s; }
.full a { color: var(--ink); font-weight: 700; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--lock); }
.dots i.on { background: var(--ink); width: 22px; border-radius: 99px; }

/* ---------- insigne ---------- */
.sect-title { font-size: 1.6rem; margin: 6px 0 4px; }
.sect-sub { margin: 0 0 16px; color: var(--ink-soft); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 18px; border: 2px solid var(--line); background: #fff; text-align: center; }
.badge__ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: var(--yolk-tint); box-shadow: inset 0 -5px 0 rgba(0,0,0,.06); }
.badge b { font: 800 .9rem/1.1 var(--f-display); }
.badge small { font-size: .74rem; color: var(--ink-soft); line-height: 1.2; }
.badge.is-lock .badge__ico { background: var(--lock); filter: grayscale(1); opacity: .5; }
.badge.is-lock b { color: #a39b8c; }
.badge.is-new { animation: glow 1.4s ease-in-out 3; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px var(--yolk); } }

/* ---------- profil ---------- */
.prof { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.prof .felix { width: 80px; }
.prof h2 { font-size: 1.7rem; }
.prof p { margin: 2px 0 0; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.stat-card { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.stat-card span { font-size: 1.6rem; }
.stat-card b { display: block; font: 800 1.3rem/1 var(--f-display); }
.stat-card small { color: var(--ink-soft); font-size: .82rem; }
.cal { padding: 14px; border: 2px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 18px; }
.cal h3 { font-size: 1.1rem; margin-bottom: 10px; }
.prog-list { display: grid; gap: 10px; }
.prog-row { display: flex; align-items: center; gap: 10px; }
.prog-row span { font-size: 1.4rem; width: 32px; text-align: center; }
.prog-row div { flex: 1; }
.prog-row b { font: 800 .95rem/1 var(--f-display); }
.prog-row .bar { height: 10px; margin-top: 4px; }

/* ---------- panoul părinților ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(22, 18, 16, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.panel { width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--paper); border-radius: 24px 24px 0 0; padding: 20px 18px calc(24px + var(--safe-b)); animation: up .3s cubic-bezier(.2,.9,.3,1.1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.panel h2 { font-size: 1.5rem; margin-bottom: 6px; }
.panel p { margin: 0 0 12px; color: var(--ink-soft); font-size: .98rem; }
.panel h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button { padding: 10px 6px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: 800 .95rem/1.1 var(--f-display); }
.seg button.is-on { border-color: var(--c); background: var(--c-tint); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.switch { width: 56px; height: 32px; border-radius: 99px; border: 0; background: var(--lock); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"]::after { transform: translateX(24px); }
.panel__note { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--yolk-tint); font-size: .92rem; }
.panel a { color: inherit; font-weight: 700; }

/* ---------- mascota ---------- */
.felix { display: block; height: auto; overflow: visible; }
.felix .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.felix--jump { animation: jump .7s cubic-bezier(.3,1.6,.5,1) 2; }
@keyframes jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-18px) rotate(-4deg); } }
.felix--wobble { animation: wobble .6s; }
@keyframes wobble { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.toast { position: fixed; top: calc(18px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font: 800 1rem/1.2 var(--f-display); box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: toast 2.6s forwards; white-space: nowrap; }
@keyframes toast { 0% { opacity: 0; translate: 0 -12px; } 10%, 85% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -12px; } }

.chest-open { font-size: 7rem; animation: chest 1s cubic-bezier(.3,1.6,.5,1); }
@keyframes chest { 0% { transform: scale(.4) rotate(-20deg); } 60% { transform: scale(1.2) rotate(8deg); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* eticheta de demo */
.demo { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 12px; border-radius: 14px; background: #ebe5ff; border: 2px dashed #6b4fd8; font-size: .9rem; font-weight: 700; color: #3b2a8a; }
.demo b { flex: none; background: #6b4fd8; color: #fff; font: 800 .72rem/1 var(--f-display); letter-spacing: .1em; padding: 5px 8px; border-radius: 8px; }

/* săgețile rândului cu lumi */
.cats-wrap { position: relative; margin: 0 -16px 6px; }
.cats-wrap .cats { margin: 0; padding-left: 46px; padding-right: 46px; scroll-padding: 0 46px; }
.cats-arrow { position: absolute; top: 4px; bottom: 10px; z-index: 2; width: 44px; border: 0; display: grid; place-items: center;
  font: 800 2rem/1 var(--f-display); color: var(--ink); cursor: pointer; transition: opacity .2s; }
.cats-arrow::before { content: ""; position: absolute; inset: 6px 4px; border-radius: 12px; background: #fff; border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); z-index: -1; }
.cats-arrow--l { left: 0; background: linear-gradient(90deg, var(--paper) 60%, transparent); }
.cats-arrow--r { right: 0; background: linear-gradient(270deg, var(--paper) 60%, transparent); }
.cats-arrow:active::before { transform: translateY(3px); box-shadow: none; }
.cats-arrow.is-off { opacity: 0; pointer-events: none; }
