/* Thai Notebook
   White page, ink, and five pastel tone colours. Each tone is a character with its own colour, shape and motion.
   The first half of this file is layout; the "skin" block near the end sets the look. */

:root {
  color-scheme: light;
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F3F3F5; --sunken: #F3F3F5;
  --ink: #111114; --ink-2: #6C6C75; --ink-3: #8E8E98;
  --hair: #E9E9EE; --hair-2: #DEDEE5; --edge: transparent;
  --accent: #FFE36E; --accent-edge: #8E8E98; --accent-ink: #111114; --accent-soft: #FFF3B8; --on-accent: #111114;
  --ok: #14804A; --ok-bg: #D9F7D0; --bad: #C2392D; --bad-bg: #FFDCD0; --ghost: #CFCFD8;
  --shadow: none;
  --flat: #A5EBDD; --low: #B5CBFF; --fall: #FFB59B; --high: #FFE36E; --rise: #B4F2A6; --lilac: #DCC3FF; --pink: #FFC2E2;
  --flat-s: #A5EBDD; --low-s: #B5CBFF; --fall-s: #FFB59B; --high-s: #FFE36E; --rise-s: #B4F2A6;
  --night: #17171B;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp: var(--sans);
  --serif: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --thai: "Thonburi", "Noto Sans Thai", "Leelawadee UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
small { font-size: 13px; color: var(--ink-3); }
u { text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--accent-edge); }
mark { background: var(--accent-soft); color: inherit; padding: 0 3px; border-radius: 4px; }
[lang="th"] { font-family: var(--thai); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* palavras em tailandês romanizado: letra de livro */
.roman, .word-main b, .ph, .ex, .tile, .unit-title, .examples b, .row-main b, .now-text b, .staffcard small { font-family: var(--serif); }

/* ---------- página ---------- */
.page { max-width: 600px; margin: 0 auto; padding: 20px 20px calc(108px + env(safe-area-inset-bottom)); }
.page.enter { animation: enter .24s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
.page.narrow { padding-top: 56px; max-width: 480px; }
.page h1 { font-family: var(--serif); font-size: 30px; letter-spacing: -.01em; }
.lead { color: var(--ink-2); margin-top: 8px; }
.hint { font-size: 14px; color: var(--ink-3); margin: 12px 0; }
.hint.center { text-align: center; }
.group { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 500; color: var(--ink-3); margin: 28px 4px 8px; }
.group small { font-variant-numeric: tabular-nums; }

/* ---------- contorno do tom (o traço a lápis) ---------- */
.contour { width: 64px; height: 40px; flex: none; }
.contour .staff { stroke: var(--hair-2); stroke-width: 1; fill: none; }
.contour .line { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.contour.mini { width: 32px; height: 20px; }
.contour.mini .staff { stroke: var(--hair); }
.contour.mini .line { stroke-width: 4.5; stroke: var(--ink-3); }
.contour.big { width: 144px; height: 90px; }
.contour.big .line { stroke-width: 3; }
.contour.draw .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- botões ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 12px 20px; margin-top: 12px;
  border-radius: 14px; font-weight: 600; font-size: 16px; text-align: center;
  background: var(--surface); border: 1.5px solid var(--hair-2);
  box-shadow: 0 3px 0 var(--edge);
  transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--edge); }
.btn.primary { background: var(--accent); border-color: var(--accent-edge); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-edge); }
.btn.primary:hover { background: #F5B92F; }
.btn.primary:active { box-shadow: 0 0 0 var(--accent-edge); }
.btn.ghost { background: none; border-color: transparent; box-shadow: none; color: var(--ink-2); font-weight: 500; }
.btn.ghost:hover { color: var(--ink); }
.btn.danger { color: var(--bad); margin-top: 32px; }
.btn:disabled { background: var(--sunken); border-color: transparent; box-shadow: none; color: var(--ink-3); cursor: default; transform: none; }
.chip { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--hair-2); border-radius: 999px; background: var(--surface); transition: background .15s; }
.chip:hover { background: var(--surface-2); color: var(--ink); }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; margin-left: -10px; color: var(--ink-2); transition: background .15s; }
.iconbtn:hover { background: var(--sunken); color: var(--ink); }

.play {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
  transition: background .15s, transform .08s;
}
.play:hover { background: var(--accent); color: var(--on-accent); }
.play:active { transform: scale(.94); }
.play.lg { width: 56px; height: 56px; }
.play.lg .ic { width: 24px; height: 24px; }
.play.xl { width: 104px; height: 104px; background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 0 var(--accent-edge); }
.play.xl:active { transform: translateY(5px); box-shadow: 0 0 0 var(--accent-edge); }
.play.xl .ic { width: 44px; height: 44px; }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; padding: 20px; margin-top: 12px; box-shadow: var(--shadow); }
.card h3 { font-size: 17px; }
.card h3 small { font-weight: 400; }
.note { background: var(--surface-2); box-shadow: none; }
.note > p { color: var(--ink-2); margin-top: 8px; }

