* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;
  color: #333;
  background: linear-gradient(180deg, #FFF8E1 0%, #FFE0B2 100%);
  min-height: 100vh;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
}
.screen { padding: 8px 0; }

/* 开始页 */
.hero {
  text-align: center;
  margin-top: 12vh;
  background: #fff;
  border-radius: 28px;
  padding: 32px 20px 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.mascot { font-size: 72px; line-height: 1; }
.hero h1 { font-size: 34px; color: #FF7043; margin: 10px 0 6px; }
.hero .tag { font-size: 17px; color: #888; margin: 0 0 18px; }
.hstats { display: flex; justify-content: space-around; margin: 18px 0 22px; }
.hstat { display: flex; flex-direction: column; align-items: center; }
.hstat b { font-size: 24px; color: #FF9800; }
.hstat span { font-size: 14px; color: #999; margin-top: 2px; }
.big-btn { font-size: 24px; padding: 16px 0; width: 80%; }
.hint { font-size: 14px; color: #aaa; margin: 18px 0 0; }

/* 按钮 */
.btn {
  background: #FFB74D;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  padding: 12px 0;
  margin: 8px 0;
  cursor: pointer;
  width: 100%;
}
.btn.primary { background: #4CAF50; }

/* 答题页顶部 */
.topbar {
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.tstat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: bold;
  color: #5D4037;
  cursor: pointer;
}
.tstat span { font-size: 22px; }

/* 题目 */
.question {
  font-size: 60px;
  text-align: center;
  font-weight: bold;
  color: #FF7043;
  margin: 40px 0;
}
.options { display: flex; flex-wrap: wrap; justify-content: space-between; }
.opt {
  width: 48%;
  background: #fff;
  border: 3px solid #FFCC80;
  border-radius: 18px;
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  color: #5D4037;
  padding: 22px 0;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.08s;
}
.opt:active { transform: scale(0.96); }
.opt.right { background: #C8E6C9; border-color: #4CAF50; color: #2E7D32; }
.opt.wrong { background: #FFCDD2; border-color: #E53935; color: #C62828; }
.opt.hint-right { background: #E8F5E9; border-color: #81C784; color: #2E7D32; }
.feedback { text-align: center; font-size: 24px; font-weight: bold; min-height: 30px; margin: 8px 0; }
.feedback.success { color: #2E7D32; }
.feedback.wrong { color: #E53935; }
.next-btn { margin-top: 12px; }

/* 勋章墙 */
.big { text-align: center; font-size: 72px; margin-top: 40px; }
.sub { display: block; text-align: center; color: #666; font-size: 18px; margin-bottom: 26px; }
.list { display: flex; flex-direction: column; }
.mcard { display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 16px; margin: 8px 0; }
.mcard.got { border: 3px solid #FFC107; }
.memoji { font-size: 34px; margin-right: 14px; }
.mtxt { font-size: 18px; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.82);
  color: #fff;
  padding: 14px 24px;
  border-radius: 22px;
  font-size: 20px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999;
  white-space: nowrap;
}
.toast.show { opacity: 1; }

/* 静音开关 */
.mute-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1001;
  width: 46px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  user-select: none;
}

/* 彩带 */
.confetti {
  position: fixed;
  top: -50px;
  z-index: 1000;
  animation: fall 2s linear forwards;
  pointer-events: none;
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}
