/* ============================================================
   加法小课堂 · 10 以内加法
   版式：单列，算式板是主角，下面三个大按钮；底部是得分条
   ============================================================ */

@font-face {
  font-family: 'Baloo2';
  src: url('fonts/baloo2-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 卡通描边色 */
  --ink: #20304f;
  --ink-soft: #42557f;

  /* 天空与草地 */
  --sky-1: #7ed2ff;
  --sky-2: #d9f4ff;
  --sky-3: #eafbff;
  --grass-1: #a8eab0;
  --grass-2: #7ddb92;

  /* 奶油卡片 */
  --cream: #fffcee;
  --cream-2: #fff2cd;

  /* 主题色 */
  --yellow: #ffd84d;
  --yellow-2: #ffb01f;
  --pink: #ff77a9;
  --teal: #3fd6c2;
  --purple: #a98bff;
  --orange: #ff9f45;
  --green: #7ddb92;

  /* 屏幕 */
  --screen-1: #2c3768;
  --screen-2: #161d3d;
  --num: #ffef9a;

  --radius: 30px;
  --bw: 4px;
  --hard: 0 9px 0 var(--ink);
  --soft: 0 18px 32px rgba(32, 48, 79, .16);

  --font: 'Baloo2', 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei',
    'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 46%, var(--sky-3) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

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

:focus-visible {
  outline: 4px solid var(--purple);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   背景
   ============================================================ */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sun {
  position: absolute;
  top: -40px;
  right: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fff6b8 0%, var(--yellow) 48%, var(--orange) 100%);
  border: var(--bw) solid var(--ink);
  box-shadow: 0 7px 0 rgba(32, 48, 79, .18);
}

.sun::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 8px dashed rgba(255, 216, 77, .85);
  animation: spin 44s linear infinite;
}

.cloud {
  position: absolute;
  width: 168px;
  height: auto;
  fill: #ffffff;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linejoin: round;
  opacity: .96;
  filter: drop-shadow(0 8px 0 rgba(32, 48, 79, .08));
}

.cloud--1 { top: 8%;  left: -26px; width: 128px; animation: drift 26s ease-in-out infinite; }
.cloud--2 { top: 21%; right: -34px; width: 104px; animation: drift 34s ease-in-out infinite reverse; }
.cloud--3 { top: 43%; left: -52px; width: 92px; opacity: .72; animation: drift 40s ease-in-out infinite; }

/* 漂浮的数学符号 */
.deco {
  position: absolute;
  font-weight: 800;
  color: rgba(255, 255, 255, .75);
  text-shadow: 0 3px 0 rgba(32, 48, 79, .16);
  animation: floaty 7s ease-in-out infinite;
  user-select: none;
}

.deco--1 { top: 16%; left: 8%;   font-size: 46px; animation-duration: 8s; }
.deco--2 { top: 62%; right: 9%;  font-size: 54px; animation-duration: 9.5s; animation-delay: -2s; }
.deco--3 { top: 34%; right: 16%; font-size: 38px; animation-duration: 7.5s; animation-delay: -4s; color: rgba(255, 255, 255, .6); }
.deco--4 { top: 74%; left: 14%;  font-size: 40px; animation-duration: 10s;  animation-delay: -1s; }
.deco--5 { top: 8%;  left: 58%;  font-size: 34px; animation-duration: 8.5s; animation-delay: -5s; color: rgba(255, 255, 255, .55); }

.hill {
  position: absolute;
  left: -10%;
  width: 120%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hill--back {
  bottom: 1%;
  height: min(13vh, 132px);
  background: var(--grass-1);
  border-top: var(--bw) solid var(--ink);
  border-radius: 48% 52% 0 0 / 100% 100% 0 0;
  opacity: .95;
}

.hill--front {
  bottom: -9%;
  height: min(11vh, 110px);
  background: var(--grass-2);
  border-top: var(--bw) solid var(--ink);
  border-radius: 58% 42% 0 0 / 100% 100% 0 0;
}

/* ============================================================
   骨架：顶栏 · 题板（居中） · 得分条（贴底）
   ============================================================ */

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  min-height: 100vh;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + 10px)
    calc(env(safe-area-inset-right, 0px) + 12px)
    calc(env(safe-area-inset-bottom, 0px) + 12px)
    calc(env(safe-area-inset-left, 0px) + 12px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: clamp(17px, 4.6vw, 22px);
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-shadow:
    0 2px 0 var(--ink),
    0 3px 0 var(--ink),
    2px 2px 0 var(--ink),
    -2px 2px 0 var(--ink),
    0 8px 14px rgba(32, 48, 79, .22);
}

.brand-emoji {
  font-size: 1.1em;
  filter: drop-shadow(0 2px 2px rgba(32, 48, 79, .25));
  animation: wiggle 3.6s ease-in-out infinite;
}

.sound-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 5px 0 var(--ink);
  font-size: 19px;
  line-height: 1;
  transition: transform .12s ease, box-shadow .12s ease, background .18s ease;
}

