/* JAFARENA: playful, clear, colourful. Mobile first. */
:root {
  --bg: #fbf8ff;
  --ink: #241a4d;
  --muted: #6f6894;
  --card: #ffffff;
  --line: #ece6fb;
  --brand: #6d4aff;
  --brand-2: #ff7a59;
  --shadow: 0 10px 30px -12px rgba(76, 52, 180, .28);
  --shadow-sm: 0 4px 14px -6px rgba(76, 52, 180, .22);
  --r: 22px;
  --orange: #ff8a3d; --orange-bg: #fff1e6;
  --violet: #7c5cff; --violet-bg: #f0ebff;
  --pink: #ff4f9a;   --pink-bg: #ffe8f2;
  --teal: #14b8a6;   --teal-bg: #defaf5;
  --sky: #2fa8f5;    --sky-bg: #e3f4ff;
  --green: #22c55e;  --green-bg: #e4f9eb;
  --amber: #f5a524;  --amber-bg: #fff4dc;
  --indigo: #5b6cff; --indigo-bg: #e8ebff;
  --yellow: #eab308; --yellow-bg: #fff8d6;
  --rose: #f43f5e;   --rose-bg: #ffe6ea;
  --wa: #25d366;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: 'Baloo Bhaijaan 2', system-ui, sans-serif; font-size: 17px; line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .3em; }
h1 { font-size: clamp(26px, 6vw, 40px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 .6em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; margin: 28px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; opacity: 0; }
[hidden] { display: none !important; }

/* soft moving background */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { background: #c9b8ff; top: -18vmax; left: -12vmax; }
.blobs i:nth-child(2) { background: #ffd3b8; bottom: -20vmax; right: -14vmax; animation-delay: -7s; }
.blobs i:nth-child(3) { background: #b7f0e6; top: 40%; left: 55%; width: 30vmax; height: 30vmax; animation-delay: -14s; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.12); } }

.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 8px 16px 64px; }

/* header */
.top, .admin-top { display: flex; align-items: center; justify-content: space-between; max-width: 920px; margin: 0 auto; padding: 14px 16px; }
.admin-top { padding: 6px 0 18px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: .5px; }
.logo .ic { width: 30px; height: 30px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-radius: 10px; padding: 5px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; font-weight: 600; transition: transform .2s; }
.lang-switch:hover { transform: translateY(-2px); }
.lang-switch .ic { width: 18px; height: 18px; color: var(--brand); }

/* icons */
.ic { width: 22px; height: 22px; flex: none; }
[dir="rtl"] .ic.flip { transform: scaleX(-1); }

/* cards */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; margin: 0 0 18px; border: 1px solid rgba(255,255,255,.6); }
.bubble { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; flex: none; }
.bubble .ic { width: 28px; height: 28px; }
.bubble.big { width: 76px; height: 76px; border-radius: 24px; }
.bubble.big .ic { width: 40px; height: 40px; }

/* colour helpers: .c-X sets --c and --cb used by children */
.c-orange { --c: var(--orange); --cb: var(--orange-bg); }
.c-violet { --c: var(--violet); --cb: var(--violet-bg); }
.c-pink   { --c: var(--pink);   --cb: var(--pink-bg); }
.c-teal   { --c: var(--teal);   --cb: var(--teal-bg); }
.c-sky    { --c: var(--sky);    --cb: var(--sky-bg); }
.c-green  { --c: var(--green);  --cb: var(--green-bg); }
.c-amber  { --c: var(--amber);  --cb: var(--amber-bg); }
.c-indigo { --c: var(--indigo); --cb: var(--indigo-bg); }
.c-yellow { --c: var(--yellow); --cb: var(--yellow-bg); }
.c-rose   { --c: var(--rose);   --cb: var(--rose-bg); }
.c-brand  { --c: var(--brand);  --cb: var(--violet-bg); }
.bubble, .c-orange .bubble, [class*="c-"] > .bubble { background: var(--cb, var(--violet-bg)); color: var(--c, var(--brand)); }
.bubble[class*="c-"] { background: var(--cb); color: var(--c); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 12px 20px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.96); }
.btn-primary { background: linear-gradient(135deg, var(--brand), #9b7bff); color: #fff; box-shadow: 0 10px 22px -10px var(--brand); }
.btn-primary:hover { box-shadow: 0 14px 28px -10px var(--brand); transform: translateY(-2px); }
.btn-success { background: linear-gradient(135deg, #16c172, #3ddc97); color: #fff; box-shadow: 0 10px 22px -10px #16c172; }
.btn-soft { background: var(--violet-bg); color: var(--brand); }
.btn-soft:hover { background: #e4dcff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(124, 92, 255, .08); }
.btn-wa { background: #e6fbef; color: #0f8a43; }
.btn-wa:hover { background: #d3f7e2; }
.btn-big { padding: 16px 28px; font-size: 19px; border-radius: 20px; }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 12px; }
.btn-sm .ic { width: 17px; height: 17px; }
.btn.full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.btn-row.tight { margin: 0; gap: 6px; }
.btn-row form { margin: 0; }

/* hero */
.hero { text-align: center; padding: 26px 8px 10px; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto 26px; }
.hero-art { position: relative; height: 150px; max-width: 360px; margin: 0 auto 10px; }
.hero-art .float { position: absolute; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 22px; background: var(--cb); color: var(--c); box-shadow: var(--shadow-sm); animation: floaty 4s ease-in-out infinite; }
.hero-art .float .ic { width: 34px; height: 34px; }
.hero-art .f0 { left: 4%; top: 46px; }
.hero-art .f1 { left: 27%; top: 0; animation-delay: -1s; }
.hero-art .f2 { right: 27%; top: 6px; animation-delay: -2s; }
.hero-art .f3 { right: 4%; top: 52px; animation-delay: -3s; }
.sun-badge { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #ffd36b, #ff9a3d); box-shadow: 0 12px 30px -10px #ff9a3d; animation: spin 18s linear infinite; }
.sun-badge .ic { width: 44px; height: 44px; }
@keyframes floaty { 50% { transform: translateY(-12px) rotate(-4deg); } }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }

.section-title { text-align: center; margin: 38px 0 16px; font-size: 26px; }
.steps, .areas, .kids, .cards3 { display: grid; gap: 16px; }
@media (min-width: 680px) { .steps { grid-template-columns: repeat(3, 1fr); } .areas { grid-template-columns: repeat(2, 1fr); } .cards3 { grid-template-columns: repeat(2, 1fr); } }
.step-card { position: relative; text-align: center; }
.step-card .num { position: absolute; top: 14px; inset-inline-start: 16px; font-weight: 800; color: var(--c); font-size: 22px; opacity: .5; }
.step-card .bubble { margin-bottom: 10px; }
.area-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; background: linear-gradient(135deg, var(--card), var(--cb)); }
.area-card .bubble { grid-row: span 2; background: var(--c); color: #fff; }
.area-card h3 { color: var(--c); margin: 0; }
.area-card p { margin: 0; color: var(--muted); }

/* forms */
.form { max-width: 660px; margin: 10px auto; }
.form.narrow { max-width: 420px; margin-top: 12vh; }
.form-head, .page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.form-head h1, .page-head h1 { font-size: 28px; margin: 0; }
.field { margin-bottom: 14px; }
.field > label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type="text"], input:not([type]), input[type="email"], input[type="password"], input[type="date"], textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #faf8ff; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(124, 92, 255, .15); }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.sub { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 18px 0 12px; }
.sub .ic { color: var(--brand); }
.seg { display: inline-flex; background: #f3efff; border-radius: 14px; padding: 4px; gap: 4px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 8px 16px; border-radius: 11px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.seg input:checked + span { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid rgba(124, 92, 255, .4); }
.seg-sm span { padding: 6px 12px; font-size: 15px; }
.child-row { display: grid; gap: 0 12px; padding: 14px; border: 2px dashed var(--line); border-radius: 18px; margin-bottom: 12px; }
@media (min-width: 600px) { .child-row { grid-template-columns: 1.4fr 1fr auto; align-items: end; } .child-row > button { grid-column: 1 / -1; justify-self: end; } }
.child-row:only-child [data-remove-child] { display: none; }
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #ffe9ec; color: #b4233c; margin-bottom: 16px; font-weight: 600; }
.alert-info { background: var(--sky-bg); color: #0b6aa8; }

/* family page */
.kid { border-top: 6px solid var(--c); }
.kid-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kid-head h2 { margin: 0; }
.kid-head p { display: flex; align-items: center; gap: 6px; margin: 0; }
.kid-head p .ic { width: 16px; height: 16px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--c, var(--brand)), var(--brand-2)); box-shadow: var(--shadow-sm); flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #f3efff; font-weight: 700; font-size: 15px; }
.chip .ic { width: 17px; height: 17px; }
.chip.c-indigo { background: var(--indigo-bg); color: #3f4bd1; }
.chip.c-sky { background: var(--sky-bg); color: #0b6aa8; }
.score-pill small { font-size: 12px; color: var(--muted); font-weight: 600; }
.chip-flame { background: #fff0e3; color: #e2630c; }
.chip.big { font-size: 18px; padding: 8px 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.kid-head .chip { margin-inline-start: auto; }
.report-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.report-list a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #faf8ff; color: var(--ink); text-decoration: none; transition: background .2s, transform .2s; }
.report-list a:hover { background: var(--violet-bg); transform: translateX(var(--nudge, 3px)); }
[dir="rtl"] .report-list a:hover { --nudge: -3px; }
.report-list b { margin-inline-start: auto; font-size: 18px; color: var(--brand); }
.report-list .go { width: 18px; height: 18px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tag .ic { width: 15px; height: 15px; }
.tag-sky { background: var(--sky-bg); color: #0b6aa8; }
.tag-violet { background: var(--violet-bg); color: var(--brand); }
.empty { padding: 10px 0; }

/* journal wizard */
.wizard { max-width: 640px; margin: 6px auto; padding: 20px; overflow: hidden; }
.wiz-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wiz-head h1 { font-size: 26px; margin: 0; }
.wiz-head p { margin: 0; }
.day-pick { margin-inline-start: auto; }
.progress { height: 12px; background: #f1ecff; border-radius: 999px; margin: 18px 0 6px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .45s cubic-bezier(.3, 1.4, .5, 1); }
[dir="rtl"] .progress i { background: linear-gradient(270deg, var(--brand), var(--brand-2)); }
.counter { text-align: center; color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.steps-wrap { position: relative; }
.step { text-align: center; padding: 10px 0 4px; }
.js .step { display: none; }
.js .step.active { display: block; animation: slideIn .4s cubic-bezier(.2, .9, .3, 1.2); }
.js .step.active.back { animation-name: slideBack; }
@keyframes slideIn { from { opacity: 0; transform: translateX(var(--from, 40px)); } }
@keyframes slideBack { from { opacity: 0; transform: translateX(var(--from-back, -40px)); } }
[dir="rtl"] .step { --from: -40px; --from-back: 40px; }
.no-js .step + .step, html:not(.js) .step + .step { border-top: 2px dashed var(--line); margin-top: 14px; padding-top: 20px; }
.q-icon { width: 92px; height: 92px; margin: 6px auto 12px; border-radius: 30px; display: grid; place-items: center; background: var(--cb); color: var(--c); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .05); }
.q-icon .ic { width: 50px; height: 50px; }
.step.active .q-icon { animation: pop .55s cubic-bezier(.2, 1.6, .4, 1) both; }
.q-title { font-size: clamp(22px, 5.4vw, 28px); margin: 0 0 6px; }
.q-hint { color: var(--muted); margin: 0 0 14px; }
.opts { display: grid; gap: 10px; margin-top: 14px; }
.opts-pills { grid-template-columns: repeat(4, 1fr); }
.opts-cards { grid-template-columns: 1fr; }
@media (min-width: 560px) { .opts-cards { grid-template-columns: 1fr 1fr; } }
.opt { position: relative; cursor: pointer; }
.opt input, .cup input, .color-opt input, .face input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-body { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 10px 12px; border-radius: 18px; border: 3px solid var(--line); background: #fff; font-weight: 700; font-size: 18px; transition: transform .15s, border-color .2s, background .2s, box-shadow .2s; }
.opt:hover .opt-body { border-color: var(--c); }
.opt input:checked + .opt-body { border-color: var(--c); background: var(--cb); color: var(--ink); box-shadow: 0 8px 18px -10px var(--c); transform: scale(1.03); animation: tap .35s; }
.opt input:focus-visible + .opt-body, .cup input:focus-visible ~ .ic, .face input:focus-visible ~ .ic { outline: 3px solid var(--c); outline-offset: 3px; }

.cups { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.cup { position: relative; display: grid; justify-items: center; gap: 2px; width: 58px; padding: 6px 0; border-radius: 16px; cursor: pointer; color: #c7d7e6; transition: transform .15s; }
.cup .ic { width: 40px; height: 40px; transition: color .2s, fill .2s, transform .2s; }
.cup small { font-weight: 700; color: var(--muted); }
.cup .zero { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 3px dashed #c7d7e6; font-weight: 800; color: var(--muted); }
.cup.on .ic { color: var(--sky); fill: #bfe6ff; transform: translateY(-3px); }
.cup:hover { transform: translateY(-2px); }
.cup input:checked ~ small { color: var(--sky); }
.cup-zero input:checked ~ .zero { border-color: var(--sky); color: var(--sky); background: var(--sky-bg); }

.colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.color-opt { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 18px; border: 3px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, transform .15s, background .2s; }
.color-opt .dots { display: flex; gap: 3px; min-height: 18px; align-items: center; }
.color-opt .dots i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.color-opt .dots i.none { background: transparent; border: 2px dashed #cbd5e1; }
.color-opt b { font-size: 20px; }
.color-opt:has(input:checked) { border-color: var(--green); background: var(--green-bg); transform: scale(1.04); }

.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.face { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 2px; border-radius: 18px; cursor: pointer; color: #cbd2e1; transition: transform .2s, color .2s, background .2s; }
.face .ic { width: 52px; height: 52px; stroke-width: 1.8; }
.face span { font-size: 14px; font-weight: 700; color: var(--muted); line-height: 1.2; text-align: center; }
.face:hover { transform: translateY(-3px); color: var(--fc); }
.face:has(input:checked) { color: var(--fc); background: color-mix(in srgb, var(--fc) 14%, #fff); transform: scale(1.12); }
.face:has(input:checked) .ic { animation: wobble .6s; }
.face:has(input:checked) span { color: var(--ink); }

.step textarea { margin-top: 10px; min-height: 110px; resize: vertical; }
.need-answer { display: flex; align-items: center; justify-content: center; gap: 8px; color: #c2410c; font-weight: 700; margin: 10px 0 0; animation: shake .4s; }
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }
.wiz-nav [data-next], .wiz-nav [data-finish] { margin-inline-start: auto; }
html:not(.js) .wiz-nav [data-next], html:not(.js) .wiz-nav [data-back], html:not(.js) .progress, html:not(.js) .counter { display: none; }

/* celebration */
.celebrate { text-align: center; padding: 30px 22px; }
.celebrate .bubble { margin: 0 auto 12px; }
.trophy { display: grid; place-items: center; width: 110px; height: 110px; margin: 0 auto 12px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, #ffd36b, #ff9a3d); box-shadow: 0 16px 36px -12px #ff9a3d; animation: pop .7s cubic-bezier(.2, 1.6, .4, 1) both, floaty 3.5s 1s ease-in-out infinite; }
.trophy .ic { width: 58px; height: 58px; }
.celebrate .lead { font-size: 19px; color: var(--muted); }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -20px; left: calc(var(--x) * 1%); width: 10px; height: 16px; border-radius: 3px; background: var(--c); animation: fall 2.8s var(--d) cubic-bezier(.3, .6, .5, 1) forwards; opacity: 0; }
.confetti i:nth-child(3n) { width: 12px; height: 12px; border-radius: 50%; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(105vh) rotate(720deg); } }

/* score rings */
.rings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
@media (min-width: 680px) { .rings { grid-template-columns: repeat(4, 1fr); } }
.rings .ring { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 10px 14px; }
.ring { position: relative; display: grid; justify-items: center; text-align: center; }
.ring svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring-lg svg { width: 170px; height: 170px; }
.ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring .track { stroke: var(--cb); }
.ring .bar { stroke: var(--c); stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.4s cubic-bezier(.3, .9, .3, 1); }
.ring.go .bar { stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); }
.ring-in { direction: ltr; position: absolute; top: 0; height: 112px; display: grid; place-content: center; line-height: 1; }
.ring-lg .ring-in { height: 170px; }
.ring-in b { font-size: 30px; font-weight: 800; color: var(--c); }
.ring-lg .ring-in b { font-size: 48px; }
.ring-in small { color: var(--muted); font-size: 13px; }
.ring-label { font-weight: 800; font-size: 19px; margin-top: 6px; }
.ring-band { font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-top: 4px; }
.band-great { background: var(--green-bg); color: #15803d; }
.band-good { background: var(--sky-bg); color: #0b6aa8; }
.band-ok { background: var(--amber-bg); color: #a16207; }
.band-low { background: var(--rose-bg); color: #be123c; }

/* report */
.report-head { text-align: center; }
.report-head .tag { margin-bottom: 8px; }
.report-head .ring { margin: 12px auto 4px; }
.note { background: linear-gradient(135deg, var(--card) 40%, var(--cb)); border-top: 6px solid var(--c); }
.note .bubble { margin-bottom: 8px; background: var(--c); color: #fff; }
.note h3 { color: var(--c); }
.message { display: flex; gap: 16px; align-items: flex-start; }
.message p { font-size: 18px; margin: 0; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; overflow-x: auto; }
.bar-col { flex: 1 0 34px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar-col i { width: 100%; max-width: 38px; border-radius: 10px 10px 6px 6px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); height: 0; transition: height .9s var(--d) cubic-bezier(.3, 1.3, .5, 1); }
.bars.go .bar-col i { height: calc(var(--h) * 1%); min-height: 6px; }
.bar-col b { font-size: 13px; }
.bar-col small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.grat { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.grat li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--pink-bg); }
.grat .ic { color: var(--pink); fill: #ffc2dc; }
.how summary { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; list-style: none; }
.how summary::-webkit-details-marker { display: none; }
.how summary .ic { color: var(--brand); }
.how p { margin: 12px 0 0; color: var(--muted); }

/* admin */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { display: grid; justify-items: start; gap: 2px; padding: 16px; margin: 0; }
.stat .bubble { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 6px; }
.stat .bubble .ic { width: 22px; height: 22px; }
.stat b { font-size: 30px; font-weight: 800; color: var(--c); line-height: 1; }
.stat span { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 -8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: start; color: var(--muted); font-size: 13px; font-weight: 700; padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #fcfbff; }

/* entrance animations */
.pop { animation: pop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.rise { animation: rise .6s calc(var(--d, 0) * 90ms) cubic-bezier(.2, .9, .3, 1) both; }
.wiggle { animation: wiggle 2.8s 1.2s ease-in-out infinite; }
.bounce { animation: pop .5s both; }
.shake { animation: shake .45s; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes tap { 40% { transform: scale(.95); } }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-3deg); } 96% { transform: rotate(3deg); } }
@keyframes wobble { 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(10deg); } }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ring .bar { stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); }
  .bar-col i { height: calc(var(--h) * 1%); }
  .confetti { display: none; }
}

/* ---------- 3D "four areas" world ---------- */
.world { position: relative; }
.world-stage, .world-tabs, .world-panels { display: none; }
.world.is-3d .world-stage, .world.is-3d .world-tabs { display: flex; }
.world.is-3d .world-panels { display: block; }
.world.is-3d .world-fallback { display: none; }
.world-stage {
  position: relative; height: clamp(300px, 62vw, 440px); margin: 0 -16px; border-radius: 32px;
  background: radial-gradient(ellipse at 50% 70%, rgba(255,255,255,.95), rgba(240,235,255,.55) 55%, rgba(240,235,255,0) 75%);
  overflow: hidden; animation: pop .7s cubic-bezier(.2,1.4,.4,1) both;
}
@media (min-width: 720px) { .world-stage { margin: 0; } }
.world-stage canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.world-stage canvas:active { cursor: grabbing; }
.world-arrow {
  position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--brand); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .2s, background .2s;
}
.world-arrow:hover { transform: scale(1.1); background: #fff; }
.world-arrow:active { transform: scale(.92); }
.world-arrow.prev { left: 12px; }
.world-arrow.next { right: 12px; }
.world-hint {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2; margin: 0;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.85); color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap;
  animation: hintFade 6s 2s ease forwards;
}
.world-hint .ic { width: 16px; height: 16px; animation: spinSlow 3s linear infinite; }
@keyframes hintFade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.world-tabs { justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.world-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 2px solid transparent;
  background: var(--card); color: var(--c); font: inherit; font-weight: 800; font-size: 17px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .2s, background .25s, color .25s, box-shadow .25s;
}
.world-tab .ic { width: 20px; height: 20px; }
.world-tab:hover { transform: translateY(-2px); }
.world-tab.active { background: var(--c); color: #fff; box-shadow: 0 10px 22px -10px var(--c); transform: scale(1.06); }
.world-panel { border-top: 6px solid var(--c); background: linear-gradient(135deg, var(--card) 45%, var(--cb)); }
.world-panel.swap { animation: panelIn .5s cubic-bezier(.2,1.2,.4,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.wp-head { display: flex; align-items: center; gap: 14px; }
.wp-head .bubble { background: var(--c); color: #fff; }
.wp-head h3 { color: var(--c); margin: 0; font-size: 24px; }
.wp-head p { margin: 0; color: var(--muted); }
.wp-parts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wp-part {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 14px; background: #fff;
  color: var(--ink); font-weight: 700; box-shadow: 0 3px 10px -6px var(--c);
}
.wp-part .ic { width: 18px; height: 18px; color: var(--c); }
.world-panel.swap .wp-part { animation: rise .5s calc(var(--d) * 70ms + 120ms) cubic-bezier(.2,.9,.3,1) both; }

@media (max-width: 560px) {
  .world-tabs { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .world-tab { flex-direction: column; gap: 3px; padding: 9px 4px; border-radius: 18px; font-size: 15px; }
  .world-tab.active { transform: scale(1.04); }
  .world-arrow { width: 40px; height: 40px; margin-top: -20px; }
}
