@font-face{font-family:"Onest";src:url("fonts/Onest.ttf") format("truetype");font-weight:100 900;font-style:normal;font-display:swap}
:root{
  --ink:#14213D;--night:#101A33;--red:#E0213C;--red-d:#B8152D;--red-t:#FDE7EA;
  --bg:#F6F7FB;--card:#fff;--line:#E4E8F1;--muted:#59647A;--soft:#EEF1F8;
  --flame:#FF7A1A;--flame-t:#FFF0E3;--flame-d:#A94400;
  --ok:#2E9D5B;--ok-t:#E1F3E9;--ok-d:#1F7A44;
  --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);
}
.p-listen{--c:#6A4CF5;--ct:#EEEAFF;--cd:#5237D9;--cf:#6A4CF5;--cx:#fff;--cl:#9C86FF;--cs:106,76,245}
.p-read{--c:#0E9FB3;--ct:#DDF4F7;--cd:#0A7385;--cf:#0A7E91;--cx:#fff;--cl:#2CC4D8;--cs:14,159,179}
.p-gram{--c:#F2A31B;--ct:#FFF2D9;--cd:#8A5300;--cf:#F2A31B;--cx:#14213D;--cl:#F5B93F;--cs:242,163,27}
.p-write{--c:#2E9D5B;--ct:#E1F3E9;--cd:#1F7A44;--cf:#208347;--cx:#fff;--cl:#4CCB84;--cs:46,157,91}
.p-speak{--c:#F0507A;--ct:#FDE6EC;--cd:#C42456;--cf:#D02A5E;--cx:#fff;--cl:#FF7A9B;--cs:240,80,122}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
html{hyphens:manual}
body{overflow-wrap:break-word;font-family:"Onest",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.45;color:var(--ink);background:var(--bg);-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;overflow-x:hidden}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
:focus-visible{outline:3px solid #6A4CF5;outline-offset:2px;border-radius:10px}
svg{display:block}
.ico{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.num{font-variant-numeric:tabular-nums}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ramka telefonu */
.stage{min-height:100dvh}
.side{display:none}
.phone{position:relative;display:flex;flex-direction:column;width:100%;height:100dvh;min-height:100dvh;background:var(--bg);overflow:hidden}
.view{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;outline:none}
@media(min-width:600px){
  body{background:var(--night)}
  .stage{display:flex;align-items:center;justify-content:center;min-height:100dvh;position:relative;
    background:linear-gradient(90deg,#6A4CF5 0 20%,#0E9FB3 20% 40%,#F2A31B 40% 60%,#2E9D5B 60% 80%,#F0507A 80%) top/100% 8px no-repeat,var(--night)}
  .phone{width:400px;height:min(860px,calc(100dvh - 48px));min-height:0;border-radius:46px;box-shadow:0 0 0 10px #1B2A4D,0 30px 80px rgba(0,0,0,.55)}
  .side{display:block;position:absolute;left:40px;top:36px;color:#C6CEE3}
  .side p{margin-top:12px;font-size:14px;color:#B4BDD6}
}

/* ekran */
.screen{min-height:100%;display:flex;flex-direction:column;animation:enter .2s ease-out both}
.screen.noanim{animation:none}
@keyframes enter{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.screen{animation:none}*{transition:none!important;animation:none!important}}

.hd{position:relative;padding:calc(var(--safe-t) + 14px) 20px 14px}
.hd-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.hd-logo{height:32px;width:auto}
.hd h1{font-size:32px;line-height:1.12;font-weight:800;letter-spacing:-.02em}
.hd .sub{margin-top:8px;color:var(--muted);font-size:15px}
.iconbtn{width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.22);display:grid;place-items:center;color:inherit}
.iconbtn:active{background:rgba(255,255,255,.4)}
.body{padding:0 20px 28px;flex:1}
.body>*+*{margin-top:22px}

/* ekran z kolorem części */
.hd.tone{background:var(--cf);color:var(--cx);border-radius:0 0 32px 32px;padding-bottom:24px;box-shadow:0 14px 30px -18px rgba(var(--cs),.7)}
.hd.tone .sub{color:var(--cx);font-weight:500}
.hd.tone .iconbtn{background:rgba(255,255,255,.22)}
.p-gram .hd.tone .iconbtn{background:rgba(20,33,61,.1)}
.hd.tone .pbadge{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.22);display:grid;place-items:center}
.p-gram .hd.tone .pbadge{background:rgba(20,33,61,.1)}
.hd.tone :focus-visible{outline-color:var(--cx)}
.hd.tone h1{margin-top:10px}

/* przełącznik języka */
.seg{display:inline-flex;background:#fff;border:1px solid var(--line);border-radius:999px;padding:3px;gap:2px}
.seg button{border:0;background:transparent;min-width:44px;height:38px;padding:0 10px;border-radius:999px;font-weight:700;font-size:14px;color:var(--muted)}
.seg button[aria-checked="true"]{background:var(--ink);color:#fff}
.seg.big{display:flex;width:100%}
.seg.big button{flex:1;height:44px;font-size:15px}

/* przyciski */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;padding:0 20px;border-radius:16px;border:2px solid transparent;font-weight:700;font-size:16px;text-align:center}
.btn.primary{background:var(--red);color:#fff;box-shadow:0 10px 22px -10px rgba(224,33,60,.7)}
.btn.primary:active{background:var(--red-d);transform:translateY(1px)}
.btn.primary:disabled{background:var(--soft);color:#5F6A84;border-color:var(--line);box-shadow:none;cursor:not-allowed}
.btn.ghost{background:#fff;border-color:var(--ink);color:var(--ink)}
.btn.link{background:transparent;color:var(--ink);min-height:48px;font-weight:700}
.btn .ico{width:20px;height:20px}
.sticky{position:sticky;bottom:0;padding:14px 20px calc(14px + var(--safe-b));background:linear-gradient(rgba(246,247,251,0),var(--bg) 30%);z-index:5}
.sticky>*+*{margin-top:4px}

/* start */
.start .hd{padding-bottom:4px}
.start .hero{display:flex;justify-content:center;padding:14px 0 0}
.start .hero img{width:min(260px,70%);height:auto}
.pills{display:flex;justify-content:center;gap:6px;margin-top:16px}
.pills i{display:block;width:34px;height:8px;border-radius:99px;background:var(--c)}
.start h1{font-size:32px;line-height:1.12;font-weight:800;letter-spacing:-.02em;text-align:center}
.start .lead{text-align:center;color:var(--muted);margin-top:10px;max-width:30ch;margin-left:auto;margin-right:auto}
.field label{display:block;font-weight:700;font-size:14px;color:var(--muted);margin-bottom:8px}
.field .hint{margin-top:8px;font-size:14px;color:var(--cd,#5237D9);font-weight:700;min-height:20px}
.field .hint.err{color:var(--red-d)}
.hintline{text-align:center;font-size:14px;color:var(--muted);margin-top:8px!important}
.pick{position:relative;display:flex;align-items:center;gap:12px;min-height:58px;padding:8px 16px;border-radius:18px;border:2px solid var(--line);background:#fff;color:var(--ink)}
.pick .pv{flex:1;min-width:0;font-weight:700;font-size:17px;line-height:1.25}
.pick .ico{color:#5237D9}
.pick:focus-within{border-color:#6A4CF5;outline:3px solid #6A4CF5;outline-offset:2px}
.pin{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0;margin:0;font-size:16px;-webkit-appearance:none;appearance:none;background:transparent}
.pin::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;cursor:pointer}
.points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.points li{display:flex;align-items:center;gap:12px;font-size:15px;color:var(--ink);font-weight:600;background:var(--ct);border-radius:18px;padding:10px 14px;min-height:56px}
.points .pi{width:36px;height:36px;border-radius:50%;background:var(--cf);color:var(--cx);display:grid;place-items:center;flex:none}
.points .pi .ico{width:19px;height:19px}
.start .body{display:flex;flex-direction:column}
.start .body>*+*{margin-top:20px}
.start .body>.cta{margin-top:auto;padding-top:8px}
.start .body>.cta>*+*{margin-top:12px}
.start .hintline{margin:0!important}
@media(max-height:760px){.points{display:none}}

/* plan: ciemna karta */
.hero-card{position:relative;margin:4px 16px 0;padding:18px 20px 20px;border-radius:30px;background:var(--night);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;overflow:hidden}
.hero-card .l{min-width:0}
.hero-card .chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.12);font-size:14px;font-weight:600;color:#fff}
.hero-card .chip .ico{width:18px;height:18px;color:#FFD27A}
.count{margin-top:14px}
.count b{display:block;font-size:72px;line-height:.95;font-weight:800;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.count span{display:block;margin-top:6px;font-size:17px;font-weight:600;color:#DCE3F5}
.ringw{position:relative;width:116px;height:116px;flex:none}
.ring{width:100%;height:100%;overflow:visible}
.ring circle{fill:none;stroke-width:11}
.ring .trk{stroke:rgba(255,255,255,.13)}
.ring .arc{stroke:transparent;stroke-dasharray:26 100;stroke-dashoffset:0}
.ring .arc.on{stroke:var(--cl)}
.ring.all .arc{stroke-dasharray:33.4 100}
.ringc{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.ringc b{font-size:30px;font-weight:800;font-variant-numeric:tabular-nums}
.ringc small{font-size:12px;font-weight:600;color:#DCE3F5;margin-top:4px}
.ringc .ico{width:38px;height:38px;stroke-width:3;color:#fff}
.burst{position:absolute;inset:0;pointer-events:none}
.burst i{position:absolute;left:50%;top:50%;width:4px;height:12px;margin:-6px 0 0 -2px;border-radius:3px;background:var(--cl);opacity:0}

.secthead{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.secthead h2{font-size:20px;font-weight:800;line-height:1.25}
.secthead small{font-size:14px;color:var(--muted);white-space:nowrap;font-weight:600}
.tasks{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.task{display:flex;align-items:center;padding:0 4px 0 6px;border-radius:24px;background:var(--ct);box-shadow:0 10px 22px -14px rgba(var(--cs),.8)}
.chk{width:52px;height:72px;border:0;background:transparent;display:grid;place-items:center;flex:none;padding:0}
.box{position:relative;width:30px;height:30px;border:2.5px solid var(--cd);border-radius:50%;background:#fff;display:block;transition:background .15s}
.box svg{position:absolute;left:-1px;top:-1px;width:30px;height:30px;opacity:0;transform:scale(.6);transition:opacity .15s,transform .15s;overflow:visible}
.box svg path{fill:none;stroke:var(--cx);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1}
.chk[aria-pressed="true"] .box{background:var(--cf);border-color:var(--cf)}
.chk[aria-pressed="true"] .box svg{opacity:1;transform:none}
.taskrow{flex:1;display:flex;align-items:center;gap:12px;min-height:80px;padding:10px 8px 10px 0;min-width:0}
.tico{width:44px;height:44px;border-radius:50%;background:var(--cf);color:var(--cx);display:grid;place-items:center;flex:none}
.tico .ico{width:23px;height:23px}
.tt{flex:1;min-width:0}
.tt strong{display:block;font-size:17px;font-weight:800;line-height:1.25}
.tt span{display:block;font-size:14px;color:var(--ink);opacity:1}
.tt span.ok{color:var(--cd);font-weight:700}
.tbar{display:block;height:6px;border-radius:99px;background:rgba(20,33,61,.09);margin-top:8px;overflow:hidden}
.tbar i{display:block;height:100%;width:0;background:var(--c);border-radius:99px;transition:width .5s}
.task.done .tbar i{width:100%}
.chev{color:var(--ink);width:20px;height:20px;opacity:.7}
.cfoot{margin-top:14px}
.cfoot p{font-size:15px;font-weight:700;color:var(--muted);display:flex;align-items:center;gap:8px}
.cfoot p.ok{color:var(--ok-d)}.cfoot p .ico{width:18px;height:18px;stroke-width:2.6}
.meter{height:8px;border-radius:99px;background:var(--soft);overflow:hidden;margin-top:10px}
.meter i{display:block;height:100%;background:var(--ok);border-radius:99px;transition:width .25s}

.card{background:var(--card);border-radius:24px;box-shadow:0 10px 26px -18px rgba(20,33,61,.5)}
.streak{display:flex;flex-direction:column;gap:14px;padding:18px 16px;background:var(--flame-t)}
.streak-top{display:flex;align-items:center;gap:12px}
.flame{width:46px;height:46px;border-radius:50%;background:var(--flame);display:grid;place-items:center;color:#fff}
.flame .ico{width:25px;height:25px}
.streak-top strong{display:block;font-size:19px;font-weight:800}
.streak-top span{font-size:14px;color:var(--ink)}
.days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
.days div{font-size:12px;color:var(--flame-d);font-weight:700}
.days span{display:block}
.dot{position:relative;margin:6px auto 0;width:32px;height:32px;border-radius:50%;border:2px dashed #E0A06A;background:#fff}
.dot.on{border:2px solid var(--flame);background:var(--flame)}
.dot.on svg{position:absolute;left:2px;top:1px;width:24px;height:24px;overflow:visible}
.dot.on svg path{fill:none;stroke:#fff;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1}
.prog{padding:20px 16px 18px}
.prog h2{font-size:20px;font-weight:800;margin-bottom:4px}
.prow{margin-top:18px}
.prow .lbl{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:15px;font-weight:700}
.prow .lbl span{display:flex;align-items:center;gap:8px}
.prow .lbl span:before{content:"";width:10px;height:10px;border-radius:50%;background:var(--c);flex:none}
.prow .lbl em{font-style:normal;font-weight:800;color:var(--cd)}
.prow.low .lbl em{color:var(--red-d)}
.bar{position:relative;height:12px;border-radius:99px;background:var(--ct);margin-top:8px}
.bar>i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:var(--c)}
.bar>u{position:absolute;left:50%;top:-4px;bottom:-4px;width:0;border-left:2.5px dashed var(--ink);text-decoration:none;margin-left:-1px}
.note{font-size:13px;color:var(--muted);line-height:1.4;margin-top:18px}
.note.lg{font-size:14px}
.thrkey{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--ink);margin-top:14px}
.thrkey i{display:block;width:0;height:14px;border-left:2.5px dashed var(--ink)}

/* ćwiczenia */
.tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tile{display:flex;flex-direction:column;justify-content:space-between;gap:14px;min-height:150px;height:100%;padding:16px;border-radius:26px;background:var(--cf);color:var(--cx);box-shadow:0 14px 26px -14px rgba(var(--cs),.85);position:relative}
.tile .tico{background:rgba(255,255,255,.24);color:inherit;width:48px;height:48px}
.p-gram .tile .tico{background:rgba(20,33,61,.12)}
.tile strong{display:block;font-size:19px;font-weight:800;line-height:1.2}
.tile span.m{display:block;font-size:14px;font-weight:500;margin-top:4px}
.tile.wide{grid-column:1/-1;min-height:0;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;background:var(--ct);color:var(--ink);box-shadow:none;border:2px dashed var(--c)}
.tile.wide .tico{background:var(--cf);color:var(--cx)}
.badge{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:var(--soft);font-size:12px;font-weight:700;color:var(--muted);flex:none}
.tile .badge{margin-left:auto;background:#fff;color:var(--cd)}
.badge.ex{background:var(--ink);color:#fff}

/* pytania */
.steps{display:flex;gap:6px;margin-top:16px}
.steps i{flex:1;height:7px;border-radius:99px;background:currentColor;opacity:.28}
.steps i.on{opacity:1}
.steps i.cur{opacity:.6}
.qmeta{font-size:15px;color:var(--muted);font-weight:600}
.prompt{font-size:25px;line-height:1.3;font-weight:800;letter-spacing:-.01em;margin:6px 0 24px}
.prompt .gap{display:inline-block;min-width:80px;border-bottom:4px solid var(--c);margin:0 2px;text-align:center;padding:0 4px;color:var(--cd);transform:translateY(-2px)}
.opts{display:flex;flex-direction:column;gap:10px;list-style:none;padding:0;margin:0}
.opt{display:flex;align-items:center;gap:14px;width:100%;min-height:60px;padding:8px 16px 8px 12px;text-align:left;border-radius:20px;border:2px solid var(--line);background:#fff;font-weight:700;font-size:17px;box-shadow:0 4px 0 -1px var(--line)}
.opt .let{width:34px;height:34px;border-radius:50%;background:var(--ct);display:grid;place-items:center;font-size:14px;font-weight:800;color:var(--cd);flex:none}
.opt .tx{flex:1}
.opt .mk{width:24px;height:24px;display:none;stroke-width:3}
.opt:not(:disabled):active{border-color:var(--c);transform:translateY(2px);box-shadow:none}
.opt.right{border-color:var(--ok);background:var(--ok-t);box-shadow:0 4px 0 -1px #B8DEC8}
.opt.right .let{background:var(--ok-d);color:#fff}
.opt.right .mk{display:block;color:var(--ok-d)}
.opt.wrong{border-color:var(--red);background:var(--red-t);box-shadow:0 4px 0 -1px #F4BFC7}
.opt.wrong .let{background:var(--red-d);color:#fff}
.opt.wrong .mk{display:block;color:var(--red-d)}
.opt:disabled{cursor:default}
.opt.dim{color:#4E5972;background:#FAFBFD;box-shadow:none}
.mk path{stroke-dasharray:1}
.fb{scroll-margin-bottom:130px;border-radius:20px;padding:14px 16px;border:2px solid var(--line);background:#fff;animation:enter .2s ease-out both}
.fb strong{display:flex;align-items:center;gap:8px;font-size:17px}
.fb p{margin-top:6px;font-size:15px;color:#2B3652}
.fb.good{border-color:#B8DEC8;background:var(--ok-t)}.fb.good strong{color:var(--ok-d)}
.fb.bad{border-color:#F4BFC7;background:var(--red-t)}.fb.bad strong{color:var(--red-d)}
.fb .ico{width:22px;height:22px;stroke-width:2.6}
.result{text-align:center;padding:24px 20px 22px;background:var(--ct);border-radius:30px;box-shadow:0 16px 30px -20px rgba(var(--cs),.9)}
.result .big{font-size:72px;font-weight:800;letter-spacing:-.04em;line-height:1;color:var(--cd)}
.result .big small{font-size:28px;font-weight:700;color:var(--cd);letter-spacing:0;opacity:1}
.result p{margin-top:12px;color:var(--ink);font-weight:600;max-width:30ch;margin-left:auto;margin-right:auto}
.result .stamp{width:64px;height:64px;margin:0 auto 12px;position:relative;border-radius:50%;background:var(--cf);display:grid;place-items:center}
.result .stamp svg{width:34px;height:34px;overflow:visible}
.result .stamp path{fill:none;stroke:var(--cx);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1}
.saved{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--ok-d);font-weight:700;font-size:14px}
.saved .ico{width:18px;height:18px}
.rev h2,.next h2{font-size:20px;font-weight:800;line-height:1.25;margin-bottom:10px}
.rlist{list-style:none;margin:0;padding:4px 16px}
.rrow{display:flex;align-items:center;gap:12px;padding:12px 0;min-height:56px}
.rrow+.rrow{border-top:1px solid var(--soft)}
.rrow .tag{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#fff}
.rrow .tag .ico{width:16px;height:16px;stroke-width:2.8}
.rrow.g .tag{background:var(--ok-d)}.rrow.r .tag{background:var(--red-d)}
.rt{flex:1;min-width:0}
.rt strong{display:block;font-size:15px;font-weight:700;line-height:1.3}
.rt span{display:block;font-size:14px;color:var(--muted);margin-top:1px}
.rlink{flex:none;min-height:44px;max-width:44%;padding:0 12px;border:0;border-radius:999px;background:var(--red-t);color:var(--red-d);font-weight:700;font-size:14px;text-align:center}
.nrow{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:76px;background:var(--ct);box-shadow:0 10px 22px -14px rgba(var(--cs),.8)}

/* słuchanie */
.player{background:var(--night);color:#fff;border-radius:28px;padding:20px 20px 18px;position:relative;overflow:hidden}
.player .scene{display:flex;align-items:center;gap:8px;font-size:14px;color:#DCE3F5;font-weight:600}
.player .scene .ico{width:18px;height:18px;color:var(--cl)}
.wave{display:flex;align-items:center;justify-content:space-between;gap:3px;height:72px;margin:14px 0 4px}
.wave i{display:block;flex:1;max-width:6px;border-radius:99px;background:#fff;opacity:.28;height:calc(var(--h)*1%);transition:opacity .2s}
.wave i.on{opacity:1;background:var(--cl)}
.wave i:nth-child(3n).on{background:#FF8FAE}
.track{position:relative;height:44px;display:flex;align-items:center;cursor:pointer;touch-action:none;border-radius:12px}
.track .rail{display:block;position:relative;width:100%;height:5px;border-radius:99px;background:rgba(255,255,255,.22)}
.track .fill{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:var(--cl)}
.track .knob{position:absolute;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px var(--night)}
.track:focus-visible{outline:3px solid #fff;outline-offset:0}
.times{display:flex;justify-content:space-between;font-size:13px;color:#DCE3F5;font-weight:600;margin-top:-6px}
.ctrls{display:flex;align-items:center;justify-content:center;gap:28px;margin-top:10px}
.cbtn{width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;display:grid;place-items:center;font-weight:700;font-size:14px}
.cbtn:disabled{opacity:.4;cursor:default}
.cbtn .ico{width:22px;height:22px;fill:currentColor}
.pbtn{width:70px;height:70px;border-radius:50%;border:0;padding:0;background:var(--cl);color:var(--night);display:grid;place-items:center;flex:none;box-shadow:0 10px 24px -8px rgba(156,134,255,.8)}
.pbtn svg{width:26px;height:26px;fill:var(--night)}
.pbtn .ico{fill:none;stroke:var(--night)}
.pbtn:active{transform:scale(.96)}
.pnote{display:flex;gap:8px;align-items:flex-start;margin-top:12px;font-size:13px;line-height:1.4;color:#DCE3F5}
.pnote .ico{width:16px;height:16px;margin-top:1px;color:#F0C46A}
.trbtn{margin-top:4px;background:transparent;border:0;color:#fff;font-weight:700;font-size:14px;min-height:44px;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#6F7DA3;width:100%}
.cbtn:focus-visible,.pbtn:focus-visible,.trbtn:focus-visible{outline-color:#fff}
.dlg{padding:6px 16px;margin-top:12px}
.dlg p{padding:10px 0;font-size:15px;line-height:1.45}
.dlg p+p{border-top:1px solid var(--soft)}
.dlg b{display:block;font-size:12px;color:var(--cd);font-weight:800;margin-bottom:2px}
.qblock{padding:18px 16px}
.qblock+.qblock{margin-top:14px}
.qblock h3{font-size:17px;font-weight:800;line-height:1.35;margin-bottom:12px}
.qblock .qn{display:inline-block;font-size:12px;color:var(--cd);background:var(--ct);border-radius:99px;padding:2px 10px;font-weight:800;margin-bottom:8px}
.qblock .opts{gap:8px}
.qblock .opt{min-height:54px;font-size:16px}
.qblock .fb{margin-top:10px}
.tf{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tf .opt{justify-content:center;gap:8px}
.tf .opt .let{display:none}
.tf .opt .tx{flex:none}

/* czytanie */
.paper{position:relative;padding:20px 18px 18px;background:#fff;border-radius:24px;border:2px solid var(--ct);box-shadow:0 10px 26px -18px rgba(var(--cs),.9)}
.paper h3{font-size:19px;font-weight:800;margin-bottom:8px;display:inline-block;background:var(--ct);color:var(--cd);padding:2px 12px;border-radius:99px;font-size:15px}
.paper p{font-size:16px;line-height:26px}

/* pisanie */
.task-box{padding:16px;display:block;background:var(--ct)}
.task-box small{display:block;font-size:13px;font-weight:800;color:var(--cd);margin-bottom:6px}
.task-box p{font-size:16px;line-height:1.5}
.ta{width:100%;min-height:210px;border-radius:22px;border:2px solid var(--line);background:#fff;padding:16px;font-size:16px;line-height:26px;resize:vertical;font-family:inherit;color:var(--ink)}
.ta:focus{border-color:var(--c);outline:none;box-shadow:0 0 0 4px var(--ct)}
.counter{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;font-size:14px;color:var(--muted)}
.counter b{font-size:19px;font-weight:800;color:var(--muted)}
.counter b.inr{color:var(--ok-d)}.counter b.over{color:var(--red-d)}
.counter button{background:var(--ct);border:0;border-radius:99px;min-height:44px;font-weight:700;font-size:14px;padding:0 14px;color:var(--cd)}
.assess{padding:18px 16px}
.assess .top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.assess h2{font-size:20px;font-weight:800}
.assess .lead{font-size:14px;color:var(--muted);margin-top:6px}
.nt{display:flex;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid var(--soft)}
.nt .tag{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;margin-top:1px}
.nt .tag .ico{width:16px;height:16px;stroke-width:2.8}
.nt.g .tag{background:var(--ok-d);color:#fff}
.nt.r .tag{background:var(--red-d);color:#fff}
.nt b{display:block;font-size:14px;font-weight:800}
.nt.g b{color:var(--ok-d)}.nt.r b{color:var(--red-d)}
.nt p{font-size:15px;line-height:1.45;margin-top:2px;color:#2B3652}
.wcchip{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:14px;padding:10px 12px;border-radius:16px;font-size:14px}
.wcchip b{font-size:15px}.wcchip .ico{width:18px;height:18px;stroke-width:2.6}
.wcchip.ok{background:var(--ok-t);color:var(--ok-d)}.wcchip.bad{background:var(--red-t);color:var(--red-d)}
.nstep{margin-top:16px;padding-top:16px;border-top:1px solid var(--soft)}
.nstep b{display:block;font-size:14px;color:var(--cd);font-weight:800}
.nstep p{font-size:15px;line-height:1.45;margin-top:2px;color:#2B3652}
.inl{display:flex;align-items:center;gap:10px;margin-top:10px;min-height:52px;padding:0 12px;border-radius:16px;background:#FFF2D9;font-weight:700;font-size:14px}
.inl .ico:first-child{color:#8A5300}
.inl span{flex:1;min-width:0}.inl .ico{width:20px;height:20px}.inl .chev{width:18px;height:18px}

/* egzamin próbny */
.exam-card{margin:4px 16px 0;padding:20px;border-radius:30px;background:var(--night);color:#fff}
.exam-card .tline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.exam-card h1{font-size:22px;font-weight:800;letter-spacing:-.01em}
.exam-card .badge.ex{background:rgba(255,255,255,.16)}
.score{display:flex;align-items:baseline;gap:10px;margin-top:14px;flex-wrap:wrap}
.score b{font-size:72px;line-height:.9;font-weight:800;letter-spacing:-.05em}
.score span{font-size:22px;font-weight:600;color:#DCE3F5}
.stack{display:flex;gap:4px;margin-top:18px}
.stack i{display:block;height:14px;border-radius:99px;background:rgba(255,255,255,.14);position:relative;overflow:hidden}
.stack i b{position:absolute;left:0;top:0;bottom:0;background:var(--cl);border-radius:99px}
.status{display:inline-flex;align-items:center;gap:8px;margin-top:16px;min-height:40px;padding:0 14px;border-radius:999px;background:var(--red-t);color:var(--red-d);font-weight:700;font-size:15px}
.status .ico{width:18px;height:18px;stroke-width:2.6}
.parts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.part{position:relative;padding:14px 16px 16px;border-radius:24px;background:#fff;box-shadow:0 10px 22px -16px rgba(var(--cs),.9);border:2px solid transparent}
.part .lbl{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:700}
.part .lbl .tico{width:38px;height:38px}
.part .lbl .tico .ico{width:20px;height:20px}
.part .lbl>span{flex:1;min-width:0;line-height:1.25}
.part .lbl b{font-weight:800;font-size:18px;color:var(--cd);white-space:nowrap}
.part .bar{height:12px;margin-top:12px}
.part.low{background:var(--red-t);border-color:var(--red)}
.part.low .lbl b{color:var(--red-d)}
.part .below{margin-top:10px;font-size:14px;font-weight:800;color:var(--red-d);display:flex;align-items:center;gap:6px}
.part .below .ico{width:18px;height:18px;stroke-width:2.4}
.actions{padding:4px 20px calc(20px + var(--safe-b))}
.actions>*+*{margin-top:4px}

/* profil */
.set{padding:16px}
.set+.set{margin-top:14px}
.set h2{font-size:17px;font-weight:800}
.set p.d{font-size:14px;color:var(--muted);margin-top:4px}
.set .ctl{margin-top:12px}
.sw-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.switch{position:relative;width:58px;height:34px;border-radius:99px;border:0;background:#A9B2C8;flex:none;transition:background .15s;padding:0}
.switch::after{content:"";position:absolute;left:3px;top:3px;width:28px;height:28px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
.switch[aria-checked="true"]{background:var(--ok-d)}
.switch[aria-checked="true"]::after{transform:translateX(24px)}
.kv{display:flex;justify-content:space-between;gap:12px;font-size:16px}
.kv span:last-child{color:var(--muted)}

/* pasek kart */
.tabbar{flex:none;display:flex;gap:4px;background:#fff;border-top:1px solid var(--line);padding:6px 8px calc(6px + var(--safe-b));position:relative;z-index:10}
.tabbar[hidden]{display:none}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:56px;border-radius:18px;color:#59647A;font-size:12px;font-weight:700;padding-top:2px;min-width:0}
.tab .ico{width:25px;height:25px}
.tab[aria-current="page"]{color:var(--red-d);background:var(--red-t)}
.tab span{white-space:nowrap}
@media(max-width:380px){.tab{font-size:11px}.hd{padding-left:16px;padding-right:16px}.body{padding-left:16px;padding-right:16px}.hero-card{padding:16px}.ringw{width:100px;height:100px}.count b{font-size:64px}}

/* ruch: tylko gdy użytkownik go nie ograniczył; stan bazowy = stan końcowy */
.roll{display:inline-block;height:1.3em;overflow:hidden;vertical-align:bottom}
.roll>span{display:block}
.roll i{display:block;font-style:normal;height:1.3em;line-height:1.3em}
.roll.two>span{transform:translateY(-50%)}
.streak-top strong .roll,.streak-top strong .roll span{font-size:inherit;color:inherit;display:block}
.streak-top strong .roll{display:inline-block}
@media (prefers-reduced-motion:no-preference){
  @keyframes drawt{from{stroke-dashoffset:1}}
  @keyframes arcdraw{from{stroke-dashoffset:26}}
  @keyframes arcmerge{from{stroke-dasharray:26 100}}
  @keyframes pop{45%{transform:scale(1.16)}}
  @keyframes fadein{from{opacity:0;transform:translateY(3px)}}
  @keyframes rollup{from{transform:translateY(0)}}
  @keyframes flamep{40%{transform:scale(1.18)}}
  @keyframes shake{20%{transform:translateX(-6px)}45%{transform:translateX(5px)}70%{transform:translateX(-3px)}100%{transform:none}}
  @keyframes spark{0%{opacity:1;transform:rotate(var(--a)) translateY(-54px) scaleY(.4)}100%{opacity:0;transform:rotate(var(--a)) translateY(-86px) scaleY(1)}}
  @keyframes ringpop{40%{transform:scale(1.06)}}
  .chk.fx .box{animation:pop .4s ease-out}
  .chk.fx .box svg{transition:none}
  .chk.fx .box svg path{animation:drawt .38s .08s cubic-bezier(.3,.7,.2,1) backwards}
  .task.fx .tbar i{transition:width .6s .1s cubic-bezier(.3,.7,.2,1)}
  .task.fx .tt span.ok{animation:fadein .3s .3s backwards}
  .ring .arc.fx{animation:arcdraw .6s .1s cubic-bezier(.3,.7,.2,1) backwards}
  .ring.all.fx .arc{animation:arcmerge .5s .9s cubic-bezier(.3,.7,.2,1) backwards}
  .ring.all.fx .arc.fx{animation:arcdraw .6s .1s cubic-bezier(.3,.7,.2,1) backwards,arcmerge .5s .9s cubic-bezier(.3,.7,.2,1) backwards}
  .ringw.fx.all{animation:ringpop .5s 1s}
  .ringw.fx .ringc .ico{animation:pop .5s 1.1s backwards}
  .ringw.fx.all .burst i{animation:spark .7s 1s ease-out backwards}
  .meter i[data-to]{transition:width .6s .2s cubic-bezier(.3,.7,.2,1)}
  .cfoot p.late{animation:fadein .35s 1.15s backwards}
  .streak.fx .roll.two>span{animation:rollup .5s 1.2s cubic-bezier(.3,.7,.2,1) backwards}
  .streak.fx .dot.fx{animation:pop .4s 1.3s backwards}
  .streak.fx .dot.fx svg path{animation:drawt .38s 1.3s cubic-bezier(.3,.7,.2,1) backwards}
  .streak.fx .flame{animation:flamep .5s 1.5s}
  .result .stamp{animation:pop .5s .1s backwards}
  .result .stamp path{animation:drawt .55s .2s cubic-bezier(.3,.7,.2,1) backwards}
  .opt.right .mk path{animation:drawt .35s backwards}
  .opt.wrong{animation:shake .38s}
}

.tiles li.wide{grid-column:1/-1}
.tiles li>a.tile{display:flex}
.tile .tt strong{font-size:17px}
.tile.wide .tt span{font-size:14px}
.parts .tico{background:var(--cf)}
.exam-card .stack i b{background:var(--cl)}
.part .lbl>span.tico{flex:none}
.hero-card .chip{white-space:nowrap;padding:0 12px;font-size:13px}
.hero-card .l{flex:1}
.ringw{width:104px;height:104px}

.seg button{white-space:nowrap}
.seg.big button{padding:0 4px;font-size:14px;min-width:0}
.hd.tone+.body{padding-top:22px}
.ring .arc{stroke:var(--cl);opacity:.3}
.ring .arc.on{opacity:1}
.ring.all .arc{opacity:1}
.set{box-shadow:inset 0 5px 0 var(--c),0 10px 26px -18px rgba(20,33,61,.5);padding-top:20px}
