:root {
  --bg: #17111d;
  --surface: #211a29;
  --surface-2: #2d2436;
  --line: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --muted: #b3a7bf;
  --lime: #b5e48c;
  --pink: #ff8fb8;
  --purple: #a18bff;
  --blue: #5b8cff;
  --navy: #14143a;
  --orange: #ffa173;
  --yellow: #ffd97a;
  --teal: #7fdcd0;
  --mint: #6fdba8;
  --red: #ff6b81;
  --radius: 26px;
  --font: 'Fredoka', system-ui, -apple-system, sans-serif;
  --cream: #fff4ec;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- desktop stage ---------- */
.stage {
  height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 72px;
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(161, 139, 255, 0.25), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(181, 228, 140, 0.14), transparent 60%),
    var(--bg);
}
.pitch { max-width: 420px; display: none; }
.pitch .logo { font-size: 64px; }
.pitch h2 { text-wrap: balance; font-size: 40px; line-height: 1.02; letter-spacing: -0.03em; margin: 18px 0 14px; font-weight: 800; }
.pitch p { color: var(--muted); font-size: 18px; line-height: 1.45; }
.pitch .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pitch .chip { border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.pitch .hint { margin-top: 28px; font-size: 13px; color: var(--muted); }
.pitch .shipped { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--lime); }
.pitch kbd { background: var(--surface-2); border-radius: 6px; padding: 2px 6px; font-family: inherit; }