.sound-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.sound-btn[aria-pressed="false"] { background: #ffe1e9; }
.sound-ico { display: block; transform: translateY(-1px); }

/* ============================================================
   题板
   ============================================================ */

.machine {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: auto 0;
  padding: 14px 13px 14px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hard), var(--soft);
}

.antenna {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 8px;
  height: 26px;
  margin-left: -4px;
  background: var(--ink);
  border-radius: 6px;
}

.antenna::after {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff8cf, var(--pink) 72%);
  border: var(--bw) solid var(--ink);
  transform-origin: 50% 130%;
  animation: swing 2.8s ease-in-out infinite;
}

/* ---- 深色算式板 ---- */
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: clamp(230px, 38vh, 400px);
  padding: 16px 12px 46px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(124, 146, 255, .34) 0%, rgba(124, 146, 255, 0) 62%),
    linear-gradient(180deg, var(--screen-1) 0%, var(--screen-2) 100%);
  border: var(--bw) solid var(--ink);
  border-radius: 26px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .28), inset 0 8px 18px rgba(0, 0, 0, .32);
  overflow: hidden;
  container-type: size;
}

.glare {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 62%;
  height: 90%;
  background: linear-gradient(150deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, 0));
  border-radius: 50%;
  transform: rotate(-16deg);
  pointer-events: none;
}

.bolt {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  border: 2px solid rgba(255, 255, 255, .45);
}

.bolt--tl { top: 9px; left: 10px; }
.bolt--tr { top: 9px; right: 10px; }
.bolt--bl { bottom: 9px; left: 10px; }
.bolt--br { bottom: 9px; right: 10px; }

/* 英文题目（小字，和朗读内容对应） */
.en {
  position: relative;
  z-index: 1;
  margin: 0 0 2px;
  min-height: 1.05em;
  font-size: clamp(13px, 3.2vh, 24px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .06em;
  color: #ffe6a0;
  opacity: .9;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .38);
}

@supports (container-type: size) {
  .en { font-size: max(12px, min(6.6cqh, 8.4cqw)); }
}

/* 算式：3 + 4 = ? */
.equation {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 18px);
  font-weight: 800;
  line-height: 1;
  font-size: clamp(40px, 12vw, 108px);   /* 不支持容器查询时的兜底 */
  color: var(--num);
}

@supports (container-type: size) {
  .equation { font-size: min(24cqh, 17cqw); }
}

.tok,
.slot {
  display: inline-grid;
  place-items: center;
  text-shadow: 0 5px 0 rgba(0, 0, 0, .42), 0 0 30px rgba(255, 226, 120, .45);
}

.tok.is-new { animation: tokPop .5s cubic-bezier(.34, 1.56, .64, 1) both; }

.op {
  color: #8fe3ff;
  font-size: .78em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .4);
  transform: translateY(-.04em);
}

.slot {
  min-width: 1.16em;
  height: 1.02em;
  padding: 0 .04em;
  color: #ffe9b0;
  background: rgba(255, 255, 255, .07);
  border: 3px dashed rgba(255, 238, 150, .55);
  border-radius: .18em;
  animation: slotPulse 1.8s ease-in-out infinite;
}

.slot.is-filled {
  color: #b8ffcf;
  background: rgba(125, 219, 146, .16);
  border-style: solid;
  border-color: #7ddb92;
  animation: none;
}

.replay {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  background: #fff3cf;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .3);
  transform: translateX(-50%);
  transition: transform .12s ease, box-shadow .12s ease, background .18s ease;
  white-space: nowrap;
}

.replay:active { transform: translate(-50%, 3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.replay:hover { background: #fffbe8; }

.screen.is-flash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(255, 238, 150, .5), rgba(255, 238, 150, 0) 68%);
  animation: flash .7s ease-out forwards;
  pointer-events: none;
}

.screen.is-bad::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(255, 119, 169, .45), rgba(255, 119, 169, 0) 70%);
  animation: flash .6s ease-out forwards;
  pointer-events: none;
}

