/* 故事闯关 · 样式
   书房与绘本：温暖的木头、烛光、纸张（参考立体绘本的书房感）
   闯关：明亮的方格纸、粗描边、越往后越热闹（参考闯关练习的节日感） */

:root {
  --font-ui: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-story: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "BiauKai", "Noto Serif SC", serif;
  --font-num: "Segoe UI Black", "Arial Black", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  --font-en: "Century Gothic", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-py: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;

  --wood-d: #2e1b10;
  --wood: #4a2e1c;
  --wood-m: #6b4329;
  --wood-l: #8c5a36;
  --wall: #4b5537;
  --paper: #fbf3df;
  --paper-2: #f4e7c8;
  --paper-edge: #e3d0a6;
  --ink: #3e2a1c;
  --ink-2: #6e5640;
  --ink-3: #9c8566;
  --amber: #d98b2b;
  --gold: #f2c14e;
  --good: #3f9d5c;
  --bad: #c9473f;

  --navy: #2b2d54;
  --blue: #3d6af2;
  --pink: #ff5c9a;
  --yellow: #ffd23f;
  --purple: #8b5cf6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--wood-d);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #4f8bff;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.ic {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: -0.22em;
}
.noscript {
  color: #fff;
  padding: 40px;
  text-align: center;
}

/* ---------- 屏幕切换 ---------- */
.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
}
.screen.active {
  display: block;
  animation: screenIn 0.35s ease-out;
}
@keyframes screenIn {
  from {
    opacity: 0;
  }
}
#fx-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 75;
}

/* ---------- 分数 ---------- */
.fr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
  font-size: 0.8em;
  margin: 0 0.12em;
  font-family: var(--font-num);
}
.fr-n {
  padding: 0 0.15em 0.08em;
  border-bottom: 0.11em solid currentColor;
}
.fr-d {
  padding: 0.08em 0.15em 0;
}

/* ====================================================================== */
/* 通用按钮                                                               */
/* ====================================================================== */
.wbtn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--wood);
  background: radial-gradient(circle at 50% 35%, #fff8e8, #ecd9b2 70%);
  border: 3px solid var(--wood-m);
  box-shadow: inset 0 -3px 0 rgba(90, 58, 36, 0.18), 0 3px 0 #2a170c, 0 8px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.wbtn .ic {
  width: 22px;
  height: 22px;
}
.wbtn:hover {
  transform: translateY(-1px);
}
.wbtn:active {
  transform: translateY(2px);
  box-shadow: inset 0 -2px 0 rgba(90, 58, 36, 0.18), 0 1px 0 #2a170c, 0 4px 8px rgba(0, 0, 0, 0.3);
}
.wbtn:disabled {
  opacity: 0.4;
  transform: none;
}
.wbtn .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #e0457b;
  color: #fff;
  font: 900 12px/20px var(--font-num);
  font-style: normal;
  border: 2px solid #fff3dc;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  border: 3px solid var(--navy);
  background: #fff;
  color: var(--navy);
  box-shadow: 0 4px 0 var(--navy);
  transition: transform 0.1s, box-shadow 0.1s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--navy);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-danger {
  background: #ffe3e0;
  color: #b42318;
  border-color: #b42318;
  box-shadow: 0 4px 0 #b42318;
}
.btn-locked {
  background: #eee9dd;
  color: #9c8f7a;
  border-color: #c9bda6;
  box-shadow: 0 3px 0 #c9bda6;
}
/* 纸张主题下的按钮：木头色 */
.theme-paper .btn,
.room .btn {
  border-color: var(--wood-m);
  color: var(--wood);
  background: #fff8e8;
  box-shadow: 0 3px 0 var(--wood-m);
}
.theme-paper .btn-primary,
.room .btn-primary {
  background: linear-gradient(#7a4a2c, #5c3820);
  color: #fff5df;
  border-color: #3b2416;
  box-shadow: 0 3px 0 #2a170c, 0 6px 12px rgba(74, 46, 28, 0.3);
}
.theme-paper .btn-danger {
  background: #ffe3e0;
  color: #b42318;
  border-color: #b42318;
  box-shadow: 0 3px 0 #b42318;
}
.room .btn-locked {
  background: #efe6d3;
  color: #a39074;
  border-color: #cdbb98;
  box-shadow: 0 3px 0 #cdbb98;
}
.link-btn {
  color: #b0601a;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  padding: 4px 2px;
}

/* ====================================================================== */
/* 弹窗与提示条                                                           */
/* ====================================================================== */
#modal-root {
  position: relative;
  z-index: 60;
}
.modal-back {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 12, 6, 0.6);
  opacity: 0;
  transition: opacity 0.2s;
  overflow-y: auto;
}
.modal-back.show {
  opacity: 1;
}
.modal-back.hide {
  opacity: 0;
}
.theme-pop.modal-back {
  background: rgba(43, 45, 84, 0.45);
}
.modal {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border-radius: 18px;
  padding: 24px 22px 18px;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.modal-back.show .modal {
  transform: none;
}
.modal.wide {
  width: min(780px, 100%);
}
.theme-paper .modal {
  background: radial-gradient(circle at 30% 0%, #fffaf0, var(--paper) 60%);
  color: var(--ink);
  border: 2px solid #c9a67a;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px #c9a67a, 0 30px 70px rgba(0, 0, 0, 0.55);
}
.theme-pop .modal {
  background: #fff;
  color: var(--navy);
  border: 3px solid var(--navy);
  box-shadow: 0 8px 0 var(--navy), 0 20px 40px rgba(43, 45, 84, 0.25);
}
.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
.modal-x:hover {
  background: rgba(0, 0, 0, 0.06);
}
.theme-pop .modal-x {
  color: var(--navy);
}
.modal-art {
  width: 120px;
  margin: -4px auto 2px;
}
.modal-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 900;
  color: #b07a3a;
}
.theme-pop .modal-kicker {
  color: var(--pink);
}
.modal-title {
  font-size: 24px;
  font-weight: 900;
  margin: 4px 36px 12px 0;
  line-height: 1.3;
}
.modal-body {
  font-size: 15px;
  line-height: 1.7;
}
.modal-body p + p {
  margin-top: 6px;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.modal-foot {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.muted {
  color: var(--ink-3);
  font-size: 14px;
}
#toast-root {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 85;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 24px);
}
.toast {
  background: #fffaf0;
  color: var(--ink);
  border: 2px solid #c9a67a;
  border-radius: 999px;
  padding: 8px 18px 8px 12px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast b {
  color: #b0601a;
}

/* ====================================================================== */
/* 书房（首页）                                                           */
/* ====================================================================== */
#screen-shelf {
  background: var(--wall);
}
.room {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  padding-bottom: 28px;
  background-color: var(--wall);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23626d48' stroke-width='2'%3E%3Cpath d='M32 6c9 9 9 17 0 26-9-9-9-17 0-26zM32 32c9 9 9 17 0 26-9-9-9-17 0-26zM6 32c9-9 17-9 26 0-9 9-17 9-26 0zM32 32c9-9 17-9 26 0-9 9-17 9-26 0z'/%3E%3Ccircle cx='32' cy='32' r='3' fill='%23626d48'/%3E%3C/g%3E%3C/svg%3E");
}
.room::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1100px 520px at 50% -8%, rgba(255, 214, 140, 0.32), transparent 62%), radial-gradient(900px 600px at 50% 120%, rgba(20, 10, 4, 0.55), transparent 70%);
}
.wall .glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 110, 0.35), transparent 65%);
  pointer-events: none;
  animation: flicker 3.4s ease-in-out infinite;
}
.wall .g1 {
  left: -120px;
  top: 220px;
}
.wall .g2 {
  right: -140px;
  top: 120px;
  animation-delay: -1.2s;
}
.wall .g3 {
  left: 40%;
  bottom: -160px;
  animation-delay: -2s;
}
@keyframes flicker {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  45% {
    opacity: 1;
    transform: scale(1.04);
  }
  60% {
    opacity: 0.75;
  }
}
.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(14px, 3vw, 32px);
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff3dc;
  text-decoration: none;
  margin-right: auto;
}
.brand-logo {
  width: 54px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}
.brand-t b {
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 0 #2a170c, 0 4px 12px rgba(0, 0, 0, 0.5);
}
.brand-t small {
  display: block;
  font-size: 12px;
  color: #e9d6a8;
  letter-spacing: 0.2em;
}
.my-souv {
  display: flex;
  gap: 4px;
  background: rgba(32, 34, 56, 0.72);
  border: 2px solid rgba(255, 235, 200, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.ms {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
}
.ms b {
  font: 900 17px var(--font-num);
}
.ms small {
  font-size: 12px;
  opacity: 0.7;
}
.ms-star .ic {
  color: #ffd23f;
}
.ms-check .ic {
  color: #6ee7a0;
  stroke-width: 3;
}
.ms-pin .ic {
  color: #ff7b6b;
}
.top-btns {
  display: flex;
  gap: 10px;
}

/* 上层木板与摆件 */
.shelf-top {
  position: relative;
  z-index: 1;
  margin: 4px clamp(10px, 4vw, 60px) 0;
}
.plank {
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(#7a4a2c, #4f2f1b 60%, #3a2213);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 220, 170, 0.25);
}
.plank-props {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 74px;
  padding: 0 4%;
}
.prop {
  display: block;
  position: relative;
}
.candle {
  width: 16px;
  height: 46px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(90deg, #f6ead2, #fffaf0 40%, #e7d6b5);
}
.candle .flame {
  position: absolute;
  left: 50%;
  top: -22px;
  width: 12px;
  height: 20px;
  margin-left: -6px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff7c2, #ffb238 60%, rgba(255, 120, 0, 0));
  box-shadow: 0 0 22px 10px rgba(255, 190, 90, 0.45);
  animation: flame 1.4s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}
@keyframes flame {
  0% {
    transform: scale(1) rotate(-3deg);
  }
  100% {
    transform: scale(1.12, 0.92) rotate(3deg);
  }
}
.figurine {
  width: 64px;
}
.globe {
  width: 44px;
  height: 52px;
}
.globe i {
  position: absolute;
  left: 2px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c9e9ff, #5b8def 55%, #2f4a7a);
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.15);
}
.globe::after {
  content: '';
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 20px;
  height: 10px;
  border-radius: 4px 4px 2px 2px;
  background: #b88a3c;
}
.owl {
  width: 52px;
}
.owl svg {
  width: 100%;
}
.hourglass {
  width: 26px;
  height: 46px;
}
.hourglass i {
  position: absolute;
  inset: 6px 3px;
  clip-path: polygon(0 0, 100% 0, 55% 50%, 100% 100%, 0 100%, 45% 50%);
  background: linear-gradient(#cfeaf7 0 45%, #f2c14e 45% 50%, #cfeaf7 50% 80%, #f2c14e 80%);
}
.hourglass::before,
.hourglass::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 2px;
  background: #8c5a36;
}
.hourglass::before {
  top: 0;
}
.hourglass::after {
  bottom: 0;
}

/* 书架上的书 */
.books-row {
  position: relative;
  z-index: 2;
  margin: 30px clamp(10px, 4vw, 60px) 0;
}
.books-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 28px);
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  padding-top: 18px;
}
.books-track::-webkit-scrollbar {
  display: none;
}
.cover {
  position: relative;
  flex: none;
  width: clamp(116px, 13.5vw, 164px);
  aspect-ratio: 3 / 4.1;
  border-radius: 4px 12px 12px 4px;
  background-color: var(--bc);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 6px), linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 14%, rgba(255, 255, 255, 0.08) 16%, rgba(0, 0, 0, 0) 22%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), inset -3px 0 0 rgba(0, 0, 0, 0.2), 6px 8px 14px rgba(0, 0, 0, 0.45);
  color: #fff3dc;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 10px 12px 16px;
  transform-origin: 50% 100%;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s;
}
.cover::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 6px;
  bottom: 4px;
  width: 7px;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(#fbf3df 0 2px, #e3d0a6 2px 3px);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  z-index: -1;
}
.cover:hover,
.cover:focus-visible {
  transform: translateY(-12px) rotate(-1.5deg);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16), inset -3px 0 0 rgba(0, 0, 0, 0.2), 10px 18px 22px rgba(0, 0, 0, 0.5);
}
.cv-grade {
  align-self: flex-start;
  background: #fff3dc;
  color: var(--wood);
  font-size: 11px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.cv-art {
  width: 100%;
  flex: 1;
  display: grid;
  place-items: center;
}
.cv-art svg {
  width: 92%;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.35));
}
.cv-title {
  font-weight: 900;
  font-size: clamp(13px, 1.45vw, 18px);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 1px #000;
}
.cv-stars {
  position: absolute;
  top: -12px;
  right: -8px;
  display: flex;
  background: #fff3dc;
  border-radius: 999px;
  padding: 2px 4px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}
.cv-stars i,
.stars i {
  color: #d8ccb4;
  display: inline-flex;
}
.cv-stars i.on,
.stars i.on {
  color: #f2a900;
}
.cv-stars .ic {
  width: 16px;
  height: 16px;
}
.cv-ribbon {
  position: absolute;
  top: 14px;
  right: -10px;
  background: #e0457b;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
  animation: ribbon 1.6s ease-in-out infinite;
}
@keyframes ribbon {
  50% {
    transform: translateY(-3px);
  }
}
.plank-low {
  height: 22px;
  margin-top: -2px;
}

