/* Study Chinese — shared component patterns (heroes, cards, mockups, steps, FAQ, CTA).
   Depends on tokens in site.css. */

/* ============ PAGE HERO (inner pages) ============ */
.phero { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: clip; }
.phero-glow { position: absolute; inset: -20% -10% auto -10%; height: 100%; pointer-events: none; z-index: -1;
  background: radial-gradient(52% 66% at 24% 0%, rgba(24, 178, 87, .14), transparent 70%),
              radial-gradient(40% 52% at 86% 10%, rgba(244, 183, 64, .12), transparent 72%); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a { color: var(--jade-deep); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.phero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; margin-bottom: 18px; max-width: 21ch; }
.phero .lede { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--ink2); max-width: 58ch; }
.phero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.phero-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.phero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .phero-split { grid-template-columns: 1fr; } }

/* ============ CARD GRIDS ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px; position: relative; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s; }
@media (hover: hover) and (pointer: fine) { a.card:hover, .card.lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-mint); } }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--ink2); font-size: .95rem; }
.card-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--jade-soft); color: var(--jade-deep); margin-bottom: 16px; }
.card-ic .ic { width: 24px; height: 24px; }
.card-ic.gold { background: var(--gold-soft); color: var(--gold-deep); }
.card-ic.red { background: var(--cinnabar-soft); color: var(--cinnabar); }

/* trust strip */
.trust { padding: clamp(26px, 4vw, 44px) 0; border-block: 1px solid var(--border); background: var(--paper); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.trust-item { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 600; font-size: .92rem; color: var(--ink2); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 10px 18px; }
.trust-item .ic { width: 17px; height: 17px; color: var(--jade-deep); }

/* ============ PROGRAM CARDS ============ */
.prog-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); } }
.prog-top { padding: 22px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prog-zh { font-family: var(--f-hanzi); font-weight: 700; font-size: 1.9rem; color: var(--jade-deep); line-height: 1; opacity: .9; }
.prog-body { padding: 14px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prog-body h3 { font-size: 1.28rem; font-weight: 700; }
.prog-body .who { font-size: .84rem; font-weight: 700; color: var(--gold-deep); }
.prog-body p { color: var(--ink2); font-size: .94rem; flex: 1; }
.prog-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.prog-meta span { font-size: .78rem; font-weight: 700; color: var(--jade-deep); background: var(--jade-soft-2); border: 1px solid var(--border-mint); padding: 4px 11px; border-radius: var(--r-pill); }
.prog-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--border); }

/* ============ STEPS (how it works) ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .steps, .steps.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps, .steps.three { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 28px 24px; position: relative; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--jade-grad); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; box-shadow: var(--shadow-jade); margin-bottom: 16px; }
.step h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 7px; }
.step p { color: var(--ink2); font-size: .93rem; }
.step-tag { position: absolute; top: 22px; right: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ============ SPLIT FEATURE (copy + visual) ============ */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.feature-split.rev > .fs-visual { order: -1; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; } .feature-split.rev > .fs-visual { order: 0; } }
.fs-copy h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); font-weight: 800; margin-bottom: 16px; }
.fs-copy > p { color: var(--ink2); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 50ch; margin-bottom: 24px; }
.section-dark .fs-copy > p { color: var(--on-dark2); }
.feat-list { display: flex; flex-direction: column; gap: 13px; }
.feat-list li { display: flex; gap: 13px; align-items: flex-start; }
.feat-list .f-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--jade-soft); color: var(--jade-deep); }
.feat-list .f-ic .ic { width: 20px; height: 20px; }
.feat-list b { display: block; font-family: var(--f-display); font-weight: 700; font-size: .99rem; }
.feat-list span { color: var(--ink2); font-size: .9rem; }
.section-dark .feat-list span { color: var(--on-dark2); }
.section-dark .feat-list .f-ic { background: rgba(143, 230, 176, .14); color: #8FE6B0; }
.fs-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px; }

/* check list (compact) */
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: .96rem; }
.checks .ic { color: var(--jade-deep); flex: none; margin-top: 4px; width: 17px; height: 17px; }

