/* Layout: one 600px column. Home is a winding lesson path under a sticky stat bar;
   a lesson is three bands — progress, the task, and an answer bar that turns green or red. */
:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --ink: #1B2232;
  --muted: #646E82;
  --line: #E0E5EE;
  --line-2: #C8D0DD;
  --scrim: rgba(16, 20, 28, .45);

  --ok: #2B9A44;
  --ok-deep: #1F7533;
  --bad: #D63A4A;
  --bad-deep: #A42735;
  --flame: #F07818;
  --heart: #E5465A;
  --xp: #D99A00;

  --en: #1F7AD1;
  --en-deep: #165E9F;
  --ja: #C2357A;
  --ja-deep: #8F235A;
  --accent: var(--en);
  --accent-deep: var(--en-deep);
  --on-accent: #FFFFFF;

  --f-ui: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --f-target: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans TC", system-ui, sans-serif;
  --f-num: "M PLUS Rounded 1c", ui-rounded, system-ui, sans-serif;

  --r: 16px;
  --r-sm: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10141C; --surface: #181D28; --ink: #E7EBF3; --muted: #97A1B5; --line: #262D3B; --line-2: #343E53; --scrim: rgba(0, 0, 0, .6);
    --ok: #3DBB58; --ok-deep: #278A3E; --bad: #EF5668; --bad-deep: #B33244; --flame: #FF8C2E; --heart: #F25B6E; --xp: #F2B824;
    --en: #3A93E6; --en-deep: #2266A8; --ja: #E0559B; --ja-deep: #A3346B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10141C; --surface: #181D28; --ink: #E7EBF3; --muted: #97A1B5; --line: #262D3B; --line-2: #343E53; --scrim: rgba(0, 0, 0, .6);
  --ok: #3DBB58; --ok-deep: #278A3E; --bad: #EF5668; --bad-deep: #B33244; --flame: #FF8C2E; --heart: #F25B6E; --xp: #F2B824;
  --en: #3A93E6; --en-deep: #2266A8; --ja: #E0559B; --ja-deep: #A3346B;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.5 var(--f-ui);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

#app {
  max-width: 600px;
  min-height: 100%;
  margin: 0 auto;
  padding-inline: 16px;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  flex-direction: column;
}
#app[data-course="ja"] { --accent: var(--ja); --accent-deep: var(--ja-deep); }
.boot { margin: auto; color: var(--muted); }
.tg { font-family: var(--f-target); font-weight: 700; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; opacity: .85; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 20px; width: 100%;
  border: 0; border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 4px 0 var(--accent-deep);
  font-weight: 900; font-size: 1.02rem; letter-spacing: .06em;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease, filter .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { filter: brightness(1.05); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--accent-deep); }
.btn:disabled { background: var(--line); color: var(--muted); box-shadow: 0 4px 0 var(--line-2); cursor: default; filter: none; }
.btn.ghost { background: var(--surface); color: var(--accent); border: 2px solid var(--line-2); box-shadow: 0 4px 0 var(--line-2); }
.btn.ghost:disabled { color: var(--muted); }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 42px; padding: 8px 14px; font-size: .9rem; width: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn svg { width: 26px; height: 26px; }
.icon-btn:hover { background: var(--line); }

