/* 游乐园 P4 · 布布跳云朵（视觉与游戏手感升级版） */
.cjCard{position:relative;display:grid;gap:16px}
.cjSky{position:relative;min-height:208px;padding:18px 24px 22px;border-radius:20px;overflow:hidden;
  background:linear-gradient(180deg,#7ec4ee 0%,#b7e2f8 58%,#e7f6fd 100%);
  border:2px solid rgba(255,255,255,.85);box-shadow:inset 0 -14px 28px rgba(255,255,255,.55)}
.cjSun{position:absolute;top:14px;right:24px;width:54px;height:54px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#fff7b2,#ffd15c 68%,#f5b038);
  box-shadow:0 0 28px rgba(255,216,96,.7);animation:cjSunPulse 4s ease-in-out infinite alternate;pointer-events:none}
@keyframes cjSunPulse{from{transform:scale(1)}to{transform:scale(1.08)}}
.cjBgCloud{position:absolute;opacity:.55;pointer-events:none;animation:cjDrift 24s linear infinite}
.cjBgCloud.c1{top:18px;left:8%;width:90px;animation-duration:28s}
.cjBgCloud.c2{top:38px;left:52%;width:72px;animation-duration:34s;animation-delay:-12s}
@keyframes cjDrift{0%{transform:translateX(-20px)}50%{transform:translateX(35px)}100%{transform:translateX(-20px)}}

.cjTrack{position:relative;z-index:2;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;height:166px;padding:66px 6px 6px}
.cjRunner{position:absolute;bottom:48px;left:0;transform:translateX(-50%);width:66px;height:74px;
  transition:left .32s cubic-bezier(.28,.84,.42,1);pointer-events:none;z-index:4;transform-origin:bottom center}
.cjBear{width:100%;height:100%;display:block;filter:drop-shadow(0 6px 8px rgba(52,88,120,.25))}
.cjRunner.idle .cjBear{animation:cjBearIdle 2.2s ease-in-out infinite}
.cjRunner.hop .cjBear{animation:cjBearHop .34s cubic-bezier(.3,1.2,.4,1)}
.cjRunner.win .cjBear{animation:cjBearWin .55s ease-in-out infinite alternate}
.cjRunner.miss .cjBear{animation:cjBearMiss .32s ease-in-out}
@keyframes cjBearIdle{0%,100%{transform:translateY(0) scale(1,1)}50%{transform:translateY(-4px) scale(.98,1.03)}}
@keyframes cjBearHop{0%{transform:translateY(0) scale(1.12,.86)}45%{transform:translateY(-42px) scale(.94,1.08) rotate(-4deg)}85%{transform:translateY(-2px) scale(1.1,.88)}100%{transform:translateY(0) scale(1,1)}}
@keyframes cjBearWin{from{transform:translateY(0) rotate(-4deg) scale(1)}to{transform:translateY(-14px) rotate(4deg) scale(1.06)}}
@keyframes cjBearMiss{0%,100%{transform:translateX(0)}25%{transform:translateX(-7px) rotate(-6deg)}75%{transform:translateX(7px) rotate(6deg)}}

.cjStep{position:relative;flex:1;max-width:108px;min-width:48px;height:62px;display:grid;place-items:center;transition:transform .25s ease}
.cjStepSvg{width:100%;height:100%;display:block;filter:drop-shadow(0 6px 10px rgba(68,124,166,.22));transition:filter .25s,transform .25s}
.cjStepLetter{position:relative;z-index:2;margin-top:4px;font:700 18px/1 "Fredoka","ZCOOL",sans-serif;color:#5a758c;letter-spacing:.04em}
.cjStepSvg{position:absolute;inset:0}
.cjStep.current{animation:cjCloudBob 1.8s ease-in-out infinite}
@keyframes cjCloudBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.cjStep.passed .cjStepSvg{filter:drop-shadow(0 6px 14px rgba(242,184,92,.45))}
.cjStep.passed .cjStepLetter{color:#2f6d49}
.cjStep.landed{animation:cjCloudSquash .32s ease-out}
@keyframes cjCloudSquash{0%{transform:scale(1)}35%{transform:scale(1.08,.85) translateY(5px)}100%{transform:scale(1)}}
.cjStep.goal{flex:0 0 92px;max-width:92px;height:78px}
.cjRainbow{width:100%;height:100%;display:block;filter:drop-shadow(0 6px 12px rgba(90,130,170,.22))}
.cjStep.goal.passed .cjRainbow{animation:cjGoalGlow .8s ease-in-out infinite alternate}
@keyframes cjGoalGlow{from{transform:scale(1)}to{transform:scale(1.08)}}

.cjPuff{position:absolute;bottom:24px;width:44px;height:20px;transform:translateX(-50%);pointer-events:none;z-index:3}
.cjPuff i{position:absolute;width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.9);animation:cjPuffOut .45s ease-out forwards}
.cjPuff i:nth-child(1){left:0;top:4px;--px:-16px;--py:-10px}
.cjPuff i:nth-child(2){left:16px;top:0;--px:0px;--py:-16px}
.cjPuff i:nth-child(3){right:0;top:4px;--px:16px;--py:-10px}
@keyframes cjPuffOut{0%{transform:translate(0,0) scale(.6);opacity:1}100%{transform:translate(var(--px),var(--py)) scale(1.2);opacity:0}}

.cjBadge{position:absolute;top:14px;left:16px;z-index:5;display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;
  background:rgba(255,255,255,.88);border:1.5px solid rgba(255,255,255,.95);box-shadow:0 4px 12px rgba(70,115,155,.15);
  font:700 13px/1 "Fredoka","ZCOOL",sans-serif;color:#52402b}
.cjBadge b{color:#d98524;font-size:15px}

.cjPrompt{display:grid;gap:10px;justify-items:center}
.cjSlots{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.cjSlot{min-width:42px;height:50px;padding:0 8px;border-radius:14px;border:2px solid #d5cab8;background:#fffdf8;display:grid;place-items:center;font:700 25px/1 "Fredoka","ZCOOL",sans-serif;color:#33291f;transition:transform .15s,border-color .15s}
.cjSlot.ghost{color:rgba(95,82,68,.35);border-style:dashed}
.cjSlot.ghost.hinted{color:#b46d1e;border-color:#e6a94a;background:#fff8eb}
.cjSlot.filled{border-color:#4fa376;background:#eef9f2;color:#216440;transform:scale(1.05)}
.cjSlot.bad{border-color:#d95b4f;background:#fff0ee;animation:cjShake .28s}
@keyframes cjShake{0%,100%{transform:translateX(0)}30%{transform:translateX(-5px)}70%{transform:translateX(5px)}}
.cjTools{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
.cjWordDone{font-weight:700;color:#2d7a4f;font-size:16px}
.cjBoardWrap{display:grid;gap:10px;justify-items:center}
@media (max-width:600px){
  .cjSky{min-height:178px;padding:14px 12px 16px}
  .cjTrack{height:142px;padding-top:52px}
  .cjRunner{width:54px;height:60px;bottom:42px}
  .cjStep{height:52px;min-width:34px}
  .cjStep.goal{flex:0 0 70px;height:64px}
}
@media (prefers-reduced-motion:reduce){.cjSun,.cjBgCloud,.cjRunner,.cjRunner .cjBear,.cjStep,.cjStep.goal .cjRainbow,.cjPuff i,.cjSlot.bad{animation:none;transition:none}}
