:root {
  --green: #1f6b3a;                                   /* brand colour, overridden from admin Settings */
  --green-d: color-mix(in srgb, var(--green) 68%, #000);
  --green-l: color-mix(in srgb, var(--green) 12%, #fff);
  --cream: #fffaf2; --ink: #1d2b24; --muted: #6b766f; --line: #eee5d6; --gold: #f8c94a;
  --yellow: #f8e8a4; --pink: #f9c6c0; --blue: #d3e6f6; --peach: #fde9b8;
  --r-lg: 28px; --r-md: 18px;
  --shadow: 0 6px 18px rgba(40, 30, 10, .08);
  --nav-h: 66px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); background: #efe9dd; min-height: 100vh; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 55%, #fff); outline-offset: 2px; }
img { max-width: 100%; }

/* ---------- Frame ---------- */
.bg-shapes { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-shapes i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.bg-shapes i:nth-child(1) { width: 380px; height: 380px; background: #ffe2a1; left: -90px; top: -60px; }
.bg-shapes i:nth-child(2) { width: 420px; height: 420px; background: #bfe6c9; right: -120px; bottom: -80px; }
.bg-shapes i:nth-child(3) { width: 260px; height: 260px; background: #f9c6c0; right: 12%; top: 8%; }
#app { max-width: 430px; min-height: 100vh; margin: 0 auto; background: var(--cream); position: relative; z-index: 1; display: flex; flex-direction: column; transition: background .3s; }
@media (min-width: 560px) {
  #app { margin: 20px auto; min-height: calc(100vh - 40px); border-radius: 36px; box-shadow: 0 30px 80px rgba(60, 40, 10, .22), 0 0 0 8px rgba(255, 255, 255, .65); }
  #topbar { border-radius: 36px 36px 0 0; }
  #bottomnav { border-radius: 0 0 36px 36px; }
}
#view { flex: 1; padding-bottom: 28px; }
#view.enter { animation: pageIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Top bar ---------- */
#topbar { position: sticky; top: 0; z-index: 20; height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 12px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.tb-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
#back { width: 38px; height: 38px; font-size: 21px; border-radius: 50%; transition: background .15s; }
#back:hover { background: rgba(0, 0, 0, .06); }
#brandmark { display: flex; align-items: center; gap: 8px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 17px; min-width: 0; }
#brandmark img { height: 30px; width: auto; max-width: 90px; object-fit: contain; }
#brandmark span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#title { font-weight: 800; font-size: 16px; text-align: center; }
#pointspill { justify-self: end; display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #fff3c4; font-weight: 800; font-size: 14px; box-shadow: inset 0 0 0 1px #f2dc87; transition: transform .15s; }
#pointspill:active { transform: scale(.94); }
#pointspill.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- Bottom nav ---------- */
#bottomnav { position: sticky; bottom: 0; z-index: 20; display: flex; height: var(--nav-h); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
#bottomnav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 16px; font-size: 11px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s, transform .15s; }
#bottomnav button span { font-size: 22px; line-height: 1; filter: grayscale(.7); opacity: .75; transition: filter .2s, opacity .2s, transform .2s; }
#bottomnav button.on { color: var(--green); background: var(--green-l); }
#bottomnav button.on span { filter: none; opacity: 1; transform: translateY(-1px) scale(1.12); }
#bottomnav button:active { transform: scale(.94); }
body.dark #topbar, body.dark #bottomnav { background: rgba(10, 22, 66, .92); border-color: #24357a; color: #fff; }
body.dark #bottomnav button { color: #aab6ea; }
body.dark #bottomnav button.on { background: rgba(255, 255, 255, .12); color: #fff; }
body.dark #back:hover { background: rgba(255, 255, 255, .1); }
body.dark #pointspill { color: #4a3600; }
body.purple #bottomnav { background: rgba(255, 255, 255, .9); }

/* ---------- Skeleton ---------- */
.skeleton { padding: 18px 16px; display: grid; gap: 14px; }
.sk { background: linear-gradient(90deg, #f1eadc 25%, #f9f4e9 50%, #f1eadc 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 20px; }
.sk-hero { height: 130px; } .sk-row, .sk-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.sk-row .sk { height: 64px; } .sk-grid .sk { height: 170px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Dark / purple worlds ---------- */
body.dark #app, body.dark #view { background: #0c1a4a; color: #fff; }
body.dark #app::before { content: ''; position: absolute; inset: 56px 0 0; pointer-events: none; background-image: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 18%, #fff, transparent), radial-gradient(2px 2px at 45% 62%, #fff8, transparent), radial-gradient(1.5px 1.5px at 85% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 10% 80%, #fff8, transparent); animation: twinkle 3.5s infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
body.purple #app, body.purple #view { background: #a08cf5; }

/* ---------- Shared ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; transition: all .15s; }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }
body.dark .chip { background: #1b2f73; border-color: #31478f; color: #fff; }
body.dark .chip.on { background: var(--gold); color: #2a2f7a; border-color: var(--gold); }
h2.sec { font-family: 'Fredoka', sans-serif; font-size: 20px; padding: 16px 16px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.btn { display: block; width: 100%; padding: 15px; border-radius: 999px; background: var(--green-d); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 6px 14px color-mix(in srgb, var(--green) 35%, transparent); transition: transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(2px) scale(.99); box-shadow: 0 2px 6px color-mix(in srgb, var(--green) 30%, transparent); }
.btn:disabled { opacity: .6; }
.btn.sm { display: inline-block; width: auto; padding: 10px 20px; font-size: 14px; }
.btn.alt { background: var(--gold); color: #4a3600; box-shadow: none; }
.btn.mint { background: #1fe090; color: #05301d; box-shadow: none; }
.empty { text-align: center; color: var(--muted); padding: 36px 20px; }
body.dark .empty { color: #aab6ea; }
.img img, .reader .pic img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* ---------- Hub ---------- */
.hero { position: relative; padding: 18px 20px 76px; background: linear-gradient(#fff3e2, var(--cream)); overflow: hidden; }
.hero h1 { font-family: 'Fredoka', sans-serif; font-size: 28px; line-height: 1.1; position: relative; z-index: 1; }
.hero p { color: var(--muted); font-size: 14px; max-width: 175px; margin-top: 8px; position: relative; z-index: 1; }
.hero svg { position: absolute; right: 0; bottom: 0; width: 72%; }
.hero .cloud { animation: drift 9s ease-in-out infinite alternate; }
.hero .spark { animation: twinkle 2.2s infinite alternate; }
@keyframes drift { to { transform: translateX(14px); } }
.stats { display: flex; gap: 10px; margin: 0 16px 12px; position: relative; z-index: 2; }
.stat { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; text-align: left; box-shadow: var(--shadow); transition: transform .15s; }
.stat:active { transform: scale(.97); }
.stat .ic { font-size: 30px; }
.stat small { display: block; font-size: 10px; letter-spacing: 1px; color: #9aa39d; font-weight: 800; }
.stat b { font-size: 21px; }
.stat span.sub { font-size: 11px; color: var(--muted); display: block; }
.unlock { margin: 0 16px 14px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px dashed #d8cdb6; font-size: 12px; color: var(--muted); }
.unlock .bar { height: 8px; border-radius: 99px; background: #f0e9db; overflow: hidden; margin-bottom: 6px; }
.unlock .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #ff9d4d); transition: width .8s; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.cat { height: 200px; border-radius: 28px 28px 72px 28px; padding: 18px 16px; text-align: left; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow); animation: pop .5s cubic-bezier(.2, 1.2, .3, 1) backwards; animation-delay: calc(var(--i) * 70ms); }
.cat:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(40, 30, 10, .14); }
.cat:active { transform: scale(.96); }
.cat:nth-child(even) { border-radius: 28px 28px 28px 72px; }
.cat::after { content: ''; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .35); right: -34px; bottom: -34px; }
.cat h3 { font-family: 'Fredoka', sans-serif; font-size: 19px; position: relative; z-index: 1; }
.cat p { font-size: 12px; color: #4b5a52; margin-top: 2px; position: relative; z-index: 1; }
.cat .big { position: absolute; right: 12px; bottom: 10px; font-size: 64px; z-index: 1; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .15)); animation: float 3.4s ease-in-out infinite; }
.cat .big img { width: 84px; height: 84px; object-fit: contain; }
@keyframes float { 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- Sleep ---------- */
.feature { padding: 96px 20px 24px; border-radius: 0 0 30px 30px; color: #fff; position: relative; overflow: hidden; }
.feature .emoji { position: absolute; right: 16px; top: 14px; font-size: 100px; animation: float 4s ease-in-out infinite; }
.feature .badge { position: absolute; left: 16px; top: 14px; background: rgba(0, 0, 0, .4); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px); }
.feature h2 { font-family: 'Fredoka', sans-serif; font-size: 27px; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); max-width: 80%; }
.row { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.row::-webkit-scrollbar { display: none; }
.story { flex: none; width: 142px; text-align: left; scroll-snap-align: start; transition: transform .15s; }
.story:active { transform: scale(.96); }
.story .img { height: 142px; border-radius: 22px; display: grid; place-items: center; font-size: 62px; overflow: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.story p { font-size: 14px; font-weight: 700; margin-top: 8px; }
.locked { margin: 16px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px dashed #5568b5; font-size: 13px; }
.locked b { display: block; font-size: 15px; margin-bottom: 2px; }

/* ---------- Food ---------- */
.tabs { display: flex; margin: 12px 16px 0; padding: 4px; background: #f3ece0; border-radius: 999px; }
.tabs button { flex: 1; padding: 9px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--muted); transition: all .2s; }
.tabs button.on { background: var(--green); color: #fff; box-shadow: 0 3px 8px color-mix(in srgb, var(--green) 35%, transparent); }
.plan { margin: 16px; padding: 22px 20px; border-radius: 28px; background: linear-gradient(#e7f6dc, #f3fbe9); border: 1px solid #d3ebc2; text-align: center; }
.plan h2 { font-family: 'Fredoka', sans-serif; font-size: 24px; color: var(--green-d); margin-bottom: 6px; }
.plan p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.game { margin: 0 16px; padding: 14px; border-radius: 22px; background: linear-gradient(135deg, #fff3c4, #e3f5cf); display: flex; align-items: center; gap: 12px; text-align: left; width: calc(100% - 32px); box-shadow: var(--shadow); transition: transform .15s; }
.game:active { transform: scale(.98); }
.game .ic { font-size: 36px; background: #fff; border-radius: 16px; width: 56px; height: 56px; display: grid; place-items: center; }
.game small { font-size: 11px; letter-spacing: 1px; color: #7a7a3a; font-weight: 800; }
.game b { display: block; font-size: 17px; }
.meals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.meal { background: #f6efe3; border-radius: 18px; padding: 10px 4px; font-weight: 800; font-size: 13px; box-shadow: 0 0 0 1px var(--line); transition: transform .15s; }
.meal:active { transform: scale(.95); }
.meal span { display: block; font-size: 38px; margin-top: 4px; }
.recipes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.recipe { background: #fff; border-radius: 20px; padding: 8px 8px 12px; text-align: left; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .15s; animation: pop .45s backwards; }
.recipe:active { transform: scale(.97); }
.recipe .img { height: 92px; border-radius: 14px; background: linear-gradient(135deg, #f6e7c8, #f2d3a0); display: grid; place-items: center; font-size: 48px; overflow: hidden; }
.recipe p { font-weight: 800; font-size: 14px; margin: 8px 2px 2px; }
.recipe small { color: var(--muted); font-size: 12px; margin-left: 2px; }
.check-card { margin: 16px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.check-card h3 { font-family: 'Fredoka', sans-serif; margin-bottom: 4px; font-size: 19px; }
.check-card p.s { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.fg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fg button { padding: 10px 4px; border-radius: 14px; background: #f6efe3; font-weight: 700; font-size: 12px; border: 2px solid transparent; transition: all .15s; }
.fg button span { display: block; font-size: 28px; }
.fg button.on { border-color: var(--green); background: var(--green-l); transform: scale(1.04); }
.verdict { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--green-l); font-size: 14px; font-weight: 700; }

/* ---------- Play ---------- */
.acts { padding: 0 16px; display: grid; gap: 16px; }
.act { background: #fff; border-radius: 26px; overflow: hidden; text-align: left; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .15s; animation: pop .45s backwards; }
.act:active { transform: scale(.98); }
.act .img { height: 150px; display: grid; place-items: center; font-size: 76px; overflow: hidden; border-radius: 0; }
.act div.t { padding: 12px 16px 14px; }
.act b { font-size: 17px; display: block; }
.act small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }

/* ---------- Mind ---------- */
.brainmap { margin: 18px 16px; padding: 14px; border-radius: 20px; background: var(--cream); display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.brainmap .ic { font-size: 44px; }
.brainmap small { letter-spacing: 1px; font-weight: 800; font-size: 11px; color: #8c4a6a; }
.brainmap p { font-size: 12px; color: var(--muted); }
.world { margin-top: 16px; display: grid; gap: 12px; padding: 0 16px 24px; }
.gamebtn { padding: 18px; border-radius: 24px; background: #fff; color: var(--ink); font-weight: 800; font-size: 17px; text-align: left; display: flex; align-items: center; gap: 14px; box-shadow: 0 6px 0 rgba(0, 0, 0, .14); transition: transform .12s, box-shadow .12s; }
.gamebtn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .14); }
.gamebtn span.e { font-size: 36px; }
.gamebtn small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.gamebtn.soon { opacity: .55; box-shadow: none; pointer-events: none; }
.memory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; }
.card3d { aspect-ratio: 1; border-radius: 18px; background: linear-gradient(135deg, #b3a2ff, #8f7af0); color: transparent; font-size: 40px; display: grid; place-items: center; transition: transform .25s, background .25s; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.card3d.up, .card3d.done { background: #fff; color: #000; transform: rotateY(0) scale(1.03); }
.card3d.done { background: #d9f5d0; animation: bump .5s; }

/* ---------- Care ---------- */
.care-empty { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: 30px; }
.care-empty .ic { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; background: #e0fcef; display: grid; place-items: center; font-size: 48px; animation: float 3.5s ease-in-out infinite; }
.care-empty p { color: var(--muted); font-size: 14px; }
.block { margin: 14px 16px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.block h3 { font-family: 'Fredoka', sans-serif; margin-bottom: 8px; font-size: 18px; }
.profile { display: flex; gap: 14px; align-items: center; }
.profile .av { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #bfe6c9, #7fd6ff); display: grid; place-items: center; font-size: 32px; }
.ck { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.ck input { width: 20px; height: 20px; accent-color: var(--green); }
.growth { width: 100%; font-size: 13px; border-collapse: collapse; margin-top: 8px; }
.growth td, .growth th { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.inline { display: flex; gap: 8px; margin-top: 8px; }
.inline input, .field input { flex: 1; min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid #d9d0c0; font: inherit; background: #fff; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.field input { width: 100%; }
.note { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* ---------- Sheet / toast / spin / confetti ---------- */
#sheet-root .scrim { position: fixed; inset: 0; background: rgba(15, 20, 15, .5); backdrop-filter: blur(2px); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { background: #fff; color: var(--ink); width: 100%; max-width: 430px; max-height: 90vh; overflow-y: auto; border-radius: 30px 30px 0 0; padding: 14px 20px 28px; animation: up .3s cubic-bezier(.2, .9, .3, 1); }
.sheet .grab { display: block; width: 44px; height: 5px; border-radius: 9px; background: #ddd5c4; margin: 0 auto 12px; }
.sheet h2 { font-family: 'Fredoka', sans-serif; margin-bottom: 4px; }
.sheet h3 { font-family: 'Fredoka', sans-serif; font-weight: 500; }
.sheet ul, .sheet ol { padding-left: 20px; margin: 8px 0 16px; font-size: 15px; line-height: 1.6; }
.sheet li::marker { color: var(--green); font-weight: 800; }
.sheet .close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: #f3ede0; font-size: 20px; line-height: 1; }
.sheet { position: relative; }
.reader { text-align: center; }
.reader .pic { font-size: 90px; margin: 10px 0; }
.reader p.txt { font-size: 19px; line-height: 1.55; min-height: 120px; font-weight: 700; animation: fade .35s; }
.reader .pic img { width: 160px; height: 160px; border-radius: 26px; margin: 0 auto; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 10px 0 16px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #ddd; transition: all .25s; }
.dots i.on { background: var(--green); width: 22px; border-radius: 9px; }
/* ---------- Story player ---------- */
#reader-root { position: fixed; inset: 0; margin: 0 auto; max-width: 430px; z-index: 70; background: #04246a; color: #fff; display: flex; flex-direction: column; animation: up .3s cubic-bezier(.2, .9, .3, 1); }
@media (min-width: 560px) { #reader-root { inset: 20px 0; border-radius: 36px; overflow: hidden; } }
.rd-bar { height: 56px; flex: none; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; padding: 0 12px; background: #fff; color: var(--ink); font-weight: 800; text-align: center; font-size: 16px; }
.rd-bar button { width: 38px; height: 38px; font-size: 21px; border-radius: 50%; }
.rd-lang { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 0; min-height: 12px; }
.voicebtn { background: rgba(255, 255, 255, .16); color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.rd-vpanel { position: absolute; inset: 0; z-index: 5; background: rgba(0, 10, 40, .6); display: flex; align-items: flex-end; animation: fade .2s; }
.vbox { background: #fff; color: var(--ink); width: 100%; max-height: 75%; display: flex; flex-direction: column; border-radius: 28px 28px 0 0; padding: 18px 18px 22px; animation: up .25s ease-out; }
.vhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.vhead button { width: 34px; height: 34px; border-radius: 50%; background: #f3ede0; font-size: 20px; }
.vlist { overflow-y: auto; display: grid; gap: 6px; }
.vlist button { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #f7f3ea; text-align: left; font-weight: 700; font-size: 14px; }
.vlist button small { color: var(--muted); font-weight: 600; font-size: 11px; flex: none; }
.vlist button.on { background: var(--green-l); box-shadow: inset 0 0 0 2px var(--green); }
.vlist button.on span::before { content: '✓ '; color: var(--green); }
.vnone, .vnote { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 8px; display: block; }
.langtog { display: flex; background: #fff; border-radius: 999px; padding: 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.langtog button { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #6b766f; }
.langtog button.on { background: var(--green); color: #fff; }
.rd-cover { flex: 1; min-height: 110px; margin: 10px 16px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; font-size: 120px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.rd-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-cap { flex: none; padding: 2px 22px 12px; text-align: center; min-height: 88px; display: flex; flex-direction: column; justify-content: center; }
.rd-cap p { font-size: 17px; line-height: 1.5; font-weight: 700; max-height: 108px; overflow-y: auto; animation: fade .4s; }
.rd-cap .dots { margin: 8px 0 0; }
.rd-cap .dots i { background: rgba(255, 255, 255, .3); } .rd-cap .dots i.on { background: var(--gold); }
.rd-player { flex: none; background: #fff; color: var(--ink); border-radius: 28px 28px 0 0; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); }
.rd-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.rd-meta .th { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--green-l); display: grid; place-items: center; font-size: 24px; flex: none; }
.rd-meta .th img { width: 100%; height: 100%; object-fit: cover; }
.rd-meta b { display: block; font-size: 14px; } .rd-meta small { color: var(--muted); font-size: 12px; }
.rd-prog { display: flex; align-items: center; gap: 10px; }
.rd-prog small { font-size: 11px; color: var(--muted); width: 34px; font-variant-numeric: tabular-nums; } .rd-prog small:last-child { text-align: right; }
#rd-range { -webkit-appearance: none; appearance: none; flex: 1; height: 5px; border-radius: 9px; outline-offset: 6px; background: linear-gradient(90deg, var(--green) var(--p, 0%), #e4e1d8 var(--p, 0%)); cursor: pointer; }
#rd-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
#rd-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.rd-ctl { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 12px; }
.rd-ctl button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #444; transition: transform .12s; min-height: 56px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.rd-ctl button:active { transform: scale(.9); }
#reader-root button { touch-action: manipulation; }
.rd-ctl button > * { pointer-events: none; } /* taps always land on the button itself, not on an icon inside it */
.rd-ctl i { font-style: normal; font-size: 19px; font-weight: 700; line-height: 1.2; }
.rd-ctl small { font-size: 10px; color: var(--muted); }
.rd-ctl .main { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--green-d); display: grid; place-items: center; box-shadow: 0 6px 14px color-mix(in srgb, var(--green) 40%, transparent); margin: 0 6px; }
.rd-done { width: 100%; padding: 13px; border-radius: 16px; background: #f1efe9; color: #7d857f; font-weight: 800; transition: all .25s; }
.rd-done:not(:disabled) { background: var(--green-d); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--green) 35%, transparent); }

.wheel-wrap { position: relative; width: 240px; height: 240px; margin: 16px auto 20px; }
.wheel-wrap::after { content: '▼'; position: absolute; left: 50%; top: -16px; transform: translateX(-50%); font-size: 28px; color: #d33; z-index: 2; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 3px #f1c40f, 0 8px 20px rgba(0, 0, 0, .2); background: conic-gradient(#ffd36b 0 60deg, #9be28f 60deg 120deg, #7fd6ff 120deg 180deg, #ff9fb0 180deg 240deg, #c9b8ff 240deg 300deg, #ffb87a 300deg 360deg); position: relative; transition: transform 3.4s cubic-bezier(.12, .7, .15, 1); }
.wheel span { position: absolute; left: 50%; top: 50%; font-weight: 800; font-size: 18px; transform-origin: 0 0; }
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px); transform: translate(-50%, 90px); background: #123c27; color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 700; z-index: 99; transition: transform .3s, opacity .3s; pointer-events: none; font-size: 14px; opacity: 0; max-width: 90vw; text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
.confetti { position: fixed; left: 50%; top: 45%; z-index: 98; pointer-events: none; font-size: 22px; animation: burst .95s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
@keyframes up { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
/* ---------- Oru: mascot, card, page ---------- */
.oru { position: relative; width: var(--size); height: var(--size); flex: none; }
.oru .aura { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 213, 79, var(--glow)) 0%, rgba(255, 213, 79, calc(var(--glow) * .35)) 45%, transparent 70%); animation: pulse 3.2s ease-in-out infinite; }
.oru .obody { position: absolute; inset: 0; display: grid; place-items: end center; transform: scale(var(--sc)); transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2, 1.3, .3, 1); animation: breathe 3.6s ease-in-out infinite; transform-box: fill-box; }
.oru .obody img, .oru .obody svg { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)); }
.oru.wait .obody { animation: hop 1.6s ease-in-out infinite; }
.oru .sp { position: absolute; font-style: normal; font-size: calc(var(--size) * .16); animation: twinkle 1.8s infinite alternate; }
.oru .s1 { left: 4%; top: 12%; } .oru .s2 { right: 2%; top: 26%; animation-delay: .5s; } .oru .s3 { right: 10%; bottom: 8%; animation-delay: .9s; font-size: calc(var(--size) * .2); }
@keyframes breathe { 50% { transform: scale(calc(var(--sc) * 1.03)); } }
@keyframes hop { 0%, 55%, 100% { transform: scale(var(--sc)) translateY(0); } 70% { transform: scale(var(--sc)) translateY(-9%); } 85% { transform: scale(var(--sc)) translateY(0); } }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .85; } }
.oru-card { margin: -40px 16px 12px; padding: 14px; border-radius: 26px; background: linear-gradient(135deg, #e5f6dc, #fff7de); border: 1px solid #d9ecc9; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); position: relative; z-index: 3; cursor: pointer; text-align: left; animation: pop .5s backwards; }
.oru-card .oc-mascot { width: 104px; flex: none; display: grid; place-items: center; }
.oc-body { flex: 1; min-width: 0; }
.oc-body > b { font-family: 'Fredoka', sans-serif; font-size: 17px; display: block; }
.oc-body > p { font-size: 12px; color: var(--muted); margin: 3px 0 10px; }
.oc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; }
.oc-top b { font-family: 'Fredoka', sans-serif; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stg { background: var(--green); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 99px; flex: none; }
.meter { display: grid; grid-template-columns: 74px 1fr auto; gap: 6px; align-items: center; font-size: 11px; margin: 3px 0; }
.meter label { font-weight: 800; color: #4b5a52; } .meter span { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.bar { height: 8px; border-radius: 99px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffc533, #ff9d4d); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.meter.grow .bar i, .om.grow .bar i { background: linear-gradient(90deg, #7fd08a, #2f9e5b); }
.bar.big { height: 12px; }
.oc-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.oc-btn { padding: 7px 12px; border-radius: 99px; background: var(--green-d); color: #fff; font-weight: 800; font-size: 12px; transition: transform .12s; touch-action: manipulation; }
.oc-btn:active { transform: scale(.94); } .oc-btn.done { background: #cfeccf; color: var(--green-d); } .oc-btn.water { background: #d3e6f6; color: #1e4f7a; }
.oc-rest { font-size: 11px; color: var(--muted); font-weight: 700; } .oc-streak { font-weight: 800; font-size: 12px; margin-left: auto; }
.o-hero { text-align: center; padding: 18px 20px 4px; background: linear-gradient(#e5f6dc, var(--cream)); }
.o-m { display: grid; place-items: center; margin: 8px 0 4px; }
.bubble { display: inline-block; max-width: 300px; background: #fff; padding: 10px 14px; border-radius: 18px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); position: relative; margin: 6px 0 12px; }
.bubble::before { content: ''; position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.o-hero h2 { font-family: 'Fredoka', sans-serif; font-size: 22px; } .o-hero p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.o-meters { margin: 12px 16px; padding: 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; }
.om .oh { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; margin-bottom: 6px; } .om small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.streakrow { display: flex; gap: 8px; flex-wrap: wrap; } .stk { background: #fff3c4; border-radius: 99px; padding: 6px 12px; font-weight: 800; font-size: 13px; }
.trow { display: flex; gap: 12px; align-items: center; margin: 6px 0 10px; } .trow .ti { font-size: 28px; width: 46px; height: 46px; border-radius: 14px; background: var(--green-l); display: grid; place-items: center; flex: none; }
.trow b { display: block; font-size: 15px; } .trow small { color: var(--muted); font-size: 12px; display: block; margin-top: 1px; } .trow > div:nth-child(2) { flex: 1; min-width: 0; }
.dose { padding: 12px 14px; border-radius: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dose.ok { background: #e1f4dc; color: var(--green-d); } .dose.rest { background: #eef4ea; display: block; } .dose.rest p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.link { color: var(--green); font-weight: 800; font-size: 13px; padding: 6px 2px; touch-action: manipulation; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.pushya-today { background: linear-gradient(90deg, #fff0b8, #ffe08a); padding: 9px 14px; border-radius: 14px; font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.stepper { display: flex; align-items: center; gap: 8px; } .stepper button { width: 34px; height: 34px; border-radius: 50%; background: #d3e6f6; font-size: 20px; font-weight: 800; color: #1e4f7a; touch-action: manipulation; } .stepper b { min-width: 40px; text-align: center; }
.glasses { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.gl { width: 40px; height: 48px; border-radius: 10px 10px 14px 14px; background: #eef3f8; font-size: 20px; filter: grayscale(1); opacity: .45; transition: all .2s; touch-action: manipulation; border: 2px solid #d5e0ea; }
.gl.on { filter: none; opacity: 1; background: #d3e6f6; border-color: #8fc0e8; transform: translateY(-2px); }
.pdates { display: flex; gap: 8px; flex-wrap: wrap; } .pdates span { background: #fff3c4; border-radius: 14px; padding: 8px 12px; font-weight: 800; font-size: 13px; } .pdates small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; font-style: normal; font-size: 12px; font-weight: 800; background: #f1ece0; color: #8a8575; position: relative; }
.cal.ok { background: #bfe6c3; color: #14532d; } .cal.miss { background: #fbd9d4; color: #9b2c1f; } .cal.rest { background: #eef4ea; color: #9aa89a; } .cal.na { opacity: .35; } .cal.now { background: #fff3c4; color: #7a6000; }
.cal.today { box-shadow: 0 0 0 2px var(--green); } .cal.pu::after { content: '✨'; position: absolute; top: -5px; right: -3px; font-size: 10px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; color: var(--muted); } .legend span { display: flex; align-items: center; gap: 5px; } .legend .cal { width: 14px; aspect-ratio: 1; border-radius: 4px; font-size: 0; }
.stages { display: flex; gap: 6px; justify-content: space-between; overflow-x: auto; padding: 4px 0; }
.stg-i { flex: 1; min-width: 58px; text-align: center; filter: grayscale(1); opacity: .4; transition: all .3s; } .stg-i.on { filter: none; opacity: 1; }
.stg-i .sm { height: 56px; display: grid; place-items: end center; } .stg-i .sm img, .stg-i .sm svg { height: 100%; width: auto; max-width: 100%; transform: scale(var(--sc)); transform-origin: 50% 100%; }
.stg-i b { display: block; font-size: 11px; margin-top: 4px; } .stg-i small { font-size: 10px; color: var(--muted); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.lvl { text-align: center; } .lvl .oru { margin: 16px auto 8px; } .lvl h3 { font-family: 'Fredoka', sans-serif; font-size: 22px; } .lvl p { color: var(--muted); margin: 6px 0 16px; }
#remind { position: sticky; top: 56px; z-index: 19; padding: 8px 12px 0; }
.rm { display: flex; gap: 10px; align-items: center; background: #fff8dc; border: 1px solid #f0dc8a; border-radius: 18px; padding: 10px 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .12); animation: up .3s; }
.rmi { font-size: 26px; } .rmt { flex: 1; min-width: 0; } .rmt b { display: block; font-size: 14px; } .rmt small { color: var(--muted); font-size: 12px; }
.rma { display: flex; gap: 4px; align-items: center; } .rma button { padding: 7px 12px; border-radius: 99px; background: var(--green-d); color: #fff; font-weight: 800; font-size: 12px; } .rma button#rm-x { background: none; color: var(--muted); font-size: 20px; padding: 2px 8px; }
/* Paani Pakdo */
.pp-hud { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.pp-area { position: relative; height: 330px; border-radius: 22px; overflow: hidden; background: linear-gradient(#bfe6ff, #e9f7ff 70%, #cfeecf); touch-action: none; outline: none; user-select: none; -webkit-user-select: none; }
.pp-basket { position: absolute; left: 0; bottom: 4px; width: 56px; text-align: center; font-size: 44px; line-height: 1; will-change: transform; pointer-events: none; }
.pp-it { position: absolute; left: 0; top: 0; font-size: 26px; will-change: transform; pointer-events: none; transition: opacity .25s; }
.pp-it.got { opacity: 0; } .pp-it.bad { opacity: 0; filter: grayscale(1); }
.pp-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-weight: 800; font-size: 22px; color: #1e4f7a; background: rgba(255, 255, 255, .55); line-height: 1.5; }
.pp-msg small { font-size: 13px; font-weight: 600; color: #3b5b78; }
/* Several children */
.swap { width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #cfe3c4; font-size: 13px; font-weight: 800; flex: none; touch-action: manipulation; }
.oc-top { gap: 6px; } .oc-top b { flex: 1; min-width: 0; }
.kidchips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 0; scrollbar-width: none; }
.kidchips::-webkit-scrollbar { display: none; }
.kidbtn { margin: 10px auto 0; display: inline-block; }
.kids { display: grid; gap: 8px; margin: 12px 0 4px; }
.kid { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #f7f3ea; text-align: left; touch-action: manipulation; }
.kid .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #bfe6c9, #7fd6ff); display: grid; place-items: center; font-size: 22px; flex: none; }
.kid div { flex: 1; min-width: 0; } .kid b { display: block; font-size: 15px; } .kid small { color: var(--muted); font-size: 12px; }
.kid i { font-style: normal; font-weight: 800; color: var(--green); font-size: 18px; }
.kid.on { background: var(--green-l); box-shadow: inset 0 0 0 2px var(--green); }
@media (max-width: 380px) { .meter { grid-template-columns: 62px 1fr auto; } .oru-card .oc-mascot { width: 88px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
