/* ============================================================
   太空学习工作台 · 布局与新增组件样式
   旧版视觉（星空/战斗区/按钮/反馈弹窗）沿用 css/style.css
   ============================================================ */

/* ---------- 工作台骨架 ---------- */
.workspace {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 5;
  background: rgba(10, 8, 36, 0.6);
}

.sidebar {
  width: 196px;
  flex-shrink: 0;
  background: rgba(8, 6, 30, 0.92);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  gap: 8px;
  overflow-y: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 14px;
  font-size: 1.25em;
  font-weight: 900;
}
.logo-text {
  background: linear-gradient(90deg, #667eea, #f093fb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-section { display: flex; flex-direction: column; gap: 6px; }
.nav-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  min-height: 44px;
  text-align: left;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.12); }
.nav-item.active {
  background: rgba(102, 126, 234, 0.28);
  border-color: rgba(102, 126, 234, 0.65);
  color: #fff;
}
.nav-item.mini { font-size: 0.8em; padding: 7px 10px; min-height: 38px; color: rgba(255, 255, 255, 0.62); }
.nav-item.mini.danger:hover { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }
.nav-emoji { font-size: 1.2em; width: 26px; text-align: center; flex-shrink: 0; }
.nav-name { flex: 1; }

.nav-item.has-due { border-color: rgba(255, 107, 107, 0.55); }
.due-badge {
  font-style: normal;
  background: #ff6b6b;
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.78em;
  margin-left: 4px;
}

/* ---------- 主区 ---------- */
.main {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.subject-header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.subject-emoji { font-size: 3em; line-height: 1; }
.subject-titles h2 { margin: 0; font-size: 1.7em; }
.subject-titles p { margin: 2px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 0.9em; }
.subject-meta { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.meta-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85em;
  white-space: nowrap;
}

.weak-panel {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.9em;
}
.weak-title { font-weight: 800; }
.weak-tag { background: rgba(255, 107, 107, 0.25); padding: 2px 10px; border-radius: 999px; }
.weak-hint { color: rgba(255, 255, 255, 0.5); margin-left: 2px; }

/* 关卡网格（工作台内更宽） */
.main .levels-grid { max-width: none; flex: none; }
.level-card.level-mastered {
  border-color: #4ecdc4;
  box-shadow: 0 0 14px rgba(78, 205, 196, 0.35);
}
.mastered-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 1em;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* ---------- 7 天统计 ---------- */
.stats-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
}
.stats-panel h3 { margin: 0 0 12px; font-size: 1em; }
.bar-chart { display: flex; gap: 10px; height: 130px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar {
  width: 100%;
  min-height: 4px;
  background: linear-gradient(180deg, #4ecdc4, #667eea);
  border-radius: 6px 6px 0 0;
  transition: height 0.3s;
}
.bar.empty { background: rgba(255, 255, 255, 0.12); }
.bar-label { font-size: 0.68em; color: rgba(255, 255, 255, 0.6); }
.bar-num { font-size: 0.66em; color: rgba(255, 255, 255, 0.5); }

/* ---------- 新题目组件 ---------- */
.prompt-question {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.prompt-image { font-size: 4.5em; line-height: 1.1; }
.prompt-big { font-size: 3.2em; font-weight: 900; color: #fff; text-shadow: 0 4px 16px rgba(102, 126, 234, 0.5); }
.question-text { margin: 0; }

.listen-btn {
  background: linear-gradient(135deg, #4ecdc4, #2a9d8f);
  border: none;
  color: #fff;
  font-size: 1.05em;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
  font-family: inherit;
  transition: transform 0.15s;
  box-shadow: 0 4px 14px rgba(78, 205, 196, 0.4);
}
.listen-btn:hover { transform: translateY(-2px); }
.listen-btn:active { transform: scale(0.96); }

.pinyin-word.big { font-size: 2.6em; }

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .workspace { flex-direction: column; }
  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px 10px;
    gap: 6px;
    align-items: center;
    overflow: visible;
  }
  .logo { padding: 0 8px; font-size: 1.05em; }
  .logo-text { display: none; }
  .nav-section { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .nav-bottom { margin-top: 0; border-top: none; padding-top: 0; }
  .nav-item { padding: 8px 10px; min-height: 40px; }
  .nav-item .nav-emoji { width: auto; }
  .nav-item.mini { font-size: 0.76em; }
  .main { padding: 14px 14px 30px; gap: 12px; }
  .subject-meta { margin-left: 0; }
  .subject-emoji { font-size: 2.4em; }
  .bar-chart { height: 110px; }
}

/* ---------- Toast + 确认模态 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  background: rgba(8, 6, 30, 0.92);
  border: 1px solid rgba(78, 205, 196, 0.4);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95em;
  font-weight: 600;
  z-index: 300;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  max-width: 86vw;
  text-align: center;
}
.fade-enter-active, .fade-leave-active { transition: opacity 0.25s, transform 0.25s; }
.fade-enter-from, .fade-leave-to { opacity: 0; transform: translateX(-50%) translateY(12px); }

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
}
.modal-box {
  background: linear-gradient(160deg, #1d1b4b, #12103a);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 24px 26px;
  width: min(320px, 86vw);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.modal-box h3 { margin: 0 0 8px; font-size: 1.2em; }
.modal-box p { margin: 0 0 18px; color: rgba(255, 255, 255, 0.65); font-size: 0.92em; }
.modal-buttons { display: flex; gap: 10px; justify-content: center; }
.modal-buttons .btn { flex: 1; }

/* ============================================================
   离子炮 + 导弹 + 命中爆炸（覆盖旧版 emoji 战斗效果）
   ============================================================ */
.cannon-area { position: relative; }
.cannon-svg {
  width: 210px;
  height: 155px;
  filter: drop-shadow(0 0 20px rgba(255, 217, 61, 0.4)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}
.cannon-label {
  font-size: 0.8em;
  font-weight: 700;
  color: #ffd93d;
  background: rgba(20, 12, 6, 0.6);
  border: 1px solid rgba(255, 183, 3, 0.45);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 1px;
}
/* 发射后坐（炮管整体后移，覆盖旧版 cannonFire 平移） */
.barrel-group { transition: transform 0.12s ease-out; }
.cannon-area.cannon-fire .barrel-group { transform: translateX(24px); }
.cannon-area.cannon-fire .muzzle-charge { opacity: 0; transition: opacity 0.1s; }

/* 炮口火光 */
.muzzle-flash {
  position: absolute;
  right: 2px;
  top: 30%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #fff 0%, #ffd93d 30%, #ff6b6b 55%, transparent 75%);
  border-radius: 50%;
  animation: muzzleBlast 0.55s ease-out forwards;
  pointer-events: none;
  z-index: 20;
  transform-origin: center;
}
@keyframes muzzleBlast {
  0% { transform: scale(0.15); opacity: 1; }
  60% { transform: scale(1.2); opacity: 0.95; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ===== 激光（金黄色直线，粗细随连击） ===== */
.laser {
  position: absolute;
  z-index: 25;
  transform-origin: left center;
  transform: rotate(var(--ba));
  animation: laserFire 0.3s ease-out forwards;
  pointer-events: none;
  border-radius: 999px;
}
.laser-core {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #fffef5, #ffd93d 50%, #ffb703 90%, #ff9f43);
  border-radius: 999px;
  box-shadow: 0 0 14px #ffd93d, 0 0 32px rgba(255, 217, 61, 0.9), 0 0 60px rgba(255, 183, 3, 0.55);
}
/* 激光：更快射满、保持更久、缓缓消退（0.55s） */
@keyframes laserFire {
  0% { transform: rotate(var(--ba)) scaleX(0.04); opacity: 0.95; }
  22% { transform: rotate(var(--ba)) scaleX(1); opacity: 1; }
  55% { transform: rotate(var(--ba)) scaleX(1); opacity: 1; }
  80% { transform: rotate(var(--ba)) scaleX(1); opacity: 0.75; }
  100% { transform: rotate(var(--ba)) scaleX(1); opacity: 0; }
}
.laser {
  animation-duration: 0.55s;
}

/* 连击浮标（命中时怪物头顶弹出 xN） */
.combo-pop {
  position: absolute;
  left: 50%;
  top: 0%;
  transform: translateX(-50%);
  font-size: 1.7em;
  font-weight: 900;
  color: #ffd93d;
  text-shadow: 0 0 14px rgba(255, 217, 61, 0.9);
  animation: comboFloat 0.7s ease-out forwards;
  z-index: 45;
  pointer-events: none;
  white-space: nowrap;
}
@keyframes comboFloat {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.5); }
  25% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -44px) scale(1); }
}

/* ===== 命中爆炸 ===== */
.hit-explosion {
  position: absolute;
  left: 50%;
  top: 36%;
  width: 0;
  height: 0;
  z-index: 40;
  pointer-events: none;
}
.explosion-flash {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffd93d 35%, #ff6b6b 65%, transparent 85%);
  animation: flashFade 0.55s ease-out forwards;
}
@keyframes flashFade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.15); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); }
}
.explosion-ring {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 5px solid #ffd93d;
  border-radius: 50%;
  animation: ringExpand 0.6s ease-out forwards;
}
.explosion-ring.r2 { border-color: #ff9f43; animation-delay: 0.08s; }
.explosion-ring.r3 { border-color: #ff6b6b; animation-delay: 0.16s; }
@keyframes ringExpand {
  0% { transform: translate(-50%, -50%) scale(0.15); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}
.explosion-spark {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffd93d;
  box-shadow: 0 0 12px #ff9f43;
  animation: sparkFly 0.55s ease-out forwards;
}
@keyframes sparkFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scale(0.15); opacity: 0; }
}

/* ===== 屏幕震动 + 怪物受击 ===== */
.battle-area.shake { animation: battleShake 0.45s ease; }
@keyframes battleShake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-7px, 4px); }
  30% { transform: translate(6px, -5px); }
  45% { transform: translate(-5px, -3px); }
  60% { transform: translate(4px, 3px); }
  75% { transform: translate(-2px, -1px); }
}
.monster-area.monster-hit .monster-avatar {
  animation: monsterHit 0.45s ease;
}
@keyframes monsterHit {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(0.8) rotate(-6deg); }
  60% { transform: scale(1.15) rotate(4deg); }
}

