/* JAZ ZNAM – nova otroška učilnica. En svetel otroški videz (brez temnega načina). */
@font-face{font-family:"Baloo 2";font-style:normal;font-display:swap;font-weight:400 800;src:url(../assets/ucilnica-v2/fonts/baloo-2-latin-wght-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:"Baloo 2";font-style:normal;font-display:swap;font-weight:400 800;src:url(../assets/ucilnica-v2/fonts/baloo-2-latin-ext-wght-normal.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";font-style:normal;font-display:swap;font-weight:200 1000;src:url(../assets/ucilnica-v2/fonts/nunito-latin-wght-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:"Nunito";font-style:normal;font-display:swap;font-weight:200 1000;src:url(../assets/ucilnica-v2/fonts/nunito-latin-ext-wght-normal.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{
  --ink:#24233f; --muted:#56506b; --line:#ebe4f8; --card:#ffffff;
  --purple:#7144ee; --purple-dk:#4f27c4; --purple-soft:#f1ecff;
  --orange:#ff8a1f; --orange-dk:#c25a00; --orange-soft:#fff1e2;
  --yellow:#ffd23f; --yellow-dk:#e0a800; --yellow-soft:#fff6d6;
  --green:#2fbf71; --green-dk:#1f8f52; --green-soft:#e5f8ee;
  --blue:#2f7fe0; --pink:#d63c82; --teal:#0f9488;
  --display:"Baloo 2",ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;
  --body:"Nunito",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:#f7f3ff;scrollbar-gutter:stable}
body{margin:0;min-height:100vh;background:transparent;color:var(--ink);font:700 16px/1.5 var(--body)}
/* Ozadje kot fiksen sloj: background-attachment:fixed na iPadu (Safari) riše temno črto. */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(160deg,#f4eeff 0%,#fbf8ff 45%,#fff6e6 100%)}
body.big-text{font-size:18px}
body.wide-spacing{letter-spacing:.02em;word-spacing:.08em;line-height:1.7}
h1,h2,h3{font-family:var(--display);font-weight:600;margin:0;text-wrap:balance}
p{margin:0}
img{max-width:100%}
a{color:var(--purple-dk)}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.skip{position:absolute;left:-999px;top:8px;padding:8px 14px;border-radius:12px;background:#fff;z-index:20}
.skip:focus{left:16px}

/* Zgornja vrstica */
.top{max-width:1280px;margin:0 auto;padding:18px max(20px,env(safe-area-inset-right,0px)) 10px max(20px,env(safe-area-inset-left,0px));display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
.logo img{display:block;width:160px;height:auto}
.menu{display:flex;flex-wrap:wrap;gap:4px;flex:0 1 auto}
.menu a{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 16px;border-radius:999px;color:#3d3757;text-decoration:none;font-weight:800;font-size:15px}
.menu a svg{width:20px;height:20px;flex:none}
.menu a:hover{background:#ece4ff}
.menu a[aria-current="page"]{background:var(--purple);color:#fff;box-shadow:0 4px 0 var(--purple-dk)}
.me{display:flex;align-items:center;gap:10px;margin-left:auto}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border-radius:999px;background:#fff;font-weight:900;box-shadow:0 4px 0 #e6def7;white-space:nowrap}
.chip svg{width:20px;height:20px}
.avatar{width:46px;height:46px;border-radius:50%;background:var(--yellow);color:#6b4300;display:flex;align-items:center;justify-content:center;font:700 21px var(--display);box-shadow:0 4px 0 var(--yellow-dk)}
.logout{min-height:44px;padding:0 14px;border-radius:999px;border:none;background:transparent;color:var(--muted);font:800 14px var(--body);cursor:pointer}
.logout:hover{background:#ece4ff}
.demo-banner{max-width:1280px;margin:0 auto 6px;padding:8px 16px;border-radius:12px;background:var(--yellow-soft);color:#6b4300;font-weight:900;text-align:center}

main{max-width:1280px;margin:0 auto;padding:12px max(20px,env(safe-area-inset-right,0px)) 60px max(20px,env(safe-area-inset-left,0px));outline:none}
.loading{padding:60px 0;text-align:center;color:var(--muted)}
.error{margin:40px auto;max-width:520px;padding:24px;border-radius:24px;background:#fff;text-align:center;display:flex;flex-direction:column;gap:14px;align-items:center;box-shadow:0 6px 0 var(--line)}
#view{display:flex;flex-direction:column;gap:26px}

/* Gradniki */
.card{border-radius:32px;background:var(--card);box-shadow:0 6px 0 var(--line);padding:26px}
.card-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.card-head h2{font-size:25px;display:flex;align-items:center;gap:10px}
.card-head h2 svg{width:30px;height:30px;flex:none}
.tag{padding:4px 14px;border-radius:999px;background:var(--purple-soft);color:#4a2bc2;font-weight:900;font-size:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 28px;border-radius:18px;border:none;background:var(--purple);color:#fff;font:900 18px var(--body);cursor:pointer;box-shadow:0 6px 0 var(--purple-dk);text-decoration:none}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform:translateY(4px);box-shadow:0 2px 0 var(--purple-dk)}
.btn.orange{background:var(--orange);color:#2b1600;box-shadow:0 6px 0 var(--orange-dk)}
.btn.orange:active{box-shadow:0 2px 0 var(--orange-dk)}
.btn svg{width:20px;height:20px}
.row{display:flex;flex-wrap:wrap;gap:26px;align-items:stretch}
.grow-2{flex:2 1 560px;min-width:0;display:flex;flex-direction:column}
.grow-2 .path{margin-block:auto}
.grow-1{flex:1 1 320px;min-width:0}

/* Obvestilo o prenovi */
.news{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;padding:16px 20px;border-radius:26px;background:#fff7dc;border:3px solid #ffd23f;box-shadow:0 6px 0 #f2cf62}
.news-badge{padding:6px 12px;border-radius:12px;background:var(--orange);color:#2b1600;font:700 15px var(--display);letter-spacing:.06em}
.news-txt{flex:1 1 300px;min-width:0}
.news-txt b{font:600 21px/1.2 var(--display)}
.news-txt p{font-weight:700;color:#5a4632}
.news-x{width:44px;height:44px;border-radius:14px;border:none;background:#fff;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center}
.news-x svg{width:20px;height:20px}

/* Pozdrav */
.hero{position:relative;overflow:hidden;border-radius:36px;background:linear-gradient(115deg,#6a3df0 0%,#9457f5 55%,#ee7fb6 100%);color:#fff;padding:28px 34px;display:flex;flex-wrap:wrap;align-items:center;gap:24px;box-shadow:0 8px 0 #5a33d633}
.hero::before,.hero::after{content:"";position:absolute;border-radius:50%;background:#ffffff14;pointer-events:none}
.hero::before{right:200px;top:-70px;width:190px;height:190px}
.hero::after{left:36%;bottom:-80px;width:150px;height:150px}
.hero > *{position:relative}
.hero-mascot{width:160px;height:160px;object-fit:contain;flex:none}
.hero-text{flex:1 1 300px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.hero-text h1{font-size:clamp(36px,5vw,50px);line-height:1.05}
.hero-text p{font-size:19px}
.hero-text .btn{margin-top:8px}
.ring{position:relative;width:160px;height:160px;flex:none}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring .track{fill:#ffffff22;stroke:#ffffff40;stroke-width:12}
.ring .arc{fill:none;stroke:var(--yellow);stroke-width:12;stroke-linecap:round;transition:stroke-dashoffset .9s ease}
.ring-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}
.ring-label b{font:700 36px var(--display);font-variant-numeric:tabular-nums}
.ring-label span{font-weight:800;font-size:14px}

/* Pot znanja */
.path{display:flex;align-items:flex-start;gap:0;overflow-x:auto;padding:10px 4px 6px}
.stop{flex:1 0 120px;display:flex;flex-direction:column;align-items:center;gap:12px;position:relative;text-align:center}
.stop:not(:last-child)::after{content:"";position:absolute;top:38px;left:calc(50% + 46px);right:calc(-50% + 46px);height:12px;border-radius:999px;background:repeating-linear-gradient(90deg,#e4dcfb 0 10px,transparent 10px 22px)}
.stop.done:not(:last-child)::after{background:var(--green)}
.node{width:80px;height:80px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;font:inherit;transition:transform .15s ease}
.node:hover{transform:translateY(-4px)}
.node svg{width:36px;height:36px}
.node.done{background:var(--green);color:#fff;box-shadow:0 7px 0 var(--green-dk)}
.node.now{background:var(--orange);color:#fff;box-shadow:0 7px 0 var(--orange-dk)}
.node.now::before{content:"";position:absolute;inset:-12px;border-radius:50%;background:#ffd23f55;z-index:-1;animation:halo 1.6s ease-in-out infinite alternate}
.node.open{background:#fff;color:var(--purple);border:3px solid #ddd3f5;box-shadow:0 7px 0 #ddd3f5}
.node.off{background:#efeaf8;color:#9a92b5;box-shadow:0 7px 0 #ddd5ee;cursor:default}
.node.gift{background:var(--yellow);color:#6b4300;box-shadow:0 7px 0 var(--yellow-dk)}
.node.gift.done{background:var(--green);color:#fff;box-shadow:0 7px 0 var(--green-dk)}
@keyframes halo{from{transform:scale(.92)}to{transform:scale(1.08)}}
.stop b{font-size:15px;line-height:1.2;max-width:150px}
.stop small{font-size:13px;color:var(--muted);font-weight:800}

/* Misije */
.mission{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:2px dashed #efe9fb}
.mission:last-child{border-bottom:none}
.mission .ic{width:54px;height:54px;flex:none;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#fff}
.mission .ic svg{width:28px;height:28px}
.mission .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.mission .txt b{font-size:16px;line-height:1.25;overflow-wrap:anywhere}
.mission .bar{height:12px;border-radius:999px;background:#f0ebfa;overflow:hidden}
.mission .bar span{display:block;height:100%;border-radius:999px}
.mission .val{flex:none;font-weight:900;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}

/* Teden */
.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.day{display:flex;flex-direction:column;align-items:center;gap:8px}
.day span{width:52px;max-width:100%;aspect-ratio:1;border-radius:18px;background:#f0ebfa;box-shadow:0 4px 0 #e2daf5;display:flex;align-items:center;justify-content:center}
.day.on span{background:var(--orange);box-shadow:0 4px 0 var(--orange-dk)}
.day.today b{color:var(--purple-dk);text-decoration:underline;text-underline-offset:4px}
.day svg{width:26px;height:26px}
.day b{font-size:14px}

/* Vrt znanja */
.garden{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px}
.plant{display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-height:170px;padding:20px;border-radius:28px;color:#fff;text-decoration:none;transition:transform .15s ease}
.plant:hover{transform:translateY(-4px) rotate(-.6deg)}
.plant h3{font-size:21px;line-height:1.15}
.plant .foot{display:flex;justify-content:space-between;align-items:flex-end;gap:8px}
.plant .stage{padding:3px 12px;border-radius:999px;background:#fff;color:var(--ink);font-weight:900;font-size:13px}
.plant .pot{width:84px;height:84px;border-radius:50%;background:#ffffff38;display:flex;align-items:center;justify-content:center}
.plant .pot svg{width:70px;height:70px}

/* Moduli */
.modules{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px}
.module{position:relative;display:flex;flex-direction:column;gap:10px;padding:24px;border-radius:30px;color:#fff;text-decoration:none;min-height:180px;transition:transform .15s ease}
.module:hover{transform:translateY(-4px)}
.module h3{font-size:24px}
.module p{font-weight:800}
.module .soon{position:absolute;top:18px;right:18px;padding:3px 12px;border-radius:999px;background:#fff;color:var(--ink);font-size:13px;font-weight:900}
.module svg.art{width:64px;height:64px}
.mod-group{font-size:26px;margin-top:6px}
.mod-group .tag{font-family:var(--body,inherit);font-size:14px;vertical-align:middle;margin-left:8px}
.mod-note{margin:-6px 0 0;color:#5f5878;font-weight:700}

/* Značke */
.badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:16px}
.badge{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.badge i{width:76px;height:76px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:700 26px var(--display);font-style:normal}
.badge b{font-size:14px;line-height:1.2}
.badge small{font-size:12px;color:var(--muted);font-weight:800}
.badge.locked i{background:#ece6f5;color:#8a84a0;box-shadow:0 5px 0 #ddd3f0}

/* Znamko kartica */
.znamko{position:relative;display:flex;align-items:center;gap:16px;padding:22px;border-radius:30px;background:#24233f;color:#fff}
.znamko img{width:96px;height:96px;object-fit:contain;flex:none}
.znamko .btn{margin-left:auto}

/* Prazno stanje za strani v pripravi */
.soon-page{padding:40px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}
.soon-page img{width:150px;height:150px;object-fit:contain}

/* Predmeti: pozdrav, današnji predmeti, seznam vseh */
.subj-hero{background:linear-gradient(115deg,#1f9d5c 0%,#3fcf86 55%,#ffd23f 100%);box-shadow:0 8px 0 #16743f33}
.subj-grade{position:absolute;top:18px;right:20px;background:#fff;color:#16743f}
.card-head h2 svg{width:30px;height:30px}
.featured{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}
.feat{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:14px;padding:22px;border-radius:30px;color:#fff;min-height:220px}
.feat::after{content:"";position:absolute;right:-40px;bottom:-50px;width:170px;height:170px;border-radius:50%;background:#ffffff1f;pointer-events:none}
.feat-ic{width:64px;height:64px;border-radius:20px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 0 #00000026}
.feat-ic svg{width:38px;height:38px}
.feat-txt h3{font-size:28px;line-height:1.1}
.feat-txt p{font-weight:800;opacity:.95}
.feat-act{position:relative;z-index:1;margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.feat-act .btn{min-height:52px;white-space:nowrap}
.feat-link{color:#fff;font-weight:900;text-underline-offset:4px;white-space:nowrap}
.subj-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:12px}
.subj-row{display:flex;align-items:center;gap:14px;min-height:84px;padding:12px 16px;border-radius:22px;background:#faf8ff;color:var(--ink);text-decoration:none;border:2px solid transparent;transition:transform .12s ease,border-color .12s ease}
a.subj-row:hover{border-color:#d9cdf7;transform:translateY(-2px)}
.subj-row.is-off{opacity:.55}
.subj-ic{width:54px;height:54px;flex:none;border-radius:18px;color:#fff;display:flex;align-items:center;justify-content:center}
.subj-ic svg{width:30px;height:30px}
.subj-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.subj-txt b{font:600 20px/1.15 var(--display)}
.subj-meta{display:flex;align-items:center;gap:10px}
.subj-meta small{color:var(--muted);font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.subj-bar{flex:1;height:10px;border-radius:999px;background:#ece6f7;overflow:hidden}
.subj-bar span{display:block;height:100%;border-radius:999px}
.subj-go{width:40px;height:40px;flex:none;border-radius:50%;background:#fff;color:var(--purple);display:flex;align-items:center;justify-content:center;box-shadow:0 3px 0 #e6def7}
.subj-go svg{width:20px;height:20px;transform:scaleX(-1)}
.stage{white-space:nowrap}

/* Predmeti in snovi */
.subject-tile.is-off{filter:grayscale(.7);opacity:.6;cursor:default}
.subject-tile .pot svg{width:46px;height:46px}
.back-btn{width:52px;height:52px;border-radius:18px;background:#ffffff33;color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.back-btn svg{width:24px;height:24px}
.topics{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:14px}
.topic{display:flex;align-items:center;gap:14px;min-height:76px;padding:12px 16px;border-radius:22px;border:3px solid var(--line);background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;box-shadow:0 5px 0 var(--line);transition:transform .12s ease}
.topic:hover{border-color:#c9b8f7;transform:translateY(-2px)}
.topic.is-off{opacity:.55;cursor:default}
.topic-ic{width:48px;height:48px;flex:none;border-radius:16px;color:#fff;display:flex;align-items:center;justify-content:center}
.topic-ic svg{width:26px;height:26px}
.topic-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.topic-txt b{font-size:17px;line-height:1.25}
.topic-txt small{color:var(--muted);font-weight:800}
.topic-go{width:40px;height:40px;flex:none;border-radius:50%;background:var(--orange);color:#2b1600;display:flex;align-items:center;justify-content:center}
.topic-go svg{width:18px;height:18px}

/* Predvajalnik nalog */
body.in-series .menu{visibility:hidden}
@media (max-width:700px){body.in-series .menu{display:none}}
.card-head > a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
.player{position:relative;display:flex;flex-direction:column;min-height:calc(100vh - 140px);border-radius:32px;background:#ffffffcc;box-shadow:0 6px 0 var(--line);overflow:clip}
.p-top{display:flex;align-items:center;gap:16px;padding:18px 24px}
.p-close{width:48px;height:48px;flex:none;border-radius:16px;border:none;background:#fff;color:var(--muted);cursor:pointer;box-shadow:0 4px 0 #e2daf5;display:flex;align-items:center;justify-content:center}
.p-close svg{width:22px;height:22px}
.p-bar{flex:1;height:20px;border-radius:999px;background:#e9e2fb;overflow:hidden}
.p-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2fbf71,#6fdc9d);box-shadow:inset 0 -5px 0 #00000014;transition:width .4s ease}
.p-count{font-weight:900;font-variant-numeric:tabular-nums;color:var(--muted)}
.p-body{flex:1;width:100%;max-width:880px;margin:0 auto;padding:6px 24px 24px;display:flex;flex-direction:column;gap:16px}
.p-body > .tag{align-self:flex-start}
.p-q{font-size:clamp(24px,3.2vw,34px);line-height:1.25;white-space:pre-line}
.p-audio{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 16px;border-radius:20px;background:#eef6ff;font-weight:900;color:#1f5fb0}
.p-audio span{display:inline-flex;align-items:center;gap:8px}
.p-audio svg{width:24px;height:24px}
.p-audio audio{max-width:100%}
.p-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}
.tile{display:flex;align-items:center;gap:14px;min-height:72px;padding:12px 18px;border-radius:22px;border:3px solid #e6def7;background:#fff;color:var(--ink);font:800 19px/1.3 var(--body);text-align:left;cursor:pointer;box-shadow:0 6px 0 #e6def7}
.tile:hover:not(:disabled){border-color:#b9a5f5}
.tile:active:not(:disabled){transform:translateY(3px);box-shadow:0 3px 0 #e6def7}
.tile:disabled{cursor:default}
.tile .letter{width:44px;height:44px;flex:none;border-radius:14px;color:#fff;display:flex;align-items:center;justify-content:center;font:700 22px var(--display)}
.tile.is-on{border-color:var(--purple);background:var(--purple-soft);box-shadow:0 6px 0 #c9b8f7}
.tile.is-ok{border-color:var(--green);background:var(--green-soft);box-shadow:0 6px 0 #a6e3c2}
.tile.is-no{border-color:var(--orange);background:var(--orange-soft);box-shadow:0 6px 0 #f7c99b}
.chipb{min-height:58px;padding:8px 18px;border-radius:18px;border:3px solid #e6def7;background:#fff;color:var(--ink);font:800 17px/1.3 var(--body);cursor:pointer;box-shadow:0 5px 0 #e6def7;text-align:left}
.chipb:disabled{cursor:default}
.p-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 40px}
.p-pairs > div{display:flex;flex-direction:column;gap:12px}
.p-slots{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}
.slot{width:100%;min-height:96px;padding:10px 14px;border-radius:18px;border:3px dashed #d9cdf7;background:#faf8ff;color:var(--ink);font:800 16px/1.3 var(--body);display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;cursor:pointer}
.slot b{font:700 24px var(--display);color:var(--purple)}
.slot.is-full{border-style:solid;background:#fff;border-color:#c9b8f7}
.slot:disabled{cursor:default}
.p-pool{display:flex;flex-wrap:wrap;gap:10px}
.p-help{margin:0;color:var(--muted);font-weight:800;font-size:15px}
.p-label{font-weight:900}
input.txt{width:100%;max-width:560px;min-height:72px;padding:0 22px;border-radius:22px;border:3px solid #e6def7;background:#fff;color:var(--ink);font:600 28px var(--display);box-shadow:0 6px 0 #e6def7}
input.txt:focus{outline:none;border-color:var(--purple)}
.p-foot{position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px calc(22px + env(safe-area-inset-bottom,0px));border-top:3px solid #ece5fa;background:#fff}
.p-foot.is-ok{background:#d9f6e5;border-color:#a6e3c2;color:#14633a}
.p-foot.is-no{background:#ffeedd;border-color:#f7c99b;color:#6b3f00}
.p-foot img{width:64px;height:64px;object-fit:contain;flex:none}
.p-msg{flex:1 1 280px;min-width:0}
.p-msg b{font:600 26px/1.2 var(--display)}
.p-msg p{font-weight:800}
.p-badge{width:60px;height:60px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--green);color:#fff}
.p-badge svg{width:34px;height:34px}
.p-actions{display:flex;flex-wrap:wrap;gap:10px}
.btn.green{background:var(--green);color:#08351c;box-shadow:0 6px 0 var(--green-dk);min-width:180px}
.btn.green:active{box-shadow:0 2px 0 var(--green-dk)}
.btn.is-off{background:#e6e1f0;color:#6b6580;box-shadow:0 6px 0 #d3cce3;cursor:default}
.btn.ghost{background:#fff;color:var(--purple-dk);box-shadow:0 5px 0 #e2daf5}
.btn.white{background:#fff;color:var(--purple-dk);box-shadow:0 6px 0 #c9b8f7}
.ask{display:inline-flex;align-items:center;gap:10px;min-height:56px;padding:0 20px 0 8px;border-radius:999px;border:none;background:var(--purple);color:#fff;font:900 16px var(--body);cursor:pointer;box-shadow:0 5px 0 var(--purple-dk)}
.ask img{width:44px;height:44px;border-radius:50%;background:#fff;object-fit:contain}
.p-quit{margin:0 24px 14px;padding:16px 18px;border-radius:20px;background:#fff7dc;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.p-quit b{font:600 20px var(--display)}
.p-quit p{flex:1 1 200px;font-weight:800}

/* Znamko v nalogi */
.zn-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ai-form{display:flex;gap:8px;width:100%}
.ai-form input{flex:1;min-width:0;min-height:46px;padding:0 14px;border-radius:14px;border:2px solid #ddd3f5;font:700 16px var(--body);color:var(--ink)}
.ai-form input:focus{outline:none;border-color:var(--purple)}
.chat-foot .p-help{width:100%}
.chat{position:absolute;top:0;right:0;bottom:0;width:min(400px,100%);background:#fff;box-shadow:-10px 0 40px #2a1a6633;display:flex;flex-direction:column;z-index:5}
.chat-head{display:flex;align-items:center;gap:12px;padding:16px 18px;background:linear-gradient(120deg,#6a3df0,#9457f5);color:#fff}
.chat-head img{width:52px;height:52px;border-radius:50%;background:#ffffff33;object-fit:contain}
.chat-head div{flex:1;display:flex;flex-direction:column;line-height:1.2}
.chat-head b{font:600 22px var(--display)}
.chat-head small{font-weight:800;color:#efe6ff}
.chat-x{width:44px;height:44px;border-radius:14px;border:none;background:#ffffff33;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.chat-x svg{width:20px;height:20px}
.chat-body{flex:1;overflow-y:auto;padding:16px 18px;display:flex;flex-direction:column;gap:10px;background:#faf8ff}
.bubble{max-width:85%;padding:10px 14px;border-radius:18px 18px 18px 4px;background:#fff;font-weight:700;line-height:1.4;box-shadow:0 2px 0 #00000010;align-self:flex-start}
.bubble.me{align-self:flex-end;background:var(--purple);color:#fff;border-radius:18px 18px 4px 18px}
.chat-foot{padding:12px 18px 18px;border-top:2px solid #f0ebfa;display:flex;flex-wrap:wrap;gap:8px}
.qchip{display:inline-flex;align-items:center;min-height:42px;padding:0 14px;border-radius:999px;border:2px solid #d9cdf7;background:#fff;color:#4a2bc2;font:900 14px var(--body);cursor:pointer;text-decoration:none}
.qchip:hover{background:var(--purple-soft)}

/* Konec serije */
.end{position:relative;overflow:hidden;border-radius:36px;background:radial-gradient(circle at 50% 25%,#9a63f7 0%,#6a3df0 45%,#4a22c9 100%);color:#fff;padding:34px 24px 40px;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center}
.end > *:not(.confetti){position:relative}
.confetti{position:absolute;inset:0;pointer-events:none}
.confetti i{position:absolute;top:-30px;width:10px;height:16px;border-radius:3px;animation:fall linear infinite}
@keyframes fall{to{transform:translateY(900px) rotate(540deg)}}
.end-mascot{width:150px;height:150px;object-fit:contain}
.end-stars{display:flex;gap:6px;align-items:flex-end}
.end-star{width:60px;height:60px;color:#ffffff40}
.end-star:nth-child(2){width:74px;height:74px}
.end-star.on{color:var(--yellow);filter:drop-shadow(0 3px 0 #e09a00)}
.end-star svg{width:100%;height:100%}
.end h1{font-size:clamp(34px,5vw,48px)}
.end-sub{font-size:18px;color:#efe6ff}
.end-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:min(100%,640px)}
.end-stats div{border-radius:22px;background:#fff;color:var(--ink);padding:14px;box-shadow:0 6px 0 #00000030}
.end-stats b{display:block;font:700 32px/1.1 var(--display);font-variant-numeric:tabular-nums}
.end-stats span{font-weight:900}
.end-review{width:min(100%,640px);border-radius:24px;background:#fff;color:var(--ink);padding:18px 22px;text-align:left}
.end-review h2{font-size:22px;margin-bottom:8px}
.end-review ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px}
.end-review p{color:var(--muted);font-weight:700}
.end-actions{display:flex;flex-wrap:wrap;gap:14px;justify-content:center}

/* Moje znanje */
.btn.small{min-height:44px;padding:0 18px;font-size:15px;border-radius:14px;box-shadow:0 4px 0 var(--purple-dk)}
.btn.small.ghost{box-shadow:0 4px 0 #e2daf5}
.btn.small.orange{box-shadow:0 4px 0 var(--orange-dk)}
.btn.small svg{width:16px;height:16px}
.know-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.know-sum div{border-radius:24px;padding:16px 20px;display:flex;flex-direction:column;box-shadow:0 5px 0 #00000012}
.know-sum b{font:700 36px/1.1 var(--display)}
.know-sum span{font-weight:900}
.know-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,480px),1fr));gap:26px;align-items:start}
.know-ic{width:40px;height:40px;border-radius:14px;color:#fff;display:inline-flex;align-items:center;justify-content:center}
.know-ic svg{width:24px;height:24px}
.know-row{padding:12px 0;border-bottom:2px dashed #efe9fb;display:flex;flex-direction:column;gap:6px}
.know-row:last-child{border-bottom:none}
.know-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 14px}
.know-top span{font-weight:900;font-size:14px;font-variant-numeric:tabular-nums}
.know-bar{height:14px;border-radius:999px;background:#f0ebfa;overflow:hidden}
.know-bar span{display:block;height:100%;border-radius:999px}
.know-row small{color:var(--muted);font-weight:800}
.note-warn{margin:0 0 12px;padding:10px 14px;border-radius:14px;background:#fff1dc;color:#6b4300;font-weight:800}

/* Urnik */
.seg{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:#f1ecff}
.seg button{min-height:40px;padding:0 16px;border-radius:999px;border:none;background:transparent;color:var(--ink);font:900 14px var(--body);cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--purple);color:#fff}
.tt-wrap{overflow-x:auto}
.tt-grid{display:grid;grid-template-columns:44px repeat(5,minmax(96px,1fr));gap:8px;min-width:560px}
.tt-day{display:flex;align-items:center;justify-content:center;min-height:40px;border-radius:14px;background:#f1ecff;font-weight:900;font-size:14px}
.tt-day.is-today{background:var(--orange);color:#2b1600}
.tt-hour{display:flex;align-items:center;justify-content:center;font:700 18px var(--display);color:var(--muted)}
.tt-cell{min-height:54px;display:flex}
.tt-btn{flex:1;min-height:54px;border-radius:16px;border:2px dashed #ddd3f5;background:#faf8ff;color:#9a92b5;font:900 14px/1.15 var(--body);cursor:pointer;padding:4px 6px;overflow-wrap:anywhere}
.tt-btn:hover{border-color:var(--purple);color:var(--purple)}
.tt-btn.is-full{border:none;color:#fff}
.tt-cell.is-today .tt-btn:not(.is-full){background:#fff7ec}
.tt-select{flex:1;min-height:54px;border-radius:16px;border:3px solid var(--purple);padding:0 8px;font:800 14px var(--body);color:var(--ink);background:#fff}

/* Pomembni dnevi */
.ev-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.ev{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 12px;border-radius:20px;background:#faf8ff}
.ev.is-done{opacity:.6}
.ev.is-done .ev-txt b{text-decoration:line-through}
.ev-date{width:54px;height:54px;flex:none;border-radius:16px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;font-weight:900;font-size:13px}
.ev-date b{font:700 20px var(--display)}
.ev-txt{flex:1 1 140px;min-width:0;display:flex;flex-direction:column}
.ev-txt b{line-height:1.25}
.ev-txt small{color:var(--muted);font-weight:800}
.ev-when{padding:3px 10px;border-radius:999px;background:#fff;font-weight:900;font-size:13px;color:var(--muted)}
.ev-when.is-soon{background:#ffe1e5;color:#a1122b}
.ev-act{display:flex;gap:6px}
.ev-btn{width:40px;height:40px;border-radius:12px;border:none;background:#fff;color:#1f8f52;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 0 #e6def7}
.ev-btn svg{width:20px;height:20px}
.ev-btn.del{color:#a1122b}
.ev-confirm{flex-basis:100%;display:flex;align-items:center;gap:8px;padding-top:6px;font-weight:900}
.ev-done{margin-top:14px}
.ev-done summary{cursor:pointer;font-weight:900;color:var(--muted);margin-bottom:10px}
.ev-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;margin-bottom:14px;border-radius:20px;background:#f6f2ff}
.ev-form label{display:flex;flex-direction:column;gap:4px;font-weight:900;font-size:14px}
.ev-form label:first-child{grid-column:1/-1}
.ev-form input,.ev-form select{min-height:48px;padding:0 12px;border-radius:14px;border:2px solid #ddd3f5;background:#fff;font:700 16px var(--body);color:var(--ink)}
.ev-form input:focus,.ev-form select:focus{outline:none;border-color:var(--purple)}
.ev-form-act{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px}

@media (min-width:701px) and (max-width:1279px){.menu{order:3;flex-basis:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.menu a{flex:none}.me{margin-left:auto}}
@media (max-width:700px){
  .subj-grade{position:static;align-self:flex-start}
  .know-sum{grid-template-columns:1fr}
  .ev-form{grid-template-columns:1fr}
  .top{gap:10px}
  .menu{order:3;flex-basis:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:6px}
  .menu a{flex:none}
  .me{margin-left:auto}
  .chip{min-height:38px;padding:0 12px;font-size:14px}
  .logout{display:none}
  .hero{padding:22px;gap:14px}
  .hero-mascot{width:110px;height:110px}
  .ring{width:130px;height:130px}
  .card{padding:20px;border-radius:26px}
  .znamko{flex-wrap:wrap}
  .znamko .btn{margin-left:0}
  .player{min-height:calc(100vh - 170px);border-radius:24px}
  .p-top{padding:14px 16px}
  .p-body{padding:4px 16px 18px}
  .p-pairs{gap:10px 14px}
  .p-foot{padding:14px 16px 18px}
  .p-foot{flex-wrap:nowrap}
  .p-foot .btn{flex:1 1 auto;min-width:0}
  .ask{flex:0 0 auto;padding:0 6px}
  .ask .ask-txt{display:none}
  .p-foot.is-ok,.p-foot.is-no{flex-wrap:wrap}
}
@media (prefers-reduced-motion: reduce){
  .node.now::before{animation:none}
  .node,.plant,.module,.ring .arc{transition:none}
  .node:hover,.plant:hover,.module:hover{transform:none}
}
body.calm .node.now::before{animation:none}
@media (prefers-reduced-motion: reduce){.topic,.p-bar span{transition:none}.topic:hover{transform:none}}

/* Odprava tedna in Moja zbirka (odkritja.js) */
.odprava-list{display:flex;flex-direction:column;gap:10px}
.odprava-task{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:#f6f3fc;color:var(--ink);text-decoration:none}
.odprava-task span:last-child{display:flex;flex-direction:column}
.odprava-task small{color:#5f5878;font-weight:700}
.odprava-check{width:36px;height:36px;flex:none;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;color:#7144ee;box-shadow:0 3px 0 #ece6f7}
.odprava-task.done{background:#e5f8ee}.odprava-task.done .odprava-check{background:#2fbf71;color:#fff;box-shadow:0 3px 0 #1f9d5c}
.zbirka{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),1fr));gap:12px}
.zbirka-item{display:flex;flex-direction:column;gap:4px;min-height:92px;padding:14px;border-radius:20px;color:#fff;text-decoration:none}
.zbirka-item small{font-weight:800;opacity:.9}
.zbirka-item.empty{background:#f6f3fc;color:#5f5878;border:2px dashed #d9d0f0}

/* preizkus brez prijave */
.demo-banner a{color:#4f27c4;text-decoration:underline;text-underline-offset:3px;margin-left:6px;white-space:nowrap}
.trial-note{margin:0 0 18px;text-align:center}.trial-note h2{margin:0 0 6px}.trial-note p{margin:0 0 14px}
.trial-note.flash{animation:trialFlash 1.2s ease}@keyframes trialFlash{0%,60%{box-shadow:0 0 0 6px var(--yellow-soft,#fff3c4)}100%{box-shadow:none}}

/* Shared copy-to-action spacing for empty, error and lesson cards. Excludes inline toolbars. */
main :where(p)+:is(button.btn,a.btn,.actions),#view :where(p)+:is(button.btn,a.btn,.actions){margin-block-start:24px}
.error{gap:24px}


/* Mobile account controls must remain available, including sign-out. */
@media(max-width:700px){
 .top .me{flex:1 1 100%;min-width:0;margin-left:0;flex-wrap:wrap;gap:6px;justify-content:flex-end}
 .top .me .chip{min-height:38px;padding:0 9px;font-size:13px;white-space:nowrap}
 .top .me .avatar{flex:none}
 .top .me .logout{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 12px;background:#fff9;border:1px solid #e4d8ff}
 .top>.menu{min-width:0;max-width:100%;scroll-padding-inline:8px}
}