/* ---------- home ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  margin-inline: -16px; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px 4px 4px;
  border: 2px solid var(--line-2); border-radius: 14px; background: var(--surface); cursor: pointer; font-weight: 700;
}
.chip svg { width: 18px; height: 18px; color: var(--muted); }
.badge {
  display: inline-grid; place-items: center; width: 34px; height: 30px; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font: 800 .95rem/1 var(--f-target);
}
.badge.big { width: 52px; height: 46px; font-size: 1.3rem; border-radius: 12px; box-shadow: 0 4px 0 var(--accent-deep); }
.stats { display: flex; align-items: center; gap: 2px; }
.stat {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px;
  border: 0; border-radius: 12px; background: transparent; font: 800 1rem/1 var(--f-num);
  font-variant-numeric: tabular-nums;
}
button.stat { cursor: pointer; }
button.stat:hover { background: var(--line); }
.stat svg { width: 24px; height: 24px; }
.stat.flame { color: var(--flame); }
.stat.flame.dim { color: var(--muted); }
.stat.xp { color: var(--xp); }
.stat.heart { color: var(--heart); }

.goal {
  margin-top: 16px; padding: 14px 16px;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r);
}
.goal-ring { grid-row: span 2; width: 56px; height: 56px; }
.goal-ring circle { fill: none; stroke-width: 7; }
.goal-ring .track { stroke: var(--line); }
.goal-ring .fill { stroke: var(--xp); stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.goal-ring text { fill: var(--ink); font: 800 13px var(--f-num); }
.goal-title { font-weight: 900; }
.goal-sub { color: var(--muted); font-size: .9rem; }
.goal-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.goal-actions .btn { flex: 1 1 160px; }

.unit { margin-top: 24px; }
.unit-banner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-radius: var(--r);
  background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 0 var(--accent-deep);
}
.unit-banner h2 { font-size: 1.3rem; font-weight: 900; text-wrap: balance; }
.unit-desc { font-size: .92rem; opacity: .9; }
.unit-count { font: 800 .95rem var(--f-num); padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .2); white-space: nowrap; }
.unit.is-locked .unit-banner { background: var(--line); color: var(--muted); box-shadow: 0 5px 0 var(--line-2); }
.unit.is-locked .unit-count { background: var(--surface); }

.path { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 64px 0 10px; }
.node-wrap { position: relative; transform: translateX(var(--x, 0)); }
.node {
  display: grid; place-items: center; width: 74px; height: 68px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 7px 0 var(--accent-deep);
  transition: transform .08s ease, box-shadow .08s ease;
}
.node svg { width: 34px; height: 34px; }
.node:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--accent-deep); }
.node.locked { background: var(--line); color: var(--muted); box-shadow: 0 7px 0 var(--line-2); }
.node.current { outline: 6px solid color-mix(in srgb, var(--accent) 22%, transparent); outline-offset: 5px; }
.start-tag {
  position: absolute; bottom: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 10px; white-space: nowrap;
  background: var(--surface); color: var(--accent); border: 2px solid var(--line-2);
  font-weight: 900; font-size: .85rem; letter-spacing: .08em;
  animation: bob 1.4s ease-in-out 3;
}
.start-tag::after {
  content: ""; position: absolute; top: 100%; left: 50%; width: 10px; height: 10px; margin: -4px 0 0 -5px;
  background: var(--surface); border: solid var(--line-2); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@keyframes bob { 50% { transform: translate(-50%, -5px); } }
.all-done { margin: 28px 0 8px; text-align: center; color: var(--muted); }
.foot-links { display: flex; justify-content: center; gap: 4px; padding: 20px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.link { background: none; border: 0; color: var(--muted); font-size: .9rem; text-decoration: underline; cursor: pointer; padding: 8px; }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); animation: fade .15s ease; }
.sheet {
  position: fixed; z-index: 21; left: 0; right: 0; bottom: 0;
  max-width: 600px; max-height: 88vh; margin: 0 auto; overflow: auto;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column; gap: 14px;
  animation: rise .2s ease;
}
.sheet h2 { font-size: 1.3rem; font-weight: 900; text-wrap: balance; }
.sheet .row { display: flex; flex-wrap: wrap; gap: 10px; }
.sheet .row .btn { flex: 1 1 160px; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.course-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; text-align: left;
  border: 2px solid var(--line-2); border-bottom-width: 4px; border-radius: var(--r); background: var(--surface); cursor: pointer;
}
.course-opt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.course-opt b { display: block; font-size: 1.1rem; }
.course-opt small { color: var(--muted); font-size: .88rem; }

.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.set-row.col { flex-direction: column; align-items: stretch; }
.set-row label, .set-row .lbl { font-weight: 700; }
.set-row small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }
.switch {
  position: relative; width: 52px; height: 32px; flex: none; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--line-2); transition: background .15s;
}
.switch::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); transition: transform .15s;
}
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.segb {
  flex: 1 1 60px; min-height: 42px; border: 2px solid var(--line-2); border-radius: 10px; background: var(--surface);
  font: 800 .95rem var(--f-num); cursor: pointer;
}
.segb[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.cloud-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-sm); background: var(--bg); }
.cloud-box p { font-size: .92rem; }
.cloud-state { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cloud-state .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.cloud-state.ok .dot { background: var(--ok); }
.cloud-state.err .dot { background: var(--bad); }
.text-in {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px;
  border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit;
}
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.day .dot {
  display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 4px; border-radius: 50%;
  background: var(--line); color: var(--surface);
}
.day.on .dot { background: var(--flame); }
.day .dot svg { width: 20px; height: 20px; }
.day small { color: var(--muted); font-size: .8rem; }
.heart-row { display: flex; gap: 6px; color: var(--heart); }
.heart-row svg { width: 34px; height: 34px; }
.heart-row .empty { color: var(--line-2); }
.news-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.news-list li { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); }
.news-list ul { margin: 6px 0 0; padding-left: 20px; }
.news-date { color: var(--muted); font-size: .82rem; }

.toast {
  position: fixed; z-index: 30; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--ink); color: var(--bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); white-space: nowrap;
}
.toast .btn { min-height: 40px; width: auto; padding: 6px 14px; box-shadow: none; }
.toast .link { color: inherit; opacity: .7; }

/* ---------- lesson ---------- */
.lesson { flex: 1; display: flex; flex-direction: column; min-height: 100%; }
.lhead { display: flex; align-items: center; gap: 10px; padding: 14px 0 6px; }
.bar { position: relative; flex: 1; height: 16px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i {
  position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--ok);
  transition: width .35s ease;
}
.bar i::after { content: ""; position: absolute; top: 3px; left: 8px; right: 8px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .3); }
.combo { min-height: 22px; font-size: .85rem; font-weight: 900; color: var(--flame); letter-spacing: .04em; text-align: center; }
.lbody { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 10px 0 24px; }
.q { font-size: clamp(1.3rem, 4.6vw, 1.6rem); font-weight: 900; text-wrap: balance; }
.q-sub { margin-top: -12px; color: var(--muted); font-size: .92rem; }

