/* OtestujSe – tmavý, „applovský“ vzhled. Mobil na prvním místě. */
:root {
  --bg: #05060a; --bg-2: #0b0d14; --card: rgba(255,255,255,.045); --card-2: rgba(255,255,255,.075);
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #f5f6fa; --muted: #9aa1b4; --dim: #6b7286;
  --a1: #8b5cf6; --a2: #3b82f6; --a3: #22d3ee;
  --ok: #34d399; --bad: #fb7185; --warn: #fbbf24;
  --grad: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3));
  --radius: 22px; --radius-s: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
[data-accent="blue"]  { --a1: #3b82f6; --a2: #06b6d4; --a3: #34d399; }
[data-accent="green"] { --a1: #10b981; --a2: #22d3ee; --a3: #a3e635; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100dvh; }
h1,h2,h3 { margin: 0; letter-spacing: -.025em; line-height: 1.06; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
::selection { background: rgba(139,92,246,.45); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 14px; } .tiny { font-size: 12.5px; }
.center { text-align: center; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* ---------- tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .82em 1.5em; border-radius: 999px; font-weight: 600;
  transition: transform .2s var(--ease), box-shadow .3s, background .2s, opacity .2s; white-space: nowrap; user-select: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--a1) 80%, transparent); background-size: 160% 100%; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 50px -8px color-mix(in srgb, var(--a2) 85%, transparent); transform: translateY(-1px); }
.btn-ghost { background: var(--card-2); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { font-size: 19px; padding: 1em 1.9em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { color: var(--a3); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- pozadí ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 60vmax; height: 60vmax; left: -20vmax; top: -30vmax; background: var(--a1); }
.aurora i:nth-child(2) { width: 50vmax; height: 50vmax; right: -20vmax; top: 10vmax; background: var(--a2); animation-delay: -8s; opacity: .22; }
.aurora i:nth-child(3) { width: 40vmax; height: 40vmax; left: 20vmax; bottom: -30vmax; background: var(--a3); animation-delay: -14s; opacity: .14; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.15); } }
.app .aurora i { opacity: .16; }

/* ---------- navigace ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(5,6,10,.62); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 20px -6px var(--a1); }
.logo-mark svg { width: 17px; height: 17px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav .btn { padding: .55em 1.1em; font-size: 15px; }

/* ---------- landing ---------- */
.hero { padding: clamp(48px, 9vw, 110px) 0 40px; }
.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.eyebrow b { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero h1 { font-size: clamp(44px, 8.4vw, 92px); font-weight: 800; letter-spacing: -.045em; }
.hero h1 .grad { display: inline-block; background-size: 200% 100%; animation: shine 6s linear infinite alternate; }
@keyframes shine { to { background-position: 100% 0; } }
.hero .lead { font-size: clamp(18px, 2.3vw, 22px); color: var(--muted); margin: 24px 0 34px; max-width: 34em; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin-top: 16px; font-size: 14px; color: var(--dim); }

.phone { position: relative; width: min(390px, 100%); margin-inline: auto; border-radius: 42px; padding: 12px; background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.03));
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line), 0 0 100px -30px var(--a1); transform: perspective(1200px) rotateY(-7deg) rotateX(3deg); transition: transform .8s var(--ease); }
.phone:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.phone-screen { border-radius: 31px; background: #090b12; min-height: 520px; padding: 18px 16px 20px; overflow: hidden; display: flex; flex-direction: column; }
@media (max-width: 939px) { .phone { transform: none; } }
.float-chip { position: absolute; z-index: 2; padding: 9px 14px; border-radius: 16px; background: rgba(16,18,28,.86); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
  font-size: 13.5px; font-weight: 600; box-shadow: 0 20px 40px -12px #000; animation: bob 5s ease-in-out infinite; }
.float-chip.c1 { top: -18px; left: -30px; } .float-chip.c2 { bottom: -16px; right: -24px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-9px); } }
@media (max-width: 520px) { .float-chip.c1 { left: -6px; } .float-chip.c2 { right: -6px; } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 56px 0 0; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg-2); padding: 26px 18px; text-align: center; }
.stat b { display: block; font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.stat span { font-size: 14px; color: var(--muted); }

.section { padding: clamp(70px, 10vw, 130px) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; letter-spacing: -.04em; }
.section-head p { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin-top: 18px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; display: block; }

.chart-card { border-radius: 30px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); padding: clamp(20px, 4vw, 44px); position: relative; overflow: hidden; }
.chart-top { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.big-num { font-size: clamp(64px, 12vw, 130px); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.legend i { display: inline-block; width: 22px; height: 4px; border-radius: 4px; margin-right: 8px; vertical-align: middle; background: var(--dim); }
.legend .l-us i { background: var(--grad); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .ln { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart.on .ln { animation: draw 2.6s var(--ease) forwards; }
.chart.on .ln.them { animation-duration: 2s; }
.chart .area { opacity: 0; transition: opacity 1.4s 1.6s; } .chart.on .area { opacity: 1; }
.chart .dot { opacity: 0; transform-box: fill-box; transform-origin: center; } .chart.on .dot { animation: pop .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.footnote { font-size: 12.5px; color: var(--dim); margin-top: 16px; }

.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(6, 1fr); } .b-3 { grid-column: span 3; } .b-2 { grid-column: span 2; } .b-4 { grid-column: span 4; } }
.tile { position: relative; border-radius: 28px; border: 1px solid var(--line); background: var(--card); padding: 30px; overflow: hidden; min-height: 230px;
  transition: transform .5s var(--ease), border-color .3s, background .3s; }
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--card-2); }
.tile h3 { font-size: 25px; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 16px; max-width: 30em; }
.tile .ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 25px; background: var(--card-2); border: 1px solid var(--line); margin-bottom: 20px; }
.tile .glow { position: absolute; width: 260px; height: 260px; right: -90px; bottom: -110px; border-radius: 50%; background: var(--a1); filter: blur(80px); opacity: .28; }
.tile:nth-child(2n) .glow { background: var(--a3); } .tile:nth-child(3n) .glow { background: var(--a2); }
.mini-bars { display: flex; gap: 6px; align-items: flex-end; height: 58px; margin-top: 22px; }
.mini-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--grad); opacity: .85; transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.story-demo { display: flex; gap: 5px; margin-top: 24px; } .story-demo i { flex: 1; height: 5px; border-radius: 5px; background: rgba(255,255,255,.14); overflow: hidden; position: relative; }
.story-demo i::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: translateX(-100%); animation: fill 6s linear infinite; }
.story-demo i:nth-child(2)::after { animation-delay: 1s; } .story-demo i:nth-child(3)::after { animation-delay: 2s; } .story-demo i:nth-child(4)::after { animation-delay: 3s; } .story-demo i:nth-child(5)::after { animation-delay: 4s; } .story-demo i:nth-child(6)::after { animation-delay: 5s; }
@keyframes fill { 0% { transform: translateX(-100%); } 16.6%, 100% { transform: translateX(0); } }

