/* Motivalexo – pamje për fëmijë: shkronja të rrumbullakëta, ngjyra të gjalla, butona të mëdhenj. Dizajni i ri «kids-design-r1» është shtresa në fund të skedarit. */
:root {
  --bg: #eef8ff; --card: #ffffff; --ink: #1f2a44; --muted: #5b6785; --line: #dbe6f5;
  --main: #0b9488; --main-d: #087268; --sun: #ffc93c; --sun-d: #e0a100; --coral: #ff6b57; --coral-d: #d94a37;
  --sky: #3b9bff; --grape: #8b5cf6; --leaf: #22c55e; --ok: #15803d; --bad: #c2261c;
  --radius: 22px;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); font: 18px/1.6 var(--round); min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg);
  background-image: radial-gradient(circle at 8% 12%, #fff3c4 0 70px, transparent 71px), radial-gradient(circle at 94% 30%, #d9f5ee 0 110px, transparent 111px),
    radial-gradient(circle at 12% 88%, #e6defd 0 90px, transparent 91px), radial-gradient(circle at 88% 92%, #ffe1dc 0 80px, transparent 81px);
  background-attachment: fixed; }
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 24px 16px 56px; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.12; margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 1.55rem; margin: 32px 0 14px; font-weight: 800; }
h3 { font-size: 1.15rem; margin: 0 0 6px; font-weight: 800; }
a { color: var(--main-d); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ----- koka dhe menyja ----- */
.top { background: var(--card); border-bottom: 3px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.45rem; font-weight: 800; }
.brand b { color: #2567c9; }
.brand img { border-radius: 12px; }
#nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
#nav a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 1rem; border: 2px solid transparent; }
#nav a .ic { font-size: 1.2rem; line-height: 1; }
#nav a:hover { background: #f1f7ff; border-color: var(--line); }
#nav a.on { background: var(--sun); color: #3b2a00; border-color: var(--sun-d); }
#nav .who { color: var(--muted); }
#nav .rol { display: inline-block; background: #e3faf2; color: var(--main-d); border: 2px solid #b9ece4; border-radius: 999px; padding: 0 9px; font-size: .78rem; font-weight: 800; vertical-align: middle; }
.foot { text-align: center; color: var(--muted); font-size: .9rem; padding: 18px; }

/* ----- butonat: të mëdhenj, me "shtypje" ----- */
.btn { display: inline-block; border: 0; border-radius: 16px; background: var(--main); color: #fff; font: inherit; font-weight: 800; padding: 12px 24px; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 0 var(--main-d); transition: transform .06s, box-shadow .06s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--main-d); }
.btn.sun { background: var(--sun); color: #3b2a00; box-shadow: 0 4px 0 var(--sun-d); }
.btn.sun:active { box-shadow: 0 1px 0 var(--sun-d); }
.btn.blue { background: #2b73d9; box-shadow: 0 4px 0 #1f56a8; }
.btn.blue:active { box-shadow: 0 1px 0 #1f56a8; }
.btn.ghost { background: #fff; color: var(--main-d); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); padding: 10px 20px; }
.btn.ghost:active { box-shadow: 0 1px 0 var(--line); }
.btn.sm { padding: 7px 14px; font-size: .88rem; border-radius: 12px; box-shadow: 0 3px 0 var(--main-d); }
.btn.sm.ghost { box-shadow: 0 3px 0 var(--line); }
.btn.sm.sun { box-shadow: 0 3px 0 var(--sun-d); }
.btn.danger { background: #fff; color: var(--bad); border: 2px solid #f6c9c4; box-shadow: 0 3px 0 #f6c9c4; }
.btn:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 4px solid var(--sky); outline-offset: 2px; }

.card { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }

/* ----- kryefaqja ----- */
.hero { position: relative; overflow: hidden; color: #fff; border-radius: 32px; padding: clamp(24px, 5vw, 48px); display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(160deg, #37b6ff 0%, #2f8cf5 55%, #6b6ef0 100%); box-shadow: 0 8px 0 #2567c9; }
.hero::before, .hero::after { content: ""; position: absolute; background: rgba(255,255,255,.22); border-radius: 999px; }
.hero::before { width: 180px; height: 56px; top: 22px; right: 34%; box-shadow: 46px -20px 0 6px rgba(255,255,255,.22); }
.hero::after { width: 130px; height: 42px; bottom: 26px; left: 46%; box-shadow: -34px -16px 0 4px rgba(255,255,255,.22); }
.hero > div { position: relative; z-index: 1; flex: 1 1 320px; min-width: 0; }
.hero p { max-width: 560px; font-size: 1.2rem; margin: 0 0 18px; }
.hero .mascot { flex: 0 0 auto; width: clamp(120px, 22vw, 210px); animation: bob 3.2s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .hero .mascot, .book, .opt, .btn { animation: none; transition: none; } }
.grid.choose { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 20px; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; text-decoration: none; color: inherit; font-weight: 400; padding: 28px 22px; box-shadow: 0 6px 0 var(--line); transition: transform .12s; }
.pick:hover { transform: translateY(-4px); border-color: var(--sky); }
.pick .ic { font-size: 4.5rem; line-height: 1; height: 92px; display: flex; align-items: center; justify-content: center; }
.av { height: 92px; width: auto; max-width: 100%; display: block; margin: 0 auto; transition: transform .15s; }
.pick:hover .av { transform: translateY(-4px) rotate(-2deg); }
.avline { text-align: center; margin: 0 0 6px; } .avline .av { height: 76px; } .avline .ic { font-size: 3.4rem; line-height: 1.1; }
.pick b { font-size: 1.5rem; font-weight: 800; }
.live { display: inline-block; background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.55); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: .95rem; margin-bottom: 12px; }
.about p { font-size: 1.12rem; margin: 0 0 8px; max-width: 70ch; } .about p:last-child { margin-bottom: 0; }
.grid.demos, .grid.nums { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.demo { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; color: inherit; font-weight: 400; box-shadow: 0 5px 0 var(--line); transition: transform .12s; }
.demo:hover { transform: translateY(-4px); border-color: var(--sun); }
.demo .ic { font-size: 3rem; line-height: 1.1; }
.demo .btn { margin-top: 6px; }
.school { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; border-color: #b9ece4; }
.school > div { flex: 1 1 300px; min-width: 0; } .school p { margin-top: 0; }
.ticks { flex: 1 1 260px; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 700; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.grid.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps .card { text-align: center; }
.steps .num { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 10px; }
.steps .card:nth-child(1) { border-color: #bfe0ff; } .steps .card:nth-child(1) .num { background: #dbeeff; }
.steps .card:nth-child(2) { border-color: #dccfff; } .steps .card:nth-child(2) .num { background: #ece4ff; }
.steps .card:nth-child(3) { border-color: #ffe39a; } .steps .card:nth-child(3) .num { background: #fff1c2; }
.stat { text-align: center; font-weight: 700; color: var(--muted); }
.stat b { display: block; font-size: 2.4rem; line-height: 1.1; color: var(--main); font-weight: 800; }
.grid > .stat:nth-child(3n+1) { border-color: #b9ece4; } .grid > .stat:nth-child(3n+2) { border-color: #ffd9d2; } .grid > .stat:nth-child(3n+2) b { color: var(--coral-d); }
.grid > .stat:nth-child(3n) { border-color: #dccfff; } .grid > .stat:nth-child(3n) b { color: var(--grape); }

/* ----- biblioteka ----- */
.book { display: flex; flex-direction: column; text-decoration: none; color: inherit; font-weight: 400; padding: 0; overflow: hidden; transition: transform .12s, box-shadow .12s; box-shadow: 0 5px 0 var(--line); }
.book:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 10px 0 var(--line); }
.cover { height: 130px; display: grid; place-items: center; font-size: 3.6rem; color: #fff; position: relative;
  background-image: radial-gradient(rgba(255,255,255,.22) 2px, transparent 3px); background-size: 18px 18px; }
.cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px; background: radial-gradient(circle at 10px 14px, var(--card) 10px, transparent 11px) repeat-x; background-size: 20px 14px; }
.book .in { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tag { font-size: .8rem; font-weight: 800; border-radius: 999px; padding: 4px 11px; background: #edf2fb; color: var(--muted); }
.tag.done { background: #d5f7e1; color: var(--ok); }
.tag.grade { background: #fff0bd; color: #7a5200; }
.tag.bad { background: #ffe1dd; color: var(--bad); }

form.stack { display: grid; gap: 14px; }
label { font-weight: 800; font-size: .95rem; display: grid; gap: 5px; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 3px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--sky); }
textarea { min-height: 120px; resize: vertical; }
.filters { display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; margin-bottom: 20px; }
.narrow { max-width: 460px; margin: 0 auto; }
.err { color: var(--bad); font-weight: 800; min-height: 1.4em; }

.reading { white-space: pre-line; font-size: 1.3rem; line-height: 1.95; max-width: 62ch; margin: 0 auto; }
.paper { background: #fffdf4; border-color: #f3e6b8; }

/* ----- kuizi ----- */
.quiz { max-width: 700px; margin: 0 auto; }
.qbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 800; }
.dots { display: flex; gap: 4px; flex-wrap: wrap; }
.dots i { font-style: normal; font-size: 1.5rem; line-height: 1; color: #cfdbee; }
.dots i::before { content: "★"; }
.dots i.now { color: var(--sky); transform: scale(1.25); } .dots i.past { color: var(--sun); }
.timer { font-variant-numeric: tabular-nums; background: #fff; border: 3px solid var(--line); border-radius: 999px; padding: 4px 16px; white-space: nowrap; }
.timer::before { content: "⏱ "; }
.timer.low { color: var(--bad); border-color: var(--coral); }
.opts { display: grid; gap: 12px; margin-top: 18px; }
.opt { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; font-size: 1.15rem; font-weight: 700; padding: 14px 16px; border-radius: 18px; border: 3px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
  box-shadow: 0 4px 0 var(--line); transition: transform .06s, box-shadow .06s; }
.opt:hover { border-color: var(--sky); background: #f3f9ff; }
.opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.opt .ltr { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.2rem; }
.opt .l0 { background: var(--sky); } .opt .l1 { background: var(--coral); } .opt .l2 { background: var(--leaf); } .opt .l3 { background: var(--grape); }
.stars { display: flex; gap: 6px; justify-content: center; margin: 14px 0; }
.stars button { font-size: 2.8rem; background: none; border: 0; cursor: pointer; color: #cfdbee; padding: 0 2px; line-height: 1; }
.stars button.on { color: var(--sun); }
.score { text-align: center; }
.score .big { font-size: 3.6rem; font-weight: 800; color: var(--main); line-height: 1.1; }
.score .got { font-size: 2rem; letter-spacing: 4px; margin: 6px 0; }
.review li { margin-bottom: 12px; }
.yes { color: var(--ok); font-weight: 800; } .no { color: var(--bad); font-weight: 800; }

/* ----- tabela, profili, mësuesi ----- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
tr.me td { background: #fff6d6; font-weight: 800; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { border-radius: 18px; padding: 12px 16px; background: #fff0bd; border: 3px solid var(--sun); font-weight: 800; font-size: .98rem; }
.badge.off { background: #f1f4fa; border-color: var(--line); color: #98a2b8; filter: grayscale(1); }
.next { margin-top: 14px; font-weight: 700; }
.bar { height: 18px; border-radius: 999px; background: #e6edf8; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sun), #ff9f43); }
.hello { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hello .mascot { width: 84px; flex: 0 0 auto; }
.cred { background: #e3faf2; border: 3px dashed var(--main); border-radius: 16px; padding: 12px 16px; margin: 12px 0; }
.regcode { font-size: 1.4rem; font-weight: 800; background: #fff0bd; border: 3px dashed var(--sun-d); border-radius: 12px; padding: 4px 14px; user-select: all; }
.klasa { margin-bottom: 12px; padding: 0; }
.klasa summary { cursor: pointer; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; list-style: none; border-radius: var(--radius); }
.klasa summary::-webkit-details-marker { display: none; }
.klasa summary .kl::before { content: "▸ "; color: var(--sky); font-weight: 800; }
.klasa[open] summary .kl::before { content: "▾ "; }
.klasa summary:hover { background: #f3f9ff; }
.klasa > .scroll { padding: 0 20px 16px; }
.btn.wa { background: #1fa855; box-shadow: 0 4px 0 #157a3d; } .btn.wa:active { box-shadow: 0 1px 0 #157a3d; }
.btn.vb { background: #7360f2; box-shadow: 0 4px 0 #4f3fc4; } .btn.vb:active { box-shadow: 0 1px 0 #4f3fc4; }
.kontakt { border-color: #b9ece4; }
.schoolact { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 150px; text-align: center; }
.schoolact .btn { white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sup { margin-bottom: 14px; } .sup.done { opacity: .7; }
.cred code { font-size: 1.05rem; font-weight: 800; }
.qblock { border: 3px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 8px; }
.qblock .o { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.qblock .o input[type=radio], input[type=checkbox] { width: auto; }

.cnt { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .8rem; font-weight: 800; text-align: center; line-height: 22px; }
.warn { background: #fff3c9; border: 3px solid #f2cf66; border-radius: 16px; padding: 12px 16px; margin: 12px 0; }
.thread { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 2px solid var(--line); text-decoration: none; color: inherit; font-weight: 400; border-radius: 12px; }
.thread:last-child { border-bottom: 0; } .thread:hover { background: #f3f9ff; }
.msgs { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; }
.msg { align-self: flex-start; max-width: 80%; background: #edf2fb; border-radius: 18px 18px 18px 6px; padding: 10px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: #cdf3ea; border-radius: 18px 18px 6px 18px; }
.msg .t { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }

.plan .price { font-size: 1.8rem; font-weight: 800; color: var(--main); }
.plan .btn { margin: 4px 4px 0 0; }
.planrow { padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.planrow:last-child { border-bottom: 0; padding-bottom: 0; }
.inv { max-width: 760px; margin: 0 auto; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; z-index: 9; }
#toast.show { opacity: 1; }

.cert { display: none; }
@media print {
  body { background: #fff; }
  body.printing > *:not(main), body.printing main > *:not(.cert):not(.inv) { display: none !important; }
  body.printing .inv { border: 0; padding: 0; }
  body.printing .cert { display: block; border: 8px double #0b9488; border-radius: 24px; padding: 60px 40px; text-align: center; margin: 20px; }
  .cert h1 { font-size: 2.6rem; } .cert .n { font-size: 2rem; font-weight: 800; margin: 24px 0; }
}

/* ----- telefon: menyja poshtë, si në aplikacione ----- */
@media (max-width: 640px) {
  body { font-size: 17px; padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); background-image: none; }
  .filters { grid-template-columns: 1fr; }
  .top { justify-content: center; padding: 8px 12px; }
  #nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--card); border-top: 3px solid var(--line); gap: 2px; flex-wrap: nowrap; justify-content: space-around; overflow-x: auto;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  #nav a { flex-direction: column; gap: 0; font-size: .72rem; padding: 4px 8px; border-radius: 14px; min-width: 56px; text-align: center; white-space: nowrap; }
  #nav a .ic { font-size: 1.5rem; }
  #nav .who span:last-child { max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
  #toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .hero { justify-content: center; text-align: center; } .hero .row { justify-content: center; }
  .reading { font-size: 1.18rem; }
}

.langsel { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 1.1rem; }
.langsel select { font: inherit; font-size: .95rem; font-weight: 800; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.langsel select:hover { border-color: var(--main); }
@media (max-width: 720px) { .langsel { margin-left: 0; } .top { justify-content: space-between; } }

/* ----- progresi sipas hierarkisë (administratori) ----- */
.pr-crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: .95rem; margin-bottom: 10px; }
.pr-crumbs span { color: var(--muted); }
.pr-head { align-items: flex-end; margin-bottom: 4px; }
.pr-head h1 { margin: 2px 0 0; }
.pr-lvl { display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--main-d); background: #dff7f3; border-radius: 999px; padding: 3px 12px; }
.pr-ctl { align-items: flex-end; }
.pr-ctl label { font-size: .85rem; }
.pr-ctl select { width: auto; padding: 8px 12px; }
.pr-chk { font-weight: 700; align-self: center; }
.pr-chk input { width: auto; }
.pr-kpi { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 14px 0 18px; }
.pr-kpi .stat { padding: 16px 12px; }
.pr-kpi .stat b { font-size: 2rem; }
.pr-kpi .stat .small { display: block; font-weight: 600; margin-top: 4px; }
.pr-kpi .pr-g b { font-size: 1.1rem; margin: 10px 0 6px; }
.pr-kpi .pr-g .tag { font-size: 1rem; padding: 6px 14px; }
.tag.pr-up { background: #d5f7e1; color: var(--ok); }
.tag.pr-flat { background: #fff0bd; color: #7a5200; }
.tag.pr-down { background: #ffe1dd; color: var(--bad); }
.tag.pr-none { background: #edf2fb; color: var(--muted); }
.tag.pr-up, .tag.pr-flat, .tag.pr-down, .tag.pr-none { white-space: nowrap; }
.pr-d { font-size: .78rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.pr-d.up { color: var(--ok); } .pr-d.down { color: var(--bad); }
.pr-scale { margin-bottom: 18px; }
.pr-scale h3 { margin: 0; }
.pr-stack { display: flex; height: 26px; border-radius: 999px; overflow: hidden; margin: 12px 0 10px; background: #edf2fb; }
.pr-stack i { display: block; min-width: 6px; }
.pr-stack i + i { border-left: 3px solid #fff; }
i.pr-up { background: #22a565; } i.pr-flat { background: #f2b51c; } i.pr-down { background: #e0483a; } i.pr-none { background: #c6d1e3; }
.pr-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.pr-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.pr-legend b { color: var(--ink); }
.pr-legend i.q { background: var(--main); } .pr-legend i.a { background: var(--coral); border-radius: 50%; }
.pr-graf h3 { margin-bottom: 8px; }
.pr-chart { width: 100%; height: auto; display: block; }
.pr-chart rect { fill: var(--main); opacity: .85; }
.pr-chart .g { stroke: var(--line); stroke-width: 1.5; }
.pr-chart .ax { fill: var(--muted); font-size: 12px; font-weight: 700; font-family: var(--round); }
.pr-chart .accx { fill: var(--coral-d); }
.pr-chart polyline.acc { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linejoin: round; }
.pr-chart circle.acc { fill: #fff; stroke: var(--coral); stroke-width: 3; }
.pr-table td { vertical-align: top; }
.pr-mini { height: 6px; width: 70px; margin: 5px 0 0 auto; background: #e6edf8; border-radius: 999px; overflow: hidden; }
.pr-mini i { display: block; height: 100%; background: var(--main); border-radius: 999px; }
.pr-spark { width: 84px; height: 24px; display: block; }
.pr-spark polyline { fill: none; stroke: var(--main); stroke-width: 2.2; stroke-linejoin: round; }
.pr-spark circle { fill: var(--main); }
.pr-spark .z { stroke: #c6d1e3; stroke-width: 2; stroke-dasharray: 3 3; }
.pr-help { margin-top: 22px; }
.pr-help summary { cursor: pointer; }
.pr-help li { margin-bottom: 6px; }
.pr-teaser { display: grid; grid-template-columns: 1fr auto auto; gap: 12px 22px; align-items: center; text-decoration: none; color: var(--ink); margin: 6px 0 22px; border-color: #b9ece4; }
.pr-teaser h2 { margin: 0; }
.pr-teaser p { margin: 2px 0 0; }
.pr-teaser-n { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.pr-teaser-n > span { display: grid; text-align: center; font-size: .82rem; color: var(--muted); font-weight: 700; }
.pr-teaser-n b { font-size: 1.35rem; color: var(--main-d); }
.pr-teaser:hover { border-color: var(--main); }
@media (max-width: 760px) { .pr-teaser { grid-template-columns: 1fr; } .pr-head { align-items: flex-start; } }
@media (max-width: 640px) {
  .grid.pr-kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pr-kpi .stat { padding: 12px 8px; } .pr-kpi .stat b { font-size: 1.5rem; } .pr-kpi .pr-g { grid-column: 1 / -1; }
  .pr-graf .scroll .pr-chart { min-width: 560px; }
}
@media print { .pr-ctl, #prcsv, .pr-help { display: none !important; } }
/* Raporti mujor me e-mail dhe versioni për printim / PDF i pasqyrës së progresit */
.pr-raport { margin-top: 22px; border-color: #b9ece4; }
.pr-mail { white-space: pre-wrap; font: .82rem/1.5 ui-monospace, Menlo, Consolas, monospace; background: #f4f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; max-height: 420px; overflow: auto; margin: 0; }
.pr-print-head { display: none; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body:has(.pr-print-head) { background: #fff !important; background-image: none !important; font-size: 11pt; }
  body:has(.pr-print-head) > header.top, body:has(.pr-print-head) > footer.foot, body:has(.pr-print-head) #toast { display: none !important; }
  body:has(.pr-print-head) main { max-width: none; padding: 0; }
  .pr-print-head { display: block; font-size: 9pt; color: #44506a; border-bottom: 1px solid #9aa7bd; padding-bottom: 6px; margin-bottom: 12px; }
  .pr-crumbs, #prxlsx, #prpdf, #prsort, label:has(#prsort), #pr-raport { display: none !important; }
  body:has(.pr-print-head) .card { box-shadow: none !important; break-inside: avoid; }
  body:has(.pr-print-head) .scroll { overflow: visible !important; }
  .pr-table tr, .pr-kpi { break-inside: avoid; }
  .pr-table a { color: inherit; text-decoration: none; }
  h2 { break-after: avoid; }
  .grid.pr-kpi { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .pr-kpi .stat { padding: 10px 6px; font-size: 10pt; } .pr-kpi .stat b { font-size: 1.35rem; }
}

/* =====================================================================
   kids-design-r1 (06.12.2026) – dizajni miqësor për fëmijë, në frymën e MotivaJournal.
   Nxënësit dhe vizitorët (data-scene="kids"): qielli, retë, kodrat, karta të buta, shpërblime.
   Të rriturit (data-scene="calm": mësues, drejtor, admin, DKA, MASHTI): sfond i qetë, pamja si më parë.
   Shkronja Nunito (SIL OFL 1.1) ruhet në vetë serverin, pa CDN: public/fonts/.
   ===================================================================== */
@font-face { font-family: "Nunito Lexo"; font-style: normal; font-display: swap; font-weight: 500; src: url("fonts/nunito-latin-500.woff2") format("woff2");
  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: "Nunito Lexo"; font-style: normal; font-display: swap; font-weight: 700; src: url("fonts/nunito-latin-700.woff2") format("woff2");
  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: "Nunito Lexo"; font-style: normal; font-display: swap; font-weight: 800; src: url("fonts/nunito-latin-800.woff2") format("woff2");
  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: "Nunito Lexo"; font-style: normal; font-display: swap; font-weight: 900; src: url("fonts/nunito-latin-900.woff2") format("woff2");
  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: "Nunito Lexo"; font-style: normal; font-display: swap; font-weight: 500; src: url("fonts/nunito-latin-ext-500.woff2") format("woff2");
  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: "Nunito Lexo"; font-style: normal; font-display: swap; font-weight: 700; src: url("fonts/nunito-latin-ext-700.woff2") format("woff2");
  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: "Nunito Lexo"; font-style: normal; font-display: swap; font-weight: 800; src: url("fonts/nunito-latin-ext-800.woff2") format("woff2");
  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: "Nunito Lexo"; font-style: normal; font-display: swap; font-weight: 900; src: url("fonts/nunito-latin-ext-900.woff2") format("woff2");
  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 {
  --round: "Nunito Lexo", ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", Roboto, system-ui, sans-serif;
  --bg: #f3f6fc; --ink: #22304a; --muted: #56627d; --line: #e3e9f4;
  --main: #0a8478; --main-d: #076a60;
  --sun: #ffc531; --sun-d: #f0b21a; --sun-soft: #fff5d1; --sun-line: #ffdc73; --sun-deep: #7a5000;
  --grape-soft: #f1edff; --grape-line: #cfc2ff; --grape-deep: #5a3fd6;
  --berry: #ff5f92; --berry-soft: #ffeaf1; --berry-line: #ffbfd2; --berry-deep: #c2245a;
  --leaf-soft: #e3f8ec; --leaf-line: #a6e3c1; --leaf-deep: #1d7a46;
  --sky: #3b8bff; --sky-soft: #e8f2ff; --sky-line: #b9d5ff; --sky-deep: #2363d6;
  --sky-top: #bfe2ff; --sky-mid: #e6f4ff; --sky-low: #fff7e3;
  --shadow: 0 4px 0 rgba(34, 48, 74, .07), 0 10px 24px rgba(34, 48, 74, .07);
}
body { font-weight: 500; background: var(--bg); background-image: none; }
b, strong { font-weight: 800; }
h1 { font-weight: 900; }

/* ----- skena e fëmijëve: qielli, retë, kodrat dhe lulet (si te MotivaJournal) ----- */
body[data-scene="kids"] {
  background:
    url("bg-flowers.svg") left 20px bottom 6px / 420px 56px repeat-x,
    url("bg-hills.svg") center bottom / 100% 170px no-repeat,
    url("bg-clouds.svg") left -40px top 64px / 720px 240px repeat-x,
    linear-gradient(180deg, var(--sky-top) 0, var(--sky-mid) 380px, var(--sky-low) 100%) var(--sky-low);
}
body[data-scene="kids"] main { padding-bottom: 150px; }
body[data-scene="calm"] { background: var(--bg); }

/* ----- koka: shirit i bardhë i rrumbullakët që «noton» ----- */
.top { border-bottom: 0; box-shadow: 0 3px 0 var(--line); }
body[data-scene="kids"] .top { top: 10px; width: min(1180px, calc(100% - 24px)); margin: 10px auto 0; border-radius: 26px; padding: 8px 12px 8px 16px;
  background: rgba(255, 255, 255, .95); box-shadow: 0 4px 0 rgba(34, 48, 74, .06), 0 10px 26px rgba(34, 48, 74, .08); }
.brand { font-weight: 900; font-size: 1.35rem; }
.brand b { color: var(--sky-deep); }
#nav { gap: 4px; }
#nav a { padding: 7px 11px; }
#nav a .ic { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.langsel { margin-left: 4px; }
#nav a:hover { background: var(--sky-soft); border-color: var(--sky-line); }
#nav a.on { background: var(--sun); color: #3b2a00; border-color: var(--sun-d); box-shadow: 0 3px 0 var(--sun-d); }
.langsel select { border-width: 3px; }

/* ----- karta dhe fusha ----- */
.card { box-shadow: 0 3px 0 rgba(34, 48, 74, .04); }
body[data-scene="kids"] .card { border-color: #fff; box-shadow: var(--shadow); }
input, select, textarea { min-height: 52px; border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 5px var(--sky-soft); }
input[type=checkbox], input[type=radio] { min-height: 0; }
body[data-scene="kids"] .btn:not(.sm) { min-height: 52px; padding-top: 13px; padding-bottom: 13px; }
.btn.ghost { color: var(--main-d); }
.foot { font-weight: 600; }
body[data-scene="kids"] .foot { width: fit-content; max-width: calc(100% - 32px); margin: 0 auto 14px; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ink); }

/* ----- kryefaqja ----- */
.hero { color: var(--ink); background: linear-gradient(160deg, var(--sky-soft) 0, #fff 72%); border: 3px solid #fff; box-shadow: var(--shadow); }
.hero::before, .hero::after { display: none; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.hero p { color: #33415f; font-weight: 600; }
.live { background: var(--sun-soft); border: 3px solid var(--sun-line); color: var(--sun-deep); font-weight: 900; }
.live b { color: var(--ink); }
.hero .mascot { filter: drop-shadow(0 8px 0 rgba(34, 48, 74, .08)); }
body[data-scene="kids"] .hero { background: transparent; border: 0; box-shadow: none; padding: 18px 4px 6px; }
body[data-scene="kids"] .hero .mascot { width: clamp(140px, 24vw, 240px); }
body[data-scene="kids"] .steps .card:nth-child(1) { background: var(--sky-soft); border-color: var(--sky-line); }
body[data-scene="kids"] .steps .card:nth-child(2) { background: var(--grape-soft); border-color: var(--grape-line); }
body[data-scene="kids"] .steps .card:nth-child(3) { background: var(--sun-soft); border-color: var(--sun-line); }
body[data-scene="kids"] .steps .num { background: #fff !important; box-shadow: 0 4px 0 rgba(34, 48, 74, .06); }
body[data-scene="kids"] .demo { border-color: var(--sun-line); }
body[data-scene="kids"] .demo .ic { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--sun-soft); font-size: 2.8rem; }
body[data-scene="kids"] .nums .stat:nth-child(1) { background: var(--leaf-soft); border-color: var(--leaf-line); }
body[data-scene="kids"] .nums .stat:nth-child(2) { background: var(--berry-soft); border-color: var(--berry-line); }
body[data-scene="kids"] .nums .stat:nth-child(3) { background: var(--grape-soft); border-color: var(--grape-line); }
body[data-scene="kids"] .nums .stat:nth-child(4) { background: var(--sun-soft); border-color: var(--sun-line); }
body[data-scene="kids"] .nums .stat:nth-child(4) b { color: var(--sun-deep); }
.stat b { font-weight: 900; }
.grid > .stat:nth-child(3n) b { color: var(--grape-deep); }

/* ----- «Kush je ti?» ----- */
body[data-scene="kids"] .choose .pick { border-width: 3px; box-shadow: 0 6px 0 rgba(34, 48, 74, .08); }
body[data-scene="kids"] .choose .pick:nth-child(1) { background: var(--sun-soft); border-color: var(--sun-line); }
body[data-scene="kids"] .choose .pick:nth-child(2) { background: var(--sky-soft); border-color: var(--sky-line); }
body[data-scene="kids"] .choose .pick:nth-child(3) { background: var(--leaf-soft); border-color: var(--leaf-line); }
.pick b { font-weight: 900; }

/* ----- biblioteka: librat si në raft ----- */
body[data-scene="kids"] .filters { background: #fff; padding: 12px; border-radius: 24px; box-shadow: var(--shadow); }
body[data-scene="kids"] .book { border-radius: 24px; }
body[data-scene="kids"] .book .cover { margin: 8px 8px 0; border-radius: 18px; overflow: hidden; height: 124px; font-size: 3.8rem; }
body[data-scene="kids"] .book .cover::after { display: none; }
.book h3 { font-weight: 900; line-height: 1.25; }
.book:hover .cover { animation: tund .5s ease-in-out; }
@keyframes tund { 30% { transform: rotate(-2deg); } 70% { transform: rotate(2deg); } }
.book:has(.tag.done) .cover::before { content: "⭐"; position: absolute; top: 8px; right: 10px; font-size: 1.7rem; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); }
.tag.done { background: var(--leaf-soft); color: var(--leaf-deep); border: 2px solid var(--leaf-line); }
.tag.grade { background: var(--sun-soft); color: var(--sun-deep); }

/* ----- leximi: faqe fletoreje me shirit ngjitës ----- */
.paper { position: relative; background: #fffdf6; border-color: #fff; box-shadow: var(--shadow); }
body[data-scene="kids"] .paper { padding: 34px 26px 28px; background-image: linear-gradient(90deg, transparent 18px, #ffd4cf 18px, #ffd4cf 21px, transparent 21px); }
body[data-scene="kids"] .paper::before { content: ""; position: absolute; top: -14px; left: 50%; width: 132px; height: 30px; transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 197, 49, .78); border-radius: 4px; box-shadow: 0 2px 0 rgba(0, 0, 0, .05); }
.reading { font-weight: 600; color: #26324d; }

/* ----- kuizi ----- */
.quiz { max-width: 760px; }
.qbar { background: rgba(255, 255, 255, .95); border-radius: 999px; padding: 8px 10px 8px 18px; box-shadow: var(--shadow); }
.dots { gap: 6px; }
.dots i { font-size: 1.75rem; color: #d3dcec; transition: transform .2s; }
.dots i.now { color: var(--sun); transform: scale(1.35); filter: drop-shadow(0 0 6px rgba(255, 197, 49, .7)); }
.dots i.past { color: var(--sun); }
.timer { font-weight: 900; border-color: var(--sky-line); }
.qcard h2 { font-size: clamp(1.35rem, 3.2vw, 1.7rem); font-weight: 900; line-height: 1.3; }
body[data-scene="kids"] .qcard { position: relative; background: #fffdf6; padding-top: 30px; }
body[data-scene="kids"] .qcard::before { content: ""; position: absolute; top: -13px; left: 50%; width: 120px; height: 28px; transform: translateX(-50%) rotate(2deg);
  background: rgba(138, 107, 255, .45); border-radius: 4px; }
.opts { gap: 14px; }
.opt { min-height: 68px; font-size: 1.2rem; border-radius: 20px; padding: 12px 18px 12px 12px; transition: transform .08s, box-shadow .08s, border-color .15s, background .15s; }
.opt:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line); }
.opt .ltr { width: 46px; height: 46px; border-radius: 50%; font-weight: 900; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14); }
.opt:has(.l0):hover { border-color: var(--sky); background: var(--sky-soft); }
.opt:has(.l1):hover { border-color: var(--coral); background: #fff1ee; }
.opt:has(.l2):hover { border-color: var(--leaf); background: var(--leaf-soft); }
.opt:has(.l3):hover { border-color: var(--grape); background: var(--grape-soft); }
.opt .l1 { background: #e5533f; } .opt .l2 { background: #1f9e4b; } .opt .l3 { background: #7c4ff0; } .opt .l0 { background: #2f7cf0; }
.stars button { font-size: 3.2rem; transition: transform .12s; }
.stars button:hover { transform: scale(1.15); }
.stars button.on { color: var(--sun); text-shadow: 0 3px 0 var(--sun-d); }

/* rezultati: yjet dalin njëri pas tjetrit, konfeti kur rezultati është shumë i mirë */
.score { position: relative; overflow: hidden; }
body[data-scene="kids"] .score { background: linear-gradient(180deg, var(--sun-soft) 0, #fff 62%); border-color: var(--sun-line); }
.score h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.score .big { font-weight: 900; color: var(--main-d); }
body[data-scene="kids"] .score .got { font-size: 2.6rem; letter-spacing: 6px; }
.got i { font-style: normal; display: inline-block; animation: yll .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.got i.off { opacity: .22; filter: grayscale(1); }
.got i:nth-child(2) { animation-delay: .12s; } .got i:nth-child(3) { animation-delay: .24s; } .got i:nth-child(4) { animation-delay: .36s; }
.got i:nth-child(5) { animation-delay: .48s; } .got i:nth-child(6) { animation-delay: .6s; } .got i:nth-child(7) { animation-delay: .72s; }
.got i:nth-child(8) { animation-delay: .84s; } .got i:nth-child(9) { animation-delay: .96s; } .got i:nth-child(n+10) { animation-delay: 1.08s; }
@keyframes yll { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; } }
.konfeti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.konfeti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; opacity: 0; animation: bie 2.6s ease-in forwards; }
.konfeti i:nth-child(5n+1) { background: var(--sun); } .konfeti i:nth-child(5n+2) { background: var(--berry); } .konfeti i:nth-child(5n+3) { background: var(--sky); }
.konfeti i:nth-child(5n+4) { background: var(--leaf); } .konfeti i:nth-child(5n) { background: #8a6bff; border-radius: 50%; width: 12px; height: 12px; }
.konfeti i:nth-child(1) { left: 3%; animation-delay: .05s; } .konfeti i:nth-child(2) { left: 9%; animation-delay: .4s; } .konfeti i:nth-child(3) { left: 15%; animation-delay: .15s; }
.konfeti i:nth-child(4) { left: 21%; animation-delay: .6s; } .konfeti i:nth-child(5) { left: 27%; animation-delay: .25s; } .konfeti i:nth-child(6) { left: 33%; animation-delay: .75s; }
.konfeti i:nth-child(7) { left: 39%; animation-delay: .1s; } .konfeti i:nth-child(8) { left: 45%; animation-delay: .5s; } .konfeti i:nth-child(9) { left: 51%; animation-delay: .3s; }
.konfeti i:nth-child(10) { left: 57%; animation-delay: .7s; } .konfeti i:nth-child(11) { left: 63%; animation-delay: .2s; } .konfeti i:nth-child(12) { left: 69%; animation-delay: .55s; }
.konfeti i:nth-child(13) { left: 75%; animation-delay: .05s; } .konfeti i:nth-child(14) { left: 81%; animation-delay: .45s; } .konfeti i:nth-child(15) { left: 87%; animation-delay: .35s; }
.konfeti i:nth-child(16) { left: 93%; animation-delay: .65s; } .konfeti i:nth-child(17) { left: 6%; animation-delay: .9s; } .konfeti i:nth-child(18) { left: 18%; animation-delay: 1s; }
.konfeti i:nth-child(19) { left: 30%; animation-delay: .85s; } .konfeti i:nth-child(20) { left: 42%; animation-delay: 1.1s; } .konfeti i:nth-child(21) { left: 54%; animation-delay: .95s; }
.konfeti i:nth-child(22) { left: 66%; animation-delay: 1.05s; } .konfeti i:nth-child(23) { left: 78%; animation-delay: .8s; } .konfeti i:nth-child(24) { left: 90%; animation-delay: 1.15s; }
@keyframes bie { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(420px) rotate(540deg); } }
.score > :not(.konfeti) { position: relative; }

/* ----- profili i nxënësit: përshëndetja, shiritat me ngjyra, medaljet ----- */
.kid-hello { gap: 18px; padding: 18px 22px; margin-bottom: 18px; }
.kid-hello .mascot { width: 96px; animation: bob 3.2s ease-in-out infinite; }
.kid-hello > div { flex: 1 1 260px; min-width: 0; }
.kid-hello p { margin: 4px 0 0; font-weight: 700; }
body[data-scene="kids"] .kid-hello { background: linear-gradient(160deg, var(--sky-soft) 0, #fff 75%); }
.kid-stats .stat { position: relative; padding-top: 18px; }
.kid-stats .em { display: block; font-size: 2rem; line-height: 1; margin-bottom: 4px; }
body[data-scene="kids"] .kid-stats .stat:nth-child(1) { background: var(--sun-soft); border-color: var(--sun-line); }
body[data-scene="kids"] .kid-stats .stat:nth-child(1) b { color: var(--sun-deep); }
body[data-scene="kids"] .kid-stats .stat:nth-child(2) { background: var(--grape-soft); border-color: var(--grape-line); }
body[data-scene="kids"] .kid-stats .stat:nth-child(2) b { color: var(--grape-deep); }
body[data-scene="kids"] .kid-stats .stat:nth-child(3) { background: var(--leaf-soft); border-color: var(--leaf-line); }
body[data-scene="kids"] .kid-stats .stat:nth-child(3) b { color: var(--leaf-deep); }
.badges { gap: 14px; }
.badge { font-size: 1.05rem; padding: 14px 18px; border-radius: 20px; background: linear-gradient(160deg, #fff9df 0, #ffe7a3 100%); border: 3px solid var(--sun-line); color: #3b2a00;
  box-shadow: 0 4px 0 var(--sun-d); position: relative; overflow: hidden; }
.badge:not(.off)::after { content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; background: rgba(255, 255, 255, .55); transform: rotate(20deg); animation: shkelqim 3.5s ease-in-out infinite; }
@keyframes shkelqim { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.badge.off { background: #f5f7fb; border: 3px dashed #cfd8e8; color: #7a859c; box-shadow: none; filter: grayscale(1); }
.next { font-size: 1.05rem; }
.bar { height: 24px; border: 3px solid #fff; box-shadow: inset 0 2px 4px rgba(34, 48, 74, .12); background: #e3eaf6; }
.bar i { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .28) 0 10px, transparent 10px 20px), linear-gradient(90deg, var(--sun), #ff9f43);
  background-size: 28px 28px, 100% 100%; animation: shirit 1.2s linear infinite; }
@keyframes shirit { to { background-position: 28px 0, 0 0; } }
tr.me td { background: var(--sun-soft); }

/* ----- të rriturit: pamja e qetë, Progresi mbetet si ishte ----- */
body[data-scene="calm"] .hero .mascot { width: clamp(110px, 18vw, 170px); }

@media (prefers-reduced-motion: reduce) {
  .kid-hello .mascot, .book:hover .cover, .got i, .badge::after, .bar i { animation: none !important; }
  .konfeti { display: none; }
}

@media (max-width: 640px) {
  body[data-scene="kids"] .top { top: 6px; width: calc(100% - 16px); margin-top: 8px; border-radius: 22px; padding: 6px 10px; }
  #nav { border-top: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 20px rgba(34, 48, 74, .1); }
  #nav a.on { box-shadow: none; }
  body[data-scene="kids"] {
    background:
      url("bg-flowers.svg") left 10px bottom calc(78px + env(safe-area-inset-bottom, 0px)) / 300px 40px repeat-x,
      url("bg-hills.svg") center bottom calc(70px + env(safe-area-inset-bottom, 0px)) / 100% 110px no-repeat,
      url("bg-clouds.svg") left -60px top 40px / 520px 174px repeat-x,
      linear-gradient(180deg, var(--sky-top) 0, var(--sky-mid) 320px, var(--sky-low) 100%) var(--sky-low);
  }
  body[data-scene="kids"] main { padding-bottom: 110px; }
  body[data-scene="kids"] .hero { padding: 6px 0 0; }
  .opt { font-size: 1.1rem; min-height: 62px; }
  .kid-hello { flex-wrap: nowrap; gap: 12px; padding: 14px 16px; }
  .kid-hello .mascot { width: 64px; }
  .kid-hello h1 { font-size: 1.5rem; }
  .grid.kid-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .kid-stats .stat { padding: 12px 6px; font-size: .9rem; }
  .kid-stats .stat b { font-size: 1.7rem; }
  .kid-stats .em { font-size: 1.5rem; }
  .qbar { padding: 6px 8px 6px 12px; }
  .dots i { font-size: 1.4rem; }
}

@media print {
  body[data-scene] { background: #fff !important; }
  .top { position: static; box-shadow: none; }
  .konfeti { display: none; }
}
