/* ゲーム9「ズンズン畑」（野菜ぬき）の絵。すべて .scene-stomp の下に閉じる。
   大きさは cqw（舞台の幅の %）。1マス = 17cqw、今ぬく野菜は真ん中。地面の線は「畑の世界」（下 68%）の上から 42% */
.scene-stomp .pz-stage { position: absolute; inset: 0; overflow: hidden; pointer-events: none; container-type: inline-size;
  background: linear-gradient(#9fdcff 0, #d8f3ff 55%, #e8f7ff 100%); }
.scene-stomp .pz-sun { position: absolute; right: 7%; top: 21%; width: 13cqw; height: 13cqw; max-width: 64px; max-height: 64px; border-radius: 50%;
  background: #ffd23f; border: 3px solid #f59e0b; box-shadow: 0 0 0 8px rgba(255,210,63,.35); }
.scene-stomp .pz-world { position: absolute; left: 0; right: 0; bottom: 0; height: 68%; }
/* 遠くの丘＋畑の土 */
.scene-stomp .pz-world::before { content: ''; position: absolute; left: -10%; right: -10%; top: 30%; height: 16%; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: #9ccc65; border: 3px solid #558b2f; }
.scene-stomp .pz-soil { position: absolute; left: 0; right: 0; top: 42%; bottom: 0; border-top: 6px solid #4e342e;
  background: repeating-linear-gradient(180deg, #8d6e63 0 22px, #7b5e54 22px 27px); }
/* しぐれちゃん：真ん中より少し左で、地面に立つ（今ぬく野菜はその右前） */
.scene-stomp .pz-sigure { position: absolute; left: 50%; bottom: calc(58% - 6px); height: 38%; max-height: 210px; width: auto; max-width: none;
  translate: calc(-50% - 9cqw) 0; transform-origin: 60% 100%; }
.scene-stomp .pz-sigure.pz-grab { animation: pz-grab .3s ease-out; }
.scene-stomp .pz-sigure.pz-tug { animation: pz-tug .22s ease-out; }
.scene-stomp .pz-sigure.pz-slip { animation: pz-slip .5s ease-out; }
@keyframes pz-grab { 0% { transform: rotate(0); } 50% { transform: rotate(7deg) translateY(4px); } 100% { transform: rotate(0); } }
@keyframes pz-tug { 0% { transform: rotate(0) translateY(0); } 40% { transform: rotate(-8deg) translateY(-10px); } 100% { transform: rotate(0) translateY(0); } }
@keyframes pz-slip { 0% { transform: translateX(0); } 20% { transform: translateX(-9px) rotate(-6deg); } 45% { transform: translateX(7px) rotate(4deg); }
  70% { transform: translateX(-3px); } 100% { transform: translateX(0); } }
/* 野菜の列（JS が translateX(-pos×17cqw) を書く） */
.scene-stomp .pz-row { position: absolute; inset: 0; will-change: transform; }
/* 1マス：地面の線より上だけ見せる（overflow で土の中の根っこを隠す） */
.scene-stomp .pz-slot { position: absolute; bottom: 58%; width: 51cqw; margin-left: -25.5cqw; height: 60%; overflow: hidden; }
.scene-stomp .pz-veg { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; --rh: 17cqw;
  transform: translateY(calc(var(--f, 0) * var(--rh) * -1)); transition: transform .16s cubic-bezier(.3,1.5,.5,1); }
.scene-stomp .pz-veg > i { position: absolute; display: block; box-sizing: border-box; border: 3px solid #1b5e20; }
.scene-stomp .pz-veg .pz-root { top: 0; }
.scene-stomp .pz-veg .pz-leaf { bottom: 0; transform-origin: 50% 100%; }
/* 土の盛り上がり（根っこの前）。抜けたら穴 */
.scene-stomp .pz-mound { position: absolute; left: 50%; bottom: -3cqw; width: 15cqw; height: 6cqw; margin-left: -7.5cqw; border-radius: 50%;
  background: #6d4c41; border: 3px solid #3e2723; box-sizing: border-box; }
.scene-stomp .pz-mound.pz-hole { background: radial-gradient(ellipse at 50% 45%, #2b1b17 0 50%, #6d4c41 52%); }
/* 名札（土の上） */
.scene-stomp .pz-tag { position: absolute; top: 46%; transform: translateX(-50%); padding: 1px 6px; border-radius: 999px; white-space: nowrap;
  background: rgba(62,39,35,.45); color: #fff; font-weight: 900; font-size: clamp(11px, 3.1cqw, 15px); }
.scene-stomp .pz-slot.pz-fail + .pz-tag { background: #c62828; }
.scene-stomp .pz-slot.pz-fail + .pz-tag::before { content: '× '; }

/* にんじん：オレンジの細長い根、細い葉がふさふさ */
.scene-stomp .pz-carrot .pz-root { width: 8cqw; height: 17cqw; left: -4cqw; border-color: #bf360c; border-radius: 45% 45% 50% 50% / 12% 12% 88% 88%;
  background: repeating-linear-gradient(170deg, #ff8f00 0 3cqw, #ef6c00 3cqw 3.4cqw); }
.scene-stomp .pz-carrot .pz-leaf { width: 2.8cqw; height: 11cqw; left: -1.4cqw; border-width: 2px; border-color: #33691e; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #c5e1a5 0 20%, #8bc34a 22%); }
.scene-stomp .pz-carrot .l1 { rotate: -28deg; }
.scene-stomp .pz-carrot .l2 { height: 13cqw; }
.scene-stomp .pz-carrot .l3 { rotate: 28deg; }
/* 大根：長い白い根、大きな濃い緑の葉 */
.scene-stomp .pz-daikon { --rh: 26cqw; }
.scene-stomp .pz-daikon .pz-root { width: 8.5cqw; height: 26cqw; left: -4.25cqw; border-color: #757575; border-radius: 40% 40% 50% 50% / 8% 8% 30% 30%;
  background: linear-gradient(#c5e1a5 0 12%, #fafafa 24%); }
.scene-stomp .pz-daikon .pz-leaf { width: 6cqw; height: 15cqw; left: -3cqw; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: linear-gradient(90deg, #2e7d32 0 44%, #a5d6a7 44% 56%, #2e7d32 56%); }
.scene-stomp .pz-daikon .l1 { rotate: -30deg; }
.scene-stomp .pz-daikon .l2 { height: 18cqw; }
.scene-stomp .pz-daikon .l3 { rotate: 30deg; }
/* じゃがいも：茶色の丸いいもが3つ、小さな丸い葉＋白い花 */
.scene-stomp .pz-potato { --rh: 13cqw; }
.scene-stomp .pz-potato .pz-root { width: 18cqw; height: 13cqw; left: -9cqw; border: 0; }
.scene-stomp .pz-potato .pz-root::before { content: ''; position: absolute; left: 50%; top: 0; width: 1.2cqw; height: 5cqw; margin-left: -.6cqw; background: #6d4c41; }
.scene-stomp .pz-potato .pz-root b { position: absolute; box-sizing: border-box; border: 3px solid #4e342e; border-radius: 50% 46% 52% 48%;
  background: radial-gradient(circle at 30% 35%, #5d4037 0 6%, transparent 7%), radial-gradient(circle at 65% 60%, #5d4037 0 5%, transparent 6%), #bc8f6f; }
.scene-stomp .pz-potato .pz-root b:nth-child(1) { left: 0; top: 4cqw; width: 8cqw; height: 7cqw; }
.scene-stomp .pz-potato .pz-root b:nth-child(2) { left: 5.5cqw; top: 5.5cqw; width: 8cqw; height: 7.5cqw; }
.scene-stomp .pz-potato .pz-root b:nth-child(3) { left: 10cqw; top: 2.5cqw; width: 7.5cqw; height: 6.5cqw; }
.scene-stomp .pz-potato .pz-leaf { width: 5cqw; height: 4.6cqw; border-width: 2px; border-color: #1b5e20; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #388e3c; }
.scene-stomp .pz-potato .l1 { left: -6.5cqw; }
.scene-stomp .pz-potato .l2 { left: -2.5cqw; bottom: 3.2cqw; background: #43a047; }
.scene-stomp .pz-potato .l3 { left: 1.5cqw; }
.scene-stomp .pz-potato .l4 { left: -1.5cqw; bottom: 7cqw; width: 3cqw; height: 3cqw; border-radius: 50%; border-color: #9e9e9e;
  background: radial-gradient(circle, #ffd23f 0 28%, #fff 32%); }
/* 大きなカブ：むらさきと白の大きな玉、とても大きな葉 */
.scene-stomp .pz-turnip { --rh: 19cqw; }
.scene-stomp .pz-turnip .pz-root { width: 22cqw; height: 19cqw; left: -11cqw; border-color: #6a1b9a; border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 35% 70%, rgba(255,255,255,.9) 0 10%, transparent 11%), linear-gradient(#8e24aa 0 22%, #ce93d8 40%, #f3e5f5 58%, #fff); }
.scene-stomp .pz-turnip .pz-root::after { content: ''; position: absolute; left: 50%; bottom: -5cqw; width: 1.2cqw; height: 5cqw; margin-left: -.6cqw;
  background: #f3e5f5; border: 2px solid #6a1b9a; border-top: 0; border-radius: 0 0 50% 50%; }
.scene-stomp .pz-turnip .pz-leaf { width: 10cqw; height: 22cqw; left: -5cqw; border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
  background: linear-gradient(90deg, #43a047 0 45%, #c8e6c9 45% 55%, #43a047 55%); }
.scene-stomp .pz-turnip .l1 { rotate: -34deg; }
.scene-stomp .pz-turnip .l2 { height: 25cqw; background: linear-gradient(90deg, #388e3c 0 45%, #c8e6c9 45% 55%, #388e3c 55%); }
.scene-stomp .pz-turnip .l3 { rotate: 34deg; }

/* 合図：葉っぱがゆれる／ぬくたびに根がふんばる／ミスで葉がふるえる */
.scene-stomp .pz-veg.pz-call .pz-leaf { animation: pz-wiggle .26s ease-out; }
.scene-stomp .pz-veg.pz-pull .pz-root { animation: pz-strain .2s ease-out; }
.scene-stomp .pz-veg.pz-sink .pz-leaf { animation: pz-shiver .3s ease-out; }
@keyframes pz-wiggle { 0% { transform: scaleY(1.2) skewX(8deg); } 50% { transform: scaleY(.92) skewX(-6deg); } 100% { transform: none; } }
@keyframes pz-strain { 0% { transform: scale(.9, 1.12); } 100% { transform: none; } }
@keyframes pz-shiver { 0%, 100% { transform: none; } 25% { transform: skewX(10deg); } 60% { transform: skewX(-8deg); } }
/* 抜けた瞬間：ぽんと飛び出す */
.scene-stomp .pz-veg.pz-out { transition: transform .14s cubic-bezier(.2,1.8,.5,1); }
/* 失敗：半分ぬけたまま、葉がしおれる */
.scene-stomp .pz-slot.pz-fail .pz-veg { rotate: -9deg; }
.scene-stomp .pz-slot.pz-fail .pz-leaf { filter: saturate(.35) brightness(.85); }
/* カゴへ飛ぶ（複製。left/top は JS が px で書く） */
.scene-stomp .pz-fx { position: absolute; inset: 0; z-index: 3; }
.scene-stomp .pz-veg.pz-fly { bottom: auto; z-index: 5; transition: left .46s cubic-bezier(.3,.1,.5,1), top .46s cubic-bezier(.4,-.9,.7,1), transform .46s ease-in; }
.scene-stomp .pz-veg.pz-fly.pz-go { transform: rotate(-220deg) scale(.4); }

/* カゴ（左下の土の上）と収穫の山 */
.scene-stomp .pz-basket { position: absolute; z-index: 2; left: 3%; bottom: 6%; width: 26cqw; max-width: 140px; height: 15cqw; max-height: 80px; box-sizing: border-box;
  border: 3px solid #5d4037; border-radius: 6px 6px 40% 40% / 6px 6px 60% 60%; background: #e0a84a; }
.scene-stomp .pz-weave { position: absolute; inset: 3px; border-radius: inherit;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(93,64,55,.35) 7px 9px), repeating-linear-gradient(0deg, transparent 0 7px, rgba(93,64,55,.25) 7px 9px); }
/* カゴの中の野菜（畑と同じ .pz-veg を小さくしたもの）。.pz-pile はカゴのふちの上の箱で、下（ふち）で切るので根の先はカゴの中にかくれる */
.scene-stomp .pz-pile { position: absolute; left: 4%; right: 4%; bottom: calc(100% + 3px); height: 40cqw; clip-path: inset(-10cqw -6% 0 -6%); }
.scene-stomp .pz-mini { position: absolute; width: 0; height: 0; transform: rotate(var(--r, 0deg)) scale(var(--s, .3)); animation: pz-plop .25s ease-out; }
.scene-stomp .pz-mini .pz-veg { transition: none; }
@keyframes pz-plop { 0% { translate: 0 -3cqw; } 100% { translate: 0 0; } }
.scene-stomp .pz-count { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); padding: 1px 8px; border: 3px solid #5d4037; border-radius: 999px;
  background: #fff; color: #5d4037; font-weight: 900; font-size: clamp(12px, 3.4cqw, 16px); white-space: nowrap; }
.scene-stomp .pz-count b { color: #e65100; font-size: 1.2em; }
.scene-stomp .pz-basket.pz-got { animation: pz-got .3s ease-out; }
@keyframes pz-got { 0% { transform: scale(1.15, .85); } 60% { transform: scale(.95, 1.06); } 100% { transform: none; } }

/* 吹き出し：合図（ポン・ドン・ポコ…）とかけ声（よい・しょ…） */
.scene-stomp .pz-bubble { position: absolute; padding: 2px 10px; border: 3px solid #3e2723; border-radius: 999px; background: #fff; color: #3e2723;
  font-weight: 900; font-size: clamp(14px, 4.4cqw, 22px); white-space: nowrap; animation: pz-bubble .5s ease-out forwards; }
.scene-stomp .pz-bubble.pz-b-call { left: calc(50% + 7cqw); bottom: calc(58% + 27cqw); background: #fff59d; }
.scene-stomp .pz-bubble.pz-b-pull { left: calc(50% + 14cqw); bottom: calc(58% + 12cqw); }
@keyframes pz-bubble { 0% { transform: scale(.4); opacity: 1; } 25% { transform: scale(1.1); } 40% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .scene-stomp .pz-sigure, .scene-stomp .pz-veg *, .scene-stomp .pz-bubble { animation-duration: .01s !important; } }