.steps { display: grid; gap: 16px; counter-reset: s; grid-template-columns: 1fr; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: s; padding: 30px; border-radius: 26px; border: 1px solid var(--line); background: var(--card); }
.step::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); font-weight: 800; font-size: 19px; margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 8px; } .step p { color: var(--muted); font-size: 16px; }

.course-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
.course { border-radius: 28px; border: 1px solid var(--line); background: var(--card); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.course::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.course h3 { font-size: 24px; }
.course .exam-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.course .exam-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--muted); padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.035); }
.course .exam-list li b { color: var(--text); font-weight: 600; white-space: nowrap; }
.pick-exam { cursor: pointer; transition: background .2s, transform .2s var(--ease); text-align: left; width: 100%; }
.pick-exam:hover { background: rgba(255,255,255,.1) !important; transform: translateX(3px); }

.final-cta { text-align: center; padding: clamp(60px, 9vw, 110px) 24px; border-radius: 36px; border: 1px solid var(--line-2); position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--a1) 38%, transparent), transparent 60%), var(--bg-2); }
.final-cta h2 { font-size: clamp(36px, 6.4vw, 72px); font-weight: 800; letter-spacing: -.045em; margin-bottom: 18px; }
.footer { padding: 46px 0 60px; color: var(--dim); font-size: 13.5px; text-align: center; }