.hero { display: flex; align-items: center; gap: 14px; }
.hero.center { flex-direction: column; justify-content: center; padding: 8px 0; }
.hero-word { display: flex; flex-direction: column; min-width: 0; }
.hero-word .tg { font-size: 1.6rem; line-height: 1.3; overflow-wrap: anywhere; }
.hero-word .tg.xl { font-size: 3.4rem; line-height: 1.1; }
.hero .emo { font-size: 3rem; line-height: 1; }
.rom { color: var(--muted); font-size: .95rem; font-family: var(--f-num); }
.says { display: flex; gap: 10px; align-items: center; }
.say {
  display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-deep);
}
.say svg { width: 30px; height: 30px; }
.say.big { width: 96px; height: 96px; border-radius: 22px; }
.say.big svg { width: 50px; height: 50px; }
.say.slow { width: 56px; height: 56px; font: 800 .95rem var(--f-num); }
.say:active { transform: translateY(4px); box-shadow: none; }

.bubble {
  position: relative; align-self: flex-start; max-width: 100%;
  padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--surface);
  font-size: 1.15rem; font-weight: 700;
}

.opts { display: flex; flex-direction: column; gap: 12px; }
.opt, .card, .mt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 16px; text-align: left;
  border: 2px solid var(--line-2); border-bottom-width: 4px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.05rem; font-weight: 700;
  transition: background .12s, border-color .12s, transform .06s;
}
.opt:active:not(:disabled), .card:active:not(:disabled), .mt:active:not(:disabled) { transform: translateY(2px); }
.key {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px;
  border: 2px solid var(--line-2); color: var(--muted); font: 800 .8rem var(--f-num);
}
.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.sel .key { border-color: var(--accent); color: var(--accent); }
.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok-deep); }
.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad); }
.dim { opacity: .5; }
:root[data-theme="dark"] .right { color: var(--ok); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .right { color: var(--ok); } }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { position: relative; flex-direction: column; justify-content: center; gap: 4px; min-height: 130px; text-align: center; padding: 16px 10px; }
.card .emo { font-size: 2.6rem; line-height: 1.1; }
.card .tg { font-size: 1.2rem; overflow-wrap: anywhere; }
.card .tg.xl { font-size: 2.6rem; }
.card .key { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; font-size: .75rem; }

