/* ===========================================================
   数学小天地 · 闯关塔 1 · 2F 位值银行 + 5F 余数摩天轮 零件样式
   (play-kit-floors.css) —— 接着 play-kit.css 的糖果卡通画风
   bank 位值银行 · change 找零钱柜 · share 分糖剩余篮
   wheel 摩天轮 / 星期转盘 · beads 循环手链 · magic 读心魔术
   =========================================================== */

/* ======================= 🏦 位值银行 ======================= */
.pk-bank { position: relative; }
.pk-bk-sub { text-align: center; font-size: 16px; font-weight: 800; color: var(--pk-muted); line-height: 1.5; }
.pk-bk-counter {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 8px;
  padding: 8px 10px;
  border-radius: 20px;
  border: 2.5px solid var(--pk-ink);
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(184, 116, 42, 0.07) 22px 24px),
    linear-gradient(180deg, #FFF3D6 0%, #FFE6B3 100%);
  box-shadow: var(--pk-shadow);
}
.pk-bank.is-alien .pk-bk-counter {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.6) 0 2px, transparent 3px),
    radial-gradient(circle at 44% 80%, rgba(255, 255, 255, 0.6) 0 1.5px, transparent 2.5px),
    linear-gradient(180deg, #E9E1FF 0%, #D4F5EA 100%);
}
.pk-bk-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-width: 0;
  padding: 7px 6px 8px;
  border-radius: 16px;
  border: 2px solid var(--pk-ink);
  background: var(--pk-cream);
  box-shadow: 3px 3px 0 rgba(46, 41, 78, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}