.reveal { opacity: 0; transform: translateY(34px) scale(.985); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- modál ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; padding: 18px; animation: fade .25s; overflow-y: auto; }
.modal { width: min(440px, 100%); background: #10121b; border: 1px solid var(--line-2); border-radius: 28px; padding: 30px; box-shadow: 0 40px 120px -20px #000; animation: rise .4s var(--ease); position: relative; }
.modal.wide { width: min(560px, 100%); }
.modal h2 { font-size: 28px; margin-bottom: 6px; }
.modal .x { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--card-2); font-size: 18px; line-height: 1; }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.06); margin: 20px 0; }
.tabs button { padding: 9px; border-radius: 11px; font-weight: 600; font-size: 15px; color: var(--muted); transition: .2s; }
.tabs button.on { background: rgba(255,255,255,.13); color: var(--text); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field input, .field select { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); outline: none; transition: border-color .2s, box-shadow .2s; color-scheme: dark; }
.field input:focus, .field select:focus { border-color: var(--a2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a2) 25%, transparent); }
.form-err { color: var(--bad); font-size: 14.5px; min-height: 22px; margin: 2px 0 10px; }

/* ---------- toast ---------- */
#toast-root { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast { background: #181b27; border: 1px solid var(--line-2); padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; box-shadow: 0 20px 50px -10px #000; animation: rise .35s var(--ease); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 150; }

