/*
 * GOAL-COLLECT-1 S3b — Collect 场景样式（cr- 前缀，防与 app.css 冲突）。
 * 视觉迁移自 docs/goals/goal-collect-1/mockups/collect-round.html（拍板 Demo）。
 * 色彩接 tokens.css 既有 token；CSP style-src 'self' 兼容：字母色彩/旋转/抬升/深度
 * 走 class（c0-5 / r0-6 / l0-4 / d0-2），--i/--word-delay/animation-delay 走 nth-child。
 */

.cr-stage {
  --cr-bg1: #123f34;
  --cr-bg2: #0b2e28;
  --cr-ground: var(--sproutly-color-leaf, #1c6a4f);
  --cr-ground2: var(--sproutly-color-leaf-deep, #14513e);
  --cr-ink: var(--foundation-color-ink, #173c31);
  --cr-deep: var(--sproutly-color-leaf-deep, #15493a);
  --cr-cream: #fff7e2;
  --cr-paper: var(--foundation-color-surface, #fffdf7);
  --cr-lime: var(--sproutly-color-growth, #d9ef7a);
  --cr-sun: var(--sproutly-color-attention, #ffd76b);
  --cr-sky: var(--sproutly-color-pause, #8ecfd8);
  --cr-pink: #e59aa8;
  --cr-violet: #9d92cb;
  --cr-orange: #e7aa62;
  --cr-outline: #f8f2dc;
  --cr-shadow: #08352c;
  --cr-ease: var(--foundation-motion-ease-out, cubic-bezier(.18, 1, .32, 1));
  --cr-font: var(--sproutly-font-family-kid, ui-rounded, "Arial Rounded MT Bold", "Segoe UI Rounded", "Segoe UI", system-ui, sans-serif);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--cr-font);
  color: var(--cr-ink);
  /* S3b-2 集成修正：舞台需要自身高度（全部子元素绝对定位，否则书包锚底塌出视口） */
  min-height: min(820px, calc(100dvh - 148px));
  border-radius: 24px;
}
@media (max-width: 760px) {
  .cr-stage { min-height: calc(100dvh - 178px); border-radius: 18px; }
}

.cr-root {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, .06), transparent 24%),
    radial-gradient(circle at 12% 14%, rgba(217, 239, 122, .08), transparent 22%),
    radial-gradient(circle at 84% 16%, rgba(255, 215, 107, .07), transparent 18%),
    radial-gradient(ellipse at 50% 82%, rgba(52, 130, 92, .22), transparent 34%),
    linear-gradient(180deg, var(--cr-bg1), var(--cr-bg2));
}
.cr-root::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, .14) 0 1px, transparent 1.8px),
    radial-gradient(circle at 60% 20%, rgba(255, 255, 255, .1) 0 1px, transparent 1.6px);
  background-size: 34px 34px, 47px 47px;
  mix-blend-mode: soft-light;
}
.cr-root::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 126px;
  transform: translateX(-50%);
  width: 540px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(7, 38, 31, .28), rgba(7, 38, 31, 0) 72%);
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

.cr-ground {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -16%;
  height: 42%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #227454, var(--cr-ground));
  z-index: -1;
  transform: rotate(-1deg);
}
.cr-ground::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9%;
  height: 64%;
  border-radius: 50%;
  background: linear-gradient(180deg, #1a684d, var(--cr-ground2));
  transform: translate(34%, 5%) rotate(6deg);
  opacity: .82;
}
.cr-leaf {
  position: absolute;
  z-index: 0;
  border-radius: 100% 0 100% 0;
  background: rgba(153, 214, 126, .15);
  transform-origin: 100% 100%;
}
.cr-leaf-1 { width: 130px; height: 58px; left: 2%; bottom: 17%; transform: rotate(28deg); }
.cr-leaf-2 { width: 88px; height: 40px; left: 11%; bottom: 10%; transform: rotate(-10deg); }
.cr-leaf-3 { width: 120px; height: 52px; right: 0; bottom: 19%; transform: scaleX(-1) rotate(30deg); }
.cr-leaf-4 { width: 82px; height: 36px; right: 11%; bottom: 11%; transform: scaleX(-1) rotate(-8deg); }

.cr-progress {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 10;
  min-width: 62px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 240, 216, .72);
  color: rgba(21, 73, 58, .78);
  font-size: .86rem;
  font-weight: 1000;
  box-shadow: 0 3px 0 rgba(6, 35, 28, .08);
  font-variant-numeric: tabular-nums;
  opacity: .82;
}
.cr-progress.bump { animation: crCountBump .34s var(--cr-ease); }
@keyframes crCountBump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.22); } 72% { transform: scale(.96); } }

.cr-title {
  position: absolute;
  left: 50%;
  top: 28px;
  z-index: 6;
  transform: translateX(-50%);
  color: rgba(248, 251, 247, .88);
  text-align: center;
  user-select: none;
  pointer-events: none;
}
.cr-title strong { display: block; font-size: clamp(.98rem, 1.8vw, 1.18rem); letter-spacing: -.02em; font-weight: 900; }
.cr-title small { display: block; margin-top: 3px; color: rgba(244, 251, 246, .44); font-size: .67rem; font-weight: 800; }

.cr-hint {
  position: absolute;
  left: 50%;
  top: 78px;
  z-index: 10;
  transform: translateX(-50%);
  min-height: 34px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(248, 242, 216, .72);
  color: rgba(21, 73, 58, .82);
  box-shadow: 0 3px 0 rgba(6, 35, 28, .08);
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
  transition: .28s var(--cr-ease);
  opacity: .9;
}
.cr-hint.cr-away { opacity: 0; transform: translateX(-50%) translateY(-7px); }
.cr-hint .cr-hand {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 215, 107, .84);
  animation: crHandTap 1.8s ease-in-out infinite;
}
@keyframes crHandTap { 0%, 62%, 100% { transform: translateY(0) scale(1); } 73% { transform: translateY(3px) scale(.9); } 85% { transform: translateY(-2px) scale(1.08); } }

.cr-root .cr-field,
.cr-root .cr-collector,
.cr-root .cr-title,
.cr-root .cr-progress,
.cr-root .cr-hint { transition: transform .42s var(--cr-ease), opacity .32s ease, filter .32s ease; }
.cr-stage.is-complete .cr-field { opacity: 0; transform: translateY(-10px) scale(.98); filter: blur(2px); pointer-events: none; }
.cr-stage.is-complete .cr-collector { opacity: 0; transform: translateX(-50%) translateY(18px) scale(.97); pointer-events: none; }
.cr-stage.is-complete .cr-title,
.cr-stage.is-complete .cr-progress,
.cr-stage.is-complete .cr-hint { opacity: 0; transform: translateY(-10px); pointer-events: none; }