/* ---- 三个选项 ---- */
.options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 2.4vw, 14px);
  width: 100%;
}

.option {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(64px, 9vh, 104px);
  padding: 4px;
  font-weight: 800;
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 7px 0 var(--ink), 0 12px 18px rgba(32, 48, 79, .16);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease, background .2s ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.option:nth-child(1) { background: linear-gradient(180deg, #c6f3ff 0%, #7ee0ff 100%); }
.option:nth-child(2) { background: linear-gradient(180deg, #ffe680 0%, var(--yellow) 100%); }
.option:nth-child(3) { background: linear-gradient(180deg, #d6c8ff 0%, var(--purple) 100%); }

.option-num {
  font-size: clamp(32px, 9vw, 58px);
  line-height: 1;
  text-shadow: 0 3px 0 rgba(255, 255, 255, .55);
}

.option:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 9px 0 var(--ink), 0 14px 20px rgba(32, 48, 79, .18); }

.option:active:not(:disabled) {
  transform: translateY(5px);
  box-shadow: 0 2px 0 var(--ink), 0 6px 10px rgba(32, 48, 79, .16);
}

.option:disabled { cursor: default; }

.option.is-correct {
  background: linear-gradient(180deg, #b8f7c6 0%, var(--green) 100%);
  animation: hop .6s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 7px 0 var(--ink), 0 0 0 6px rgba(125, 219, 146, .45), 0 14px 22px rgba(32, 48, 79, .18);
}

.option.is-wrong {
  background: linear-gradient(180deg, #ffb9cf 0%, #ff7fa8 100%);
  animation: shakeX .46s cubic-bezier(.36, .07, .19, .97);
  box-shadow: 0 7px 0 var(--ink), 0 0 0 6px rgba(255, 127, 168, .35);
}

.option.is-faded { opacity: .45; }

/* 答对时从按钮上冒出来的 +1 */
.plus-one {
  position: fixed;
  z-index: 70;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 3px 0 var(--ink), 0 0 16px rgba(255, 216, 77, .9);
  pointer-events: none;
  animation: rise 1s ease-out forwards;
}

/* ============================================================
   得分条
   ============================================================ */

.scorebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 11px 11px;
  background: var(--cream);
  border: var(--bw) solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink), 0 12px 20px rgba(32, 48, 79, .14);
}

.scorebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scorebar-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  vertical-align: middle;
  font-size: 14px;
  color: var(--ink);
  background: var(--teal);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
}

.reset {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .18s ease;
}

.reset:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

.stars {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 1px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent 100%);
}

.stars::-webkit-scrollbar { display: none; }

.star {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 16px;
  font-weight: 800;
  border: 3px solid var(--ink);
  border-radius: 11px;
  box-shadow: 0 3px 0 var(--ink);
  animation: chipPop .42s cubic-bezier(.34, 1.56, .64, 1) both;
}

.star--ok { background: #b8f7c6; color: #1d6b34; }
.star--no { background: #ffc6d8; color: #971540; }

.stars-empty {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: rgba(32, 48, 79, .45);
}

/* ============================================================
   Toast / 彩带
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  z-index: 60;
  max-width: min(88vw, 400px);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--ink);
  transform: translate(-50%, 160%);
  opacity: 0;
  pointer-events: none;
  transition: transform .34s cubic-bezier(.34, 1.4, .64, 1), opacity .22s ease;
}

.toast.is-show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 55;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============================================================
   动画
   ============================================================ */

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(26px, -12px, 0); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

@keyframes swing {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(9deg); }
}

@keyframes wiggle {
  0%, 88%, 100% { transform: rotate(0); }
  91% { transform: rotate(-11deg); }
  95% { transform: rotate(9deg); }
}

@keyframes tokPop {
  0% { transform: scale(.3) rotate(-12deg); opacity: 0; }
  62% { transform: scale(1.16) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes slotPulse {
  0%, 100% { transform: scale(1); border-color: rgba(255, 238, 150, .5); }
  50% { transform: scale(1.06); border-color: rgba(255, 238, 150, .95); }
}

@keyframes hop {
  0% { transform: translateY(0) scale(1); }
  38% { transform: translateY(-12px) scale(1.06); }
  70% { transform: translateY(2px) scale(.98); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes shakeX {
  10%, 90% { transform: translateX(-3px); }
  20%, 80% { transform: translateX(5px); }
  30%, 50%, 70% { transform: translateX(-7px) rotate(-1deg); }
  40%, 60% { transform: translateX(7px) rotate(1deg); }
}

@keyframes flash {
  0% { opacity: 0; }
  22% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes chipPop {
  0% { transform: scale(.3) rotate(-14deg); opacity: 0; }
  70% { transform: scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes rise {
  0% { transform: translate(-50%, 0) scale(.6); opacity: 0; }
  22% { transform: translate(-50%, -14px) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -74px) scale(1); opacity: 0; }
}

@keyframes shakeMachine {
  10%, 90% { transform: translateX(-3px) rotate(-.4deg); }
  20%, 80% { transform: translateX(5px) rotate(.5deg); }
  30%, 50%, 70% { transform: translateX(-7px) rotate(-.7deg); }
  40%, 60% { transform: translateX(7px) rotate(.7deg); }
}

.machine.is-shaking { animation: shakeMachine .46s cubic-bezier(.36, .07, .19, .97); }

/* ============================================================
   响应式
   ============================================================ */

/* 矮一点的手机：压缩留白，题板仍然尽量大 */
@media (max-height: 700px) {
  .stage { gap: 8px; }
  .machine { gap: 9px; padding: 11px 11px 11px; }
  .screen { height: clamp(200px, 36vh, 320px); padding: 12px 10px 40px; }
  .option { min-height: clamp(56px, 8.4vh, 88px); }
  .stars { min-height: 30px; }
  .star { width: 30px; height: 30px; font-size: 14px; border-radius: 10px; }
  .brand { font-size: 16px; }
}

/* 平板 / 桌面：更宽的题板 → 更大的算式与按钮 */
@media (min-width: 700px) {
  .stage {
    max-width: 720px;
    padding: 22px 24px 20px;
    gap: 14px;
  }
  .machine { padding: 18px 18px 18px; gap: 16px; }
  .screen { height: clamp(300px, 44vh, 470px); padding: 20px 16px 48px; border-radius: 30px; }
  .en { font-size: clamp(16px, 2.6vh, 26px); }
  .option { min-height: clamp(84px, 11vh, 118px); border-radius: 26px; }
  .option-num { font-size: clamp(44px, 6.4vh, 64px); }
  .replay { font-size: 14px; padding: 6px 16px; bottom: 12px; }
  .scorebar { padding: 10px 14px 12px; border-radius: 24px; }
  .scorebar-head h2 { font-size: 16px; }
  .stars { min-height: 40px; }
  .star { width: 40px; height: 40px; font-size: 18px; border-radius: 13px; }
  .reset { font-size: 13px; padding: 5px 14px; }
}

@media (min-width: 1100px) {
  .stage { max-width: 900px; }
  .screen { height: clamp(340px, 48vh, 520px); }
}

/* 横屏（矮屏）：横向空间大，题板尽量高，按钮压扁一点 */
@media (max-height: 540px) and (orientation: landscape) {
  .stage {
    max-width: 720px;
    padding: 4px 14px 4px;
    gap: 5px;
  }
  .topbar { padding: 0; }
  .brand { font-size: 15px; }
  .sound-btn { width: 32px; height: 32px; font-size: 14px; }
  .machine { padding: 6px 12px; gap: 6px; }
  .antenna { display: none; }
  .screen { height: clamp(150px, 46vh, 240px); padding: 8px 10px 28px; border-radius: 20px; }
  .equation { font-size: min(42cqh, 16cqw); }
  .en { font-size: 13px; margin-bottom: 0; }
  .replay { bottom: 4px; font-size: 11px; padding: 2px 10px; }
  .option { min-height: clamp(44px, 13vh, 66px); border-radius: 16px; }
  .option-num { font-size: clamp(26px, 7vh, 36px); }
  .scorebar { padding: 3px 10px 5px; gap: 3px; border-radius: 18px; }
  .scorebar-head h2 { font-size: 12px; }
  .count { min-width: 22px; height: 22px; font-size: 12px; }
  .reset { font-size: 11px; padding: 3px 10px; }
  .stars { min-height: 24px; }
  .star { width: 26px; height: 26px; font-size: 12px; border-radius: 9px; }
  .deco { display: none; }
}

/* 尊重系统的减少动态效果设置 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