/* ---------- 关卡网格：去掉内部滚动条，跟随主区统一滚动 ---------- */
.main .levels-grid {
  overflow: visible;
  flex: none;
}

/* 主区/侧栏滚动条美化（细、半透明，不突兀） */
.main::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.main::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}
.main::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}
.main::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
/* Firefox 细滚动条 */
.main,
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* ---------- 结果页按钮优化 ---------- */
.result-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.btn-action {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.2em;
  font-weight: 800;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.45);
}
.result-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}
.result-actions .btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 0.95em;
  border-radius: 12px;
  min-height: 44px;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* ---------- 顶部连击徽章 ---------- */
.header-combo {
  font-size: 1em;
  font-weight: 800;
  color: #ffd93d;
  background: rgba(255, 107, 107, 0.18);
  border: 1px solid rgba(255, 217, 61, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  min-width: 44px;
  text-align: center;
  animation: comboPop 0.3s ease;
}
@keyframes comboPop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ---------- 形状题：图形展示（小尺寸，绝不遮挡选项） ---------- */
.prompt-shape {
  width: 84px;
  height: 84px;
  /* 图形只是展示，绝不拦截选项的点击 */
  pointer-events: none;
}
.prompt-shape .shape-circle { width: 68px; height: 68px; }
.prompt-shape .shape-square { width: 62px; height: 62px; }
.prompt-shape .shape-triangle {
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-bottom: 59px solid #4ecdc4;
}
.prompt-shape .shape-star { font-size: 2.4em; line-height: 1; }
.prompt-shape .shape-heart { font-size: 2.6em; line-height: 1; }
.prompt-shape .shape-rectangle { width: 76px; height: 48px; }
.prompt-question .classify-options { margin-top: 14px; }

/* ---------- 我的小猫卡片 ---------- */
.pet-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.16), rgba(240, 147, 251, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.35);
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  position: relative;
}
.pet-card:hover { transform: translateY(-2px); border-color: rgba(102, 126, 234, 0.7); }
.pet-avatar {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  overflow: hidden;
}
.pet-avatar img {
  height: 100%;
  width: auto;
  object-fit: contain;
  animation: petFloat 2.5s ease-in-out infinite;
}
@keyframes petFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.pet-info { flex: 1; min-width: 0; }
.pet-name { font-weight: 800; font-size: 1.05em; display: flex; align-items: center; gap: 8px; }
.pet-energy { font-size: 0.8em; color: #ff8fab; background: rgba(255, 143, 171, 0.18); padding: 1px 8px; border-radius: 999px; }
.pet-bar { height: 8px; background: rgba(255, 255, 255, 0.12); border-radius: 999px; margin: 6px 0 4px; overflow: hidden; }
.pet-fill { height: 100%; border-radius: 999px; transition: width 0.4s; }
.pet-fill.fill-full { background: linear-gradient(90deg, #ffd93d, #ff9f43); }
.pet-fill.fill-happy { background: linear-gradient(90deg, #ff8fab, #f093fb); }
.pet-fill.fill-clean { background: linear-gradient(90deg, #4ecdc4, #2a9d8f); }
.pet-hint { font-size: 0.78em; color: rgba(255, 255, 255, 0.6); }
.pet-hungry-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: #ff6b6b;
  color: #fff;
  font-size: 0.78em;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.55);
  animation: badgePulse 1.2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.nav-item.pet-hungry { border-color: rgba(255, 107, 107, 0.55); }
.nav-item.pet-hungry:hover { background: rgba(255, 107, 107, 0.14); }

/* ---------- 宠物房 ---------- */
.pet-screen {
  z-index: 6;
}
.pet-room {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  box-sizing: border-box;
}
.pet-room-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pet-room-title {
  flex: 1;
  text-align: center;
  font-size: 1.25em;
  font-weight: 900;
}
.pet-room-bag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.92em;
  font-weight: 700;
  white-space: nowrap;
}
.bag-sep { margin: 0 6px; opacity: 0.45; }

/* 舞台 */
.pet-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(102, 126, 234, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
}
.pet-stage-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(78, 205, 196, 0.35), transparent 70%);
  filter: blur(2px);
}
.cat-img {
  position: relative;
  z-index: 2;
  height: 62%;
  max-height: 400px;
  width: auto;
  object-fit: contain;
  animation: catFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes catFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.cat-img.mood-happy { animation: catHappy 1.6s ease-in-out infinite; }
@keyframes catHappy {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg) scale(1.04); }
}
.cat-img.mood-sad { animation: catSad 2.4s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)) saturate(0.75); }
@keyframes catSad {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px) scale(0.99); }
}
.cat-img.anim-eat { animation: catEat 0.9s ease-in-out 2; }
@keyframes catEat {
  0%, 100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-4px) rotate(-5deg) scale(1.03); }
  70% { transform: translateY(3px) rotate(4deg) scale(1.02); }
}
.cat-img.anim-brush { animation: catBrush 1s ease-in-out 2; }
@keyframes catBrush {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-6px) rotate(-3deg); }
  60% { transform: translateX(6px) rotate(3deg); }
}
.cat-img.anim-pat { animation: catPat 0.8s ease-in-out 2; }
@keyframes catPat {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-8px) scale(1.06); }
  80% { transform: translateY(-2px) scale(1.02); }
}

