/* =========================================================
   牙齿小宇宙 · 刷牙小卫士样式（全部 .br- 前缀）
   ========================================================= */

/* ---------------- 外壳 ---------------- */
.br-root { min-width: 0; }
.br-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(12px, 2.4vw, 22px) 0 30px;
  min-width: 0;
}

/* ---------------- 头部 ---------------- */
.br-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}
.br-hero__text { max-width: 720px; min-width: 0; }
.br-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.br-eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 122, 107, .16);
}
.br-hero__title {
  margin-top: 10px;
  font-family: var(--font-round);
  font-size: clamp(27px, 5.2vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: .01em;
}
.br-hero__title em {
  font-style: normal;
  color: var(--coral-deep);
  padding: 0 2px;
  background: linear-gradient(transparent 56%, rgba(255, 201, 77, .5) 56%, rgba(255, 201, 77, .5) 92%, transparent 92%);
  white-space: nowrap;
}
.br-hero__sub {
  margin-top: 8px;
  max-width: 620px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.br-hero__sticker {
  flex: 0 0 auto;
  width: 76px; height: 76px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 52% 46% 50% 48% / 48% 54% 46% 52%;
  background: linear-gradient(155deg, #F0D49A, #C8A24A);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 20px rgba(224, 162, 30, .28);
  color: #6B4B00;
  font-weight: 800;
  line-height: 1;
  transform: rotate(-8deg);
  user-select: none;
}
.br-hero__sticker b { font-size: 26px; letter-spacing: -.02em; }
.br-hero__sticker span { margin-top: 3px; font-size: 11px; letter-spacing: .08em; }

/* ---------------- 模式 Tab ---------------- */
.br-tabs {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-1);
}
.br-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background .2s var(--ease-out), color .2s, transform .2s var(--ease-spring), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.br-tab:hover { background: var(--bg-soft); }
.br-tab:active { transform: scale(.97); }
.br-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #C25B4E, #9D1F2D);
  box-shadow: 0 8px 18px rgba(140, 0, 13, .22);
}
.br-tab__ico { display: inline-flex; width: 17px; height: 17px; flex: 0 0 auto; }
.br-tab__ico svg { width: 100%; height: 100%; }
.br-tab__meta {
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(45, 42, 38, .07);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-faint);
}
.br-tab.is-active .br-tab__meta { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------------- 布局 ---------------- */
.br-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}
.br-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.br-panel {
  position: relative;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.br-panel.is-active { animation: br-panel-in .4s var(--ease-out) both; }
@keyframes br-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- 舞台 ---------------- */
.br-follow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: clamp(12px, 2.2vw, 20px);
  min-width: 0;
}
.br-stage {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 150, 120, .22);
  background:
    radial-gradient(130% 100% at 50% -12%, #FFFDF8 0%, #FFF3E0 52%, #FFE9CF 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .9), inset 0 -12px 28px rgba(214, 146, 96, .1);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.br-stage--challenge { cursor: grab; max-width: 100%; margin: 0 auto; width: 100%; }
.br-stage--challenge.is-brushing { cursor: grabbing; }
.br-stage__fig {
  display: flex;
  justify-content: center;
  padding: 6px 8px 0;
  min-width: 0;
}
.br-stage__fig .br-mouth {
  display: block;
  width: 100%;
  height: auto;
  max-width: 560px;
  margin: 0 auto;
  overflow: visible;
}
.br-stage--challenge .br-mouth { max-width: min(620px, 100%); }
.br-stage--follow .br-mouth { max-height: min(44vh, 420px); }
.br-stage__tag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 20px);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(120, 80, 40, .08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-soft);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.br-stage__tag-dot {
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 122, 107, .18);
}
.br-stage__tag-dot--teal { background: var(--teal); box-shadow: 0 0 0 3px rgba(31, 182, 166, .18); }
.br-stage__caption {
  position: absolute;
  left: 50%;
  bottom: 9px;
  z-index: 3;
  transform: translateX(-50%);
  width: max-content;
  max-width: 94%;
  pointer-events: none;
  text-align: center;
}
.br-chant {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(45, 42, 38, .86);
  color: #FFF7EC;
  font-family: var(--font-round);
  font-size: clamp(16px, 4.2vw, 21px);
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(45, 42, 38, .22);
}
.br-chant.is-pop { animation: br-chant-pop .5s var(--ease-spring); }
@keyframes br-chant-pop {
  0% { transform: scale(.86); opacity: .35; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
.br-stage__hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
  white-space: nowrap;
  pointer-events: none;
  animation: br-hint-bob 2.2s ease-in-out infinite;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.br-stage__hint.is-gone {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  animation: none;
}
@keyframes br-hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

/* ---------------- 口腔插画 ---------------- */
.br-lip { stroke: #E5816F; stroke-width: 2.4; }
.br-lip__inner { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: 1.6; }
.br-cavity { stroke: rgba(94, 44, 38, .55); stroke-width: 2; }
.br-cavity__glow { fill: rgba(255, 220, 180, .1); }
.br-throat { fill: rgba(72, 26, 22, .26); }
.br-lip__shine { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 5; stroke-linecap: round; }
.br-lip__shine--b { stroke-width: 4; opacity: .55; }
.br-tongue__body { stroke: #DE6472; stroke-width: 1.8; }
.br-tongue__line { fill: none; stroke: rgba(160, 60, 75, .28); stroke-width: 2.4; stroke-linecap: round; }
.br-tongue__shine { fill: rgba(255, 255, 255, .38); }
.br-gum { fill: none; stroke-width: 19; stroke-linecap: round; }
.br-tooth {
  stroke: #E3D1B8;
  stroke-width: 1.6;
  transition: stroke .28s var(--ease-out), stroke-width .28s var(--ease-out);
}
.br-tooth__shine { fill: rgba(255, 255, 255, .55); }
.br-tooth__edge { stroke: rgba(213, 192, 160, .65); stroke-width: 1.2; stroke-linecap: round; }

/* 阶段高亮：牙齿描边 */
.br-mouth[data-stage="0"] .br-teeth--upper .br-tooth { stroke: var(--coral); stroke-width: 2.6; }
.br-mouth[data-stage="1"] .br-teeth--lower .br-tooth { stroke: var(--coral); stroke-width: 2.6; }
.br-mouth[data-stage="2"] .br-teeth .br-tooth { stroke: #E8A22B; stroke-width: 2.4; }
.br-mouth[data-stage="3"] .br-tongue__body { stroke: var(--teal); stroke-width: 3; }

/* 阶段引导虚线 */
.br-guides { pointer-events: none; }
.br-guide {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity .3s var(--ease-out), stroke .3s;
  animation: br-dash 2.4s linear infinite;
}
.br-guide--upper,
.br-guide--lower { stroke: var(--coral); stroke-width: 6; stroke-dasharray: 2 12; }
.br-guide--inner-upper,
.br-guide--inner-lower { stroke: var(--teal); stroke-width: 5; stroke-dasharray: 2 11; }
.br-guide--tongue { stroke: var(--teal); stroke-width: 4; stroke-dasharray: 3 10; }
.br-mouth[data-stage="0"] .br-guide--upper { opacity: .95; }
.br-mouth[data-stage="1"] .br-guide--lower { opacity: .95; }
.br-mouth[data-stage="2"] .br-guide--upper,
.br-mouth[data-stage="2"] .br-guide--lower {
  opacity: .95;
  stroke: var(--sun);
  stroke-width: 8;
  stroke-dasharray: 12 8;
}
.br-mouth[data-stage="3"] .br-guide--inner-upper,
.br-mouth[data-stage="3"] .br-guide--inner-lower,
.br-mouth[data-stage="3"] .br-guide--tongue { opacity: .9; }
@keyframes br-dash { to { stroke-dashoffset: -30; } }

/* ---------------- 牙刷 ---------------- */
.br-brush {
  pointer-events: none;
  filter: drop-shadow(0 6px 6px rgba(70, 40, 25, .18));
  transition: opacity .25s var(--ease-out);
}
.br-brush__inner { transform-box: fill-box; transform-origin: 50% 90%; }
.br-brush--idle .br-brush__inner { animation: br-brush-bob 2.4s ease-in-out infinite; }
@keyframes br-brush-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
.br-brush__bristles { fill: #FFFCF3; stroke: #DCE7E3; stroke-width: 1.3; }
.br-brush__bristle-line { fill: none; stroke: #E3EDEA; stroke-width: 1.1; }
.br-brush__grip-line { fill: rgba(255, 255, 255, .4); }
.br-brush__handle-hi { fill: rgba(255, 255, 255, .35); }
.br-brush__foam { fill: #fff; opacity: .85; }
.br-foam { animation: br-foam-float 2.8s ease-in-out infinite; }
.br-foam--b { animation-delay: .5s; }
.br-foam--c { animation-delay: 1.05s; }
@keyframes br-foam-float {
  0%, 100% { transform: translate(0, 0); opacity: .75; }
  50% { transform: translate(1px, -3px); opacity: .4; }
}
.br-noanim .br-brush { opacity: .92; }

/* ---------------- 牙菌斑 / 泡泡 ---------------- */
.br-plaque__inner { transform-box: fill-box; transform-origin: center; transition: transform .28s var(--ease-spring), opacity .28s; }
.br-plaque.is-gone .br-plaque__inner { transform: scale(0); opacity: 0; }
.br-plaque__blob { fill: #F0C64F; stroke: #D6A32C; stroke-width: 1.1; }
.br-plaque__dot { fill: #C98F25; }
.br-bubble {
  fill: #fff;
  opacity: 0;
  animation: br-bubble .68s var(--ease-out) forwards;
  animation-delay: var(--bd, 0s);
}
.br-spark {
  fill: #F0D49A;
  opacity: 0;
  animation: br-spark .62s var(--ease-out) forwards;
}
@keyframes br-spark {
  0% { transform: scale(.3) rotate(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(var(--bx, 0px), var(--by, -18px)) scale(1.1) rotate(100deg); opacity: 0; }
}
@keyframes br-bubble {
  0% { transform: translate(0, 0) scale(.35); opacity: 0; }
  22% { opacity: .95; }
  100% { transform: translate(var(--bx, 0px), var(--by, -22px)) scale(1.15); opacity: 0; }
}

/* ---------------- 跟练控制区 ---------------- */
.br-follow__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.br-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}
.br-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--ink-faint);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background .25s, color .25s, border-color .25s;
}
.br-step__num {
  display: grid;
  place-items: center;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-faint);
  transition: background .25s, color .25s, border-color .25s;
}
.br-step.is-active { background: var(--coral-soft); border-color: rgba(255, 122, 107, .32); color: var(--coral-deep); }
.br-step.is-active .br-step__num { background: var(--coral); border-color: var(--coral); color: #fff; }
.br-step.is-done { color: var(--teal-deep); }
.br-step.is-done .br-step__num { background: var(--teal); border-color: var(--teal); color: #fff; }

.br-coach { padding: 0 2px; min-width: 0; }
.br-coach__kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--coral-deep);
}
.br-coach__title {
  margin-top: 2px;
  font-family: var(--font-round);
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 800;
  line-height: 1.2;
}
.br-coach__sub {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.br-timer { display: flex; align-items: center; gap: 12px; min-width: 0; }
.br-ring { position: relative; width: 78px; height: 78px; flex: 0 0 auto; }
.br-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.br-ring__track { fill: none; stroke: var(--bg-soft); stroke-width: 7; }
.br-ring__bar {
  fill: none;
  stroke: var(--coral);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset .22s linear, stroke .3s;
}
.br-ring__time {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.br-ring__time b {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: .01em;
}
.br-ring__time span { margin-top: 3px; font-size: 9px; letter-spacing: .14em; color: var(--ink-faint); }
.br-panel.is-paused .br-ring__bar { stroke: #C6B9A8; }
.br-panel.is-paused .br-brush { opacity: .55; }
.br-panel.is-running .br-ring__bar { stroke: var(--coral); }

.br-actions { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.br-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  transition: transform .18s var(--ease-spring), box-shadow .2s, background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.br-btn:active { transform: scale(.96); }
.br-btn--start {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  background: linear-gradient(135deg, #C25B4E, #9D1F2D);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(140, 0, 13, .22);
}
.br-btn--start:hover { box-shadow: 0 14px 28px rgba(140, 0, 13, .28); }
.br-btn--start.is-running {
  background: linear-gradient(135deg, #4A443D, #2D2A26);
  box-shadow: 0 10px 22px rgba(45, 42, 38, .22);
}
.br-btn--start.is-done {
  background: linear-gradient(135deg, #2EC4B4, #24614D);
  box-shadow: 0 10px 22px rgba(15, 147, 132, .26);
}
.br-btn__ico { display: inline-flex; width: 15px; height: 15px; line-height: 1; }
.br-btn__ico svg { width: 100%; height: 100%; }
.br-btn--icon svg { width: 20px; height: 20px; }
.br-btn--mini { display: inline-flex; align-items: center; gap: 6px; }
.br-btn--mini svg { width: 15px; height: 15px; }
.br-btn--icon {
  flex: 0 0 50px;
  width: 50px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  font-size: 20px;
  box-shadow: var(--shadow-1);
}
.br-btn--icon:hover { background: var(--bg-soft); color: var(--ink); }

.br-follow__aux {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.br-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  -webkit-tap-highlight-color: transparent;
}
.br-switch__track {
  position: relative;
  flex: 0 0 auto;
  width: 36px; height: 22px;
  border-radius: var(--radius-pill);
  background: var(--teal);
  transition: background .2s;
}
.br-switch__track i {
  position: absolute;
  top: 2px; left: 18px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transition: left .2s var(--ease-spring);
}
.br-switch[aria-pressed="false"] .br-switch__track { background: #D8CFC3; }
.br-switch[aria-pressed="false"] .br-switch__track i { left: 2px; }
.br-status {
  flex: 1 1 100%;
  min-height: 19px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* ---------------- 通关庆祝层 ---------------- */
.br-finish {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: auto;
  border-radius: inherit;
  background: rgba(255, 247, 236, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .3s var(--ease-out);
  -webkit-overflow-scrolling: touch;
}
.br-finish.is-in { opacity: 1; }
.br-finish[hidden] { display: none !important; }
.br-finish__card {
  width: min(430px, 100%);
  margin: auto;
  padding: clamp(18px, 3.6vw, 26px) clamp(16px, 3.6vw, 24px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-3);
  text-align: center;
  transform: translateY(16px) scale(.95);
  transition: transform .45s var(--ease-spring);
}
.br-finish.is-in .br-finish__card { transform: none; }
.br-medal { width: 86px; margin: 0 auto 2px; }
.br-medal svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(224, 162, 30, .26));
  animation: br-medal-in .7s var(--ease-spring) both;
}
@keyframes br-medal-in {
  from { transform: scale(.4) rotate(-14deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.br-finish__kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--teal-deep);
}
.br-finish__title {
  margin-top: 4px;
  font-family: var(--font-round);
  font-size: clamp(21px, 3.6vw, 26px);
  font-weight: 800;
  line-height: 1.25;
}
.br-finish__sub {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.br-chant-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 2px;
  text-align: left;
}
.br-chant-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 12.5px;
  font-weight: 700;
}
.br-chant__ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.br-chant__ico--coral { background: var(--coral-soft); color: var(--coral-deep); }
.br-chant__ico--sky { background: var(--sky-soft); color: #2C89C0; }
.br-chant__ico--sun { background: var(--sun-soft); color: #8A6218; }
.br-chant__ico--teal { background: var(--teal-soft); color: var(--teal-deep); }
.br-finish__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.br-finish__actions .btn { flex: 1 1 132px; min-height: 48px; }

/* 星星 */
.br-stars { display: flex; justify-content: center; gap: 6px; margin: 2px 0 6px; }
.br-star {
  width: 40px; height: 40px;
  fill: #F3E7D4;
  stroke: #E5D6BF;
  stroke-width: 1.2;
  transform: scale(.86);
  opacity: .7;
}
.br-star.is-on {
  fill: #C8A24A;
  stroke: #EFB63C;
  transform: scale(1);
  opacity: 1;
  filter: drop-shadow(0 4px 8px rgba(224, 162, 30, .3));
  animation: br-star-pop .5s var(--ease-spring) both;
}
.br-star.is-on:nth-child(2) { animation-delay: .1s; }
.br-star.is-on:nth-child(3) { animation-delay: .2s; }
@keyframes br-star-pop {
  from { transform: scale(.2) rotate(-16deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

/* 要点 */
.br-points {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  text-align: left;
}
.br-points h3 { margin-bottom: 6px; font-size: 12.5px; font-weight: 800; color: var(--teal-deep); }
.br-points ul { display: grid; gap: 5px; }
.br-points li {
  position: relative;
  padding-left: 15px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.br-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: .65em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------------- 刷干净挑战 ---------------- */
.br-challenge {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(12px, 2.2vw, 18px);
  min-width: 0;
}
.br-ch-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.br-ch-stat { display: flex; flex-direction: column; line-height: 1.15; }
.br-ch-stat__label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ink-faint);
}
.br-ch-stat__num { font-size: inherit; color: inherit; letter-spacing: inherit; }
.br-ch-stat b {
  white-space: nowrap;
  font-size: 20px;
  font-weight: 800;
  color: var(--coral-deep);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.br-ch-bar {
  position: relative;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.br-ch-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--coral), #FFB07C);
  transition: width .16s linear;
}
.br-ch-bar i.is-done { background: linear-gradient(90deg, var(--teal), #7FD9C9); }
.br-ch-bar__mark {
  position: absolute;
  top: -3px; bottom: -3px;
  left: 95%;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--ink);
  opacity: .28;
}
.br-ch-clock { display: inline-flex; width: 15px; height: 15px; color: var(--ink-faint); }
.br-ch-clock svg { width: 100%; height: 100%; }
.br-hint-ico { display: inline-flex; width: 15px; height: 15px; color: var(--coral-deep); }
.br-hint-ico svg { width: 100%; height: 100%; }
.br-ch-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.br-ch-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.br-ch-left { font-size: 12px; color: var(--ink-soft); }
.br-ch-left b { color: var(--coral-deep); font-size: 14px; }
.br-ch-actions { display: flex; align-items: center; gap: 8px; }
.br-ch-chip {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.br-btn--mini {
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}
.br-btn--mini:hover { background: var(--bg-soft); color: var(--ink); }

/* ---------------- 知识小卡 ---------------- */
.br-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.br-side__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px;
}
.br-side__head h2 { font-family: var(--font-round); font-size: 18px; font-weight: 800; }
.br-side__head span { font-size: 11px; letter-spacing: .04em; color: var(--ink-faint); }
.br-cards { display: grid; gap: 10px; min-width: 0; }
.br-tip {
  display: flex;
  gap: 11px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
}
.br-tip--accent {
  background: linear-gradient(135deg, #FFF9EA, #FFF2D8);
  border-color: rgba(224, 162, 30, .28);
}
.br-tip__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 13px;
}
.br-tip__icon svg { width: 21px; height: 21px; }
.br-tip__icon--coral { background: var(--coral-soft); color: var(--coral-deep); }
.br-tip__icon--teal { background: var(--teal-soft); color: var(--teal-deep); }
.br-tip__icon--sky { background: var(--sky-soft); color: #2C89C0; }
.br-tip__icon--sun { background: var(--sun-soft); color: #8A6218; }
.br-tip__icon--rose { background: #FDEAF1; color: #C4588A; }
.br-tip__icon--lav { background: var(--lav); color: var(--lav-deep); }
.br-tip__body { min-width: 0; }
.br-tip__title { font-size: 13px; font-weight: 800; line-height: 1.4; }
.br-tip__text { margin-top: 2px; font-size: 11.5px; line-height: 1.65; color: var(--ink-soft); }
.br-side__note { padding: 0 6px; font-size: 10.5px; line-height: 1.6; color: var(--ink-faint); }

/* ---------------- 断点：iPad ---------------- */
@media (min-width: 640px) {
  .br-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-follow__side { gap: 10px; }
}
@media (min-width: 760px) {
  .br-follow {
    grid-template-columns: minmax(0, 1.3fr) minmax(236px, .94fr);
    align-items: center;
    gap: 18px;
  }
  .br-coach__sub { min-height: 42px; }
  .br-status { min-height: 0; }
}

/* ---------------- 断点：桌面 ---------------- */
@media (min-width: 1024px) {
  .br-grid { grid-template-columns: minmax(0, 1fr) 318px; gap: 22px; }
  .br-side {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    max-height: calc(100vh - var(--header-h) - 38px);
    overflow-y: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .br-side::-webkit-scrollbar { display: none; }
  .br-cards { grid-template-columns: minmax(0, 1fr); }
  .br-challenge { max-width: 748px; margin-inline: auto; }
  .br-hero__sub { font-size: 13.5px; }
  .br-stage__fig { padding: 10px 12px 0; }
}

/* ---------------- 断点：手机 ---------------- */
@media (max-width: 759px) {
  .br-step { order: 1; }
  .br-timer { order: 2; }
  .br-coach { order: 3; }
  .br-follow__aux { order: 4; }
  .br-steps { order: 1; }
}
@media (max-width: 639px) {
  .br-hero__sticker { display: none; }
  .br-shell { gap: 10px; }
  .br-hero__title { margin-top: 8px; }
  .br-hero__sub { margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .br-eyebrow { font-size: 10px; padding: 4px 10px; }
  .br-tabs { display: flex; align-self: stretch; width: 100%; }
  .br-tab { flex: 1; padding: 0 10px; }
  .br-hero__title { font-size: clamp(25px, 7.2vw, 31px); }
  .br-hero__sub { font-size: 12.5px; }
  .br-follow { padding: 12px; gap: 10px; }
  .br-challenge { padding: 12px; gap: 10px; }
  .br-stage__fig { padding: 4px 6px 0; }
  .br-coach__title { font-size: 21px; }
  .br-steps { gap: 4px; }
  .br-step { padding: 5px 2px; font-size: 10px; }
  .br-follow__side { gap: 8px; }
  .br-ch-top { gap: 10px; }
  .br-finish { padding: 10px; }
  .br-finish__card { border-radius: 22px; }
  .br-medal { width: 72px; }
  .br-star { width: 34px; height: 34px; }
  .br-points { padding: 10px 12px; }
}
@media (max-width: 379px) {
  .br-tab__meta { display: none; }
  .br-step__label { font-size: 9px; }
  .br-chant { font-size: 15px; padding: 6px 12px; }
}

/* ---------------- 动效偏好 / 切走暂停 ---------------- */
.br-paused .br-mouth *,
.br-paused .br-finish *,
.br-paused .br-hero__sticker { animation-play-state: paused !important; }
.br-paused .br-brush { opacity: .5; }

@media (prefers-reduced-motion: reduce) {
  .br-brush--idle .br-brush__inner,
  .br-guide,
  .br-stage__hint,
  .br-foam { animation: none; }
  .br-finish__card,
  .br-panel.is-active { transform: none; }
}
