/* Επανάληψη (laptop των παιδιών, 24/11/2026). Η όψη ακολουθεί το «Γραφείο» (erp-apricot/app/ui/glass.css): γυάλινο
   πλαίσιο πάνω σε φόντο, μενού και πάνω μπάρα σαν χάπια, κάρτες απλό ημιδιαφανές λευκό. Το χρώμα τονισμού είναι το χρώμα
   του παιδιού (--k, από τα Βάζα). Το θόλωμα υπάρχει μόνο σε τρία μεγάλα κομμάτια, για να μη βαραίνει το παλιό laptop. */
:root{
  --k:#4f6b49; --k-deep:#3b5237; --k-soft:rgba(79,107,73,.14);
  --ink:#16202b; --muted:#4f5b68; --line:rgba(22,32,43,.10);
  --glass:rgba(255,255,255,.56); --glass-solid:rgba(255,255,255,.88); --glass-line:rgba(255,255,255,.66); --glass-dark:rgba(25,33,58,.5);
  --surface:rgba(255,255,255,.64);
  --ok:#23803a; --ok-soft:rgba(35,128,58,.14); --bad:#b8322a; --bad-soft:rgba(184,50,42,.12); --warn:#8a5a00; --warn-soft:rgba(214,150,20,.2);
  --shadow:0 1px 2px rgba(20,30,50,.05),0 10px 30px rgba(20,30,50,.09);
  --font:"Commissioner","Segoe UI",system-ui,-apple-system,"Noto Sans",sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font:16px/1.5 var(--font);color:var(--ink);background:#7d8fc6;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0;z-index:-2;
  background:
    radial-gradient(60vw 60vw at 8% 12%,#ffd7a8 0,rgba(255,215,168,0) 60%),
    radial-gradient(55vw 55vw at 92% 8%,#a9d8ff 0,rgba(169,216,255,0) 62%),
    radial-gradient(60vw 60vw at 85% 95%,#c6b6ff 0,rgba(198,182,255,0) 60%),
    radial-gradient(55vw 55vw at 10% 95%,#a8ecd0 0,rgba(168,236,208,0) 60%),
    linear-gradient(135deg,#f6e6ff,#dff1ff)}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(40vw 40vw at 70% 40%,var(--k-soft),transparent 70%)}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:default}
:focus-visible{outline:3px solid var(--k);outline-offset:2px}
[hidden]{display:none!important}

/* ---------- περίβλημα ---------- */
.app{display:flex;min-height:100vh}
.railwrap{position:sticky;top:0;height:100vh;padding:16px 0 16px 14px;display:flex;align-items:center;z-index:5}
.rail{display:flex;flex-direction:column;gap:6px;width:62px;padding:8px 7px;border-radius:999px;background:var(--glass-dark);border:1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter:blur(22px) saturate(1.2);backdrop-filter:blur(22px) saturate(1.2);box-shadow:0 10px 30px rgba(20,24,50,.22)}
.nav-b{position:relative;width:48px;height:48px;border:0;border-radius:50%;background:transparent;font-size:23px;line-height:1;display:grid;place-items:center;transition:background .12s}
.nav-b:hover{background:rgba(255,255,255,.22)}
.nav-b[aria-current="page"]{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.nav-b .lbl{position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);background:#fff;color:var(--ink);padding:6px 12px;border-radius:999px;font-size:13.5px;font-weight:600;white-space:nowrap;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:opacity .12s}
.nav-b:hover .lbl,.nav-b:focus-visible .lbl{opacity:1}
.nav-sep{height:1px;margin:4px 8px;background:rgba(255,255,255,.3)}
.main{flex:1;min-width:0;max-width:1440px;padding:16px 22px 16px 16px;display:flex;flex-direction:column;min-height:100vh}
.view{background:var(--glass);border:1px solid var(--glass-line);border-radius:34px;padding:24px 28px 30px;box-shadow:0 26px 70px rgba(30,30,80,.18);
  -webkit-backdrop-filter:blur(30px) saturate(1.2);backdrop-filter:blur(30px) saturate(1.2);flex:1 0 auto}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.view{background:rgba(250,250,255,.94)}.topbar,.rail{background:rgba(40,46,80,.92)}}

.topbar{display:flex;flex:none;align-items:center;gap:12px;margin:0 0 14px;padding:8px 10px 8px 10px;border-radius:999px;background:var(--glass-dark);border:1px solid rgba(255,255,255,.24);color:#fff;
  -webkit-backdrop-filter:blur(22px) saturate(1.2);backdrop-filter:blur(22px) saturate(1.2);box-shadow:0 10px 30px rgba(20,24,50,.2)}
.logo{width:42px;height:42px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:22px;flex:none}
.ttl{flex:1;min-width:0}
.ttl h1{margin:0;font-size:18px;font-weight:600;line-height:1.2}
.ttl .sub{font-size:12.5px;color:rgba(255,255,255,.82);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pill{padding:8px 15px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);font-size:14px;font-weight:500;white-space:nowrap}
.pill.jar b{font-size:16px}
.me{width:42px;height:42px;border-radius:50%;background:#fff;color:var(--k-deep);display:grid;place-items:center;font-weight:700;font-size:18px;flex:none}

/* ---------- κοινά ---------- */
.eyebrow{font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
h2.big{font-size:34px;font-weight:500;margin:2px 0 6px;line-height:1.2}
h2.big em{font-style:normal;color:var(--k-deep)}
.lead{color:var(--muted);font-size:15.5px;margin:0}
.tile{background:var(--surface);border:1px solid var(--glass-line);border-radius:26px;box-shadow:var(--shadow);padding:18px 20px}
.tile.solid{background:var(--glass-solid)}
.tile h3{margin:0 0 10px;font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px}
.tile h3 small{font-weight:500;color:var(--muted);font-size:13px}
.grid{display:grid;gap:16px}
.btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:11px 20px;background:var(--k);color:#fff;font-weight:600;font-size:15.5px;box-shadow:0 4px 14px var(--k-soft);transition:filter .12s,transform .08s}
.btn:hover{filter:brightness(1.08)}
.btn:active{transform:translateY(1px)}
.btn.big{padding:15px 28px;font-size:18px}
.btn.ghost{background:rgba(255,255,255,.7);color:var(--ink);border:1px solid var(--glass-line);box-shadow:none}
.btn.ghost:hover{background:#fff;filter:none}
.btn:disabled{opacity:.5;filter:none}
.back{border:1px solid var(--glass-line);background:rgba(255,255,255,.7);border-radius:999px;padding:7px 14px 7px 10px;font-size:14px;font-weight:500;margin-bottom:12px}
.back:hover{background:#fff}
.chip{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:2px 10px;font-size:12.5px;font-weight:600;white-space:nowrap;background:rgba(22,32,43,.07);color:var(--muted)}
.chip.ok{background:var(--ok-soft);color:var(--ok)}
.chip.warn{background:var(--warn-soft);color:var(--warn)}
.chip.new{background:var(--k-soft);color:var(--k-deep)}
.chip.wait{background:transparent;border:1px dashed rgba(22,32,43,.22)}
.loading,.empty{color:var(--muted);padding:30px 4px}

/* ---------- Αρχική ---------- */
.hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;margin-bottom:18px}
.hero .go{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.hero .go small{color:var(--muted);font-size:13px;max-width:320px;text-align:right}
.nums{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}
.num{background:var(--surface);border:1px solid var(--glass-line);border-radius:26px;box-shadow:var(--shadow);padding:16px 20px;display:flex;flex-direction:column;gap:4px;min-width:0}
.num .lb{font-size:13px;color:var(--muted);font-weight:500}
.num b{font-size:38px;font-weight:500;line-height:1.05;font-variant-numeric:tabular-nums}
.num small{font-size:12.5px;color:var(--muted)}
.num .bar{height:10px;border-radius:99px;background:rgba(22,32,43,.08);overflow:hidden;margin-top:6px}
.num .bar i{display:block;height:100%;border-radius:99px;background:var(--k)}
.stars{font-size:26px;letter-spacing:2px}
.stars .off{opacity:.22;filter:grayscale(1)}
.subjects{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
.subj{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:16px 12px 14px;border-radius:24px;background:rgba(255,255,255,.58);border:1px solid var(--glass-line);transition:background .12s,transform .12s}
.subj:hover{background:rgba(255,255,255,.95);transform:translateY(-2px)}
.subj .t{font-size:16px;font-weight:600}
.subj .s{font-size:12.5px;color:var(--muted)}
.ring{width:88px;height:88px;display:block}
.ring circle{fill:none;stroke-width:8}
.ring .trk{stroke:rgba(22,32,43,.09)}
.ring .val{stroke:var(--k);stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%}
.ring text{font:600 26px var(--font);text-anchor:middle;dominant-baseline:central}
.home-low{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;margin-top:18px}
.feed{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.feed li{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;background:rgba(255,255,255,.55);border-radius:16px;padding:9px 12px}
.feed li.empty{display:block;padding:14px}
.feed .d{text-align:center;line-height:1.1}
.feed .d b{display:block;font-size:20px;font-weight:600}
.feed .d small{font-size:11.5px;color:var(--muted)}
.feed .t{font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.feed .s{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.goal{display:flex;flex-direction:column;gap:10px}
.goal .gi{font-size:44px;line-height:1}
.goal .gt{font-weight:600;font-size:16px}

/* ---------- μάθημα ---------- */
.subj-head{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.subj-head .ic{font-size:46px;line-height:1}
.subj-head h2{margin:0;font-size:30px;font-weight:600}
.subj-head p{margin:0;color:var(--muted)}
.subj-head .ring{margin-left:auto;width:76px;height:76px}
.units{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:16px;align-items:start}
.unit h3{justify-content:space-between}
.unit .ub{border:0;background:var(--k-soft);color:var(--k-deep);border-radius:999px;padding:5px 12px;font-size:13px;font-weight:600;white-space:nowrap}
.unit .ub:hover{background:var(--k);color:#fff}
.chs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.chs button{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;border:0;border-radius:14px;background:rgba(255,255,255,.55);padding:8px 10px}
.chs button:hover:not(:disabled){background:#fff}
.chs button:disabled{opacity:.6}
.chs .no{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:14px;background:rgba(22,32,43,.07)}
.chs .done .no{background:var(--ok);color:#fff}
.chs .t{font-size:14.5px;font-weight:500;line-height:1.3}
.chs .p{display:block;font-size:12px;color:var(--muted)}

/* ---------- κεφάλαιο ---------- */
.ch-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:16px;align-items:start;margin-top:14px}
.remember ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.remember li{position:relative;padding:10px 14px 10px 42px;background:rgba(255,255,255,.6);border-radius:14px;font-size:16.5px;line-height:1.5}
.remember li::before{content:"💡";position:absolute;left:12px;top:10px}
.start{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.start .rule{font-size:15px;color:var(--muted)}
.start .rule b{color:var(--ink)}

/* ---------- ερωτήσεις ---------- */
.qtop{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.qtop .where{flex:1;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dots{display:flex;gap:6px}
.dots i{width:16px;height:16px;border-radius:50%;background:rgba(22,32,43,.12)}
.dots i.now{background:var(--k);box-shadow:0 0 0 3px var(--k-soft)}
.dots i.y{background:var(--ok)}
.dots i.n{background:var(--bad)}
.qcard{max-width:980px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.qcard .qn{color:var(--muted);font-weight:600;font-size:14px}
.qcard .ask{font-size:27px;font-weight:600;line-height:1.35}
.qcard .text{font-size:22px;line-height:1.45}
.pic{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center;min-height:0}
.pic svg{width:220px;height:auto;max-height:230px}
.pic svg.bar{width:min(100%,480px)}
.pic .grp{display:inline-flex;flex-wrap:wrap;gap:2px;max-width:140px;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.7);font-size:24px}
.pic .coin,.pic .note{display:inline-grid;place-items:center;font-weight:700}
.pic .coin{width:62px;height:62px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffe9a6,#d9a62b);border:3px solid #b8871a;font-size:14px}
.pic .note{min-width:110px;height:58px;border-radius:8px;background:linear-gradient(135deg,#bfe3c2,#7cbf86);border:2px solid #4c8f57;font-size:18px}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.choices.tf{grid-template-columns:1fr 1fr;max-width:640px}
.choice{display:flex;align-items:center;gap:14px;text-align:left;border:2px solid transparent;border-radius:20px;background:rgba(255,255,255,.72);padding:14px 18px;font-size:20px;font-weight:500;min-height:72px;transition:background .1s,border-color .1s,transform .08s}
.choice:hover:not(:disabled){background:#fff;border-color:var(--k)}
.choice:active:not(:disabled){transform:scale(.99)}
.choice .lt{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--k-soft);color:var(--k-deep);font-weight:700;font-size:16px}
.choice.right{background:var(--ok-soft);border-color:var(--ok)}
.choice.right .lt{background:var(--ok);color:#fff}
.choice.wrong{background:var(--bad-soft);border-color:var(--bad)}
.choice.wrong .lt{background:var(--bad);color:#fff}
.choice:disabled:not(.right):not(.wrong){opacity:.55}
.fb{display:flex;gap:16px;align-items:center;border-radius:22px;padding:14px 18px;background:rgba(255,255,255,.8)}
.fb .em{font-size:38px;line-height:1}
.fb .msg{flex:1;min-width:0}
.fb .msg b{font-size:19px;display:block}
.fb .msg span{font-size:16px;color:var(--muted)}
.fb.ok{background:var(--ok-soft)}
.fb.no{background:var(--bad-soft)}
.keys{font-size:12.5px;color:var(--muted);text-align:center}
.frac{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;margin:0 3px;font-size:.85em;line-height:1.05}
.frac .num{border-bottom:2px solid currentColor;padding:0 3px}
.frac .den{padding:0 3px}
.slot{display:inline-block;min-width:1.6em;border-bottom:3px solid var(--k);margin:0 3px}

/* ---------- τέλος γύρου ---------- */
.done{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:18px;align-items:start}
.score{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:26px}
.score .ring{width:170px;height:170px}
.score .ring circle{stroke-width:10}
.score .ring text{font-size:24px}
.score h2{margin:6px 0 0;font-size:28px;font-weight:600}
.score p{margin:0;color:var(--muted);font-size:16px;max-width:420px}
.score .acts{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:8px}
.plus{font-size:44px;font-weight:700;color:var(--ok);animation:pop .6s cubic-bezier(.2,1.6,.4,1) both}
@keyframes pop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
.missed ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:10px}
.missed li{background:rgba(255,255,255,.6);border-radius:14px;padding:10px 14px}
.missed .q{font-weight:600}
.missed .a{color:var(--ok);font-weight:600}
.missed .h{color:var(--muted);font-size:14px}
.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:50}
.confetti i{position:absolute;top:-20px;width:10px;height:16px;border-radius:3px;animation:fall 2.4s linear forwards}
@keyframes fall{to{transform:translateY(110vh) rotate(720deg)}}

.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:rgba(25,33,58,.92);color:#fff;padding:12px 20px;border-radius:999px;font-weight:500;z-index:60;box-shadow:0 10px 30px rgba(0,0,0,.25)}

@media (max-width:1100px){
  .nums{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-low,.ch-grid,.done{grid-template-columns:minmax(0,1fr)}
  .units{grid-template-columns:minmax(0,1fr)}
}
@media (max-height:800px){
  .view{padding:18px 22px 22px}
  h2.big{font-size:28px}
  .qcard{gap:12px}
  .qcard .ask{font-size:23px}
  .choice{min-height:56px;font-size:18px;padding:8px 14px}
  .pic svg{max-height:150px}
  .pic svg.bar{max-height:110px}
  .qtop{margin-bottom:10px}
  .fb{padding:10px 16px}
  .fb .em{font-size:30px}
}
