/* Coach Mia app. Tokens are the same as design/design.html (light + dark). No external hosts. */
@font-face{font-family:"Fredoka";font-weight:500;font-style:normal;font-display:swap;src:url("../fonts/fredoka-500.woff2") format("woff2")}
@font-face{font-family:"Fredoka";font-weight:600;font-style:normal;font-display:swap;src:url("../fonts/fredoka-600.woff2") format("woff2")}
@font-face{font-family:"Nunito";font-weight:400 800;font-style:normal;font-display:swap;src:url("../fonts/nunito-400.woff2") format("woff2")}

:root{
  --bg:#f5ecda; --surface:#fffaf0; --surface-2:#f6ebd5; --line:#e2d3b6;
  --ink:#2e2a26; --ink-2:#6b5a47; --ink-3:#97836b;
  --coral:#e0564a; --coral-edge:#9b3a30; --coral-soft:#fbe0d6;
  --sun:#ffcb38; --sun-edge:#e2a41e; --sun-soft:#ffeec2;
  --leaf:#55a15d; --leaf-edge:#2f6b3a; --good:#3e8a5c; --good-soft:#dcefd6;
  --sky:#93cfd8; --sec-edge:#d8c7a6; --shadow:rgba(70,45,20,.42);
  --display:"Fredoka","Nunito",system-ui,sans-serif;
  --body:"Nunito",system-ui,-apple-system,"PingFang SC",sans-serif;
  --zh:"PingFang SC","Hiragino Sans GB","Noto Sans SC","Microsoft YaHei",sans-serif;
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 1.1 0 0 0 -.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#2a2019; --surface:#3a2e24; --surface-2:#45372b; --line:#5a4838;
  --ink:#f7ecdc; --ink-2:#d2bfa6; --ink-3:#a6927a;
  --coral:#ef6a5d; --coral-edge:#8a3128; --coral-soft:#4b2a24;
  --sun-soft:#54431f; --good:#7fcf95; --good-soft:#1f3a28; --sec-edge:#1b140f; --shadow:rgba(0,0,0,.55);
  color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#2a2019; --surface:#3a2e24; --surface-2:#45372b; --line:#5a4838;
  --ink:#f7ecdc; --ink-2:#d2bfa6; --ink-3:#a6927a;
  --coral:#ef6a5d; --coral-edge:#8a3128; --coral-soft:#4b2a24;
  --sun-soft:#54431f; --good:#7fcf95; --good-soft:#1f3a28; --sec-edge:#1b140f; --shadow:rgba(0,0,0,.55);
  color-scheme:dark}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{background:var(--grain),var(--bg);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.5;margin:0;min-height:100vh;min-height:100dvh;
  padding-left:max(14px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px));
  padding-top:max(12px,env(safe-area-inset-top,0px));padding-bottom:max(20px,env(safe-area-inset-bottom,0px));
  -webkit-tap-highlight-color:transparent}
h1,h2,h3,h4,h5{font-family:var(--display);font-weight:600;margin:0;text-wrap:balance}
p{margin:0}
button,input{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation}
button:disabled{cursor:default}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
[tabindex="-1"]:focus{outline:none}
[hidden]{display:none!important}
.muted{color:var(--ink-2)} .small{font-size:14px}