/* ---------- início ---------- */
.top { display: flex; justify-content: space-between; align-items: flex-end; margin: 4px 0 20px; }
.eyebrow { display: block; margin-bottom: 2px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--hair-2); font-weight: 600; transition: background .15s; }
.avatar:hover { background: var(--accent-soft); }
.now {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px; padding: 22px 20px 20px;
  background: var(--accent); color: var(--on-accent); border-radius: 22px; box-shadow: 0 5px 0 var(--accent-edge);
  transition: transform .08s, box-shadow .08s;
}
.now:active { transform: translateY(5px); box-shadow: 0 0 0 var(--accent-edge); }
.now-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.now-text > small { color: rgba(31, 27, 20, .68); font-weight: 500; }
.now-text b { font-size: 24px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.now-text > span:not(.now-foot) { font-size: 15px; color: rgba(31, 27, 20, .8); }
.now .contour { width: 96px; height: 60px; }
.now .contour .staff { stroke: rgba(31, 27, 20, .22); }
.now .contour .line { stroke: var(--on-accent); }
.now u { text-decoration-color: rgba(31, 27, 20, .5); }
.now-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.now-foot .bar { flex: 1; background: rgba(31, 27, 20, .14); }
.now-foot .bar i { background: var(--on-accent); }
.now-foot em { font-style: normal; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(31, 27, 20, .75); }
.bar { display: block; height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .35s ease-out; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--shadow); }
.stats div { padding: 14px 16px; border-left: 1px solid var(--hair); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-size: 24px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stats small { display: block; line-height: 1.25; margin-top: 2px; }

/* listas agrupadas: um cartão por grupo, linhas separadas por um fio */
.list { background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 14px 14px 16px; border-top: 1px solid var(--hair); transition: background .15s; }
.row:first-child { border-top: 0; }
.row:hover { background: var(--surface-2); }
.row > .ic { color: var(--ink-3); width: 16px; height: 16px; }
.dot { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--hair-2); font-size: 14px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dot .ic { width: 16px; height: 16px; }
/* anel de progresso em volta do número */
.dot.ring { border: 0; padding: 3px; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--sunken) 0); }
.dot.ring i { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font-style: normal; }
.row.done .dot { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.row.done .dot.ring { background: var(--ok-bg); padding: 0; }
.row.done .dot.ring i { background: none; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-main b { font-weight: 600; font-size: 17px; line-height: 1.3; }
.row-main small { line-height: 1.35; font-family: var(--sans); }
.row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.row-meta small { font-variant-numeric: tabular-nums; }
.row-meta em { font-style: normal; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; }
.here { background: var(--accent-soft); color: var(--accent-ink); }
.paper { background: var(--ok-bg); color: var(--ok); }
.nopaper { background: var(--sunken); color: var(--ink-3); }

/* ---------- unidade ---------- */
.bar-top { display: flex; align-items: center; gap: 4px; min-height: 40px; margin-bottom: 8px; }
.unit-title { font-size: 32px; }
.tabs, .seg { display: flex; gap: 4px; padding: 4px; background: var(--sunken); border-radius: 14px; }
.tabs { margin: 20px 0 16px; }
.tabs button, .seg button { flex: 1; min-height: 40px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-align: center; transition: background .15s, color .15s; }
.seg button { min-height: 44px; font-family: var(--serif); font-size: 16px; }
.tabs button.on, .seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(31, 27, 20, .12); }

.dialog { padding: 8px 20px; }
.dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.dialog > .line { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hair); }
.dialog > .line > div { min-width: 0; }
.who { display: block; font-size: 13px; font-weight: 600; color: var(--accent-ink); font-family: var(--serif); margin-bottom: 2px; }
.roman { font-size: 19px; font-weight: 500; line-height: 1.35; }
.thai { font-size: 15px; color: var(--ink-3); margin-top: 3px; }
.pt { font-size: 15px; color: var(--ink-2); margin-top: 3px; }
.examples { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.examples li { display: flex; align-items: center; gap: 12px; }
.examples span { display: flex; flex-direction: column; min-width: 0; }
.examples b { font-weight: 500; font-size: 17px; }

.words.card { padding: 4px 16px; }
.word { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); }
.word:first-child { border-top: 0; }
.word-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.word-main b { font-size: 19px; font-weight: 600; line-height: 1.3; }
.word-pt { flex: 0 0 40%; text-align: right; font-size: 15px; color: var(--ink-2); display: flex; flex-direction: column; line-height: 1.3; }

.sounds { padding: 4px 16px; }
.sounds li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); }
.sounds li:first-child { border-top: 0; }
.ph { width: 56px; flex: none; font-size: 22px; font-weight: 600; }
.like { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; }
.like i { font-style: normal; font-weight: 500; color: var(--ink); }
.ex { display: flex; flex-direction: column; font-weight: 500; font-size: 17px; text-align: right; line-height: 1.3; }
.ex small { font-family: var(--sans); }
.vowel { flex-wrap: wrap; }
.vowel .ph { width: 84px; }
.pair { flex-basis: 100%; display: flex; gap: 16px; }
.pair .ex { flex-direction: row; align-items: center; gap: 10px; text-align: left; flex: 1; }
.pair .ex > span { display: flex; flex-direction: column; }