/* ---------- aplikace: přehled ---------- */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: 16px; margin-bottom: 18px; font-size: 14.5px;
  background: color-mix(in srgb, var(--warn) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.banner span { flex: 1; min-width: 200px; }
.app-main { padding: 22px 0 90px; }
.exam-switch { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 14px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; min-width: 0; }
.exam-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.greet { font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -.035em; margin: 8px 0 4px; }
.dash { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 900px) { .dash { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 22px; }
.card h3 { font-size: 17px; letter-spacing: -.01em; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card h3 small { font-weight: 500; color: var(--dim); font-size: 13px; }
.col { display: grid; gap: 16px; }

.hero-card { padding: 26px; border-radius: 28px; position: relative; overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(130% 120% at 100% 0%, color-mix(in srgb, var(--a1) 34%, transparent), transparent 55%), radial-gradient(90% 90% at 0% 100%, color-mix(in srgb, var(--a3) 16%, transparent), transparent 60%), var(--bg-2); }
.ready { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ring { position: relative; width: 148px; height: 148px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring .bg { stroke: rgba(255,255,255,.09); }
.ring .fg { stroke: url(#rg); transition: stroke-dashoffset 1.6s var(--ease); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .lbl b { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ring .lbl span { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ring.sm { width: 74px; height: 74px; } .ring.sm circle { stroke-width: 9; } .ring.sm .lbl b { font-size: 17px; }
.ready-txt { flex: 1; min-width: 200px; }
.ready-txt h2 { font-size: 24px; margin-bottom: 6px; }
.go { margin-top: 22px; display: grid; gap: 10px; }
.go .btn-primary { font-size: 20px; padding: 1.05em; border-radius: 20px; position: relative; overflow: hidden; }
.go .btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-100%); animation: sweep 3.2s infinite; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.chip b { color: var(--text); }
.chip.hot { color: #fff; background: color-mix(in srgb, var(--warn) 22%, transparent); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }

.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mode { text-align: left; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); transition: transform .3s var(--ease), background .2s, border-color .2s; display: grid; gap: 4px; }
.mode:hover { transform: translateY(-3px); background: var(--card-2); border-color: var(--line-2); }
.mode .e { font-size: 26px; } .mode b { font-size: 16px; } .mode span { font-size: 13.5px; color: var(--muted); }

.today { display: flex; align-items: center; gap: 16px; }
.today .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; text-align: center; }
.today .nums b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; } .today .nums span { font-size: 12.5px; color: var(--muted); }
.heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; }
.heat i { aspect-ratio: 1; border-radius: 5px; background: rgba(255,255,255,.06); }
.heat i[data-l="1"] { background: color-mix(in srgb, var(--a1) 35%, transparent); } .heat i[data-l="2"] { background: color-mix(in srgb, var(--a1) 60%, transparent); }
.heat i[data-l="3"] { background: var(--a1); } .heat i[data-l="4"] { background: var(--a3); } .heat i.today-cell { outline: 2px solid rgba(255,255,255,.5); outline-offset: 1px; }

.topic { display: grid; gap: 7px; padding: 12px 10px; border-radius: 14px; width: 100%; text-align: left; transition: background .2s; }
.topic:hover { background: rgba(255,255,255,.06); }
.topic .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 600; }
.topic .row span:last-child { color: var(--muted); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { height: 7px; border-radius: 7px; background: rgba(255,255,255,.08); overflow: hidden; position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 7px; background: var(--grad); transition: width 1.2s var(--ease); }
.bar i.seen { background: rgba(255,255,255,.16); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; font-size: 14.5px; } .kv span { color: var(--muted); } .kv b { font-variant-numeric: tabular-nums; }

/* ---------- sprint ---------- */
.sprint { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.sprint-top { padding: calc(12px + env(safe-area-inset-top)) 16px 8px; }
.segs { display: flex; gap: 4px; }
.segs i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); transition: background .4s; min-width: 3px; }
.segs i.ok { background: var(--ok); } .segs i.bad { background: var(--bad); } .segs i.cur { background: #fff; }
.sprint-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.sprint-bar .x { width: 38px; height: 38px; border-radius: 50%; background: var(--card-2); font-size: 18px; flex: none; }
.combo { font-weight: 800; font-size: 15px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); opacity: 0; transform: scale(.6); transition: .35s var(--ease); }
.combo.on { opacity: 1; transform: none; } .combo.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3) rotate(-4deg); } }
.xp { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.sprint-body { flex: 1; overflow-y: auto; padding: 10px 16px 140px; -webkit-overflow-scrolling: touch; }
.qcard { width: min(720px, 100%); margin: 0 auto; animation: qin .5s var(--ease); }
.qcard.out { animation: qout .28s ease-in forwards; }
@keyframes qin { from { opacity: 0; transform: translateY(40px) scale(.97); } } @keyframes qout { to { opacity: 0; transform: translateY(-40px) scale(.97); } }
.qmeta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--muted); }
.tag.new { background: color-mix(in srgb, var(--a3) 20%, transparent); color: var(--a3); } .tag.rev { background: color-mix(in srgb, var(--a1) 24%, transparent); color: #c4b5fd; }
.tag.multi { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.qtext { font-size: clamp(20px, 3.4vw, 27px); font-weight: 650; letter-spacing: -.02em; line-height: 1.28; margin-bottom: 22px; white-space: pre-line; }
.casebox { border: 1px solid var(--line); background: var(--card); border-radius: 16px; margin-bottom: 18px; overflow: hidden; }
.casebox summary { padding: 13px 16px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.casebox summary::after { content: "＋"; color: var(--muted); } .casebox[open] summary::after { content: "－"; }
.casebox div { padding: 0 16px 16px; color: #cfd3df; font-size: 15.5px; white-space: pre-line; max-height: 42vh; overflow-y: auto; }
.answers { display: grid; gap: 10px; }
.ans { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card);
  font-size: 16.5px; line-height: 1.4; transition: transform .18s var(--ease), border-color .2s, background .2s; }
.ans:hover { border-color: var(--line-2); background: var(--card-2); } .ans:active { transform: scale(.985); }
.ans .k { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.09); transition: .2s; }
.ans.sel { border-color: var(--a2); background: color-mix(in srgb, var(--a2) 14%, transparent); } .ans.sel .k { background: var(--a2); }
.locked .ans { pointer-events: none; }
.ans.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); animation: okp .5s var(--ease); } .ans.ok .k { background: var(--ok); color: #04130d; }
.ans.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); animation: shake .4s; } .ans.bad .k { background: var(--bad); color: #1a0509; }
.ans.miss { border-color: var(--ok); border-style: dashed; }
.locked .ans:not(.ok):not(.bad):not(.miss) { opacity: .45; }
@keyframes okp { 40% { transform: scale(1.025); } } @keyframes shake { 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }
.explain { margin-top: 16px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line); animation: rise .4s var(--ease); font-size: 15.5px; color: #d5d9e4; }
.explain b.h { display: block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.explain .src { margin-top: 10px; font-size: 13px; color: var(--dim); }
.sprint-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 34%); display: flex; justify-content: center; pointer-events: none; }
.sprint-foot > * { pointer-events: auto; width: min(720px, 100%); }
.sprint-foot .btn { width: 100%; font-size: 18px; padding: 1em; border-radius: 18px; }
.verdict { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verdict .v { font-weight: 800; font-size: 19px; } .verdict .v.ok { color: var(--ok); } .verdict .v.bad { color: var(--bad); }
.verdict .btn { width: auto; flex: 1; max-width: 300px; }
.fly { position: fixed; z-index: 160; font-weight: 800; font-size: 22px; color: var(--ok); pointer-events: none; animation: fly 1s var(--ease) forwards; text-shadow: 0 4px 20px rgba(52,211,153,.6); }
@keyframes fly { to { transform: translateY(-90px); opacity: 0; } }
.kbd-hint { text-align: center; font-size: 12.5px; color: var(--dim); margin-top: 18px; } @media (hover: none) { .kbd-hint { display: none; } }

.done { min-height: 100%; display: grid; place-items: center; text-align: center; padding: 30px 0; }
.done-in { width: min(520px, 100%); animation: rise .6s var(--ease); }
.done .emoji { font-size: 76px; line-height: 1; margin-bottom: 12px; animation: bump .8s var(--ease); }
.done h2 { font-size: clamp(34px, 7vw, 50px); font-weight: 800; letter-spacing: -.04em; }
.done-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0; }
.done-stats div { padding: 18px 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.done-stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; } .done-stats span { font-size: 13px; color: var(--muted); }
.goalbar { text-align: left; margin-bottom: 26px; } .goalbar .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.goalbar .bar { height: 12px; }
.done .btns { display: grid; gap: 10px; }

