/* ===========================================================
   数学小天地 · 绘本级全屏沉浸小天地样式表 (sanctuary.css)
   零外部网络字体/图片 · 手绘水彩插画 + 真实木桌肌理 + 蜂蜜焦糖质感
   所有交互热区 ≥ 48px · 清晰 :focus-visible · 完整支持 prefers-reduced-motion
   =========================================================== */

:root {
  --cream: #fffaf0;
  --parchment: rgba(255, 251, 242, 0.92);
  --wood-border: #d9a76a;
  --wood-dark: #5c3618;
  --ink: #3b2614;
  --ink-soft: #75563b;
  --honey-1: #ffd466;
  --honey-2: #f59e0b;
  --honey-3: #b45309;
  --berry-1: #fda4af;
  --berry-2: #f43f5e;
  --mint-1: #6ee7b7;
  --mint-2: #10b981;
  --sky-1: #93c5fd;
  --sky-2: #3b82f6;
  --shadow-warm: 0 14px 34px rgba(92, 54, 24, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Hiragino Sans GB", "Yuanti SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fdf4e3;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input { font-family: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }

button:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

/* ---------- 60fps 氛围与星尘画布 ---------- */
.sn-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

/* ---------- 全屏绘本主壳与双场景背景 ---------- */
.sn-app {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.sn-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.35s ease;
}
.sn-bg-valley {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 238, 0.25) 0%, rgba(255, 248, 232, 0.08) 55%, rgba(60, 88, 42, 0.18) 100%),
    url("/tower/assets/valley-bg.webp");
}
.sn-bg-workbench {
  background-image:
    radial-gradient(circle at 50% 42%, rgba(255, 250, 236, 0.22) 0%, rgba(120, 68, 24, 0.22) 100%),
    url("/tower/assets/workbench-bg.webp");
}
.sn-bg-rulework {
  background-image:
    radial-gradient(circle at 50% 42%, rgba(246, 255, 250, 0.24) 0%, rgba(34, 94, 68, 0.16) 100%),
    url("/tower/assets/rule-workshop-bg.webp");
}
.sn-bg-cloudwork {
  background-image:
    radial-gradient(circle at 50% 42%, rgba(240, 249, 255, 0.26) 0%, rgba(14, 116, 144, 0.16) 100%),
    url("/tower/assets/cloud-workshop-bg.webp");
}

/* ---------- 极简悬浮绘本 HUD ---------- */
.sn-hud {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 8px;
  pointer-events: none;
}
.sn-hud-left, .sn-hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.sn-greet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(252, 211, 77, 0.8);
  box-shadow: 0 6px 18px rgba(120, 72, 24, 0.12);
  font-size: 15px;
  color: var(--wood-dark);
}
.sn-greet-pill em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 999px;
}

.sn-pill-wood {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 251, 242, 0.94);
  border: 2px solid #e2b478;
  color: var(--wood-dark);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 4px 0 #c9924f, 0 8px 18px rgba(92, 54, 24, 0.14);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.sn-pill-wood:hover { transform: translateY(-1px); }
.sn-pill-wood:active { transform: translateY(2px); box-shadow: 0 2px 0 #c9924f; }
.sn-pill-wood.is-accent {
  background: linear-gradient(180deg, var(--honey-1) 0%, var(--honey-2) 100%);
  border-color: var(--honey-3);
  color: #4a2404;
  box-shadow: 0 4px 0 var(--honey-3);
}

.sn-round-btn {
  position: relative;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(255, 252, 244, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(226, 180, 120, 0.85);
  box-shadow: 0 4px 0 rgba(180, 122, 52, 0.35), 0 8px 16px rgba(92, 54, 24, 0.12);
  transition: transform 0.15s ease;
}
.sn-round-btn:hover { transform: translateY(-2px); }
.sn-round-btn:active { transform: translateY(2px) scale(0.95); }
.sn-round-btn.is-parent { opacity: 0.84; font-size: 18px; }
.sn-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f43f5e;
  color: #ffffff;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

/* =========================================================
   Scene A：🌿 魔法山谷（手绘绘本互动草坡）
   ========================================================= */
.sn-valley-stage {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
}

.sn-valley-title {
  text-align: center;
  padding: 8px 22px;
  border-radius: 26px;
  background: rgba(255, 252, 244, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 26px rgba(120, 82, 32, 0.1);
}
.sn-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  color: #b45309;
  letter-spacing: 0.5px;
}
.sn-valley-title h1 {
  margin: 4px 0 2px;
  font-size: clamp(24px, 3.6vw, 34px);
  color: #3f240c;
  letter-spacing: 0.5px;
}
.sn-valley-title p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #6d4f32;
}

/* 立体草坡主角区：蜜糖积木塔 + 可摸头布丁熊 */
.sn-meadow-diorama {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(18px, 5vw, 56px);
  padding: 6px 0;
}

.sn-tower-spot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px 12px;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sn-tower-spot:hover { transform: translateY(-6px) scale(1.025); }
.sn-tower-spot:active { transform: translateY(0) scale(0.98); }

.sn-tower-aura {
  position: absolute;
  top: 10%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.55) 0%, rgba(251, 191, 36, 0) 70%);
  pointer-events: none;
  animation: sn-pulse-soft 3.4s ease-in-out infinite;
}
.sn-tower-spot.is-tower-lit .sn-tower-aura {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.85) 0%, rgba(251, 191, 36, 0.25) 45%, rgba(251, 191, 36, 0) 72%);
}

.sn-tower-img {
  position: relative;
  z-index: 2;
  width: clamp(148px, 18.5vw, 188px);
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(72, 42, 12, 0.26));
  animation: sn-float-gentle 4.8s ease-in-out infinite;
}

.sn-tower-orbs {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: -10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 251, 240, 0.94);
  border: 2px solid #f5be5b;
  box-shadow: 0 6px 14px rgba(92, 54, 24, 0.16);
}
.sn-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f3e6cf;
  border: 1.5px solid #dec59c;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.sn-orb.is-lit {
  background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%);
  border-color: #b45309;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.65);
}
.sn-orb.is-cur {
  background: #fffbeb;
  border-color: #f59e0b;
  border-width: 2px;
  animation: sn-pulse-soft 1.8s ease-in-out infinite;
}