.staffcard { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 16px 8px; margin-bottom: 4px; }
.staffcard button { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 8px 0; border-radius: 12px; transition: background .15s; }
.staffcard button:hover, .staffcard button:active { background: var(--accent-soft); }
.staffcard .contour { width: 100%; max-width: 64px; height: auto; aspect-ratio: 64 / 40; }
.staffcard b { font-size: 12px; font-weight: 600; }
.staffcard small { font-size: 14px; }
.tone header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 4px; }
.tone header p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.tone .word:first-child { border-top: 1px solid var(--hair); margin-top: 12px; }

/* ---------- perfil e entrada ---------- */
.hero-mark { margin-bottom: 20px; }
.field { display: block; border: 0; padding: 0; margin-top: 24px; }
.field > span, .field legend { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.field input[type="text"] { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--hair-2); background: var(--surface); font-size: 17px; transition: border-color .15s; }
.field input[type="text"]:focus { outline: 0; border-color: var(--ink); }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 8px; background: var(--surface); border: 1.5px solid var(--hair-2); border-radius: 14px; cursor: pointer; transition: border-color .15s; }
.choice:has(input:checked) { border-color: var(--ink); }
.choice input { accent-color: var(--ink); width: 18px; height: 18px; }
.choice span { display: flex; flex-direction: column; }
.choice b { font-weight: 600; font-family: var(--serif); font-size: 17px; }
.narrow .btn.primary { margin-top: 24px; }

/* ---------- sessões ---------- */
.session { min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: 200px; max-width: 560px; }
.session-top { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.session-top .bar { flex: 1; height: 12px; border-radius: 6px; }
.session-top .bar i { background: var(--accent); border-radius: 6px; }
.ask { font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: 20px; }
.prompt { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.prompt > div { display: flex; flex-direction: column; min-width: 0; }
.prompt.center { flex-direction: column; gap: 16px; padding: 12px 0; }
.xl { font-size: 34px; font-weight: 600; line-height: 1.15; }
.lg { font-size: 21px; font-weight: 600; line-height: 1.3; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  width: 100%; min-height: 56px; padding: 12px 18px; border-radius: 14px; font-size: 17px; font-weight: 500;
  background: var(--surface); border: 1.5px solid var(--hair-2); box-shadow: 0 3px 0 var(--edge);
  transition: transform .08s, box-shadow .08s, background .15s, border-color .15s;
}
.opt.roman { font-size: 20px; }
.opt:not(:disabled):hover { border-color: var(--ink-3); }
.opt:not(:disabled):active { transform: translateY(3px); box-shadow: 0 0 0 var(--edge); }
.opt.right { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); box-shadow: 0 3px 0 var(--ok); }
.opt.wrong { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); box-shadow: 0 3px 0 var(--bad); }
.opt.dim { opacity: .45; box-shadow: none; }
.tones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.tonebtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; min-height: 88px; font-size: 12px; text-align: center; }
.tonebtn .contour { width: 100%; max-width: 56px; height: auto; aspect-ratio: 64 / 40; }
.tonebtn.right .contour .line { stroke: var(--ok); }
.tonebtn.wrong .contour .line { stroke: var(--bad); }
.reveal { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: -8px 0 16px; text-align: center; }

/* a resposta se monta sobre linhas de caderno */
.answer { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; min-height: 116px; padding: 8px 0 12px; margin-bottom: 20px; border-bottom: 1.5px solid var(--hair-2); background: repeating-linear-gradient(to bottom, transparent 0 55px, var(--hair) 55px 56px); }
.answer.right .tile { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); box-shadow: 0 2px 0 var(--ok); }
.answer.wrong .tile { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); box-shadow: 0 2px 0 var(--bad); }
.bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tile { min-height: 46px; padding: 8px 14px; border-radius: 12px; font-size: 19px; font-weight: 500; background: var(--surface); border: 1.5px solid var(--hair-2); box-shadow: 0 2px 0 var(--edge); transition: transform .08s, box-shadow .08s; }
button.tile:not(:disabled):active { transform: translateY(2px); box-shadow: 0 0 0 var(--edge); }
.tile.used { background: var(--sunken); border-color: transparent; box-shadow: none; color: transparent; display: inline-flex; align-items: center; }
.tile.used u { text-decoration: none; }