/* ============ UI MOCKUPS (portal cards, dashboard, phone) ============ */
.mock-stack { position: relative; display: grid; gap: 14px; max-width: 420px; margin-inline: auto; }
.mockcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 16px 18px; }
.mockcard.tilt-l { transform: rotate(-1.4deg); }
.mockcard.tilt-r { transform: rotate(1.2deg); }
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mc-title { display: flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 700; font-size: .92rem; }
.mc-title .ic { width: 17px; height: 17px; color: var(--jade-deep); }
.mc-tag { font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: var(--r-pill); background: var(--jade-soft); color: var(--jade-deep); }
.mc-tag.gold { background: var(--gold-soft); color: var(--gold-deep); }
.mc-tag.red { background: var(--cinnabar-soft); color: var(--cinnabar); }
.mc-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--paper-2); font-size: .87rem; }
.mc-row:first-of-type { border-top: 0; }
.mc-row .mc-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--mint); color: var(--jade-deep); flex: none; }
.mc-row .mc-ic .ic { width: 16px; height: 16px; }
.mc-row b { display: block; font-weight: 700; line-height: 1.25; }
.mc-row small { color: var(--muted); font-size: .78rem; }
.mc-row .end { margin-left: auto; font-weight: 700; color: var(--jade-deep); font-size: .8rem; white-space: nowrap; }
.mc-bar { height: 8px; border-radius: 6px; background: var(--paper-2); overflow: hidden; margin-top: 6px; }
.mc-bar i { display: block; height: 100%; border-radius: 6px; background: var(--jade-grad); }
.mc-bar.gold i { background: var(--gold-grad); }

/* desktop dashboard frame */
.dash { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xl); overflow: hidden; }
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: var(--paper-2); border-bottom: 1px solid var(--border); }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.dash-dot:nth-child(1) { background: #E8A9A0; } .dash-dot:nth-child(2) { background: #F0D49B; } .dash-dot:nth-child(3) { background: #A9D9B8; }
.dash-url { margin-left: 10px; font-size: .74rem; font-weight: 600; color: var(--muted); background: var(--card); border-radius: var(--r-pill); padding: 4px 14px; border: 1px solid var(--border); }
.dash-body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.dash-side { background: var(--mint); border-right: 1px solid var(--border-mint); padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; }
.dash-side a { display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 600; color: var(--ink2); padding: 8px 10px; border-radius: 10px; }
.dash-side a.on { background: var(--card); color: var(--jade-700); box-shadow: var(--shadow-sm); font-weight: 700; }
.dash-side .ic { width: 16px; height: 16px; }
.dash-main { padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.dash-main .mockcard { box-shadow: var(--shadow-sm); padding: 13px 15px; }
.dash-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 700px) { .dash-body { grid-template-columns: 1fr; } .dash-side { flex-direction: row; overflow-x: auto; } .dash-cols { grid-template-columns: 1fr; } }

/* phone frame (reuses real screenshots) */
.phone { position: relative; width: clamp(230px, 26vw, 300px); aspect-ratio: 1 / 2; background: #0f1a14; border-radius: 46px; padding: 9px; box-shadow: var(--shadow-xl), 0 0 0 2px rgba(11, 60, 35, .12); }
.phone-shot { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 38px; background: var(--mint); }

/* app screenshot rail */
.shots-rail { display: flex; gap: 16px; overflow-x: auto; padding: 10px 4px 22px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots-rail::-webkit-scrollbar { display: none; }
.shots-rail figure { flex: none; width: clamp(180px, 22vw, 230px); scroll-snap-align: center; }
.shots-rail img { width: 100%; border-radius: 26px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--mint); }
.shots-rail figcaption { text-align: center; font-size: .84rem; font-weight: 700; color: var(--ink2); margin-top: 10px; }

/* ============ AUDIENCE PATH CARDS ============ */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .paths { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .paths { grid-template-columns: 1fr; } }
.path-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 24px; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); } }
.path-card .who-zh { font-family: var(--f-hanzi); font-weight: 700; font-size: 1.5rem; color: var(--jade-deep); }
.path-card h3 { font-size: 1.14rem; }
.path-card p { color: var(--ink2); font-size: .9rem; flex: 1; }

/* ============ FAQ ============ */
.faq { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 19px; height: 19px; color: var(--jade-deep); transition: transform .25s var(--ease-out); flex: none; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--ink2); font-size: .96rem; }