/* ---------- test nanečisto ---------- */
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; padding: 7px 14px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }
.timer.low { color: var(--bad); border-color: var(--bad); animation: pulse2 1s infinite; } @keyframes pulse2 { 50% { opacity: .55; } }
.qnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin-top: 14px; }
.qnav button { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 13px; font-weight: 600; color: var(--muted); border: 1.5px solid transparent; }
.qnav button.a { background: color-mix(in srgb, var(--a2) 30%, transparent); color: #fff; } .qnav button.f { border-color: var(--warn); } .qnav button.c { border-color: #fff; color: #fff; }
.qnav button.r-ok { background: color-mix(in srgb, var(--ok) 30%, transparent); color: #fff; } .qnav button.r-bad { background: color-mix(in srgb, var(--bad) 30%, transparent); color: #fff; }
.mock-foot { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; }
.mock-foot .btn { width: auto; padding: .9em 1.2em; font-size: 16px; }
.result-hero { text-align: center; padding: 34px 20px; border-radius: 28px; border: 1px solid var(--line-2); background: var(--bg-2); margin-bottom: 16px; }
.result-hero.pass { background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--ok) 28%, transparent), transparent 60%), var(--bg-2); }
.result-hero.fail { background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--bad) 22%, transparent), transparent 60%), var(--bg-2); }
.result-hero .big { font-size: clamp(54px, 12vw, 92px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.parts div { padding: 14px 6px; border-radius: 16px; background: rgba(255,255,255,.05); } .parts b { display: block; font-size: 20px; } .parts span { font-size: 12.5px; color: var(--muted); }
.parts .no b { color: var(--bad); } .parts .yes b { color: var(--ok); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--a3); animation: spin .8s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; } .chart .ln { stroke-dashoffset: 0; } .chart .area, .chart .dot { opacity: 1; }
}