.feedback {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--hair);
}
.feedback > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.feedback.ok, .feedback.bad, .feedback.warn { border-color: transparent; animation: rise .22s ease-out; }
/* fundo opaco: mistura a cor de aviso com o papel, para nada aparecer por baixo */
.feedback.ok { background: linear-gradient(var(--ok-bg), var(--ok-bg)), var(--bg); }
.feedback.bad { background: linear-gradient(var(--bad-bg), var(--bad-bg)), var(--bg); }
.feedback.warn { background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.feedback b { font-size: 18px; font-weight: 600; }
.feedback.ok b { color: var(--ok); }
.feedback.bad b { color: var(--bad); }
.feedback.warn b { color: var(--accent-ink); }
.feedback p { color: var(--ink); margin-top: 2px; }
.feedback .roman { font-size: 18px; }
.fb-ans { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.fb-ans > span { display: flex; flex-direction: column; min-width: 0; }
.fb-ans .play { background: var(--surface); color: var(--ink); }
.feedback .btn { margin-top: 12px; }
.feedback .btn.ghost { margin-top: 4px; min-height: 44px; }

.gate { margin: auto 0; padding-bottom: 40px; }
.gate-ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--accent); color: var(--on-accent); margin-bottom: 20px; }
.gate-ic .ic { width: 28px; height: 28px; }
.gate .btn.primary { margin-top: 24px; }
.session .card .btn { margin-top: 16px; }