.pk-bk-col.is-h { background: #F4ECFF; }
.pk-bk-col.is-t { background: #FFF6D2; }
.pk-bk-col.is-o { background: #FFEFF5; }
.pk-bank.is-alien .pk-bk-col.is-h { background: #EDE7FF; }
.pk-bank.is-alien .pk-bk-col.is-t { background: #E2F8FF; }
.pk-bank.is-alien .pk-bk-col.is-o { background: #E5FBEF; }
.pk-bk-col.is-full { animation: pk-breathe 1.1s ease-in-out infinite; border-color: #E2452E; box-shadow: 3px 3px 0 #E2452E; }
.pk-bk-head { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.pk-bk-head b { font-size: 16px; font-weight: 900; line-height: 1.2; }
.pk-bk-head small { font-size: 11.5px; font-weight: 800; color: var(--pk-muted); }
.pk-bk-ico { font-size: 20px; line-height: 1; }
.pk-bk-body {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 74px;
  padding: 5px 4px;
  border-radius: 12px;
  border: 2px dashed rgba(46, 41, 78, 0.25);
  background: rgba(255, 255, 255, 0.6);
}
.pk-bk-empty { align-self: center; margin: auto; color: #B7AFCF; font-weight: 800; font-size: 15px; }
.pk-bk-more { font-size: 12px; font-weight: 900; color: var(--pk-muted); align-self: center; }
.pk-bk-candy {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--pk-ink);
  background: radial-gradient(circle at 35% 30%, #FFE1EE 0 20%, #FF87B2 21% 100%);
  animation: pk-candy-in 0.32s cubic-bezier(.2, 1.5, .4, 1) both;
  animation-delay: calc(var(--i, 0) * 12ms);
}
.pk-bk-candy.is-alien { border-radius: 6px; background: radial-gradient(circle at 35% 30%, #FFFCE0 0 22%, #6FE3B4 23% 100%); }
.pk-bk-pack {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  border-radius: 10px 10px 12px 12px;
  border: 2px solid var(--pk-ink);
  background: linear-gradient(180deg, #FFF0B8 0%, #FFD24A 100%);
  box-shadow: 2px 2px 0 var(--pk-ink);
  animation: pk-candy-in 0.36s cubic-bezier(.2, 1.5, .4, 1) both;
  animation-delay: calc(var(--i, 0) * 26ms);
}
.pk-bk-pack i { font-style: normal; font-size: 17px; line-height: 1; }
.pk-bk-pack small { font-size: 11px; font-weight: 900; line-height: 1; }
.pk-bk-pack.is-h { width: 50px; height: 46px; border-radius: 8px; background: linear-gradient(180deg, #E5D6FF 0%, #B79CFF 100%); }
.pk-bk-pack.is-alien { background: linear-gradient(180deg, #DDF6FF 0%, #7FD3FF 100%); border-radius: 50% 50% 14px 14px; }
.pk-bk-pack.is-h.is-alien { background: linear-gradient(180deg, #F1E6FF 0%, #C8A6FF 100%); }
.pk-bk-digit {
  align-self: center;
  min-width: 54px;
  padding: 1px 10px;
  border-radius: 12px;
  border: 2px solid var(--pk-ink);
  background: #fff;
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 2px 2px 0 var(--pk-ink);
}
.pk-bk-digit.is-over { color: #D2321E; background: #FFE4DE; animation: pk-shake 0.5s ease 1; }
.pk-bk-digit.is-veiled { color: var(--pk-muted); background: transparent; border-style: dashed; }
.pk-bk-alarm { text-align: center; font-size: 14px; font-weight: 900; color: #D2321E; }
.pk-bk-acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.pk-bk-btn {
  min-height: 48px;
  padding: 4px 8px;
  border-radius: 14px;
  border: 2px solid var(--pk-ink);
  background: var(--pk-honey);
  color: var(--pk-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 2px 2px 0 var(--pk-ink);
}
.pk-bk-btn.is-trade { background: linear-gradient(180deg, #FFE98A, #FFC93D); animation: pk-breathe 1.2s ease-in-out infinite; }
.pk-bk-btn.is-break { background: #FFD5C2; }
.pk-bk-btn.is-take { background: #fff; }
.pk-bk-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.pk-bk-pm { display: flex; gap: 8px; justify-content: center; }
.pk-bk-mini {
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  border: 2px solid var(--pk-ink);
  background: #fff;
  color: var(--pk-ink);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--pk-ink);
}
.pk-bk-mini:disabled { opacity: 0.4; box-shadow: none; }
.pk-bk-mini:not(:disabled):active { transform: translate(2px, 2px); box-shadow: none; }
.pk-bk-tray {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 2px dashed var(--pk-ink);
  background: var(--pk-soft-blue);
}
.pk-bk-tray.is-take { background: var(--pk-soft-pink); }
.pk-bk-tray-head { font-size: 17px; font-weight: 900; }
.pk-bk-tray-head b { font-size: 22px; }
.pk-bk-tray-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pk-bk-tray-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid var(--pk-ink);
  background: #fff;
  font-size: 15px;
  font-weight: 900;
}
.pk-bk-tray-cell i { font-style: normal; }
.pk-bk-tray-cell.is-done { opacity: 0.5; text-decoration: line-through; }
.pk-bk-tip { text-align: center; font-size: 16px; font-weight: 900; color: #A15C00; animation: pk-pop-in 0.3s ease; }
.pk-bk-result {
  align-self: center;
  padding: 10px 20px;
  border-radius: 16px;
  border: 2.5px solid var(--pk-ink);
  background: linear-gradient(120deg, #FFF3B0, #FFE08A);
  font-size: 19px;
  font-weight: 900;
  box-shadow: var(--pk-shadow);
}
.pk-bk-result b { font-size: 26px; }
.pk-bk-ans b { min-width: 3ch; display: inline-block; text-align: center; font-variant-numeric: tabular-nums; }
.pk-bk-fly {
  position: absolute;
  z-index: 5;
  margin: 0;
  pointer-events: none;
  animation: none !important;
  transition: transform 0.5s cubic-bezier(.5, -0.2, .4, 1.2), opacity 0.5s ease;
}

/* 计数器（珠子跟着柜台变；紧凑高度确保下方兑换钮落入 768px 首屏） */
.pk-bk-abacus {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 6px 14px 4px;
  border-radius: 16px;
  border: 2px solid var(--pk-ink);
  background: linear-gradient(180deg, #C98A4B, #A86A2F);
  box-shadow: var(--pk-shadow);
}
.pk-bk-rod { position: relative; display: flex; flex-direction: column; align-items: center; width: 64px; }
.pk-bk-rod-stick { position: absolute; top: 0; bottom: 18px; width: 5px; border-radius: 3px; background: #6B4A2B; }
.pk-bk-beads { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 1px; height: 68px; justify-content: flex-start; }
.pk-bk-bead {
  width: 34px;
  height: 7px;
  border-radius: 999px;
  border: 1.5px solid var(--pk-ink);
  animation: pk-candy-in 0.28s cubic-bezier(.2, 1.5, .4, 1) both;
}
.pk-bk-bead.is-h { background: #B79CFF; }
.pk-bk-bead.is-t { background: #FFC93D; }
.pk-bk-bead.is-o { background: #FF87B2; }
.pk-bk-rod small { margin-top: 2px; color: #FFF6E0; font-weight: 900; font-size: 12px; }

/* ======================= 💰 找零钱柜 ======================= */
.pk-change-scene { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.pk-change-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 20px;
  border: 2px solid var(--pk-ink);
  background: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 3px 3px 0 rgba(46, 41, 78, 0.2);
}
.pk-change-bubble span { font-size: 34px; }
.pk-change-need { text-align: center; font-size: 19px; font-weight: 900; }
.pk-change-need b { font-size: 28px; color: #C2410C; }
.pk-cash {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  min-width: 78px;
  height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  border: 2px solid var(--pk-ink);
  background: #CDEFD9;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.55), 2px 2px 0 var(--pk-ink);
  font-weight: 900;
  line-height: 40px;
  color: var(--pk-ink);
}
.pk-cash b { font-size: 22px; }
.pk-cash small { font-size: 12px; }
.pk-cash.is-v100 { background: #FFC9C9; min-width: 92px; }
.pk-cash.is-v50 { background: #B9EBCB; }
.pk-cash.is-v20 { background: #F5D7B4; }
.pk-cash.is-v10 { background: #BFE3FF; }
.pk-cash.is-v5 { background: #E4D3FF; }
.pk-cash.is-coin { min-width: 46px; width: 46px; height: 46px; padding: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF6C8 0 25%, #F5C53A 26% 100%); }
.pk-change-drawer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 12px;
  border-radius: 18px;
  border: 2.5px solid var(--pk-ink);
  background: linear-gradient(180deg, #8B6A4E, #6E5139);
  box-shadow: var(--pk-shadow);
}
.pk-change-pick, .pk-change-back { padding: 3px; border: 0; background: transparent; border-radius: 10px; min-height: 52px; }
.pk-change-pick:disabled { opacity: 0.35; }
.pk-change-pick:not(:disabled):active .pk-cash, .pk-change-back:not(:disabled):active .pk-cash { transform: translate(2px, 2px); box-shadow: none; }
.pk-change-tray { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 12px; border-radius: 18px; border: 2px dashed var(--pk-ink); background: var(--pk-soft-yellow); }
.pk-change-tray-head { font-size: 17px; font-weight: 900; }
.pk-change-tray-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 52px; align-items: center; }
.pk-change-back .pk-cash { animation: pk-candy-in 0.3s cubic-bezier(.2, 1.5, .4, 1) both; }

/* ======================= 🍬 分糖剩余篮 ======================= */
.pk-sh-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.pk-sh-pile, .pk-sh-bags, .pk-sh-basket {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 10px;
  border-radius: 20px;
  border: 2px solid var(--pk-ink);
  box-shadow: 3px 3px 0 rgba(46, 41, 78, 0.18);
}
.pk-sh-pile { background: var(--pk-soft-pink); }
.pk-sh-bags { background: var(--pk-soft-yellow); }
.pk-sh-basket { background: var(--pk-soft-mint); transition: background 0.25s ease; }
.pk-sh-basket.is-bad { background: #FFE0D6; border-color: #D2321E; box-shadow: 3px 3px 0 #D2321E; animation: pk-shake 0.5s ease 1; }
.pk-sh-head { font-size: 16px; font-weight: 900; text-align: center; }
.pk-sh-head b { font-size: 24px; }
.pk-sh-candies { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; align-content: flex-start; min-height: 50px; }
.pk-sh-candy {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--pk-ink);
  background: radial-gradient(circle at 35% 30%, #FFE1EE 0 20%, #FF87B2 21% 100%);
  animation: pk-candy-in 0.3s cubic-bezier(.2, 1.5, .4, 1) both;
  animation-delay: calc(var(--i, 0) * 14ms);
}
.pk-sh-candy.is-rest { background: radial-gradient(circle at 35% 30%, #FFF4C2 0 20%, #FFC94D 21% 100%); }
.pk-sh-candy.is-in { width: 12px; height: 12px; border-width: 1.5px; animation: none; }
.pk-sh-baggrid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pk-sh-bag {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 64px;
  padding: 10px 4px 4px;
  border-radius: 8px 8px 16px 16px;
  border: 2px solid var(--pk-ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFE9A8 100%);
  box-shadow: 2px 2px 0 var(--pk-ink);
  animation: pk-bounce 0.45s ease both;
}
.pk-sh-bag::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 20px;
  height: 10px;
  margin-left: -10px;
  border: 2px solid var(--pk-ink);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.pk-sh-bag i { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; font-style: normal; }
.pk-sh-bag small { font-size: 13px; font-weight: 900; }
.pk-sh-alarm { font-size: 14px; font-weight: 900; color: #D2321E; text-align: center; }

/* ======================= 🎡 摩天轮 / 📅 星期转盘 ======================= */
.pk-wh-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.pk-wh-dial { display: flex; justify-content: center; }
.pk-wh-svg { width: 100%; max-width: 320px; height: auto; overflow: visible; }
.pk-wh-rim { fill: #EAF7FF; stroke: var(--pk-ink); stroke-width: 4; }
.pk-wh-svg.is-week .pk-wh-rim { fill: #FFF6D2; }
.pk-wh-spoke { stroke: #8FA5C8; stroke-width: 3; stroke-dasharray: 4 5; }
.pk-wh-hub { fill: var(--pk-honey); stroke: var(--pk-ink); stroke-width: 3; }
.pk-wh-count { font-size: 24px; font-weight: 900; fill: var(--pk-ink); }
.pk-wh-seat { cursor: pointer; }
.pk-wh-seat circle { fill: #fff; stroke: var(--pk-ink); stroke-width: 3; transition: fill 0.2s ease; }
.pk-wh-seat text { font-size: 20px; font-weight: 900; fill: var(--pk-ink); pointer-events: none; }
.pk-wh-seat.is-on circle { fill: var(--pk-berry); }
.pk-wh-seat.is-on { animation: pk-breathe 0.9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pk-wh-seat.is-ans circle { fill: var(--pk-mint); }
.pk-wh-seat:focus-visible circle { stroke: #2563EB; stroke-width: 5; }
.pk-wh-side { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.pk-wh-meter { display: flex; align-items: baseline; justify-content: center; gap: 6px; font-size: 16px; font-weight: 800; }
.pk-wh-meter b { font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pk-wh-laps { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; }
.pk-wh-laps i { font-style: normal; font-size: 20px; animation: pk-pop-in 0.3s ease both; }
.pk-wh-laps small { font-weight: 900; color: var(--pk-muted); margin-left: 6px; }
.pk-wh-side .pk-go { align-self: stretch; }
.pk-go:disabled { opacity: 0.45; box-shadow: none; }
.pk-wh-ask { text-align: center; font-size: 17px; font-weight: 900; color: #A15C00; animation: pk-pop-in 0.3s ease; }

/* ======================= 📿 循环手链 ======================= */
.pk-bd-pattern { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-weight: 900; font-size: 16px; }
.pk-bd-pattern small { color: var(--pk-muted); }
.pk-bd-bead {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--pk-ink);
  background: #ddd;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.12);
  flex: none;
}
.pk-bd-bead.is-berry { background: radial-gradient(circle at 35% 30%, #FFE1EE 0 20%, #FF6FA3 21% 100%); }
.pk-bd-bead.is-honey { background: radial-gradient(circle at 35% 30%, #FFF6C8 0 20%, #FFC93D 21% 100%); }
.pk-bd-bead.is-mint { background: radial-gradient(circle at 35% 30%, #E6FFF4 0 20%, #3FD39A 21% 100%); }
.pk-bd-bead.is-sky { background: radial-gradient(circle at 35% 30%, #E6F7FF 0 20%, #4BB8F5 21% 100%); }
.pk-bd-bead.is-grape { background: radial-gradient(circle at 35% 30%, #F3EAFF 0 20%, #A57BFF 21% 100%); }
.pk-bd-string {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 14px 12px;
  border-radius: 22px;
  border: 2.5px solid var(--pk-ink);
  background:
    linear-gradient(transparent calc(50% - 1px), #C8BCE6 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    var(--pk-cream);
  box-shadow: var(--pk-shadow);
}
.pk-bd-string.is-empty { background: var(--pk-cream); }
.pk-bd-string .pk-bd-bead { width: 22px; height: 22px; animation: pk-candy-in 0.28s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i, 0) * 18ms); }
.pk-bd-string .pk-bd-bead[data-mark] { outline: 3px solid var(--pk-ink); outline-offset: 3px; transform: scale(1.25); }
.pk-bd-gap { display: inline-block; width: 6px; }
.pk-bd-meter { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 17px; font-weight: 800; }
.pk-bd-meter b { font-size: 26px; font-weight: 900; }
.pk-bd-acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pk-bd-ask, .pk-bd-palette { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; font-weight: 900; font-size: 16px; }
.pk-bd-pick {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  min-height: 64px;
  padding: 8px 6px;
  border-radius: 16px;
  border: 2px solid var(--pk-ink);
  background: #fff;
  color: var(--pk-ink);
  box-shadow: 2px 2px 0 var(--pk-ink);
}
.pk-bd-pick small { font-size: 12px; font-weight: 900; }
.pk-bd-pick:disabled { opacity: 0.45; box-shadow: none; }
.pk-bd-pick:not(:disabled):active { transform: translate(2px, 2px); box-shadow: none; }

/* ======================= 🎩 读心魔术 ======================= */
.pk-magic { background: radial-gradient(120% 80% at 50% 0%, #F3EBFF 0%, transparent 60%); border-radius: 22px; }
.pk-mg-bear {
  padding: 12px 16px;
  border-radius: 20px;
  border: 2px solid var(--pk-ink);
  background: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
  box-shadow: 3px 3px 0 rgba(46, 41, 78, 0.2);
}
.pk-mg-bear.is-reveal { text-align: center; background: linear-gradient(120deg, #FFF3B0, #FFE08A); }
.pk-mg-big { display: inline-block; font-size: 52px; line-height: 1.1; animation: pk-bounce 0.7s ease both; }
.pk-mg-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pk-mg-num, .pk-mg-r {
  min-height: 52px;
  border-radius: 14px;
  border: 2px solid var(--pk-ink);
  background: #fff;
  color: var(--pk-ink);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--pk-ink);
}
.pk-mg-num:active, .pk-mg-r:active { transform: translate(2px, 2px); box-shadow: none; }
.pk-mg-r { min-width: 52px; }
.pk-mg-r.is-on { background: var(--pk-berry); }
.pk-mg-secret { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 900; flex-wrap: wrap; }
.pk-mg-card { font-size: 40px; line-height: 1; }
.pk-mg-peek { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--pk-ink); background: var(--pk-soft-blue); font-weight: 900; color: var(--pk-ink); }
.pk-mg-help { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 16px; border: 2px dashed #B9A8E6; background: rgba(255, 255, 255, 0.7); }
.pk-mg-help > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.pk-mg-dots { display: inline-flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.pk-mg-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--pk-ink); background: #FFC93D; }
.pk-mg-dot.is-alt { background: #FF9FC4; }
.pk-mg-dot.is-rest { background: #fff; border-style: dashed; }
.pk-mg-gap { display: inline-block; width: 8px; }
.pk-mg-choose { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; font-weight: 900; font-size: 17px; }
.pk-mg-table { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; padding: 4px; }
.pk-mg-row { display: grid; grid-template-columns: 84px repeat(5, minmax(48px, 1fr)); gap: 6px; align-items: center; }
.pk-mg-row > b { font-size: 14px; font-weight: 900; }
.pk-mg-row.is-head span { font-size: 12.5px; font-weight: 900; text-align: center; color: var(--pk-muted); }
.pk-mg-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 12px;
  border: 2px solid var(--pk-ink);
  background: #fff;
  color: var(--pk-ink);
  font-size: 22px;
  font-weight: 900;
}
button.pk-mg-cell { background: #F3EBFF; box-shadow: 2px 2px 0 var(--pk-ink); }
button.pk-mg-cell:active { transform: translate(2px, 2px); box-shadow: none; }

/* ======================= 手机 / 减少动画 ======================= */
@media (max-width: 560px) {
  .pk-bk-counter { gap: 5px; padding: 6px 5px; }
  .pk-bk-col { padding: 6px 4px 7px; gap: 4px; }
  .pk-bk-body { min-height: 56px; padding: 4px 2px; }
  .pk-bk-head b { font-size: 14.5px; }
  .pk-bk-head small { font-size: 10.5px; }
  .pk-bk-digit { font-size: 22px; min-width: 44px; }
  .pk-bk-btn { font-size: 12.5px; min-height: 44px; }
  .pk-bk-candy { width: 14px; height: 14px; }
  .pk-bk-pack { width: 30px; height: 34px; }
  .pk-bk-pack.is-h { width: 36px; height: 34px; }
  .pk-bk-abacus { padding: 5px 10px 3px; }
  .pk-bk-beads { height: 64px; }
  .pk-bk-rod { width: 50px; }
  .pk-bk-bead { width: 28px; height: 6.5px; }
  .pk-bk-mini { min-width: 44px; }
  .pk-sh-stage { grid-template-columns: 1fr 1fr; }
  .pk-sh-bags { grid-column: 1 / -1; order: 3; }
  .pk-wh-stage { grid-template-columns: 1fr; }
  .pk-mg-row { grid-template-columns: 64px repeat(5, minmax(40px, 1fr)); }
  .pk-mg-row > b { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-bk-col.is-full, .pk-bk-btn.is-trade, .pk-wh-seat.is-on, .pk-sh-basket.is-bad, .pk-bk-digit.is-over { animation: none; }
  .pk-bk-candy, .pk-bk-pack, .pk-bk-bead, .pk-sh-candy, .pk-sh-bag, .pk-bd-bead, .pk-mg-big { animation: none; }
}

/* 位值银行补充：每满一组换一行、计数器穿不下、飞行包裹 */
.pk-bk-br { flex-basis: 100%; height: 0; }
.pk-bk-rod.is-over .pk-bk-rod-stick { background: #D2321E; }
.pk-bk-rod-over {
  position: absolute;
  top: -6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 2px solid var(--pk-ink);
  background: #FFE4DE;
  color: #D2321E;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  animation: pk-shake 0.5s ease 1;
}
.pk-bk-fly.is-hero {
  transition: transform 0.6s cubic-bezier(.45, -0.35, .35, 1.35), opacity 0.25s ease;
  box-shadow: 0 0 0 6px rgba(255, 217, 90, 0.55), 3px 3px 0 var(--pk-ink);
}
.pk-bk-fly.is-burst { opacity: 0; transform: scale(1.8) !important; transition: transform 0.25s ease, opacity 0.25s ease; }
.pk-bk-candy.is-still, .pk-bk-pack.is-still, .pk-sh-candy.is-still, .pk-sh-bag.is-still, .pk-bd-bead.is-still { animation: none; }
.pk-sh-pile.is-claim { background: #fff; justify-content: center; }
.pk-sh-claim { font-size: 16px; font-weight: 800; line-height: 1.55; text-align: center; padding: 8px 10px; border-radius: 14px; background: var(--pk-soft-blue); border: 2px solid var(--pk-ink); }
.pk-sh-claim b { font-size: 20px; }
.pk-sh-claim-q { font-size: 14px; font-weight: 900; color: var(--pk-muted); }
.pk-sh-stage .pk-go { font-size: 16px; min-height: 52px; padding: 6px 16px; line-height: 1.3; }
.pk-wh-leg { stroke: var(--pk-ink); stroke-width: 6; stroke-linecap: round; fill: none; }
.pk-wh-ground { stroke: #7FC99A; stroke-width: 8; stroke-linecap: round; }
.pk-wh-tag { font-size: 13px; font-weight: 900; fill: #7A4FD6; }

/* 作品墙：位值银行出的题、手链出的题 */
.sn-work-bank { display: flex; gap: 6px; justify-content: center; }
.sn-work-bank span { display: flex; flex-direction: column; align-items: center; min-width: 40px; padding: 4px 6px; border-radius: 10px; border: 2px solid var(--pk-ink); background: #FFF6D2; }
.sn-work-bank i { font-style: normal; font-size: 16px; }
.sn-work-bank b { font-size: 20px; font-weight: 900; }
.sn-work-bank small { font-size: 11px; font-weight: 800; }
.sn-work-beads { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; align-items: center; max-width: 150px; }
.sn-work-beads .pk-bd-bead { width: 16px; height: 16px; }
.sn-work-beads em { font-style: normal; font-weight: 900; }
/* 五层楼的小熊委托：自动排成几列 */
.sn-quest-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ---------- 2F / 5F 发现回放小图补充 ---------- */
.dz-dot.is-mint { fill: #7BE8BB; }
.dz-dot.is-sky { fill: #8ED6FF; }
.dz-ring { fill: none; stroke: var(--pk-ink); stroke-width: 2.4; stroke-dasharray: 5 4; opacity: 0.55; }

/* ---------- 位值银行 · 十格框（每 10 个装一框，外星银行每 5 个） ---------- */
.pk-bk-body { gap: 6px; }
.pk-bk-frame {
  --cell: 18px;
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(5, var(--cell));
  gap: 3px;
  padding: 5px;
  border-radius: 10px;
  border: 2px dashed rgba(46, 41, 78, 0.28);
  background: rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pk-bk-frame.is-t, .pk-bk-frame.is-h { --cell: 28px; }
.pk-bk-frame.is-full { border: 2px solid #E8A21A; background: #FFF4CC; box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.35); }
.pk-bank.is-alien .pk-bk-frame.is-full { border-color: #2FB884; background: #E3FBEF; box-shadow: 0 0 0 3px rgba(111, 227, 180, 0.35); }
.pk-bk-frame .pk-bk-candy { width: var(--cell); height: var(--cell); }
.pk-bk-frame .pk-bk-pack, .pk-bk-frame .pk-bk-pack.is-h { width: var(--cell); height: calc(var(--cell) + 2px); border-radius: 7px; box-shadow: 1px 1px 0 var(--pk-ink); }
.pk-bk-frame .pk-bk-pack i { font-size: 13px; }
.pk-bk-frame .pk-bk-pack small { font-size: 9px; }
.pk-bk-slot { width: var(--cell); height: var(--cell); border-radius: 50%; border: 1.5px dashed rgba(46, 41, 78, 0.22); box-sizing: border-box; }
.pk-bk-frame.is-t .pk-bk-slot, .pk-bk-frame.is-h .pk-bk-slot { border-radius: 7px; height: calc(var(--cell) + 2px); }
.pk-bk-frame-tag {
  position: absolute;
  top: -9px;
  right: -6px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1.5px solid var(--pk-ink);
  background: #FFC94D;
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  line-height: 16px;
  animation: pk-pop-in 0.3s ease;
}
.pk-bank.is-alien .pk-bk-frame-tag { background: #7BE8BB; }
@media (max-width: 560px) {
  .pk-bk-frame { --cell: 12px; gap: 2px; padding: 3px; }
  .pk-bk-frame.is-t, .pk-bk-frame.is-h { --cell: 15px; }
  .pk-bk-frame .pk-bk-pack i { font-size: 9px; }
  .pk-bk-frame .pk-bk-pack small { display: none; }
  .pk-bk-frame-tag { font-size: 9px; line-height: 13px; top: -7px; }
}

/* ---------- 循环手链 · 一组一个小胶囊，下面写“串到第几颗” ---------- */
.pk-bd-string { gap: 10px 8px; padding: 14px 12px 10px; background: var(--pk-cream); }
.pk-bd-grp {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 2px solid rgba(46, 41, 78, 0.18);
  background:
    linear-gradient(transparent calc(50% - 1px), #C8BCE6 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    #fff;
}
.pk-bd-grp.is-part { border-style: dashed; }
.pk-bd-grp em {
  position: absolute;
  left: 50%;
  bottom: -17px;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: var(--pk-muted);
  font-variant-numeric: tabular-nums;
}
.pk-bd-slot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed rgba(46, 41, 78, 0.25); box-sizing: border-box; background: #fff; }
.pk-bd-more { font-weight: 900; color: var(--pk-muted); }
.pk-bd-target {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px dashed #E2452E;
  background: #FFF1EC;
  font-size: 14px;
  font-weight: 900;
  color: #B4351F;
}
.pk-bd-target b { font-size: 16px; }
@media (max-width: 560px) {
  .pk-bd-string { gap: 8px 5px; padding: 10px 6px 8px; }
  .pk-bd-grp { padding: 3px 4px; }
  .pk-bd-string .pk-bd-bead, .pk-bd-slot { width: 16px; height: 16px; }
}

/* ---------- 分糖剩余篮 · 第一袋一颗一颗装 ---------- */
.pk-sh-candy.is-rest { background: radial-gradient(circle at 35% 30%, #FFE1EE 0 20%, #FF87B2 21% 100%); }
button.pk-sh-candies.is-tap {
  width: 100%;
  padding: 8px;
  border: 2.5px dashed #FF87B2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font: inherit;
  animation: pk-breathe 1.4s ease-in-out infinite;
}
button.pk-sh-candies.is-tap:active { transform: scale(0.97); }
.pk-sh-tip { text-align: center; font-size: 14px; font-weight: 900; color: #C9417A; }
.pk-sh-bag.is-open { border-style: dashed; background: #fff; animation: pk-breathe 1.4s ease-in-out infinite; }
.pk-sh-hole { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px dashed rgba(46, 41, 78, 0.35); box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  button.pk-sh-candies.is-tap, .pk-sh-bag.is-open { animation: none; }
}
.pk-change-tip { text-align: center; font-size: 13px; font-weight: 800; color: var(--pk-muted); margin-top: 4px; }
.pk-wh-seat.is-today circle { stroke: #E8A21A; stroke-width: 4.5; }
.pk-wh-today { fill: #C26A00; font-weight: 900; }

/* ======================= 先想后看：选错的变灰划掉 ======================= */
.pk-wh-seat.is-wrong { cursor: default; opacity: 0.4; }
.pk-wh-seat.is-wrong circle { fill: #E8E4DA; }
.pk-wh-seat.is-wrong text { text-decoration: line-through; }
.pk-bd-pick.is-wrong { opacity: 0.4; box-shadow: none; }
.pk-bd-pick.is-wrong small { text-decoration: line-through; }
.pk-sh-think { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pk-sh-think-pick {
  min-height: 52px;
  min-width: 112px;
  padding: 6px 16px;
  border-radius: 16px;
  border: 2.5px solid var(--pk-ink);
  background: #fff;
  color: var(--pk-ink);
  font-size: 19px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--pk-ink);
}
.pk-sh-think-pick:not(:disabled):active { transform: translate(2px, 2px); box-shadow: none; }
.pk-sh-think-pick.is-wrong { opacity: 0.45; text-decoration: line-through; box-shadow: none; }

/* ======================= 第三轮打磨：动画、示范、提示条 ======================= */
/* 飞行中的复制品挂在 body 上（用屏幕坐标），飞到哪里就消失在哪里 */
.pk-fx-clone { position: fixed; margin: 0; z-index: 9999; pointer-events: none; box-sizing: border-box; animation: none !important; transition: none !important; }
/* 真实节点从别处滑进来时，浮在别的东西上面 */
.pk-fx-up { position: relative; z-index: 6; }

/* 提示条只在内容变化时弹一下；小键盘每按一个数字不再重新弹 */
.pk-card .pk-note.is-still { animation: none; }
.pk-card .pk-bk-rod-over.is-still, .pk-card .pk-wh-ask.is-still, .pk-card .pk-sh-basket.is-calm,
.pk-bk-bead.is-still, .pk-wh-laps i.is-still, .pk-wh-row.is-still,
.pk-change-back.is-still .pk-cash { animation: none; }

/* 示范进行中：键盘先锁住，孩子看完再写 */
.pk-card.is-demo .tp-calc-panel { pointer-events: none; opacity: 0.65; }

/* 报数小标签（头顶浮出 3、6、9……） */
.pk-bk-col, .pk-sh-bag, .pk-sh-basket, .pk-change-back { position: relative; }
.pk-demo-tag {
  position: absolute;
  left: 50%;
  top: -20px;
  z-index: 7;
  transform: translateX(-50%);
  padding: 0 9px;
  border-radius: 999px;
  border: 2px solid var(--pk-ink);
  background: #E3FBEF;
  color: #127A52;
  font-size: 19px;
  font-weight: 900;
  line-height: 26px;
  white-space: nowrap;
  pointer-events: none;
  animation: pk-tag-in 0.34s cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes pk-tag-in { from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.7); } to { opacity: 1; transform: translateX(-50%); } }

/* 「?」翻出数字 */
.pk-bk-digit.is-reveal, .pk-bk-result b.is-reveal { display: inline-block; animation: pk-reveal 0.62s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pk-reveal {
  0% { transform: rotateX(90deg) scale(0.6); color: #2E294E; }
  55% { transform: rotateX(0) scale(1.28); color: #1B9E6B; }
  100% { transform: none; }
}

/* 位值银行：托盘在柜台上方 */
.pk-bank .pk-bk-tray { gap: 6px; padding: 7px 10px; }
.pk-bk-tray-cell { transition: opacity 0.2s ease; }

/* 分糖：示范里被数到的糖 */
.pk-sh-candy.is-count { box-shadow: 0 0 0 3px #7BE8BB; }

/* 摩天轮：金色指针沿着座舱滑；示范里每转一圈记一笔 */
.pk-wh-rider { fill: none; stroke: #E8A21A; stroke-width: 5; pointer-events: none; }
.pk-wh-demo { display: flex; flex-direction: column; gap: 6px; }
.pk-wh-row {
  padding: 6px 12px;
  border-radius: 12px;
  border: 2px solid var(--pk-ink);
  background: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 2px 2px 0 rgba(46, 41, 78, 0.2);
  animation: pk-pop-in 0.34s cubic-bezier(.2, 1.4, .4, 1);
}

/* 手链：示范里一组一组框出来 */
.pk-bd-grp { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.pk-bd-grp.is-hi {
  border-color: #E8A21A;
  box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.5);
  background:
    linear-gradient(transparent calc(50% - 1px), #C8BCE6 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    #FFF4CC;
}
.pk-bd-grp.is-hi em { color: #A15C00; }
.pk-bd-bead.is-lit { outline: 3px solid #E8A21A; outline-offset: 2px; }

/* 读心魔术：示范里圈点子、走一行再走一列 */
.pk-mg-dot { transition: box-shadow 0.2s ease; }
.pk-mg-dot.is-hi { box-shadow: 0 0 0 3px #7BE8BB; }
.pk-mg-dot.is-pulse { border-color: #D2321E; animation: pk-dot-pulse 0.6s ease-in-out 3; }
@keyframes pk-dot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.pk-mg-cell.is-line { background: #FFF1B8; }
.pk-mg-cell.is-cross { background: #7BE8BB; box-shadow: 0 0 0 3px var(--pk-ink); }

/* 找零钱柜：往上数的小气泡、能换成大钱的小钱 */
.pk-change-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; min-height: 46px; }
.pk-chg-chip {
  padding: 4px 14px;
  border-radius: 999px;
  border: 2px solid var(--pk-ink);
  background: #fff;
  font-size: 20px;
  font-weight: 900;
  opacity: 0;
}
.pk-chg-chip.is-plus { background: #FFF1B8; border-style: dashed; color: #A15C00; }
.pk-chg-chip.is-on { opacity: 1; animation: pk-chip-in 0.36s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pk-chip-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.pk-change-back.is-merge .pk-cash { box-shadow: 0 0 0 4px #7BE8BB, 2px 2px 0 var(--pk-ink); }

@media (max-width: 560px) {
  .pk-demo-tag { font-size: 16px; line-height: 22px; top: -17px; }
  .pk-wh-row { font-size: 14px; padding: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-bk-digit.is-reveal, .pk-bk-result b.is-reveal, .pk-demo-tag, .pk-chg-chip.is-on, .pk-wh-row, .pk-mg-dot.is-pulse { animation: none; }
  .pk-chg-chip { opacity: 1; }
}