/* ---- 词场与指针 ---- */
.cr-field { position: absolute; inset: 150px 34px 248px; z-index: 8; touch-action: none; }
.cr-pointer { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .18s ease; }
.cr-pointer::before,
.cr-pointer::after { content: ""; position: absolute; left: 0; top: 0; border-radius: 50%; }
.cr-pointer::before {
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border: 2px solid rgba(255, 247, 226, .5);
  box-shadow: 0 0 0 9px rgba(217, 239, 122, .07), inset 0 0 26px rgba(255, 247, 226, .08);
}
.cr-pointer::after {
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  background: rgba(255, 215, 107, .9);
  box-shadow: 0 0 0 8px rgba(255, 215, 107, .12);
}
.cr-field.is-gathering .cr-pointer { opacity: 1; }
.cr-field.is-gathering .cr-pointer::before { animation: crMagnetPulse 1.1s ease-in-out infinite; }
@keyframes crMagnetPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(217, 239, 122, .06), inset 0 0 26px rgba(255, 247, 226, .08); }
  50% { box-shadow: 0 0 0 18px rgba(217, 239, 122, .015), inset 0 0 34px rgba(255, 247, 226, .12); }
}

/* ---- 词卡 ---- */
.cr-word-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  opacity: 0;
  will-change: transform, opacity;
}
.cr-word-wrap.cr-hidden { visibility: hidden; }
.cr-word-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 82%;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(6, 32, 26, .24), rgba(6, 32, 26, 0) 72%);
  pointer-events: none;
  z-index: -1;
}
.cr-word-perch {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 108px;
  height: 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 242, 220, .18), rgba(248, 242, 220, .02));
  border: 2px solid rgba(248, 242, 220, .10);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08);
  z-index: 0;
  pointer-events: none;
}
.cr-word-perch::before,
.cr-word-perch::after { content: ""; position: absolute; border-radius: 999px; }
.cr-word[data-tone="rabbit"] .cr-word-perch { width: 118px; height: 32px; border-radius: 18px 18px 20px 20px; background: linear-gradient(180deg, #3d8f66, #2a764f); }
.cr-word[data-tone="rabbit"] .cr-word-perch::before { left: 12px; bottom: 18px; width: 16px; height: 12px; background: #89bd6a; box-shadow: 16px -2px 0 #9dcb71, 34px 0 0 #7fb75f, 55px -2px 0 #95c86b, 72px 1px 0 #8fbe66; }
.cr-word[data-tone="jump"] .cr-word-perch { width: 96px; height: 24px; border-radius: 50px; background: linear-gradient(180deg, #fff6d8, #f5e7b8); border-color: rgba(248, 242, 220, .3); }
.cr-word[data-tone="jump"] .cr-word-perch::before { left: 16px; top: 7px; width: 10px; height: 10px; background: rgba(255, 215, 107, .46); box-shadow: 18px 1px 0 rgba(255, 215, 107, .36), 37px 0 0 rgba(255, 215, 107, .28); }
.cr-word[data-tone="little"] .cr-word-perch { width: 84px; height: 20px; border-radius: 999px; background: linear-gradient(180deg, #a9d7dc, #7fbfc8); border-color: rgba(248, 242, 220, .18); }
.cr-word[data-tone="little"] .cr-word-perch::before { left: 12px; top: 8px; width: 50px; height: 4px; background: rgba(255, 255, 255, .16); }
.cr-word[data-tone="green"] .cr-word-perch { width: 114px; height: 30px; border-radius: 20px; background: linear-gradient(180deg, #5aa46d, #3b8456); }
.cr-word[data-tone="green"] .cr-word-perch::before { left: 18px; bottom: 18px; width: 14px; height: 14px; background: #9ed26d; transform: rotate(45deg); box-shadow: 18px -2px 0 #8cc55f, 37px 0 0 #a4d66e; }
.cr-word[data-tone="home"] .cr-word-perch { width: 104px; height: 26px; border-radius: 15px; background: linear-gradient(180deg, #f3e7c0, #e7d6ab); border-color: rgba(248, 242, 220, .28); }
.cr-word[data-tone="home"] .cr-word-perch::before { left: 14px; top: 8px; width: 12px; height: 8px; background: rgba(198, 164, 95, .3); box-shadow: 18px 1px 0 rgba(198, 164, 95, .25), 36px -1px 0 rgba(198, 164, 95, .22), 55px 1px 0 rgba(198, 164, 95, .2); }

.cr-field.is-gathering .cr-word-wrap.settled .cr-word-shadow { filter: blur(7px); opacity: .52; }
.cr-field.is-gathering .cr-word-wrap.settled .cr-letters { filter: drop-shadow(0 5px 0 rgba(7, 47, 37, .09)) drop-shadow(0 12px 16px rgba(0, 0, 0, .14)); }

.cr-word {
  --word-delay: 0ms;
  position: relative;
  min-width: 154px;
  min-height: 104px;
  padding: 12px 16px 18px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transform-origin: 50% 78%;
  transition: opacity .2s ease, filter .2s ease;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.cr-word:focus-visible { outline: 3px solid rgba(255, 247, 223, .94); outline-offset: 7px; border-radius: 24px; }
.cr-word.is-muted { opacity: .34; filter: saturate(.72) blur(.2px); }
.cr-word-shadow {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 74%;
  height: 11px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .18);
  filter: blur(6px);
  transform: translateX(-50%);
  animation: crShadowIdle 3.1s ease-in-out infinite;
  animation-delay: var(--word-delay);
}
@keyframes crShadowIdle { 0%, 100% { transform: translateX(-50%) scaleX(.95); opacity: .76; } 50% { transform: translateX(-50%) scaleX(.76); opacity: .44; } }
.cr-letters {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: .008em;
  perspective: 680px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 4px 0 rgba(7, 47, 37, .1)) drop-shadow(0 9px 10px rgba(0, 0, 0, .14));
  animation: crWholeFloat 3.2s ease-in-out infinite;
  animation-delay: var(--word-delay);
}
@keyframes crWholeFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 45% { transform: translateY(-4px) rotate(-.5deg); } 72% { transform: translateY(1px) rotate(.35deg); } }

.cr-letter {
  --c: #fff;
  --rot: 0deg;
  --lift: 0px;
  --depth: 0px;
  --i: 0;
  --pop: 7px;
  --stretch: 1.08;
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: .6em;
  height: 1.04em;
  color: var(--c);
  font-size: clamp(2.7rem, 5.7vw, 4.38rem);
  font-weight: 1000;
  line-height: .95;
  letter-spacing: -.082em;
  text-shadow:
    -1px 0 var(--cr-outline), 1px 0 var(--cr-outline), 0 -1px var(--cr-outline), 0 1px var(--cr-outline),
    -1px -1px var(--cr-outline), 1px -1px var(--cr-outline), -1px 1px var(--cr-outline), 1px 1px var(--cr-outline),
    0 2px 0 rgba(11, 61, 48, .14), 0 6px 8px rgba(0, 0, 0, .12);
  transform: translateY(var(--lift)) translateZ(var(--depth)) rotate(var(--rot));
  transform-origin: 50% 84%;
  will-change: transform;
  animation: crLetterDance 2.8s ease-in-out infinite;
  animation-delay: calc(var(--word-delay) + var(--i) * -160ms);
}

/* 字母色彩/旋转/抬升/深度 class（替代 inline style，CSP 兼容） */
.cr-letter.c0 { --c: #f0c75b; }
.cr-letter.c1 { --c: #7bc8cf; }
.cr-letter.c2 { --c: #e18f9a; }
.cr-letter.c3 { --c: #a7cf6a; }
.cr-letter.c4 { --c: #938bc7; }
.cr-letter.c5 { --c: #e5a365; }
.cr-letter.r0 { --rot: -1.35deg; }
.cr-letter.r1 { --rot: -.9deg; }
.cr-letter.r2 { --rot: -.45deg; }
.cr-letter.r3 { --rot: 0deg; }
.cr-letter.r4 { --rot: .45deg; }
.cr-letter.r5 { --rot: .9deg; }
.cr-letter.r6 { --rot: 1.35deg; }
.cr-letter.l0 { --lift: -1.3px; }
.cr-letter.l1 { --lift: -.65px; }
.cr-letter.l2 { --lift: 0px; }
.cr-letter.l3 { --lift: .65px; }
.cr-letter.l4 { --lift: 1.3px; }
.cr-letter.d0 { --depth: 0px; }
.cr-letter.d1 { --depth: 1.2px; }
.cr-letter.d2 { --depth: 2.4px; }

/* --i 与 --word-delay 由 nth-child 提供（CSP 兼容） */
.cr-letter:nth-child(1) { --i: 0; }
.cr-letter:nth-child(2) { --i: 1; }
.cr-letter:nth-child(3) { --i: 2; }
.cr-letter:nth-child(4) { --i: 3; }
.cr-letter:nth-child(5) { --i: 4; }
.cr-letter:nth-child(6) { --i: 5; }
.cr-letter:nth-child(7) { --i: 6; }
.cr-letter:nth-child(8) { --i: 7; }
.cr-letter:nth-child(9) { --i: 8; }
.cr-letter:nth-child(10) { --i: 9; }
.cr-letter:nth-child(11) { --i: 10; }
.cr-letter:nth-child(12) { --i: 11; }
.cr-word-wrap:nth-child(1) .cr-word { --word-delay: 0ms; }
.cr-word-wrap:nth-child(2) .cr-word { --word-delay: -430ms; }
.cr-word-wrap:nth-child(3) .cr-word { --word-delay: -860ms; }
.cr-word-wrap:nth-child(4) .cr-word { --word-delay: -1290ms; }
.cr-word-wrap:nth-child(5) .cr-word { --word-delay: -1720ms; }
.cr-word-wrap:nth-child(6) .cr-word { --word-delay: -2150ms; }
.cr-word-wrap:nth-child(7) .cr-word { --word-delay: -2580ms; }
.cr-word-wrap:nth-child(8) .cr-word { --word-delay: -3010ms; }
.cr-word-wrap:nth-child(9) .cr-word { --word-delay: -3440ms; }
.cr-word-wrap:nth-child(10) .cr-word { --word-delay: -3870ms; }

.cr-letter.is-leader {
  animation-name: crLetterDance, crLeaderNod;
  animation-duration: 2.8s, 3.4s;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-delay: calc(var(--word-delay) + var(--i) * -160ms), calc(var(--word-delay) - 220ms);
}
.cr-letter.is-bouncy {
  animation-name: crLetterDance, crBouncyHop;
  animation-duration: 2.8s, 2.1s;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-delay: calc(var(--word-delay) + var(--i) * -160ms), calc(var(--word-delay) + var(--i) * -90ms);
}
.cr-letter.is-shy {
  animation-name: crLetterDance, crShyTilt;
  animation-duration: 2.8s, 2.6s;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-delay: calc(var(--word-delay) + var(--i) * -160ms), calc(var(--word-delay) - 120ms);
}
@keyframes crLeaderNod { 0%, 100% { filter: none; } 20% { filter: brightness(1.02); } 40% { filter: none; } }
@keyframes crBouncyHop { 0%, 100% { margin-bottom: 0; } 35% { margin-bottom: 3px; } 62% { margin-bottom: 0; } }
@keyframes crShyTilt { 0%, 100% { margin-top: 0; } 30% { margin-top: 1px; } 58% { margin-top: 0; } }
@keyframes crLetterDance {
  0%, 100% { transform: translateY(var(--lift)) translateZ(var(--depth)) rotate(var(--rot)) scale(1, 1); }
  15% { transform: translateY(calc(var(--lift) - var(--pop))) translateZ(calc(var(--depth) + 4px)) rotate(calc(var(--rot) - 1.7deg)) scale(.98, var(--stretch)); }
  28% { transform: translateY(calc(var(--lift) + 1px)) translateZ(var(--depth)) rotate(calc(var(--rot) + 1deg)) scale(1.04, .96); }
  54% { transform: translateY(calc(var(--lift) - 1px)) translateZ(calc(var(--depth) + 2px)) rotate(var(--rot)) scale(1.01, .995); }
  72% { transform: translateY(calc(var(--lift) - var(--pop) - 2px)) translateZ(calc(var(--depth) + 8px)) rotate(calc(var(--rot) + 1.8deg)) scale(.97, calc(var(--stretch) + .02)); }
  83% { transform: translateY(calc(var(--lift) + 2px)) translateZ(calc(var(--depth) - 1px)) rotate(calc(var(--rot) - .7deg)) scale(1.05, .95); }
}
.cr-word:hover .cr-letter { animation-duration: 1.52s; }

.cr-word[data-tone="rabbit"] .cr-letters { animation: crFloatRabbit 2.6s ease-in-out infinite; animation-delay: var(--word-delay); }
.cr-word[data-tone="rabbit"] .cr-letter { --pop: 8px; --stretch: 1.1; }
@keyframes crFloatRabbit { 0%, 100% { transform: translateY(0); } 18% { transform: translateY(-4px) rotate(-.4deg); } 28% { transform: translateY(1px); } 40% { transform: translateY(-10px) rotate(.7deg); } 54% { transform: translateY(2px); } 72% { transform: translateY(-5px) rotate(-.4deg); } }
.cr-word[data-tone="jump"] .cr-letters { animation: crFloatJump 2.05s ease-in-out infinite; animation-delay: var(--word-delay); }
.cr-word[data-tone="jump"] .cr-letter { --pop: 12px; --stretch: 1.13; }
@keyframes crFloatJump { 0%, 100% { transform: translateY(0); } 14% { transform: translateY(-3px) scale(1.01); } 34% { transform: translateY(-14px) scale(.97, 1.06); } 56% { transform: translateY(2px) scale(1.03, .96); } 72% { transform: translateY(-6px) scale(1, .99); } }
.cr-word[data-tone="little"] .cr-letters { animation: crFloatLittle 1.52s ease-in-out infinite; animation-delay: var(--word-delay); }
.cr-word[data-tone="little"] .cr-letter { --pop: 5px; --stretch: 1.06; }
@keyframes crFloatLittle { 0%, 100% { transform: translateY(0); } 16% { transform: translateY(-2px) rotate(-.3deg); } 28% { transform: translateY(1px); } 42% { transform: translateY(-4px) rotate(.4deg); } 56% { transform: translateY(0); } 70% { transform: translateY(-3px); } 84% { transform: translateY(1px); } }
.cr-word[data-tone="green"] .cr-letters { animation: crFloatGreen 3.1s ease-in-out infinite; animation-delay: var(--word-delay); }
.cr-word[data-tone="green"] .cr-letter { --pop: 7px; --stretch: 1.08; }
@keyframes crFloatGreen { 0%, 100% { transform: translateY(0) rotate(-.2deg); } 22% { transform: translateY(-2px) rotate(.6deg); } 44% { transform: translateY(-5px) rotate(1deg); } 60% { transform: translateY(0) rotate(-.9deg); } 82% { transform: translateY(1px) rotate(.3deg); } }
.cr-word[data-tone="home"] .cr-letters { animation: crFloatHome 2.8s ease-in-out infinite; animation-delay: var(--word-delay); }
.cr-word[data-tone="home"] .cr-letter { --pop: 6px; --stretch: 1.07; }
@keyframes crFloatHome { 0%, 100% { transform: translateY(0) scale(1); } 20% { transform: translateY(-3px) scale(1.01); } 34% { transform: translateY(0); } 56% { transform: translateY(-6px) scale(.99, 1.02); } 72% { transform: translateY(1px); } 86% { transform: translateY(-2px); } }

.cr-word.pressing .cr-letters { animation: crPressWhole .14s ease-out forwards; }
.cr-word.pressing .cr-letter { animation: none; }
@keyframes crPressWhole { 0% { transform: translateY(0) scale(1); } 70% { transform: translateY(7px) scale(1.075, .79); } 100% { transform: translateY(6px) scale(1.05, .84); } }
.cr-word.rebound .cr-letters { animation: crRebound .58s var(--cr-ease); }
.cr-word.rebound .cr-letter { animation: crLetterPop .58s var(--cr-ease) both; animation-delay: calc(var(--i) * 42ms); }
@keyframes crRebound { 0% { transform: translateY(6px) scale(1.05, .84); } 22% { transform: translateY(-14px) scale(.94, 1.14); } 46% { transform: translateY(4px) scale(1.05, .95); } 66% { transform: translateY(-5px) scale(.985, 1.045); } 83% { transform: translateY(1px) scale(1.01, .99); } 100% { transform: translateY(0) scale(1); } }
@keyframes crLetterPop {
  0% { transform: translateY(var(--lift)) translateZ(var(--depth)) rotate(var(--rot)) scale(1); }
  22% { transform: translateY(calc(var(--lift) - 12px)) translateZ(calc(var(--depth) + 18px)) rotate(calc(var(--rot) + 3deg)) scale(.94, 1.14); }
  42% { transform: translateY(calc(var(--lift) - 2px)) translateZ(calc(var(--depth) + 6px)) rotate(calc(var(--rot) - 2deg)) scale(1.07, .94); }
  62% { transform: translateY(calc(var(--lift) - 8px)) translateZ(calc(var(--depth) + 11px)) rotate(calc(var(--rot) + 1.2deg)) scale(.98, 1.06); }
  100% { transform: translateY(var(--lift)) translateZ(var(--depth)) rotate(var(--rot)) scale(1); }
}
.cr-word.speaking .cr-letter { animation: crSpeechWave .68s var(--cr-ease) both; animation-delay: calc(var(--i) * 54ms); }
@keyframes crSpeechWave {
  0%, 100% { transform: translateY(var(--lift)) translateZ(var(--depth)) rotate(var(--rot)) scale(1); }
  18% { transform: translateY(calc(var(--lift) - 7px)) translateZ(calc(var(--depth) + 7px)) rotate(calc(var(--rot) - 1.4deg)) scale(.98, 1.08); }
  36% { transform: translateY(calc(var(--lift) - 12px)) translateZ(calc(var(--depth) + 12px)) rotate(calc(var(--rot) - 2deg)) scale(.95, 1.16); }
  56% { transform: translateY(calc(var(--lift) + 4px)) translateZ(calc(var(--depth) - 2px)) rotate(calc(var(--rot) + 1deg)) scale(1.08, .9); }
  76% { transform: translateY(calc(var(--lift) - 5px)) translateZ(calc(var(--depth) + 5px)) rotate(calc(var(--rot) + .4deg)) scale(1.01, 1.03); }
}
.cr-word.lifting .cr-letters { animation: crLiftWord .28s var(--cr-ease) forwards; }
@keyframes crLiftWord { 0% { transform: translateY(0) scale(1); } 55% { transform: translateY(-15px) scale(1.06, .98); } 100% { transform: translateY(-12px) scale(1.04); } }
.cr-word.is-tap-wait { animation: crNudge .26s var(--cr-ease); }
@keyframes crNudge { 0%, 100% { transform: translateX(0); } 35% { transform: translateX(-4px) rotate(-1deg); } 70% { transform: translateX(4px) rotate(1deg); } }

/* ---- 书包 ---- */
.cr-collector { position: absolute; left: 50%; bottom: 4px; z-index: 12; transform: translateX(-50%); width: 368px; height: 264px; pointer-events: none; }
.cr-backpack {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 278px;
  height: 236px;
  transform-origin: 50% 92%;
  filter: drop-shadow(0 19px 20px rgba(0, 0, 0, .16));
}
.cr-bag-shadow { position: absolute; left: 50%; bottom: -3px; width: 84%; height: 19px; border-radius: 50%; background: rgba(0, 0, 0, .18); filter: blur(9px); transform: translateX(-50%); }
.cr-handle { position: absolute; left: 50%; top: 3px; transform: translateX(-50%); width: 86px; height: 46px; border: 10px solid #b9db72; border-bottom: 0; border-radius: 27px 27px 10px 10px; z-index: 0; }
.cr-strap { position: absolute; top: 54px; width: 36px; height: 122px; border-radius: 22px; background: #b6d66d; box-shadow: inset 0 -5px 0 rgba(28, 91, 61, .08); z-index: 0; }
.cr-strap.left { left: 16px; transform: rotate(-12deg); }
.cr-strap.right { right: 16px; transform: rotate(12deg); }
.cr-body {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 252px;
  height: 194px;
  border-radius: 54px 54px 48px 48px / 50px 50px 42px 42px;
  background: linear-gradient(180deg, #dff08d, #cfe173 70%, #c6da67);
  border: 3px solid rgba(248, 242, 220, .34);
  box-shadow: inset 0 7px 0 rgba(255, 255, 255, .14), inset 0 -11px 0 rgba(28, 91, 61, .08);
  z-index: 1;
}
.cr-body::before { content: ""; position: absolute; inset: 14px; border-radius: 40px; border: 2px solid rgba(69, 111, 63, .08); }
.cr-flap {
  position: absolute;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  width: 196px;
  height: 90px;
  border-radius: 34px 34px 24px 24px;
  background: linear-gradient(180deg, #edf7af, #d9eb8e);
  border: 3px solid rgba(248, 242, 220, .32);
  box-shadow: 0 7px 0 rgba(40, 94, 62, .07), inset 0 5px 0 rgba(255, 255, 255, .14);
  z-index: 6;
  transform-origin: 50% 8%;
  transition: transform .22s var(--cr-ease);
}
.cr-flap::after { content: ""; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: 22px; height: 16px; border-radius: 10px; background: #fff2c2; box-shadow: inset 0 -3px 0 rgba(170, 128, 37, .1); }
.cr-bag-face { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: 72px; height: 24px; pointer-events: none; opacity: .92; }
.cr-eye { position: absolute; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #255546; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .15); }
.cr-eye.left { left: 16px; }
.cr-eye.right { right: 16px; }
.cr-cheek { position: absolute; top: 13px; width: 16px; height: 9px; border-radius: 50%; background: rgba(241, 176, 139, .35); filter: blur(.2px); }
.cr-cheek.left { left: 7px; }
.cr-cheek.right { right: 7px; }
.cr-backpack.idle .cr-eye { animation: crBlink 4.2s ease-in-out infinite; }
.cr-backpack.open .cr-eye,
.cr-backpack.gulp .cr-eye { height: 4px; border-radius: 999px; top: 7px; }
.cr-backpack.absorb .cr-eye { transform: scaleY(.72); }
@keyframes crBlink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.12); } }
.cr-top-panel {
  position: absolute;
  left: 50%;
  top: 47px;
  transform: translateX(-50%);
  width: 160px;
  height: 48px;
  border-radius: 18px;
  background: #fff7de;
  border: 3px solid rgba(248, 242, 220, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -4px 0 rgba(169, 134, 54, .08);
  z-index: 7;
}
.cr-bag-count { color: var(--cr-deep); font-size: 1.74rem; line-height: 1; font-weight: 1000; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.cr-bag-count small { font-size: .62em; opacity: .56; margin-left: 4px; }
.cr-mouth {
  position: absolute;
  left: 50%;
  top: 76px;
  transform: translateX(-50%);
  width: 166px;
  height: 20px;
  border-radius: 14px;
  background: #103e31;
  z-index: 5;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
  transition: .2s var(--cr-ease);
}
.cr-mouth::after { content: ""; position: absolute; left: 13px; right: 13px; top: 5px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.cr-zip { position: absolute; right: 42px; top: 79px; z-index: 8; width: 20px; height: 14px; border-radius: 8px; background: var(--cr-sun); transform: rotate(7deg); box-shadow: inset 0 -2px 0 rgba(139, 98, 22, .16); }
.cr-front-pocket {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 202px;
  height: 118px;
  border-radius: 32px 32px 38px 38px / 26px 26px 34px 34px;
  background: #fff0c7;
  border: 3px solid rgba(248, 242, 220, .28);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .2), inset 0 -7px 0 rgba(186, 144, 50, .07);
  z-index: 4;
  overflow: hidden;
}
.cr-front-pocket::before { content: ""; position: absolute; left: 16px; right: 16px; top: 12px; height: 10px; border-radius: 999px; background: rgba(184, 140, 43, .12); }
.cr-front-pocket::after { content: ""; position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: 152px; height: 42px; border-radius: 18px; background: rgba(255, 255, 255, .10); pointer-events: none; }
.cr-cards { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: 192px; height: 82px; z-index: 7; pointer-events: none; }

.cr-mini-card {
  --i: 0;
  --c: #ffd76b;
  position: absolute;
  left: 50%;
  bottom: -2px;
  min-width: 90px;
  height: 58px;
  padding: 8px 9px 6px;
  border-radius: 15px 15px 13px 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: #fffdf6;
  border: 3px solid color-mix(in srgb, var(--c) 74%, var(--cr-outline));
  color: var(--cr-deep);
  box-shadow: 0 5px 8px rgba(0, 0, 0, .08);
  opacity: 0;
  transform-origin: 50% 100%;
  overflow: hidden;
}
.cr-mini-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: color-mix(in srgb, var(--c) 72%, white); }
.cr-mini-card.mc0 { --c: #f0c75b; }
.cr-mini-card.mc1 { --c: #7bc8cf; }
.cr-mini-card.mc2 { --c: #e18f9a; }
.cr-mini-card.mc3 { --c: #a7cf6a; }
.cr-mini-card.mc4 { --c: #938bc7; }
.cr-mini-card.mc5 { --c: #e5a365; }
.cr-mini-card:nth-child(1) { --i: 0; }
.cr-mini-card:nth-child(2) { --i: 1; }
.cr-mini-card:nth-child(3) { --i: 2; }
.cr-mini-card.variant-sticker { border-radius: 16px 12px 15px 13px; transform: rotate(-2deg); }
.cr-mini-card.variant-sticker::after { content: ""; position: absolute; right: 8px; top: 6px; width: 16px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .58); transform: rotate(18deg); }
.cr-mini-card.variant-tab { border-radius: 13px 13px 11px 11px; }
.cr-mini-card.variant-tab::after { content: ""; position: absolute; right: 10px; top: 0; width: 22px; height: 8px; border-radius: 0 0 8px 8px; background: color-mix(in srgb, var(--c) 80%, white); }
.cr-mini-card.variant-stamp { background: linear-gradient(180deg, #fffdf6, #fff8ea 55%, #fff3d6); }
.cr-mini-card.variant-stamp::after { content: ""; position: absolute; inset: 5px; border: 1.5px dashed rgba(54, 90, 77, .14); border-radius: 9px; }
.cr-mini-card.variant-ticket { clip-path: polygon(0 0, 100% 0, 100% 76%, 92% 76%, 92% 100%, 8% 100%, 8% 76%, 0 76%); }
.cr-mini-card.variant-ticket .cr-mini-pin { display: none; }
.cr-mini-card.variant-note { background: linear-gradient(180deg, #fffef9, #fff9ef); }
.cr-mini-card.variant-note::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 1px; background: rgba(84, 115, 102, .12); box-shadow: 0 -8px 0 rgba(84, 115, 102, .1); }
.cr-mini-word { position: relative; z-index: 1; font-size: .86rem; font-weight: 1000; line-height: 1; margin-top: 12px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-mini-tag { position: absolute; left: 9px; bottom: 6px; font-size: .52rem; font-weight: 900; color: rgba(21, 73, 58, .52); letter-spacing: .03em; }
.cr-mini-pin { position: absolute; right: 7px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff7d8; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), inset 0 -2px 0 rgba(171, 132, 33, .12); }
.cr-mini-star { position: absolute; left: 7px; top: 3px; font-size: .56rem; color: #926c19; opacity: .82; }
.cr-mini-card.show { animation: crCardPeek .4s var(--cr-ease) forwards; }
@keyframes crCardPeek {
  0% { opacity: 0; transform: translateX(calc(-50% + (var(--i) - 1) * 34px)) translateY(28px) rotate(calc((var(--i) - 1) * 7deg)) scale(.7); }
  68% { opacity: 1; transform: translateX(calc(-50% + (var(--i) - 1) * 34px)) translateY(-8px) rotate(calc((var(--i) - 1) * 7deg)) scale(1.06); }
  100% { opacity: 1; transform: translateX(calc(-50% + (var(--i) - 1) * 34px)) translateY(0) rotate(calc((var(--i) - 1) * 7deg)) scale(1); }
}

.cr-badge {
  position: absolute;
  left: 34px;
  top: 98px;
  z-index: 9;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cr-sun);
  color: #7a5716;
  font-size: .88rem;
  font-weight: 1000;
  box-shadow: 0 5px 0 rgba(116, 80, 15, .12);
  opacity: 0;
  transform: scale(.4) rotate(-20deg);
  transition: .28s var(--cr-ease);
}
.cr-backpack.full .cr-badge { opacity: 1; transform: scale(1) rotate(0); }
.cr-backpack.open .cr-flap { transform: translateX(-50%) translateY(-14px) rotateX(-35deg) rotate(-3deg); }
.cr-backpack.open .cr-mouth { height: 38px; top: 66px; transform: translateX(-50%) scale(1.12, 1.08); }
.cr-backpack.open .cr-zip { animation: crZipWiggle .32s var(--cr-ease); }
.cr-backpack.open .cr-top-panel { transform: translateX(-50%) translateY(-3px) scale(1.03); }
@keyframes crBagBreath { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) translateY(-2px) scale(1.01); } }
@keyframes crFriendlyTilt { 0%, 100% { rotate: 0deg; } 35% { rotate: -.5deg; } 68% { rotate: .4deg; } }
.cr-backpack.idle { animation: crBagBreath 3.6s ease-in-out infinite, crFriendlyTilt 4.6s ease-in-out infinite; }
.cr-backpack.absorb .cr-front-pocket { animation: crPocketBounce .52s var(--cr-ease); }
@keyframes crPocketBounce { 0%, 100% { transform: translateX(-50%) scale(1); } 34% { transform: translateX(-50%) scale(1.05, .96); } 62% { transform: translateX(-50%) scale(.98, 1.02); } }
.cr-backpack.gulp .cr-mouth { animation: crGulpMouth .34s var(--cr-ease) 1; }
.cr-backpack.gulp .cr-flap { animation: crGulpFlap .36s var(--cr-ease) 1; }
.cr-backpack.card-pop .cr-front-pocket { animation: crFrontPocketLift .38s var(--cr-ease) 1; }
.cr-backpack.card-pop .cr-cards { animation: crCardsRise .4s var(--cr-ease) 1; }
@keyframes crGulpMouth { 0% { transform: translateX(-50%) scale(1.08, 1.12); } 45% { transform: translateX(-50%) scale(.78, .55); } 78% { transform: translateX(-50%) scale(1.16, 1.28); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes crGulpFlap { 0% { transform: translateX(-50%) translateY(-14px) rotateX(-35deg) rotate(-3deg); } 45% { transform: translateX(-50%) translateY(-6px) rotateX(-10deg) rotate(-1deg); } 78% { transform: translateX(-50%) translateY(-12px) rotateX(-28deg) rotate(2deg); } 100% { transform: translateX(-50%) translateY(-8px) rotateX(-18deg) rotate(0deg); } }
@keyframes crFrontPocketLift { 0%, 100% { transform: translateX(-50%) scale(1); } 42% { transform: translateX(-50%) scale(1.04, .97) translateY(-3px); } }
@keyframes crCardsRise { 0%, 100% { transform: translateX(-50%); } 40% { transform: translateX(-50%) translateY(-13px) scale(1.06); } 70% { transform: translateX(-50%) translateY(-5px) scale(1.02); } }
@keyframes crZipWiggle { 0% { transform: rotate(7deg); } 35% { transform: translateY(-2px) rotate(-10deg); } 68% { transform: translateY(0) rotate(12deg); } 100% { transform: rotate(7deg); } }
.cr-backpack.absorb { animation: crBagCatch .64s var(--cr-ease); }
.cr-backpack.final-win { animation: crBagFinale .88s var(--cr-ease); }
.cr-backpack.absorb .cr-mouth { animation: crMouthCatch .56s var(--cr-ease); }
.cr-backpack.absorb .cr-flap { animation: crFlapBounce .58s var(--cr-ease); }
@keyframes crBagCatch { 0% { transform: translateX(-50%) scale(1); } 14% { transform: translateX(-50%) scale(.9, 1.1) translateY(4px); } 32% { transform: translateX(-50%) scale(1.12, .9) translateY(-8px); } 52% { transform: translateX(-50%) scale(.96, 1.04) translateY(1px); } 72% { transform: translateX(-50%) scale(1.03, .98); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes crBagFinale { 0% { transform: translateX(-50%) scale(1); } 18% { transform: translateX(-50%) scale(.9, 1.12) translateY(5px); } 38% { transform: translateX(-50%) scale(1.15, .88) translateY(-12px); } 58% { transform: translateX(-50%) scale(.98, 1.04); } 76% { transform: translateX(-50%) scale(1.06, .96) translateY(-3px); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes crMouthCatch { 0%, 100% { transform: translateX(-50%) scaleX(1); } 22% { transform: translateX(-50%) scale(1.18, 1.58); } 48% { transform: translateX(-50%) scale(.9, .72); } 70% { transform: translateX(-50%) scale(1.05, 1.08); } }
@keyframes crFlapBounce { 0%, 100% { transform: translateX(-50%) rotate(0); } 18% { transform: translateX(-50%) translateY(-12px) rotate(-7deg); } 42% { transform: translateX(-50%) translateY(-4px) rotate(5deg); } 66% { transform: translateX(-50%) translateY(-7px) rotate(-3deg); } 84% { transform: translateX(-50%) translateY(-2px) rotate(1deg); } }

/* ---- 飞行克隆与火花 ---- */
.cr-fly { position: fixed !important; z-index: 9999 !important; pointer-events: none !important; margin: 0 !important; transform-origin: center !important; will-change: transform, opacity !important; }
.cr-spark { position: fixed; z-index: 9998; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }
.cr-spark.glyph { width: auto; height: auto; background: transparent; font-size: 18px; }
.cr-spark.s0 { background: #f0c75b; color: #f0c75b; }
.cr-spark.s1 { background: #7bc8cf; color: #7bc8cf; }
.cr-spark.s2 { background: #e18f9a; color: #e18f9a; }
.cr-spark.s3 { background: #a7cf6a; color: #a7cf6a; }
.cr-spark.s4 { background: #938bc7; color: #938bc7; }
.cr-spark.s5 { background: #e5a365; color: #e5a365; }

/* ---- 完成仪式 ---- */
.cr-final-caption {
  position: absolute;
  left: 50%;
  bottom: 292px;
  z-index: 15;
  transform: translateX(-50%) translateY(12px);
  padding: 7px 12px;
  border-radius: 14px;
  background: rgba(255, 248, 222, .9);
  color: var(--cr-deep);
  font-size: .74rem;
  font-weight: 1000;
  opacity: 0;
  pointer-events: none;
  transition: .25s var(--cr-ease);
}
.cr-final-caption.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.cr-done {
  position: absolute;
  inset: 0;
  z-index: 30;
  padding: 0;
  background: linear-gradient(180deg, rgba(18, 63, 52, .16), rgba(18, 63, 52, .3));
  opacity: 0;
  pointer-events: none;
  transition: .34s ease;
}
.cr-done.show { opacity: 1; pointer-events: auto; }
.cr-done-card {
  position: absolute;
  inset: 16px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 34px 26px 26px;
  border-radius: 38px 38px 0 0;
  background: linear-gradient(180deg, #fffdf7, #fff6e4 74%, #f8edca);
  border: 3px solid rgba(248, 242, 220, .38);
  text-align: center;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
  transform: translateY(104%);
  transition: .52s var(--cr-ease);
  overflow: hidden;
}
.cr-done-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 14px; height: 12px; border-radius: 999px; background: rgba(255, 215, 107, .18); }
.cr-done-card::after { content: ""; position: absolute; inset: 12px 12px 18px; border-radius: 28px; border: 1.5px dashed rgba(65, 104, 84, .12); pointer-events: none; }
.cr-reward-grass { position: absolute; left: -4%; right: -4%; bottom: -4%; height: 26%; border-radius: 50% 50% 0 0; background: linear-gradient(180deg, #6bb37a, #4f955f); }
.cr-reward-grass::after { content: ""; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); width: 68%; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cr-done.show .cr-done-card { transform: translateY(0); }
.cr-done-mark {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  margin: 4px auto 14px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #dff08d, #c8dd6d);
  color: var(--cr-deep);
  font-size: 1.72rem;
  font-weight: 1000;
  box-shadow: 0 6px 0 rgba(29, 85, 59, .08);
}
.cr-reward-crown { position: relative; z-index: 1; display: flex; gap: 8px; align-items: center; justify-content: center; margin: 2px auto 10px; }
.cr-reward-star { width: 24px; height: 24px; display: grid; place-items: center; color: #936b18; font-size: 1rem; transform-origin: 50% 60%; animation: crRewardTwinkle 2.6s ease-in-out infinite; }
.cr-reward-star.big { width: 34px; height: 34px; font-size: 1.3rem; }
@keyframes crRewardTwinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: .8; } 50% { transform: scale(1.14) rotate(6deg); opacity: 1; } }
.cr-done-card h2 { position: relative; z-index: 1; margin: 0; font-size: 2rem; letter-spacing: -.05em; color: var(--cr-deep); }
.cr-done-card p { position: relative; z-index: 1; margin: 8px 0 14px; color: var(--foundation-color-ink-muted, #70857b); font-weight: 800; font-size: .96rem; }
.cr-reward-strip { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 560px; margin: 0 auto 18px; }
.cr-reward-chip {
  min-width: 88px;
  height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  border: 3px solid rgba(248, 242, 220, .34);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffdf6;
  color: var(--cr-deep);
  font-size: .88rem;
  font-weight: 1000;
  box-shadow: 0 4px 0 rgba(32, 89, 60, .08);
}
.cr-reward-chip.tilt-0 { transform: rotate(-3deg); }
.cr-reward-chip.tilt-1 { transform: rotate(2deg); }
.cr-reward-chip.tilt-2 { transform: rotate(-1deg); }
.cr-reward-chip.tilt-3 { transform: rotate(3deg); }
.cr-reward-chip.tilt-4 { transform: rotate(-2deg); }
.cr-reward-actions { position: relative; z-index: 2; display: flex; gap: 10px; width: min(360px, 100%); margin-top: auto; }
.cr-again {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: var(--foundation-radius-control, 16px);
  background: linear-gradient(180deg, #dff08d, #c8dd6d);
  color: var(--cr-deep);
  font-size: .95rem;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(32, 89, 60, .14), inset 0 3px 0 rgba(255, 255, 255, .18);
  font-family: inherit;
}
.cr-again.secondary { background: var(--foundation-color-surface, #fffdf6); border: 3px solid rgba(21, 73, 58, .14); box-shadow: 0 4px 0 rgba(32, 89, 60, .08); }
.cr-again:focus-visible { outline: var(--foundation-focus-ring, 3px solid #075de8); outline-offset: 3px; }

/* ---- 390px 与小屏适配：词卡不裁切 ---- */
@media (max-width: 760px) {
  .cr-progress { right: 12px; top: 14px; }
  .cr-title { top: 22px; width: 72%; }
  .cr-title small { display: none; }
  .cr-hint { top: 68px; max-width: 86vw; white-space: normal; text-align: center; }
  .cr-field { inset: 150px 12px 236px; }
  .cr-word { min-width: 118px; min-height: 82px; padding: 8px 6px 13px; }
  .cr-letter { font-size: clamp(2.2rem, 9.5vw, 3.18rem); }
  .cr-collector { transform: translateX(-50%) scale(.9); transform-origin: 50% 100%; bottom: 0; }
  .cr-done-card { inset: 14px 10px 0; padding: 28px 18px 20px; }
  .cr-reward-chip { min-width: 74px; height: 40px; font-size: .8rem; }
  .cr-reward-actions { gap: 8px; }
  .cr-again { min-height: 52px; }
}
@media (max-width: 390px) {
  .cr-field { inset: 140px 8px 224px; }
  .cr-word { min-width: 104px; min-height: 74px; padding: 6px 4px 12px; }
  .cr-letter { font-size: clamp(1.9rem, 9vw, 2.7rem); letter-spacing: -.07em; }
  .cr-collector { transform: translateX(-50%) scale(.8); }
  .cr-final-caption { bottom: 236px; font-size: .68rem; }
  .cr-reward-actions { flex-direction: column; }
  .cr-again { width: 100%; min-height: 48px; }
}

/* ---- reduced-motion 降级：无聚拢指针、无循环动效、帧动画一次到位 ---- */
@media (prefers-reduced-motion: reduce) {
  .cr-pointer { display: none; }
  .cr-root .cr-letter,
  .cr-root .cr-letters,
  .cr-root .cr-word-shadow,
  .cr-root .cr-backpack,
  .cr-root .cr-eye,
  .cr-root .cr-hand,
  .cr-root .cr-reward-star { animation: none !important; }
  .cr-root *,
  .cr-root *::before,
  .cr-root *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* GOAL-COLLECT-1 S3b-2 — Collect 回放/跟读层（app.js collectOverlayMarkup 配套） */
.collect-shell { position: relative; width: min(1180px, 100%); margin-inline: auto; /* S27 响应式：宽屏有界宽舞台居中（对齐 s17-shell 1180 约定），窄屏自然满宽 */ }
.collect-stage-host { position: relative; border-radius: 24px; overflow: hidden; }
.collect-toolbar { position: absolute; right: 92px; top: 18px; z-index: 12; display: flex; gap: 8px; }
.collect-toolbar button { width: 34px; height: 34px; border-radius: 999px; border: 0; display: grid; place-items: center; background: rgba(244, 240, 216, .72); color: var(--cr-deep, #15493a); cursor: pointer; box-shadow: 0 3px 0 rgba(6, 35, 28, .08); opacity: .88; }
.collect-toolbar button:hover { opacity: 1; }
.collect-toolbar button:focus-visible { outline: 3px solid rgba(255, 247, 223, .94); outline-offset: 2px; }
.collect-replay { position: absolute; inset: 0; z-index: 24; display: grid; place-items: center; background: rgba(11, 46, 40, .44); }
.collect-replay-card { position: relative; width: min(720px, 92%); border-radius: 24px; padding: 18px; background: linear-gradient(180deg, var(--cr-paper, #fffdf7), #fff6e4); border: 3px solid rgba(248, 242, 220, .38); box-shadow: 0 24px 60px rgba(7, 38, 31, .3); }
.collect-replay-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #0b2e28; display: block; }
.collect-replay-sample { border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, var(--cr-bg1, #123f34), var(--cr-bg2, #0b2e28)); }
.collect-replay-scene { position: relative; aspect-ratio: 16 / 9; }
.collect-replay-caption { margin: 0; padding: 10px 16px 14px; text-align: center; font-weight: 800; color: var(--cr-ink, #173c31); background: rgba(255, 253, 246, .9); }
.collect-follow-tools { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.collect-follow-tools > button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 2px solid rgba(21, 73, 58, .14); background: #fff; color: var(--cr-deep, #15493a); font-weight: 900; font-size: .86rem; cursor: pointer; }
.collect-follow-tools > button:disabled { opacity: .5; cursor: default; }
.collect-replay-close { position: absolute; right: -10px; top: -10px; width: 34px; height: 34px; border-radius: 999px; border: 0; background: var(--cr-deep, #15493a); color: #fff; cursor: pointer; }
.collect-replay-card .audio-follow-window, .collect-replay-card .video-follow-window { position: static; margin-top: 12px; }
@media (max-width: 760px) {
  .collect-toolbar { right: 12px; top: 54px; }
  .collect-replay-card { width: 94%; padding: 12px; }
}

/* S27 桌面宽屏构图（≥1000px）：配合更宽槽位扩散，词卡与字母适度放大；置于文件末确保 cascade 顺序生效 */
@media (min-width: 1000px) {
  .cr-letter { font-size: clamp(2.7rem, 5.2vw, 5rem); }
  .cr-word { min-width: 176px; min-height: 118px; padding: 14px 18px 20px; }
  .cr-title { font-size: clamp(1.3rem, 1.9vw, 1.72rem); }
  .cr-hint { font-size: 1rem; }
  .cr-progress { min-height: 40px; padding: 0 16px; font-size: 1.05rem; }
}
