/* ゲーム5「ポンポンボール」の絵。すべて .scene-bounce の下に閉じる */
.scene-bounce { background: linear-gradient(#efe4ff 0, #d9c2ff 70%, #8338ec 70%, #6a1fd0 100%); }
.scene-bounce .bounce-stage { position: relative; width: 100%; height: 100%; min-height: 320px; overflow: hidden; pointer-events: none; }
/* 背景の水玉 */
.scene-bounce .bounce-sky { position: absolute; inset: 0 0 30% 0; opacity: .5;
  background: radial-gradient(circle, #fff 0 7px, transparent 8px) 0 0/64px 64px, radial-gradient(circle, #fff 0 4px, transparent 5px) 32px 32px/64px 64px; }
.scene-bounce .bounce-floor { position: absolute; left: 0; right: 0; top: 70%; height: 5px; background: var(--ink, #1b1340); }
/* マス（left は JS が中心の % を書く）。上面が 72% */
.scene-bounce .bounce-pad { position: absolute; top: 72%; width: 12%; height: 26px; margin-left: -6%; transform-origin: 50% 0;
  background: #fff; border: 4px solid var(--ink, #1b1340); border-radius: 8px; box-shadow: 0 5px 0 var(--ink, #1b1340);
  animation: bounce-lay .25s cubic-bezier(.2,.9,.3,1.3) both; }
.scene-bounce .bounce-pad.bounce-red { background: #ef476f; }
.scene-bounce .bounce-pad.bounce-red::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px;
  border-radius: 50%; background: #fff; }
.scene-bounce .bounce-pad.bounce-fast:not(.bounce-red) { background: #ffd166; }
@keyframes bounce-lay { 0% { transform: translateY(30px) scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* 白マスに乗った：ぐっと沈む */
.scene-bounce .bounce-pad.bounce-squish { animation: bounce-squish .2s ease-out; }
@keyframes bounce-squish { 0% { transform: translateY(6px) scale(1.08, .75); } 100% { transform: none; } }
/* 当たり：赤マスが光る */
.scene-bounce .bounce-pad.bounce-glow { animation: bounce-glow .45s ease-out; }
@keyframes bounce-glow { 0% { transform: translateY(6px) scale(1.15, .8); background: #ffe14d; box-shadow: 0 0 0 10px rgba(255,225,77,.8), 0 5px 0 var(--ink, #1b1340); }
  100% { transform: none; box-shadow: 0 0 0 26px rgba(255,225,77,0), 0 5px 0 var(--ink, #1b1340); } }
/* ミス：赤マスが灰色にしぼむ */
.scene-bounce .bounce-pad.bounce-dud { animation: bounce-dud .5s ease-out; }
@keyframes bounce-dud { 0%, 60% { background: #9a92b0; } 100% { background: #ef476f; } }
/* ボール（left/top/transform/opacity は JS。下端がマスの上面に乗る） */
.scene-bounce .bounce-ball { position: absolute; width: 9%; max-width: 46px; aspect-ratio: 1; border-radius: 50%; transform-origin: 50% 100%;
  background: radial-gradient(circle at 35% 30%, #fff 0 14%, #ff9f1c 15% 100%); border: 4px solid var(--ink, #1b1340); }
.scene-bounce .bounce-ball.bounce-ball-fast { background: radial-gradient(circle at 35% 30%, #fff 0 14%, #06d6a0 15% 100%); }
/* しぐれちゃん（赤マスの右） */
.scene-bounce .bounce-sigure { position: absolute; left: 72%; bottom: 28%; width: 30%; max-width: 170px; transform-origin: 50% 100%;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); }
.scene-bounce .bounce-sigure.bounce-hop { animation: bounce-hop .3s cubic-bezier(.2,.9,.3,1.2); }
.scene-bounce .bounce-sigure.bounce-hurt { animation: bounce-hurt .5s ease-out; }
.scene-bounce .bounce-sigure.bounce-twitch { animation: bounce-twitch .18s; }
@keyframes bounce-hop { 0% { transform: none; } 35% { transform: translateY(-14%) scale(.95, 1.06); } 80% { transform: scale(1.05, .95); } 100% { transform: none; } }
@keyframes bounce-hurt { 0%, 100% { transform: none; } 20% { transform: translateX(10%) rotate(8deg); } 50% { transform: translateX(-5%) rotate(-4deg); } }
@keyframes bounce-twitch { 50% { transform: translateY(-4%); } }
@media (prefers-reduced-motion: reduce) { .scene-bounce .bounce-sigure.bounce-hurt, .scene-bounce .bounce-sigure.bounce-hop { animation: none; } }
