:root {
  --bg1: #ffe9a8; --bg2: #ffd0b0; --bg3: #fff6d8;
  --paper: #ffffff; --ink: #2b2d5b; --muted: #6f7396; --line: #e7e3f5; --soft: #fff3c9;
  --accent: #ff7a1a; --accent-dark: #c9540a; --accent-ink: #fff;
  --ok: #27b35a; --ok-dark: #17803d; --blue: #2f8cff; --blue-dark: #1b62c4;
  --sun: #ffb703; --sun-dark: #c98a00; --pink: #ff5d9e; --violet: #8b5cf6;
  --shadow: 0 10px 30px rgba(43, 45, 91, .12);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, var(--bg3) 0, transparent 38%),
    radial-gradient(circle at 92% 18%, var(--bg2) 0, transparent 42%),
    radial-gradient(circle at 70% 95%, var(--bg3) 0, transparent 45%),
    var(--bg1);
  background-attachment: fixed;
  font-family: ui-rounded, "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 20px; line-height: 1.4;
}
main { max-width: 1120px; margin: 0 auto; padding: 20px 20px 90px; }
small, .heard, .note, .modal > div, #costBar, .history small, table { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }

/* záhlaví */
header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.crumbs { flex-basis: 100%; font-size: 16px; font-weight: 700; color: var(--muted); margin-bottom: -6px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.crumbs a { text-decoration: none; background: rgba(255, 255, 255, .6); padding: 4px 10px; border-radius: 999px; display: inline-block; }
.crumbs a:hover { background: #fff; }
.crumbs span { opacity: .5; margin: 0 2px; }
header h1 { font-size: 34px; font-weight: 900; margin: 0; flex: 1; min-width: 260px; letter-spacing: -.5px; }
header .logo { font-size: 54px; line-height: 1; animation: wobble 4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg) scale(1.08); } }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.ghost { background: rgba(255, 255, 255, .75); border: 2px solid rgba(43, 45, 91, .12); border-radius: 16px;
  padding: 10px 16px; font-size: 17px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ghost:hover { background: #fff; border-color: var(--ink); }

.screen { display: none; }
.screen.on { display: block; animation: pop .35s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* kroky nastavení */
.step { background: var(--paper); border-radius: 30px; padding: 22px 24px 26px; margin-bottom: 20px; box-shadow: var(--shadow); }
h2 { font-size: 28px; font-weight: 900; margin: 0 0 16px; display: flex; align-items: center; }
h2 .num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff; font-size: 26px; margin-right: 14px; box-shadow: 0 4px 0 var(--accent-dark); }
.step:nth-of-type(2) h2 .num { background: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); }
.step:nth-of-type(3) h2 .num { background: var(--ok); box-shadow: 0 4px 0 var(--ok-dark); }
.step:nth-of-type(4) h2 .num { background: var(--violet); box-shadow: 0 4px 0 #6238d6; }

/* volby */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip, .tile { border: 3px solid transparent; border-radius: 22px; font-weight: 800; transition: transform .12s, box-shadow .12s;
  box-shadow: 0 5px 0 rgba(43, 45, 91, .16); }
.chip { padding: 14px 22px; font-size: 21px; min-height: 60px; }
.chip.big { font-size: 34px; width: 86px; height: 86px; padding: 0; border-radius: 50%; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile { text-align: left; padding: 14px 16px; display: flex; gap: 12px; align-items: center; min-height: 92px; }
.tile .ico { font-size: 40px; line-height: 1; flex: none; }
.tile b { display: block; font-size: 20px; line-height: 1.15; }
.tile small { display: block; color: rgba(43, 45, 91, .7); font-size: 15px; font-weight: 600; margin-top: 3px; }
.tile em { font-style: normal; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 1px 8px; }
.chip:nth-child(6n+1), .tile:nth-child(6n+1) { background: #ffe0e9; }
.chip:nth-child(6n+2), .tile:nth-child(6n+2) { background: #ffe8c2; }
.chip:nth-child(6n+3), .tile:nth-child(6n+3) { background: #fff4b3; }
.chip:nth-child(6n+4), .tile:nth-child(6n+4) { background: #d5f5d0; }
.chip:nth-child(6n+5), .tile:nth-child(6n+5) { background: #cfeaff; }
.chip:nth-child(6n+6), .tile:nth-child(6n+6) { background: #e6dcff; }
.chip:hover, .tile:hover { transform: translateY(-2px); }
.chip:active, .tile:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(43, 45, 91, .16); }
.chip.sel, .tile.sel { border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); transform: scale(1.04); position: relative; }
.chip.sel::after, .tile.sel::after { content: "✓"; position: absolute; top: -12px; right: -10px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 900;
  border: 3px solid #fff; }

input[type=text], input[type=password], input[type=email] { width: 100%; font: inherit; font-size: 26px; font-weight: 700; padding: 18px 22px; border-radius: 22px;
  border: 3px solid var(--line); background: #fbfaff; color: var(--ink); margin-bottom: 16px; }
input:focus { outline: none; border-color: var(--accent); background: #fff; }
input::placeholder { color: #b3b5cc; font-weight: 600; }

.primary { background: linear-gradient(180deg, #ff9a3d, var(--accent)); color: var(--accent-ink); border: none; border-radius: 28px;
  padding: 22px 52px; font-size: 32px; font-weight: 900; box-shadow: 0 8px 0 var(--accent-dark), 0 16px 30px rgba(201, 84, 10, .3);
  transition: transform .1s, box-shadow .1s; }
.primary:hover { transform: translateY(-2px); }
.primary:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--accent-dark); }
.primary:disabled { opacity: .5; cursor: default; }
.primary.small { font-size: 22px; padding: 14px 30px; border-radius: 22px; box-shadow: 0 6px 0 var(--accent-dark); }
.primary.go { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.center { text-align: center; }
.err { color: #d6336c; font-weight: 800; margin-top: 12px; white-space: pre-wrap; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { background: var(--soft); border-radius: 18px; padding: 12px 16px; font-size: 17px; margin-top: 14px; }

.history { margin-top: 30px; }
.history button { display: flex; width: 100%; gap: 14px; align-items: baseline; text-align: left; background: none;
  border: none; border-bottom: 2px solid var(--line); padding: 14px 6px; font-size: 20px; }
.history button:hover { background: var(--soft); border-radius: 14px; }
.history small { color: var(--muted); white-space: nowrap; font-size: 15px; }

/* příprava */
.prep { text-align: center; padding: 30px 20px; }
.prep .big { font-size: 40px; font-weight: 900; margin: 10px 0; }
.prep .mascot { font-size: 96px; line-height: 1; display: inline-block; animation: bounce 1s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.bar { height: 28px; background: #fff; border-radius: 999px; overflow: hidden; max-width: 620px; margin: 20px auto;
  border: 4px solid #fff; box-shadow: var(--shadow); }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .5s;
  background: repeating-linear-gradient(45deg, var(--accent), var(--accent) 16px, var(--sun) 16px, var(--sun) 32px); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin: 26px auto; max-width: 900px; }
.thumb { aspect-ratio: 4/3; border-radius: 20px; background: rgba(255, 255, 255, .6); border: 4px dashed #fff;
  display: grid; place-items: center; font-size: 36px; overflow: hidden; }
.thumb.sq { aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.done { border-style: solid; box-shadow: var(--shadow); animation: pop .4s ease-out; }
.spin { animation: spin 1.6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* průběh */
.stage { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 26px; align-items: start; }
@media (max-width: 860px) { .stage { grid-template-columns: 1fr; } }
.pic { aspect-ratio: 4/3; background: #fff; border-radius: 32px; overflow: hidden; border: 8px solid #fff;
  box-shadow: var(--shadow); display: grid; place-items: center; font-size: 90px; }
.pic.sq { aspect-ratio: 1; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; animation: pop .4s ease-out; }
.pic span { font-size: 44px; font-weight: 900; padding: 20px; text-align: center; }
.dots { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 4px; }
.dots i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .8); border: 3px solid #fff; }
.dots i.done { background: var(--ok); }
.dots i.help { background: var(--sun); }
.dots i.cur { background: var(--accent); transform: scale(1.3); animation: pulse 1.2s ease-in-out infinite; }
.panel { background: var(--paper); border-radius: 30px; padding: 20px; box-shadow: var(--shadow); }
.counter { font-size: 34px; font-weight: 900; }
.status { font-size: 26px; font-weight: 900; min-height: 60px; margin: 10px 0; padding: 12px 18px; border-radius: 20px;
  background: #f1f0fa; display: flex; align-items: center; }
.status:empty { display: none; }
/* Barvy mluví/poslouchá/přemýšlí nese jen velký ukazatel s paní učitelkou; tady je jen pokyn. */
.status.done { background: #ffe0e9; color: #c2255c; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(39, 179, 90, .5); } 50% { box-shadow: 0 0 0 12px rgba(39, 179, 90, 0); } }
.meter { height: 18px; background: #f1f0fa; border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #7ddc8f, var(--ok)); }
.heard { color: var(--muted); font-size: 17px; min-height: 28px; margin-top: 8px; }
.cmds { display: grid; gap: 14px; margin-top: 16px; }
.cmd { display: flex; align-items: center; gap: 16px; text-align: left; border: none; border-radius: 26px; padding: 16px 20px;
  min-height: 96px; font-size: 28px; font-weight: 900; color: #fff; background: var(--blue); box-shadow: 0 7px 0 var(--blue-dark);
  transition: transform .1s, box-shadow .1s; }
.cmd .ico { font-size: 48px; line-height: 1; flex: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); }
.cmd small { font-weight: 700; font-size: 15px; opacity: .92; display: block; line-height: 1.2; margin-top: 2px; }
.cmd:hover { transform: translateY(-2px); }
.cmd:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--blue-dark); }
.cmd.sun { background: var(--sun); box-shadow: 0 7px 0 var(--sun-dark); color: #3b2a00; }
.cmd.sun:active { box-shadow: 0 1px 0 var(--sun-dark); }
.cmd.next { background: var(--ok); box-shadow: 0 7px 0 var(--ok-dark); }
.cmd.next:active { box-shadow: 0 1px 0 var(--ok-dark); }
.cmds .ghost { font-size: 19px; padding: 14px; border-radius: 20px; }

/* velký ukazatel: paní učitelka mluví (modrá) / poslouchá (zelená, bliká) / přemýšlí (žlutá) / spí (šedá) */
.micbox { --c: #2f8cff; --cd: #1b5fbf; --bg: #dcebff; display: flex; align-items: center; gap: 22px; margin: 10px 0;
  border-radius: 30px; padding: 12px 14px 12px 12px; background: var(--bg); color: var(--cd); border: 4px solid var(--c);
  transition: background .2s, border-color .2s, color .2s; }
.micbox.speak { --c: #2f8cff; --cd: #1b5fbf; --bg: #dcebff; }
.micbox.listen { --c: #1fb855; --cd: #137a39; --bg: #d2f7dc; animation: boxblink 1.1s ease-in-out infinite; }
.micbox.think { --c: #ffb000; --cd: #9a6400; --bg: #fff2bf; }
.micbox.sleep { --c: #aeacbd; --cd: #6d6a80; --bg: #ecebf1; }
.micbox.pause { --c: #a9c2e6; --cd: #5d7aa3; --bg: #eaf1fa; }
.micbox.quiet { --c: #b9a7f5; --cd: #6a52c9; --bg: #f1ecff; }
.micbox.off { --c: #e64980; --cd: #a61e4d; --bg: #ffe3ec; }
.micbig { position: relative; width: 132px; height: 132px; flex: none; border-radius: 50%; padding: 0; background: #fff;
  border: 6px solid var(--c); box-shadow: 0 6px 0 var(--cd); transition: transform .08s linear, border-color .2s; }
.micbig .pics { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.micbig .pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .15s; }
.micbox:is(.speak, .pause, .quiet, .off) .pics .p-speak, .micbox.listen .pics .p-listen,
.micbox.think .pics .p-think, .micbox.sleep .pics .p-sleep { opacity: 1; }
.sleep .pics, .off .pics { filter: grayscale(1); opacity: .7; }
.micbig .fx { position: absolute; display: none; pointer-events: none; }
/* mluví: bublina u pusy se zvukovými proužky podle hlasu */
.speak .fx.talk { display: flex; align-items: center; gap: 4px; right: -22px; top: 50%; height: 44px; padding: 0 10px;
  background: #fff; border: 4px solid var(--c); border-radius: 22px; transform: translateY(-50%); }
.fx.talk i { width: 7px; height: 26px; border-radius: 4px; background: var(--c); transform: scaleY(.2); }
/* poslouchá: ucho s mikrofonem bliká */
.listen .fx.ear { display: block; right: -18px; top: -12px; font-size: 30px; line-height: 1; padding: 6px 7px; background: #fff;
  border: 4px solid var(--c); border-radius: 22px; animation: earblink .55s ease-in-out infinite alternate; }
/* přemýšlí: bublina se skákajícími tečkami */
.think .fx.dots { display: flex; gap: 6px; right: -22px; top: -14px; padding: 10px 12px; background: #fff;
  border: 4px solid var(--c); border-radius: 24px; }
.fx.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); animation: dotjump 1s ease-in-out infinite; }
.fx.dots i:nth-child(2) { animation-delay: .15s; } .fx.dots i:nth-child(3) { animation-delay: .3s; }
/* spí: Zzz */
.sleep .fx.zzz { display: block; right: -6px; top: -16px; font-weight: 900; color: var(--cd); }
.fx.zzz i { position: absolute; font-style: normal; opacity: 0; animation: zfloat 2.4s ease-in infinite; }
.fx.zzz i:nth-child(1) { font-size: 18px; } .fx.zzz i:nth-child(2) { font-size: 24px; animation-delay: .8s; }
.fx.zzz i:nth-child(3) { font-size: 32px; animation-delay: 1.6s; }
/* mikrofon vypnutý: přeškrtnuto */
.off .fx.slash { display: block; left: 8%; top: 46%; width: 84%; height: 9px; background: var(--c); border-radius: 5px; transform: rotate(-45deg); }
.mictxt { flex: 1; min-width: 0; }
.mictxt b { display: block; font-size: 27px; font-weight: 900; line-height: 1.1; }
.mictxt small { display: block; font-size: 16px; font-weight: 700; opacity: .85; margin-top: 3px; }
.mictxt .chip { display: inline-block; margin-top: 8px; padding: 5px 14px; border-radius: 999px; background: #1fb855; color: #fff;
  font-size: 16px; font-weight: 800; animation: chipblink .8s ease-in-out infinite alternate; }
@keyframes boxblink { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 184, 85, .55); } 50% { box-shadow: 0 0 0 12px rgba(31, 184, 85, 0); background: #bff2cd; } }
@keyframes earblink { from { transform: scale(.9); opacity: .65; } to { transform: scale(1.12); opacity: 1; } }
@keyframes dotjump { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }
@keyframes zfloat { 0% { opacity: 0; transform: translate(0, 10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -26px); } }
@keyframes chipblink { from { opacity: .7; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .micbox, .micbox * { animation-duration: 2.5s !important; } }

/* list k vyhodnocení */
.sheet { background: var(--paper); border-radius: 30px; padding: 28px 32px; box-shadow: var(--shadow); }
.sheet h2 { font-size: 32px; margin-bottom: 4px; }
.sheet .meta { color: var(--muted); margin-bottom: 18px; font-size: 17px; }
.line { display: flex; gap: 18px; align-items: center; padding: 14px 0; border-top: 2px solid var(--line); }
.line .n { font-weight: 900; color: #fff; background: var(--accent); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex: none; }
.line .t { flex: 1; font-size: 30px; font-family: Georgia, "Times New Roman", serif; }
.line img { width: 140px; border-radius: 14px; }

/* cena */
#costBar { position: fixed; left: 12px; bottom: 10px; background: rgba(255, 255, 255, .9); border-radius: 999px;
  padding: 5px 14px; font-size: 13px; color: var(--muted); box-shadow: 0 2px 8px rgba(43, 45, 91, .12); }

/* okna Modely a Přehled (pro rodiče) */
.modal { position: fixed; inset: 0; background: rgba(43, 45, 91, .5); display: grid; place-items: center; padding: 20px; z-index: 10; }
.modal > div { background: var(--paper); border-radius: 26px; padding: 24px 28px; width: min(840px, 100%); max-height: 90vh;
  overflow: auto; font-size: 17px; animation: pop .25s ease-out; }
.modal h2 { margin: 0 0 6px; font-size: 26px; }
.modal h2 span { flex: 1; }
.modal h3 { margin: 20px 0 8px; font-size: 19px; }
.opt { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: #f7f6fd;
  border: 3px solid transparent; border-radius: 16px; padding: 12px 16px; margin-bottom: 8px; }
.opt.sel { border-color: var(--accent); background: var(--soft); }
.opt b { display: block; }
.opt .d { flex: 1; }
.opt small { color: var(--muted); }
.opt .p { text-align: right; white-space: nowrap; font-weight: 800; }
.opt .p small { display: block; font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.kpi { background: #f7f6fd; border-radius: 16px; padding: 12px 16px; }
.kpi b { display: block; font-size: 24px; }
.kpi small { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }
.bye { display: grid; place-items: center; height: 100vh; font-size: 34px; font-weight: 900; text-align: center; padding: 20px; }

/* konfety */
.confetti { position: fixed; top: -60px; font-size: 34px; pointer-events: none; z-index: 20; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(115vh) rotate(540deg); opacity: .9; } }

/* ---------- rozcestník ---------- */
.hello { font-size: 30px; font-weight: 900; margin: 0 0 6px; }
.hello-sub { color: var(--muted); margin: 0 0 22px; font-size: 19px; }
.subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.subject { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; border-radius: 32px;
  padding: 24px 24px 22px; min-height: 210px; box-shadow: 0 8px 0 rgba(43, 45, 91, .16), var(--shadow); position: relative; overflow: hidden;
  transition: transform .12s, box-shadow .12s; border: none; text-align: left; }
.subject:hover { transform: translateY(-3px) rotate(-.5deg); }
.subject:active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(43, 45, 91, .16); }
.subject .big { font-size: 76px; line-height: 1; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .08)); }
.subject b { font-size: 32px; font-weight: 900; line-height: 1.1; margin-top: 8px; }
.subject small { font-size: 17px; font-weight: 700; color: rgba(43, 45, 91, .72); }
.subject .deco { position: absolute; right: -14px; bottom: -22px; font-size: 120px; opacity: .14; transform: rotate(-14deg); pointer-events: none; }
.subject.cs { background: linear-gradient(160deg, #fff4b3, #ffd36b); }
.subject.en { background: linear-gradient(160deg, #ffe0f0, #ff9fcb); }
.subject.ma { background: linear-gradient(160deg, #d5f5d0, #7ddc8f); }
.subject.st { background: linear-gradient(160deg, #e6dcff, #b9a3ff); }
.subject.soon { opacity: .55; pointer-events: none; }
.subject .badge { position: absolute; top: 16px; right: 16px; background: #fff; border-radius: 999px; padding: 3px 12px;
  font-size: 14px; font-weight: 800; font-family: system-ui, -apple-system, sans-serif; }
.today { background: rgba(255, 255, 255, .8); border-radius: 24px; padding: 14px 20px; margin-top: 24px; display: flex;
  gap: 18px; flex-wrap: wrap; align-items: center; font-size: 18px; font-weight: 800; }
.today span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- přihlášení ---------- */
.login { max-width: 640px; margin: 4vh auto 0; text-align: center; }
.login .logo-big { font-size: 90px; line-height: 1; display: inline-block; animation: wobble 4s ease-in-out infinite; }
.login h1 { font-size: 40px; font-weight: 900; margin: 8px 0 4px; }
.kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin: 26px 0; }
.kid { border: 4px solid transparent; border-radius: 32px; padding: 20px 10px 16px; background: #fff; box-shadow: 0 7px 0 rgba(43, 45, 91, .14);
  transition: transform .12s; position: relative; }
.kid .ava { font-size: 80px; line-height: 1; display: block; }
.kid b { font-size: 28px; font-weight: 900; display: block; margin-top: 8px; }
.kid:nth-child(1) { background: #fff4b3; }
.kid:nth-child(2) { background: #ffe0f0; }
.kid:nth-child(3) { background: #cfeaff; }
.kid:hover { transform: translateY(-3px); }
.kid.sel { border-color: var(--ink); transform: scale(1.04); }
.kid.sel::after { content: "✓"; position: absolute; top: -12px; right: -10px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 900; border: 3px solid #fff; }
.card-box { background: var(--paper); border-radius: 30px; padding: 22px 24px; box-shadow: var(--shadow); text-align: left; }
.card-box label { font-weight: 800; display: block; margin-bottom: 8px; }
.linkish { background: none; border: none; color: var(--muted); text-decoration: underline; font-size: 17px; padding: 10px; }
.ok-msg { color: var(--ok-dark); font-weight: 800; margin-top: 12px; }

@media print {
  body { background: #fff; } header, .noprint, #costBar, .confetti { display: none !important; }
  .sheet { box-shadow: none; padding: 0; } .line img { width: 90px; } .line .n { color: #000; background: none; }
}

/* ---------- mobil ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  main { padding: 12px 14px 80px; }
  header { gap: 8px; margin-bottom: 14px; }
  header { flex-wrap: wrap; }
  header h1 { font-size: 22px; min-width: 0; flex: 1; }
  header .logo { font-size: 34px; }
  .tools { gap: 6px; flex-wrap: nowrap; }
  .tools .ghost { padding: 7px 10px; font-size: 15px; border-radius: 14px; white-space: nowrap; }
  .crumbs { font-size: 14px; }
  .step { border-radius: 24px; padding: 16px 16px 18px; margin-bottom: 14px; }
  h2 { font-size: 22px; margin-bottom: 12px; }
  h2 .num { width: 38px; height: 38px; font-size: 20px; margin-right: 10px; }
  .chips { gap: 9px; }
  .chip { padding: 10px 15px; font-size: 17px; min-height: 50px; }
  .chip.big { font-size: 26px; width: 64px; height: 64px; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { min-height: 72px; padding: 10px 14px; }
  .tile .ico { font-size: 32px; }
  .tile b { font-size: 18px; }
  input[type=text], input[type=password], input[type=email] { font-size: 20px; padding: 14px 16px; border-radius: 18px; }
  .primary { font-size: 24px; padding: 16px 30px; border-radius: 22px; width: 100%; }
  .primary.small { width: auto; }
  .prep { padding: 14px 4px; }
  .prep .big { font-size: 28px; }
  .prep .mascot { font-size: 72px; }
  .thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .thumb { border-radius: 14px; font-size: 26px; }
  .stage { gap: 12px; }
  .pic { border-radius: 22px; border-width: 5px; }
  .pic span { font-size: 32px; }
  .dots { margin: 10px 2px; gap: 7px; }
  .dots i { width: 22px; height: 22px; }
  .panel { border-radius: 24px; padding: 14px; }
  .counter { font-size: 24px; }
  .micbox { gap: 14px; padding: 8px 14px 8px 8px; border-radius: 24px; margin: 8px 0; border-width: 3px; }
  .micbig { width: 100px; height: 100px; border-width: 5px; }
  .speak .fx.talk { right: -18px; height: 36px; padding: 0 8px; } .fx.talk i { height: 20px; width: 6px; }
  .listen .fx.ear { font-size: 22px; } .think .fx.dots { padding: 8px 9px; } .fx.dots i { width: 9px; height: 9px; }
  .mictxt b { font-size: 25px; }
  .mictxt small { font-size: 15px; }
  .mictxt .chip { font-size: 14px; padding: 4px 10px; }
  .status { font-size: 19px; min-height: 48px; padding: 8px 14px; }
  .cmds { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cmd { flex-direction: column; justify-content: center; text-align: center; gap: 4px; min-height: 92px; padding: 10px 6px;
    font-size: 16px; border-radius: 20px; }
  .cmd small { display: none; }
  .cmd .ico { font-size: 34px; }
  .cmds .ghost { grid-column: 1 / -1; justify-content: center; font-size: 16px; padding: 10px; }
  .sheet { padding: 18px 16px; border-radius: 24px; }
  .line { gap: 10px; }
  .line .t { font-size: 22px; }
  .line img { width: 84px; }
  #costBar { display: none; }
  .modal { padding: 0; place-items: end stretch; }
  .modal > div { border-radius: 26px 26px 0 0; max-height: 92vh; padding: 18px 16px 28px; width: 100%; }
  .subjects { gap: 14px; }
  .subject { min-height: 0; padding: 16px 18px; border-radius: 24px; display: grid; grid-template-columns: auto 1fr;
    column-gap: 14px; row-gap: 2px; align-items: center; }
  .subject .big { font-size: 48px; grid-row: span 2; }
  .subject b { font-size: 24px; margin-top: 0; align-self: end; }
  .subject small { font-size: 15px; align-self: start; }
  .subject .badge { top: 10px; right: 10px; font-size: 12px; }
  .subject .deco { font-size: 90px; }
  .tile { min-height: 62px; }
  .hello { font-size: 24px; }
  .hello-sub { font-size: 16px; margin-bottom: 16px; }
  .kid .ava { font-size: 62px; }
  .kid b { font-size: 22px; }
  .kids { grid-template-columns: 1fr 1fr; gap: 12px; }
  .login h1 { font-size: 30px; }
  .login .logo-big { font-size: 70px; }
  .lbl { display: none; }
}
@media (max-width: 640px) and (orientation: portrait) {
  .stage .pic:not(.sq) { width: min(100%, 46vh); margin: 0 auto; }
  .stage .pic.sq { width: min(100%, 36vh); margin: 0 auto; }
}