/* ============ OUTCOME / TESTIMONIAL PLACEHOLDERS ============ */
.quote-card { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px; }
.quote-card .q-mark { font-family: var(--f-hanzi); font-size: 2.2rem; line-height: 1; color: var(--jade-soft); font-weight: 700; }
.quote-card blockquote { font-size: .98rem; color: var(--ink2); font-style: normal; }
.quote-who { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.quote-who .q-av { width: 40px; height: 40px; border-radius: 50%; background: var(--mint); border: 1px dashed var(--border-mint); display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: .8rem; }
.quote-who b { display: block; font-size: .9rem; }
.quote-who small { color: var(--muted); font-size: .78rem; }
.placeholder-note { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--gold-deep); background: var(--gold-soft); border-radius: var(--r-pill); padding: 4px 12px; }

/* ============ CTA BAND ============ */
.cta-band { background: radial-gradient(120% 100% at 50% 0%, var(--forest-2), var(--forest) 72%); color: var(--on-dark); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); position: relative; overflow: clip; text-align: center; }
.cta-band::before { content: "加油"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--f-hanzi); font-weight: 700; font-size: clamp(10rem, 26vw, 20rem); color: #fff; opacity: .035; line-height: 1; pointer-events: none; white-space: nowrap; }
.cta-band h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 800; margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--on-dark2); max-width: 52ch; margin: 0 auto 28px; font-size: 1.08rem; position: relative; }
.cta-band .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-band .bao { width: clamp(96px, 12vw, 140px); margin: 0 auto 14px; position: relative; }
.cta-band .bao img { width: 100%; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .4)); animation: bao-bob 5s var(--ease-in-out) infinite alternate; }
@keyframes bao-bob { to { transform: translateY(-10px) rotate(1.5deg); } }

/* ============ STAT ROW (no invented numbers — product facts only) ============ */
.stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 4vw, 56px); }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--jade-deep); line-height: 1; letter-spacing: -.03em; }
.stat span { font-size: .87rem; color: var(--ink2); font-weight: 600; }

/* ============ TABLE-ish schedule (portal preview) ============ */
.sched { width: 100%; border-collapse: collapse; font-size: .86rem; }
.sched th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.sched td { padding: 10px; border-bottom: 1px solid var(--paper-2); font-weight: 600; }
.sched td small { display: block; color: var(--muted); font-weight: 500; }
.pill-day { display: inline-block; font-weight: 800; color: var(--jade-deep); background: var(--jade-soft); border-radius: 8px; padding: 2px 9px; font-size: .78rem; }

/* misc */
.divider-cloud { display: flex; justify-content: center; padding: 8px 0; color: var(--border-mint); }
.hero-alt { font-size: .93rem; color: var(--muted); }
.hero-alt a { color: var(--jade-deep); font-weight: 700; border-bottom: 2px solid var(--jade-soft); }
.hero-alt a:hover { border-color: var(--jade); }

/* ============ iOS WIDGET SHOWCASE (ported from the previous landing) ============ */
.wg-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.wg-copy h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.wg-copy h2 .hl { color: var(--jade-deep); }
.wg-body { color: var(--ink2); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 46ch; margin-bottom: 24px; }
.wg-points { display: flex; flex-direction: column; gap: 14px; }
.wg-points li { display: flex; gap: 12px; align-items: flex-start; }
.wg-points .wg-pic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--jade-soft); color: var(--jade-deep); box-shadow: var(--hi); }
.wg-points .wg-pic .ic { width: 20px; height: 20px; }
.wg-points b { font-family: var(--f-display); font-weight: 700; display: block; font-size: 1rem; }
.wg-points span { color: var(--ink2); font-size: .95rem; }