/* 气泡 */
.pet-bubble {
  position: absolute;
  z-index: 5;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 78%;
  background: rgba(255, 255, 255, 0.96);
  color: #2a2018;
  font-weight: 700;
  font-size: 0.98em;
  padding: 10px 16px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  animation: bubbleIn 0.3s ease;
  white-space: normal;
  text-align: center;
}
.pet-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  margin-left: -8px;
  border: 9px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.96);
  border-bottom: 0;
}
@keyframes bubbleIn {
  0% { opacity: 0; transform: translateX(-50%) scale(0.6); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* 漂浮特效 */
.pet-fx {
  position: absolute;
  z-index: 6;
  font-size: 1.7em;
  pointer-events: none;
  animation: fxFloat 1.5s ease-out forwards;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
@keyframes fxFloat {
  0% { opacity: 0; transform: translateY(12px) scale(0.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-56px) scale(1.25); }
}

/* 状态条 */
.pet-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pet-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pet-stat-icon { font-size: 1.3em; width: 28px; text-align: center; flex-shrink: 0; }
.pet-stat-body { flex: 1; min-width: 0; }
.pet-stat-label { font-size: 0.86em; color: rgba(255, 255, 255, 0.75); display: flex; justify-content: space-between; margin-bottom: 3px; }
.pet-stat-label em { font-style: normal; color: #fff; font-weight: 800; }

/* 道具按钮 */
.pet-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pet-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.98em;
  font-weight: 700;
  padding: 13px 10px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  min-height: 48px;
}
.pet-btn b { font-weight: 900; color: #ffd93d; margin-left: 4px; }
.pet-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.pet-btn:active:not(:disabled) { transform: scale(0.96); }
.pet-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pet-btn-earn {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #ffd93d, #ff9f43);
  border: none;
  color: #2a2018;
  box-shadow: 0 6px 18px rgba(255, 159, 67, 0.4);
}
.pet-btn-earn:hover:not(:disabled) { background: linear-gradient(135deg, #ffe066, #ffb050); }

/* 赚粮奖励横幅 */
.pet-reward {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(8, 6, 30, 0.94);
  border: 1px solid rgba(255, 217, 61, 0.55);
  color: #fff;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.98em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 90%;
}
.earn-pill { border-color: rgba(255, 217, 61, 0.5); color: #ffd93d; }

/* 移动端宠物房 */
@media (max-width: 720px) {
  .pet-room { padding: 10px 12px 20px; gap: 10px; }
  .cat-img { height: 50%; }
  .pet-btn { font-size: 0.92em; padding: 11px 8px; }
  .pet-room-title { font-size: 1.05em; }
  .pet-room-bag { padding: 4px 10px; font-size: 0.82em; }
}

/* ---------- 每日挑战入口 ---------- */
.nav-item.challenge-item { border-color: rgba(255, 217, 61, 0.35); }
.nav-item.challenge-item:hover { background: rgba(255, 217, 61, 0.12); }
.lv-badge {
  font-style: normal;
  background: linear-gradient(135deg, #ffd93d, #ff9f43);
  color: #2a2018;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.78em;
  font-weight: 800;
  margin-left: 4px;
}

/* ============================================================
   宠物猫增强：成长徽章 / 配饰 / 商店 / 激光逗猫 / 成就
   ============================================================ */

/* ---------- 成长徽章 ---------- */
.pet-growth-badge {
  font-style: normal;
  font-size: 0.6em;
  font-weight: 800;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 143, 171, 0.35), rgba(240, 147, 251, 0.3));
  border: 1px solid rgba(255, 143, 171, 0.45);
  color: #ffd6e0;
  white-space: nowrap;
}

/* ---------- 配饰佩戴（猫头顶） ---------- */
.pet-accessory {
  position: absolute;
  z-index: 4;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3em;
  line-height: 1;
  pointer-events: none;
  animation: accFloat 2.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}
@keyframes accFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-3deg); }
  50% { transform: translateX(-50%) translateY(-8px) rotate(3deg); }
}

/* ---------- 逗猫按钮 ---------- */
.pet-btn-play {
  background: linear-gradient(135deg, #4ecdc4, #2a9d8f);
  border: none;
  color: #fff;
  box-shadow: 0 6px 18px rgba(78, 205, 196, 0.35);
}
.pet-btn-play:hover:not(:disabled) { background: linear-gradient(135deg, #5ee6dc, #37b3a4); }
.btn-shop-open {
  border-color: rgba(255, 217, 61, 0.6);
  background: rgba(255, 217, 61, 0.14);
}

/* ---------- 配饰商店 ---------- */
.pet-shop {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px;
  animation: shopIn 0.25s ease;
}
@keyframes shopIn {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.pet-shop-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1em;
  padding: 0 2px 10px;
}
.pet-shop-head em {
  font-style: normal;
  color: #ffd93d;
  background: rgba(255, 217, 61, 0.14);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.9em;
}
.pet-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pet-shop-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  text-align: center;
}
.pet-shop-item:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.pet-shop-item.shop-owned { border-color: rgba(78, 205, 196, 0.4); }
.pet-shop-item.shop-worn {
  border-color: #ffd93d;
  background: rgba(255, 217, 61, 0.16);
  box-shadow: 0 0 14px rgba(255, 217, 61, 0.25);
}
.shop-emoji { font-size: 2.1em; line-height: 1.1; }
.shop-name { font-size: 0.82em; font-weight: 700; }
.shop-price { font-size: 0.75em; color: #ffd93d; font-weight: 800; }

/* ---------- 激光逗猫 ---------- */
.laser-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: radial-gradient(ellipse at 50% 40%, #141031 0%, #0a0824 70%);
  display: flex;
  flex-direction: column;
  padding: 12px;
  cursor: crosshair;
  animation: fadeIn 0.25s ease;
}
.laser-hud {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.laser-quit { position: static; }
.laser-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.95em;
}
.laser-pill.timer-low { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.5); animation: badgePulse 1s ease-in-out infinite; }
.laser-area {
  flex: 1;
  position: relative;
  margin: 10px 0;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.laser-dot {
  position: absolute;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff5f6d 0%, #ffd93d 55%, transparent 75%);
  box-shadow: 0 0 22px rgba(255, 217, 61, 0.9), 0 0 46px rgba(255, 95, 109, 0.6);
  animation: laserPulse 0.7s ease-in-out infinite;
  pointer-events: none;
  transition: left 0.22s ease, top 0.22s ease;
}
@keyframes laserPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.85; }
}
.laser-tip {
  text-align: center;
  font-size: 0.95em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 0 2px;
}
@media (max-width: 720px) {
  .pet-shop-grid { grid-template-columns: repeat(2, 1fr); }
  .pet-accessory { font-size: 2.4em; }
}

/* ============================================================
   云存档：侧边栏状态 / 登录注册 / 孩子档案
   ============================================================ */
.cloud-item .cloud-icon { width: 22px; text-align: center; flex-shrink: 0; font-size: 1em; }
.cloud-item.cloud-ok { border-color: rgba(78, 205, 196, 0.45); }
.cloud-item.cloud-ok:hover { background: rgba(78, 205, 196, 0.12); }

.auth-box { width: 320px; max-width: 92vw; display: flex; flex-direction: column; gap: 10px; }
.auth-tabs { display: flex; gap: 8px; }
.auth-tabs button {
  flex: 1;
  padding: 9px 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.auth-tabs button.on {
  background: rgba(102, 126, 234, 0.35);
  border-color: rgba(102, 126, 234, 0.7);
  color: #fff;
}
.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 0.98em;
  font-family: inherit;
  outline: none;
  min-height: 44px;
}
.auth-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.auth-input:focus { border-color: rgba(102, 126, 234, 0.7); }
.auth-error { color: #ff8b8b; font-size: 0.88em; }
.auth-submit { width: 100%; min-height: 46px; }
.auth-tip { font-size: 0.8em; color: rgba(255, 255, 255, 0.5); text-align: center; }

.profile-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
.profile-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.profile-item:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.profile-avatar { font-size: 1.8em; line-height: 1; }
.profile-name { flex: 1; font-weight: 800; font-size: 1.05em; }
.profile-pin { font-size: 0.85em; opacity: 0.7; }
.profile-arrow { color: rgba(255, 255, 255, 0.4); font-size: 1.3em; }
.profile-empty { text-align: center; color: rgba(255, 255, 255, 0.5); padding: 10px 0; }
.profile-create { display: flex; gap: 8px; }
.profile-create .auth-input { flex: 1; }
.profile-avatar-input { max-width: 64px; text-align: center; }
.auth-logout { width: 100%; }

/* ---- F5 挑战连胜徽章 ---- */
.streak-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff9a56, #ff5e62);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(255, 94, 98, 0.4);
}

/* ---- F3 每日任务卡片 ---- */
.quest-panel {
  flex: none; /* main 是 flex 列容器，防被压缩 */
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
}
.quest-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}
.quest-title { font-size: 15px; font-weight: 700; }
.quest-count {
  margin-left: auto;
  font-style: normal;
  font-size: 13px;
  color: #ffd76e;
  background: rgba(255, 215, 110, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}
.quest-caret { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.quest-list { padding: 2px 14px 12px; }
.quest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.quest-emoji { font-size: 20px; width: 26px; text-align: center; }
.quest-main { flex: 1; }
.quest-name { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.quest-reward {
  font-style: normal;
  font-size: 11px;
  color: #ffd76e;
  background: rgba(255, 215, 110, 0.15);
  padding: 1px 6px;
  border-radius: 8px;
}
.quest-bar {
  height: 6px;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
}
.quest-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd76e, #ff9a56);
  border-radius: 3px;
  transition: width 0.3s;
}
.quest-progress { font-size: 11px; color: rgba(255, 255, 255, 0.55); margin-top: 3px; }
.quest-done .quest-name { text-decoration: line-through; color: rgba(255, 255, 255, 0.55); }
.quest-done .quest-bar-fill { background: linear-gradient(90deg, #4ecdc4, #44bd9e); }

/* ---- F2 打卡日历 + 成就墙 ---- */
.ach-screen {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 16px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ach-header { display: flex; align-items: center; gap: 12px; }
.ach-tabs { display: flex; gap: 8px; margin-left: 8px; }
.ach-tab {
  padding: 7px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.ach-tab.active {
  background: linear-gradient(135deg, #ffd76e, #ff9a56);
  color: #2a1f3d;
  border-color: transparent;
}
.cal-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
}
.cal-streak { font-size: 16px; font-weight: 700; color: #ffd76e; }
.cal-streak b { font-size: 22px; }
.cal-best { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
}
.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 700;
}
.cal-cell.active { background: linear-gradient(135deg, #ffd76e, #ff9a56); color: #2a1f3d; }
.cal-cell.today { outline: 2px solid #4ecdc4; outline-offset: 1px; }
.cal-hint { font-size: 12px; color: rgba(255, 255, 255, 0.5); text-align: center; }
.badge-count { font-size: 14px; font-weight: 700; color: #ffd76e; text-align: center; }
.ach-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 560px) { .ach-badges { grid-template-columns: repeat(2, 1fr); } }
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 10px;
}
.badge-emoji { font-size: 34px; line-height: 1; }
.badge-main { width: 100%; }
.badge-name { font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; }
.badge-reward {
  font-style: normal;
  font-size: 11px;
  color: #ffd76e;
  background: rgba(255, 215, 110, 0.15);
  padding: 1px 6px;
  border-radius: 8px;
}
.badge-bar { height: 6px; margin-top: 6px; background: rgba(255, 255, 255, 0.12); border-radius: 3px; overflow: hidden; }
.badge-bar-fill { height: 100%; background: linear-gradient(90deg, #ffd76e, #ff9a56); border-radius: 3px; transition: width 0.3s; }
.badge-progress { font-size: 11px; color: rgba(255, 255, 255, 0.55); margin-top: 3px; }
.badge-item.earned { border-color: rgba(78, 205, 196, 0.55); }
.badge-item.earned .badge-bar-fill { background: linear-gradient(90deg, #4ecdc4, #44bd9e); }

/* ---- F1 家长学习报告 ---- */
.report-screen {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 16px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.report-header { display: flex; align-items: center; gap: 12px; }
.report-title { font-size: 17px; font-weight: 800; flex: 1; }
.btn-print { font-size: 13px; }
.report-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 640px) { .report-cards { grid-template-columns: repeat(2, 1fr); } }
.report-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}
.rc-num { font-size: 20px; font-weight: 800; color: #ffd76e; }
.rc-label { font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }
.rc-sub { font-size: 11px; color: rgba(255, 255, 255, 0.45); }
.report-section {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
}
.report-section h3 { margin: 0 0 10px; font-size: 15px; }
.subject-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.sr-emoji { font-size: 22px; width: 30px; text-align: center; }
.sr-main { flex: 1; }
.sr-name { font-size: 13px; }
.sr-bar { height: 7px; margin-top: 5px; background: rgba(255, 255, 255, 0.12); border-radius: 4px; overflow: hidden; }
.sr-fill { height: 100%; background: linear-gradient(90deg, #667eea, #764ba2); border-radius: 4px; }
.sr-stars { font-size: 13px; color: #ffd76e; white-space: nowrap; }
.weak-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.report-empty { color: rgba(255, 255, 255, 0.55); font-size: 13px; }
.report-pet { color: rgba(255, 255, 255, 0.8); font-size: 13px; }

/* 打印：只输出家长报告区 */
@media print {
  body * { visibility: hidden !important; }
  #parent-report, #parent-report * { visibility: visible !important; }
  #parent-report {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    background: #fff;
    color: #222;
  }
  #parent-report .report-card,
  #parent-report .report-section { background: #f5f5f5; border-color: #ddd; }
  #parent-report .rc-num { color: #b8860b; }
  #parent-report .btn-print { display: none; }
}

/* ---- F6 家长设置 + 休息 + PWA ---- */
.ps-row { margin-bottom: 12px; }
.ps-row label { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-bottom: 5px; }
.ps-row .auth-input { width: 100%; margin-top: 2px; }
.ps-time-row { display: flex; align-items: center; gap: 8px; }
.ps-time-row .auth-input { flex: 1; }
.ps-to { color: rgba(255, 255, 255, 0.6); font-size: 13px; }

.break-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 6, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.break-box { text-align: center; }
.break-emoji { font-size: 64px; }
.break-box h2 { font-size: 26px; margin: 10px 0 6px; }
.break-count {
  font-size: 48px;
  font-weight: 900;
  color: #4ecdc4;
  margin: 16px 0;
}
.break-hint { font-size: 13px; color: rgba(255, 255, 255, 0.5); }

.install-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 260;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 16, 50, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 90vw;
}
.install-text { font-size: 13px; }
.btn-install { padding: 6px 14px; font-size: 13px; }
.btn-install-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  cursor: pointer;
}

/* ============================================================
   布局 v2：首页仪表盘 + 设置二级页 + 三档响应式侧栏
   ============================================================ */

/* ---------- 首页仪表盘 ---------- */
.home-dash {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- 首页学习入口（复习 / 挑战 / 星际漫游）：卡片样式，位于小猫/任务区下方 ---------- */
.home-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .home-quick { grid-template-columns: 1fr; }
}
.home-quick-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 16px 14px;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.home-quick-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.qc-review::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.qc-challenge::before { background: linear-gradient(90deg, #ff6b6b, #ee5a24); }
.qc-voyage::before { background: linear-gradient(90deg, #f6b93b, #e58e26); }
.home-quick-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.qc-emoji { font-size: 34px; display: block; }
.qc-name {
  font-size: 16px;
  font-weight: 800;
  margin: 8px 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.qc-desc { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.qc-badge {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #ff8d8d;
  background: rgba(255, 107, 107, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
}
.qc-lv {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #ffd76e;
  background: rgba(255, 215, 110, 0.18);
  padding: 2px 8px;
  border-radius: 10px;
}

/* 底部功能区（打卡成就 / 云存档设置）改 2 列，视觉降级 */
.home-funcs {
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
}

.home-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .home-top { grid-template-columns: 1fr; }
}
.home-top .pet-card { margin: 0; }
.home-quest { margin-top: 0; }

.home-subjects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .home-subjects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .home-subjects { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.home-subject-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 16px 14px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.home-subject-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.hs-emoji { font-size: 38px; display: block; }
.hs-name { font-size: 17px; font-weight: 800; margin: 8px 0 3px; }
.hs-desc { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.hs-bar { height: 7px; margin: 10px 0 6px; background: rgba(255, 255, 255, 0.14); border-radius: 4px; overflow: hidden; }
.hs-fill { height: 100%; background: linear-gradient(90deg, #667eea, #764ba2); border-radius: 4px; }
.hs-stars { font-size: 13px; color: #ffd76e; }

.home-funcs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .home-funcs { grid-template-columns: repeat(2, 1fr); } }
.home-func {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.home-func em {
  font-style: normal;
  margin-left: auto;
  font-size: 12px;
  color: #ffd76e;
  background: rgba(255, 215, 110, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}
.home-func .hf-emoji { font-size: 22px; }
.hf-badge { background: rgba(255, 107, 107, 0.3) !important; color: #ff8d8d !important; }

/* ---------- 设置二级页 ---------- */
.settings-page {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-title { margin: 4px 0 0; font-size: 22px; }
.set-section {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 8px 12px;
}
.set-section h3 { margin: 8px 8px 4px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.set-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 14px;
  padding: 13px 8px;
  cursor: pointer;
  text-align: left;
}
.set-section h3 + .set-row { border-top: none; }
.set-row .cloud-icon { font-size: 18px; width: 24px; text-align: center; }
.set-row-text { flex: 1; }
.set-row-arrow { color: rgba(255, 255, 255, 0.4); font-size: 18px; }
.set-row-val {
  font-style: normal;
  font-size: 12px;
  color: #ffd76e;
  background: rgba(255, 215, 110, 0.15);
  padding: 2px 10px;
  border-radius: 10px;
}
.set-row.danger { color: #ff8d8d; }
.set-row.danger .set-row-arrow { color: rgba(255, 141, 141, 0.4); }
.set-row.cloud-ok .cloud-icon { animation: none; }

/* ---------- 三档响应式侧栏 ---------- */
@media (max-width: 1023px) and (min-width: 721px) {
  /* 平板竖屏：图标栏 */
  .sidebar {
    width: 64px;
    padding: 12px 6px;
    align-items: center;
  }
  .logo { padding: 0 4px; justify-content: center; }
  .logo-text { display: none; }
  .nav-section { align-items: center; width: 100%; }
  .nav-item {
    justify-content: center;
    padding: 10px 4px;
    width: 100%;
  }
  .nav-item .nav-emoji { margin: 0; font-size: 22px; }
  .nav-item .nav-name { display: none; }
  .due-badge, .lv-badge, .streak-badge { display: none; }
  .main { padding: 16px 18px 40px; }
}

@media (max-width: 720px) {
  /* 手机：侧栏收成一行顶部横条 */
  .sidebar {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    align-items: center;
    padding: 8px 10px;
    gap: 4px;
  }
  .logo { flex-shrink: 0; }
  .nav-section { flex-direction: row; flex-wrap: nowrap; gap: 4px; }
  .nav-bottom { flex-direction: row; }
  .nav-item { flex-shrink: 0; padding: 8px 10px; }
  .nav-item .nav-name { display: inline; }
  .nav-emoji { font-size: 18px; }
  .home-top { grid-template-columns: 1fr; }
}

/* ---- 每日强制打卡全屏 ---- */
.checkin-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: linear-gradient(160deg, rgba(10, 8, 36, 0.98), rgba(45, 27, 105, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.checkin-box {
  text-align: center;
  max-width: 420px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 34px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.checkin-emoji { font-size: 56px; }
.checkin-box h2 { font-size: 26px; margin: 12px 0 6px; }
.checkin-date { font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.checkin-streak { font-size: 17px; margin: 14px 0 4px; }
.checkin-streak b { color: #ffd76e; font-size: 24px; }
.checkin-hint { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin-bottom: 18px; }
.checkin-btn {
  width: 100%;
  padding: 15px 20px;
  font-size: 17px;
  font-weight: 800;
  border-radius: 14px;
}

/* 强制打卡 · 内嵌 20 题学习 */
.checkin-overlay { overflow-y: auto; }
.checkin-quiz {
  max-width: 580px;
  padding: 26px 22px 22px;
}
.checkin-quiz .checkin-head { margin-bottom: 8px; }
.checkin-quiz h2 { font-size: 22px; }
.checkin-progress { margin: 12px auto 4px; max-width: 460px; }
.checkin-progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.checkin-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #667eea, #ffd93d);
  transition: width 0.4s ease;
}
.checkin-progress-text { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.checkin-progress-text b { color: #ffd76e; font-size: 18px; }
.checkin-question { margin: 14px 0 6px; }
.checkin-question .listen-btn { margin: 4px auto 10px; }
.checkin-numpad { max-width: 320px; margin: 0 auto; padding: 0 0 8px; }
.checkin-done .checkin-emoji { animation: correctFlash 0.6s ease; }

/* 家长设置：强制打卡开关 */
.ps-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ps-toggle-row label { flex: 1; }
.ps-toggle {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ps-toggle.on {
  background: linear-gradient(135deg, #4ecdc4, #44bd9e);
  color: #123;
  border-color: transparent;
}

/* ---------- 一年级会写字·笔顺描红（低功耗：静态 SVG + 用完即毁） ---------- */
.write-question {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 2px 0 6px;
}
.write-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.write-char {
  font-size: 4.2em;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(102, 126, 234, 0.55);
}
.write-py {
  font-size: 1.5em;
  font-weight: 800;
  color: #ffd76e;
  background: rgba(255, 215, 110, 0.12);
  border: 1px solid rgba(255, 215, 110, 0.4);
  border-radius: 999px;
  padding: 4px 14px;
}
.write-lesson {
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.write-box {
  position: relative;
  width: min(280px, 62vw);
  height: min(280px, 62vw);
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 12, 41, 0.55);
  box-shadow: inset 0 0 24px rgba(102, 126, 234, 0.12);
  overflow: hidden;
  touch-action: none;
}
.hanzi-canvas {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hanzi-canvas svg {
  width: 100%;
  height: 100%;
}
.trace-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  z-index: 2;
}
.write-tip {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
}
.write-progress {
  font-size: 1em;
  font-weight: 800;
  color: #fff;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.45);
  border-radius: 999px;
  padding: 3px 16px;
}
.write-progress b { color: #ffd76e; }
.write-msg {
  font-size: 0.95em;
  font-weight: 700;
  color: #ffd76e;
  background: rgba(255, 215, 110, 0.12);
  border: 1px solid rgba(255, 215, 110, 0.35);
  border-radius: 999px;
  padding: 4px 14px;
  animation: writeReadyPulse 0.9s ease;
}
.write-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.write-done {
  min-height: 44px;
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.write-done.write-done-ready {
  opacity: 1;
  cursor: pointer;
  filter: none;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.45);
  animation: writeReadyPulse 1.2s ease-in-out infinite;
}
@keyframes writeReadyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@media (max-width: 720px) {
  .write-box {
    width: min(240px, 64vw);
    height: min(240px, 64vw);
  }
  .write-char { font-size: 3.4em; }
}


/* ============================================================
   2026-08-05 新增：太空学科 UI / 航线图 / 星际漫游 / 跟读 /
   贴纸图鉴 / 太空皮肤 / 宠物旅行 / 家长报告增强 / 番茄钟
   ============================================================ */

/* ---------- 太空航线图（学科工作台顶部） ---------- */
.route-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px 14px;
  margin-bottom: 14px;
}
.route-title {
  font-size: 0.85em;
  color: #c9b8ff;
  margin-bottom: 10px;
}
.route-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4px 2px 0;
}
.route-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 34px;
  opacity: 0.45;
  transition: opacity 0.3s;
}
.route-node.route-done { opacity: 1; }
.route-node.route-current .route-planet {
  box-shadow: 0 0 0 2px #ffd93d, 0 0 14px rgba(255, 217, 61, 0.6);
}
.route-planet {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
}
.route-name {
  font-size: 0.68em;
  color: rgba(255, 255, 255, 0.7);
}
.route-rocket {
  position: relative;
  margin: -2px 0 4px;
  font-size: 1.35em;
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}
.route-tip {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
}

/* ---------- 星际漫游（游戏内航线进度） ---------- */
.voyage-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0;
}
.voyage-route {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 4px;
}
.voyage-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
  opacity: 0.45;
}
.voyage-node.voyage-reached { opacity: 1; }
.voyage-node.voyage-cur .voyage-emoji {
  transform: scale(1.25);
  filter: drop-shadow(0 0 8px rgba(255, 217, 61, 0.8));
}
.voyage-emoji { font-size: 1.3em; transition: transform 0.3s; }
.voyage-name { font-size: 0.62em; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.voyage-bar {
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0 4px;
  overflow: hidden;
}
.voyage-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #ffd93d, #ff6b6b, #a78bfa);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.voyage-tip { font-size: 0.78em; color: rgba(255, 255, 255, 0.65); }
.voyage-pill { color: #ffd93d; }
.home-func-voyage { border-color: rgba(255, 217, 61, 0.5) !important; }

/* ---------- 语音跟读 ---------- */
.follow-word {
  font-size: 2.2em;
  text-align: center;
  margin: 12px 0 6px;
  color: #ffd93d;
  letter-spacing: 0.08em;
}
.follow-state { text-align: center; margin: 8px 0 4px; }
.follow-mic { font-size: 2.4em; animation: followMicPulse 1s ease-in-out infinite; }
.follow-stars { font-size: 1.8em; margin-bottom: 4px; }
@keyframes followMicPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}
.follow-btn { margin-left: 8px; }

/* ---------- 贴纸图鉴 ---------- */
.ach-stickers { padding: 6px 2px 20px; }
.sticker-group { margin-bottom: 18px; }
.sticker-group-title {
  font-size: 0.9em;
  color: #c9b8ff;
  margin-bottom: 8px;
}
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.sticker-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sticker-item.sticker-empty { opacity: 0.45; filter: grayscale(0.6); }
.sticker-emoji { font-size: 1.6em; }
.sticker-name { font-size: 0.66em; color: rgba(255, 255, 255, 0.7); text-align: center; }

/* ---------- 太空皮肤 ---------- */
.skin-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skin-item {
  flex: 1 1 42%;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.skin-item.skin-on {
  border-color: #ffd93d;
  background: rgba(255, 217, 61, 0.12);
}
.skin-emoji { font-size: 1.4em; }
.skin-name { flex: 1; font-size: 0.85em; }
.skin-price { font-size: 0.75em; color: rgba(255, 255, 255, 0.7); }

/* 皮肤背景（body 类切换） */
body.skin-sunset {
  background: linear-gradient(135deg, #2b1440 0%, #6b2d5c 35%, #b84a5a 70%, #1a0a3e 100%);
}
body.skin-aurora {
  background: linear-gradient(135deg, #041f1e 0%, #0f3d3a 30%, #2b1b5c 65%, #041018 100%);
}
body.skin-galaxy {
  background: linear-gradient(135deg, #140a2e 0%, #2d1368 40%, #4a1d6e 75%, #1a0a3e 100%);
}

/* ---------- 宠物旅行 ---------- */
.pet-btn-travel { border-color: rgba(167, 139, 250, 0.55); }
.pet-btn-travel .travel-cost {
  font-style: normal;
  font-size: 0.78em;
  color: rgba(255, 255, 255, 0.75);
  margin-left: 4px;
}
.pet-btn-travel.ready {
  border-color: #ffd93d;
  color: #ffd93d;
  animation: writeReadyPulse 1.4s ease-in-out infinite;
}
.pet-energy {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 10px;
}
.pe-label { font-size: 0.8em; color: rgba(255, 255, 255, 0.8); white-space: nowrap; }
.pe-bar { flex: 1; height: 8px; border-radius: 5px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.pe-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #a78bfa, #ffd93d);
  transition: width 0.4s ease;
}
.pe-num { font-size: 0.78em; color: rgba(255, 255, 255, 0.75); }
.travel-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(5, 5, 30, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  color: #fff;
  text-align: center;
}
.travel-rocket { font-size: 3.2em; animation: travelFly 1.2s ease-in-out infinite; }
@keyframes travelFly {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}
.travel-sub { font-size: 0.8em; color: rgba(255, 255, 255, 0.65); }

/* ---------- 家长报告：本周小结 / 多孩子对比 ---------- */
.week-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.ws-item {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ws-num { font-size: 1.35em; font-weight: 700; color: #ffd93d; }
.ws-label { font-size: 0.72em; color: rgba(255, 255, 255, 0.7); }
.ws-subjects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}
.ws-subject {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78em;
  color: rgba(255, 255, 255, 0.85);
}
.report-hint { font-size: 0.78em; color: rgba(255, 255, 255, 0.6); margin-bottom: 8px; }
.compare-table {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.82em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.compare-row:last-child { border-bottom: none; }
.compare-head { color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.05); }
.compare-mine { background: rgba(255, 217, 61, 0.1); }

/* ---------- 低 CPU：尊重系统“减少动态效果”设置 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---------- 今日学习计划（三步清单） ---------- */
.home-plan {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
}
.plan-head {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.plan-title { font-size: 15px; font-weight: 700; }
.plan-count {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: #ffd76e;
  background: rgba(255, 215, 110, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}
.plan-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 900px) {
  .plan-steps { grid-template-columns: 1fr; }
}
.plan-step {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.plan-step:hover { border-color: rgba(255, 217, 61, 0.5); }
.plan-step.plan-done { opacity: 0.75; border-color: rgba(74, 222, 128, 0.5); }
.plan-emoji { font-size: 22px; flex-shrink: 0; }
.plan-main { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.plan-name { font-size: 14px; font-weight: 800; }
.plan-desc { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.plan-progress { font-size: 12px; color: #ffd76e; }
.plan-go { font-size: 13px; color: rgba(255, 255, 255, 0.7); flex-shrink: 0; }

/* ---------- 游戏屏小猫加油（右下角，不挡操作） ---------- */
.pet-cheer {
  position: absolute;
  right: 14px;
  bottom: 110px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.85;
}
.cheer-emoji { font-size: 34px; transition: transform 0.2s; }
.cheer-bubble {
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 3px 8px;
  white-space: nowrap;
}
.pet-cheer.cheer-happy .cheer-emoji,
.pet-cheer.cheer-combo .cheer-emoji {
  animation: cheerPop 0.5s ease;
}
.pet-cheer.cheer-combo .cheer-emoji { filter: drop-shadow(0 0 8px rgba(255, 217, 61, 0.9)); }
.pet-cheer.cheer-sad .cheer-emoji { animation: cheerSad 0.5s ease; }
@keyframes cheerPop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes cheerSad {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  70% { transform: translateY(2px); }
}
@media (max-width: 720px) {
  .pet-cheer { bottom: 96px; }
  .pet-cheer .cheer-emoji { font-size: 26px; }
}

/* ---------- 期末冲刺：新题型组件 ---------- */
.bonus-badge {
  background: linear-gradient(135deg, #f6d365, #ffb703);
  color: #3a2e1a;
  font-weight: 800;
  font-size: 0.95em;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(255, 183, 3, 0.45);
  animation: pulse 1.2s ease-in-out infinite;
}
.vertical-box {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 217, 61, 0.35);
  border-radius: 18px;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
}
.vertical-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  font-size: 2.2em;
  font-weight: 900;
  line-height: 1.25;
}
.vertical-op { color: #ffd93d; font-size: 0.75em; }
.vertical-line { height: 3px; background: rgba(255, 255, 255, 0.7); border-radius: 2px; margin-top: 4px; }
.vertical-ans { display: flex; justify-content: flex-end; padding-top: 4px; }
.vertical-answer { min-width: 90px; min-height: 44px; font-size: 1.7em; padding: 2px 14px; }
.vertical-tip { font-size: 0.85em; color: rgba(255, 255, 255, 0.65); text-align: center; }
.equation.step-eq { gap: 6px; }
.equation.step-eq span { min-width: 30px; }
.fill-image { font-size: 3.2em; line-height: 1.3; letter-spacing: 0.08em; word-break: break-all; }
.fill-answer { min-width: 140px; }
.read-passage {
  background: rgba(255, 255, 255, 0.07);
  border-left: 4px solid #4ecdc4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1.05em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  width: 100%;
  text-align: left;
}
@media (max-width: 720px) {
  .equation.step-eq { font-size: 1.7em; gap: 4px; }
  .equation.step-eq span { min-width: 22px; }
  .vertical-box { min-width: 140px; padding: 10px 16px; }
  .vertical-row { font-size: 1.9em; }
  .read-passage { font-size: 0.98em; }
  .paper-kousuan { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 期末模拟卷 ---------- */
.exam-screen { padding: 18px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.exam-screen::-webkit-scrollbar { display: none; }
.exam-screen.exam-screen-play, .exam-screen.exam-screen-print { overflow: hidden; padding: 0; }
.exam-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.exam-title { font-size: 1.5em; font-weight: 800; }
.exam-sub { color: rgba(255, 255, 255, 0.65); margin: 0 0 16px; font-size: 0.95em; }
.exam-paper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.exam-paper-card {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.22), rgba(78, 205, 196, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px; padding: 16px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.exam-paper-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25); }
.ep-emoji { font-size: 2.2em; }
.ep-main { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ep-name { font-weight: 800; }
.ep-tip { font-size: 0.8em; color: rgba(255, 255, 255, 0.65); }
.ep-go { color: #ffd93d; font-weight: 700; }
.exam-history { margin-top: 22px; }
.exam-history h3 { margin: 0 0 10px; font-size: 1em; }
.exam-history-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(255,255,255,0.05); border-radius: 10px; margin-bottom: 6px; }
.eh-name { flex: 1; font-weight: 600; }
.eh-date { color: rgba(255,255,255,0.5); font-size: 0.85em; }
.eh-score { font-weight: 800; }
.eh-good { color: #4ecdc4; }
.eh-mid { color: #ffd93d; }
.exam-print-section { margin-top: 26px; border-top: 1px dashed rgba(255,255,255,0.2); padding-top: 18px; }
.exam-print-section h3 { margin: 0 0 4px; font-size: 1.05em; }
.exam-print-section .exam-sub { margin-bottom: 12px; }

/* ===== 电子设备端答题（逐题卡通样式，深色主题） ===== */
.exam-play { display: flex; flex-direction: column; height: 100%; padding: 14px 16px; max-width: 760px; margin: 0 auto; width: 100%; }
.exam-play-head { display: flex; align-items: center; gap: 10px; }
.exam-play-title { flex: 1; text-align: center; font-weight: 800; }
.exam-play-score { font-weight: 800; color: #ffd93d; }
.exam-section-label { margin-top: 14px; font-weight: 700; color: #4ecdc4; }
.exam-progress { height: 6px; background: rgba(255,255,255,0.12); border-radius: 3px; margin: 8px 0 14px; overflow: hidden; }
.exam-progress-fill { height: 100%; background: linear-gradient(90deg, #4ecdc4, #667eea); border-radius: 3px; transition: width 0.3s; }
.exam-question { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.exam-numpad { max-width: 360px; margin: 0 auto; padding: 0 16px 16px; }

/* ===== 打印纸质试卷（独立模块：A4 白纸卷面） ===== */
.exam-print-view { display: flex; flex-direction: column; height: 100%; max-width: 900px; margin: 0 auto; width: 100%; padding: 12px 14px 0; }
.exam-head-btn { padding: 6px 10px; font-size: 1em; }

.exam-paper-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px 6px 14px; scrollbar-width: none; -ms-overflow-style: none; }
.exam-paper-scroll::-webkit-scrollbar { display: none; }
.exam-paper {
  background: #fff; color: #1a1a2e; border-radius: 12px;
  padding: 24px 28px 28px; max-width: 820px; margin: 0 auto;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  font-family: 'PingFang SC', 'Microsoft YaHei', 'SimSun', serif;
  line-height: 1.8;
}

/* 卷首 */
.paper-header { border-bottom: 2px solid #333; padding-bottom: 12px; margin-bottom: 4px; }
.paper-title { font-size: 1.45em; font-weight: 800; text-align: center; letter-spacing: 0.12em; }
.paper-sub { text-align: center; font-size: 0.88em; color: #555; margin-top: 4px; }
.paper-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: center; margin: 12px 0 8px; font-size: 0.98em; }
.pm-line { letter-spacing: 0.08em; }
.score-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 0.92em; margin-top: 6px; }
.score-table th, .score-table td { border: 1px solid #888; padding: 5px 6px; font-weight: 600; }
.score-table th { background: #f2f2f2; }
.score-cell { height: 26px; }
.score-total { font-weight: 800; }

/* 各大题 */
.paper-section { margin-top: 14px; }
.paper-section-title { font-size: 1.08em; font-weight: 800; margin: 0 0 8px; border-bottom: 1px solid #bbb; padding-bottom: 3px; }
.paper-section-pts { font-weight: 600; color: #555; font-size: 0.86em; }
.paper-bonus .paper-section-title { color: #b8860b; }
.paper-question { display: flex; gap: 8px; margin-bottom: 10px; align-items: flex-start; }
.paper-q-no { font-weight: 700; min-width: 24px; text-align: right; }
.paper-q-body { flex: 1; min-width: 0; }

/* 算式 */
.paper-eq { display: flex; align-items: center; gap: 8px; font-size: 1.35em; font-weight: 700; flex-wrap: wrap; }
.eq-num { min-width: 26px; text-align: center; }
.eq-op { min-width: 20px; text-align: center; }
.eq-eq { min-width: 20px; text-align: center; }

/* 填空 */
.paper-fill { font-size: 1.06em; line-height: 2; }
.paper-fill-image { font-size: 2.4em; letter-spacing: 0.08em; word-break: break-all; display: block; line-height: 1.5; }
.paper-fill-seg { white-space: normal; }

/* 选择 / 阅读 / 看图 */
.paper-choice-line { font-size: 1.04em; }
.paper-choice-text { line-height: 1.8; }
.paper-read { background: #f6f6f6; border-left: 4px solid #999; color: #222; font-size: 1em; padding: 10px 12px; border-radius: 6px; margin-bottom: 8px; max-width: none; }
.paper-image { font-size: 3em; line-height: 1.2; color: #333; }
.paper-big { font-size: 2.2em; font-weight: 900; color: #333; }
.paper-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.paper-option-static { display: inline-block; margin: 2px 18px 2px 0; color: #222; font-size: 1em; }
.paper-option-static .opt-serial { font-weight: 800; margin-right: 3px; }

/* 口算 / 直接写得数：多列网格（贴近线下试卷，一行 4 题） */
.paper-kousuan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 12px; margin: 2px 0 8px; }
.paper-kousuan .paper-eq { font-size: 1.2em; }
.kousuan-cell { min-width: 0; }
@media (max-width: 720px) {
  .paper-kousuan { grid-template-columns: repeat(2, 1fr); }
}

/* 卷面填空位（打印版固定（　　），不交互） */
.print-blank { display: inline-block; min-width: 44px; text-align: center; font-weight: 700; }

/* 竖式在试卷上（白纸黑字） */
.paper-vertical-box { background: transparent; border: 1.5px solid #666; }
.paper-vertical-box .vertical-num { color: #222; }
.paper-vertical-box .vertical-op { color: #b8860b; }
.paper-vertical-box .vertical-line { background: #333; }

.paper-end { text-align: center; color: #888; margin-top: 20px; letter-spacing: 0.3em; }

/* 底部操作栏（电子端 + 打印端共用） */
.exam-toolbar { flex: none; padding: 8px 4px 12px; }
.toolbar-progress { height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.toolbar-row { display: flex; align-items: center; gap: 10px; justify-content: center; }
.toolbar-info { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.92em; }

/* ===== 电子端整卷（深色主题，一次性展示全部题目） ===== */
.exam-whole { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 18px 20px 22px; }
.exam-whole-head { text-align: center; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.15); margin-bottom: 4px; }
.exam-whole-title { font-size: 1.25em; font-weight: 800; }
.exam-whole-sub { font-size: 0.85em; color: rgba(255,255,255,0.6); margin-top: 4px; }
.dark-section .paper-section-title { color: #fff; border-bottom-color: rgba(255,255,255,0.25); }
.dark-section .paper-section-pts { color: rgba(255,255,255,0.55); }
.dark-section.paper-bonus .paper-section-title { color: #ffd93d; }
.dark-section .paper-q-no { color: #ffd93d; }
.dark-section .paper-read { background: rgba(255,255,255,0.07); border-left-color: #4ecdc4; color: #eee; }
.dark-section .paper-image { color: #fff; }
.dark-section .paper-big { color: #fff; }
.dark-section .paper-option { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.28); color: #fff; }
.dark-section .paper-option.on { background: rgba(102,126,234,0.4); border-color: #667eea; }
.dark-section .paper-vertical-box { background: rgba(255,255,255,0.06); border-color: rgba(255,217,61,0.4); }
.dark-section .paper-vertical-box .vertical-num { color: #fff; }
.dark-section .paper-vertical-box .vertical-op { color: #ffd93d; }
.dark-section .paper-vertical-box .vertical-line { background: rgba(255,255,255,0.8); }
.dark-end { color: rgba(255,255,255,0.4); }

/* 电子端可点击填空（（ ）） */
.exam-blank {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 28px; margin: 0 3px; padding: 0 4px;
  background: transparent; border: none; cursor: pointer;
  color: #fff; font-weight: 700; font-size: 1em; font-family: inherit;
  border-radius: 6px; vertical-align: middle;
}
.exam-blank:hover { background: rgba(255,255,255,0.12); }
.exam-blank.active { background: rgba(102,126,234,0.35); box-shadow: 0 0 0 2px #667eea inset; }
.exam-blank--right { color: #4ecdc4; background: rgba(78,205,196,0.16); border-radius: 6px; }
.exam-blank--wrong { color: #ff6b6b; background: rgba(255,107,107,0.16); border-radius: 6px; }
.exam-blank--blank { color: rgba(255,255,255,0.5); }
.exam-blank-val { min-width: 12px; text-align: center; }

/* 交卷后查看答卷：得分横幅 */
.exam-review-score { font-weight: 800; color: #ffd93d; }
.exam-review-banner {
  text-align: center; padding: 8px 12px; margin-bottom: 10px;
  background: rgba(255,217,61,0.12); border: 1px solid rgba(255,217,61,0.35);
  border-radius: 10px; font-weight: 700; color: #ffd93d; font-size: 0.95em;
}
.review-sub { display: block; font-weight: 400; color: rgba(255,255,255,0.6); font-size: 0.8em; margin-top: 3px; }
.tb-btn { padding: 8px 16px; }

.exam-result { max-width: 680px; margin: 0 auto; padding: 20px 16px; text-align: center; }
.exam-result-card { background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)); border: 1px solid rgba(255,255,255,0.16); border-radius: 20px; padding: 28px 20px; }
.exam-result-card.result-good { border-color: rgba(78, 205, 196, 0.6); }
.exam-result-card.result-mid { border-color: rgba(255, 217, 61, 0.6); }
.exam-score-big { font-size: 3.4em; font-weight: 900; }
.exam-score-big small { font-size: 0.45em; color: rgba(255,255,255,0.6); font-weight: 600; }
.exam-score-label { margin-top: 6px; color: rgba(255,255,255,0.85); font-size: 1.05em; }
.exam-bonus-note { margin-top: 8px; font-size: 0.85em; color: rgba(255, 217, 61, 0.85); }
.exam-actions { display: flex; gap: 12px; justify-content: center; margin: 18px 0; }
.exam-wrong-list { text-align: left; }
.exam-wrong-list h3 { font-size: 1.05em; }
.exam-wrong-item { background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.25); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ew-q { font-weight: 600; line-height: 1.5; }
.ew-pts { color: rgba(255,255,255,0.5); font-size: 0.85em; }
.ew-ans { color: #4ecdc4; margin-top: 6px; font-weight: 600; }
.ew-user { color: #ff6b6b; font-weight: 600; }
.ew-go { margin-top: 8px; }
.exam-perfect { font-size: 1.3em; font-weight: 800; color: #4ecdc4; padding: 24px 0; }

/* 打印：只输出"打印纸质试卷"模块的 A4 白纸卷面（整卷多页完整打印） */
@media print {
  body * { visibility: hidden !important; }
  html, body { height: auto !important; overflow: visible !important; }
  #app { height: auto !important; overflow: visible !important; position: static !important; }
  .screen.exam-screen-print, .screen.exam-screen-print * { visibility: visible !important; }
  .screen.exam-screen-print {
    position: static !important; width: 100% !important; height: auto !important;
    overflow: visible !important; padding: 0 !important; background: #fff;
  }
  .exam-print-view { height: auto !important; max-width: 100% !important; padding: 0 !important; }
  .exam-print-view .exam-play-head, .exam-print-view .exam-toolbar { display: none !important; }
  .exam-paper-scroll { overflow: visible !important; height: auto !important; flex: none !important; padding: 0 !important; }
  .exam-paper { box-shadow: none !important; border-radius: 0 !important; padding: 8mm 10mm !important; max-width: 100% !important; color: #000 !important; }
  .paper-question { break-inside: avoid; }
  .paper-section-title { break-after: avoid; }
  .score-table th, .score-table td { border-color: #666 !important; }
  .score-table th { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .paper-option-static { border-color: #666 !important; }
  .paper-end { color: #888 !important; }
}

/* ---------- 期末冲刺横幅 ---------- */
.exam-banner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.25), rgba(246, 109, 155, 0.2));
  border: 1px solid rgba(255, 183, 3, 0.5);
  border-radius: 14px; padding: 12px 16px; cursor: pointer;
  animation: pulse 2s ease-in-out infinite;
}
.eb-emoji { font-size: 1.6em; }
.eb-text { flex: 1; font-weight: 700; }
.eb-go { color: #ffd93d; font-weight: 800; }
.qc-exam { background: linear-gradient(145deg, rgba(255, 183, 3, 0.18), rgba(246, 109, 155, 0.12)); }
.qc-exam .qc-lv { color: #ffd93d; }

/* ---------- 限时口算难度选择 ---------- */
.voyage-pick-tip { color: rgba(255,255,255,0.7); margin: 4px 0 14px; }
.voyage-pick-list { display: flex; flex-direction: column; gap: 10px; }
.voyage-pick-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px; padding: 14px; cursor: pointer; text-align: left; color: #fff; font-family: inherit;
  transition: transform 0.15s, border-color 0.15s;
}
.voyage-pick-item:hover { transform: translateY(-2px); border-color: #4ecdc4; }
.vp-emoji { font-size: 1.8em; }
.vp-main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.vp-name { font-weight: 800; }
.vp-desc { font-size: 0.82em; color: rgba(255,255,255,0.6); }
.vp-best { color: #ffd93d; font-size: 0.85em; font-weight: 700; }

/* ---------- 家长设置：听写词表 ---------- */
.ps-cw-row { flex-direction: column; align-items: stretch; gap: 8px; }
.ps-cw-input { display: flex; gap: 8px; flex-wrap: wrap; }
.ps-cw-input .auth-input { flex: 1; min-width: 120px; }
.ps-cw-add { white-space: nowrap; }
.ps-cw-list { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.ps-cw-item { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.06); border-radius: 10px; padding: 8px 12px; }
.ps-cw-word { font-weight: 800; }
.ps-cw-py { flex: 1; color: rgba(255,255,255,0.6); font-size: 0.9em; }
.ps-cw-del { background: none; border: none; color: #ff6b6b; font-size: 1.1em; cursor: pointer; }
.ps-cw-empty { color: rgba(255,255,255,0.55); font-size: 0.9em; }

/* ---------- 家长报告：本周错题题型 ---------- */
.week-wrong { display: flex; flex-direction: column; gap: 8px; }
.ww-row { display: flex; align-items: center; gap: 10px; }
.ww-tag { min-width: 110px; font-size: 0.9em; font-weight: 600; }
.ww-bar { flex: 1; height: 10px; background: rgba(255,255,255,0.1); border-radius: 5px; overflow: hidden; }
.ww-fill { height: 100%; background: linear-gradient(90deg, #ff6b6b, #ffd93d); border-radius: 5px; }
.ww-n { min-width: 52px; text-align: right; font-size: 0.85em; color: rgba(255,255,255,0.7); }
.ww-advice { margin-top: 8px; color: #ffd93d; font-size: 0.92em; line-height: 1.6; }

@media (max-width: 900px) {
  .home-quick { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .home-quick { grid-template-columns: 1fr; }
  .exam-paper-grid { grid-template-columns: 1fr; }
  .exam-play-title { font-size: 0.92em; }
}