.match { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.match .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mt { justify-content: center; text-align: center; min-height: 60px; padding: 10px 8px; overflow-wrap: anywhere; }
.mt.done { opacity: .35; border-color: var(--line); cursor: default; }
.mt.wrong { animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.answer-line {
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-height: 116px; padding: 8px 0;
  background: repeating-linear-gradient(to bottom, transparent 0 54px, var(--line-2) 54px 56px);
}
.bank { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tok {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 6px 14px;
  border: 2px solid var(--line-2); border-bottom-width: 4px; border-radius: 12px; background: var(--surface); color: var(--ink);
  font-family: var(--f-target); font-weight: 700; font-size: 1.1rem; line-height: 1.2; cursor: pointer;
}
.tok small { font: 500 .72rem var(--f-num); color: var(--muted); }
.tok.ghost { background: var(--line); border-color: var(--line); color: transparent; cursor: default; }
.tok.ghost small { color: transparent; }

.typein {
  width: 100%; min-height: 120px; padding: 14px; resize: none;
  border: 2px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink);
  font: 700 1.25rem/1.4 var(--f-target);
}
.typein:focus { outline: none; border-color: var(--accent); }

.lfoot {
  position: sticky; bottom: 0; z-index: 4;
  margin-inline: -16px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--line); background: var(--bg);
}
.lfoot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lfoot-in .btn { flex: 1 1 140px; }
.lfoot-in .btn.skip { flex: 0 1 120px; }
.lfoot .hint { flex: 1; color: var(--muted); text-align: center; padding: 14px 0; }
.lfoot.ok { --accent: var(--ok); --accent-deep: var(--ok-deep); border-top-color: transparent; background: color-mix(in srgb, var(--ok) 15%, var(--bg)); }
.lfoot.bad { --accent: var(--bad); --accent-deep: var(--bad-deep); border-top-color: transparent; background: color-mix(in srgb, var(--bad) 13%, var(--bg)); }
.fb { flex: 1 1 260px; display: flex; gap: 12px; align-items: flex-start; min-width: 0; color: var(--accent); }
.fb-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface); }
.fb-ic svg { width: 24px; height: 24px; }
.fb-title { font-size: 1.25rem; font-weight: 900; }
.fb-ans { font-size: .95rem; }
.fb-correct { font-size: 1.1rem; overflow-wrap: anywhere; }
.fb .rom { color: inherit; opacity: .8; }

/* ---------- result ---------- */
.result { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 40px 0 0; text-align: center; }
.result-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.burst {
  display: grid; place-items: center; width: 112px; height: 112px; border-radius: 32px; margin-bottom: 10px;
  background: var(--xp); color: var(--surface); box-shadow: 0 7px 0 color-mix(in srgb, var(--xp) 70%, #000);
  animation: pop .5s cubic-bezier(.3, 1.6, .5, 1);
}
.burst svg { width: 62px; height: 62px; }
.burst.bad { background: var(--heart); box-shadow: 0 7px 0 color-mix(in srgb, var(--heart) 70%, #000); }
@keyframes pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
.result h1 { font-size: 1.9rem; font-weight: 900; color: var(--xp); }
.result.out h1 { color: var(--heart); }
.result-hero p { color: var(--muted); max-width: 32em; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { border-radius: var(--r-sm); border: 2px solid var(--tc); overflow: hidden; }
.tile-k { padding: 4px; background: var(--tc); color: var(--surface); font-size: .78rem; font-weight: 900; letter-spacing: .06em; }
.tile-v { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 12px 4px; color: var(--tc); font: 800 1.35rem var(--f-num); font-variant-numeric: tabular-nums; }
.tile-v svg { width: 22px; height: 22px; }
.tile.xp { --tc: var(--xp); }
.tile.acc { --tc: var(--ok); }
.tile.time { --tc: var(--en); }
.result-note { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; }
.result-note svg { width: 22px; height: 22px; color: var(--flame); }
.result-foot { margin-top: auto; padding: 16px 0 calc(20px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 380px) {
  .stat { padding: 0 5px; }
  .hero-word .tg.xl { font-size: 2.8rem; }
}