/* device stage: lock screen in front, home screen behind */
.wg-stage { position: relative; min-height: 560px; }
.wg-phone { position: absolute; top: 50%; left: 50%; width: clamp(206px, 22vw, 250px); aspect-ratio: 1 / 2.05; border-radius: 44px; padding: 9px; background: linear-gradient(150deg, #1a2620, #0c130f); box-shadow: var(--shadow-xl), 0 0 0 2px rgba(11,60,35,.14); will-change: transform; }
.wg-phone::after { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 78px; height: 20px; background: #0a0f0c; border-radius: 999px; z-index: 4; }
.wg-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background:
  radial-gradient(120% 80% at 20% 0%, #BDF0CE 0%, transparent 55%),
  radial-gradient(120% 90% at 90% 100%, #8FE6B0 0%, transparent 55%),
  linear-gradient(160deg, #DFF6E6, #C7EED6 60%, #A9E4C0); }
.wg-screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 120%, rgba(21,162,74,.22), transparent 70%); }
.wg-home { transform: translate(-14%, -52%) rotate(3deg); z-index: 3; }
.wg-lock { transform: translate(-86%, -44%) rotate(-3deg); z-index: 1; }

.wg-card { background: rgba(247,255,246,.96); border-radius: 17px; box-shadow: 0 10px 24px -12px rgba(6,40,24,.5); }
.wg-tile { display: grid; place-items: center; font-family: var(--f-hanzi); font-weight: 700; color: #fff; background: linear-gradient(135deg, #59D86C, #159447); border-radius: 7px; flex: none; }

/* lock screen */
.wg-lockscreen { padding: 30px 16px 18px; display: flex; flex-direction: column; align-items: center; }
.wg-ls-date { font-weight: 600; color: rgba(8,40,24,.7); font-size: .76rem; margin-top: 18px; }
.wg-ls-time { font-family: var(--f-display); font-weight: 700; color: #0a2e1a; font-size: 4rem; line-height: .9; letter-spacing: -.03em; }
.wg-acc { margin-top: auto; width: 100%; }
.wg-acc-rect { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 15px; background: rgba(255,255,255,.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wg-acc-rect .wg-tile { width: 22px; height: 22px; font-size: 13px; }
.wg-acc-hz { font-family: var(--f-hanzi); font-weight: 700; color: #0a2e1a; font-size: 1.2rem; line-height: 1.05; }
.wg-acc-py { font-family: var(--f-display); font-weight: 700; color: var(--jade-deep); font-size: .76rem; }
.wg-acc-m { color: rgba(8,40,24,.7); font-size: .68rem; font-weight: 600; margin-top: 1px; }

/* home screen */
.wg-homescreen { padding: 34px 14px 14px; display: flex; flex-direction: column; gap: 11px; }
.wg-vocab { padding: 12px 13px; }
.wg-w-head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.wg-w-head .wg-tile { width: 18px; height: 18px; font-size: 11px; }
.wg-w-level { font-family: var(--f-display); font-weight: 800; font-size: .56rem; letter-spacing: .14em; color: var(--ink2); }
.wg-w-body { display: flex; align-items: center; gap: 12px; }
.wg-w-hz { font-family: var(--f-hanzi); font-weight: 500; color: var(--ink); font-size: 2.5rem; line-height: 1; }
.wg-w-py { display: block; font-family: var(--f-display); font-weight: 700; color: var(--jade-deep); font-size: .92rem; }
.wg-w-m { display: block; color: var(--ink2); font-size: .76rem; font-weight: 600; margin-top: 2px; }
.wg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.wg-small { padding: 11px 12px; display: flex; flex-direction: column; min-height: 96px; }
.wg-due-streak { font-family: var(--f-display); font-weight: 700; color: var(--gold-deep); font-size: .6rem; letter-spacing: .06em; }
.wg-due-n { font-family: var(--f-display); font-weight: 800; color: var(--ink); font-size: 2rem; line-height: 1; margin-top: 2px; }
.wg-due-lab { color: var(--ink2); font-size: .64rem; font-weight: 600; }
.wg-due-btn { margin-top: auto; text-align: center; background: var(--jade); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: .64rem; padding: 5px; border-radius: 9px; }
.wg-goal { align-items: center; justify-content: center; gap: 6px; }
.wg-ring-wrap { position: relative; display: grid; place-items: center; }
.wg-ring { width: 62px; height: 62px; transform: rotate(-90deg); }
.wg-ring-bg { fill: none; stroke: rgba(21,162,74,.16); stroke-width: 8; }
.wg-ring-fg { fill: none; stroke: var(--jade); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 163; stroke-dashoffset: 163; }
.js .wg-stage.in .wg-ring-fg { animation: ring-fill 1.3s var(--ease-out) .4s forwards; }
@keyframes ring-fill { to { stroke-dashoffset: 49; } }
.wg-goal-c { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.wg-goal-n { font-family: var(--f-display); font-weight: 800; color: var(--ink); font-size: .92rem; }
.wg-goal-d { color: var(--ink2); font-size: .56rem; font-weight: 600; }
.wg-goal-lab { color: var(--ink2); font-size: .62rem; font-weight: 700; }
.wg-dock { margin-top: auto; display: flex; justify-content: center; gap: 12px; padding: 8px; border-radius: 18px; background: rgba(255,255,255,.34); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wg-dock img, .wg-dock i { width: 30px; height: 30px; border-radius: 8px; display: block; }
.wg-dock i { background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.25)); }

.wg-flip { animation: wg-flip .5s var(--ease-out); }
@keyframes wg-flip { 0% { opacity: 0; transform: translateY(7px) rotateX(-32deg); } 100% { opacity: 1; transform: none; } }
.wg-lock { animation: wg-bob-a 6s var(--ease-in-out) infinite alternate; }
.wg-home { animation: wg-bob-b 7s var(--ease-in-out) infinite alternate; }
@keyframes wg-bob-a { to { transform: translate(-86%, -40%) rotate(-3deg); } }
@keyframes wg-bob-b { to { transform: translate(-14%, -56%) rotate(3deg); } }

@media (max-width: 900px) {
  .wg-grid { grid-template-columns: 1fr; gap: clamp(34px, 8vw, 54px); }
  .wg-body { max-width: none; }
  .wg-stage { min-height: 500px; }
}
@media (max-width: 560px) {
  .wg-phone { width: clamp(148px, 44vw, 196px); }
  .wg-home { transform: translate(-22%, -50%) rotate(3deg); }
  .wg-lock { transform: translate(-78%, -50%) rotate(-3deg); }
  .wg-stage { min-height: 430px; }
}
@media (prefers-reduced-motion: reduce) {
  .wg-lock, .wg-home { animation: none; }
  .js .wg-stage.in .wg-ring-fg { animation: none; stroke-dashoffset: 49; }
  .wg-flip { animation: none; }
}

/* ============ ANIMATED BAO (sprite strips from the app's v3 motion frames) ============ */
.bao-anim { width: 280px; height: 373px; background-repeat: no-repeat; background-position: 0 0; flex: none; }
.bao-anim.celebrate { background-image: url(/assets/bao-celebrate-strip.webp); background-size: 2240px 373px; animation: bao-cel 1.28s steps(8) infinite; }
@keyframes bao-cel { to { background-position-x: -2240px; } }
.bao-anim.walk { background-image: url(/assets/bao-walk-strip.webp); background-size: 1120px 373px; animation: bao-walkcycle .8s steps(4) infinite; }
@keyframes bao-walkcycle { to { background-position-x: -1120px; } }
.bao-stage { position: relative; display: grid; place-items: center; padding: 20px 0 34px; }
.bao-stage::after { content: ""; position: absolute; bottom: 22px; width: 180px; height: 26px; border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(11, 60, 35, .18), transparent 70%); }
.bao-stage .seal { position: absolute; top: 6%; right: 12%; }
@media (max-width: 560px) { .bao-anim { transform: scale(.78); transform-origin: bottom center; } }
@media (prefers-reduced-motion: reduce) { .bao-anim { animation: none !important; } }

/* Bao journey moments: pose thumbnails in place of icons */
.bao-moments { display: flex; flex-direction: column; gap: 16px; }
.bao-moments li { display: flex; gap: 14px; align-items: flex-start; }
.bao-moments .bm-pic { flex: none; width: 52px; height: 62px; display: grid; place-items: center; background: var(--mint); border: 1px solid var(--border-mint); border-radius: 14px; overflow: hidden; }
.bao-moments .bm-pic img { width: 40px; height: auto; }
.bao-moments b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1rem; }
.bao-moments span { color: var(--ink2); font-size: .92rem; }

/* costume rail (one Bao per arena) */
.bao-rail { display: flex; align-items: flex-end; justify-content: flex-start; gap: clamp(6px, 1.4vw, 18px); margin-top: clamp(28px, 4vw, 44px); padding: 4px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.bao-rail::-webkit-scrollbar { display: none; }
.bao-rail img { width: clamp(46px, 5vw, 72px); height: auto; flex: none; transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .bao-rail img:hover { transform: translateY(-6px) scale(1.12); } }
@media (min-width: 980px) { .bao-rail { justify-content: center; } }
.bao-rail-note { text-align: center; color: var(--ink2); font-size: .93rem; margin-top: 6px; padding-inline: 20px; }
