/* GuruLes v2 screens (REDESIGN.md): onboarding, hero, sprint, level moments, profile. Base styles by Claude;
   visual polish goes to app.css (Gemini jobs). Class names here are a contract with flow.js / app.js. */
.small { font-size: 14px; }
.sec { margin: 20px 0 10px; }
.emo { font-size: 26px; }
.wrap { flex-wrap: wrap; }
.mascot { width: 120px; height: 120px; display: block; margin: 0 auto 6px; }
.mascot.big { width: 150px; height: 150px; }

/* onboarding */
.onb { min-height: calc(100dvh - 40px); display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.onb > .x { align-self: flex-start; font-size: 22px; width: 40px; height: 40px; border-radius: 12px; color: var(--mute); }
.onb h1 { font-size: 26px; }
.onb-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding-top: 6vh; }
.brand { font-size: 52px; color: var(--brand); }
.lead { font-size: 19px; color: var(--mute); margin: 4px 0 0; }
.pick-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
  text-align: left; border: 2px solid transparent; min-height: 72px; }
.pick-row:hover, .pick-row:focus-visible { border-color: var(--brand); outline: none; }
.pick-row .ico { font-size: 30px; width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 14px; overflow: hidden; }
.pick-row small { display: block; color: var(--mute); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { padding: 10px 16px; border-radius: 99px; background: var(--card); border: 2px solid var(--line); font-weight: 800; min-height: 44px; }
.chip-btn.on { border-color: var(--brand); background: var(--soft); color: var(--brand); }

/* home */
.alert { border: 2px solid var(--warn); margin-bottom: 12px; }
.hero { display: block; border-radius: 22px; padding: 20px; margin-bottom: 12px; color: #fff;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #4f46e5)); box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 35%, transparent); }
.hero .kicker { font-size: 13px; font-weight: 800; letter-spacing: .4px; opacity: .85; text-transform: uppercase; }
.hero-title { font-size: 24px; font-weight: 800; margin: 4px 0 14px; line-height: 1.2; }
.hero-btn { background: #fff; color: var(--brand); box-shadow: none; min-height: 46px; }
.sprint-card, .goal-card { margin-bottom: 12px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.wk { text-align: center; } .wk small { display: block; font-size: 11px; color: var(--mute); }
.wk i { width: 26px; height: 26px; margin: auto; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-style: normal; color: var(--brand-ink); font-size: 13px; }
.wk.on i { background: var(--brand); } .wk.today i { box-shadow: 0 0 0 2px var(--brand); }

/* level ring / reveal / moment */
.lvl-ring > span { flex-direction: column; line-height: 1; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.lvl-ring > span small { font-size: 10px; color: var(--mute); font-weight: 800; }
.lvl-big { font-size: 64px; font-weight: 800; color: var(--brand); line-height: 1; margin: 6px 0; font-variant-numeric: tabular-nums; }
.lvl-big span { font-size: 26px; color: var(--mute); }
.band { font-size: 20px; font-weight: 800; transition: opacity .3s; }
.reveal .card, .reveal .btn, .reveal .band { transition: opacity .35s; }
.lvl-card { margin: 14px 0; padding: 14px; border-radius: 18px; background: var(--soft); text-align: center; }
.lvl-card .lvl-big { font-size: 48px; }
.lvl-delta { font-weight: 800; color: var(--good); font-size: 18px; }
.lvl-card:not(.up) .lvl-delta { color: var(--mute); }

/* question dots (placement, sprint) */
.qdots { flex: 1; display: flex; gap: 5px; }
.qdots i { flex: 1; height: 8px; border-radius: 99px; background: var(--line); }
.qdots i.done { background: var(--brand); } .qdots i.now { background: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.qtext { font-size: 22px; }
.opt.picked { border-color: var(--brand); background: var(--soft); }

/* profile */
.prof .trend { color: var(--brand); }
.small-cap { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; margin: 2px 0 6px; }
button.chip { cursor: pointer; }

/* avatars */
.av-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.av { border-radius: 50%; padding: 2px; border: 3px solid transparent; aspect-ratio: 1; }
.av img { width: 100%; height: 100%; display: block; }
.av.on { border-color: var(--brand); transform: scale(1.06); }
.av-img { border-radius: 50%; flex: none; display: block; }
.lead-sm { font-size: 15px; font-weight: 600; margin-top: 4px; }

/* mobile table cards: labels come from data-label so columns can change without breaking them */
@media (max-width: 600px) {
  body table td[data-label]::before { content: attr(data-label); }
}
.mic:not(.rec) .lvl { display: none; }   /* the level ring only while recording */
.next-band { margin-top: 6px; } .next-band .bar { height: 6px; } .next-band small { font-size: 12px; color: var(--mute); font-weight: 700; }
.streak-nudge { margin-bottom: 12px; border: 2px solid color-mix(in srgb, var(--warn) 60%, transparent); }
.hw-more { margin-bottom: 10px; }

/* ---------- plans, checkout, paywall, comics (shop.js) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.sheet-wrap.in { background: rgba(15, 23, 42, .45); }
.sheet { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: var(--card); color: var(--ink); border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px;
  transform: translateY(100%); transition: transform .22s ease-out; box-shadow: 0 -8px 30px rgba(0,0,0,.18); }
.sheet-wrap.in .sheet { transform: none; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-wrap { transition: none; } }
.qr-box { align-self: center; width: min(260px, 72vw); aspect-ratio: 1; background: #fff; border-radius: 14px; padding: 8px; display: grid; place-items: center; border: 1px solid var(--line); }
.qr-box svg { width: 100%; height: 100%; }
.pay-state { justify-content: center; gap: 10px; min-height: 40px; }
.price { font-size: 20px; font-weight: 800; color: var(--ink); }
.tier { gap: 10px; }
.tier.focus { outline: 2px solid var(--brand); }
.tier-gold { border-top: 4px solid #eab308; }
.tier-platinum { border-top: 4px solid #6366f1; }
.perks { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.packs .pick { padding: 10px 4px; }
.ref-box input { flex: 1; min-width: 0; }
.ref-box { border: 1px dashed var(--brand); }
.node.locked { opacity: .62; }
.node.locked .dot { font-size: 15px; }
.comic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.comic-card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.comic-card .cover { width: 100%; aspect-ratio: 3/4; border-radius: 12px; background: var(--line); display: grid; place-items: center; font-size: 54px; overflow: hidden; }
.comic-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.comic-page { display: grid; gap: 12px; }
.panel { border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--card); }
.panel img { width: 100%; display: block; }
.panel .scene { padding: 16px 14px; font-style: italic; color: var(--mute); background: var(--line); }
.panel .bubble { margin: 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg); position: relative; }
.panel .bubble small { font-weight: 800; color: var(--brand); }
.panel .say { font-size: 19px; font-weight: 700; }
.panel .say:lang(zh) { font-size: 23px; }