/* bilingual labels: Chinese first by default, English first when html[data-lang=en] */
.bi{display:inline-flex;flex-direction:column;align-items:inherit;line-height:1.2}
.bi.row{flex-direction:row;gap:6px;align-items:baseline}
.bi>[lang="zh"]{font-family:var(--zh);order:0} .bi>[lang="en"]{font-family:var(--display);order:1}
html[data-lang="en"] .bi>[lang="en"]{order:0} html[data-lang="en"] .bi>[lang="zh"]{order:1}
.bi>*{font-weight:500}
html[data-lang="zh"] .bi>[lang="zh"],html[data-lang="en"] .bi>[lang="en"]{font-weight:700}
html[data-lang="zh"] .bi>[lang="en"],html[data-lang="en"] .bi>[lang="zh"]{font-size:.8em;color:var(--ink-2)}
.bi.row>*{font-size:inherit!important}
html[data-lang="zh"] .bi.row>[lang="en"],html[data-lang="en"] .bi.row>[lang="zh"]{font-size:.85em!important;font-weight:500}
.big .bi,.coral .bi,.sendb .bi,.endb .bi{color:inherit}
.coral .bi>*,.coral .bi>*{color:#fffaf0!important}

/* screens */
.screen{display:flex;flex-direction:column;gap:12px;width:100%;max-width:520px;margin:0 auto;min-height:calc(100vh - 34px);min-height:calc(100dvh - 34px)}
.screen[hidden]{display:none!important}
.screen.center{align-items:center;text-align:center}
.toprow{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%}
.langrow{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.ai-badge{display:inline-grid;place-items:center;min-width:36px;height:28px;padding:0 9px;border-radius:999px;background:var(--surface);color:var(--ink);font:600 13px var(--display);border:2px dashed var(--sun-edge);box-shadow:0 2px 0 var(--sec-edge);flex:none}
.hero{display:flex;justify-content:center;width:100%}.hero svg{width:60%;max-width:300px;height:auto}
.mini svg{width:46px;height:46px;display:block}

/* seg toggle + help */
.seg{display:inline-flex;background:var(--surface-2);border-radius:999px;padding:4px;gap:4px}
.segb{border:0;background:transparent;border-radius:999px;padding:6px 14px;min-height:44px;font-weight:700;font-size:14.5px;color:var(--ink)}
.segb[aria-pressed="true"]{background:var(--surface);box-shadow:0 2px 0 var(--sec-edge)}
.segb[lang="zh"]{font-family:var(--zh)}
.seg.two .segb{display:flex;flex-direction:column;align-items:center;line-height:1.15;font-family:var(--zh)}
.seg.two .segb em{font:600 11px var(--display);font-style:normal;color:var(--ink-2)}
.help{border:0;border-radius:999px;padding:8px 16px;min-height:48px;background:var(--sky);color:#2e2a26;font:700 15px var(--zh);box-shadow:0 3px 0 var(--sec-edge)}
.help .bi>*{color:#2e2a26!important}
.help.sm{padding:6px 12px;font-size:14px}
.help.sm .bi.row>[lang="en"]{font-size:12px!important}
.seg.sm .segb{padding:6px 11px}

.bubble{background:var(--surface);border-radius:18px;padding:12px 16px;text-align:center;box-shadow:0 3px 0 var(--sec-edge);transform:rotate(-.6deg);max-width:420px}
.bubble h1,.bubble b{display:flex;flex-direction:column;align-items:center;font-size:19px;font-weight:600;margin:0}
.big{border:0;border-radius:20px;padding:14px;min-height:64px;font:600 20px var(--display);width:100%;max-width:420px;margin-top:auto;display:flex;justify-content:center;align-items:center}
.big.coral,.coral{background:var(--coral);color:#fffaf0;box-shadow:0 5px 0 var(--coral-edge)}
.big:active{transform:translateY(3px);box-shadow:0 2px 0 var(--coral-edge)}
.parents,.pill{border:0;background:transparent;font-weight:700;color:var(--ink-2);min-height:64px;padding:0 16px;font-size:15px}
.pill{background:var(--surface);color:var(--ink);border-radius:999px;box-shadow:0 3px 0 var(--sec-edge);min-height:64px;padding:0 22px}
.navrow{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:auto}

.ask{font-size:22px;line-height:1.2}.ask .bi{align-items:flex-start}
.screen.center .ask .bi{align-items:center}
.ask [lang="zh"]{font-size:1em}
html[data-lang="zh"] .ask .bi>[lang="en"],html[data-lang="en"] .ask .bi>[lang="zh"]{font-size:.66em}

/* topics */
.topics{display:flex;flex-direction:column;gap:12px}
.topic{display:flex;gap:12px;align-items:center;background:var(--surface);border:0;border-radius:18px;padding:10px;min-height:76px;box-shadow:0 3px 0 var(--sec-edge);text-align:left;width:100%}
.topic:nth-child(odd){transform:rotate(-.5deg)}
.topic.today{outline:3px solid var(--sun);box-shadow:0 0 0 7px var(--sun-soft),0 3px 0 var(--sec-edge)}
.topic.empty{opacity:.85;cursor:default}
.tpic{flex:none;width:76px;height:58px;border-radius:12px;overflow:hidden;background:var(--sun-soft);display:grid;place-items:center}
.tpic svg{width:100%;height:100%;display:block}
.tpic.cam svg{width:44px;height:44px}
.ttext{display:flex;flex-direction:column;gap:2px;min-width:0}
.ttext .tname{align-items:flex-start}
.ttext small{font-size:13px;color:var(--ink-3);display:flex;gap:6px;flex-wrap:wrap;align-items:baseline}
.sect{font-size:16px;margin-top:6px}
.loading{text-align:center;color:var(--ink-2);padding:16px}

/* session */
.ptop{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pdots{display:flex;gap:6px}.pdots i{width:10px;height:10px;border-radius:50%;background:var(--line);display:block}.pdots i.on{background:var(--coral);width:22px;border-radius:6px}
.sunbar{flex:1;max-width:190px;height:10px;border-radius:99px;background:var(--surface-2);position:relative;overflow:hidden}
.sunbar i{position:absolute;left:0;top:0;bottom:0;width:3%;border-radius:99px;background:var(--sun);transition:width .8s linear}
.endb{border:0;border-radius:999px;padding:6px 14px;min-height:48px;background:var(--surface);font:700 14px var(--display);box-shadow:0 2px 0 var(--sec-edge);color:var(--ink);flex:none}
.pic-col{display:flex;flex-direction:column;gap:10px}
.pic{background:var(--sky);border:6px solid var(--surface);border-radius:12px;overflow:hidden;transform:rotate(-.8deg);box-shadow:0 2px 0 rgba(70,45,20,.12),0 12px 16px -10px var(--shadow);position:relative}
.pic>svg{display:block;width:100%;height:auto}
.pic.photopic{background:var(--surface)}
.photo{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:4/3;background:var(--surface-2);overflow:hidden;font-size:40px}
.photo.loading{min-height:140px}
.photo .crop{position:relative;height:100%;max-width:100%;overflow:hidden;aspect-ratio:4/3}
.photo .crop img{position:absolute;display:block;max-width:none;height:auto}
.pic.small{max-width:420px;transform:none}
.side{display:flex;flex-direction:column;gap:10px;flex:1}
.mia-big{display:none}
.lines{display:flex;flex-direction:column;gap:8px;min-height:0}
.ln{display:flex;gap:8px;align-items:flex-start}
.ln .who{width:34px;height:34px;flex:none;border-radius:50%;background:var(--surface);display:grid;place-items:center;box-shadow:0 2px 4px -2px var(--shadow);overflow:hidden}
.ln .who svg{width:32px;height:32px}
.ln p{background:var(--surface-2);border-radius:6px 16px 16px 16px;padding:7px 12px;font-size:16.5px;line-height:1.35;transform:rotate(-.4deg);overflow-wrap:anywhere}
.ln.k{flex-direction:row-reverse}.ln.k p{background:#ffe08a;color:#2e2a26;border-radius:16px 6px 16px 16px;transform:rotate(.8deg)}
.ln.k .who{background:var(--coral);color:#fffaf0;font:600 14px var(--display)}
.ln.fb-right p{background:var(--good-soft);box-shadow:inset 0 0 0 2px var(--good)}
.ln.fb-almost p{background:var(--sun-soft);box-shadow:inset 0 0 0 2px var(--sun-edge)}
.ln.fb-look p{background:var(--coral-soft);box-shadow:inset 0 0 0 2px var(--coral)}
.blank{background:var(--surface);border-radius:14px;padding:10px 12px;text-align:center;font-family:var(--display);font-size:21px;box-shadow:0 3px 0 var(--sec-edge)}
.blank u{display:inline-block;min-width:70px;border-bottom:3px dashed var(--coral);text-decoration:none}
.blank small{display:block;font-family:var(--zh);font-size:14px;color:var(--ink-2)}
.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.choice{border:0;border-radius:16px;min-height:64px;padding:6px 8px;background:var(--surface);box-shadow:0 3px 0 var(--sec-edge);font:600 15px var(--display);line-height:1.2;color:var(--ink);overflow-wrap:anywhere}
.choice:disabled{opacity:.55}
.typerow{display:flex;gap:8px}
.typerow input{flex:1;min-width:0;min-height:64px;border:2px solid var(--line);border-radius:16px;padding:0 14px;background:var(--surface);font-size:17px}
.typerow input:disabled{opacity:.6}
.sendb{border:0;border-radius:16px;min-width:76px;min-height:64px;padding:0 12px;background:var(--leaf);color:#fffaf0;box-shadow:0 4px 0 var(--leaf-edge)}
.sendb .bi>*{color:#fffaf0!important}
.sendb:disabled{opacity:.55}
.micnote{font-size:14px;color:var(--ink-2);text-align:center}
.typemode .typerow input{border-color:var(--sun-edge)}
.talkrow{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:auto}
.talkbtns{display:flex;align-items:center;justify-content:center;gap:14px;width:100%}
.talkbtns .spacer{width:84px}
.sayagain{border:0;border-radius:18px;width:84px;min-height:64px;padding:6px;background:var(--sky);box-shadow:0 3px 0 var(--sec-edge);color:#2e2a26;text-align:center}
.sayagain .bi>*{color:#2e2a26!important;font-size:13px!important}
.sayagain:disabled{opacity:.5}
.talk{width:96px;height:96px;border-radius:50%;border:0;display:grid;place-items:center;background:var(--coral);box-shadow:0 5px 0 var(--coral-edge),0 12px 14px -6px var(--shadow);padding:0}
.talk svg{width:40px;height:40px}
.talk.listen{background:var(--leaf);box-shadow:0 5px 0 var(--leaf-edge),0 0 0 8px rgba(85,161,93,.25)}
.talk.wait{background:var(--surface-2);box-shadow:0 3px 0 var(--sec-edge)}
.talk.think{background:var(--sun);box-shadow:0 5px 0 var(--sun-edge)}
.talk .dot,.talk .bar{transform-box:fill-box;transform-origin:center}
.cap{font-family:var(--zh);font-weight:700;font-size:16px;text-align:center}
.cap .bi{align-items:center}
.starpop{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.starpop svg{width:38%;max-width:150px;height:auto}
.starmark{transform-box:fill-box}

/* done */
.confetti{background:radial-gradient(circle at 20% 18%,var(--sun) 0 4px,transparent 5px),radial-gradient(circle at 82% 12%,var(--coral) 0 4px,transparent 5px),radial-gradient(circle at 12% 46%,var(--leaf) 0 3px,transparent 4px),radial-gradient(circle at 88% 40%,var(--sky) 0 4px,transparent 5px)}
.newsticker{display:flex;flex-direction:column;align-items:center;gap:8px;background:var(--surface);border-radius:16px;padding:10px 14px;box-shadow:0 3px 0 var(--sec-edge);width:100%;max-width:420px}
.newsticker .slots{justify-content:center}
.nlabel{display:flex;flex-direction:column;align-items:center;text-align:center;font-size:14px}
.nlabel b{font:600 14px var(--display)}
.learned{font-size:15px;color:var(--ink-2)}.learned b{display:block;color:var(--ink);font:600 15px var(--display)}.learned em{color:var(--ink);font-style:normal;font-weight:700;font-size:17px}
.saidlist{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}

/* sticker slots + book */
.slots{display:flex;gap:8px;flex-wrap:wrap}
.slot{width:44px;height:44px;border-radius:50%;border:2px dashed var(--line);display:grid;place-items:center}
.slot.got{border:0;background:var(--coral);box-shadow:0 3px 0 var(--coral-edge)}
.newsticker .slot{width:46px;height:46px}
.week{display:flex;gap:4px;justify-content:space-between}
.week .d{flex:1;min-width:0;text-align:center;border-radius:10px;padding:5px 0;background:var(--surface-2);font:700 15px var(--zh);color:var(--ink-3)}
.week .d i{display:block;font:600 10px var(--display);font-style:normal}
.week .d.on{background:var(--leaf);color:#fffaf0}.week .d.now{outline:2px dashed var(--coral);color:var(--ink)}
.week .d.on.now{color:#fffaf0}
.areas{display:flex;flex-direction:column;gap:10px}
.area{background:var(--surface-2);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:8px}
.area b{font:600 16px var(--display)}.area .bi{align-items:flex-start}
.tiprow{display:flex;gap:10px;align-items:center}
.tip{font-size:14px;background:var(--surface);border-radius:14px;padding:8px 12px}

/* parent + settings (clean) */
.adultpage{max-width:760px}
.arow{display:flex;align-items:center;justify-content:space-between;gap:10px}
.atitle{font-size:22px}
.abtn{border:0;border-radius:12px;padding:10px 16px;min-height:48px;font:600 15px var(--display);background:var(--surface-2);color:var(--ink);box-shadow:0 2px 0 var(--sec-edge);display:inline-flex;align-items:center;justify-content:center;gap:6px;text-align:center}
.abtn.primary{background:var(--leaf);color:#fffaf0;box-shadow:0 3px 0 var(--leaf-edge)}
.abtn.primary .bi>*{color:#fffaf0!important}
.abtn.sky{background:var(--sky);color:#2e2a26}.abtn.sky .bi>*{color:#2e2a26!important}
.abtn.danger{background:var(--coral-soft);color:var(--ink)}
.abtn.quiet{background:var(--surface)}
.abtn.wide{width:100%}
.abtn.off{opacity:.5;pointer-events:none}
.filebtn{cursor:pointer;position:relative}
.filebtn input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}
.filebtn:focus-within{outline:3px solid var(--ink);outline-offset:2px}
.card{background:var(--surface);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;margin-bottom:10px;box-shadow:0 2px 0 rgba(70,45,20,.08)}
.card h3{font-size:16px}.card h3 .bi{align-items:flex-start}
.card.good h3{color:var(--good)}.card.work h3{color:var(--coral)}
.card small{font-size:13px;color:var(--ink-3)}
.num{font:600 28px var(--display);line-height:1}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.two .card{margin-bottom:0}
.two{margin-bottom:10px}
.pbar{height:10px;border-radius:99px;background:var(--surface-2);position:relative;overflow:hidden}.pbar i{position:absolute;inset:0 auto 0 0;background:var(--leaf);border-radius:99px}
.gate{max-width:420px;margin:0 auto;width:100%}
.gateform{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.gateq{display:flex;flex-direction:column;flex-basis:100%}.gateq .sum{font:600 26px var(--display)}
.gateform input{width:110px;min-height:56px;border:2px solid var(--line);border-radius:12px;padding:0 12px;background:var(--surface);font-size:22px}
.err{color:var(--coral);font-weight:700}
.sess{border-top:1px solid var(--line);padding:6px 0}
.sess summary{cursor:pointer;font-weight:700;font-size:15px}
.sess h4{font-size:14px;margin:8px 0 2px;color:var(--ink-2)}
.tr{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:14.5px}
.tr .w{color:var(--ink)}.tr .m{color:var(--ink-2)}
.draft{border:2px solid var(--line);border-radius:12px;padding:8px 10px;margin-top:8px}
.draft summary{cursor:pointer;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.draft .tag{background:var(--sun-soft);border-radius:999px;padding:1px 10px;font-size:12px}
.lessonview{display:flex;flex-direction:column;gap:6px;font-size:15px;margin-top:8px}
.lessonview h5{font-size:14px;margin-top:6px;color:var(--ink-2)}
.lessonview .ltitle{font-size:18px}.zhsub{font-family:var(--zh)}
.lessonview ul,.lessonview ol{margin:0;padding-left:20px}
.qs li{margin-bottom:8px}.qp{font-weight:700}
.wt{border-collapse:collapse}.wt td{padding:2px 14px 2px 0}.zhc{font-family:var(--zh);color:var(--ink-2)}
.btnrow{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.apprrow{display:flex;justify-content:space-between;align-items:center;gap:10px}
.waiting{display:flex;gap:10px;align-items:center;background:var(--sun-soft);border-radius:12px;padding:10px 12px}
.spin{width:22px;height:22px;border-radius:50%;border:3px solid var(--sun-edge);border-top-color:transparent;flex:none}
.okmsg{color:var(--good);font-weight:700}
.setlist{display:flex;flex-direction:column;gap:10px}
.set{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--surface);border-radius:14px;padding:10px 12px}
.set .sl .bi{align-items:flex-start}
.stepper{display:flex;align-items:center;gap:10px}.stepper b{font:600 20px var(--display);min-width:28px;text-align:center;color:var(--coral)}
.stepper .segb{background:var(--surface-2);min-width:48px}
.tog{width:56px;height:34px;border-radius:99px;background:var(--line);position:relative;flex:none;border:0;padding:0}
.tog i{position:absolute;top:4px;left:4px;width:26px;height:26px;border-radius:50%;background:#fffaf0;transition:left .15s}
.tog.on{background:var(--leaf)}.tog.on i{left:26px}

/* help dialog */
dialog{border:0;border-radius:22px;background:var(--surface);color:var(--ink);padding:18px;max-width:min(92vw,480px);box-shadow:0 20px 40px -10px var(--shadow)}
dialog::backdrop{background:rgba(40,25,10,.5)}
dialog h2{font-size:20px;margin-bottom:8px}
.helplist{margin:0 0 14px;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.helplist .bi{align-items:flex-start}
dialog .big{margin-top:0}

.toast{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--bg);border-radius:14px;padding:10px 16px;z-index:50;max-width:90vw;text-align:center;box-shadow:0 8px 20px -6px var(--shadow)}
.toast .bi>*{color:var(--bg)!important}

/* motion */
@media (prefers-reduced-motion:no-preference){
  .talk.listen{animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{50%{transform:scale(1.05)}}
  .talk.think .dot{animation:hop 1.2s ease-in-out infinite}.talk.think .d2{animation-delay:.18s}.talk.think .d3{animation-delay:.36s}
  @keyframes hop{0%,60%,100%{transform:translateY(0)}25%{transform:translateY(-5px)}}
  .talk.wait .bar{animation:wave .9s ease-in-out infinite alternate}
  .talk.wait .b1,.talk.wait .b5{animation-duration:.7s}.talk.wait .b2{animation-delay:.15s}.talk.wait .b3{animation-duration:1.1s;animation-delay:.05s}.talk.wait .b4{animation-delay:.3s}
  @keyframes wave{0%{transform:scaleY(.35)}100%{transform:scaleY(1.25)}}
  .starmark{animation:glow 1.6s ease-in-out infinite}@keyframes glow{50%{transform:scale(1.18)}}
  .starpop svg{animation:pop 1.2s ease-out forwards}@keyframes pop{0%{transform:scale(.2) rotate(-40deg);opacity:0}30%{transform:scale(1.25) rotate(8deg);opacity:1}60%{transform:scale(1) rotate(0)}100%{transform:scale(1.1);opacity:0}}
  .ln.pop{animation:lnpop .25s ease-out}@keyframes lnpop{from{transform:translateY(6px);opacity:0}to{opacity:1}}
  .pic.flutter{animation:flutter .5s ease-out}@keyframes flutter{0%{transform:rotate(-6deg) translateY(-14px);opacity:.2}100%{transform:rotate(-.8deg)}}
  .slot.land{animation:land 1.1s cubic-bezier(.3,1.4,.5,1) both}
  @keyframes land{0%{transform:translateY(-180px) scale(2.6) rotate(-35deg);opacity:0}55%{opacity:1}100%{transform:none;opacity:1}}
  .spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
}
@media (prefers-reduced-motion:reduce){.sunbar i{transition:none}.tog i{transition:none}}

/* tablet / desktop: picture left, Mia + talk button right */
@media (min-width:600px){
  .screen{max-width:600px}
  .hero svg{width:50%}
}
@media (min-width:820px){
  .screen{max-width:760px;gap:16px}
  #s-session{max-width:1100px;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);grid-template-areas:"top top" "pic side";gap:14px 28px;align-content:start;min-height:0}
  #s-session .ptop{grid-area:top}.pic-col{grid-area:pic}.side{grid-area:side}
  .mia-big{display:flex;justify-content:center}.mia-big svg{width:150px;height:auto}
  .ln p{font-size:18px}
  .talk{width:120px;height:120px}.talk svg{width:48px;height:48px}
  .cap{font-size:18px}
  .adultpage{max-width:820px}
  .hero svg{width:44%;max-width:320px}
  .topic.today,.topic{padding:14px}
}
@media (min-width:1100px){
  .screen{max-width:760px}
  #s-session{max-width:1100px}
}
@media (max-width:360px){
  .choices{grid-template-columns:1fr}
  .talkbtns .spacer,.sayagain{width:70px}
}
.filebtn{position:relative}.filebtn input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