/* 课本卡片 */
.cards {
  position: relative;
  z-index: 2;
  margin: 26px auto 0;
  padding: 0 clamp(12px, 3vw, 32px);
  max-width: 1240px;
}
.cards-head {
  text-align: center;
  color: #fff3dc;
  margin-bottom: 16px;
}
.cards-head h1 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 0 #2a170c, 0 6px 14px rgba(0, 0, 0, 0.5);
}
.cards-head p {
  margin-top: 6px;
  font-size: 15px;
  color: #ead7ad;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.cards-head .arrow {
  opacity: 0.7;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.bcard {
  position: relative;
  background: radial-gradient(circle at 20% 0%, #fffaf0, var(--paper) 55%);
  border-radius: 18px;
  padding: 14px 16px 14px;
  border: 2px solid #3b2416;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 6px #d8c39a, 0 14px 28px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.2s;
}
.bcard:hover {
  transform: translateY(-4px);
}
.bcard-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.bcard-art {
  flex: none;
  width: 76px;
  height: 64px;
  border-radius: 12px;
  background: var(--bc);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15), 0 4px 0 rgba(0, 0, 0, 0.25);
}
.bcard-art svg {
  width: 88%;
}
.bcard-h {
  min-width: 0;
}
.bcard-grade {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-3);
}
.bcard h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--bc);
  filter: brightness(0.85);
  line-height: 1.25;
}
.bcard-status {
  display: inline-block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 900;
  padding: 1px 8px;
  border-radius: 999px;
  background: #efe3c8;
  color: var(--ink-2);
}
.st-ready .bcard-status {
  background: #ffe1ec;
  color: #c2185b;
}
.st-drilled .bcard-status {
  background: #e3f6e8;
  color: #2e7d4f;
}
.st-reading .bcard-status {
  background: #fff1cc;
  color: #a5600f;
}
.bcard-row {
  display: grid;
  grid-template-columns: 22px 56px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px dashed #dcc9a2;
  font-size: 14px;
}
.bcard-row .step {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wood-m);
  color: #fff3dc;
  font: 900 12px var(--font-num);
}
.bcard-row .lbl {
  font-weight: 800;
  color: var(--ink-2);
}
.bcard-row b {
  font: 900 14px var(--font-num);
  color: var(--ink);
}
.ticks {
  display: flex;
  gap: 4px;
}
.ticks i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cdb68c;
  display: grid;
  place-items: center;
  background: #fffaf0;
}
.ticks i.on {
  background: #4caf6d;
  border-color: #2e7d4f;
  color: #fff;
}
.ticks .ic {
  width: 13px;
  height: 13px;
  stroke-width: 3.4;
}
.bcard-row .stars .ic {
  width: 20px;
  height: 20px;
}
.bcard-souv {
  display: flex;
  gap: 6px;
  padding: 8px 0 10px;
  border-top: 1px dashed #dcc9a2;
}
.sv {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #efe3c8;
}
.sv .art-icon {
  filter: grayscale(1) brightness(0.3) opacity(0.28);
}
.sv.got {
  background: #fff3c4;
  box-shadow: 0 0 0 2px #f2c14e;
}
.sv.got .art-icon {
  filter: none;
}
.bcard-acts {
  display: flex;
  gap: 8px;
}
.bcard-acts .btn {
  flex: 1;
  min-height: 42px;
  font-size: 14px;
  padding: 6px 10px;
}
.foot {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #cbb98f;
  font-size: 12px;
  margin-top: 26px;
  padding: 0 16px;
}

/* 封面弹窗 */
.cover-hero {
  position: relative;
  border-radius: 12px;
  background-color: var(--bc);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 6px);
  padding: 14px 16px 16px;
  color: #fff3dc;
  text-align: center;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.12), 0 6px 0 rgba(0, 0, 0, 0.2);
}
.ch-grade {
  position: absolute;
  left: 12px;
  top: 10px;
  background: #fff3dc;
  color: var(--wood);
  font-size: 12px;
  font-weight: 900;
  padding: 1px 8px;
  border-radius: 4px;
}
.ch-art svg {
  width: 160px;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.35));
}
.ch-title {
  font-size: 26px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}
.cover-desc {
  margin: 14px 4px 12px;
  font-family: var(--font-story);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.cover-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.cp-step {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fffaf0;
  border: 2px solid #dcc9a2;
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.3;
}
.cp-step b {
  display: block;
}
.cp-step small {
  color: var(--ink-3);
  font-size: 12px;
}
.cp-step.ok {
  border-color: #6dbb87;
  background: #eef9f1;
}
.cp-step.lock {
  opacity: 0.6;
}
.cp-n {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--wood-m);
  color: #fff3dc;
  display: grid;
  place-items: center;
  font: 900 13px var(--font-num);
}
.cp-arrow {
  color: var(--ink-3);
}
.cp-step .stars .ic {
  width: 15px;
  height: 15px;
}

/* 欢迎 */
.welcome-steps {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 10px;
}
.welcome-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fffaf0;
  border: 2px solid #e3d0a6;
  border-radius: 14px;
  padding: 10px 12px;
}
.welcome-steps b {
  font-size: 17px;
}
.welcome-steps p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.ws-n {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(#ffcf5a, #f2a900);
  color: #3b2416;
  font: 900 16px var(--font-num);
  box-shadow: 0 3px 0 #b07a00;
}

/* 词语本 / 错题本 / 奖杯 / 设置 */
.words-panel {
  display: grid;
  gap: 16px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 4px;
}
.wp-sec h3 {
  font-size: 17px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.wp-sec h3 small {
  font: 800 13px var(--font-num);
  color: var(--ink-3);
}
.bdot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.wp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.wp-item {
  background: #f3ead6;
  border: 2px dashed #d8c39a;
  border-radius: 12px;
  padding: 8px 10px;
}
.wp-item.got {
  background: #fffaf0;
  border-style: solid;
}
.wp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wp-top b {
  font-family: var(--font-story);
  font-size: 19px;
  color: #8a4b12;
}
.wp-item:not(.got) .wp-top b {
  color: var(--ink-3);
}
.wp-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.wp-say {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #b0601a;
  background: #fff1d6;
}
.review-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 46vh;
  overflow: auto;
}
.review-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffaf0;
  border: 2px solid #e3d0a6;
  border-radius: 12px;
  padding: 6px 10px;
}
.rv-tag {
  font-size: 11px;
  color: #fff;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.rv-q {
  font: 900 18px var(--font-num);
  flex: 1;
}
.review-list small {
  color: var(--ink-3);
  font-size: 12px;
}
.cup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: 60vh;
  overflow: auto;
}
.cup {
  border: 2px dashed #c9cce0;
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #9aa0bf;
}
.cup .cup-i {
  filter: grayscale(1) opacity(0.4);
}
.cup b {
  font-size: 14px;
}
.cup small {
  font-size: 12px;
  line-height: 1.4;
}
.cup em {
  font-style: normal;
  font-size: 11px;
  color: #9aa0bf;
}
.cup.got {
  border: 3px solid var(--navy);
  background: #fffbea;
  color: var(--navy);
  box-shadow: 0 3px 0 var(--navy);
}
.cup.got .cup-i {
  filter: none;
}
.cup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cup-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fffbea;
  border: 3px solid var(--navy);
  border-radius: 14px;
  padding: 6px 12px;
  animation: cupIn 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
.cup-list li:nth-child(2) {
  animation-delay: 0.12s;
}
.cup-list li:nth-child(3) {
  animation-delay: 0.24s;
}
.cup-list li:nth-child(n + 4) {
  animation-delay: 0.36s;
}
.cup-list b {
  display: block;
  font-size: 16px;
}
.cup-list small {
  color: #6b6f9c;
}
@keyframes cupIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
.toast-cup svg {
  flex: none;
}
.settings {
  display: grid;
  gap: 12px;
}
.sw {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
}
.sw input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.sw-ui {
  flex: none;
  width: 50px;
  height: 30px;
  border-radius: 15px;
  background: #d9cbb0;
  position: relative;
  transition: background 0.2s;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.2);
}
.sw-ui::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.sw input:checked + .sw-ui {
  background: #4caf6d;
}
.sw input:checked + .sw-ui::after {
  transform: translateX(20px);
}
.sw input:focus-visible + .sw-ui {
  outline: 3px solid #4f8bff;
  outline-offset: 2px;
}
.sw-t small {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #b0601a;
}
.rg {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.rg input[type='range'] {
  width: 100%;
  accent-color: #8c5a36;
}
.rg output {
  font: 800 14px var(--font-num);
  text-align: right;
}
.seg-set {
  display: inline-flex;
  gap: 6px;
  grid-column: span 2;
}
.seg-set button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid #c9a67a;
  font-weight: 800;
  background: #fffaf0;
}
.seg-set button.on {
  background: var(--wood-m);
  color: #fff3dc;
  border-color: var(--wood-m);
}
.danger-zone {
  border-top: 1px dashed #d8c39a;
  padding-top: 12px;
}

