/* Шрифтовете Shantell Sans и Sofia Sans са с лиценз OFL 1.1 и се зареждат от самото приложение. */
@font-face{font-family:'Shantell Sans';font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/shantell-sans-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Shantell Sans';font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/shantell-sans-latin-500-normal.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:'Shantell Sans';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/shantell-sans-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Shantell Sans';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/shantell-sans-latin-600-normal.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:'Shantell Sans';font-style:normal;font-display:swap;font-weight:700;src:url(/fonts/shantell-sans-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Shantell Sans';font-style:normal;font-display:swap;font-weight:700;src:url(/fonts/shantell-sans-latin-700-normal.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:'Shantell Sans';font-style:normal;font-display:swap;font-weight:800;src:url(/fonts/shantell-sans-cyrillic-800-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Shantell Sans';font-style:normal;font-display:swap;font-weight:800;src:url(/fonts/shantell-sans-latin-800-normal.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:'Sofia Sans';font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/sofia-sans-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Sofia Sans';font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/sofia-sans-latin-400-normal.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:'Sofia Sans';font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/sofia-sans-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Sofia Sans';font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/sofia-sans-latin-500-normal.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:'Sofia Sans';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/sofia-sans-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Sofia Sans';font-style:normal;font-display:swap;font-weight:600;src:url(/fonts/sofia-sans-latin-600-normal.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:'Sofia Sans';font-style:normal;font-display:swap;font-weight:700;src:url(/fonts/sofia-sans-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Sofia Sans';font-style:normal;font-display:swap;font-weight:700;src:url(/fonts/sofia-sans-latin-700-normal.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}

/* Цветовете са от знака на училището: червеният диск, жълтото слънце и синият кръг.
   Страницата е светла като утринно небе и остава светла на всяко устройство.
   Синият контур отбелязва това, което се натиска или говори; останалото е с тънки линии.
   Червеното е за знака и името. Грешен отговор се отбелязва с кехлибарено, истинска грешка с тъмночервено. */
:root{
  --paper:#eef5fc; --surface:#ffffff; --ink:#1e3354; --muted:#556a8c; --line:#d5e3f3;
  --blue:#3f649b; --blue-soft:#e4eef9; --on-blue:#ffffff; --sky:#6e9dd3; --sky-light:#99bbe0;
  --sun:#ffd50f; --sun-deep:#f2b200; --sun-soft:#fff7cc; --on-sun:#1e3354;
  --red:#e31c3b; --red-soft:#fde8ec;
  --leaf:#19794a; --leaf-soft:#ddf4e6; --bad:#b4233c; --bad-soft:#fde8ec; --warn:#8a5a00; --warn-soft:#fff1cc;
  --edge:#3f649b; --drop:#99bbe0;
  --display:"Shantell Sans","Sofia Sans","Segoe UI",system-ui,sans-serif;
  --body:"Sofia Sans","Segoe UI",system-ui,-apple-system,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--paper);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.5;-webkit-text-size-adjust:100%}
@media (min-width:640px){body{font-size:18px}}
.wrap{max-width:720px;margin:0 auto;padding:0 16px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.demo{margin-top:12px;border:2px dashed var(--line);border-radius:18px;padding:8px 8px 8px 14px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;justify-content:space-between}
.demo p{font-size:14.5px;line-height:1.35;color:var(--muted);flex:1 1 220px}
header.top{padding:14px 0 12px;display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px}
.brand svg{width:46px;height:46px;flex:none}
h1,h2,h3{font-family:var(--display);text-wrap:balance;margin:0;line-height:1.15}
h1{font-size:26px;font-weight:800;color:var(--red)}
h2{font-size:23px;font-weight:700;margin-top:6px}
h3{font-size:20px;font-weight:700}
p{margin:0}
.brand p{color:var(--blue);font-size:14.5px;font-weight:600;line-height:1.3}
.views{display:flex;gap:4px;background:var(--surface);border:2px solid var(--line);border-radius:999px;padding:3px}
.views button{font:600 15px var(--body);color:var(--muted);background:transparent;border:0;border-radius:999px;padding:7px 14px;cursor:pointer}
.views button[aria-selected="true"]{background:var(--blue);color:var(--on-blue)}

/* the sunrise strip */
.scene{border:2px solid var(--edge);border-radius:22px;overflow:hidden;line-height:0;box-shadow:0 4px 0 var(--drop);margin-bottom:18px}
.scene[hidden]{display:none}
.scene svg{display:block;width:100%;aspect-ratio:4.6;min-height:96px}

main{padding:0 0 28px}
.stack{display:flex;flex-direction:column;gap:16px}
.meta{color:var(--muted);font-size:15px}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.between{justify-content:space-between}

/* the tutor and speech */
.say{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:end}
.say.big{align-items:center;gap:12px}
.say.me{grid-template-columns:minmax(0,1fr);justify-items:end}
.luchko{width:44px;height:44px;flex:none;overflow:visible}
.say.big .luchko{width:78px;height:78px}
.luchko .ray{fill:var(--sun-deep);stroke:var(--edge);stroke-width:2;stroke-linejoin:round}
.luchko .body{fill:var(--sun);stroke:var(--edge);stroke-width:2}
.luchko .cheek{fill:var(--red);opacity:.32}
.luchko .eye,.luchko .open{fill:var(--ink)}
.luchko .glint{fill:#fff}
.luchko .mouth,.luchko .arc{fill:none;stroke:var(--ink);stroke-width:2.1;stroke-linecap:round}
.luchko .joy-only,.luchko .think-only{display:none}
.luchko.joy .joy-only,.luchko.think .think-only{display:inline}
.luchko.joy .idle-only,.luchko.joy .idle-mouth,.luchko.think .idle-mouth{display:none}
.bub{background:var(--sun-soft);border:2px solid var(--edge);border-radius:18px 18px 18px 6px;padding:10px 14px;font:500 17px/1.45 var(--display);color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;justify-self:start;max-width:100%}
.say.big .bub{font-size:19px}
.bub.me{background:var(--blue-soft);border-color:var(--blue);border-radius:18px 18px 6px 18px;font-family:var(--body);font-weight:500;justify-self:end}
.bub .src{display:block;font:600 13px/1.3 var(--body);color:var(--muted);margin-bottom:2px}
.chat{display:flex;flex-direction:column;gap:10px}
.quick{display:flex;flex-wrap:wrap;gap:8px}
.composer{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.composer textarea{font:400 17px var(--body);width:100%;min-height:54px;border-radius:16px;border:2px solid var(--edge);padding:11px 13px;background:var(--surface);color:var(--ink);resize:vertical}
.composer textarea::placeholder{color:var(--muted)}

/* surfaces and controls */
.card{background:var(--surface);border:2px solid var(--line);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:12px}
.card.task,.card.subject{border-color:var(--edge);box-shadow:0 5px 0 var(--drop)}
.card.task{padding:18px;gap:14px}
.subjects{display:grid;gap:18px}
@media (min-width:640px){.subjects{grid-template-columns:1fr 1fr}}
.subject .hd{display:flex;gap:12px;align-items:center}
.ico{width:52px;height:52px;flex:none}
.i-glass,.i-bub{fill:var(--surface)}
.i-liq{fill:var(--sky)}
.i-line{fill:none;stroke:var(--edge);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.i-bub{stroke:var(--edge);stroke-width:1.6}
.i-head{fill:var(--ink);stroke:var(--edge);stroke-width:2.2}
.i-shell{fill:var(--red);stroke:var(--edge);stroke-width:2.2}
.i-dot{fill:var(--ink)}
.btn{font:700 18px var(--display);border-radius:16px;padding:11px 22px;border:2px solid var(--edge);background:var(--sun);color:var(--on-sun);cursor:pointer;box-shadow:0 4px 0 var(--drop)}
.btn.ghost{background:var(--surface);color:var(--ink)}
.btn.small{font-size:15.5px;padding:7px 14px;border-radius:13px;box-shadow:0 3px 0 var(--drop)}
.btn:disabled,.chip:disabled{opacity:.5;cursor:default}
.btn:active:not(:disabled),.opt:active:not(:disabled),.chip:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--drop)}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.pill{display:inline-block;font:600 13.5px var(--body);padding:3px 10px;border-radius:999px;background:var(--blue-soft);color:var(--blue);white-space:nowrap}
.pill.sun{background:var(--warn-soft);color:var(--warn)}
.pill.good{background:var(--leaf-soft);color:var(--leaf)}
.pill.bad{background:var(--bad-soft);color:var(--bad);white-space:normal}
.pill.try{background:var(--warn-soft);color:var(--warn);white-space:normal}
.pill.plain{background:transparent;border:1.5px solid var(--line);color:var(--muted)}
.chip{font:600 15px var(--body);padding:8px 13px;border-radius:999px;border:2px solid var(--edge);background:var(--surface);color:var(--ink);cursor:pointer;box-shadow:0 2px 0 var(--drop)}
.chip[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:var(--on-blue)}

/* skills and progress */
.skills{display:flex;flex-direction:column}
.skill{display:grid;grid-template-columns:1fr auto;gap:2px 12px;align-items:center;padding:10px 0;border-top:1.5px solid var(--line)}
.skill:first-child{border-top:0}
.skill .nm{font-weight:600}
.skill .sub{grid-column:1/-1;color:var(--muted);font-size:14.5px}
.lv{display:inline-flex;gap:4px;align-items:center}
.lv i{width:15px;height:15px;border-radius:50%;background:var(--line);display:block}
.lv i.on{background:var(--sun);box-shadow:inset 0 0 0 2px var(--sun-deep)}
.pips{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.pips i{width:24px;height:11px;border-radius:999px;background:var(--line);display:block}
.pips i.done{background:var(--sun);box-shadow:inset 0 0 0 2px var(--sun-deep)}
.pips i.fail{background:transparent;box-shadow:inset 0 0 0 2px var(--sky)}
.pips i.cur{background:var(--surface);box-shadow:inset 0 0 0 2px var(--edge)}

/* the task */
.q{font-size:20px;line-height:1.5}
.f{font-family:var(--body);font-weight:700;font-size:1.1em;letter-spacing:.02em;white-space:nowrap}
.f sub,.opt sub,.q sub,.ex sub{font-size:.68em;line-height:0}
.opts{display:grid;gap:10px}
.opts.inline{grid-template-columns:repeat(auto-fit,minmax(74px,1fr))}
.opt{font:600 17.5px var(--body);text-align:left;background:var(--surface);color:var(--ink);border:2px solid var(--edge);border-radius:16px;padding:11px 14px;cursor:pointer;box-shadow:0 3px 0 var(--drop);display:flex;gap:10px;align-items:center}
.opt .k{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font:700 15px var(--display)}
.opts.inline .opt{justify-content:center;text-align:center;font-weight:700;font-size:19px;padding:11px 6px}
.opt[aria-pressed="true"]{border-color:var(--blue);background:var(--blue-soft);box-shadow:0 3px 0 var(--blue)}
.opt[aria-pressed="true"] .k{background:var(--blue);color:var(--on-blue)}
.opt:disabled{cursor:default}
.opt.no{border-color:var(--muted);border-style:dashed;background:var(--paper);color:var(--muted);text-decoration:line-through;box-shadow:none}
.opt.no .k{background:var(--line);color:var(--muted)}
.opt.yes{border-color:var(--leaf);background:var(--leaf-soft);color:var(--leaf);box-shadow:0 3px 0 var(--leaf)}
.opt.yes .k{background:var(--leaf);color:#fff}
.fld{display:flex;flex-direction:column;gap:4px;font-size:15px;font-weight:600;color:var(--muted);align-items:flex-start}
.num{font:700 22px var(--body);width:150px;padding:9px 12px;border-radius:14px;border:2px solid var(--edge);background:var(--surface);color:var(--ink)}
.formula{display:flex;align-items:flex-end;gap:3px;padding:4px 0 16px}
.formula .sym{font:700 36px/1 var(--body)}
.formula .idx{font:700 20px var(--body);width:50px;height:44px;text-align:center;border-radius:12px;border:2px solid var(--edge);background:var(--surface);color:var(--ink);transform:translateY(14px);margin-right:12px}
.cls{display:flex;flex-direction:column;gap:12px}
.cls .it{display:flex;flex-direction:column;gap:6px;padding-top:12px;border-top:1.5px solid var(--line)}
.cls .it:first-child{border-top:0;padding-top:0}
.cls .it b{font-weight:700}
.fb{border-radius:14px;padding:10px 14px;font-weight:600}
.fb.ok{background:var(--leaf-soft);color:var(--leaf)}
.fb.no{background:var(--bad-soft);color:var(--bad)}
.fb.info,.fb.try{background:var(--warn-soft);color:var(--warn)}
.cheer{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center}
.cheer .luchko{width:52px;height:52px}
.cheer .fb{font:700 19px/1.3 var(--display)}
.sol{border:2px dashed var(--line);border-radius:14px;padding:11px 14px}

/* the teacher's side stays sober */
.signal{border-left:6px solid var(--sun-deep)}
.signal.red{border-left-color:var(--bad)}
.signal.grey{border-left-color:var(--muted)}
.signal ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px}
.scroll{overflow-x:auto}
table{border-collapse:collapse;font-size:14px;min-width:640px;width:100%}
th,td{padding:6px 6px;text-align:center;border-bottom:1.5px solid var(--line);font-variant-numeric:tabular-nums}
th{font-weight:600;color:var(--muted);vertical-align:bottom}
th:first-child,td:first-child{text-align:left;white-space:nowrap}
td .c{display:inline-block;width:24px;height:24px;line-height:24px;border-radius:7px;font-weight:700;background:var(--line);color:var(--muted)}
td .c.l2{background:var(--warn-soft);color:var(--warn)}
td .c.l3{background:var(--sun);color:var(--on-sun)}
td .c.l4{background:var(--leaf);color:var(--surface)}
tr.me td{background:var(--blue-soft)}
.bank{display:flex;flex-direction:column}
.tpl{padding:12px 0;border-top:1.5px solid var(--line);display:flex;flex-direction:column;gap:8px}
.tpl:first-child{border-top:0}
.bsk{border-top:1.5px solid var(--line)}
.bsk:first-child{border-top:0}
.bskb{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;background:transparent;border:0;border-radius:10px;padding:12px 2px;cursor:pointer;color:var(--ink);font:400 17px/1.3 var(--body)}
.bskb b{display:block;font-weight:700}
.bskb .meta{display:block}
.bskb::after{content:"+";flex:none;font:700 22px/1 var(--display);color:var(--blue)}
.bskb[aria-expanded="true"]::after{content:"\2212"}
.thread{display:flex;flex-direction:column;gap:4px;border-left:3px solid var(--line);padding-left:12px;font-size:15.5px}
.thread .ln-ai b{color:var(--warn)}
.thread .ln-me b{color:var(--blue)}
.ex{background:var(--paper);border-radius:12px;padding:9px 12px;font-size:15px;display:flex;flex-direction:column;gap:4px}
.ex .ans{color:var(--leaf);font-weight:600}
.note,.txt{font:400 16px var(--body);border-radius:12px;border:2px solid var(--edge);padding:8px 11px;background:var(--surface);color:var(--ink)}
.note{width:100%;min-height:54px}
.txt{font-weight:600;font-size:18px;width:220px;max-width:100%}
.set{display:flex;flex-wrap:wrap;gap:14px 28px;align-items:flex-end}
.rules p{max-width:65ch}
.rules .card{gap:8px}
footer{color:var(--muted);font-size:14px;padding:0 0 28px}

@media (prefers-reduced-motion:no-preference){
  #sun-g{transition:transform .9s cubic-bezier(.2,.8,.2,1)}
  .scene stop,.scene .hill,.scene .lake{transition:stop-color .9s ease,fill .9s ease}
  #sun-rays,#glint{transition:opacity .9s ease}
  .btn,.opt,.chip{transition:transform .06s ease,box-shadow .06s ease}
  .pips i{transition:background-color .3s ease}
  .luchko.joy{animation:hop .55s ease-out 1}
  .luchko.think .rays{animation:glow 1s ease-in-out infinite;transform-origin:32px 38px}
}
@keyframes hop{0%{transform:translateY(0)}40%{transform:translateY(-9px) rotate(-7deg)}100%{transform:translateY(0)}}
@keyframes glow{0%,100%{transform:scale(1)}50%{transform:scale(1.13)}}

/* ---------- допълнения за приложението с вход ---------- */
.top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.me-box{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--muted)}
.me-box b{color:var(--ink);font-weight:600}
.views{margin:10px 0 4px}
.login{max-width:440px;margin:18px auto}
.login form{display:flex;flex-direction:column;gap:10px}
.linkbtn{display:inline-block;text-decoration:none;text-align:center}
.sel{font:600 16px var(--body);border-radius:12px;border:2px solid var(--edge);padding:7px 10px;background:var(--surface);color:var(--ink)}
.txt.wide{width:100%}
textarea.txt{min-height:110px;resize:vertical;width:100%}
.form{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end}
.form .fld{flex:1 1 180px}
.form .fld .txt{width:100%}
h4.grp{font:700 15px var(--body);color:var(--muted);margin:14px 0 0}
h4.grp:first-of-type{margin-top:4px}
ul.users{list-style:none;margin:0;padding:0}
ul.users li{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1.5px solid var(--line)}
ul.users li:last-child{border-bottom:0}
.u-info{display:flex;flex-direction:column;gap:2px;flex:1 1 240px;min-width:0}
.u-info .nm{font-weight:700;overflow-wrap:anywhere}
.u-info .em{color:var(--muted);font-size:14.5px;overflow-wrap:anywhere}
ul.users li.off .nm,ul.users li.off .em{text-decoration:line-through;color:var(--muted)}
.u-act{display:flex;flex-wrap:wrap;gap:8px}
.okmsg{color:var(--leaf);font-weight:600}
[hidden]{display:none!important}
nav.views{flex-wrap:wrap;border-radius:22px;align-self:flex-start;width:max-content;max-width:100%}