.result { justify-content: center; text-align: center; padding-bottom: 40px; }
.score { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 8px; }
.score b { font-family: var(--serif); font-size: 88px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.score span { font-size: 20px; color: var(--ink-3); }
.result .card { text-align: left; margin: 24px 0 8px; }
.paper-ok { color: var(--ok); font-weight: 500; margin: 16px 0 8px; }
.result .btn.primary { margin-top: 24px; }

/* ---------- falar ---------- */
.speak-zone { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; }
.contour.both { width: 100%; max-width: 340px; height: auto; aspect-ratio: 64 / 40; background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--shadow); }
.contour.both .staff { stroke-width: .4; }
.contour.both .ghost { stroke: var(--ghost); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.contour.both .mine { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s ease-out forwards; }
.mine.ok { stroke: var(--ok); } .mine.bad { stroke: var(--bad); }
.legend { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.legend i { width: 16px; height: 4px; border-radius: 2px; display: inline-block; }
.legend .k-mine { margin-left: 10px; }
.k-ghost { background: var(--ghost); } .k-mine.ok { background: var(--ok); } .k-mine.bad { background: var(--bad); }
.mic { width: 96px; height: 96px; margin-top: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 0 var(--accent-edge); transition: transform .08s, box-shadow .08s, background .15s; }
.mic:active { transform: translateY(5px); box-shadow: 0 0 0 var(--accent-edge); }
.mic .ic { width: 40px; height: 40px; }
.mic.on { background: var(--bad); box-shadow: 0 5px 0 #8A3221; color: #fff; }
.speak-mode { width: 100%; max-width: 280px; margin: 0 auto 24px; }
.speak-mode button { font-family: inherit; font-size: 14px; min-height: 40px; }
.hint.small { font-size: 13px; max-width: 360px; margin: 4px auto 0; line-height: 1.45; }
.link { display: inline; font-size: 13px; font-weight: 500; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.said { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; font-family: var(--serif); font-size: 20px; }
.said span { padding: 6px 12px; border-radius: 10px; }
.said .ok { background: var(--ok-bg); color: var(--ok); }
.said .miss { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1px; }
.said .opt { background: var(--sunken); color: var(--ink-3); }

/* ---------- navegação ---------- */
#nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; justify-content: center; gap: 2px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--hair);
}
#nav:empty { display: none; }
#nav a { flex: 1; min-width: 0; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; font-size: 12px; font-weight: 500; color: var(--ink-3); transition: background .15s, color .15s; }
#nav a:hover { color: var(--ink); }
#nav a.on { color: var(--ink); background: var(--accent-soft); }
#nav .ic { width: 22px; height: 22px; }
#nav .brand { display: none; }

/* ---------- computador: menu na lateral ---------- */
@media (min-width: 880px) {
  body:not(.in-session) { padding-left: 248px; }
  #nav {
    top: 0; right: auto; width: 248px; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 28px 16px; border-top: 0; border-right: 1px solid var(--hair); background: var(--surface-2); backdrop-filter: none;
  }
  #nav a { flex: none; max-width: none; flex-direction: row; gap: 12px; padding: 11px 14px; font-size: 15px; }
  #nav .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 24px; margin-bottom: 8px; color: var(--ink); background: none; }
  #nav .brand:hover { background: none; }
  #nav .brand .contour { width: 44px; height: 28px; padding: 3px 4px; background: var(--accent); border-radius: 9px; }
  #nav .brand .contour .staff { stroke: rgba(31, 27, 20, .25); }
  #nav .brand .contour .line { stroke: var(--on-accent); stroke-width: 5; }
  #nav .brand b { font-family: var(--serif); font-size: 18px; font-weight: 600; }
  .page { max-width: 680px; padding: 48px 32px 80px; }
  .page.narrow { max-width: 480px; }
  .page h1 { font-size: 36px; }
  .unit-title { font-size: 40px; }
  .now { padding: 28px; }
  .now-text b { font-size: 28px; }
  .now .contour { width: 128px; height: 80px; }
  .session { max-width: 600px; padding-top: 40px; }
  .feedback { padding-left: max(20px, calc(50vw - 260px)); padding-right: max(20px, calc(50vw - 260px)); }
}
@media (prefers-reduced-motion: reduce) {
  .contour.draw .line, .contour.both .mine { animation: none; stroke-dashoffset: 0; }
  .page.enter, .feedback.ok, .feedback.bad { animation: none; }
  .btn, .opt, .tile, .bar i, .play, .now, .mic { transition: none; }
}

/* revisão do dia */
.list.review { margin-top: 16px; }
.list.review .row:not(.done) .dot { background: var(--accent); color: var(--on-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.reveal.newword { margin: 8px 0 24px; gap: 8px; }
.reveal.newword .meaning { font-size: 20px; font-weight: 500; margin-top: 8px; }

/* palavra tocável dentro da frase + velocidades */
.w { display: inline; font: inherit; color: inherit; padding: 0 1px; border-radius: 5px; border-bottom: 1.5px dotted var(--hair-2); cursor: pointer; transition: background .15s; }
.w:hover { background: var(--sunken); }
.w.on { background: var(--accent-soft); color: var(--accent-ink); border-bottom-color: transparent; }
.speeds { display: flex; gap: 8px; margin-top: 8px; }
.speeds .chip, #gloss .chip { font-size: 12px; padding: 4px 10px; }
#gloss { position: absolute; z-index: 60; display: none; gap: 12px; align-items: flex-start; width: min(330px, calc(100vw - 24px)); padding: 14px; background: var(--surface); border: 1px solid var(--hair-2); border-radius: 16px; box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 18px 40px -14px rgba(0, 0, 0, .35); }
#gloss.on { display: flex; }
.gloss-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.gloss-main b { font-size: 20px; font-weight: 600; line-height: 1.2; }
.gloss-main small { color: var(--ink-3); font-family: var(--thai); }
.gloss-main p { font-size: 15px; line-height: 1.35; margin-top: 4px; }
.gloss-main .gloss-part { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.gloss-main .gloss-part .roman { font-weight: 600; color: var(--ink); }
.gloss-main .chip { margin-top: 10px; }


/* ================= skin: white page, pastel colour blocks, tight grotesk type, ink pills ================= */
h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; }
small { font-weight: 500; }
.page h1 { font-family: var(--sans); font-size: 34px; font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.page h1.unit-title { font-size: 34px; }
.roman, .word-main b, .ph, .ex, .tile, .examples b, .row-main b { font-weight: 600; letter-spacing: -.01em; }
.group { font-size: 15px; font-weight: 600; color: var(--ink); margin: 30px 6px 10px; }
.group small { font-size: 12.5px; }
.ask { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.xl { letter-spacing: -.03em; }

.btn { border: 0; border-radius: 99px; min-height: 52px; font-size: 16px; font-weight: 600; background: var(--sunken); box-shadow: none; }
.btn:active { transform: scale(.98); box-shadow: none; }
.btn.primary, .btn.primary:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn.primary:active { box-shadow: none; }
.btn.ghost { background: none; color: var(--ink-2); }
.btn.danger { color: var(--bad); }
.btn:disabled { background: var(--sunken); color: var(--ink-3); }
.chip { border: 0; background: var(--sunken); font-weight: 600; font-size: 13px; padding: 7px 13px; }
.chip:hover { background: var(--hair); }
.iconbtn { border-radius: 50%; border: 1.5px solid var(--hair); margin-left: 0; color: var(--ink); }
.bar-top { gap: 12px; margin-bottom: 16px; }
.play { background: var(--ink); color: #fff; }
.play:hover { background: var(--ink); color: var(--high); }
.play.xl, .mic { background: var(--ink); color: #fff; box-shadow: none; }
.play.xl:active, .mic:active { transform: scale(.96); box-shadow: none; }
.mic.on { background: var(--bad); box-shadow: none; }
.fb-ans .play { background: #fff; color: var(--ink); }

.card, .list { border: 0; background: var(--sunken); border-radius: 26px; }
.card.note { background: #F1E8FF; }
.note > p { color: var(--ink); opacity: .72; }
.row { border-top: 1.5px solid #fff; }
.row:hover { background: var(--hair); }
.dot { background: #fff; border: 0; font-weight: 600; color: var(--ink); }
.dot.ring { background: conic-gradient(var(--ink) calc(var(--p) * 1%), #D9D9E0 0); }
.dot.ring i { background: var(--sunken); }
.row.done .dot, .row.done .dot.ring { background: var(--rise); color: var(--ink); }
.here { background: var(--ink); color: #fff; font-weight: 600; }
.paper { background: var(--rise); color: var(--ink); } .nopaper { background: #fff; }
.dialog > .line, .word, .sounds li { border-top-color: #fff; border-top-width: 1.5px; }
.who { color: var(--ink-2); }
.field input[type="text"], .choice { border: 1.5px solid var(--hair); border-radius: 18px; }
.tabs, .seg { border-radius: 99px; padding: 4px; }
.tabs button, .seg button { border-radius: 99px; font-size: 14.5px; font-weight: 600; }
.tabs button.on, .seg button.on { background: var(--ink); color: #fff; box-shadow: none; }
.bar { height: 8px; border-radius: 99px; } .bar i { border-radius: 99px; }
.session-top { gap: 12px; }
.session-top .bar { height: 8px; border-radius: 99px; } .session-top .bar i { background: var(--ink); border-radius: 99px; }

/* shared pieces of the colour tiles */
.bt { display: block; border-radius: 26px; padding: 15px; position: relative; overflow: hidden; }
.lab { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.lab .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.num { display: block; font-size: 32px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.num small { font-size: 17px; color: inherit; opacity: .5; margin-left: 3px; }
.pillk { display: block; text-align: center; background: var(--ink); color: #fff; border-radius: 99px; padding: 13px 8px; font-weight: 600; font-size: 15px; }
.pillk.soft { background: rgba(17, 17, 20, .12); color: var(--ink); }

/* home */
.hi { display: flex; align-items: center; gap: 10px; }
.hi .av { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--high); display: grid; place-items: center; overflow: hidden; }
.hi .av { font-size: 18px; font-weight: 600; }
.hi > div { flex: 1; min-width: 0; }
.hi small { display: block; font-size: 12px; }
.hi b { font-size: 15.5px; font-weight: 600; }
.hi .iconbtn { width: 44px; height: 44px; }
.date { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-top: 22px; }
.page h1.hello { font-size: 32px; margin-top: 6px; }
.tchips { display: flex; gap: 6px; margin: 18px -20px 0; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.tchips::-webkit-scrollbar { display: none; }
.tchip { flex: none; display: flex; align-items: center; gap: 8px; background: var(--sunken); border-radius: 99px; padding: 4px 4px 4px 14px; font-size: 13.5px; font-weight: 600; }
.tchip span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.tchip .contour.mini { width: 22px; height: 14px; }
.tchip .contour.mini .staff { stroke: none; } .tchip .contour.mini .line { stroke: var(--ink); stroke-width: 6; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 18px -8px 0; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 58px; margin: 14px 0 12px; }
.bars i { flex: 1; border-radius: 4px; background: rgba(17, 17, 20, .2); }
.bars i.on { background: var(--ink); }
.bt-sub { display: block; font-size: 12.5px; font-weight: 500; opacity: .62; margin-top: 6px; line-height: 1.3; }
.wide { grid-column: span 2; }
.wide h3 { font-family: var(--sans); font-size: 23px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 4px; max-width: calc(100% - 118px); }
.wide .bt-sub { max-width: calc(100% - 118px); margin: 0 0 16px; }
.wide .ch { position: absolute; width: 108px; right: 4px; top: -2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stats { border: 0; background: none; gap: 6px; margin: 6px -8px 0; }
.stats div { border: 0; border-radius: 22px; padding: 13px 12px; background: var(--sunken); }
.stats b { font-size: 23px; font-weight: 500; letter-spacing: -.03em; }
.stats small { font-size: 12px; }
.unit-title + .stats { margin-top: 18px; }

/* welcome */
.welcome { text-align: center; }
.welcome h1 { font-size: 38px; }
.welcome .lead { max-width: 320px; margin-left: auto; margin-right: auto; }
.welcome .field { text-align: left; }
.crowd { position: relative; width: 272px; height: 358px; margin: 26px auto 0; }
.crowd > div { position: absolute; display: grid; place-items: center; }
.crowd > div > .ch { width: 100%; }
.crowd span { display: block; }

/* study calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal em { font-style: normal; font-size: 11px; color: var(--ink-3); text-align: center; font-weight: 500; padding-bottom: 2px; }
.cal i { aspect-ratio: 1; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cal i.on { background: var(--rise); color: var(--ink); }
.cal i.today { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.cal i.later { background: none; color: var(--hair-2); }

/* tones */
.tc-flat { --tc: var(--flat); } .tc-low { --tc: var(--low); } .tc-falling { --tc: var(--fall); } .tc-high { --tc: var(--high); } .tc-rising { --tc: var(--rise); }
.staffcard { border: 0; background: none; padding: 0; gap: 6px; margin: 20px -8px 4px; }
.staffcard button { background: var(--tc); border-radius: 22px; padding: 4px 2px 10px; gap: 0; }
.staffcard button:hover, .staffcard button:active { background: var(--tc); filter: brightness(.97); }
.staffcard .ch { width: 100%; }
.staffcard b { font-size: 13.5px; font-weight: 600; }
.staffcard small { color: var(--ink); opacity: .6; font-size: 13px; }
.card.tone { background: var(--tc); }
.tone header { align-items: center; gap: 8px; }
.tone header > div { flex: 1; min-width: 0; }
.tone header .ch { width: 104px; flex: none; margin: -14px 0 -10px -10px; }
.tone header h3 { font-size: 24px; font-weight: 600; line-height: 1; }
.tone header h3 small, .tone header p { color: var(--ink); opacity: .66; }
.tone header .contour { width: 52px; height: 33px; }
.tone header .contour .staff { stroke: rgba(17, 17, 20, .16); }
.tone .word, .tone .word:first-child { border-top: 1.5px solid rgba(17, 17, 20, .1); }
.tone .word-pt, .tone small { color: var(--ink); opacity: .66; }
.opt { border: 0; background: var(--sunken); border-radius: 20px; box-shadow: none; font-weight: 600; min-height: 58px; }
.opt:not(:disabled):hover { background: var(--hair); }
.opt:not(:disabled):active { transform: scale(.98); box-shadow: none; }
.opt.right { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 2px var(--ok); }
.opt.wrong { background: var(--bad-bg); color: var(--bad); box-shadow: inset 0 0 0 2px var(--bad); }
.opt.dim { box-shadow: none; }
.tones { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 12px -8px 0; }
.tonebtn { grid-column: span 2; background: var(--tc); border-radius: 24px; padding: 2px 4px 10px; gap: 0; min-height: 0; color: var(--ink); }
.tonebtn:nth-child(n+4) { grid-column: span 3; flex-direction: row; justify-content: center; gap: 6px; padding: 2px 12px 2px 2px; }
.tonebtn:not(:disabled):hover { background: var(--tc); filter: brightness(.97); }
.tonebtn .ch { width: 100%; max-width: 84px; }
.tonebtn:nth-child(n+4) .ch { width: 68px; flex: none; }
.session .reveal .contour.big { width: 104px; height: 65px; }
.session .play.xl { width: 88px; height: 88px; }
.tonebtn .contour.mini { display: none; }
.tonebtn span { font-size: 15px; font-weight: 600; }
.tonebtn.right { background: var(--tc); color: var(--ink); box-shadow: inset 0 0 0 3px var(--ok); }
.tonebtn.wrong { background: var(--tc); color: var(--ink); box-shadow: inset 0 0 0 3px var(--bad); }
.tile { border: 0; background: var(--sunken); border-radius: 14px; box-shadow: none; }
button.tile:not(:disabled):active { transform: scale(.96); box-shadow: none; }
.answer .tile { background: var(--ink); color: #fff; }
.answer.right .tile { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 2px var(--ok); }
.answer.wrong .tile { background: var(--bad-bg); color: var(--bad); box-shadow: inset 0 0 0 2px var(--bad); }
.tile.used { background: none; box-shadow: inset 0 0 0 1.5px var(--hair); }
.contour.both { background: var(--sunken); border: 0; border-radius: 26px; }

/* feedback, result, gates */
.feedback { border-top: 1.5px solid var(--hair); }
.feedback.ok, .feedback.bad, .feedback.warn { border-radius: 28px 28px 0 0; }
.feedback b { font-size: 23px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.feedback.ok b, .feedback.bad b, .feedback.warn b { color: var(--ink); }
.feedback > div { padding-right: 96px; }
.fb-char { position: absolute; top: -36px; right: max(10px, calc(50% - 270px)); width: 92px; margin: 0 !important; pointer-events: none; }
.result > .ch { width: 210px; margin: 0 auto -6px; }
.score b { font-family: var(--sans); font-size: 88px; font-weight: 500; letter-spacing: -.05em; }
.score span { font-weight: 600; }
.hero-mark { margin: -28px 0 4px -16px; } .hero-mark .ch { width: 190px; }
.gate > .ch { width: 170px; margin: 0 0 4px -14px; }
.gate-ic { background: var(--high); border-radius: 50%; }
#gloss { border: 0; border-radius: 24px; }
.w { border-bottom-color: var(--ink-3); }

/* navigation: the black bar */
#nav { background: var(--night); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
#nav a { font-weight: 600; color: #85858F; }
#nav a:hover { color: #fff; }
#nav a.on { background: none; color: #fff; }
@media (max-width: 879px) {
  #nav { padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; }
  #nav a { font-size: 11.5px; padding: 6px 0; gap: 4px; }
  #nav a.on .ic { stroke-width: 2.4; }
  .page { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}
@media (min-width: 880px) {
  #nav { border: 0; background: var(--night); }
  #nav a { border-radius: 99px; font-size: 15.5px; padding: 12px 16px; }
  #nav a.on { background: rgba(255, 255, 255, .12); }
  #nav .brand { gap: 4px; padding: 0 0 18px; color: #fff; }
  #nav .brand:hover { background: none; }
  #nav .brand .ch { width: 62px; flex: none; margin: -8px 0 -8px -6px; }
  #nav .brand b { font-family: var(--sans); font-size: 20px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
  .page h1 { font-size: 42px; }
  .page h1.hello { font-size: 40px; }
  .bento, .stats, .staffcard, .tones { margin-left: 0; margin-right: 0; }
  .wide h3 { font-size: 28px; }
  .wide .ch { width: 118px; top: -8px; right: 10px; }
}

/* ---------- tone characters: each one moves in the shape of its own tone ---------- */
.ch { display: block; height: auto; overflow: visible; }
.ch .rig { transform-box: fill-box; transform-origin: 50% 100%; }
.ch .gg { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
.ch .gr { transform-box: fill-box; transform-origin: center; }
.t-flat .rig { animation: aFlat 3.4s ease-in-out infinite; }
.t-flat .sp { animation: flick 1.1s ease-in-out infinite; }
.t-low .rig { animation: aLow 4.2s ease-in-out infinite; }
.t-low .yawn { transform-box: fill-box; transform-origin: center; animation: yawn 4.2s ease-in-out infinite; }
.t-low .z1 { animation: zz 4.2s ease-out infinite; }
.t-low .z2 { animation: zz 4.2s ease-out 1.2s infinite; }
.t-falling .rig { animation: aFall 2.8s cubic-bezier(.45, 0, .55, 1) infinite; }
.t-falling .tail { transform-box: fill-box; transform-origin: 100% 100%; animation: flap .45s ease-in-out infinite alternate; }
.t-falling .sp { animation: flick .7s ease-in-out infinite; }
.t-high .rig { animation: aHigh 2.6s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.t-high .pop { transform-box: fill-box; transform-origin: 0% 100%; animation: pop 2.6s ease-out infinite; }
.t-high .quiff { transform-box: fill-box; transform-origin: 40% 100%; animation: quiff 2.6s ease-in-out infinite; }
.t-rising .rig { animation: aRise 2.6s cubic-bezier(.35, .1, .3, 1) infinite; }
.t-rising .gr { animation: shadow 2.6s cubic-bezier(.35, .1, .3, 1) infinite; }
.t-rising .curl { transform-box: fill-box; transform-origin: 30% 100%; animation: curl 2.6s ease-in-out infinite; }
.t-rising .sp { animation: puff 2.6s ease-out infinite; }
/* reactions */
.ch.m-ok .rig { animation: chJump .9s cubic-bezier(.3, .7, .4, 1) infinite; }
.ch.m-ok .gr { animation: shadow .9s ease-in-out infinite; }
.ch.m-bad .rig { animation: chWob 1.8s ease-in-out infinite; }
.ch.m-bad .gr { animation: none; }
.ch.m-bad .drop { animation: chDrip 1.8s ease-in infinite; }
.ch.m-still *, .ch.m-still .rig { animation: none; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes flick { 0%, 100% { opacity: 1; transform: translateX(0); } 50% { opacity: .2; transform: translateX(-6px); } }
@keyframes aFlat { 0%, 100% { transform: translateX(-9px) rotate(-1.2deg); } 50% { transform: translateX(9px) rotate(1.2deg); } }
@keyframes aLow { 0%, 100% { transform: scale(1, 1); } 45%, 60% { transform: scale(1.035, .93); } }
@keyframes yawn { 0%, 30%, 80%, 100% { transform: scale(1); } 45%, 62% { transform: scale(1.7, 2); } }
@keyframes zz { 0% { opacity: 0; transform: translate(8px, 14px) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-10px, -22px) scale(1.1); } }
@keyframes aFall { 0%, 8% { transform: translate(-13px, -3px) rotate(-2deg); } 60%, 72% { transform: translate(13px, 3px) rotate(3deg); } 86% { transform: translate(-2px, -12px) rotate(-3deg); } 100% { transform: translate(-13px, -3px) rotate(-2deg); } }
@keyframes flap { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
@keyframes aHigh { 0%, 18%, 100% { transform: scale(1, 1); } 32%, 70% { transform: scale(.95, 1.09); } 84% { transform: scale(1.03, .97); } }
@keyframes pop { 0%, 22%, 86%, 100% { opacity: 0; transform: scale(.4); } 34%, 70% { opacity: 1; transform: scale(1); } }
@keyframes quiff { 0%, 18%, 100% { transform: rotate(0); } 34% { transform: rotate(-7deg); } 50% { transform: rotate(5deg); } 66% { transform: rotate(-2deg); } }
@keyframes aRise { 0%, 12%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(0) scale(1.07, .88); } 55% { transform: translateY(-26px) scale(.96, 1.06) rotate(-4deg); } 66% { transform: translateY(-24px) scale(.98, 1.03) rotate(-3deg); } 84% { transform: translateY(0) scale(1.05, .93); } }
@keyframes shadow { 0%, 30%, 84%, 100% { transform: scaleX(1); opacity: 1; } 55%, 66% { transform: scaleX(.6); opacity: .55; } }
@keyframes curl { 0%, 12%, 100% { transform: rotate(0); } 30% { transform: rotate(8deg); } 55% { transform: rotate(-10deg); } 84% { transform: rotate(6deg); } }
@keyframes puff { 0%, 34% { opacity: 0; } 42% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes chJump { 0%, 20%, 100% { transform: translateY(0) scale(1.06, .92); } 55% { transform: translateY(-18px) scale(.96, 1.06); } 85% { transform: translateY(0) scale(1.03, .96); } }
@keyframes chWob { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes chDrip { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ch * { animation: none !important; } }