/* ====================================================================== */
/* 立体绘本阅读器                                                         */
/* ====================================================================== */
#screen-reader {
  background: #2a170c;
}
.rd {
  --cloth: #2f5aa0;
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  color: #fff3dc;
}
.rd-desk {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 520px at 50% 40%, rgba(255, 196, 120, 0.28), transparent 70%), repeating-linear-gradient(92deg, rgba(0, 0, 0, 0) 0 38px, rgba(0, 0, 0, 0.06) 38px 40px, rgba(255, 255, 255, 0.025) 40px 70px),
    linear-gradient(#4a2b18, #2f1a0d);
}
.rd-desk .lamp {
  position: absolute;
  right: 6%;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 140, 0.4), transparent 65%);
  animation: flicker 4s ease-in-out infinite;
}
.rd-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(10px, 2.4vw, 24px) 4px;
}
.rd-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.rd-grade {
  font-size: 12px;
  color: #e9d6a8;
}
.rd-name {
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 #1a0d05;
}
.rd-prog {
  margin: 0 auto;
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(20, 12, 6, 0.55);
  border: 1px solid rgba(255, 235, 200, 0.2);
  border-radius: 999px;
  padding: 5px 8px;
}
.rd-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 238, 205, 0.55);
  color: #f3e3c2;
  font: 900 12px var(--font-num);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.2s;
}
.rd-dot .ic {
  width: 15px;
  height: 15px;
}
.rd-dot.done {
  background: linear-gradient(#ffd77a, #f2b232);
  border-color: #ffe7a6;
  color: #3b2416;
}
.rd-dot.done .ic {
  stroke-width: 3.2;
}
.rd-dot.now {
  transform: scale(1.18);
  box-shadow: 0 0 0 3px rgba(255, 214, 122, 0.55), 0 0 16px rgba(255, 200, 100, 0.6);
}
.rd-dot.end {
  border-style: dashed;
}
.rd-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(32, 34, 56, 0.72);
  border: 2px solid rgba(255, 235, 200, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
}
.pill b {
  font: 900 16px var(--font-num);
}
.pill small {
  font-size: 12px;
  opacity: 0.7;
}
.rd-souv .ic {
  color: #ff7b6b;
}
.rd-main {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 6px clamp(8px, 2vw, 24px);
  min-height: 0;
}
.book {
  --pad: 12px;
  position: relative;
  width: min(1200px, 97vw, calc((100dvh - 186px) * 1.66));
  aspect-ratio: 1.66;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: var(--pad);
  border-radius: 18px;
  background-color: var(--cloth);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 6px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1), 0 4px 0 rgba(0, 0, 0, 0.35), 0 34px 60px rgba(0, 0, 0, 0.55);
  perspective: 2600px;
}
.page {
  position: relative;
  background: radial-gradient(circle at 50% 0%, #fffaf0, var(--paper) 70%);
  overflow: hidden;
  color: var(--ink);
}
.page-l {
  border-radius: 10px 3px 3px 10px;
  box-shadow: inset -28px 0 32px -26px rgba(90, 55, 20, 0.5), inset 0 0 0 1px rgba(160, 120, 70, 0.25);
}
.page-r {
  border-radius: 3px 10px 10px 3px;
  box-shadow: inset 28px 0 32px -26px rgba(90, 55, 20, 0.5), inset 0 0 0 1px rgba(160, 120, 70, 0.25);
}
.page-in {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(14px, 2vw, 28px) clamp(16px, 2.4vw, 32px);
  scrollbar-width: thin;
  scrollbar-color: #d8c39a transparent;
}
.page-r .page-in {
  display: flex;
  padding: clamp(10px, 1.3vw, 16px);
  overflow: hidden;
}
.gutter {
  position: absolute;
  top: var(--pad);
  bottom: var(--pad);
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: linear-gradient(90deg, rgba(90, 55, 20, 0.35), rgba(90, 55, 20, 0.05), rgba(90, 55, 20, 0.35));
  pointer-events: none;
  z-index: 4;
}
.book.book-open {
  animation: bookOpen 0.85s cubic-bezier(0.3, 1.2, 0.5, 1) both;
}
@keyframes bookOpen {
  0% {
    transform: perspective(1400px) rotateX(22deg) scale(0.86);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.book.slide-next {
  animation: slideNext 0.42s ease-out;
}
.book.slide-prev {
  animation: slidePrev 0.42s ease-out;
}
@keyframes slideNext {
  from {
    transform: translateX(28px);
    opacity: 0.4;
  }
}
@keyframes slidePrev {
  from {
    transform: translateX(-28px);
    opacity: 0.4;
  }
}
/* 翻页 */
.flipper {
  position: absolute;
  top: var(--pad);
  bottom: var(--pad);
  width: calc(50% - var(--pad));
  z-index: 6;
  transform-style: preserve-3d;
  pointer-events: none;
}
.fl-next {
  left: 50%;
  transform-origin: left center;
  animation: flipNext 0.72s cubic-bezier(0.45, 0.05, 0.35, 1) forwards;
}
.fl-prev {
  right: 50%;
  transform-origin: right center;
  animation: flipPrev 0.72s cubic-bezier(0.45, 0.05, 0.35, 1) forwards;
}
.fl-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 50% 0%, #fffaf0, var(--paper) 70%);
  overflow: hidden;
  color: var(--ink);
  padding: clamp(14px, 2vw, 28px) clamp(16px, 2.4vw, 32px);
}
.fl-face.is-r {
  display: flex;
  padding: clamp(10px, 1.3vw, 16px);
}
.fl-face::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(60, 35, 10, 0.25), transparent 30%, transparent 70%, rgba(60, 35, 10, 0.18));
  animation: flipShade 0.72s ease-in-out forwards;
}
.fl-back {
  transform: rotateY(180deg);
}
.fl-next .fl-front {
  border-radius: 3px 10px 10px 3px;
}
.fl-next .fl-back {
  border-radius: 10px 3px 3px 10px;
}
.fl-prev .fl-front {
  border-radius: 10px 3px 3px 10px;
}
.fl-prev .fl-back {
  border-radius: 3px 10px 10px 3px;
}
@keyframes flipNext {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(-180deg);
  }
}
@keyframes flipPrev {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(180deg);
  }
}
@keyframes flipShade {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

/* 左页：问题卡 */
.qcard {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.1vw, 12px);
  min-height: 100%;
}
.q-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 900;
  color: #a0703a;
}
.q-done {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.05em;
  color: #2e7d4f;
  background: #e3f6e8;
  padding: 1px 8px;
  border-radius: 999px;
}
.q-done .ic {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
.q-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  color: #7a3f12;
  line-height: 1.3;
  text-wrap: balance;
}
.q-story {
  font-family: var(--font-story);
  font-size: clamp(18px, 1.75vw, 23px);
  line-height: 1.95;
  color: #3b2a1e;
}
.tok {
  white-space: nowrap;
  border-radius: 6px;
  padding: 0.02em 0.04em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tok:hover {
  background: rgba(255, 214, 122, 0.35);
}
.tok.vocab {
  color: #8a4b12;
  font-weight: 700;
  border-bottom: 2px dotted #d08a2c;
}
.tok.now {
  background: #ffd978;
  box-shadow: 0 0 0 3px #ffd978;
  color: #3b2416;
}
.tok.read {
  color: #6e5640;
}
.tok.vocab.read {
  color: #8a4b12;
}
.tok.tapped {
  animation: tokTap 0.5s;
}
@keyframes tokTap {
  40% {
    background: #ffd978;
    transform: translateY(-2px);
  }
}
.q-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1vw, 12px);
  margin-top: 4px;
}
.choice {
  position: relative;
  min-height: clamp(70px, 9vh, 96px);
  border-radius: 16px;
  background: #fffaf0;
  border: 2px solid #e3cfa4;
  box-shadow: 0 4px 0 #dcc394;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
}
.choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #dcc394;
}
.choice:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #dcc394;
}
.c-big {
  font: 900 clamp(20px, 2.2vw, 30px) / 1.1 var(--font-num);
  color: #3b2a1e;
  text-align: center;
}
.c-big.long {
  font: 900 clamp(15px, 1.45vw, 19px) / 1.3 var(--font-ui);
}
.c-dots {
  display: grid;
  grid-template-columns: repeat(5, 9px);
  gap: 3px;
}
.c-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #d6be8e;
}
.c-dots i.on {
  background: #e8453c;
  border-color: #a92e27;
}
.choice.right {
  background: #e6f6ea;
  border-color: #49a86a;
  box-shadow: 0 4px 0 #3e8f59;
  animation: choiceRight 0.5s;
}
.choice.right::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3f9d5c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.8l4.4 4.4L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.choice.wrong {
  animation: shake 0.42s;
  opacity: 0.45;
  background: #f3ebdd;
}
.choice.off {
  opacity: 0.5;
  pointer-events: none;
}
@keyframes choiceRight {
  40% {
    transform: scale(1.06);
  }
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
.q-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: #fff3cf;
  border: 2px solid #f0c36a;
  font-weight: 900;
  color: #8a5a10;
  box-shadow: 0 3px 0 #e2b55a;
}
.hint-btn .ic {
  color: #e09a00;
}
.hint-btn small {
  font-weight: 800;
  font-size: 12px;
  color: #b07a2a;
  background: #ffe7a6;
  border-radius: 999px;
  padding: 1px 7px;
}
.hint-btn.empty {
  opacity: 0.55;
}
.q-tip {
  font-size: 12px;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.q-hint {
  background: #fff6d8;
  border-left: 4px solid #f2b33d;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.6;
  display: grid;
  gap: 4px;
}
.q-hint p {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.q-hint .ic {
  color: #e09a00;
  margin-top: 3px;
}
.q-key {
  position: relative;
  background: #eef8f1;
  border: 2px dashed #6dbb87;
  border-radius: 14px;
  padding: 10px 14px 8px;
  font-size: 15px;
  line-height: 1.7;
  transition: box-shadow 0.3s;
}
.q-key.speaking {
  box-shadow: 0 0 0 4px rgba(109, 187, 135, 0.35);
}
.q-key-h {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 900;
  color: #2e7d4f;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.q-key-eq {
  font: 900 clamp(22px, 2.4vw, 30px) / 1.3 var(--font-num);
  color: #1f6b3f;
  margin: 2px 0;
}
.got-it {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(#5cc07e, #3f9d5c);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  border: 3px solid #2e7d4f;
  box-shadow: 0 4px 0 #24603c, 0 10px 18px rgba(46, 125, 79, 0.3);
}
.got-it .ic {
  stroke-width: 3;
}
.got-it.again {
  background: #fffaf0;
  color: var(--wood);
  border-color: #c9a67a;
  box-shadow: 0 3px 0 #c9a67a;
  font-size: 15px;
  padding: 8px 18px;
}
.got-it.nudge {
  animation: nudge 0.8s 2;
}
@keyframes nudge {
  30% {
    transform: scale(1.08) rotate(-2deg);
  }
  60% {
    transform: scale(1.02) rotate(2deg);
  }
}
.reveal {
  animation: reveal 0.5s cubic-bezier(0.3, 1.4, 0.5, 1);
}
@keyframes reveal {
  from {
    transform: translateY(8px) scale(0.96);
    opacity: 0;
  }
}

/* 最后一页 */
.endcard .q-title {
  font-size: clamp(19px, 2vw, 25px);
}
.learned {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-family: var(--font-story);
  font-size: clamp(16px, 1.6vw, 20px);
}
.learned li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.learned .ic {
  color: #3f9d5c;
  stroke-width: 3;
  margin-top: 4px;
}
.end-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.end-stats div {
  background: #fffaf0;
  border: 2px solid #e3d0a6;
  border-radius: 12px;
  padding: 6px;
  text-align: center;
}
.end-stats small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
}
.end-stats b {
  font: 900 20px var(--font-num);
}
.end-souv {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.end-souv .sv {
  width: 46px;
  height: 46px;
}
.end-missing {
  font-size: 14px;
  color: #a5600f;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.end-cta {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #fff7e8;
  background-image: linear-gradient(rgba(43, 45, 84, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 45, 84, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--navy);
}
.end-burst {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 160%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(rgba(255, 210, 63, 0.28) 0 8deg, transparent 8deg 16deg);
  animation: spin 30s linear infinite;
  border-radius: 50%;
}
.end-mascot {
  position: relative;
  width: clamp(110px, 14vw, 160px);
  animation: jumpy 1.4s ease-in-out infinite;
}
.end-cta h3 {
  position: relative;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 900;
}
.end-sub {
  position: relative;
  font-weight: 800;
  color: #6b6f9c;
  font-size: 14px;
}
.end-rules {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}
.end-rules li {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 12px;
  padding: 5px 10px;
}
.end-rules .ic {
  color: var(--pink);
}
.btn-go {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: 999px;
  background: linear-gradient(#ff7ab0, #ff4f8b);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  border: 3px solid var(--navy);
  box-shadow: 0 5px 0 var(--navy);
  animation: pulseX 1.4s ease-in-out infinite;
}
.btn-go:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--navy);
}
.btn-go:disabled {
  background: #e6e2f2;
  color: #8d90b3;
  border-color: #b7b9d4;
  box-shadow: 0 4px 0 #b7b9d4;
  animation: none;
  font-size: 17px;
}
.end-best {
  position: relative;
  font-size: 13px;
  font-weight: 800;
  color: #6b6f9c;
  display: flex;
  align-items: center;
  gap: 4px;
}
.end-best .stars {
  display: inline-flex;
}
.end-best .ic {
  width: 16px;
  height: 16px;
}
@keyframes pulseX {
  50% {
    transform: scale(1.05);
  }
}
@keyframes jumpy {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 底部控制条 */
.rd-bot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 30px);
  padding: 6px 16px 12px;
}
.big-round {
  width: 56px;
  height: 56px;
}
.big-round .ic {
  width: 26px;
  height: 26px;
}
.rd-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pill-big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  background: radial-gradient(circle at 50% 30%, #fff8e8, #ecd9b2 75%);
  border: 3px solid var(--wood-m);
  box-shadow: inset 0 -3px 0 rgba(90, 58, 36, 0.2), 0 4px 0 #2a170c, 0 10px 20px rgba(0, 0, 0, 0.35);
}
.pill-big.on {
  background: radial-gradient(circle at 50% 30%, #fff3c4, #ffd06a 80%);
}
.pill-big:disabled {
  opacity: 0.45;
}
.seg {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(20, 12, 6, 0.6);
  border: 1px solid rgba(255, 235, 200, 0.22);
}
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: #f3e6cc;
}
.seg button .ic {
  width: 16px;
  height: 16px;
}
.seg button.on {
  background: #fff3d6;
  color: var(--ink);
}

/* 讲解员小彗 */
.rd-guide {
  position: absolute;
  z-index: 7;
  left: clamp(4px, 1.6vw, 22px);
  bottom: 8px;
  width: clamp(62px, 7vw, 92px);
  cursor: pointer;
}
.rd-bubble {
  position: absolute;
  left: 30%;
  bottom: 92%;
  width: max-content;
  max-width: min(300px, 62vw);
  background: #fffaf0;
  border: 2px solid #c9a67a;
  border-radius: 16px 16px 16px 4px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transform-origin: 0 100%;
  transition: opacity 0.2s, transform 0.25s;
  pointer-events: none;
}
.rd-guide.say .rd-bubble {
  opacity: 1;
  transform: none;
}
.rd-guide .mascot {
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}

/* 生词卡 */
.word-pop {
  position: fixed;
  z-index: 70;
  background: #fffaf0;
  border: 2px solid #c9a67a;
  border-radius: 16px;
  padding: 10px 14px 10px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s;
}
.word-pop.show {
  opacity: 1;
  transform: none;
}
.wp-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wp-h b {
  font-family: var(--font-story);
  font-size: 22px;
  color: #8a4b12;
}
.word-pop p {
  font-size: 15px;
  line-height: 1.6;
  margin: 4px 0;
}
.word-pop small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #3f9d5c;
  font-weight: 800;
  font-size: 12px;
}

/* ====================================================================== */
/* 立体图（SVG 场景）                                                     */
/* ====================================================================== */
.scene-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  width: 100%;
}
.scene-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene-svg {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
}
.scene-svg text {
  font-family: var(--font-ui);
  font-weight: 800;
}
.scene-btns {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 70%;
  z-index: 2;
}
.sbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff6e2;
  border: 2px solid var(--wood-m);
  color: var(--wood);
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 3px 0 var(--wood-m), 0 6px 12px rgba(74, 46, 28, 0.2);
  transition: transform 0.1s;
}
.sbtn .ic {
  width: 17px;
  height: 17px;
}
.sbtn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--wood-m);
}
.sbtn:disabled {
  opacity: 0.4;
}
.glow-btn {
  animation: glowBtn 0.9s ease-in-out 2;
}
@keyframes glowBtn {
  50% {
    box-shadow: 0 3px 0 var(--wood-m), 0 0 0 6px rgba(255, 200, 80, 0.7), 0 0 26px rgba(255, 190, 60, 0.9);
    transform: scale(1.06);
  }
}
.scene-cap {
  position: absolute;
  left: 50%;
  bottom: 6px;
  max-width: 92%;
  transform: translate(-50%, 10px);
  background: rgba(43, 30, 20, 0.88);
  color: #fff8e6;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  padding: 6px 14px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  text-align: center;
  z-index: 2;
}
.scene-cap.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.scene-bar {
  align-self: center;
  min-height: 38px;
  max-width: 100%;
  padding: 6px 18px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #e3d0a6;
  box-shadow: 0 3px 0 #e3d0a6;
  font-weight: 800;
  font-size: clamp(14px, 1.35vw, 17px);
  color: var(--ink);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.scene-bar:empty {
  visibility: hidden;
}
.scene-bar b {
  color: #c2410c;
  font-family: var(--font-num);
  font-size: 1.15em;
}
.bump {
  animation: bump 0.35s;
}
@keyframes bump {
  40% {
    transform: scale(1.07);
  }
}
.scene-wrap.demo .scene-svg {
  cursor: progress;
}

.scene-svg .tap {
  cursor: pointer;
}
.scene-svg .hit,
.scene-svg .hit-shape {
  fill: transparent;
}
.scene-svg .static {
  pointer-events: none;
}
.scene-svg .obj:focus {
  outline: none;
}
.scene-svg .obj:focus-visible .rx {
  filter: drop-shadow(0 0 3px #3d6af2) drop-shadow(0 0 2px #3d6af2);
}
.scene-svg .tap:hover > .pp > .rx {
  filter: drop-shadow(0 0 4px rgba(255, 196, 70, 0.95));
}
.pp,
.rx,
.pop-card,
.deco-in,
.flabel,
.badge-in {
  transform-box: fill-box;
}
.pp,
.rx,
.pop-card,
.deco-in {
  transform-origin: 50% 100%;
}
.flabel,
.badge-in {
  transform-origin: 50% 50%;
}
.scene-svg.pre .pop-card {
  transform: scaleY(0.02);
}
.scene-svg.pre .pop-ground,
.scene-svg.pre .card-shadow {
  opacity: 0;
}
.scene-svg.pre .pp.pop {
  transform: scale(0);
}
.scene-svg.popping .pop-card {
  animation: cardUp 0.75s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
.scene-svg.popping .pop-ground,
.scene-svg.popping .card-shadow {
  animation: fadeIn 0.4s both;
}
.scene-svg.popping .pp.pop {
  animation: objPop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes cardUp {
  0% {
    transform: scaleY(0.02);
  }
  60% {
    transform: scaleY(1.06);
  }
  100% {
    transform: scaleY(1);
  }
}
@keyframes objPop {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.rx.wiggle,
.react-shake {
  animation: wiggle 0.55s;
}
.rx.boing {
  animation: boing 0.45s;
}
.rx.jump {
  animation: jump 0.6s 2;
}
.rx.glow {
  animation: glow 0.7s ease-in-out 2;
}
.rx.flap {
  animation: flap 0.16s infinite alternate;
}
.rx.vanish {
  animation: vanish 0.4s forwards;
}
.rx.souv-pop {
  animation: souvPop 1.3s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.react-spin {
  animation: spin 1s cubic-bezier(0.3, 1.4, 0.5, 1);
  transform-origin: 50% 50% !important;
}
.react-drift {
  animation: drift 1s ease-in-out;
}
.react-float {
  animation: floaty 1s ease-in-out;
}
.react-choo {
  animation: choo 1s ease-in-out;
}
@keyframes wiggle {
  20% {
    transform: rotate(-8deg);
  }
  40% {
    transform: rotate(7deg);
  }
  60% {
    transform: rotate(-5deg);
  }
  80% {
    transform: rotate(3deg);
  }
}
@keyframes boing {
  30% {
    transform: scale(1.18, 0.82);
  }
  60% {
    transform: scale(0.9, 1.12);
  }
}
@keyframes jump {
  40% {
    transform: translateY(-14px);
  }
}
@keyframes glow {
  50% {
    filter: drop-shadow(0 0 6px #ffcf40) drop-shadow(0 0 10px #ffb703);
    transform: scale(1.08);
  }
}
@keyframes flap {
  to {
    transform: scale(1, 0.82);
  }
}
@keyframes vanish {
  to {
    transform: scale(0);
    opacity: 0;
  }
}
@keyframes souvPop {
  30% {
    transform: scale(2.2) rotate(-12deg);
  }
  60% {
    transform: scale(1.8) rotate(10deg);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes drift {
  50% {
    transform: translateX(16px);
  }
}
@keyframes floaty {
  50% {
    transform: translateY(-14px);
  }
}
@keyframes choo {
  40% {
    transform: translateX(-24px);
  }
  70% {
    transform: translateX(8px);
  }
}
.souv > .pp > .rx {
  animation: twinkle 5s ease-in-out infinite;
}
.souv.got > .pp > .rx {
  filter: drop-shadow(0 0 3px rgba(255, 200, 40, 0.9));
}
@keyframes twinkle {
  0%,
  88%,
  100% {
    transform: none;
  }
  92% {
    transform: rotate(-10deg) scale(1.08);
  }
  96% {
    transform: rotate(8deg) scale(1.04);
  }
}
.flabel {
  animation: flUp 1.4s ease-out forwards;
  pointer-events: none;
}
.flabel.stay {
  animation: flIn 0.35s ease-out both;
}
.fl-bg {
  fill: #fffaf0;
  stroke: #4a3326;
  stroke-width: 2;
}
.flabel.gold .fl-bg {
  fill: #fff3c2;
  stroke: #c98b00;
}
.fl-t {
  font-size: 15px;
  fill: #4a3326;
}
.fl-line {
  stroke: #4a3326;
  stroke-width: 2;
}
@keyframes flUp {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.8);
  }
  15% {
    opacity: 1;
    transform: none;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}
@keyframes flIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.85);
  }
}
.flabel-wrap,
.badge {
  pointer-events: none;
}
.badge-in {
  animation: objPop 0.35s both;
}
.badge-c {
  fill: #ffd23f;
  stroke: #4a3326;
  stroke-width: 2;
}
.badge-t {
  font-size: 12px;
  fill: #4a3326;
  font-family: var(--font-num) !important;
}
.sline {
  pointer-events: none;
}
.pair-line {
  stroke: #ff8a3d;
  stroke-width: 3;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  animation: fadeIn 0.25s;
}
.cut-line {
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw 0.35s forwards;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.mat-h {
  font-size: 14px;
  fill: #6b4329;
}
.mat-tag {
  font-size: 13px;
  fill: #3d6af2;
  font-family: var(--font-num) !important;
}
.mat-tag-b {
  fill: #e08a1c;
}
.eq-h {
  font-size: 13px;
  fill: #6b4329;
}
.eq-d {
  font-size: 24px;
  fill: #3e2a1c;
  text-anchor: middle;
  font-family: var(--font-num) !important;
}
.eq-b {
  fill: #e08a1c;
}
.eq-r {
  fill: #3d6af2;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: objPop 0.4s both;
}
.eq-c {
  font-size: 13px;
  text-anchor: middle;
  fill: #2e9d5c;
  font-family: var(--font-num) !important;
  animation: fadeIn 0.3s;
}
.eq-borrow {
  fill: #e0457b;
}
.eq-strike {
  stroke: #e0457b;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.tb-h {
  fill: #ffe9b0;
  stroke: #d9a441;
  stroke-width: 1.5;
}
.tb-ht {
  font-size: 15px;
  fill: #6b4329;
  font-family: var(--font-num) !important;
}
.tb-sel .tb-h {
  fill: #ffb347;
  stroke: #b8650a;
}
.tb-c {
  fill: #fff;
  stroke: #eadbbd;
  stroke-width: 1;
}
.tb-ct {
  font-size: 13px;
  fill: #3d6af2;
  font-family: var(--font-num) !important;
}
.tb-line .tb-c {
  fill: #fff3d6;
}
.tb-on .tb-c {
  fill: #ffd23f;
  stroke: #c98b00;
  stroke-width: 2;
}
.tb-x {
  font-size: 16px;
  fill: #6b4329;
}
.obj.dim > .pp > .rx {
  opacity: 0.45;
}
.obj.pick > .pp > .rx {
  filter: drop-shadow(0 0 4px #ffb703) drop-shadow(0 0 2px #ffb703);
}
.obj.ghost > .pp > .rx {
  opacity: 0.78;
}
.deco {
  cursor: pointer;
}

/* 闯关里“回书里看看” */
.lesson-pop {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.lesson-pop .scene-wrap {
  min-height: 300px;
  background: #fffaf0;
  border-radius: 14px;
  padding: 8px;
  border: 2px solid #e3d0a6;
}
.lp-key {
  background: #eef8f1;
  border: 2px dashed #6dbb87;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.7;
}
.lp-eq {
  font: 900 26px/1.3 var(--font-num);
  color: #1f6b3f;
  margin-bottom: 6px;
}

/* ====================================================================== */
/* 吉祥物                                                                 */
/* ====================================================================== */
.mascot {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.mascot .e-happy,
.mascot .e-dizzy,
.mascot .mo-open,
.mascot .mo-o,
.mascot .m-arm-up {
  display: none;
}
.mood-happy .mascot .e-open,
.mascot.cheering .e-open,
.mascot.giant .e-open,
.mood-dizzy .mascot .e-open {
  display: none;
}
.mood-happy .mascot .e-happy,
.mascot.cheering .e-happy,
.mascot.giant .e-happy {
  display: inline;
}
.mood-happy .mascot .mo-smile,
.mascot.cheering .mo-smile,
.mascot.giant .mo-smile,
.mood-dizzy .mascot .mo-smile {
  display: none;
}
.mood-happy .mascot .mo-open,
.mascot.cheering .mo-open,
.mascot.giant .mo-open {
  display: inline;
}
.mood-dizzy .mascot .e-dizzy,
.mood-dizzy .mascot .mo-o {
  display: inline;
}
.arms-up .mascot .m-arm,
.mascot.cheering .m-arm,
.mascot.giant .m-arm {
  display: none;
}
.arms-up .mascot .m-arm-up,
.mascot.cheering .m-arm-up,
.mascot.giant .m-arm-up {
  display: inline;
}
.mascot .m-root,
.mascot .m-tail,
.mascot .m-antenna,
.mascot .e-open {
  transform-box: fill-box;
}
.mascot .m-root {
  transform-origin: 50% 100%;
}
.mascot .m-tail {
  transform-origin: 100% 40%;
  animation: tailWag 1.8s ease-in-out infinite;
}
.mascot .m-antenna {
  transform-origin: 0% 100%;
  animation: antenna 2.2s ease-in-out infinite;
}
.mascot .e-open {
  transform-origin: 50% 50%;
  animation: blink 4.2s infinite;
}
@keyframes tailWag {
  50% {
    transform: rotate(-7deg) scaleX(1.05);
  }
}
@keyframes antenna {
  50% {
    transform: rotate(10deg);
  }
}
@keyframes blink {
  0%,
  94%,
  100% {
    transform: none;
  }
  97% {
    transform: scaleY(0.1);
  }
}
.hop .m-root {
  animation: hop 0.32s;
}
.cheer .m-root {
  animation: cheer 0.9s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.dizzy .m-root {
  animation: dizzy 0.8s;
}
.shake .m-root {
  animation: wiggle 0.6s;
}
.mascot.cheering .m-root,
.rd-guide.hop .m-root {
  animation: hop 0.5s;
}
.talking .mascot .mo-smile path {
  animation: talk 0.22s infinite alternate;
  transform-box: fill-box;
  transform-origin: 50% 0;
}
@keyframes hop {
  40% {
    transform: translateY(-12%) scale(1.03, 0.97);
  }
}
@keyframes cheer {
  0% {
    transform: none;
  }
  35% {
    transform: translateY(-26%) rotate(-12deg);
  }
  65% {
    transform: translateY(-10%) rotate(10deg);
  }
  100% {
    transform: none;
  }
}
@keyframes dizzy {
  20% {
    transform: rotate(-14deg) translateY(4%);
  }
  45% {
    transform: rotate(10deg) translateY(6%) scale(1.04, 0.92);
  }
  70% {
    transform: rotate(-5deg);
  }
}
@keyframes talk {
  to {
    transform: scaleY(1.8);
  }
}

/* ====================================================================== */
/* 闯关                                                                   */
/* ====================================================================== */
#screen-drill {
  background-color: #fff7e8;
  background-image: linear-gradient(rgba(43, 45, 84, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 45, 84, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--navy);
}
.dr {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.dr-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dr-blob {
  position: absolute;
  border-radius: 50%;
}
.dr-blob.b1 {
  width: 44vmin;
  height: 44vmin;
  left: -10vmin;
  top: 4vmin;
  background: rgba(255, 111, 168, 0.16);
}
.dr-blob.b2 {
  width: 50vmin;
  height: 50vmin;
  right: -12vmin;
  bottom: -4vmin;
  background: rgba(61, 106, 242, 0.12);
}
.dr-rays {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 220vmax;
  height: 220vmax;
  margin: -110vmax 0 0 -110vmax;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 180, 210, 0.45) 0 6deg, rgba(255, 255, 255, 0) 6deg 12deg);
  opacity: 0;
  transition: opacity 0.9s;
  animation: spin 50s linear infinite;
}
.dr[data-tier='2'] .dr-rays {
  opacity: 0.35;
}
.dr[data-tier='3'] .dr-rays {
  opacity: 0.6;
}
.dr[data-tier='4'] .dr-rays,
.dr[data-tier='5'] .dr-rays {
  opacity: 0.85;
  background: repeating-conic-gradient(rgba(255, 150, 200, 0.5) 0 6deg, rgba(255, 255, 255, 0) 6deg 12deg, rgba(150, 190, 255, 0.5) 12deg 18deg, rgba(255, 255, 255, 0) 18deg 24deg, rgba(255, 220, 110, 0.55) 24deg 30deg, rgba(255, 255, 255, 0) 30deg 36deg);
  animation-duration: 26s;
}
.dr-streamers {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
}
.dr[data-tier='4'] .dr-streamers,
.dr[data-tier='5'] .dr-streamers {
  opacity: 0.85;
}
.streamer {
  position: absolute;
  top: -30%;
  width: 70px;
  height: 160%;
  animation: streamer 10s linear infinite;
}
.streamer.s0 {
  left: 4%;
}
.streamer.s1 {
  left: 22%;
  animation-delay: -3s;
  animation-duration: 12s;
}
.streamer.s2 {
  left: 58%;
  animation-delay: -6s;
}
.streamer.s3 {
  left: 76%;
  animation-delay: -1.5s;
  animation-duration: 11s;
}
.streamer.s4 {
  left: 92%;
  animation-delay: -8s;
}
@keyframes streamer {
  from {
    transform: translateY(-20%) rotate(8deg);
  }
  to {
    transform: translateY(20%) rotate(-8deg);
  }
}
.dr-crowd .crowd-m {
  position: absolute;
  width: calc(76px * var(--sc, 1));
  animation: crowdFloat 5s ease-in-out infinite;
  animation-delay: var(--dl, 0s);
  opacity: 0.9;
}
.crowd-m.cheer {
  animation: crowdCheer 0.8s;
}
@keyframes crowdFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(-6deg);
  }
  50% {
    transform: translate(10px, -18px) rotate(6deg);
  }
}
@keyframes crowdCheer {
  40% {
    transform: translateY(-30px) scale(1.15);
  }
}
.dr-col {
  position: relative;
  z-index: 1;
  max-width: 560px;
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto minmax(90px, 1fr) auto auto;
  gap: 8px;
  padding: 10px 14px max(14px, env(safe-area-inset-bottom));
}
.dr-top {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
}
.dr-round {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--navy);
  box-shadow: 0 3px 0 var(--navy);
  display: grid;
  place-items: center;
  color: var(--navy);
}
.dr-round .ic {
  width: 22px;
  height: 22px;
  stroke-width: 3;
}
.dr-round:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--navy);
}
.dr-round.off {
  opacity: 0.45;
}
.dr-dots {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--navy);
  background: #fff;
  transition: transform 0.2s, background 0.2s;
}
.dot.now {
  background: var(--yellow);
  transform: scale(1.25);
}
.dot.done {
  background: var(--blue);
}
.dot.done-oops {
  background: #b9a6ff;
}
.dr-clock {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: 0 3px 0 var(--navy);
}
.dr-goal {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.dr-time {
  font: 900 22px/1 var(--font-num);
  min-width: 2.6em;
  text-align: right;
}
.dr-clock.over .dr-time {
  color: #e07a00;
}
.dr-clock.hurry {
  background: #ffe1e1;
  animation: hurry 0.5s infinite alternate;
}
.dr-clock.hurry .dr-time {
  color: #d92d20;
}
@keyframes hurry {
  to {
    transform: scale(1.06);
  }
}
.dr-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 3px 0 var(--navy);
  white-space: nowrap;
}
.chip b {
  font: 900 18px var(--font-num);
}
.chip small {
  font-size: 12px;
  opacity: 0.7;
}
.chip-oops b {
  color: var(--purple);
}
.chip-dust {
  margin-left: auto;
  background: var(--yellow);
}
.dr[data-tier='4'] .chip-dust,
.dr[data-tier='5'] .chip-dust {
  background: linear-gradient(90deg, #ffd23f, #ff9cc6);
}
.chip-combo {
  position: relative;
  padding-bottom: 8px;
}
.chip-combo b {
  color: var(--pink);
}
.chip-combo small {
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.85;
}
.combo-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 3px;
  border-radius: 2px;
  background: rgba(43, 45, 84, 0.15);
  overflow: hidden;
}
.combo-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--pink);
}
.dr-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 90px;
}
.dr-bunting {
  position: absolute;
  left: -4%;
  right: -4%;
  top: 0;
  height: 40px;
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.6s, transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.dr-bunting svg {
  width: 100%;
  height: 100%;
}
.dr[data-tier='2'] .dr-bunting,
.dr[data-tier='3'] .dr-bunting,
.dr[data-tier='4'] .dr-bunting,
.dr[data-tier='5'] .dr-bunting {
  opacity: 1;
  transform: none;
}
.dr-mascot-wrap {
  position: relative;
  z-index: 2;
  width: clamp(92px, 15vh, 136px);
  margin-bottom: -4px;
}
.dr-mascot-wrap .mascot {
  animation: breathe 2.6s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.dr-mascot-wrap.out-L .m-armL,
.dr-mascot-wrap.out-R .m-armR,
.dr-mascot-wrap.out-L .m-armL-up,
.dr-mascot-wrap.out-R .m-armR-up {
  opacity: 0;
}
@keyframes breathe {
  50% {
    transform: scale(1.02, 0.98);
  }
}
.dr-floor {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--navy);
}
.dr-friends .friend {
  position: absolute;
  bottom: 2px;
  width: clamp(54px, 9vh, 78px);
  animation: friendIn 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
.friend .mascot {
  animation: breathe 2.2s ease-in-out infinite;
}
.friend.f0 {
  left: 17%;
}
.friend.f1 {
  right: 17%;
}
.friend.f2 {
  left: 1%;
}
.friend.f3 {
  right: 1%;
}
.friend.cheer .m-root {
  animation: cheer 0.8s;
}
@keyframes friendIn {
  from {
    transform: translateY(40px) scale(0.4);
    opacity: 0;
  }
}
.dr-say {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 4;
  transform: translateX(-50%);
  width: min(94%, 440px);
  background: #fffbe0;
  border: 3px solid var(--navy);
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 4px 0 var(--navy);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dr-say.pop {
  animation: reveal 0.35s;
}
.say-book {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  border: 2px solid var(--navy);
}
.dr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(150px, 24vh, 214px);
  padding: 10px 14px 10px;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--navy);
  transition: outline-color 0.5s;
  outline: 4px dashed transparent;
  outline-offset: 5px;
}
.dr[data-tier='3'] .dr-card,
.dr[data-tier='4'] .dr-card,
.dr[data-tier='5'] .dr-card {
  outline-color: rgba(255, 92, 154, 0.55);
}
.dr-card.card-out .dr-prob {
  animation: probOut 0.17s ease-in forwards;
}
.dr-card.card-in .dr-prob {
  animation: probIn 0.32s cubic-bezier(0.3, 1.4, 0.5, 1);
}
@keyframes probOut {
  to {
    transform: translateX(-40px);
    opacity: 0;
  }
}
@keyframes probIn {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
.dr-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dr-tag {
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 1px 12px;
  font-size: 13px;
  font-weight: 900;
}
.dr-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #7a7ea8;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dr-q {
  font: 900 15px var(--font-num);
}
.dr-prob {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0 2px;
}
.prob {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.18em;
  font: 900 clamp(34px, 8.6vw, 54px) / 1.15 var(--font-num);
  color: var(--navy);
}
.po {
  color: var(--blue);
}
.pt {
  color: #8a8fb8;
  font-size: 0.62em;
  letter-spacing: -0.1em;
}
.pn,
.dg {
  display: inline-block;
  border-radius: 10px;
  transition: background 0.2s, box-shadow 0.2s;
}
.pb {
  display: inline-flex;
}
.ref {
  background: #fff1a8 !important;
  box-shadow: 0 0 0 3px #f4c430 !important;
  border-radius: 10px;
}
.cell {
  display: inline-grid;
  place-items: center;
  min-width: 0.92em;
  height: 1.16em;
  padding: 0 0.06em;
  border-radius: 12px;
  margin: 0 0.02em;
  line-height: 1;
}
.cell.q {
  border: 3px dashed #7ea0ff;
  background: #eef3ff;
  color: #9db5ff;
  font-size: 0.82em;
  min-width: 1.1em;
  height: 1.4em;
}
.cell.appear {
  animation: qIn 0.2s 0.22s both;
}
.cell.ok {
  color: var(--navy);
}
.cell.bad {
  color: var(--purple);
  border: 3px dashed var(--purple);
  background: #f5f0ff;
}
.cell.land {
  animation: land 0.26s 0.27s both;
}
.cell.bad.land {
  animation: landBad 0.55s 0.27s both;
}
.cell.land0 {
  animation: none;
}
@keyframes qIn {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
@keyframes land {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  70% {
    transform: scale(1.25);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes landBad {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  35% {
    transform: scale(1.1);
    opacity: 1;
  }
  55% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
  100% {
    transform: none;
  }
}
.recap {
  font: 800 15px var(--font-ui);
  color: var(--blue);
  margin-top: 2px;
  animation: fadeIn 0.3s;
}
.recap .fr {
  font-size: 0.85em;
}
.dr-cap {
  text-align: center;
  font-weight: 900;
  font-size: 13px;
  color: var(--blue);
  min-height: 18px;
}
/* 竖式 */
.prob-col {
  display: grid;
  grid-template-columns: 0.8em repeat(var(--cols), 1em);
  column-gap: 0.1em;
  row-gap: 0;
  align-items: center;
  justify-items: center;
  font-size: clamp(32px, 7.6vw, 46px);
}
.pc-help {
  font-size: 0.42em;
  height: 1.15em;
  color: transparent;
  align-self: end;
  line-height: 1.1;
}
.pc-help.show {
  animation: qIn 0.3s both;
}
.pc-help.carry {
  color: #2e9d5c;
}
.pc-help.borrow {
  color: #e0457b;
}
.pc-d {
  position: relative;
  padding: 0 0.04em;
}
.pc-d.struck {
  color: #b8b9d0;
}
.pc-d.struck::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 0.08em;
  border-radius: 2px;
  background: #e0457b;
  transform: rotate(-28deg);
}
.pc-op {
  color: var(--blue);
}
.pc-rule {
  width: 100%;
  height: 0.09em;
  background: var(--navy);
  border-radius: 2px;
  margin: 0.06em 0 0.08em;
}
.pc-slot {
  display: grid;
  place-items: center;
  min-height: 1.4em;
}
.pc-slot .cell {
  margin: 0;
}
/* 分数 */
.pf {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-size: 0.8em;
  margin: 0 0.06em;
}
.pf-line {
  width: 100%;
  min-width: 1.2em;
  height: 0.09em;
  background: var(--navy);
  border-radius: 2px;
  margin: 0.08em 0;
}
.pf-n,
.pf-d {
  min-height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.06em;
  border-radius: 10px;
}
.pf .cell.q {
  height: 1.25em;
}
/* 数字键盘 */
.dr-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.key {
  height: clamp(46px, 7.4vh, 62px);
  border-radius: 16px;
  background: #fff;
  border: 3px solid var(--navy);
  box-shadow: 0 4px 0 var(--navy);
  font: 900 clamp(24px, 3.4vh, 30px) var(--font-num);
  color: var(--navy);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.06s, box-shadow 0.06s, background 0.4s;
}
.key.press,
.key:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--navy);
}
.key-bs {
  background: #ffd6e5;
}
.key-0 {
  grid-column: span 2;
}
.dr:not([data-tier='0']) .key[data-k='7'],
.dr:not([data-tier='0']) .key[data-k='3'] {
  background: #ffe1ea;
}
.dr:not([data-tier='0']) .key[data-k='8'],
.dr:not([data-tier='0']) .key[data-k='4'] {
  background: #fff1b8;
}
.dr:not([data-tier='0']) .key[data-k='9'],
.dr:not([data-tier='0']) .key[data-k='5'],
.dr:not([data-tier='0']) .key[data-k='1'] {
  background: #dfe9ff;
}
.dr:not([data-tier='0']) .key[data-k='6'],
.dr:not([data-tier='0']) .key[data-k='2'],
.dr:not([data-tier='0']) .key[data-k='0'] {
  background: #d9f6e9;
}
/* 胳膊 */
.dr-arms {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
  overflow: visible;
}
.arm-o {
  fill: none;
  stroke: var(--navy);
  stroke-width: 11;
  stroke-linecap: round;
}
.arm-i {
  fill: none;
  stroke: #ffe066;
  stroke-width: 6;
  stroke-linecap: round;
}
.arm-h circle {
  fill: #ffe066;
  stroke: var(--navy);
  stroke-width: 3;
}
.arm-h text {
  font: 900 24px var(--font-num);
  fill: var(--navy);
  stroke: #fff;
  stroke-width: 5px;
  paint-order: stroke;
}
/* 大字横幅 */
.dr-cutin {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}
.cut {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 40%;
  padding: 10px 0;
  text-align: center;
  background: var(--navy);
  transform: rotate(-6deg);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
  animation: cutBand 1.25s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.cut span {
  display: inline-block;
  font: 900 clamp(34px, 8vw, 66px) / 1.1 var(--font-ui);
  color: var(--yellow);
  letter-spacing: 0.06em;
  -webkit-text-stroke: 2px var(--navy);
  text-shadow: 0 4px 0 #ff5c9a;
}
.cut-ready {
  animation-duration: 0.9s;
  background: #fff;
  border-top: 4px solid var(--navy);
  border-bottom: 4px solid var(--navy);
}
.cut-go {
  background: var(--blue);
}
.cut-last {
  background: var(--pink);
}
.cut-combo {
  background: #ff8a3d;
  top: 22%;
}
.cut-dust {
  background: var(--purple);
  top: 20%;
  transform: rotate(5deg);
}
.cut-final {
  background: var(--blue);
}
.cut-extra {
  background: #e0457b;
}
@keyframes cutBand {
  0% {
    translate: -110% 0;
  }
  16% {
    translate: 0 0;
  }
  84% {
    translate: 0 0;
  }
  100% {
    translate: 110% 0;
  }
}
.dr-finale {
  position: fixed;
  left: 50%;
  bottom: -12px;
  width: min(80vw, 440px);
  transform: translateX(-50%);
  z-index: 35;
  pointer-events: none;
}
.dr-finale .giant {
  animation: giantUp 1.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  filter: drop-shadow(0 10px 0 rgba(43, 45, 84, 0.2));
}
@keyframes giantUp {
  0% {
    transform: translateY(100%) scale(0.6);
  }
  45% {
    transform: translateY(0) scale(1);
  }
  85% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(20%) scale(0.95);
    opacity: 0;
  }
}
/* 结果 */
.dr-result {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(43, 45, 84, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
}
.dr-result.show {
  opacity: 1;
}
.res-card {
  position: relative;
  width: min(540px, 100%);
  margin-top: 56px;
  padding: 18px 18px 16px;
  text-align: center;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 26px;
  box-shadow: 0 8px 0 var(--navy);
  animation: resIn 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
@keyframes resIn {
  from {
    transform: translateY(40px) scale(0.9);
    opacity: 0;
  }
}
.res-mascot {
  width: 124px;
  margin: -82px auto 0;
}
.res-kicker {
  font-size: 13px;
  font-weight: 800;
  color: #6b6f9c;
}
.res-title {
  font-size: 28px;
  font-weight: 900;
  margin: 2px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.res-new {
  font-size: 13px;
  background: var(--pink);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  border: 2px solid var(--navy);
}
.res-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.res-score b {
  font: 900 64px/1 var(--font-num);
  color: var(--pink);
  -webkit-text-stroke: 2px var(--navy);
  text-shadow: 0 4px 0 var(--navy);
}
.res-score span {
  font-weight: 900;
  font-size: 20px;
}
.res-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 2px;
}
.rs {
  display: inline-flex;
  color: #e7e3f3;
  animation: starIn 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: calc(0.45s + var(--i) * 0.26s);
}
.rs .ic {
  width: 46px;
  height: 46px;
  stroke: var(--navy);
  stroke-width: 1.6;
}
.rs.on {
  color: var(--yellow);
}
@keyframes starIn {
  from {
    transform: scale(0) rotate(-90deg);
  }
}
.res-note {
  font-size: 14px;
  font-weight: 700;
  margin: 6px 0;
}
.res-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.res-grid > div {
  background: #f6f4ff;
  border: 2px solid var(--navy);
  border-radius: 14px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.res-grid small {
  font-size: 12px;
  font-weight: 800;
  color: #6b6f9c;
}
.res-grid b {
  font: 900 20px var(--font-num);
}
.res-grid em {
  font-style: normal;
  font-size: 11px;
  color: #e07a00;
  font-weight: 800;
}
.res-grid em.in {
  color: #2e9d5c;
}
.res-grid .wide {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  align-items: baseline;
  background: #fff6cc;
}
.btn-extra {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(#ff7ab0, #ff4f8b);
  color: #fff;
  border: 3px solid var(--navy);
  box-shadow: 0 5px 0 var(--navy);
  font-size: 20px;
  font-weight: 900;
  animation: pulseX 1.4s ease-in-out infinite;
}
.btn-extra small {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}
.btn-extra:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--navy);
}
.res-tip {
  font-size: 13px;
  font-weight: 700;
  color: #6b6f9c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.res-tip .ic {
  color: var(--pink);
}
.res-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.res-actions .btn {
  min-height: 42px;
  font-size: 14px;
  padding: 6px 14px;
}

/* 进入闯关的圆形转场 */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background-color: #fff7e8;
  background-image: linear-gradient(rgba(43, 45, 84, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 45, 84, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  clip-path: circle(0 at var(--x) var(--y));
  transition: clip-path 0.5s cubic-bezier(0.6, 0, 0.3, 1), opacity 0.4s;
}
.wipe.grow {
  clip-path: circle(150vmax at var(--x) var(--y));
}
.wipe.fade {
  opacity: 0;
}
.wipe-m {
  width: 170px;
  animation: wipeM 0.5s 0.15s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
@keyframes wipeM {
  from {
    transform: scale(0) rotate(-30deg);
  }
}

/* ====================================================================== */
/* 高年级（四~六年级）                                                    */
/* ====================================================================== */
/* 书架分两层：低年级、高年级 */
.books-row + .books-row {
  margin-top: 26px;
}
.shelf-tag {
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  z-index: 3;
  background: #f2d9a6;
  color: var(--wood);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 1px 12px;
  border-radius: 5px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.cards-band {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 14px;
  color: #f2d9a6;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.cards-band::before,
.cards-band::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(242, 217, 166, 0), rgba(242, 217, 166, 0.55), rgba(242, 217, 166, 0));
}

/* 闯关题：文字、未知数、换行、小图、分数答案 */
.pl {
  font: 900 0.46em/1.2 var(--font-ui);
  color: #5b5f8f;
  align-self: center;
}
.pl.pv {
  font: italic 900 0.94em/1 Georgia, 'Times New Roman', serif;
  color: var(--navy);
}
.pn + .pv {
  margin-left: -0.14em;
}
.pbr {
  flex-basis: 100%;
  height: 0;
}
.prob-sm {
  font-size: clamp(26px, 6.4vw, 40px);
}
.po-par {
  color: var(--navy);
  font-weight: 700;
}
.ppic {
  display: inline-flex;
  align-self: center;
  border-radius: 12px;
  margin-right: 0.1em;
}
.ppic .mini {
  display: block;
  height: 2.4em;
  width: auto;
}
.mini-t {
  font: 800 12.5px var(--font-ui);
  fill: #2b2d54;
}
.mini-pi {
  font: 800 10px var(--font-ui);
  fill: #8a8fb8;
}
.cell-dot {
  min-width: 0.5em;
}
/* 还没轮到的空（比的后项、按比分配的第二份） */
.pb:empty {
  width: 0.9em;
  height: 1.16em;
  border-radius: 12px;
  border: 3px dashed #d5dcf7;
}
/* 小数竖式 */
.pc-dot {
  align-self: end;
  justify-self: center;
  line-height: 1;
  color: var(--navy);
}
.pc-dot.res {
  color: var(--blue);
  padding-bottom: 0.1em;
}
.pc-pad {
  color: #b9bcd9;
}
/* 小数点键：高年级的书才会出现 */
.key-dot {
  display: none;
}
.dr-pad.has-dot .key-dot {
  display: block;
}
.dr-pad.has-dot .key-0 {
  grid-column: auto;
}

/* 立体图：运算城堡 */
.ord-t {
  font-size: 30px;
  fill: #3e2a1c;
  font-family: var(--font-num) !important;
}
.ord-paren,
.ord-eq {
  fill: #8a5a2b;
}
.ord-new {
  fill: #e0457b;
}
.ord-op {
  font-size: 24px;
  fill: #3d6af2;
}
.ord-opc {
  fill: #fff;
  stroke: #3d6af2;
  stroke-width: 2.5;
}
.ord-old {
  opacity: 0.5;
}
.ord-old .ord-opc {
  stroke: #c9bfae;
}
.ord-arc {
  fill: none;
  stroke: #e0457b;
  stroke-width: 2.5;
  stroke-linecap: round;
  animation: fadeIn 0.3s;
}
.pair-op {
  font-size: 34px;
  fill: #8a3d62;
  font-family: var(--font-num) !important;
  animation: fadeIn 0.3s;
}
.dist-row {
  font-size: 13px;
  fill: #6b4329;
}
.dist-box,
.dist-col {
  fill: none;
  stroke: #e0a33a;
  stroke-width: 2.4;
  stroke-dasharray: 6 4;
  animation: fadeIn 0.3s;
}
.dist-col {
  stroke: #3d6af2;
}
.dist-sum {
  font-size: 15px;
  fill: #c2410c;
  font-family: var(--font-num) !important;
  animation: fadeIn 0.3s;
}
.dist-colt {
  font-size: 13px;
  fill: #3d6af2;
  font-family: var(--font-num) !important;
  animation: fadeIn 0.3s;
}
.dist-card {
  fill: #fff;
  stroke: #d8c39a;
  stroke-width: 2;
}
.dist-h {
  font-size: 14px;
  fill: #8a3d62;
}
.dist-t {
  font-size: 15px;
  fill: #3e2a1c;
  font-family: var(--font-num) !important;
  animation: fadeIn 0.3s;
}

/* 立体图：小数文具店 */
.mat-s {
  font-size: 10px;
  fill: #a07a52;
}
.eq-pad {
  fill: #c8b8a4;
}
.eq-pt {
  fill: #e0457b;
}
.g100-col {
  fill: transparent;
  transition: fill 0.25s;
}
.g100-col.on {
  fill: #ffcf6b;
}
.g100-col.g100-flash {
  animation: g100flash 0.7s;
}
@keyframes g100flash {
  50% {
    fill: #ff9f43;
  }
}
.g100-l {
  stroke: #d8c39a;
  stroke-width: 1;
}
.g100-h {
  font-size: 13px;
  fill: #6b4329;
}
.g100-eq {
  font-size: 32px;
  fill: #c2410c;
  font-family: var(--font-num) !important;
  animation: fadeIn 0.3s;
}
.sh-card {
  fill: #fffdf6;
  stroke: #4a3326;
  stroke-width: 2.5;
}
.sh-card.z {
  fill: #eef2f7;
  stroke-dasharray: 5 4;
}
.sh-d {
  font-size: 38px;
  fill: #3e2a1c;
  font-family: var(--font-num) !important;
}
.sh-d.z {
  fill: #9aa5b8;
}
.sh-dot {
  fill: #e0457b;
  stroke: #fff;
  stroke-width: 2.5;
}
.obj.faint > .pp > .rx {
  opacity: 0.28;
}
.sh-hist {
  font-size: 17px;
  fill: #8a7a66;
  font-family: var(--font-num) !important;
}
.sh-hist.now {
  fill: #c2410c;
  font-size: 20px;
}

/* 立体图：天平方程 */
.bal-board {
  fill: #3b4a3f;
  stroke: #8a5a2b;
  stroke-width: 3;
}
.bal-eq {
  font-size: 21px;
  fill: #fff6c9;
  font-family: var(--font-num) !important;
  letter-spacing: 0.03em;
}
.bal-ring {
  fill: none;
  stroke-width: 2.5;
  stroke-dasharray: 5 4;
  animation: fadeIn 0.3s;
}
.rx.flyup {
  animation: flyup 0.5s forwards;
}
@keyframes flyup {
  to {
    transform: translateY(-40px);
    opacity: 0;
  }
}
.bm-total {
  fill: #ffe08a;
  stroke: #4a3326;
  stroke-width: 2.5;
}
.bm-book {
  fill: #9cc8ff;
  stroke: #4a3326;
  stroke-width: 2.5;
}
.bm-chg {
  fill: #c8efb0;
  stroke: #4a3326;
  stroke-width: 2.5;
  stroke-dasharray: 6 4;
}
.bm-cut {
  fill: #fff;
  fill-opacity: 0.7;
  stroke: #e0457b;
  stroke-width: 2;
  stroke-dasharray: 5 4;
  animation: fadeIn 0.3s;
}
.bm-seg {
  font-size: 15px;
  fill: #2b2d54;
  font-family: var(--font-num) !important;
}
.bm-brace {
  fill: none;
  stroke: #6b4329;
  stroke-width: 2;
}
.bm-t {
  font-size: 14px;
  fill: #6b4329;
}
.bm-side {
  font-size: 15px;
  fill: #8a5a2b;
}

/* 立体图：图形魔法工坊 */
.shp {
  stroke: #4a3326;
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.shp-grid {
  stroke: #cfe0f0;
  stroke-width: 1;
}
.shp-dash {
  stroke: #e0457b;
  stroke-width: 2.4;
  stroke-dasharray: 6 4;
}
.shp-right {
  fill: none;
  stroke: #e0457b;
  stroke-width: 1.8;
}
.shp-lab {
  font-size: 14px;
  fill: #3e2a1c;
  paint-order: stroke;
  stroke: #fbfdff;
  stroke-width: 4px;
}
.shp-lab.start {
  text-anchor: start;
}
.shp-lab.end {
  text-anchor: end;
}
.shp-lab.big {
  font-size: 18px;
  fill: #c2410c;
  font-family: var(--font-num) !important;
  animation: fadeIn 0.4s;
}
.shp-lab.small {
  font-size: 12px;
  fill: #6b4329;
}
.shp-outline {
  fill: none;
  stroke: #e0457b;
  stroke-width: 3.5;
  stroke-dasharray: 9 6;
  animation: fadeIn 0.4s;
}
.cube-wire {
  fill: none;
  stroke: #8f9bb0;
  stroke-width: 1.8;
  stroke-dasharray: 6 5;
}
.cube-lab {
  font-size: 14px;
  fill: #3e2a1c;
}

/* 立体图：分数果汁铺 */
.jug-lab {
  font-size: 13px;
  fill: #6b4329;
}
.stream {
  fill: none;
  stroke: #ffa62b;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 8 6;
  animation: streamFlow 0.4s linear infinite;
}
@keyframes streamFlow {
  to {
    stroke-dashoffset: -14;
  }
}
.fa-h {
  font-size: 15px;
  fill: #6b4329;
}
.fa-col,
.fa-row {
  fill: transparent;
  transition: fill 0.3s;
}
.fa-col.on {
  fill: #ffd28a;
}
.fa-row.on {
  fill: rgba(224, 69, 123, 0.42);
}
.fa-line {
  stroke: #4a3326;
  stroke-width: 1.6;
}
.fa-line2 {
  stroke: #e0457b;
  stroke-dasharray: 6 4;
}
.fr-t {
  font-size: 18px;
  fill: #3e2a1c;
  font-family: var(--font-num) !important;
}
.fr-l {
  stroke: #3e2a1c;
  stroke-width: 2;
}
.frow {
  animation: fadeIn 0.4s;
}
.rat-lab {
  font-size: 15px;
  fill: #6b4329;
}
.rat-box {
  fill: none;
  stroke: #d0861a;
  stroke-width: 2.4;
  stroke-dasharray: 7 5;
  animation: fadeIn 0.4s;
}
.rat-g {
  font-size: 18px;
  fill: #c2410c;
  font-family: var(--font-num) !important;
  animation: fadeIn 0.4s;
}
.rat-cnt {
  font-size: 14px;
  fill: #c2410c;
}

/* 立体图：圆的游乐场 */
.cir-fill {
  fill: #e6f4ff;
}
.cir-line {
  fill: none;
  stroke: #2b2d54;
  stroke-width: 3.5;
}
.cir-o {
  font-size: 17px;
  fill: #2b2d54;
  font-family: Georgia, serif !important;
  font-style: italic;
}
.cir-r,
.cir-d {
  stroke: #e0457b;
  stroke-width: 3;
  stroke-linecap: round;
}
.cir-d {
  stroke: #3d6af2;
}
.cir-lab {
  font-size: 15px;
  fill: #3e2a1c;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
}
.cir-lab.r {
  fill: #e0457b;
}
.cir-lab.d {
  fill: #3d6af2;
}
.cir-lab.small {
  font-size: 12px;
}
.cir-tick {
  font-size: 12px;
  fill: #6b4329;
}
.trail {
  fill: none;
  stroke: #e0457b;
  stroke-width: 2.4;
  stroke-dasharray: 3 4;
}
.cir-bracket {
  fill: none;
  stroke: #e0457b;
  stroke-width: 2.5;
}
.cir-dim {
  stroke: #6b4329;
  stroke-width: 2;
}
.cyl-t {
  font-size: 15px;
  fill: #3e2a1c;
}
.cyl-t.b {
  fill: #c2410c;
}
.cyl-v {
  font-size: 17px;
  fill: #c2410c;
  font-family: var(--font-num) !important;
}

/* ====================================================================== */
/* 英语                                                                   */
/* ====================================================================== */
/* 书房：数学 / 英语 */
.subj-tabs {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 12px;
  margin-bottom: 2px;
}
.subj {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 6px 7px;
  border-radius: 999px;
  background: rgba(32, 34, 56, 0.62);
  border: 2px solid rgba(255, 235, 200, 0.22);
  color: #e9d6a8;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.subj:hover {
  transform: translateY(-2px);
}
.subj b {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.subj small {
  font-size: 12px;
  opacity: 0.75;
}
.subj-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font: 900 11px var(--font-num);
  color: #fff;
  background: #3d6af2;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.subj-english .subj-ic {
  background: #2f9e6a;
  font: 800 12px var(--font-en);
}
.subj.on {
  background: linear-gradient(#ffe7a8, #f2c14e);
  color: var(--wood);
  border-color: #fff3c4;
  box-shadow: 0 4px 0 #9a6a1c, 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* 绘本里的英文 */
.q-story .tok.en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.92em;
  color: #1f4f8a;
}
.q-story .tok.en.vocab {
  color: #8a4b12;
}
.c-big.en {
  font: 800 clamp(16px, 1.6vw, 21px) / 1.25 var(--font-en);
}

/* 立体图：单词牌、名字牌、对话气泡 */
.entag-wrap,
.enplate,
.bubble-wrap {
  pointer-events: none;
}
.entag {
  animation: flUp 2.3s ease-out forwards;
}
.entag.stay {
  animation: flIn 0.35s ease-out both;
}
.et-bg {
  fill: #fffaf0;
  stroke: #4a3326;
  stroke-width: 2;
}
.et-en {
  font: 800 18px var(--font-en);
  fill: #1f3f8a;
}
.et-cn {
  font: 700 12px var(--font-ui);
  fill: #8a6a4a;
}
.ep-in {
  animation: flIn 0.35s ease-out both;
}
.ep-bg {
  fill: #fff;
  stroke: #3d6af2;
  stroke-width: 1.6;
}
.ep-t {
  font: 800 13px var(--font-en);
  fill: #1f3f8a;
}
.enplate.sm .ep-t {
  font-size: 11px;
}
.ep-line {
  stroke: #3d6af2;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}
.ep-dot {
  fill: #3d6af2;
}
.bubble {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: bubIn 0.32s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
.bubble.bub-glow {
  animation: bubGlow 0.7s ease-in-out 2;
}
@keyframes bubIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
  }
}
@keyframes bubGlow {
  50% {
    filter: drop-shadow(0 0 4px #ffb703) drop-shadow(0 0 2px #ffb703);
  }
}
.bb-bg {
  fill: #fff;
  stroke: #4a3326;
  stroke-width: 2.4;
  stroke-linejoin: round;
}
.bb-patch {
  fill: #fff;
}
.bb-en {
  font: 800 18px var(--font-en);
  fill: #1f3f8a;
}
.bb-cn {
  font: 700 12.5px var(--font-ui);
  fill: #8a6a4a;
}
.scene-bar .en,
.scene-bar .en b {
  font-family: var(--font-en);
}
.scene-bar .bar-ex {
  margin-left: 8px;
  color: #1f4f8a;
  font-weight: 700;
}
.sbtn.en span {
  font: 800 15px var(--font-en);
}
.sbtn.on {
  background: #fff3c2;
  border-color: #c98b00;
  box-shadow: 0 3px 0 #c98b00;
}
/* 大图上的热点（五官、房间） */
.scene-svg .hot-ring {
  fill: rgba(255, 210, 63, 0);
  stroke: #ffb703;
  stroke-width: 4;
  opacity: 0;
  transition: opacity 0.25s;
}
.scene-svg .tap:hover .hot-ring {
  opacity: 0.55;
}
.scene-svg .obj.lit .hot-ring {
  animation: hotRing 0.75s ease-in-out 2;
}
@keyframes hotRing {
  50% {
    opacity: 1;
    fill: rgba(255, 210, 63, 0.18);
  }
}
/* 字母牌、四线三格、拼写格子 */
.lt-bg {
  stroke: #2b2d54;
  stroke-width: 2.5;
  transition: fill 0.3s, stroke 0.3s;
}
.lt-bg.up {
  fill: #5b8def;
}
.lt-bg.low {
  fill: #fffdf6;
}
.lt-bg.tile {
  fill: #fff6e2;
  stroke: #8c5a36;
}
.lt-t {
  font: 700 36px var(--font-en);
}
.lt-t.up {
  fill: #fff;
}
.lt-t.low {
  font-size: 34px;
  fill: #2b2d54;
}
.fourline path {
  stroke: #9cc0ff;
  stroke-width: 1.3;
}
.fourline path.base {
  stroke: #e8453c;
  stroke-opacity: 0.5;
}
.fourline.sm path {
  stroke-width: 1;
}
.obj.paired .lt-bg {
  stroke: #3f9d5c;
  stroke-width: 3;
}
.obj.paired .lt-bg.low {
  fill: #eefaf2;
}
.obj.placed .lt-bg {
  fill: transparent;
  stroke: transparent;
}
.slot {
  fill: rgba(238, 243, 255, 0.55);
  stroke: #7ea0ff;
  stroke-width: 2;
  stroke-dasharray: 6 4;
}
.slot.filled {
  fill: rgba(230, 246, 234, 0.5);
  stroke: #49a86a;
  stroke-dasharray: none;
}
.slot.slot-glow {
  animation: slotGlow 0.6s ease-in-out 2;
}
@keyframes slotGlow {
  50% {
    fill: rgba(255, 210, 63, 0.45);
    stroke: #f2b632;
  }
}
/* 钟和作息卡片 */
.ck-n {
  font-weight: 900;
  fill: #2b2d54;
  font-family: var(--font-num) !important;
}
.ck-hands {
  pointer-events: none;
}
.rt-card {
  fill: #fffaf0;
  stroke: #8c5a36;
  stroke-width: 2.4;
  transition: fill 0.2s, stroke 0.2s;
}
.obj.pick .rt-card {
  fill: #fff3c2;
  stroke: #f2b632;
  stroke-width: 3;
}
.rt-time {
  font: 900 16px var(--font-num);
  fill: #c2410c;
}
/* 单词变形 */
.gr-bg {
  fill: #fffdf6;
  stroke: #e3cfa4;
  stroke-width: 2;
  transition: stroke 0.3s;
}
.obj.grown .gr-bg {
  stroke: #49a86a;
}
.gr-base,
.gr-form {
  font: 800 22px var(--font-en);
  fill: #2b2d54;
}
.gr-arrow {
  font: 900 20px var(--font-num);
  fill: #3d6af2;
}
.gr-suf {
  fill: #2f9e6a;
}
.gr-dbl {
  fill: #e0457b;
}
.gr-irr {
  fill: #8b5cf6;
}
.gr-x {
  transition: opacity 0.3s, fill 0.3s;
}
.obj.grown .gr-x {
  fill: #c9473f;
  opacity: 0.35;
}
.gr-note {
  font: 800 12.5px var(--font-ui);
  fill: #8a6a4a;
}
.gr-new {
  animation: flIn 0.35s ease-out both;
}

/* 闯关：英语题 */
.prob-en {
  font: 900 clamp(24px, 6vw, 36px) / 1.2 var(--font-en);
  gap: 0.22em 0.32em;
}
.prob-en .po {
  font-family: var(--font-num);
  font-size: 0.8em;
}
.prob-en .cell {
  font-family: var(--font-en);
}
.pen {
  font-weight: 800;
  color: var(--navy);
}
.pen.big {
  font-size: 1.5em;
}
.pen.tight {
  margin-left: -0.28em;
}
.pcn {
  font: 800 clamp(14px, 3.6vw, 18px) / 1.4 var(--font-ui);
  color: #5b5f8f;
}
.penpic {
  display: inline-flex;
  border-radius: 12px;
}
.penpic .enpic {
  display: block;
  height: 2.7em;
  width: auto;
}
.penpic .enpic.many {
  height: 3em;
  max-width: min(64vw, 300px);
}
.pwd {
  display: inline-flex;
  align-items: center;
  padding: 0 0.12em 0.04em;
  border-bottom: 3px solid #c9d6ff;
  border-radius: 6px;
}
.cell.cell-w {
  min-width: 2.6em;
  padding: 0 0.3em;
}
/* 拼写题里还没轮到的字母位置 */
.cell.ph {
  min-width: 0.72em;
  height: 1.16em;
  margin: 0 0.06em;
  border-radius: 0;
  border-bottom: 4px solid #b9c6f5;
}
.cell.q.cell-w {
  min-width: 3em;
}
.cell-w .enpic {
  display: block;
  height: 1.15em;
  width: auto;
}
.paud-w {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.paud {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: #ffd23f;
  border: 3px solid var(--navy);
  box-shadow: 0 4px 0 var(--navy);
  color: var(--navy);
  transition: transform 0.08s, box-shadow 0.08s;
}
.paud .ic {
  width: 58%;
  height: 58%;
}
.paud-w.sm .paud {
  width: 1.25em;
  height: 1.25em;
  border-width: 2px;
  box-shadow: 0 2px 0 var(--navy);
}
.paud:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--navy);
}
.dr-pad {
  grid-template-columns: repeat(var(--cols, 3), 1fr);
}
.dr-pad .key-abc {
  font: 800 clamp(24px, 3.4vh, 30px) var(--font-en);
}
.dr-pad .key-opt {
  position: relative;
  height: auto;
  min-height: clamp(52px, 8vh, 66px);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 900 clamp(16px, 2.4vh, 20px) / 1.25 var(--font-ui);
}
.dr-pad .key-opt.en {
  font-family: var(--font-en);
  font-weight: 800;
}
.dr-pad .key-opt.letter {
  font-size: clamp(26px, 3.8vh, 34px);
}
.dr-pad .key-opt.has-pic {
  min-height: clamp(72px, 12vh, 108px);
  padding: 6px;
}
.ko-pic .enpic {
  display: block;
  height: clamp(54px, 9.5vh, 84px);
  width: auto;
  max-width: 100%;
}
.ko-n {
  position: absolute;
  left: 8px;
  top: 4px;
  font: 900 11px var(--font-num);
  color: #a3a8cf;
}
.dr-pad .key-opt.wrong {
  opacity: 0.45;
  background: #efeaf8;
  border-color: #9b93c4;
  box-shadow: 0 2px 0 #9b93c4;
  transform: translateY(2px);
}
.dr-pad .key-opt.wrong .ko-t {
  text-decoration: line-through;
}
.dr-pad .key-opt.right {
  background: #d9f6e9;
  border-color: #2f9e6a;
}
.dr:not([data-tier='0']) .dr-pad[data-mode='abc'] .key:nth-child(4n + 1):not(.key-bs) {
  background: #ffe1ea;
}
.dr:not([data-tier='0']) .dr-pad[data-mode='abc'] .key:nth-child(4n + 2):not(.key-bs) {
  background: #fff1b8;
}
.dr:not([data-tier='0']) .dr-pad[data-mode='abc'] .key:nth-child(4n + 3):not(.key-bs) {
  background: #dfe9ff;
}
.dr:not([data-tier='0']) .dr-pad[data-mode='abc'] .key:nth-child(4n):not(.key-bs) {
  background: #d9f6e9;
}

/* ====================================================================== */
/* 语文                                                                   */
/* ====================================================================== */
.subj-chinese .subj-ic {
  background: #d9483b;
  font: 400 19px var(--font-story);
}
/* 绘本里的拼音、汉字选项 */
.q-story .tok.py {
  font-family: var(--font-py);
  font-weight: 700;
  font-size: 0.9em;
  color: #1f4f8a;
}
.c-big.zh {
  font: 400 clamp(22px, 2.3vw, 31px) / 1.15 var(--font-story);
}
.c-big.zh.long {
  font-size: clamp(14px, 1.38vw, 19px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.c-big.zh.xlong {
  font-size: clamp(13px, 1.12vw, 16px);
}
.c-big.py {
  font: 700 clamp(20px, 2.2vw, 28px) / 1.15 var(--font-py);
  color: #1f4f8a;
}

/* 立体图里的文字 */
.scene-svg .zt {
  font-family: var(--font-story);
  font-weight: 400;
  fill: #3b2a1e;
}
.scene-svg .py-t {
  font-family: var(--font-py);
  font-weight: 700;
  fill: #1f3f8a;
}
.scene-svg .hl {
  fill: #e0457b;
}
.scene-svg .hl2 {
  fill: #2f9e6a;
}
.scene-bar .zh,
.scene-bar b.zh {
  font-family: var(--font-story);
  font-weight: 400;
  color: var(--ink);
  font-size: 1.12em;
}
.scene-bar .py,
.scene-bar b.py {
  font-family: var(--font-py);
  color: #1f4f8a;
}
.scene-bar .hl,
.scene-bar b.hl {
  color: #e0457b;
}
.scene-bar .hl2,
.scene-bar b.hl2 {
  color: #2f9e6a;
}
.scene-bar .bar-tr {
  margin-left: 8px;
  color: #8a6a4a;
  font-weight: 700;
  font-size: 0.9em;
}
.scene-bar .wy {
  color: #7a3f12;
}
/* 词卡、名牌 */
.zhtag-wrap,
.zhplate {
  pointer-events: none;
}
.zhtag,
.zp-in {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.zhtag {
  animation: flUp 2.4s ease-out forwards;
}
.zhtag.stay {
  animation: flIn 0.35s ease-out both;
}
.zt-bg {
  fill: #fffaf0;
  stroke: #4a3326;
  stroke-width: 2;
}
.zhtag.gold .zt-bg {
  fill: #fff3c2;
  stroke: #c98b00;
}
.scene-svg .zt-sub {
  font-family: var(--font-ui);
  font-weight: 700;
  fill: #8a6a4a;
}
.zp-in {
  animation: flIn 0.35s ease-out both;
}
.zp-bg {
  fill: #fff;
  stroke: #d9483b;
  stroke-width: 1.6;
}
.obj.on > .pp > .rx {
  filter: drop-shadow(0 0 5px #ffb703) drop-shadow(0 0 2px #ffb703);
}
.obj.hang > .pp > .rx,
.obj.hang > .pp {
  transform-origin: 50% 0;
}
/* 拼音碰碰车 */
.py-sign-in {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: bubIn 0.32s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
/* 象形字 */
.gl-card {
  fill: #fffaf0;
  stroke: #c9a67a;
  stroke-width: 2.4;
  transition: fill 0.3s, stroke 0.3s;
}
.obj.gl-now .gl-card {
  fill: #fff7d6;
  stroke: #e0a800;
}
.gl-l {
  transition: opacity 0.45s;
}
.scene-svg .gl-cap {
  fill: #9c8566;
}
.scene-svg .gl-ch {
  fill: #c2410c;
}
/* 笔顺 */
.stk-ghost {
  fill: none;
  stroke: #efe4d0;
  stroke-width: 15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stk {
  fill: none;
  stroke: #3b2a1e;
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}
.stk.now {
  stroke: #e0457b;
}
.stk-mini {
  fill: none;
  stroke: #c9b8a0;
  stroke-width: 13;
  stroke-linecap: round;
}
.stk-tab {
  fill: #fffaf0;
  stroke: #c9a67a;
  stroke-width: 2.4;
}
.obj.pick .stk-tab {
  fill: #fff3c2;
  stroke: #e8453c;
  stroke-width: 3;
}
.stk-num {
  fill: #fff;
  stroke: #c9a67a;
  stroke-width: 2;
}
.scene-svg .stk-numt {
  fill: #9c8566;
  font-family: var(--font-num);
}
.stk-row {
  opacity: 0.45;
  transition: opacity 0.3s;
}
.stk-row.done {
  opacity: 1;
}
.stk-row.done .stk-num {
  fill: #e8453c;
  stroke: #b02a22;
}
.stk-row.done .stk-numt {
  fill: #fff;
}
.stk-row.done .stk-mini {
  stroke: #3b2a1e;
}
/* 古诗卡 */
.pl-bg {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
  transition: fill 0.25s, stroke 0.25s;
}
.scene-svg .tap:hover .pl-bg {
  fill: #fff3c2;
}
.obj.on .pl-bg {
  fill: #ffe7a8;
  stroke: #e0a800;
}
.scene-svg .pm-au {
  fill: #8a6a4a;
  font-weight: 700;
}
.zh-ripple {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: zhRipple 1.2s ease-out forwards;
  pointer-events: none;
}
@keyframes zhRipple {
  from {
    transform: scale(0.4);
    opacity: 1;
  }
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}
.gs-feet.lit {
  filter: drop-shadow(0 0 4px #ff3c2a) drop-shadow(0 0 2px #ff7a2e);
}
.gs-n0,
.gs-n1 {
  transition: opacity 0.3s;
}
.mt-hl {
  fill: none;
  stroke: #ffb703;
  stroke-width: 5;
  stroke-linecap: round;
  pointer-events: none;
}
.scene-svg .cmp-gt {
  fill: #e8453c;
  font-family: var(--font-num);
}
.mt-cmp {
  pointer-events: none;
}
.mt-cmp.cmp-glow {
  animation: whGlow 0.7s ease-in-out 2;
}
.zh-wave {
  fill: none;
  stroke: #8fc8ff;
  stroke-width: 3;
  stroke-linecap: round;
  pointer-events: none;
  animation: zhWave 1.5s ease-out var(--d, 0ms) both;
}
@keyframes zhWave {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(190px);
    opacity: 0;
  }
}
.bm-cracks {
  fill: none;
  stroke: #5b554d;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.bm-roots {
  fill: none;
  stroke: #8a5a2b;
  stroke-width: 3;
  stroke-linecap: round;
}
.bm-cracks.lit,
.bm-roots.lit {
  stroke: #ffb703;
  stroke-width: 4;
  filter: drop-shadow(0 0 3px #ffb703);
}
.bm-wind {
  fill: none;
  stroke: #fff;
  stroke-width: 3.4;
  stroke-linecap: round;
  opacity: 0.9;
  pointer-events: none;
}
.bm-hail {
  fill: #fff;
  stroke: #9aa5b8;
  stroke-width: 1;
  pointer-events: none;
}
/* 偏旁魔法 */
.scene-svg .cb-eq {
  fill: #6a4fb6;
}
.scene-svg .cb-word {
  fill: #c2410c;
}
.scene-svg .cb-mean {
  fill: #8a6a4a;
  font-weight: 700;
}
.cb-in,
.cb-bub,
.dc-in {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: flIn 0.35s ease-out both;
}
.scene-svg .rd-t {
  fill: #7a2a1a;
}
.scene-svg .rd-eq {
  fill: #6a4fb6;
}
/* 查字典 */
.scene-svg .abc-l {
  font-family: var(--font-py);
  font-weight: 700;
  fill: #9c8566;
  transition: fill 0.3s;
}
.scene-svg .abc-l.on {
  fill: #e0457b;
  font-size: 18px;
}
.dc-card {
  fill: #fffaf0;
  stroke: #6a4fb6;
  stroke-width: 2.6;
}
.obj.pick .dc-card {
  fill: #f1ebff;
}
.scene-svg .dc-first {
  fill: #e0457b;
}
.scene-svg .dc-fly {
  fill: #e0457b;
}
.scene-svg .dc-big {
  fill: #e0457b;
}
.scene-svg .dc-small {
  fill: #8a6a4a;
  font-weight: 700;
}
.scene-svg .dc-hint {
  fill: #b9a68a;
}
/* 反义词魔镜 */
.mr-card {
  fill: #fffaf0;
  stroke: #c9a67a;
  stroke-width: 2.4;
}
.obj.pick .mr-card {
  fill: #fff3c2;
  stroke: #e0a800;
}
.scene-svg .mr-q {
  fill: #b9a68a;
  font-family: var(--font-ui);
  font-weight: 800;
}
.scene-svg .mr-hint {
  fill: #a9c4dc;
}
/* 标点帽子、关联词齿轮 */
.fl-row {
  fill: #fffaf0;
  stroke: #e3cfa4;
  stroke-width: 2;
  transition: fill 0.3s, stroke 0.3s;
}
.obj.ok .fl-row {
  fill: #e9f8ee;
  stroke: #49a86a;
}
.obj.bad .fl-row {
  fill: #fdecef;
  stroke: #e0457b;
}
.fl-slot {
  fill: rgba(238, 243, 255, 0.6);
  stroke: #7ea0ff;
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.obj.ok .fl-slot {
  fill: transparent;
  stroke: transparent;
}
.scene-svg .fl-slot-t,
.scene-svg .fl-fly {
  fill: #e0457b;
}
.obj.ok .fl-slot-t {
  fill: #2f9e6a;
}
.fl-chip {
  fill: #fff;
  stroke: #2f7f9e;
  stroke-width: 2.4;
}
.obj.pick .fl-chip {
  fill: #e6f6ff;
}
.scene-svg .fl-p {
  fill: #2b2d54;
  font-weight: 700;
}
/* 句子机器 */
.scene-svg .mc-head {
  fill: #fff;
}
.scene-svg .mc-role {
  font-weight: 800;
}
.scene-svg .mc-pat {
  fill: #2f7f9e;
}
.obj.mc-gone > .pp > .rx {
  transition: transform 0.3s, opacity 0.3s;
  transform: scale(1, 0.15);
  opacity: 0;
}
/* 分一分 */
.so-card {
  fill: #fffaf0;
  stroke: #c9a67a;
  stroke-width: 2.2;
}
.obj.pick .so-card {
  fill: #fff3c2;
  stroke: #e0a800;
}
/* 对联 */
.cp-card {
  fill: #e8453c;
  stroke: #9c2a20;
  stroke-width: 2.4;
}
.cp-card.low {
  fill: #d93a32;
}
.scene-svg .cp-t {
  fill: #ffd23f;
}
.obj.paired .cp-card {
  stroke: #ffd23f;
  stroke-width: 3.4;
}
.scene-svg .mt-lbl {
  fill: #9c8566;
}
/* 比喻、拟人 */
.im-a,
.im-b {
  transition: opacity 0.45s;
}
.im-cap-bg {
  fill: #fff;
  stroke: #c9a67a;
  stroke-width: 1.8;
}
.scene-svg .im-cap {
  fill: #6b4426;
}
/* 节日转盘、灯笼、卷轴 */
.wh-sec {
  cursor: pointer;
  transition: filter 0.2s;
}
.wh-sec:hover,
.wh-sec:focus-visible {
  filter: brightness(1.06) drop-shadow(0 0 3px #ffb703);
  outline: none;
}
.wh-sec.on path:first-child {
  stroke: #e8453c;
  stroke-width: 3.4;
}
.wh-glow {
  animation: whGlow 0.8s ease-in-out 2;
}
@keyframes whGlow {
  50% {
    filter: drop-shadow(0 0 6px #ffb703) drop-shadow(0 0 3px #ffb703);
  }
}
.scene-svg .wh-date {
  fill: #c2410c;
  font-weight: 800;
}
.scene-svg .ln-t {
  fill: #7a2a1a;
}
.scene-svg .ln-t.back {
  fill: #c2410c;
}
.scene-svg .sc-t {
  fill: #3b2a1e;
}
.scene-svg .sc-t2 {
  fill: #c2410c;
}
.go-b {
  fill: #2b2d38;
}
.go-w {
  fill: #fff;
  stroke: #6b768a;
  stroke-width: 1.2;
}
.go-b,
.go-w {
  animation: flIn 0.25s ease-out both;
}
.sz-dizzy > g {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: spin 1.2s linear infinite;
}

/* 闯关：语文题。句子按文字排（不用 flex），长句子在空格前后照常折行 */
.prob-zh {
  display: block;
  text-align: center;
  text-wrap: balance;
  font: 400 clamp(24px, 6vw, 36px) / 1.45 var(--font-story);
}
.prob-zh .pbr {
  display: block;
}
.prob-zh .pb,
.prob-zh .cell,
.prob-zh .penpic,
.prob-zh .psvg,
.prob-zh .phz,
.prob-zh .pwd,
.prob-zh .po {
  vertical-align: middle;
}
.prob-zh .pb {
  margin: 0 0.08em;
}
.prob-zh .penpic,
.prob-zh .psvg,
.prob-zh .phz {
  margin: 0 0.12em;
}
.prob-zh .po {
  font: 900 0.7em var(--font-num);
  margin: 0 0.3em;
}
.prob-zh .pcn {
  font: 400 clamp(17px, 4.2vw, 22px) / 1.45 var(--font-story);
  color: #4a4e7a;
}
.prob-zh .cell {
  font-family: var(--font-story);
  font-weight: 400;
}
/* 填进去的字换个颜色，一眼看出是自己填的 */
.prob-zh .cell.ok {
  color: var(--blue);
}
.prob-zh .cell.q {
  font: 900 0.7em var(--font-num);
  min-width: 1.5em;
  height: 1.7em;
}
.prob-zh .cell.q.cell-w {
  min-width: 3.2em;
}
.prob-zh .cell.ph {
  min-width: 1em;
}
.prob-zh .cell.ph.cell-w {
  min-width: 2.2em;
}
.prob-zh .cell.cell-py {
  font-family: var(--font-py);
  font-weight: 700;
}
.prob-zh .cell.cell-long.ok,
.prob-zh .cell.cell-long.bad {
  font-size: 0.6em;
  height: auto;
  min-height: 1.7em;
  padding: 0.12em 0.4em;
  line-height: 1.35;
  max-width: 100%;
}
.pzh {
  color: var(--navy);
  border-radius: 8px;
}
.pzh .hl {
  font-weight: 400;
  color: #d9483b;
  background: #ffe9e4;
  border-radius: 6px;
  padding: 0 0.06em;
}
/* 要改写的原句 */
.pzh.src {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 0.15em;
  line-height: 1.35;
  font-size: 0.78em;
  padding: 0.05em 0.5em;
  background: #fff7e6;
  border: 2px dashed #e7c98f;
  border-radius: 12px;
}
.phz {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  padding: 0 0.08em;
  border-radius: 12px;
}
.phz-py {
  font: 700 0.46em/1.25 var(--font-py);
  color: #d9483b;
}
.phz-c {
  font-size: 1.3em;
  color: #3b2a1e;
}
.psvg {
  display: inline-flex;
  border-radius: 12px;
}
.psvg svg {
  display: block;
  height: 2.6em;
  width: auto;
}
/* 字卡、词卡、拼音卡 */
.dr-pad .key-tile {
  position: relative;
  height: auto;
  min-height: clamp(50px, 7.6vh, 62px);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fffaf0;
  font: 400 clamp(23px, 3.6vh, 30px) / 1.2 var(--font-story);
  color: #3b2a1e;
}
.dr-pad .key-tile.long {
  font-size: clamp(17px, 2.6vh, 21px);
}
.dr-pad .key-tile.key-py {
  background: #fff;
  font: 700 clamp(22px, 3.4vh, 28px) var(--font-py);
  color: var(--navy);
}
.dr-pad .key.used {
  opacity: 0.32;
  background: #ece6d8;
  box-shadow: 0 1px 0 var(--navy);
  transform: translateY(3px);
}
.dr-pad .key-opt.zh {
  font: 400 clamp(19px, 2.9vh, 24px) / 1.3 var(--font-story);
}
.dr-pad .key-opt.py {
  font: 700 clamp(21px, 3.2vh, 27px) var(--font-py);
}
/* 标点选项：本来就小，放大 */
.dr-pad .key-opt.mark {
  font-size: clamp(30px, 4.6vh, 40px);
  font-weight: 700;
}
/* 单独的偏旁（氵、艹……）楷体画得太小：换黑体，放大 */
.dr-pad .key-opt.rad .ko-t,
.phz.rad .phz-c,
.prob-zh .cell.cell-rad {
  font-family: var(--font-ui);
}
.dr-pad .key-opt.rad .ko-t {
  font-size: 1.7em;
  line-height: 1;
}
.phz.rad .phz-c {
  font-size: 1.6em;
}
.prob-zh .cell.cell-rad.ok,
.prob-zh .cell.cell-rad.bad {
  font-size: 1.3em;
}

/* ====================================================================== */
/* 适配                                                                   */
/* ====================================================================== */
@media (max-width: 859px) {
  .rd {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .rd-top {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .rd-prog {
    order: 5;
    width: 100%;
    justify-content: center;
    margin: 0;
  }
  .rd-title {
    flex: 1;
  }
  .rd-main {
    display: block;
    padding: 4px 8px;
  }
  .book {
    width: 100%;
    aspect-ratio: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }
  .page {
    border-radius: 10px !important;
  }
  .page-in {
    position: relative;
    inset: auto;
    overflow: visible;
  }
  .page-r {
    order: -1;
  }
  .page-r .page-in {
    display: block;
  }
  .scene-stage {
    aspect-ratio: 4 / 3;
  }
  .gutter {
    display: none;
  }
  .rd-bot {
    position: sticky;
    bottom: 0;
    padding: 18px 10px 10px;
    background: linear-gradient(rgba(42, 23, 12, 0), rgba(42, 23, 12, 0.92) 30%);
  }
  .big-round {
    width: 48px;
    height: 48px;
  }
  .pill-big {
    padding: 9px 20px;
    font-size: 16px;
  }
  .seg button {
    padding: 5px 9px;
    font-size: 12px;
  }
  .rd-guide {
    position: fixed;
    bottom: 128px;
    width: 58px;
  }
  .lesson-pop {
    grid-template-columns: 1fr;
  }
  .lesson-pop .scene-wrap {
    min-height: 0;
  }
  .lesson-pop .scene-stage {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 640px) {
  .top {
    gap: 10px;
  }
  .brand-logo {
    width: 44px;
  }
  .brand-t b {
    font-size: 20px;
  }
  .my-souv {
    order: 3;
  }
  .top-btns {
    gap: 6px;
    order: 4;
    width: 100%;
    justify-content: space-between;
  }
  .wbtn {
    width: 42px;
    height: 42px;
  }
  .plank-props {
    height: 60px;
  }
  .figurine {
    width: 48px;
  }
  .books-track {
    justify-content: flex-start;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .q-choices {
    gap: 8px;
  }
  .res-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cover-path {
    grid-template-columns: 1fr;
  }
  .cp-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
  .rd-souv {
    display: none;
  }
  .rd-guide {
    display: none;
  }
  .seg .ic {
    display: none;
  }
  .seg button {
    padding: 5px 10px;
    white-space: nowrap;
  }
  .modal {
    padding: 20px 16px 16px;
  }
  .rg {
    grid-template-columns: 1fr 1fr 44px;
  }
}
@media (max-width: 420px) {
  .dr-goal {
    display: none;
  }
  .dr-dots {
    gap: 3px;
  }
  .dot {
    width: 11px;
    height: 11px;
    border-width: 2px;
  }
  .dr-top {
    gap: 8px;
  }
}
@media (max-height: 700px) {
  .dr-col {
    gap: 6px;
    padding-top: 6px;
  }
  .dr-card {
    min-height: 136px;
  }
  .key {
    height: 48px;
  }
  .dr-stage {
    min-height: 78px;
  }
  .dr-mascot-wrap {
    width: 84px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wall .glow,
  .candle .flame,
  .dr-rays,
  .streamer,
  .end-burst,
  .mascot .m-tail,
  .mascot .m-antenna,
  .dr-mascot-wrap .mascot,
  .friend .mascot,
  .crowd-m,
  .btn-go,
  .btn-extra,
  .cv-ribbon {
    animation: none !important;
  }
}