.phone {
  position: relative;
  width: 100%; height: 100%;
  background: var(--bg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
@media (min-width: 960px) {
  .pitch { display: block; }
  .phone {
    width: 410px; height: min(880px, calc(100dvh - 48px));
    border-radius: 48px;
    border: 10px solid #1d1d22;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

.logo { font-weight: 700; letter-spacing: -0.02em; font-size: 26px; line-height: 1; display: inline-flex; align-items: center; }
.logo b { font-weight: 700; color: var(--pink); }
.logo .club { margin-left: 0.3em; padding: 0.12em 0.42em 0.16em; border-radius: 999px; font-size: 0.5em; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; background: var(--pink); color: #22182a; align-self: center; }
.welcome .logo .club { background: #22182a; color: #ffd3e3; }
.story .logo .club { background: rgba(255, 255, 255, 0.85); }

/* mochii mascot: a squishy little mochi drawn in CSS (eyes + blush), sized by font-size */
.mochi { position: relative; display: inline-block; flex-shrink: 0; width: 1.25em; height: 1em; margin-right: 0.24em;
  border-radius: 50% 50% 44% 44% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 32% 26%, #fff 0 14%, transparent 15%), linear-gradient(#fff6f9, #ffd9e6);
  box-shadow: inset 0 -0.09em 0 rgba(255, 143, 184, 0.55), 0 0.06em 0.18em rgba(0, 0, 0, 0.25);
  transform-origin: 50% 100%; animation: squish 2.8s ease-in-out infinite; }
.mochi::before { content: ''; position: absolute; left: 27%; right: 27%; top: 42%; height: 0.13em;
  background: radial-gradient(circle, #3a2633 58%, transparent 62%) left / 0.13em 0.13em no-repeat,
              radial-gradient(circle, #3a2633 58%, transparent 62%) right / 0.13em 0.13em no-repeat; }
.mochi::after { content: ''; position: absolute; left: 13%; right: 13%; top: 56%; height: 0.11em;
  background: radial-gradient(ellipse, rgba(255, 120, 160, 0.75) 50%, transparent 62%) left / 0.24em 0.11em no-repeat,
              radial-gradient(ellipse, rgba(255, 120, 160, 0.75) 50%, transparent 62%) right / 0.24em 0.11em no-repeat; }
@keyframes squish { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.08, 0.9); } 60% { transform: scale(0.96, 1.05); } }

/* ---------- app chrome ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 10px; flex-shrink: 0;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); display: grid; place-items: center; font-size: 18px;
  transition: transform 0.15s;
}
.icon-btn:active { transform: scale(0.92); }
.screen { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 16px 110px; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen > * { animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.screen > *:nth-child(2) { animation-delay: 0.05s; }
.screen > *:nth-child(3) { animation-delay: 0.1s; }
.screen > *:nth-child(4) { animation-delay: 0.15s; }
.screen > *:nth-child(5) { animation-delay: 0.2s; }
.screen > *:nth-child(n + 6) { animation-delay: 0.25s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.tabbar {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(31, 25, 38, 0.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 26px; padding: 8px;
  z-index: 10;
}
.tab { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; border-radius: 18px; font-size: 11px; font-weight: 600; color: var(--muted); transition: all 0.2s; }
.tab span { font-size: 20px; filter: grayscale(1); opacity: 0.7; transition: all 0.2s; }
.tab.on { background: var(--surface-2); color: var(--text); }
.tab.on span { filter: none; opacity: 1; transform: scale(1.1); }

/* ---------- generic building blocks ---------- */
h1.title { font-size: 34px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin: 6px 4px 18px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 4px 12px; }
.section-h h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.section-h small { color: var(--muted); font-size: 13px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.card + .card { margin-top: 12px; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--lime); color: #22182a; font-weight: 800; font-size: 16px;
  transition: transform 0.15s, filter 0.15s;
}
.btn:active { transform: scale(0.96); }
.btn:hover { filter: brightness(1.05); }
.btn.dark { background: #22182a; color: #fff; }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.white { background: #fff; color: #22182a; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; color: #22182a; }
.avatar.sm { width: 30px; height: 30px; font-size: 14px; }
.avatar.lg { width: 84px; height: 84px; font-size: 42px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input {
  height: 50px; padding: 0 16px; border-radius: 14px; background: var(--surface-2);
  border: 1px solid var(--line); outline: none; font-size: 16px; width: 100%;
}
textarea.input { height: 140px; padding: 14px 16px; resize: none; font-size: 14px; line-height: 1.4; }
.input:focus { border-color: var(--lime); }

/* ---------- welcome ---------- */
.welcome { position: absolute; inset: 0; background: var(--lime); color: #22182a; display: flex; flex-direction: column; padding: 28px 22px; overflow-y: auto; z-index: 20; }
.welcome .logo b { color: #d9467f; }
.welcome h1 { font-size: 54px; line-height: 0.92; letter-spacing: -0.05em; font-weight: 800; margin: auto 0 14px; position: relative; z-index: 1; padding-top: 120px; }
.welcome p.lead { font-size: 18px; font-weight: 500; margin-bottom: 22px; position: relative; z-index: 1; }
.welcome .input { background: rgba(34, 24, 42, 0.08); border-color: rgba(34, 24, 42, 0.2); color: #22182a; }
.welcome .input::placeholder { color: rgba(34, 24, 42, 0.45); }
.welcome .input:focus { border-color: #22182a; }
.connect { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.connect button {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: #22182a; color: #fff; border-radius: 20px; padding: 16px 18px; transition: transform 0.15s;
}
.connect button:active { transform: scale(0.98); }
.connect button b { display: block; font-size: 16px; }
.connect button small { color: var(--muted); font-size: 13px; }
.connect button .em { font-size: 26px; }
.connect button.secondary { background: rgba(34, 24, 42, 0.08); color: #22182a; }
.connect button.secondary small { color: rgba(34, 24, 42, 0.6); }
.fine { font-size: 12px; text-align: center; margin-top: 16px; opacity: 0.6; position: relative; z-index: 1; }

/* onboarding walkthrough */
.welcome > :not(.shape) { position: relative; z-index: 1; }
.welcome > :not(.shape) { animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.welcome > :nth-child(n + 5) { animation-delay: 0.06s; }
.ob-top { display: flex; align-items: center; gap: 12px; }
.ob-top .logo { flex: 1; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 22px; height: 6px; border-radius: 3px; background: rgba(34, 24, 42, 0.18); transition: background 0.3s, width 0.3s; }
.ob-dots i.on { background: #22182a; width: 34px; }
.ob-back { width: 38px; height: 38px; border-radius: 50%; background: rgba(34, 24, 42, 0.08); font-size: 18px; font-weight: 800; }
.ob-name { display: flex; flex-direction: column; gap: 10px; }
.ob-name label { font-size: 14px; font-weight: 700; }
.ob-name .input { height: 58px; font-size: 20px; font-weight: 700; border-radius: 18px; }
.ob-name .btn, .welcome.step2 #obGo { height: 56px; }
.welcome .btn[disabled] { opacity: 0.35; }
.welcome.step2 .ob-h { font-size: 40px; line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; margin: auto 0 10px; padding-top: 40px; text-wrap: balance; }
.ob-sources { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ob-src { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border-radius: 20px;
  background: rgba(34, 24, 42, 0.07); border: 2px solid transparent; transition: transform 0.15s, background 0.2s, border-color 0.2s; }
.ob-src:active { transform: scale(0.98); }
.ob-src .em { font-size: 26px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(34, 24, 42, 0.08); flex-shrink: 0; }
.ob-src b { display: block; font-size: 16px; }
.ob-src small { font-size: 13px; color: rgba(34, 24, 42, 0.6); }
.ob-src .tag { font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 7px; border-radius: 999px; background: #22182a; color: var(--lime); vertical-align: 2px; margin-left: 4px; }
.ob-src .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(34, 24, 42, 0.3); flex-shrink: 0; transition: all 0.2s; }
.ob-src.on { background: #22182a; color: #fff; border-color: #22182a; }
.ob-src.on small { color: var(--muted); }
.ob-src.on .em { background: rgba(181, 228, 140, 0.15); }
.ob-src.on .tag { background: var(--lime); color: #22182a; }
.ob-src.on .radio { border-color: var(--lime); background: var(--lime); box-shadow: inset 0 0 0 4px #22182a; }

/* ---------- home ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; padding: 22px; min-height: 260px;
  background: var(--purple); display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer;
}
.hero > :not(.shape) { position: relative; z-index: 2; }
.hero .kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; position: relative; }
.hero h2 { font-size: 40px; line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; margin: 8px 0 18px; position: relative; }
.hero .play { position: relative; align-self: flex-start; }
.hero.friends { background: var(--pink); }

.score-card { display: flex; gap: 18px; align-items: center; }
.ring { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .lbl b { font-size: 34px; line-height: 1; font-weight: 800; }
.ring .lbl small { font-size: 11px; color: var(--muted); display: block; }
.ring circle.fg { transition: stroke-dashoffset 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.parts { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.part { font-size: 12px; }
.part .bar { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 3px; overflow: hidden; }
.part .bar i { display: block; height: 100%; border-radius: 3px; background: var(--lime); transition: width 1s; }

.predict { background: var(--lime); color: #22182a; border: 0; position: relative; overflow: hidden; }
.predict .big { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 6px 0; }
.predict .muted { color: rgba(34, 24, 42, 0.65); }
.progress { height: 12px; border-radius: 6px; background: rgba(34, 24, 42, 0.15); overflow: hidden; margin: 12px 0 6px; }
.progress i { display: block; height: 100%; background: #22182a; border-radius: 6px; }

.insight { display: flex; gap: 14px; align-items: flex-start; }
.insight .em { font-size: 28px; width: 48px; height: 48px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.insight h4 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.insight p { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.insight .save { color: var(--lime); font-weight: 800; font-size: 13px; margin-top: 6px; }

.cats { display: flex; flex-direction: column; gap: 12px; }
.cat-row .top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.cat-row .bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.cat-row .bar i { display: block; height: 100%; border-radius: 5px; }
.delta { font-size: 12px; font-weight: 700; }
.delta.up { color: var(--pink); } .delta.down { color: var(--mint); }

.txn { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.txn:last-child { border-bottom: 0; }
.txn .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--surface-2); flex-shrink: 0; }
.txn b { font-size: 15px; display: block; }
.txn small { color: var(--muted); font-size: 12px; }
.txn .amt { font-weight: 800; }
.roast-it { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); }
.roast-it:hover { background: var(--pink); color: #22182a; }

.plan { background: linear-gradient(135deg, #1b1340, #2a0f2a); border: 1px solid rgba(161, 139, 255, 0.4); }
.plan h4 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.plan .step { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.plan .step b { display: block; }
.plan .step p { font-size: 13px; color: var(--muted); }
.plan .step .save { color: var(--lime); font-weight: 800; font-size: 13px; white-space: nowrap; }

/* calendar */
.cal { padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { display: block; font-size: 17px; font-weight: 800; }
.cal-head small { color: var(--muted); font-size: 12px; }
.icon-btn.sm { width: 34px; height: 34px; font-size: 22px; font-weight: 800; line-height: 1; background: var(--surface-2); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-w { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.cal-d {
  aspect-ratio: 1; border-radius: 10px; background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cal-d b { font-size: 13px; font-weight: 800; line-height: 1; }
.cal-d small { font-size: 9px; font-weight: 700; opacity: 0.75; font-variant-numeric: tabular-nums; }
.cal-d.hot { color: #22182a; }
.cal-d:hover { transform: scale(1.06); }
.cal-d.sel { box-shadow: 0 0 0 2px #fff; transform: scale(1.06); }
.cal-d.today b { text-decoration: underline 2px; text-underline-offset: 2px; }
.cal-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; }
.cal-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- friends ---------- */
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.superl { flex: 0 0 230px; scroll-snap-align: start; border-radius: 22px; padding: 18px; color: #22182a; min-height: 200px; display: flex; flex-direction: column; }
.superl .em { font-size: 32px; }
.superl h4 { font-size: 17px; line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; margin: 10px 0 auto; }
.superl .who { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 800; font-size: 18px; }
.superl small { font-size: 12px; opacity: 0.7; font-weight: 600; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; cursor: pointer; border-radius: 14px; }
.lb-row:hover { background: var(--surface-2); }
.lb-row .rank { width: 22px; font-weight: 800; color: var(--muted); text-align: center; }
.lb-row.me { background: rgba(181, 228, 140, 0.1); }
.lb-row .grade { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #22182a; }

/* ---------- squads ---------- */
.squad { position: relative; overflow: hidden; }
.squad .head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.squad .em { font-size: 28px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.squad h4 { font-size: 18px; font-weight: 800; }
.member { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; }
.member .bar { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; position: relative; }
.member .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.member .v { width: 92px; text-align: right; font-weight: 700; }
.stakes { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.friend-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-pick label { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-2); cursor: pointer; font-size: 14px; border: 2px solid transparent; }
.friend-pick input { display: none; }
.friend-pick label:has(input:checked) { border-color: var(--lime); }

/* ---------- roasts feed ---------- */
.post .who { display: flex; align-items: center; gap: 10px; }
.post .who b { font-size: 15px; }
.post .who small { color: var(--muted); font-size: 12px; display: block; }
.post .receipt {
  margin: 14px 0 12px; padding: 14px 16px; border-radius: 16px; background: #f6efe4; color: #1a1a1a;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; position: relative;
}
.post .receipt::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 12px;
  background: radial-gradient(circle at 6px -2px, transparent 7px, #f6efe4 7.5px) 0 0 / 12px 12px repeat-x;
}
.post .receipt .line { display: flex; justify-content: space-between; }
.post .receipt .tot { border-top: 1px dashed #999; margin-top: 8px; padding-top: 8px; font-weight: 700; }
.post .roast { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin-top: 18px; }
.post .roast .by { font-size: 11px; color: var(--muted); font-weight: 600; display: block; margin-top: 4px; }
.reacts { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.react { padding: 6px 11px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 700; transition: transform 0.15s; }
.react.on { background: var(--pink); color: #22182a; }
.react:active { transform: scale(1.2); }
.comments { margin-top: 10px; font-size: 14px; }
.comments p { padding: 4px 0; }
.comments b { margin-right: 4px; }
.comment-box { display: flex; gap: 8px; margin-top: 10px; }
.comment-box .input { height: 40px; font-size: 14px; border-radius: 999px; }

/* ---------- sheet / modal ---------- */
.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 40; opacity: 0; transition: opacity 0.25s; }
.backdrop.on { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; z-index: 41;
  background: var(--surface); border-radius: 30px 30px 0 0; padding: 12px 20px 28px;
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet.on { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-2); margin: 0 auto 16px; }
.sheet h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.sheet p.sub { color: var(--muted); margin-bottom: 18px; font-size: 14px; }

.toast {
  position: absolute; left: 50%; top: 18px; transform: translate(-50%, -120%); z-index: 100;
  background: #fff; color: #22182a; font-weight: 700; padding: 12px 18px; border-radius: 999px; font-size: 14px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.toast.on { transform: translate(-50%, 0); }

/* inbox scan animation */
.scan-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.scan-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 14px; font-size: 14px; animation: rise 0.35s both; }
.scan-item small { color: var(--muted); display: block; font-size: 12px; }
.scan-item .ok { color: var(--mint); font-weight: 800; margin-left: auto; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--lime); animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; }

/* ---------- STORY (the Wrapped player) ---------- */
.story { position: absolute; inset: 0; z-index: 60; background: #000; overflow: hidden; user-select: none; -webkit-user-select: none; }
.story .bars { position: absolute; top: 14px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 5; }
.story .bars div { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.story .bars i { display: block; height: 100%; width: 0; background: #fff; }
.story .bars div.done i { width: 100%; }
.story.dark-ui .bars div { background: rgba(34, 24, 42, 0.2); }
.story.dark-ui .bars i { background: #22182a; }
.story .top { position: absolute; top: 28px; left: 16px; right: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 5; }
.story .top .logo { font-size: 18px; }
.story .x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: rgba(0, 0, 0, 0.25); color: #fff; }
.story .paused { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 5; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 0.2s; }
.story.is-paused .paused { opacity: 1; }

.slide {
  position: absolute; inset: 0; padding: 92px 26px 40px;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.45s;
  overflow: hidden;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide > .content { position: relative; z-index: 2; }
.slide .eyebrow { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; opacity: 0.9; }
.slide .mega { font-size: 76px; font-weight: 800; letter-spacing: -0.055em; line-height: 0.9; margin: 10px 0; }
.slide .huge { font-size: 52px; font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; }
.slide .big { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; }
.slide .body { font-size: 19px; font-weight: 500; line-height: 1.3; margin-top: 14px; }
.slide .tiny { font-size: 12px; opacity: 0.6; margin-top: 18px; }

/* reveal animations: children with .r animate in when the slide is active */
.slide .r { opacity: 0; transform: translateY(28px); }
.slide.active .r { animation: reveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.slide.active .r:nth-child(2) { animation-delay: 0.25s; }
.slide.active .r:nth-child(3) { animation-delay: 0.6s; }
.slide.active .r:nth-child(4) { animation-delay: 0.95s; }
.slide.active .r:nth-child(5) { animation-delay: 1.3s; }
.slide.active .r:nth-child(6) { animation-delay: 1.6s; }
.slide.active .r.pop { animation-name: popin; }
@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes popin { 0% { opacity: 0; transform: scale(0.4) rotate(-8deg); } 70% { opacity: 1; transform: scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: none; } }

/* decorative shapes */
.shape { position: absolute; z-index: 1; pointer-events: none; }
.shape.circle { border-radius: 50%; }
.shape.ring { border-radius: 50%; border-style: solid; background: none !important; }
.shape.star { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.shape.burst { clip-path: polygon(50% 0, 58% 30%, 85% 15%, 70% 42%, 100% 50%, 70% 58%, 85% 85%, 58% 70%, 50% 100%, 42% 70%, 15% 85%, 30% 58%, 0 50%, 30% 42%, 15% 15%, 42% 30%); }
.shape.pill { border-radius: 999px; }
.shape.blob { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
.slide.active .shape { animation: float 7s ease-in-out infinite alternate; }
.slide.active .shape.spin { animation: spin 18s linear infinite; }
.slide.active .shape.morph { animation: morph 8s ease-in-out infinite alternate; }
.slide .shape.enter { transform: scale(0); }
.slide.active .shape.enter { animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, float 7s 0.9s ease-in-out infinite alternate; }
@keyframes float { from { translate: 0 0; } to { translate: 14px -22px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes grow { to { transform: scale(1); } }
@keyframes morph {
  0% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; rotate: 0deg; }
  100% { border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%; rotate: 40deg; }
}

/* slide components */
.vs-bars { display: flex; align-items: flex-end; gap: 18px; height: 220px; margin: 26px 0 8px; }
.vs-bars .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 8px; }
.vs-bars .col div { width: 100%; border-radius: 18px 18px 6px 6px; height: 0; transition: height 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s; }
.vs-bars .col b { font-size: 18px; } .vs-bars .col small { font-size: 13px; font-weight: 700; opacity: 0.8; }

.cat-bars { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.cat-bars .cb .lbl { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.cat-bars .cb .track { height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.cat-bars .cb .track i { display: block; height: 100%; width: 0; border-radius: 13px; transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }

.toplist { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.toplist .it { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 700; }
.toplist .it .n { font-size: 30px; font-weight: 800; width: 34px; }
.toplist .it small { margin-left: auto; font-size: 15px; opacity: 0.75; }
.toplist .it.first { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }

.sub-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.sub-list .s { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 16px; background: rgba(34, 24, 42, 0.14); font-weight: 700; font-size: 17px; }
.sub-list .s.ghost { background: #22182a; color: #fff; }
.sub-list .s .tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--pink); color: #22182a; margin-left: 8px; }

.aura-orb { width: 210px; height: 210px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; font-size: 84px; filter: saturate(1.2); box-shadow: 0 0 80px 10px rgba(255, 255, 255, 0.15); }
.slide.active .aura-orb { animation: popin 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both, morph 6s 0.9s ease-in-out infinite alternate; }

.roast-text { font-size: 28px; font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; min-height: 160px; margin-top: 18px; }
.roast-text .caret { display: inline-block; width: 3px; height: 1em; background: currentColor; vertical-align: -0.12em; margin-left: 2px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dots span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: currentColor; margin-right: 6px; animation: bounce 1s infinite; }
.dots span:nth-child(2) { animation-delay: 0.15s; } .dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 50% { transform: translateY(-10px); opacity: 0.5; } }

.rank-list { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.rank-list .rr { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; font-weight: 700; font-size: 17px; background: rgba(255, 255, 255, 0.1); }
.rank-list .rr.me { background: #fff; color: #22182a; transform: scale(1.04); }
.rank-list .rr span:last-child { margin-left: auto; }

.summary {
  border-radius: 26px; padding: 22px; color: #22182a; position: relative; overflow: hidden;
}
.summary .sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 16px; position: relative; }
.summary .sgrid small { display: block; font-size: 12px; font-weight: 700; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.04em; }
.summary .sgrid b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.summary .aura-t { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; position: relative; }
.summary .foot { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; position: relative; }
.share-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.share-actions .btn { flex: 1; min-width: 110px; }

.superl-slide .who-big { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.superl-slide .who-big .avatar { width: 96px; height: 96px; font-size: 50px; }
.superl-slide .who-big b { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }

@keyframes spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- CSV importer ---------- */
.importer {
  position: absolute; inset: 0; z-index: 30; background: var(--bg); overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  opacity: 0; transform: translateY(24px); transition: opacity 0.3s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.importer::-webkit-scrollbar { display: none; }
.importer.on { opacity: 1; transform: none; }
.importer > .shape { position: absolute; }
.imp-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 18px 20px 10px; background: linear-gradient(var(--bg) 70%, transparent); }
.imp-steps { flex: 1; display: flex; gap: 6px; }
.imp-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-2); transition: background 0.3s; }
.imp-steps i.on { background: var(--lime); }
.imp-count { font-size: 12px; font-weight: 700; color: var(--muted); }
.imp-body { position: relative; z-index: 1; padding: 8px 20px 36px; }
.imp-body > * { animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.imp-body > :nth-child(2) { animation-delay: 0.04s; } .imp-body > :nth-child(3) { animation-delay: 0.08s; }
.imp-body > :nth-child(4) { animation-delay: 0.12s; } .imp-body > :nth-child(n + 5) { animation-delay: 0.16s; }
.imp-center { text-align: center; padding-top: 60px; }
.importer .kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lime); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-h { font-size: 40px; line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; margin: 8px 0 10px; text-wrap: balance; }
.imp-sub { color: var(--muted); font-size: 15px; line-height: 1.4; margin-bottom: 20px; }
.imp-fine { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  min-height: 190px; border-radius: 28px; border: 2.5px dashed rgba(181, 228, 140, 0.45); background: rgba(181, 228, 140, 0.05);
  cursor: pointer; transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--lime); outline: none; }
.dropzone:active { transform: scale(0.98); }
.dropzone.over { border-style: solid; border-color: var(--lime); background: rgba(181, 228, 140, 0.14); transform: scale(1.02) rotate(-1deg); box-shadow: 0 0 0 6px rgba(181, 228, 140, 0.12); }
.dz-em { font-size: 52px; animation: bob 2.4s ease-in-out infinite; }
.dz-em.big { font-size: 72px; margin-bottom: 8px; }
.dropzone.over .dz-em { animation: wiggle 0.4s ease-in-out infinite; }
.dz-t { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.dz-s { color: var(--muted); font-size: 13px; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
@keyframes wiggle { 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.1); } }

.sample-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-top: 12px;
  background: var(--pink); color: #22182a; border-radius: 22px; padding: 16px 18px; transition: transform 0.15s;
}
.sample-btn:active { transform: scale(0.98); }
.sample-btn .em { font-size: 26px; }
.sample-btn b { display: block; font-size: 16px; }
.sample-btn small { font-size: 13px; opacity: 0.7; }
.sample-btn .arrow { font-size: 22px; font-weight: 800; }

.banks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 18px; }
.banks small { color: var(--muted); font-size: 12px; margin-right: 2px; }
.banks span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.howto { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.howto summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.howto summary::after { content: '+'; color: var(--lime); font-size: 20px; line-height: 1; }
.howto[open] summary::after { content: '–'; }
.howto ol { margin: 12px 0 8px 18px; color: var(--muted); font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 4px; }
.howto ol b { color: var(--text); }
.link { color: var(--lime); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }

.read-meter { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; margin: 18px 0 12px; }
.read-meter i { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, var(--purple), var(--pink), var(--lime)); }
.read-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.read-row b { margin-left: auto; color: var(--text); font-size: 18px; }
.cat-tag { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); white-space: nowrap; margin-left: auto; }
.scan-item .amt-s { font-weight: 800; min-width: 58px; text-align: right; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 10px; }
.tile { border-radius: 18px; padding: 14px 12px; color: #22182a; animation: popin 0.5s both; }
.tile:nth-child(2) { animation-delay: 0.08s; } .tile:nth-child(3) { animation-delay: 0.16s; }
.tile b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.tile small { font-size: 12px; font-weight: 700; opacity: 0.7; }
.tile.lime { background: var(--lime); } .tile.pink { background: var(--pink); } .tile.purple { background: var(--purple); color: #fff; }
.imp-note { font-size: 13px; color: var(--muted); background: var(--surface); border-radius: 14px; padding: 10px 12px; margin-top: 8px; }
.imp-note.warn { color: var(--yellow); } .imp-note.good { color: var(--mint); margin-top: 18px; }
.sign-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg { display: flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg button.on { background: var(--lime); color: #22182a; }
.stack { display: flex; gap: 3px; height: 18px; border-radius: 9px; overflow: hidden; margin-top: 18px; }
.stack i { min-width: 4px; transform-origin: left; animation: grow-x 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes grow-x { from { transform: scaleX(0); } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend b { color: var(--text); }
.m-list { padding: 4px 14px; }
.m-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.m-row:last-child { border-bottom: 0; }
.m-row .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--surface-2); flex-shrink: 0; }
.m-row b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-row small { color: var(--muted); font-size: 12px; }
.m-row .cat-tag { font-size: 12px; padding: 6px 10px; }
.imp-cta { position: sticky; bottom: 0; margin: 20px -20px -36px; padding: 18px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: linear-gradient(transparent, var(--bg) 35%); }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cat-grid button { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); font-weight: 700; font-size: 14px; border: 2px solid transparent; transition: transform 0.15s; }
.cat-grid button span { font-size: 20px; }
.cat-grid button:active { transform: scale(0.96); }
.cat-grid button.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--surface-2)); }

.byo { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px 18px; border-radius: 22px; cursor: pointer;
  border: 2px dashed rgba(181, 228, 140, 0.4); background: rgba(181, 228, 140, 0.05); transition: transform 0.15s; }
.byo:active { transform: scale(0.98); }
.byo .em { font-size: 26px; }
.byo b { display: block; font-size: 15px; }
.byo small { color: var(--muted); font-size: 13px; }
.byo .arrow { color: var(--lime); font-size: 22px; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .importer, .importer *, .byo { animation: none !important; transition: none !important; }
}

/* ---------- LEARN (duolingo-style path) ---------- */
.btn3d {
  --c: var(--lime); --sh: #7fae55; --ink: #22182a;
  width: 100%; height: 54px; border-radius: 16px; background: var(--c); color: var(--ink);
  font-weight: 800; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 5px 0 var(--sh); transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}
.btn3d:active:not([disabled]) { transform: translateY(5px); box-shadow: 0 0 0 var(--sh); }
.btn3d[disabled] { --c: var(--surface-2); --sh: #15151b; --ink: var(--muted); cursor: default; }
.btn3d.red { --c: var(--red); --sh: #c94a5e; --ink: #fff; }
.btn3d.white { --c: #fff; --sh: #c9c9d4; }
.btn3d.ghost { --c: transparent; --sh: transparent; --ink: var(--muted); box-shadow: none; border: 2px solid var(--surface-2); margin-top: 10px; }
.btn3d:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.link.sm { font-size: 12px; padding: 0; }

.learn-stats { display: flex; justify-content: space-between; gap: 6px; margin: 2px 0 12px; }
.lstat { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 17px; transition: transform 0.12s; }
.lstat:active { transform: scale(0.94); }
.lstat b { font-size: 15px; font-weight: 800; }
.lstat .flame { filter: grayscale(1); opacity: 0.5; }
.lstat.lit .flame { filter: none; opacity: 1; animation: flicker 1.6s ease-in-out infinite; }
.lstat.lit b { color: var(--orange); }
.lstat.hearts b { color: var(--red); }
@keyframes flicker { 50% { transform: scale(1.15) rotate(-6deg); } }

.daily { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.goal-ring { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.goal-ring svg { transform: rotate(-90deg); }
.goal-ring circle.fg { transition: stroke-dashoffset 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.goal-ring .lbl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 22px; line-height: 1; }
.goal-ring .lbl b { font-size: 20px; font-weight: 800; }
.goal-ring .lbl small { font-size: 11px; color: var(--muted); font-weight: 700; }
.daily-h { font-size: 15px; font-weight: 800; }
.quest { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 15px; }
.quest small { font-size: 12px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 3px; }
.qbar { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.qbar i { display: block; height: 100%; border-radius: 4px; background: var(--yellow); transition: width 0.8s; }
.quest.ok .qbar i { background: var(--mint); }
.qv { font-size: 12px; font-weight: 800; min-width: 30px; text-align: right; }
.quest.ok .qv { color: var(--mint); }
.chest { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--mint); }

.practice-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-top: 12px; padding: 14px 18px; border-radius: 20px;
  background: linear-gradient(135deg, #2a1660, #4a1846); border: 1px solid rgba(161, 139, 255, 0.5); transition: transform 0.15s; }
.practice-btn:active { transform: scale(0.98); }
.practice-btn .em { font-size: 28px; }
.practice-btn b { display: block; font-size: 16px; }
.practice-btn small { color: #c8bfff; font-size: 12px; }
.practice-btn .arrow { color: var(--lime); font-size: 22px; font-weight: 800; }

.unit { margin-top: 26px; }
.unit-banner { display: flex; align-items: center; gap: 10px; padding: 16px 16px 16px 18px; border-radius: 20px; background: var(--u); color: var(--uink);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--u) 60%, #000); position: sticky; top: 0; z-index: 4; }
.unit-banner small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.unit-banner h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.unit-banner .guide { width: 44px; height: 44px; border-radius: 14px; font-size: 20px; background: rgba(0, 0, 0, 0.16); border: 2px solid rgba(0, 0, 0, 0.12); flex-shrink: 0; }
.unit-banner .jump { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.18); white-space: nowrap; }
.unit.locked .unit-banner { filter: saturate(0.25) brightness(0.7); }

.path { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 30px 0 8px; }
.road { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.road path { fill: none; stroke-linecap: round; }
.road-base { stroke: #23232c; stroke-width: 26; }
.road-done { stroke: var(--mint); stroke-width: 26; filter: drop-shadow(0 0 10px rgba(111, 219, 168, 0.35));
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: drive 1.1s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.road-lane { stroke: rgba(255, 255, 255, 0.28); stroke-width: 2.5; stroke-dasharray: 2 12; }
@keyframes drive { to { stroke-dashoffset: 0; } }
.node-wrap { z-index: 1; }
.unit.locked .road-base { opacity: 0.55; }
.node-wrap:has(.start-tip) { margin-top: 44px; }
.node-wrap:has(.node-pop) { z-index: 7; }
.unit-mascot { position: absolute; top: 50%; font-size: 64px; opacity: 0.9; transform: translateY(-50%); animation: float 5s ease-in-out infinite alternate; pointer-events: none; }
.unit.locked .unit-mascot { filter: grayscale(1); opacity: 0.25; }
.node-wrap { position: relative; transform: translateX(var(--x)); display: flex; flex-direction: column; align-items: center; }
.node {
  --c: var(--u); --sh: color-mix(in srgb, var(--u) 55%, #000);
  width: 70px; height: 64px; border-radius: 50%; background: var(--c); color: var(--uink); font-size: 28px; font-weight: 800;
  box-shadow: 0 7px 0 var(--sh); transition: transform 0.08s, box-shadow 0.08s; position: relative;
}
.node:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--sh); }
.node.done { --c: var(--yellow); --sh: #c9a240; color: #22182a; }
.node.locked { --c: var(--surface-2); --sh: #121217; color: var(--muted); font-size: 22px; }
.node.chal { width: 82px; height: 74px; border-radius: 26px; }
.node.current { outline: 6px solid color-mix(in srgb, var(--u) 30%, transparent); outline-offset: 6px; animation: pulse-ring 1.8s ease-in-out infinite; }
@keyframes pulse-ring { 50% { outline-color: color-mix(in srgb, var(--u) 12%, transparent); outline-offset: 10px; } }
.node.unlock-pop { animation: unlock 0.8s cubic-bezier(0.2, 0.8, 0.2, 1.4) both, pulse-ring 1.8s 0.8s ease-in-out infinite; }
@keyframes unlock { 0% { transform: scale(0.3) rotate(-30deg); filter: grayscale(1); } 100% { transform: none; } }
.start-tip { position: absolute; bottom: calc(100% + 12px); padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 2px solid var(--surface-2);
  color: var(--u); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; animation: bob 1.6s ease-in-out infinite; }
.start-tip::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px; background: var(--surface); border: 2px solid var(--surface-2); border-top: 0; border-left: 0; transform: translateX(-50%) rotate(45deg); }
.stars { position: absolute; top: calc(100% + 4px); display: flex; gap: 1px; font-size: 12px; padding: 1px 6px; border-radius: 999px; background: var(--bg); }
.node-wrap:has(.stars) { margin-bottom: 8px; }
.stars i { font-style: normal; color: #3a3a46; }
.stars i.on { color: var(--yellow); }
.node-pop { position: absolute; top: calc(100% + 14px); z-index: 6; width: 250px; padding: 16px; border-radius: 18px; background: var(--u); color: var(--uink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); animation: popin 0.3s both; display: flex; flex-direction: column; gap: 4px; }
.node-pop::before { content: ''; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.node-pop b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.node-pop small { font-size: 13px; font-weight: 600; opacity: 0.8; margin-bottom: 10px; }
.node-pop p { font-size: 14px; font-weight: 600; opacity: 0.8; }
.node-pop.locked { background: var(--surface-2); color: var(--text); }
.path-end { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 34px 0 10px; font-size: 40px; }
.path-end b { font-size: 16px; }
.path-end small { font-size: 12px; color: var(--muted); }

.learn-nudge { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 14px 16px; border-radius: 22px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); transition: transform 0.15s; }
.learn-nudge:active { transform: scale(0.98); }
.learn-nudge small { color: var(--muted); font-size: 12px; font-weight: 600; display: block; }
.learn-nudge b { font-size: 15px; font-weight: 800; }
.learn-nudge .go { padding: 9px 14px; border-radius: 12px; background: var(--lime); color: #22182a; font-weight: 800; font-size: 13px; box-shadow: 0 3px 0 #7fae55; white-space: nowrap; }
.flame-badge { width: 48px; height: 48px; border-radius: 16px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 20px; line-height: 1; filter: grayscale(1); }
.flame-badge b { font-size: 13px; font-weight: 800; }
.flame-badge.lit { filter: none; background: rgba(255, 161, 115, 0.16); color: var(--orange); }

/* sheets for learn */
.league { display: flex; flex-direction: column; gap: 6px; }
.lg-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 15px; }
.lg-row .rk { width: 26px; text-align: center; font-weight: 800; color: var(--muted); }
.lg-row.promo .num { color: var(--mint); font-weight: 800; }
.lg-row.me { background: rgba(181, 228, 140, 0.14); box-shadow: inset 0 0 0 2px var(--lime); }
.streak-hero { display: flex; flex-direction: column; align-items: center; padding: 6px 0 10px; }
.streak-hero b { font-size: 56px; font-weight: 800; line-height: 1; color: var(--orange); letter-spacing: -0.04em; }
.streak-hero span { font-weight: 700; color: var(--muted); }
.big-flame { font-size: 88px; line-height: 1; animation: flicker 1.6s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(255, 161, 115, 0.6)); }
.big-flame.out { filter: grayscale(1); animation: none; opacity: 0.5; }
.week-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.week-dots div { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: popin 0.4s both; }
.week-dots small { font-size: 11px; font-weight: 800; color: var(--muted); }
.week-dots i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-style: normal; font-weight: 800; color: #22182a; }
.week-dots .on i { background: var(--orange); }
.week-dots .today small { color: var(--orange); }
.card.mini { padding: 12px; text-align: center; }
.card.mini small { font-size: 12px; color: var(--muted); display: block; }
.card.mini b { font-size: 22px; font-weight: 800; }
.heart-row { display: flex; justify-content: center; gap: 8px; font-size: 34px; margin: 6px 0 12px; }
.heart-row .empty { filter: grayscale(1); opacity: 0.25; }
.goal-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.goal-pick button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 2px solid transparent; }
.goal-pick button span { font-size: 28px; }
.goal-pick button small { color: var(--muted); font-size: 12px; }
.goal-pick button.on { border-color: var(--lime); background: rgba(181, 228, 140, 0.1); }
.sheet .kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.guide-item { padding: 12px 0; border-top: 1px solid var(--line); }
.guide-item p { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.guide-item p b { color: var(--text); }
.speak { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 700; font-size: 14px; transition: background 0.2s; }
.speak.sm { padding: 4px 8px; font-size: 14px; }
.speak.on { background: var(--lime); color: #22182a; animation: flicker 0.8s ease-in-out infinite; }

/* lesson player */
.lesson { position: absolute; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column;
  opacity: 0; transform: translateY(30px); transition: opacity 0.25s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lesson.on { opacity: 1; transform: none; }
.ls-top { display: flex; align-items: center; gap: 12px; padding: 20px 18px 8px; flex-shrink: 0; }
.ls-x { font-size: 20px; color: var(--muted); width: 32px; height: 32px; }
.ls-bar { flex: 1; height: 16px; border-radius: 8px; background: var(--surface-2); position: relative; }
.ls-bar i { display: block; height: 100%; border-radius: 8px; background: var(--lime); transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); position: relative; }
.ls-bar i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 3px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.combo { position: absolute; right: 0; top: 22px; font-size: 11px; font-weight: 800; color: var(--orange); animation: popin 0.4s both; }
.ls-voice { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; background: var(--surface); filter: grayscale(1); opacity: 0.6; }
.ls-voice.on { filter: none; opacity: 1; background: rgba(181, 228, 140, 0.15); box-shadow: inset 0 0 0 2px var(--lime); }
.ls-hearts { font-weight: 800; color: var(--red); font-size: 15px; white-space: nowrap; }
.ls-hearts.low { animation: flicker 0.9s infinite; }
.ls-hearts.inf { color: var(--muted); }
.ls-body { flex: 1; overflow-y: auto; padding: 18px 20px 20px; scrollbar-width: none; }
.ls-body::-webkit-scrollbar { display: none; }
.ls-body > * { animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ls-body.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.ls-kind { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--purple); margin-bottom: 14px; }
.ls-q { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 22px; }
.mascot { font-size: 50px; line-height: 1; animation: bob 3s ease-in-out infinite; flex-shrink: 0; }
.bubble { position: relative; flex: 1; padding: 14px 16px; border-radius: 18px; border: 2px solid var(--surface-2); font-size: 18px; font-weight: 600; line-height: 1.35; }
.bubble::before { content: ''; position: absolute; left: -8px; bottom: 16px; width: 14px; height: 14px; background: var(--bg); border: 2px solid var(--surface-2); border-top: 0; border-right: 0; transform: rotate(45deg); }
.bubble .speak { margin-left: 6px; vertical-align: middle; }
.bubble .topic { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }

.ls-tip h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 18px; }
.ls-tip .kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.tip-card { border-radius: 24px; background: var(--surface); border: 1px solid var(--line); padding: 20px; position: relative; }
.tip-card p { font-size: 17px; line-height: 1.5; color: #d6d6e0; margin: 10px 0 14px; }
.tip-card p b { color: var(--lime); }
.mascot-lg { font-size: 56px; animation: bob 3s ease-in-out infinite; }

.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 15px 16px; border-radius: 16px; border: 2px solid var(--surface-2); box-shadow: 0 4px 0 var(--surface-2);
  font-size: 16px; font-weight: 600; transition: transform 0.08s, border-color 0.15s, background 0.15s; }
.opt kbd { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--surface-2); display: grid; place-items: center; font-family: inherit; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--surface-2); }
.opt.sel { border-color: var(--blue); background: rgba(91, 140, 255, 0.12); box-shadow: 0 4px 0 #2a5fb3; }
.opt.sel kbd { border-color: var(--blue); color: var(--blue); }
.opt.right { border-color: var(--mint); background: rgba(111, 219, 168, 0.12); box-shadow: 0 4px 0 #3fa97a; }
.opt.wrong { border-color: var(--red); background: rgba(255, 107, 129, 0.12); box-shadow: 0 4px 0 #c94a5e; }

.num-in { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px auto; padding: 8px 20px; border-radius: 20px; border: 2px solid var(--surface-2); max-width: 260px; font-size: 40px; font-weight: 800; }
.num-in:focus-within { border-color: var(--lime); }
.num-in input { width: 100%; min-width: 0; background: none; border: 0; outline: none; font-size: 40px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.num-in span { color: var(--muted); }

.blank-sent { font-size: 21px; font-weight: 600; line-height: 2.1; padding: 14px 4px 18px; border-bottom: 2px solid var(--surface-2); }
.slot { display: inline-block; min-width: 86px; height: 40px; vertical-align: middle; margin: 0 4px; padding: 0 12px; border-bottom: 3px solid var(--muted); border-radius: 4px; font-weight: 800; font-size: 17px; }
.slot.filled { border: 2px solid var(--surface-2); border-radius: 12px; box-shadow: 0 3px 0 var(--surface-2); color: var(--lime); animation: popin 0.25s both; }
.bank { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.chip { padding: 10px 16px; border-radius: 14px; border: 2px solid var(--surface-2); box-shadow: 0 4px 0 var(--surface-2); font-weight: 700; font-size: 16px; transition: transform 0.08s; }
.chip:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--surface-2); }
.chip.used { color: transparent; background: var(--surface-2); box-shadow: none; pointer-events: none; }

.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match > div { display: flex; flex-direction: column; gap: 10px; }
.tile-m { min-height: 58px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--surface-2); box-shadow: 0 4px 0 var(--surface-2); font-weight: 700; font-size: 14px; line-height: 1.2; transition: transform 0.08s, opacity 0.3s; }
.tile-m.r { font-weight: 600; color: #d6d6e0; }
.tile-m.sel { border-color: var(--blue); background: rgba(91, 140, 255, 0.12); box-shadow: 0 4px 0 #2a5fb3; }
.tile-m.ok { border-color: var(--mint); color: var(--mint); box-shadow: none; opacity: 0.45; pointer-events: none; animation: popin 0.3s; }
.tile-m.bad { border-color: var(--red); background: rgba(255, 107, 129, 0.12); animation: shake 0.4s; }

.chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; animation: rise 0.3s both; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.bot.correct { border-color: var(--mint); }
.msg.bot.partial { border-color: var(--yellow); }
.msg.bot.incorrect { border-color: var(--orange); }
.msg.bot.reveal { border-color: var(--purple); background: rgba(161, 139, 255, 0.12); }
.msg .fu { display: block; margin-top: 6px; font-weight: 700; color: var(--text); }
.msg .dots span { width: 8px; height: 8px; }
.tutor-in textarea.input { height: 110px; font-size: 16px; border-radius: 18px; border-width: 2px; }
.tutor-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.tutor-row small { color: var(--muted); font-size: 12px; }
.reveal-cta { color: var(--yellow); }

.ls-foot { flex-shrink: 0; padding: 14px 20px 26px; border-top: 2px solid var(--surface); }
.ls-foot.fb { animation: slideup 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); border-top: 0; }
.ls-foot.good { background: #0f2a1c; }
.ls-foot.bad { background: #2e1214; }
.ls-foot.meh { background: #1e1638; }
@keyframes slideup { from { transform: translateY(100%); } }
.fb-msg { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; max-height: 180px; overflow-y: auto; }
.fb-msg b { font-size: 20px; font-weight: 800; display: block; }
.fb-msg p { font-size: 14px; margin-top: 3px; line-height: 1.4; }
.fb-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 18px; flex-shrink: 0; background: #fff; }
.good .fb-msg { color: var(--mint); } .good .fb-ic { color: #3fa97a; }
.bad .fb-msg { color: #ff8a8a; } .bad .fb-ic { color: var(--red); }
.meh .fb-msg { color: #c8bfff; } .meh .fb-ic { background: var(--purple); }
.good .btn3d { --c: var(--mint); --sh: #3fa97a; }
.meh .btn3d { --c: var(--purple); --sh: #7a63d6; --ink: #fff; }
.fb-msg .muted { color: inherit; opacity: 0.75; }

.ls-center { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.ls-center h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; color: var(--yellow); }
.ls-center p { max-width: 300px; font-size: 15px; line-height: 1.45; }
.mascot-xl { font-size: 96px; line-height: 1; }
.mascot-xl.bounce { animation: popin 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both, bob 2.4s 0.7s ease-in-out infinite; }
.big-stars { display: flex; gap: 6px; font-size: 44px; }
.big-stars i { font-style: normal; color: var(--surface-2); }
.big-stars i.on { color: var(--yellow); animation: popin 0.5s both; filter: drop-shadow(0 0 12px rgba(255, 210, 63, 0.5)); }
.done-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin: 14px 0 6px; }
.dt { border-radius: 18px; border: 2px solid var(--c); overflow: hidden; animation: popin 0.5s both; }
.dt:nth-child(2) { animation-delay: 0.1s; } .dt:nth-child(3) { animation-delay: 0.2s; }
.dt small { display: block; background: var(--c); color: #22182a; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 0; }
.dt b { display: block; padding: 12px 0; font-size: 22px; font-weight: 800; color: var(--c); }
.dt.y { --c: var(--yellow); } .dt.g { --c: var(--mint); } .dt.b { --c: var(--blue); }
.streak-up .streak-num { font-size: 96px; font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; color: var(--orange); animation: popin 0.7s 0.2s both; }
.streak-up h2 { color: var(--orange); }
.streak-up .big-flame { font-size: 120px; }
.ls-load { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 30px; }
.ls-load b { font-size: 18px; } .ls-load small { color: var(--muted); }
.spinner.big { width: 46px; height: 46px; border-width: 5px; }
.ls-confirm { position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, 0.7); display: flex; align-items: flex-end; animation: rise 0.2s both; }
.ls-confirm .box { width: 100%; background: var(--surface); border-radius: 28px 28px 0 0; padding: 24px 22px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ls-confirm h3 { font-size: 24px; font-weight: 800; }
.ls-confirm .mascot-xl { font-size: 64px; }
.ls-confirm .btn3d { margin-top: 10px; }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 900px) rotate(var(--r)); opacity: 0.6; } }

@media (prefers-reduced-motion: reduce) {
  .lesson, .lesson *, .node, .unit-mascot, .start-tip { animation: none !important; transition: none !important; }
}

/* ---------- mochii: soft & cute finishing ---------- */
body { letter-spacing: 0.005em; }
h1, h2, h3, .title, .hero h2, .imp-h, .slide .mega, .slide .huge, .slide .big, .welcome h1 { font-weight: 700 !important; letter-spacing: -0.02em !important; }
.btn, .btn3d { border-radius: 999px; }
.btn3d { letter-spacing: 0.04em; }
.card, .hero, .unit-banner, .practice-btn, .ob-src, .learn-nudge { border-radius: 28px; }
.node { border-radius: 50%; }
.welcome { background: linear-gradient(170deg, #ffe4ee 0%, #ffd3e3 45%, #e9e0ff 100%); color: #22182a; }
.welcome .shape.circle { background: #b5e48c !important; opacity: 0.8; }
.welcome .shape.star { background: #ffd97a !important; }
.welcome .shape.ring { border-color: #a18bff !important; }
.welcome .btn.dark, .welcome.step2 #obGo { background: #22182a; box-shadow: 0 5px 0 #4a3552; }
.welcome .btn.dark:active { transform: translateY(4px); box-shadow: 0 1px 0 #4a3552; }
.ob-src.on { background: #22182a; }
.ob-src .tag { background: #ff8fb8; color: #22182a; }
.tabbar { background: rgba(33, 26, 41, 0.88); border-radius: 30px; }
.tab.on { background: color-mix(in srgb, var(--pink) 18%, var(--surface-2)); }
.stage { background:
  radial-gradient(900px 600px at 10% 10%, rgba(255, 143, 184, 0.18), transparent 60%),
  radial-gradient(700px 500px at 90% 90%, rgba(181, 228, 140, 0.12), transparent 60%), var(--bg); }
@media (min-width: 960px) { .phone { border-color: #2d2436; border-radius: 52px; } }
.pitch .logo { font-size: 64px; }
.pitch .tagline { display: inline-flex; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 143, 184, 0.14); color: var(--pink); font-weight: 600; font-size: 14px; }
.slide .mega { font-size: 64px; }
.slide .huge { font-size: 46px; }
.welcome h1 { font-size: 48px; }

/* Tiger Data panel in settings */
.tiger-toggle { gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 10px; cursor: pointer; }
.tiger-toggle input { width: 18px; height: 18px; accent-color: var(--lime); }
.tiger-card { padding: 14px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tiger-card small { font-size: 12px; }
.tiger-bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.tiger-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--orange); min-height: 4px; }
.tiger-stats { display: flex; gap: 8px; }
.tiger-stats span { flex: 1; background: var(--surface-2); border-radius: 12px; padding: 8px; text-align: center; font-size: 11px; color: var(--muted); }
.tiger-stats b { display: block; font-size: 18px; color: var(--text); }