.sn-tower-sign {
  margin-top: 8px;
  padding: 8px 18px;
  border-radius: 18px;
  background: rgba(255, 250, 238, 0.94);
  border: 2px solid #e2b478;
  box-shadow: 0 6px 14px rgba(92, 54, 24, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.sn-tower-sign strong { font-size: 17px; color: #5c320d; }
.sn-tower-sign small { font-size: 12.5px; font-weight: 800; color: #b45309; }

/* 布丁熊互动区 */
.sn-bear-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 300px;
}

.sn-speech-cloud {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.95);
  border: 2.5px solid #f4c878;
  box-shadow: 0 10px 22px rgba(92, 54, 24, 0.14);
}
.sn-speech-cloud::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: #fffdf7;
  border-right: 2.5px solid #f4c878;
  border-bottom: 2.5px solid #f4c878;
  transform: translateX(-50%) rotate(45deg);
}
.sn-speech-cloud p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 800;
  color: #4d3017;
}
.sn-voice-mini {
  flex-shrink: 0;
  min-width: 48px;
  min-height: 48px;
  border-radius: 16px;
  background: #fffbeb;
  border: 2px solid #fcd34d;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.sn-bear-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  min-width: 140px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sn-bear-btn:hover { transform: scale(1.04); }
.sn-bear-btn:active { transform: scale(0.95); }
.sn-bear-img {
  width: clamp(134px, 16vw, 168px);
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(82, 48, 18, 0.25));
  animation: sn-breathe 3.6s ease-in-out infinite;
  transform-origin: center bottom;
}
.sn-bear-btn.is-happy-jump .sn-bear-img {
  animation: sn-bear-jump 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sn-bear-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 251, 240, 0.94);
  border: 2px solid #f3c478;
  font-size: 13.5px;
  font-weight: 900;
  color: #6b3b12;
  box-shadow: 0 4px 10px rgba(92, 54, 24, 0.12);
}
.sn-bear-tag em { font-style: normal; color: #e11d48; }

/* 主行动糖果木牌按钮 */
.sn-valley-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sn-honey-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffda75 0%, #f59e0b 100%);
  border: 2.5px solid #b45309;
  color: #472103;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 6px 0 #b45309, 0 14px 28px rgba(146, 64, 14, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.sn-honey-cta:hover { transform: translateY(-2px); filter: brightness(1.03); }
.sn-honey-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 #b45309; }
.sn-honey-cta.is-finish {
  width: 100%;
  background: linear-gradient(180deg, #52e3aa 0%, #10b981 100%);
  border-color: #047857;
  color: #ffffff;
  box-shadow: 0 5px 0 #047857, 0 10px 22px rgba(4, 120, 87, 0.26);
}
.sn-done-whisper {
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.92);
  border: 1.5px solid #f59e0b;
  font-size: 13.5px;
  font-weight: 800;
  color: #92400e;
}

/* 远景待搭建的小塔云朵预告 */
.sn-horizon-clouds,
.sn-upcoming-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 560px) {
  .sn-horizon-clouds,
  .sn-upcoming-grid {
    grid-template-columns: 1fr;
  }
}
.sn-cloud-tag {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px dashed rgba(180, 140, 88, 0.55);
  color: #6b5540;
}
.sn-cloud-tag span { font-size: 22px; }
.sn-cloud-tag strong { display: block; font-size: 14px; color: #4b3824; }
.sn-cloud-tag small { display: block; font-size: 12px; font-weight: 700; color: #8c7258; }

/* =========================================================
   Scene B：🍯 布丁熊的蜂蜜积木工坊（7 天精雕交互台）
   ========================================================= */
.sn-work-stage {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 悬挂 7 天蜂蜜灯笼绳 */
.sn-lantern-string {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  border-radius: 24px;
  background: rgba(255, 251, 242, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(226, 180, 120, 0.8);
  box-shadow: 0 8px 20px rgba(92, 54, 24, 0.12);
}
.sn-lantern-btn {
  min-height: 60px;
  min-width: 48px;
  padding: 6px 4px;
  border-radius: 16px;
  border: 2px solid #ead8be;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.sn-lantern-btn:hover:not(.is-locked) { transform: translateY(-2px); border-color: #f59e0b; }
.sn-l-icon { font-size: 19px; line-height: 1; }
.sn-l-short { font-size: 13px; font-weight: 900; color: #5c3618; }
.sn-lantern-btn small { font-size: 11px; font-weight: 700; color: #8c6d4f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sn-lantern-btn.is-done {
  background: linear-gradient(180deg, #fffbeb 0%, #fef08a 100%);
  border-color: #f59e0b;
}
.sn-lantern-btn.is-cur {
  background: #ffffff;
  border-color: #ea580c;
  border-width: 2.5px;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.36);
}
.sn-lantern-btn.is-locked {
  background: rgba(247, 240, 228, 0.72);
  border-style: dashed;
  opacity: 0.68;
}

/* 工坊双栏主工作台（iPad 横屏左右并排，竖屏流畅堆叠） */
.sn-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(290px, 0.92fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 820px) {
  .sn-work-grid { grid-template-columns: 1fr; }
}

.sn-work-main, .sn-work-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.sn-mission-card,
.sn-board-frame,
.sn-bear-card,
.sn-reflect-card,
.sn-ceremony-card {
  border-radius: 28px;
  padding: 18px 20px;
  background: var(--parchment);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2.5px solid rgba(235, 195, 134, 0.92);
  box-shadow: var(--shadow-warm);
}

.sn-mission-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sn-day-tag {
  padding: 5px 14px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1.5px solid #f59e0b;
  font-size: 13.5px;
  font-weight: 900;
  color: #92400e;
}
.sn-voice-pill {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fffbeb;
  border: 2px solid #fbbf24;
  color: #92400e;
  font-size: 14.5px;
  font-weight: 900;
  box-shadow: 0 3px 0 #d97706;
}
.sn-voice-pill:active { transform: translateY(2px); }
.sn-story-line { margin: 0 0 6px; font-size: 14.5px; font-weight: 700; color: #7c5938; }
.sn-prompt-line { margin: 0; font-size: 20px; line-height: 1.45; color: #361f0b; }

/* =========================================================
   蜂蜜巧克力魔法板 (HoneyBoard) — 烘焙垫 + 立体焦糖方块 + 缝隙切刀
   ========================================================= */
.hb-root { display: flex; flex-direction: column; gap: 12px; }
.hb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hb-dials, .hb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hb-dial {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px 4px 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 2px solid #e7c99b;
  font-size: 14px;
  font-weight: 800;
  color: #6b4423;
}
.hb-dial b { min-width: 24px; text-align: center; font-size: 19px; color: #3b220c; }
.hb-dial-btn {
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  background: #fff6e2;
  border: 2px solid #f2c37c;
  color: #9a3412;
  font-size: 20px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.hb-dial-btn:active { transform: scale(0.92); }

.hb-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  transition: transform 0.14s ease;
}
.hb-action-btn:active { transform: translateY(2px); }
.hb-action-btn.is-music {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  color: #4a2404;
  box-shadow: 0 4px 0 #b45309;
}
.hb-action-btn.is-rotate {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 4px 0 #1d4ed8;
}
.hb-action-btn.is-camera {
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
  box-shadow: 0 4px 0 #9f1239;
}

.hb-preset-strip, .hb-cut-hint-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.hb-cut-tip { font-size: 13.5px; font-weight: 800; color: #7c4a1b; }
.hb-chip-btn {
  min-height: 48px;
  min-width: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 2px solid #ebd0a3;
  background: #ffffff;
  color: #6b4423;
  font-size: 13.5px;
  font-weight: 800;
}
.hb-chip-btn.is-on {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  box-shadow: 0 3px 0 #d97706;
}

/* 缝线烘焙垫 + 立体蜂蜜巧克力块 */
.hb-mat {
  position: relative;
  border-radius: 24px;
  padding: 20px 14px 18px;
  background:
    radial-gradient(circle at 50% 0%, #fffdf8 0%, #fdf2dc 100%);
  border: 2.5px dashed #e2b478;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
}

.hb-camera-flash {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 15;
  transition: opacity 0.28s ease;
}
.hb-camera-flash.is-flash { opacity: 0.78; }

.hb-split-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hb-wood-tag {
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  border: 2px solid;
}
.hb-wood-tag.is-honey { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.hb-wood-tag.is-berry { background: #ffe4e6; border-color: #f43f5e; color: #9f1239; }
.hb-plus-dot { font-size: 18px; font-weight: 900; color: #b45309; }

.hb-count-pill {
  padding: 6px 16px;
  border-radius: 999px;
  background: #fef08a;
  border: 2px solid #d97706;
  color: #78350f;
  font-size: 15px;
  font-weight: 900;
}

.hb-slab-wrap {
  position: relative;
  display: inline-flex;
  padding: 12px 24px 24px 12px;
}
.hb-slab {
  display: inline-flex;
  flex-direction: column;
  gap: var(--hb-gap, 6px);
  padding: 12px;
  border-radius: 20px;
  background: rgba(160, 96, 36, 0.14);
  box-shadow: inset 0 2px 8px rgba(120, 68, 20, 0.12);
  transition: transform 0.36s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.hb-slab.is-rotating-90 {
  transform: rotate(90deg) scale(0.92);
}
.hb-slab.is-just-rotated {
  animation: sn-pop-settle 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hb-slab.is-just-sliced {
  animation: sn-pop-settle 0.3s ease;
}

.hb-row {
  display: flex;
  align-items: center;
  gap: var(--hb-gap, 6px);
  transition: transform 0.2s ease;
}
.hb-row.has-split-b { margin-bottom: 16px; }
.hb-row.is-lit .hb-tile {
  transform: scale(1.09);
  box-shadow: 0 0 0 3px #fef08a, 0 6px 14px rgba(245, 158, 11, 0.45);
}

/* 立体可口蜂蜜焦糖巧克力方块 */
.hb-tile {
  position: relative;
  display: inline-block;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 4px 5px rgba(255, 255, 255, 0.48),
    inset 0 -5px 0 rgba(120, 53, 15, 0.24),
    0 4px 8px rgba(120, 53, 15, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, margin 0.26s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.hb-tile::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 34%;
  height: 22%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.hb-tile:hover { transform: translateY(-2px) scale(1.04); }
.hb-tile.tone-honey { background: linear-gradient(155deg, #fde047 0%, #f59e0b 65%, #d97706 100%); }
.hb-tile.tone-berry { background: linear-gradient(155deg, #fecdd3 0%, #fb7185 55%, #e11d48 100%); }
.hb-tile.tone-mint { background: linear-gradient(155deg, #a7f3d0 0%, #34d399 58%, #059669 100%); }
.hb-tile.tone-sky { background: linear-gradient(155deg, #bfdbfe 0%, #60a5fa 58%, #2563eb 100%); }
.hb-tile.has-split-r { margin-right: 14px; }

/* 直接可点的发光蜂蜜缝隙切刀 */
.hb-seam {
  width: 10px;
  align-self: stretch;
  margin: -4px -5px;
  border-radius: 999px;
  position: relative;
  z-index: 4;
  cursor: col-resize;
  transition: background-color 0.15s ease, width 0.2s ease;
}
.hb-seam:hover {
  background: rgba(251, 191, 36, 0.65);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
}
.hb-seam.is-cut {
  width: 14px;
  background: repeating-linear-gradient(180deg, #f59e0b 0 6px, transparent 6px 12px);
}

/* 🐾 右下角蜂蜜小爪拖拽手柄 */
.hb-paw-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffbeb 0%, #fde047 100%);
  border: 2.5px solid #b45309;
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 12px rgba(146, 64, 14, 0.28);
  cursor: nwse-resize;
  touch-action: none;
  z-index: 6;
}
.hb-paw-handle:hover { transform: scale(1.1); }

.hb-eq-plaque {
  padding: 10px 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 2px solid #f2c982;
  font-size: 18px;
  font-weight: 900;
  color: #452408;
  text-align: center;
  box-shadow: 0 4px 12px rgba(120, 68, 20, 0.08);
}
.hb-eq-plaque em { font-style: normal; color: #d97706; font-size: 21px; }
.hb-eq-plaque i { font-style: normal; padding: 1px 8px; border-radius: 8px; }
.hb-eq-plaque i.c-honey { background: #fef3c7; color: #92400e; }
.hb-eq-plaque i.c-berry { background: #ffe4e6; color: #be123c; }

.hb-ghost-pill {
  padding: 8px 14px;
  border-radius: 14px;
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  font-size: 14px;
  font-weight: 800;
  color: #1e40af;
}
.hb-status-note {
  padding: 8px 14px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
}

/* 周三拍立得相册墙 */
.hb-polaroid-shelf {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.94);
  border: 2px solid #ebd0a3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hb-album-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.hb-album-stat { font-size: 14px; font-weight: 800; color: #6b4423; }
.hb-polaroid-wall { display: flex; flex-wrap: wrap; gap: 12px; }
.hb-polaroid {
  width: 102px;
  padding: 8px 8px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #ead8be;
  box-shadow: 0 6px 14px rgba(92, 54, 24, 0.14);
  transform: rotate(var(--tilt, 0deg));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hb-polaroid-svg { background: #fffbeb; border-radius: 6px; border: 1px solid #fde68a; }
.hb-pol-cap { text-align: center; font-size: 13px; color: #3b220c; display: flex; flex-direction: column; }
.hb-pol-cap span { font-size: 11px; color: #786655; font-weight: 700; }
.hb-pol-cap em { font-style: normal; font-size: 11px; font-weight: 900; color: #e11d48; }
.hb-album-empty { font-size: 14px; font-weight: 700; color: #8c6d4f; }

/* ---------- 右侧布丁熊陪伴栏与反思卡 ---------- */
.sn-bear-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sn-bear-btn.is-side {
  align-self: center;
  min-width: 120px;
}
.sn-bear-btn.is-side .sn-bear-img { width: 124px; }
.sn-side-speech {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background: #ffffff;
  border: 2px solid #f4cc84;
}
.sn-side-speech p { margin: 0; font-size: 14.5px; line-height: 1.55; font-weight: 800; color: #4d3017; }
.sn-hint-btn {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: #fffbeb;
  border: 2px solid #fbbf24;
  color: #92400e;
  font-size: 14px;
  font-weight: 900;
}
.sn-hint-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.sn-hint-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sn-hint-list li {
  padding: 9px 12px;
  border-radius: 14px;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  font-size: 13.5px;
  font-weight: 700;
  color: #5b3414;
}

/* 周日封顶仪式 */
.sn-ceremony-card {
  background: linear-gradient(155deg, #fffdf5 0%, #fef3c7 100%);
  border-color: #f59e0b;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sn-ceremony-card h3 { margin: 0; font-size: 18px; color: #78350f; }
.sn-tool-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sn-tool-chip {
  min-height: 48px;
  padding: 6px 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid #e6cfa9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13.5px;
  color: #5c3618;
}
.sn-tool-chip.is-on { background: #fef08a; border-color: #d97706; color: #78350f; }
.sn-telescope { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.88); border: 2px solid #c4b5fd; }
.sn-tele-title { font-size: 14px; font-weight: 900; color: #5b21b6; margin-bottom: 6px; }
.sn-telescope p { margin: 4px 0; font-size: 13px; color: #475569; line-height: 1.5; }

/* 讲一讲 + 印章 + 完成 */
.sn-reflect-card { display: flex; flex-direction: column; gap: 12px; }
.sn-reflect-card h2 { margin: 0; font-size: 18px; color: #3f240c; }
.sn-say-text { margin: 0; font-size: 15px; font-weight: 800; color: #0f766e; line-height: 1.5; }
.sn-stamps { display: flex; flex-wrap: wrap; gap: 8px; }
.sn-stamp-btn {
  min-height: 48px;
  padding: 6px 12px;
  border-radius: 14px;
  border: 2px dashed #d6bc98;
  background: #ffffff;
  color: #6b4423;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
}
.sn-stamp-btn.is-on { border-style: solid; border-color: #10b981; background: #ecfdf5; color: #065f46; }
.sn-stamp-btn i { font-style: normal; font-weight: 900; }

.sn-note-box { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 800; color: #6b4423; }
.sn-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 2px solid #e2c598;
  background: #ffffff;
  font-size: 14.5px;
  color: #361f0b;
}

.sn-reflect-acts { display: flex; flex-direction: column; gap: 8px; }
.sn-sleep-btn {
  min-height: 48px;
  width: 100%;
  border-radius: 999px;
  background: #f5f3ff;
  border: 2px solid #c4b5fd;
  color: #5b21b6;
  font-size: 14.5px;
  font-weight: 900;
}
.sn-lit-banner {
  padding: 10px 14px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 2px solid #6ee7b7;
  color: #065f46;
  font-size: 14px;
  font-weight: 800;
}

/* =========================================================
   静谧滑出抽屉（📖 蜂蜜发现本 & ☕ 爸妈小纸条）
   ========================================================= */
.sn-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(54, 31, 11, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
}
.sn-drawer {
  width: min(460px, 94vw);
  height: 100%;
  background: #fffcf5;
  border-left: 3px solid #e2b478;
  box-shadow: -12px 0 36px rgba(54, 31, 11, 0.22);
  display: flex;
  flex-direction: column;
  animation: sn-slide-in 0.24s ease;
}
.sn-dr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 2px solid #f1e2c6;
}
.sn-dr-head h2 { margin: 0; font-size: 20px; color: #3f240c; }
.sn-close-x {
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: #fff6e2;
  font-size: 18px;
  font-weight: 900;
  color: #78350f;
}
.sn-dr-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 18px 0; }
.sn-tab-btn {
  min-height: 48px;
  border-radius: 14px;
  background: #f5ecdc;
  color: #6b4423;
  font-size: 14px;
  font-weight: 900;
}
.sn-tab-btn.is-on { background: #fef3c7; border: 2px solid #f59e0b; color: #92400e; }
.sn-dr-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sn-post-form { display: flex; flex-direction: column; gap: 8px; }
.sn-postcards { display: flex; flex-direction: column; gap: 10px; }
.sn-postcard {
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 2px solid #f0d7ac;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sn-postcard.is-gold { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-color: #f59e0b; }
.sn-pc-meta { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: #92400e; }
.sn-postcard p { margin: 0; font-size: 15.5px; font-weight: 800; color: #3b220c; line-height: 1.5; }
.sn-del-link { align-self: flex-end; min-height: 48px; min-width: 48px; font-size: 12.5px; color: #94a3b8; font-weight: 800; }
.sn-empty-box { padding: 24px 16px; border-radius: 18px; background: #fff9ec; border: 2px dashed #e2c598; text-align: center; font-size: 14.5px; font-weight: 700; color: #7c5938; }

.sn-p-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1.5px solid #ebdbc0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sn-p-card h3 { margin: 0; font-size: 16px; color: #3f240c; }
.sn-p-card ul { margin: 0; padding-left: 18px; font-size: 14px; color: #4b3824; line-height: 1.6; }
.sn-p-dont { padding: 8px 12px; border-radius: 12px; background: #fff1f2; color: #9f1239; font-size: 13.5px; }
.sn-p-spoiler { padding: 8px 12px; border-radius: 12px; background: #f8fafc; border: 1.5px solid #e2e8f0; font-size: 13.5px; }
.sn-p-spoiler summary { cursor: pointer; font-weight: 800; min-height: 48px; display: flex; align-items: center; }
.sn-obs-list { display: flex; flex-direction: column; gap: 6px; }
.sn-obs-chip {
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 2px solid #e2d5c3;
  background: #fffdf9;
  color: #475569;
  font-size: 13.5px;
  font-weight: 800;
  text-align: left;
}
.sn-obs-chip.is-on { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.sn-obs-msg { font-size: 13px; font-weight: 800; color: #059669; min-height: 18px; }
.sn-early-confirm { padding: 12px; border-radius: 14px; background: #fffbeb; border: 2px solid #fbbf24; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.sn-early-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sn-bp-intro { margin: 0; font-size: 13.5px; color: #64748b; }
.sn-bp-list { display: flex; flex-direction: column; gap: 8px; }
.sn-bp-row { padding: 10px 12px; border-radius: 14px; background: #faf7f0; border: 1.5px solid #e6d8c0; }
.sn-bp-row.is-live { background: #fffbeb; border-color: #f59e0b; border-width: 2px; }
.sn-bp-head { display: flex; justify-content: space-between; gap: 6px; font-size: 14px; }
.sn-bp-head span { font-size: 12px; font-weight: 900; color: #b45309; }
.sn-bp-sub { font-size: 12.5px; font-weight: 800; color: #5c3618; margin: 2px 0; }
.sn-bp-row small { font-size: 12px; color: #64748b; }
.sn-legacy-link { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; font-weight: 800; color: #92400e; text-decoration: none; }

/* 温柔顶部提示气泡 */
.sn-toast {
  position: fixed;
  left: 50%;
  top: 72px;
  z-index: 80;
  transform: translate(-50%, -12px);
  opacity: 0;
  pointer-events: none;
  max-width: min(520px, 90vw);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(59, 34, 12, 0.92);
  color: #fffbeb;
  font-size: 14.5px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.sn-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 温柔绘本关键帧动效 ---------- */
@keyframes sn-float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes sn-breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.022, 0.988) translateY(-2px); }
}
@keyframes sn-bear-jump {
  0% { transform: scale(1, 1) translateY(0); }
  22% { transform: scale(1.12, 0.88) translateY(4px); }
  55% { transform: scale(0.95, 1.08) translateY(-16px); }
  80% { transform: scale(1.04, 0.96) translateY(2px); }
  100% { transform: scale(1, 1) translateY(0); }
}
@keyframes sn-pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(1.04); }
}
@keyframes sn-pop-settle {
  0% { transform: scale(0.94); }
  55% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@keyframes sn-slide-in {
  from { transform: translateX(28px); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---------- 手机窄屏适配 ---------- */
@media (max-width: 640px) {
  .sn-hud { padding: 10px 12px 6px; }
  .sn-lantern-string { gap: 4px; padding: 8px 6px; }
  .sn-lantern-btn { min-width: 0; padding: 6px 2px; }
  .sn-lantern-btn small { display: none; }
  .sn-mission-card, .sn-board-frame, .sn-bear-card, .sn-reflect-card { padding: 14px; border-radius: 22px; }
  .sn-honey-cta { font-size: 16px; padding: 0 22px; }
}

/* =========================================================
   双小塔阳光山谷（模块 1 + 模块 2 简洁明快布局）
   ========================================================= */
.sn-speech-cloud.is-valley-banner {
  max-width: 660px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}
.sn-speech-cloud.is-valley-banner::after { display: none; }
.sn-speech-cloud.is-valley-banner b { color: #b45309; }

.sn-duo-village {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
}
.sn-duo-village.is-trio,
.sn-trio-village {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .sn-duo-village,
  .sn-duo-village.is-trio,
  .sn-trio-village {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.sn-island {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 14px;
  border-radius: 30px;
  background: rgba(255, 252, 244, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(92, 54, 24, 0.11);
}
.sn-island.is-mint {
  background: rgba(244, 253, 248, 0.6);
  border-color: rgba(167, 243, 208, 0.85);
}
.sn-island.is-sky {
  background: rgba(240, 249, 255, 0.64);
  border-color: rgba(125, 211, 252, 0.88);
}

.sn-island-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.sn-island .sn-tower-spot { padding: 4px 6px; max-width: 100%; }
.sn-island .sn-tower-img { width: clamp(138px, 16.5vw, 174px); }
.sn-tower-spot.is-mint-aura .sn-tower-aura {
  background: radial-gradient(circle, rgba(167, 243, 208, 0.72) 0%, rgba(16, 185, 129, 0) 70%);
}
.sn-tower-spot.is-sky-aura .sn-tower-aura {
  background: radial-gradient(circle, rgba(186, 230, 253, 0.78) 0%, rgba(56, 189, 248, 0) 70%);
}
.sn-bear-btn.is-duo { min-width: 112px; }
.sn-bear-btn.is-duo .sn-bear-img { width: clamp(106px, 12.5vw, 134px); }
.sn-bear-tag.is-mint { border-color: #6ee7b7; color: #065f46; }
.sn-bear-tag.is-sky { border-color: #7dd3fc; color: #0369a1; }
.sn-tower-orbs.is-mint { border-color: #6ee7b7; margin-top: 0; }
.sn-tower-orbs.is-sky { border-color: #7dd3fc; margin-top: 0; }
.sn-island .sn-tower-orbs { margin-top: 0; }

@media (min-width: 861px) {
  .sn-duo-village.is-trio .sn-island .sn-tower-img,
  .sn-trio-village .sn-island .sn-tower-img { width: clamp(104px, 11.2vw, 144px); }
  .sn-duo-village.is-trio .sn-bear-btn.is-duo,
  .sn-trio-village .sn-bear-btn.is-duo { min-width: 88px; }
  .sn-duo-village.is-trio .sn-bear-btn.is-duo .sn-bear-img,
  .sn-trio-village .sn-bear-btn.is-duo .sn-bear-img { width: clamp(86px, 9.2vw, 116px); }
  .sn-duo-village.is-trio .sn-island .sn-tower-aura,
  .sn-trio-village .sn-island .sn-tower-aura { width: 172px; height: 172px; }
  .sn-duo-village.is-trio .sn-island .sn-tower-spot.is-tower-lit .sn-tower-aura,
  .sn-trio-village .sn-island .sn-tower-spot.is-tower-lit .sn-tower-aura { width: 210px; height: 210px; }
  .sn-duo-village.is-trio .sn-orb,
  .sn-trio-village .sn-orb { width: 20px; height: 20px; }
  .sn-duo-village.is-trio .sn-week-pill,
  .sn-trio-village .sn-week-pill { font-size: 12.5px; padding: 4px 10px; }
  .sn-duo-village.is-trio .sn-island-btn,
  .sn-trio-village .sn-island-btn { min-height: 58px; padding: 10px 12px; }
  .sn-duo-village.is-trio .sn-island-btn strong,
  .sn-trio-village .sn-island-btn strong { font-size: 15.5px; }
  .sn-duo-village.is-trio .sn-island-btn small,
  .sn-trio-village .sn-island-btn small { font-size: 12px; }
}

.sn-island-btn {
  width: 100%;
  min-height: 58px;
  padding: 10px 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.sn-island-btn:hover { transform: translateY(-2px); filter: brightness(1.03); }
.sn-island-btn:active { transform: translateY(2px); }
.sn-island-btn.is-honey {
  background: linear-gradient(180deg, #ffda75 0%, #f59e0b 100%);
  border: 2px solid #b45309;
  color: #472103;
  box-shadow: 0 5px 0 #b45309;
}
.sn-island-btn.is-mint {
  background: linear-gradient(180deg, #6ee7b7 0%, #10b981 100%);
  border: 2px solid #047857;
  color: #053526;
  box-shadow: 0 5px 0 #047857;
}
.sn-island-btn.is-sky {
  background: linear-gradient(180deg, #7dd3fc 0%, #0ea5e9 100%);
  border: 2px solid #0369a1;
  color: #082f49;
  box-shadow: 0 5px 0 #0369a1;
}
.sn-island-btn strong { font-size: 16.5px; }
.sn-island-btn small { font-size: 12.5px; font-weight: 800; opacity: 0.9; }

/* 薄荷工坊与云朵天蓝工坊配色微调 */
.sn-app.is-theme-mint .sn-day-tag {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}
.sn-app.is-theme-sky .sn-day-tag {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}
.sn-app.is-theme-mint .sn-mission-card,
.sn-app.is-theme-mint .sn-board-frame,
.sn-app.is-theme-mint .sn-bear-card,
.sn-app.is-theme-mint .sn-reflect-card {
  border-color: rgba(110, 231, 183, 0.92);
}
.sn-app.is-theme-sky .sn-mission-card,
.sn-app.is-theme-sky .sn-board-frame,
.sn-app.is-theme-sky .sn-bear-card,
.sn-app.is-theme-sky .sn-reflect-card {
  border-color: rgba(125, 211, 252, 0.92);
}

/* =========================================================
   模块 2：🌿 神秘规则糖果机 (RuleMachine) — 极简直观儿童交互
   ========================================================= */
.rm-root { display: flex; flex-direction: column; gap: 14px; }

.rm-candy-bowl {
  padding: 14px 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 2px solid #a7f3d0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rm-bowl-label { font-size: 15px; font-weight: 900; color: #065f46; }
.rm-candy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rm-candy-btn {
  min-width: 54px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18), 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.rm-candy-btn:hover:not(:disabled) { transform: translateY(-3px) scale(1.05); }
.rm-candy-btn:active:not(:disabled) { transform: translateY(2px) scale(0.95); }
.rm-candy-btn:disabled { opacity: 0.6; }
.rm-candy-btn.c-0 { background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%); }
.rm-candy-btn.c-1 { background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%); color: #472103; }
.rm-candy-btn.c-2 { background: linear-gradient(180deg, #34d399 0%, #059669 100%); }
.rm-candy-btn.c-3 { background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%); }
.rm-candy-btn.c-4 { background: linear-gradient(180deg, #c084fc 0%, #7c3aed 100%); }
.rm-candy-btn.is-last { box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.55), 0 4px 0 rgba(0, 0, 0, 0.18); }

.rm-custom-feed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1.5px dashed #d1fae5;
  font-size: 14px;
  font-weight: 800;
  color: #4b5563;
}
.rm-mini-step {
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 2px solid #6ee7b7;
  color: #065f46;
  font-size: 20px;
  font-weight: 900;
}
.rm-custom-feed b { min-width: 26px; text-align: center; font-size: 18px; color: #064e3b; }

.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 900;
  transition: transform 0.14s ease;
}
.rm-btn:active { transform: translateY(2px); }
.rm-btn.is-soft { background: #ecfdf5; border: 2px solid #34d399; color: #065f46; }
.rm-btn.is-hide { background: linear-gradient(180deg, #34d399 0%, #059669 100%); color: #ffffff; box-shadow: 0 4px 0 #065f46; }
.rm-btn.is-reveal { background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%); color: #4a2404; box-shadow: 0 4px 0 #b45309; }
.rm-btn.is-rev { background: #eff6ff; border: 2px solid #60a5fa; color: #1d4ed8; }

/* 魔法糖果机主舞台 */
.rm-machine-mat {
  border-radius: 24px;
  padding: 18px 16px;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #ecfdf5 100%);
  border: 2.5px dashed #6ee7b7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rm-machine {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(320px, 100%);
}
.rm-funnel {
  width: 148px;
  padding: 8px 14px;
  border-radius: 18px 18px 8px 8px;
  background: #ffffff;
  border: 2.5px solid #6ee7b7;
  border-bottom: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: #047857;
}
.rm-machine.is-feeding .rm-drop-candy {
  display: inline-block;
  animation: rm-drop-in 0.32s ease-in forwards;
}

.rm-body {
  width: 100%;
  padding: 16px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  border: 3px solid #065f46;
  box-shadow: 0 8px 0 #065f46, 0 14px 24px rgba(6, 95, 70, 0.22);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.rm-machine.is-feeding .rm-body {
  animation: rm-wiggle 0.34s ease-in-out infinite;
}
.rm-eyes { display: flex; gap: 36px; }
.rm-eyes i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fef08a;
  border: 2.5px solid #064e3b;
}
.rm-gear-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.rm-gear { font-size: 26px; display: inline-block; }
.rm-machine.is-feeding .rm-gear.is-a { animation: rm-spin 0.4s linear infinite; }
.rm-machine.is-feeding .rm-gear.is-b { animation: rm-spin 0.4s linear infinite reverse; }
.rm-window {
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #065f46;
  font-size: 15.5px;
  font-weight: 900;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.rm-name { font-size: 13px; font-weight: 800; opacity: 0.92; }

.rm-dish {
  margin-top: 8px;
  min-width: 184px;
  padding: 10px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffbeb 0%, #fef08a 100%);
  border: 2.5px solid #f59e0b;
  box-shadow: 0 5px 14px rgba(217, 119, 6, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.rm-dish-lbl { font-size: 14px; font-weight: 800; color: #92400e; }
.rm-out-candy { font-size: 26px; color: #b45309; }
.rm-machine.is-popped .rm-out-candy { animation: sn-pop-settle 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.rm-machine.is-hit .rm-dish { background: linear-gradient(180deg, #d1fae5 0%, #6ee7b7 100%); border-color: #059669; }
.rm-machine.is-hit .rm-out-candy { color: #065f46; }

/* 专属日玩法卡片 */
.rm-odd-box, .rm-story-bill, .rm-reverse-bar, .rm-invent-box, .rm-guess-card {
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 2px solid #a7f3d0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: #065f46;
}
.rm-odd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rm-pair-pill { padding: 4px 10px; border-radius: 999px; background: #d1fae5; border: 1.5px solid #34d399; font-size: 15px; }
.rm-solo-star { padding: 4px 12px; border-radius: 999px; background: #fef08a; border: 2px solid #f59e0b; color: #92400e; font-size: 14px; }

.rm-story-bill { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.rm-bill-part {
  padding: 8px 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rm-bill-part.is-kids { background: #fffbeb; border: 2px solid #fcd34d; color: #92400e; }
.rm-bill-part.is-map { background: #eff6ff; border: 2px solid #93c5fd; color: #1d4ed8; }
.rm-bill-plus { font-size: 20px; font-weight: 900; color: #059669; }
.rm-bill-total { padding: 8px 16px; border-radius: 14px; background: #d1fae5; color: #065f46; font-size: 20px; font-weight: 900; }

.rm-rev-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rm-rev-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rm-rev-chain i { font-style: normal; font-size: 13.5px; color: #1d4ed8; }
.rm-rev-node { padding: 5px 12px; border-radius: 12px; background: #eff6ff; border: 2px solid #93c5fd; color: #1e40af; }
.rm-rev-node.is-ans { background: #fef08a; border-color: #f59e0b; color: #92400e; }

.rm-invent-dials { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rm-curtain-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #f5f3ff; border: 2px dashed #a78bfa; color: #5b21b6; }

.rm-guess-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rm-guess-input {
  width: 96px;
  min-height: 48px;
  padding: 6px 12px;
  border-radius: 14px;
  border: 2px solid #6ee7b7;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  color: #065f46;
}
.rm-guess-msg { font-size: 14px; color: #92400e; }
.rm-guess-msg.is-ok { color: #059669; }

/* 横排糖果小黑板（简单卡片队列 + 绿色增量箭头） */
.rm-strip-wrap {
  width: 100%;
  padding: 12px 14px;
  border-radius: 20px;
  background: #1e293b;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rm-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.rm-clear-btn { min-height: 48px; padding: 0 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); color: #e2e8f0; font-size: 13px; font-weight: 800; }
.rm-card-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.rm-pair-card {
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.11);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rm-pair-card.is-hit { background: rgba(16, 185, 129, 0.3); border-color: #34d399; }
.rm-pc-in { font-size: 13.5px; font-weight: 800; color: #cbd5e1; }
.rm-pc-arr { font-style: normal; font-size: 12px; color: #6ee7b7; line-height: 1; }
.rm-pc-out { font-size: 20px; color: #fde047; }
.rm-jump-arrow {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.24);
  border: 1px solid #34d399;
  color: #6ee7b7;
  font-size: 12.5px;
  font-weight: 900;
}
.rm-jump-arrow em { font-style: normal; }
.rm-strip-empty { font-size: 14.5px; font-weight: 800; color: #047857; text-align: center; padding: 6px; }

@keyframes rm-drop-in {
  0% { transform: translateY(-10px) scale(1.1); opacity: 1; }
  100% { transform: translateY(22px) scale(0.45); opacity: 0; }
}
@keyframes rm-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}
@keyframes rm-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================================
   「一屏一聚焦」引导节奏剧场（模块 1 + 模块 2 统一视觉）
   ========================================================= */
.sn-app.is-workshop .sn-hud {
  padding: 5px 16px 2px;
}

.sn-work-stage.is-focus-shell {
  max-width: 820px;
  gap: 6px;
  padding: 0 14px 18px;
}
.sn-work-stage.is-focus-shell.has-floorbar {
  max-width: 860px;
}

.sn-work-stage.is-focus-shell .sn-lantern-string {
  padding: 5px 8px;
  gap: 5px;
  border-radius: 20px;
}
.sn-work-stage.is-focus-shell .sn-lantern-btn {
  min-height: 48px;
  padding: 3px 4px;
  border-radius: 13px;
  gap: 1px;
}
.sn-work-stage.is-focus-shell .sn-l-icon { font-size: 16px; }
.sn-work-stage.is-focus-shell .sn-l-short { font-size: 12.5px; }
.sn-work-stage.is-focus-shell .sn-lantern-btn small { font-size: 10.5px; }

/* 顶部步骤进度珠条 */
.sn-step-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(230, 190, 128, 0.82);
  box-shadow: 0 5px 14px rgba(92, 54, 24, 0.09);
}
.sn-app.is-theme-mint .sn-step-bar {
  border-color: rgba(110, 231, 183, 0.88);
}
.sn-app.is-theme-sky .sn-step-bar {
  border-color: rgba(125, 211, 252, 0.88);
}
.sn-step-left { display: flex; align-items: center; }
.sn-step-spacer { display: inline-block; width: 48px; }
.sn-prev-btn {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff9ec;
  border: 1.5px solid #e2bc84;
  color: #6b4423;
  font-size: 13.5px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.14s ease;
}
.sn-prev-btn:hover { transform: translateX(-2px); }
.sn-prev-btn:active { transform: scale(0.96); }

.sn-step-pearls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.sn-step-pearl {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #e2c99e;
  background: #fffdf8;
  color: #9a7a58;
  font-size: 14px;
  font-weight: 900;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.sn-step-pearl:disabled { cursor: default; }
.sn-step-pearl.is-past {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  border-color: #b45309;
  color: #4a2404;
  cursor: pointer;
}
.sn-app.is-theme-mint .sn-step-pearl.is-past {
  background: linear-gradient(180deg, #6ee7b7 0%, #10b981 100%);
  border-color: #047857;
  color: #ffffff;
}
.sn-app.is-theme-sky .sn-step-pearl.is-past {
  background: linear-gradient(180deg, #7dd3fc 0%, #0ea5e9 100%);
  border-color: #0369a1;
  color: #ffffff;
}
.sn-step-pearl.is-active {
  transform: scale(1.06);
  background: #ffffff;
  border-color: #ea580c;
  border-width: 2.5px;
  color: #ea580c;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.36);
}
.sn-app.is-theme-mint .sn-step-pearl.is-active {
  border-color: #059669;
  color: #059669;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.34);
}
.sn-app.is-theme-sky .sn-step-pearl.is-active {
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.34);
}
.sn-step-pearl.is-step-done {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}
.sn-pearl-line {
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: #e5cea6;
}
.sn-app.is-theme-mint .sn-pearl-line { background: #a7f3d0; }
.sn-app.is-theme-sky .sn-pearl-line { background: #bae6fd; }
.sn-step-count {
  justify-self: end;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1.5px solid #f5cb78;
  font-size: 13px;
  font-weight: 900;
  color: #92400e;
  white-space: nowrap;
}
.sn-app.is-theme-mint .sn-step-count {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}
.sn-app.is-theme-sky .sn-step-count {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #0369a1;
}

/* 顶部灵动宠物单句引导条 */
.sn-pet-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 24px;
  background: var(--parchment);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2.5px solid rgba(235, 195, 134, 0.94);
  box-shadow: var(--shadow-warm);
}
.sn-app.is-theme-mint .sn-pet-banner {
  border-color: rgba(110, 231, 183, 0.94);
}
.sn-app.is-theme-sky .sn-pet-banner {
  border-color: rgba(125, 211, 252, 0.94);
}
.sn-pet-avatar-btn {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px;
  min-width: 72px;
  min-height: 72px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sn-pet-avatar-btn:hover { transform: scale(1.06); }
.sn-pet-avatar-btn:active { transform: scale(0.95); }
.sn-pet-avatar-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(82, 48, 18, 0.22));
  animation: sn-breathe 3.6s ease-in-out infinite;
  transform-origin: center bottom;
}
.sn-pet-avatar-btn.is-happy-jump .sn-pet-avatar-img {
  animation: sn-bear-jump 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sn-pet-heart {
  margin-top: -6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #f3c478;
  font-size: 11.5px;
  font-weight: 900;
  color: #e11d48;
  box-shadow: 0 3px 8px rgba(92, 54, 24, 0.12);
}
.sn-app.is-theme-mint .sn-pet-heart { border-color: #6ee7b7; }
.sn-app.is-theme-sky .sn-pet-heart { border-color: #7dd3fc; }

.sn-pet-guide-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sn-pet-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.sn-pet-mini-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sn-mini-tool-btn {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1.5px solid #f7ca6c;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.14s ease;
}
.sn-mini-tool-btn:active { transform: translateY(1px); }
.sn-mini-tool-btn.is-hint {
  background: #ffffff;
  border-color: #e5cda5;
  color: #6b4423;
}
.sn-mini-tool-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.sn-guide-text {
  margin: 0;
  font-size: clamp(17px, 2.3vw, 20px);
  line-height: 1.4;
  font-weight: 900;
  color: #361f0b;
}

/* 单屏聚焦卡片（紧凑居中，确保 iPad 768px 高度内首屏完整可见） */
.is-focus-card {
  border-radius: 24px;
  padding: 10px 14px;
}
.is-focus-card .hb-mat {
  padding: 14px 12px;
  gap: 10px;
}
.is-focus-card .rm-root { gap: 10px; }
.is-focus-card .rm-candy-bowl { padding: 10px 14px 18px; gap: 8px; }
.is-focus-card .rm-machine-mat { padding: 12px 14px; gap: 10px; }
.is-focus-card .rm-body { padding: 11px 14px; gap: 5px; }
.is-focus-card .rm-dish { margin-top: 6px; padding: 7px 16px; }
.is-focus-card .rm-strip-wrap { padding: 9px 12px; gap: 7px; }
.is-focus-card .rm-pair-card { min-width: 62px; padding: 5px 8px; }
.is-focus-card .rm-pc-out { font-size: 18px; }

/* =========================================================
   金色聚焦光环 + 跳动小手 👆 指引系统
   ========================================================= */
.sn-spotlight {
  position: relative;
  animation: sn-spotlight-ring 1.6s ease-in-out infinite;
}
@keyframes sn-spotlight-ring {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.72), 0 0 22px rgba(245, 158, 11, 0.45);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(251, 191, 36, 0.34), 0 0 34px rgba(245, 158, 11, 0.68);
  }
}

.sn-finger-bounce {
  display: inline-block;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  animation: sn-finger-hop 0.88s ease-in-out infinite;
}
@keyframes sn-finger-hop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.12); }
}

.sn-finger-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fef08a;
  border: 2px solid #f59e0b;
  color: #78350f;
  font-size: 13.5px;
  font-weight: 900;
}

/* 居中大行动主按钮（蜂蜜板 + 糖果机共用焦点手势） */
.hb-focus-dials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.94);
  border: 2px solid #ebd0a3;
}
.hb-slab-wrap { padding: 10px; }
.hb-slab-wrap.has-paw { padding: 12px 26px 26px 12px; }

.hb-seam.is-glow {
  background: rgba(251, 191, 36, 0.24);
  animation: sn-seam-shimmer 1.8s ease-in-out infinite;
}
.hb-seam.is-rec {
  background: rgba(245, 158, 11, 0.58);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.72);
}
@keyframes sn-seam-shimmer {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.hb-focus-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}
.hb-focus-cta-wrap.is-row {
  flex-direction: row;
  flex-wrap: wrap;
}

.hb-big-cta,
.rm-big-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17.5px;
  font-weight: 900;
  color: #ffffff;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.hb-big-cta:hover:not(:disabled),
.rm-big-cta:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.04); }
.hb-big-cta:active:not(:disabled),
.rm-big-cta:active:not(:disabled) { transform: translateY(2px); }
.hb-big-cta:disabled,
.rm-big-cta:disabled { opacity: 0.6; }

.hb-big-cta.is-music {
  background: linear-gradient(180deg, #ffda75 0%, #f59e0b 100%);
  border: 2.5px solid #b45309;
  color: #472103;
  box-shadow: 0 5px 0 #b45309, 0 10px 20px rgba(180, 83, 9, 0.24);
}
.hb-big-cta.is-rotate,
.rm-big-cta.is-rev {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  border: 2.5px solid #1d4ed8;
  box-shadow: 0 5px 0 #1d4ed8, 0 10px 22px rgba(37, 99, 235, 0.26);
}
.hb-big-cta.is-cross,
.hb-big-cta.is-camera {
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
  border: 2.5px solid #9f1239;
  box-shadow: 0 5px 0 #9f1239, 0 10px 22px rgba(225, 29, 72, 0.26);
}
.rm-big-cta.is-go {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  border: 2.5px solid #047857;
  box-shadow: 0 5px 0 #047857, 0 10px 22px rgba(5, 150, 105, 0.26);
}
.rm-big-cta.is-reveal {
  background: linear-gradient(180deg, #ffda75 0%, #f59e0b 100%);
  border: 2.5px solid #b45309;
  color: #472103;
  box-shadow: 0 5px 0 #b45309, 0 10px 22px rgba(180, 83, 9, 0.24);
}

.hb-cut-focus-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hb-cut-focus-box .hb-cut-hint-row {
  justify-content: center;
}
.hb-chip-btn.is-rotate-mini {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* 糖果机聚焦视觉增强 */
.rm-bowl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rm-goal-ok {
  padding: 4px 12px;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  font-size: 13px;
  font-weight: 900;
}
.rm-candy-row {
  justify-content: center;
  gap: 10px;
}
.rm-candy-btn {
  position: relative;
  overflow: visible;
}
.rm-candy-btn.is-fed {
  opacity: 0.82;
}
.rm-candy-btn.is-guide-candy {
  transform: scale(1.08);
  z-index: 3;
}
.rm-candy-finger {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  animation: sn-finger-hop-centered 0.85s ease-in-out infinite;
}
@keyframes sn-finger-hop-centered {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}

.rm-guess-card.is-hero {
  align-items: center;
  text-align: center;
  padding: 16px 18px;
  gap: 12px;
  border-color: #34d399;
}
.rm-guess-title { font-size: 17px; color: #064e3b; }
.rm-guess-card.is-hero .rm-guess-row { justify-content: center; }

.rm-reverse-stage,
.rm-invent-setup {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.rm-reverse-stage .rm-rev-chain { justify-content: center; }
.rm-invent-setup .rm-invent-dials { justify-content: center; }
.rm-machine.is-curtained .rm-body {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  border-color: #4c1d95;
  box-shadow: 0 8px 0 #4c1d95, 0 14px 24px rgba(76, 29, 149, 0.25);
}
.rm-reveal-banner {
  padding: 12px 18px;
  border-radius: 18px;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  color: #78350f;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

/* 第 5 天草稿纸任务卡 & 第 7 天法宝卡 & 望远镜大卡 */
.sn-paper-card {
  border-radius: 28px;
  padding: 24px 22px;
  background: linear-gradient(180deg, #fffdf7 0%, #fef7e5 100%);
  border: 2.5px dashed #d9a76a;
  box-shadow: var(--shadow-warm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.sn-paper-card h2 { margin: 0; font-size: 20px; color: #5c320d; }
.sn-paper-card p { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.65; font-weight: 800; color: #6d4f32; }
.sn-paper-sketch { padding: 8px 14px; border-radius: 20px; background: #ffffff; border: 2px solid #f3d6a4; }

.sn-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 560px) {
  .sn-tool-grid { grid-template-columns: 1fr; }
}
.sn-tool-card {
  position: relative;
  min-height: 108px;
  padding: 14px 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 2.5px solid #e6cfa9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.sn-tool-card:hover { transform: translateY(-2px); border-color: #f59e0b; }
.sn-tool-card.is-on {
  background: linear-gradient(180deg, #fffbeb 0%, #fef08a 100%);
  border-color: #d97706;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.22);
}
.sn-tc-icon { font-size: 30px; line-height: 1; }
.sn-tool-card strong { font-size: 16.5px; color: #4a2404; }
.sn-tool-card small { font-size: 13px; font-weight: 700; color: #7c5938; line-height: 1.4; }
.sn-tc-check {
  font-style: normal;
  padding: 2px 10px;
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}
.sn-tc-finger {
  position: absolute;
  right: 10px;
  top: 8px;
  font-style: normal;
  font-size: 20px;
  animation: sn-finger-hop 0.88s ease-in-out infinite;
}

.sn-telescope.is-big {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.sn-tele-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f5f3ff;
  border: 1.5px solid #ddd6fe;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sn-tele-item.is-high { background: #eff6ff; border-color: #bfdbfe; }
.sn-tele-badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 900;
  color: #5b21b6;
}
.sn-tele-item.is-high .sn-tele-badge { color: #1d4ed8; }
.sn-tele-item p { margin: 0; font-size: 15px; font-weight: 800; color: #334155; line-height: 1.6; }

/* 底部绽放「下一步 ➜」行动区 + 静谧退出链接 */
.sn-focus-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.sn-next-slot {
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 8px;
}
.sn-honey-cta.is-next {
  min-height: 60px;
  min-width: min(340px, 100%);
  padding: 0 32px;
  background: linear-gradient(180deg, #52e3aa 0%, #10b981 100%);
  border-color: #047857;
  color: #ffffff;
  font-size: 19px;
  box-shadow: 0 6px 0 #047857, 0 14px 28px rgba(4, 120, 87, 0.3);
}
.sn-next-bloom {
  animation: sn-bloom-in 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), sn-spotlight-ring 1.8s 0.4s ease-in-out infinite;
}
@keyframes sn-bloom-in {
  0% { opacity: 0; transform: translateY(12px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.sn-quiet-link {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.72);
  color: #6d4f32;
  font-size: 13.5px;
  font-weight: 800;
}
.sn-quiet-link:hover { background: rgba(255, 252, 244, 0.94); }

.sn-reflect-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.sn-quiet-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff9ec;
  border: 1.5px solid #e2bc84;
  color: #6b4423;
  font-size: 14px;
  font-weight: 800;
}
.sn-quiet-btn.is-sleep {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #5b21b6;
}

@media (max-width: 640px) {
  .sn-step-bar { padding: 4px 8px; gap: 4px; }
  .sn-prev-btn { padding: 0 10px; font-size: 12.5px; }
  .sn-step-count { padding: 4px 8px; font-size: 12px; }
  .sn-pearl-line { width: 4px; }
  .sn-step-pearl { min-width: 48px; min-height: 48px; font-size: 13px; }
  .sn-pet-banner { padding: 9px 11px; gap: 10px; }
  .sn-pet-avatar-btn { min-width: 64px; min-height: 64px; }
  .sn-pet-avatar-img { width: 62px; height: 62px; }
  .sn-guide-text { font-size: 16.5px; }
  .hb-big-cta, .rm-big-cta { width: 100%; font-size: 16px; padding: 0 18px; }
  .sn-honey-cta.is-next { width: 100%; font-size: 17px; padding: 0 20px; }
}

/* =========================================================
   思考验证系统、木质糖果键盘与切刀滑轨样式 (ThinkPad + HoneyBoard + RuleMachine)
   ========================================================= */
.hb-slab-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hb-ruler-row {
  display: inline-flex;
  align-items: center;
  gap: var(--hb-gap, 5px);
  padding: 0 12px;
}
.hb-ruler-num {
  display: inline-flex;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 900;
  color: #9a744d;
  line-height: 1;
}
.hb-ruler-num.is-ten {
  color: #b45309;
  background: #fef08a;
  border-radius: 6px;
  padding: 1px 0;
}
.hb-ruler-num.has-split-r { margin-right: 14px; }
.hb-ruler-gap { width: 0; }
.hb-tile.is-tile-lit {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px #fef08a, 0 6px 14px rgba(245, 158, 11, 0.52);
}

/* 亲手拖动蜂蜜切刀滑轨（彻底取代偷懒快捷切法按钮） */
.hb-knife-rail {
  width: min(560px, 100%);
  padding: 10px 14px;
  border-radius: 20px;
  background: #ffffff;
  border: 2px solid #f0cb88;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hb-knife-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #6b3b12;
}
.hb-unslice-btn {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff7e6;
  border: 1.5px solid #e7c285;
  color: #7c4a1b;
  font-size: 13px;
  font-weight: 900;
}
.hb-knife-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hb-rail-edge {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: #9a6d3f;
}
.hb-knife-slider {
  flex: 1;
  height: 36px;
  accent-color: #f59e0b;
  cursor: pointer;
}

/* 周三 3 槽神秘礼盒剪影图鉴 */
.hb-slot-album {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hb-slot-album .hb-polaroid {
  width: 100%;
  transform: none;
}
.hb-polaroid.is-mystery {
  background: #fff9ec;
  border: 2px dashed #dfb87a;
  box-shadow: none;
}
.hb-polaroid.is-found {
  border-color: #10b981;
  background: #f0fdf4;
}
.hb-mys-icon {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  background: #fef3c7;
  display: grid;
  place-items: center;
  font-size: 26px;
}

/* 通用思考验证卡片 + 填答槽 + 木质糖果数字键盘 */
.tp-card,
.tp-calc-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.tp-calc-panel {
  padding: 12px 14px;
  border-radius: 20px;
  background: #ffffff;
  border: 2px solid #f0d096;
}
.sn-app.is-theme-mint .tp-calc-panel { border-color: #86efac; }
.sn-app.is-theme-sky .tp-calc-panel { border-color: #7dd3fc; }

.tp-q-title,
.tp-calc-guide {
  font-size: 15.5px;
  font-weight: 900;
  color: #4a2404;
  text-align: center;
  line-height: 1.45;
}
.sn-app.is-theme-mint .tp-q-title,
.sn-app.is-theme-mint .tp-calc-guide { color: #064e3b; }
.sn-app.is-theme-sky .tp-q-title,
.sn-app.is-theme-sky .tp-calc-guide { color: #0c4a6e; }

.tp-sub-lbl,
.tp-try-hint {
  font-size: 13.5px;
  font-weight: 800;
  color: #7c5938;
  text-align: center;
}

.tp-slot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tp-slot-btn,
.tp-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  min-width: 76px;
  padding: 4px 14px;
  border-radius: 16px;
  background: #fffdf8;
  border: 2.5px solid #e2bc84;
  color: #5c3618;
  font-size: 15px;
  font-weight: 800;
}
.tp-slot-btn b,
.tp-slot b { font-size: 21px; color: #b45309; min-width: 24px; text-align: center; }
.tp-slot-btn.is-honey { background: #fffbeb; border-color: #f59e0b; }
.tp-slot-btn.is-berry { background: #fff1f2; border-color: #fb7185; }
.tp-slot-btn.is-berry b { color: #be123c; }
.tp-slot-btn.is-active,
.tp-slot.is-active {
  background: #fef9c3;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.42);
}
.tp-slot-btn.is-ok,
.tp-slot.is-ok {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}
.tp-slot-btn.is-ok b { color: #047857; }
.tp-fixed-pill {
  padding: 8px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  font-size: 14.5px;
  font-weight: 900;
  color: #475569;
}
.tp-plus { font-size: 18px; font-weight: 900; color: #b45309; }

.tp-feedback {
  width: 100%;
  padding: 9px 14px;
  border-radius: 14px;
  background: #fffbeb;
  border: 2px solid #fbbf24;
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
}
.tp-feedback.is-ok {
  background: #ecfdf5;
  border-color: #34d399;
  color: #065f46;
}

/* 紧凑对称 2 行木质糖果数字键盘（左 6×2 数字+退格，右通高绿按钮，零空洞 + 省出首屏空间） */
.tp-keypad {
  width: min(600px, 100%);
  padding: 7px;
  border-radius: 20px;
  background: #fdf3df;
  border: 2px solid #e7c58a;
}
.sn-app.is-theme-mint .tp-keypad {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.sn-app.is-theme-sky .tp-keypad {
  background: #f0f9ff;
  border-color: #bae6fd;
}
.tp-key-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 6px;
  align-items: stretch;
}
.tp-key-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.tp-key {
  min-height: 48px;
  min-width: 44px;
  border-radius: 13px;
  background: #ffffff;
  border: 2px solid #e6c690;
  box-shadow: 0 3px 0 #d4a662;
  color: #4a2404;
  font-size: 19px;
  font-weight: 900;
  display: grid;
  place-items: center;
  transition: transform 0.1s ease;
}
.tp-key:active { transform: translateY(2px); box-shadow: 0 1px 0 #d4a662; }
.tp-key.is-del {
  grid-column: span 2;
  background: #fff1f2;
  border-color: #fda4af;
  box-shadow: 0 3px 0 #fb7185;
  color: #be123c;
  font-size: 14.5px;
}
.tp-key.is-go {
  min-height: 100%;
  background: linear-gradient(180deg, #52e3aa 0%, #10b981 100%);
  border-color: #047857;
  box-shadow: 0 3px 0 #047857;
  color: #ffffff;
  font-size: 15px;
  padding: 6px 8px;
  text-align: center;
  line-height: 1.25;
}
@media (max-width: 560px) {
  .tp-key-wrap { grid-template-columns: 1fr; }
  .tp-key-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tp-key.is-del { grid-column: span 2; }
  .tp-key.is-go { min-height: 48px; }
}

/* 推理选择卡片与特化验证组件 */
.tp-choice-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tp-choice-row,
.tp-pick-row,
.tp-try-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tp-choice-btn {
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 2px solid #e2c28e;
  color: #4a2404;
  font-size: 14.5px;
  font-weight: 800;
  text-align: left;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.tp-choice-btn:hover:not(:disabled) { border-color: #f59e0b; transform: translateY(-1px); }
.tp-choice-btn.is-on { background: #fef3c7; border-color: #d97706; color: #78350f; }

.tp-pick-pill {
  min-height: 48px;
  min-width: 78px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 2.5px solid #f2c478;
  color: #5c3618;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 4px 0 #d9a76a;
}
.tp-pick-pill.is-on { background: #fef08a; border-color: #d97706; color: #78350f; }

.tp-lid-compare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.tp-lid-box {
  min-width: 156px;
  padding: 12px 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 2.5px solid #f0cb88;
  background: #fffbeb;
}
.tp-lid-box.is-mystery { background: #eff6ff; border-color: #93c5fd; }
.tp-lid-box.is-mystery.is-open { background: #ecfdf5; border-color: #34d399; }
.tp-lid-tag { font-size: 12px; font-weight: 900; color: #92400e; }
.tp-lid-box strong { font-size: 18px; color: #361f0b; }
.tp-lid-box em { font-style: normal; font-size: 18px; font-weight: 900; color: #d97706; }
.tp-lid-arrow { font-size: 15px; font-weight: 900; color: #2563eb; }

.tp-dot-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fffdf7;
  border: 2px dashed #e2c088;
}
.tp-dot-row { display: flex; gap: 5px; }
.tp-dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(155deg, #fde047 0%, #f59e0b 100%);
  border: 1.5px solid #b45309;
}
.tp-dot.is-over { background: linear-gradient(155deg, #fecdd3 0%, #f43f5e 100%); border-color: #be123c; }
.tp-dot-cap { font-size: 13.5px; font-weight: 800; color: #6b4423; margin-top: 2px; }

.tp-scale-cue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.tp-mini-block {
  padding: 10px 16px;
  border-radius: 16px;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  font-size: 15px;
  font-weight: 800;
  color: #78350f;
}
.tp-mini-block.is-big { background: #eff6ff; border-color: #60a5fa; color: #1e40af; }
.tp-quad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.tp-quad {
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  border: 2px solid;
}
.tp-quad.is-honey { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.tp-quad.is-berry { background: #ffe4e6; border-color: #fb7185; color: #9f1239; }
.tp-quad.is-mint { background: #d1fae5; border-color: #34d399; color: #065f46; }
.tp-quad.is-sky { background: #dbeafe; border-color: #60a5fa; color: #1e40af; }

.tp-bug-quote {
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff1f2;
  border: 2px solid #fda4af;
  color: #881337;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.5;
}
.tp-mini-slab { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 14px; background: rgba(160, 96, 36, 0.12); }
.tp-mini-row { display: flex; gap: 3px; }
.tp-mini-sq { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.tp-mini-sq.is-h { background: #f59e0b; }
.tp-mini-sq.is-b { background: #f43f5e; }
.tp-mini-sq.has-gap { margin-right: 10px; }

/* 模块 2 规则组装器 & 逐条检验标签 */
.rm-op-row { display: inline-flex; gap: 6px; }
.rm-op-btn {
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid #a7f3d0;
  color: #065f46;
  font-size: 20px;
  font-weight: 900;
}
.rm-op-btn.is-on { background: #10b981; border-color: #047857; color: #ffffff; }
.rm-check-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rm-chk-pill { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 900; }
.rm-chk-pill.is-ok { background: #d1fae5; color: #065f46; }
.rm-chk-pill.is-bad { background: #ffe4e6; color: #be123c; }
.rm-even-ok { padding: 4px 12px; border-radius: 999px; background: #d1fae5; border: 2px solid #10b981; color: #065f46; font-size: 14px; }

/* 直白线索卡（喂进 X ➜ 吐出 Y）+ 单动线预测机器出口槽 */
.rm-funnel { width: auto; min-width: 176px; padding: 7px 18px; white-space: nowrap; }
.rm-pair-card.is-clear {
  flex-direction: row;
  min-width: auto;
  padding: 6px 12px;
  gap: 6px;
}
.rm-pair-card.is-clear .rm-pc-in { font-size: 13.5px; color: #e2e8f0; }
.rm-pair-card.is-clear .rm-pc-arr { font-size: 13px; color: #6ee7b7; }
.rm-pair-card.is-clear .rm-pc-out { font-size: 15px; color: #fde047; }
.rm-guess-head {
  font-size: 15.5px;
  font-weight: 900;
  color: #064e3b;
  text-align: center;
  line-height: 1.45;
}
.rm-dish.is-slot-dish {
  min-width: 210px;
  background: linear-gradient(180deg, #fef9c3 0%, #fde047 100%);
  border: 3px solid #ea580c;
}
.rm-dish.is-slot-dish .rm-out-candy {
  min-width: 44px;
  padding: 2px 10px;
  border-radius: 12px;
  background: #ffffff;
  color: #b45309;
  text-align: center;
  border: 2px solid #f59e0b;
}

/* 预测步横向单动线（喂进 10 ➜ 机器 +5 ➜ 我猜吐出 ?），像算式一样一眼看懂且 100% 在 768px 首屏内 */
.rm-machine.is-horiz {
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.rm-machine.is-horiz .rm-funnel {
  min-width: 120px;
  border-radius: 18px;
  border: 2.5px solid #6ee7b7;
  padding: 10px 14px;
}
.rm-machine.is-horiz .rm-body {
  width: auto;
  min-width: 210px;
  padding: 10px 16px;
}
.rm-machine.is-horiz .rm-dish {
  margin-top: 0;
  min-width: 164px;
}

/* 第 1 周 / 第 2 周山谷顶徽章 + 多关思考挑战徽章 */
.sn-week-pill {
  align-self: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(92, 54, 24, 0.1);
}
.sn-week-pill.is-honey {
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  color: #92400e;
}
.sn-week-pill.is-mint {
  background: linear-gradient(180deg, #ecfdf5 0%, #a7f3d0 100%);
  border: 2px solid #10b981;
  color: #065f46;
}
.sn-week-pill.is-sky {
  background: linear-gradient(180deg, #f0f9ff 0%, #bae6fd 100%);
  border: 2px solid #0284c7;
  color: #0369a1;
}
.tp-round-pill {
  align-self: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

/* iPad/桌面 768px 首屏高度微调（让两行木质键盘完整留在首屏内） */
.sn-work-stage.is-focus-shell { gap: 6px; }
.sn-pet-banner { padding: 6px 14px; gap: 10px; }
.sn-pet-avatar-btn { min-width: 60px; min-height: 60px; }
.sn-pet-avatar-img { width: 56px; height: 56px; }
.sn-guide-text { font-size: clamp(16px, 2.1vw, 18.5px); line-height: 1.35; }
.is-focus-card { padding: 10px 14px; }
.is-focus-card .rm-machine-mat { padding: 9px 12px; gap: 7px; }
.is-focus-card .rm-strip-wrap { padding: 7px 12px; gap: 5px; }
.tp-card { gap: 7px; }

/* 手机 390px 7 步进度珠条双行网格自适应（零横向溢出） */
@media (max-width: 640px) {
  .sn-step-bar {
    grid-template-columns: 1fr auto;
    border-radius: 20px;
    padding: 6px 10px;
    row-gap: 6px;
  }
  .sn-step-left { grid-column: 1; grid-row: 1; }
  .sn-step-count { grid-column: 2; grid-row: 1; }
  .sn-step-pearls {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  .sn-step-pearl { min-width: 48px; min-height: 48px; font-size: 13px; }
  .sn-pearl-line { width: 4px; }
  .sn-island-btn small { font-size: 12px; }
}

/* 通关横幅 + 一键连闯下一关按钮组 */
.sn-lit-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
.sn-lit-msg {
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}
.sn-lit-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

/* =========================================================
   第 1 塔 · 蜂蜜烘焙屋精雕质感升级（木烤盘 + 3D 枕形巧克力 + 动态维度括号 + CPA 绘本图示）
   ========================================================= */
.hb-tray {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px 14px 10px 10px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fffdf6 0%, #faebd0 100%);
  border: 2.5px solid #e2bc84;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(120, 68, 20, 0.13);
}
@media (max-width: 640px) {
  .hb-tray { padding: 8px 8px 8px 6px; gap: 5px; border-radius: 20px; }
  .hb-row-brace { min-width: 26px; padding: 4px 3px; }
  .hb-row-brace b { font-size: 14px; }
  .hb-ruler-num { font-size: 9.5px; }
}
.hb-row-brace {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 5px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  color: #92400e;
  line-height: 1.1;
  box-shadow: 0 3px 8px rgba(180, 83, 9, 0.14);
}
.hb-row-brace b { font-size: 17px; font-weight: 900; }
.hb-row-brace span { font-size: 11px; font-weight: 900; }

.hb-split-brace {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 3px;
}
.hb-brace-pill {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 900;
  border: 1.5px solid;
}
.hb-brace-pill.is-honey { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.hb-brace-pill.is-berry { background: #ffe4e6; border-color: #fb7185; color: #be123c; }
.hb-brace-knife { font-size: 15px; animation: sn-finger-hop 1.2s ease-in-out infinite; }

/* 3D 枕形雕花蜂蜜巧克力块（内部凹槽高光 + 焦糖立体底边） */
.hb-tile::before {
  content: "";
  position: absolute;
  inset: 19%;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(120, 53, 15, 0.08) 100%);
  pointer-events: none;
}
.hb-slab {
  padding: 10px 10px 10px 10px;
  background: rgba(160, 96, 36, 0.12);
  border: 1.5px dashed rgba(196, 134, 62, 0.45);
}
.hb-slab-wrap { padding: 4px; }
.hb-slab-wrap.has-paw { padding: 4px 20px 20px 4px; }

/* 每排末尾木琴唱数累加泡 */
.hb-row-sum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
  margin-left: 0;
  border-radius: 999px;
  background: #fef08a;
  border: 0 solid #d97706;
  color: #78350f;
  font-size: 12.5px;
  font-weight: 900;
  transition: opacity 0.2s ease, width 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hb-row-sum.is-pop {
  width: 30px;
  min-width: 30px;
  height: 24px;
  margin-left: 4px;
  border-width: 2px;
  opacity: 1;
  transform: scale(1.06);
}

/* 转个身前后迷你图形对照卡 */
.hb-ghost-pill.is-visual {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
}
.hb-ghost-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  font-size: 13.5px;
  color: #1e3a8a;
}
.hb-ghost-mid { font-size: 12.5px; font-weight: 900; color: #2563eb; }
.hb-ghost-eq { font-size: 13.5px; font-weight: 900; color: #1e40af; }

/* 实时目标格数温度计 + 小老师出题卡 */
.hb-target-meter {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 900;
  text-align: center;
  border: 2px solid;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hb-target-meter.is-under { background: #fffbeb; border-color: #f5cb78; color: #92400e; }
.hb-target-meter.is-over { background: #fff1f2; border-color: #fda4af; color: #be123c; }
.hb-target-meter.is-hit {
  background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #10b981;
  color: #065f46;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.35);
}

.hb-teacher-deck {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hb-deck-lbl { font-size: 13px; font-weight: 900; color: #78350f; }
.hb-deck-card {
  min-height: 48px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #e7c58a;
  color: #5c3618;
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.14s ease, background-color 0.14s ease;
}
.hb-deck-card:hover { transform: translateY(-2px); background: #fffbeb; }
.hb-deck-card.is-on { background: #fef08a; border-color: #d97706; color: #78350f; }

.hb-chip-btn.is-sing-mini {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}
.hb-polaroid-svg.is-silhouette { background: #fffdf7; border-style: dashed; }

/* ThinkPad 绘本 CPA 图示舞台 */
.tp-mini-svg { display: block; margin: 2px auto; }
.tp-visual-stage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf7 0%, #fef7e6 100%);
  border: 1.5px solid #edd2a4;
  max-width: 100%;
}
.tp-visual-stage svg { max-width: 100%; height: auto; display: block; }
.tp-vis-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #f2cf8c;
  font-size: 13px;
  color: #5c3618;
}
.tp-vis-vs { font-size: 14px; font-weight: 900; color: #ea580c; }
.tp-fox-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 12px;
  background: repeating-linear-gradient(180deg, #ffffff 0 24px, #f1f5f9 24px 25px);
  border: 2px solid #fda4af;
  box-shadow: 0 4px 10px rgba(190, 18, 60, 0.08);
}
.tp-fox-tag { font-size: 12px; font-weight: 900; color: #be123c; }
.tp-fox-line { font-size: 15px; font-weight: 800; color: #3f240c; }
.tp-gift-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid #f5cb78;
  color: #78350f;
  font-size: 13.5px;
}
.tp-gift-pill b { font-size: 16px; color: #b45309; }
.tp-gift-pill span { font-size: 11px; color: #8c6d4f; font-weight: 800; }

/* 紧致切刀滑轨以确保 4×14 在 768px 高度内首屏完整可见 */
.is-focus-card .hb-mat { padding: 10px 12px; gap: 7px; }
.is-focus-card .hb-eq-plaque { padding: 6px 16px; font-size: 16.5px; }
.is-focus-card .hb-knife-rail { padding: 7px 14px; gap: 4px; }

/* =========================================================
   iPad 精准触控优化 + 绘本图卡视觉样式（零双击缩放 / 零误选 / 大触控热区）
   ========================================================= */
html, body {
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
.sn-app {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.sn-app input,
.sn-app textarea {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}
button,
summary,
a.sn-legacy-link,
.hb-tile,
.rm-candy-btn,
.tp-key,
.sn-lantern-btn,
.sn-step-pearl,
.gb-dial-btn,
.gb-big-cta,
.gb-chip-btn,
.gb-deck-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* iPad 宽舞台让 4×14 / 4×16 巧克力格更大更好点 */
@media (min-width: 820px) {
  .sn-work-stage.is-focus-shell { max-width: 860px; }
}

/* iPad 木质糖果大键盘 + 大旋钮 + 大糖果球（52–56px 精准防误触） */
.tp-key {
  min-height: 54px;
  font-size: 21px;
}
.tp-key:active,
.tp-choice-btn:active,
.hb-dial-btn:active,
.rm-candy-btn:active,
.sn-lantern-btn:active {
  transform: scale(0.94);
}
.hb-dial-btn,
.hb-paw-handle {
  min-width: 52px;
  min-height: 52px;
}
.rm-candy-btn {
  min-width: 56px;
  min-height: 56px;
}

/* iPad 可直接点击的列标尺数字按钮 + 巧克力表面直划切开 */
.hb-ruler-btn {
  min-height: 32px;
  padding: 2px 0;
  border-radius: 9px;
  border: 1.5px solid transparent;
  background: rgba(255, 251, 235, 0.72);
  color: #7c5938;
  font-weight: 900;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: transform 0.12s ease, background-color 0.14s ease, border-color 0.14s ease;
}
.hb-ruler-btn:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}
.hb-ruler-btn:active { transform: scale(0.92); }
.hb-ruler-btn.is-ten {
  background: linear-gradient(180deg, #fef08a 0%, #fde047 100%);
  border-color: #f59e0b;
  color: #92400e;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.24);
}
.hb-ruler-btn.is-cut-num {
  background: #f59e0b;
  border-color: #b45309;
  color: #ffffff;
}
.hb-slab.is-sliceable { touch-action: none; }
.hb-root.is-resizing .hb-slab,
.hb-root.is-resizing .hb-row,
.hb-root.is-resizing .hb-tile,
.hb-root.is-resizing .hb-seam { transition: none !important; }
.hb-seam.is-preview {
  transform: scaleX(1.4);
  background: linear-gradient(180deg, #fde047 0%, #ea580c 100%);
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.85);
}

/* iPad 大号蜂蜜切刀滑轨旋钮 + 切开后紧凑单行控制条 */
.hb-knife-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  margin: 13px 0 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fde68a 0%, #f59e0b 100%);
  border: 1.5px solid #d97706;
  outline: none;
  touch-action: none;
}
.hb-knife-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffbeb 0%, #fbbf24 55%, #d97706 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 3px 10px rgba(146, 64, 14, 0.35);
  cursor: grab;
}
.hb-knife-slider::-moz-range-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffbeb 0%, #fbbf24 55%, #d97706 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 3px 10px rgba(146, 64, 14, 0.35);
  cursor: grab;
}
.hb-knife-compact {
  width: min(560px, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 16px;
  background: #fffbeb;
  border: 1.5px solid #f2c982;
  font-size: 13.5px;
  font-weight: 800;
  color: #78350f;
}
.hb-knife-compact-acts {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 模块 2 绘本图卡视觉舞台（糖果配对 / 反例线索卡 / 甜筒账单） */
.tp-visual-stage.is-mint-vis {
  background: linear-gradient(180deg, #f0fdf9 0%, #dcfce7 100%);
  border-color: #86efac;
}
.tp-visual-stage.is-sky-vis {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #7dd3fc;
}
.tp-pair-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #6ee7b7;
  font-size: 13.5px;
  font-weight: 900;
  color: #065f46;
}
.tp-pair-pills,
.tp-clue-trio,
.tp-cone-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tp-candy-pair {
  padding: 4px 9px;
  border-radius: 999px;
  background: #d1fae5;
  border: 1.5px solid #34d399;
  font-size: 14px;
}
.tp-candy-solo {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef08a;
  border: 2px solid #f59e0b;
  color: #92400e;
  font-size: 13.5px;
  font-weight: 900;
}
.tp-candy-zero {
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 2px solid #10b981;
  color: #065f46;
  font-size: 13.5px;
  font-weight: 900;
}
.tp-clue-mini {
  padding: 5px 12px;
  border-radius: 12px;
  background: #1e293b;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
}
.tp-clue-mini b { color: #fde047; }
.tp-clue-mini.is-focus {
  background: #065f46;
  box-shadow: 0 0 0 2.5px #34d399;
}
.tp-bunny-claim {
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff1f2;
  border: 2px solid #fda4af;
  color: #be123c;
  font-size: 13.5px;
  font-weight: 900;
}
.tp-cone-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 10px;
  border-radius: 12px;
  background: #fffbeb;
  border: 2px solid #fcd34d;
  font-size: 14px;
  color: #92400e;
}
.tp-bag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 12px;
  background: #eff6ff;
  border: 2px solid #93c5fd;
  font-size: 14px;
  font-weight: 900;
  color: #1e40af;
}

/* =========================================================
   刀口与切缝严格 0px 同轴对齐系统（左/右括号 · 列数字 · 缝隙切口 ▾/🔪 · 居中虚线切痕）
   ========================================================= */
.hb-split-brace.is-aligned,
.hb-ruler-row.is-aligned,
.hb-cut-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0 11.5px;
}
.hb-split-brace.is-aligned { margin-bottom: 3px; }
.hb-brace-zone {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.hb-brace-zone .hb-brace-pill { white-space: nowrap; }
.hb-brace-gap { flex-shrink: 0; }

.hb-ruler-row.is-aligned { margin-bottom: 1px; }
.hb-ruler-row.is-aligned .hb-ruler-num {
  flex-shrink: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: #8c6640;
  line-height: 1.25;
}
.hb-ruler-row.is-aligned .hb-ruler-num.is-ten {
  background: #fef3c7;
  color: #b45309;
  border-radius: 6px;
}
.hb-ruler-spacer,
.hb-notch-col { flex-shrink: 0; }

.hb-cut-track {
  height: 36px;
  margin-bottom: 4px;
}
.hb-notch-slot {
  position: relative;
  flex-shrink: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hb-cut-notch {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 36px;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.55);
  border: 1.5px solid rgba(217, 119, 6, 0.35);
  color: #b45309;
  font-size: 16px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  touch-action: manipulation;
  transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}
.hb-cut-notch:hover,
.hb-cut-notch:focus-visible {
  background: #fef3c7;
  border-color: #d97706;
  color: #78350f;
  transform: translate(-50%, -50%) scale(1.12);
}
@keyframes hb-notch-bob {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, calc(-50% - 4px)) scale(1.1); }
}
.hb-cut-notch.is-glow {
  color: #d97706;
  animation: hb-notch-bob 1.4s ease-in-out infinite;
}
.hb-cut-notch.is-cut {
  width: 36px;
  height: 36px;
  background: linear-gradient(180deg, #fffbeb 0%, #fde047 100%);
  border: 2px solid #d97706;
  color: #78350f;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.34);
  animation: none;
}

/* 切刀模式下的巧克力行与严格居中的切缝虚线；自算阶段禁用板内切缝热区防点块唱数误切 */
.hb-root.is-split-calc .hb-seam,
.hb-root.is-split-calc .hb-seam::before {
  pointer-events: none;
  cursor: default;
}
.hb-row.is-slice-row { gap: 0; }
.hb-seam.is-exact {
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  cursor: col-resize;
  z-index: 4;
  transition: width 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.hb-seam.is-exact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 14px;
  transform: translateX(-50%);
}
.hb-seam.is-exact::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.14s ease, width 0.14s ease;
}
.hb-seam.is-exact.is-glow,
.hb-seam.is-exact.is-preview,
.hb-seam.is-exact:hover,
.hb-seam.is-exact.is-cut {
  background: transparent;
  box-shadow: none;
}
.hb-seam.is-exact.is-glow::after {
  background: rgba(245, 158, 11, 0.28);
}
.hb-seam.is-exact:hover::after,
.hb-seam.is-exact.is-preview::after {
  width: 4px;
  background: linear-gradient(180deg, #fde047 0%, #ea580c 100%);
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.72);
}
.hb-seam.is-exact.is-cut {
  background: transparent;
}
.hb-seam.is-exact.is-cut::after {
  width: 4px;
  background: repeating-linear-gradient(180deg, #f59e0b 0 6px, transparent 6px 11px);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}
@media (max-width: 640px) {
  .hb-cut-track, .hb-notch-slot { height: 32px; }
  .hb-cut-notch { width: 26px; height: 32px; font-size: 13px; }
  .hb-cut-notch.is-cut { width: 30px; height: 32px; font-size: 14px; }
}

/* =========================================================
   思考题大号题干 + 零暗示均衡 2×2 四选一布局（iPad 清晰可读）
   ========================================================= */
.tp-card { gap: 10px; }
.tp-q-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tp-speak-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 48px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid #d97706;
  background: #fffbeb;
  color: #78350f;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(146, 64, 14, 0.14);
}
.tp-speak-btn:active { transform: scale(0.95); }
.sn-app.is-painted .tp-speak-btn {
  border: 1px solid var(--pt-line-strong, rgba(110, 72, 36, .5));
  background: rgba(255, 251, 242, .95);
  color: var(--pt-ink, #4E3420);
  box-shadow: var(--pt-shadow-sm, 0 3px 10px rgba(122, 78, 30, .12));
}
.tp-q-title {
  width: 100%;
  padding: 12px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf7 0%, #fef6e4 100%);
  border: 2px solid #f0cf93;
  box-shadow: 0 4px 12px rgba(146, 64, 14, 0.08);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 900;
  color: #3f2006;
  line-height: 1.42;
  letter-spacing: 0.2px;
  text-align: center;
}
.tp-q-title b {
  color: #c2410c;
  font-size: 1.06em;
  padding: 0 2px;
}
.sn-app.is-theme-mint .tp-q-title {
  background: linear-gradient(180deg, #f4fdf9 0%, #dcfce7 100%);
  border-color: #6ee7b7;
  color: #064e3b;
}
.sn-app.is-theme-mint .tp-q-title b { color: #047857; }
.sn-app.is-theme-sky .tp-q-title {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #7dd3fc;
  color: #0c4a6e;
}
.sn-app.is-theme-sky .tp-q-title b { color: #0369a1; }

.tp-calc-guide,
.rm-guess-head {
  font-size: clamp(18px, 2.2vw, 20.5px);
  line-height: 1.42;
}
.tp-sub-lbl,
.tp-try-hint {
  font-size: 15px;
}
.tp-try-lbl {
  font-size: 15.5px;
  font-weight: 900;
  color: #6b4423;
}
.tp-try-row .hb-chip-btn {
  min-height: 48px;
  padding: 0 16px;
  font-size: 15.5px;
}

.tp-choice-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px) {
  .tp-choice-grid { grid-template-columns: 1fr; }
}
.tp-choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 2px solid #e4c694;
  box-shadow: 0 3px 0 #e4c694, 0 5px 12px rgba(92, 54, 24, 0.07);
  color: #3f2006;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.38;
  text-align: left;
  transition: transform 0.12s ease, border-color 0.14s ease, background-color 0.14s ease;
}
.sn-app.is-theme-mint .tp-choice-btn {
  border-color: #86efac;
  box-shadow: 0 3px 0 #86efac, 0 5px 12px rgba(6, 95, 70, 0.07);
  color: #064e3b;
}
.sn-app.is-theme-sky .tp-choice-btn {
  border-color: #7dd3fc;
  box-shadow: 0 3px 0 #7dd3fc, 0 5px 12px rgba(3, 105, 161, 0.07);
  color: #0c4a6e;
}
.tp-choice-btn:hover:not(:disabled) {
  border-color: #f59e0b;
  background: #fffdf7;
  transform: translateY(-2px);
}
.sn-app.is-theme-mint .tp-choice-btn:hover:not(:disabled) {
  border-color: #10b981;
  background: #f4fdf9;
}
.sn-app.is-theme-sky .tp-choice-btn:hover:not(:disabled) {
  border-color: #0284c7;
  background: #f0f9ff;
}
.tp-choice-btn.is-on {
  background: #fef3c7;
  border-color: #d97706;
  box-shadow: 0 3px 0 #d97706;
  color: #78350f;
}
.tp-choice-btn.is-wrong-picked {
  background: #fff1f2;
  border-color: #fb7185;
  box-shadow: 0 3px 0 #fb7185;
  color: #9f1239;
}
.tp-opt-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  color: #92400e;
  font-size: 15px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.sn-app.is-theme-mint .tp-opt-badge {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}
.sn-app.is-theme-sky .tp-opt-badge {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}
.tp-choice-btn.is-wrong-picked .tp-opt-badge {
  background: #ffe4e6;
  border-color: #f43f5e;
  color: #be123c;
}
.tp-opt-txt { flex: 1; min-width: 0; }

.tp-dot-box {
  padding: 12px 18px;
  gap: 6px;
  border-radius: 18px;
  min-height: 76px;
  justify-content: center;
}
.tp-dot-row { gap: 6px; }
.tp-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.48), 0 2px 0 rgba(146, 64, 14, 0.28);
}
.tp-dot.is-ghost {
  background: rgba(254, 243, 199, 0.35);
  border: 2px dashed #d9a76a;
  box-shadow: none;
}
.tp-dot-cap {
  font-size: 15.5px;
  color: #5c3618;
  margin-top: 4px;
}
.tp-feedback {
  font-size: 15.5px;
  padding: 11px 16px;
}

/* =========================================================
   模块 3：☁️ 云朵几何小棍工坊 (GeoBoard) — iPad 精准触控与绘本质感
   ========================================================= */
.gb-mat {
  overflow-x: auto;
  max-width: 100%;
}
.gb-big-cta {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16.5px;
  box-shadow: 0 5px 0 #0369a1, 0 10px 20px rgba(2, 132, 199, 0.24);
}
.gb-dial-btn {
  min-width: 52px;
  min-height: 52px;
}
.gb-chip-btn,
.gb-deck-card {
  min-height: 48px;
  border-radius: 999px;
}
.gb-polaroid.is-mystery {
  background: #f8fafc;
  border-style: dashed;
  border-color: #93c5fd;
}
.is-focus-card .gb-root { gap: 8px; }
.is-focus-card .gb-mat { padding: 10px 12px; gap: 8px; }
.is-focus-card .gb-eq-plaque { padding: 6px 14px; }
.is-focus-card .tp-calc-panel { padding: 8px 10px; gap: 6px; }
.is-focus-card .tp-keypad { padding: 5px; }

/* 山谷塔 1 推门小徽标、通关亲子对战快捷钮、语音静音/缺失轻抖动反馈 */
.sn-tower-enter-pill {
  position: relative;
  z-index: 3;
  margin-top: 2px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #FFF6CC;
  border: 1.5px solid #2E294E;
  color: #4E3420;
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(46, 41, 78, 0.2);
}
.sn-quiet-btn.is-duel-quick {
  background: linear-gradient(180deg, #FFF3D1 0%, #FFE09E 100%);
  border-color: rgba(180, 110, 35, 0.55);
  color: #5A3512;
  font-weight: 900;
}
.is-shake-mini { animation: sn-shake-mini 0.36s ease; }
@keyframes sn-shake-mini {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* ---------- 尊重系统减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* 动过手但这一步还没完成时的轻提示（app.js schedulePendingHint） */
.sn-pending-hint {
  margin: 0;
  max-width: 640px;
  padding: 10px 16px;
  border: 1px dashed rgba(110, 72, 36, .35);
  border-radius: 16px;
  background: #FFF6E4;
  color: #5A3D24;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  animation: sn-pending-in .35s ease both;
}
@keyframes sn-pending-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sn-pending-hint { animation: none; } }

/* =========================================================
   闯关塔专属账号胶囊 & 极简免邮箱登录/注册/切换账号弹窗
   ========================================================= */
.sn-acct-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 48px;
  max-width: 172px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  color: var(--wood-dark);
  background: rgba(255, 252, 244, 0.94);
  border: 2px solid rgba(226, 180, 120, 0.9);
  box-shadow: 0 4px 0 rgba(180, 122, 52, 0.35), 0 8px 16px rgba(92, 54, 24, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.sn-acct-btn:hover { transform: translateY(-2px); }
.sn-acct-btn:active { transform: translateY(2px) scale(0.97); }
.sn-acct-btn.is-guest {
  background: linear-gradient(180deg, #fff9dc 0%, #fde68a 100%);
  border-color: #d97706;
  color: #5a2d04;
}
.sn-acct-btn.is-logged {
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #10b981;
  color: #065f46;
}
.sn-acct-ico { font-size: 16px; line-height: 1; flex-shrink: 0; }
.sn-acct-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 104px;
}
.sn-acct-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #ffffff;
  flex-shrink: 0;
}

.sn-acct-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sn-acct-card.is-logged {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #86efac;
}
.sn-acct-card.is-guest {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  border-color: #fcd34d;
}

.sn-auth-mask {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(34, 24, 52, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 16px;
}
.sn-auth-card {
  position: relative;
  width: min(440px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 22px 20px;
  border-radius: 26px;
  background: #fffdf7;
  border: 3px solid #e2b478;
  box-shadow: 0 20px 50px rgba(46, 30, 12, 0.28);
  color: #3b220c;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sn-overlay-host.is-style-cartoon .sn-auth-card {
  border: 3px solid #2E294E;
  box-shadow: 6px 6px 0 #2E294E;
  color: #2E294E;
}
.sn-overlay-host.is-style-studio .sn-auth-card {
  background: #ffffff;
  border: 2px solid #1E293B;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  color: #0F172A;
}
.sn-auth-x {
  position: absolute;
  top: 12px;
  right: 12px;
}
.sn-auth-head { padding-right: 48px; }
.sn-auth-head h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; }
.sn-auth-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #065f46;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 7px 10px;
  line-height: 1.45;
}
.sn-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f5ecdc;
  padding: 4px;
  border-radius: 16px;
}
.sn-auth-tab {
  min-height: 48px;
  border-radius: 12px;
  background: transparent;
  color: #6b4423;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}
.sn-auth-tab.is-on {
  background: #ffffff;
  color: #2E294E;
  box-shadow: 0 2px 8px rgba(46, 41, 78, 0.14);
}
.sn-overlay-host.is-style-cartoon .sn-auth-tab.is-on {
  border: 2px solid #2E294E;
  background: #FFD95A;
}
.sn-auth-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.sn-auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sn-auth-field span {
  font-size: 13.5px;
  font-weight: 900;
  color: #4b3824;
}
.sn-auth-field small { font-weight: 700; color: #78716c; }
.sn-auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid #d6c2a5;
  background: #ffffff;
  color: #1e293b;
  font-size: 16px;
  font-weight: 700;
  box-sizing: border-box;
}
.sn-auth-field input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}
.sn-auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  font-size: 13.5px;
  font-weight: 800;
  color: #78350f;
  cursor: pointer;
}
.sn-auth-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #f59e0b;
}
.sn-auth-err {
  min-height: 20px;
  font-size: 13.5px;
  font-weight: 900;
  color: #dc2626;
  text-align: center;
}
.sn-auth-err:empty { display: none; }
.sn-honey-cta.is-auth-submit {
  width: 100%;
  min-height: 52px;
  font-size: 16.5px;
  justify-content: center;
}
.sn-auth-note {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}
.sn-auth-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 44px;
}
.sn-auth-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde68a 0%, #86efac 100%);
  border: 2.5px solid #2E294E;
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
}
.sn-auth-profile-head h2 { margin: 0; font-size: 21px; }
.sn-auth-meta { margin: 2px 0 6px; font-size: 13px; font-weight: 700; color: #64748b; }
.sn-auth-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  color: #065f46;
  background: #dcfce7;
  border: 1.5px solid #6ee7b7;
  padding: 3px 10px;
  border-radius: 999px;
}
.sn-auth-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sn-auth-stat {
  background: #fff9ec;
  border: 1.5px solid #f0d7ac;
  border-radius: 16px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sn-auth-stat b { font-size: 22px; color: #b45309; }
.sn-auth-stat span { font-size: 12px; font-weight: 800; color: #6b4423; }
.sn-auth-tip {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  line-height: 1.5;
}
.sn-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sn-auth-actions button { width: 100%; justify-content: center; }

@media (max-width: 640px) {
  .sn-acct-btn {
    padding: 0 10px;
    font-size: 13px;
    max-width: 136px;
  }
  .sn-acct-label { max-width: 76px; }
}
@media (max-width: 560px) {
  .sn-app.is-workshop .sn-acct-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    gap: 0;
  }
  .sn-app.is-workshop .sn-acct-btn .sn-acct-label { display: none; }
  .sn-app.is-workshop .sn-acct-btn .sn-acct-dot {
    position: absolute;
    top: 4px;
    right: 4px;
  }
}
