/* 무대는 1600×1000 고정, 화면 크기에 맞춰 통째로 늘리고 줄인다(game.js fit()). */
:root {
  --ink: #4a2f22; --cream: #fff4df; --wood: #c98d55; --wood-dark: #8f5a31; --pink: #f28bb5; --mint: #6fd3b5;
  --font: 'Jua', 'Gowun Dodum', 'Noto Sans KR', system-ui, sans-serif;
}
@font-face { font-family: 'Jua'; src: url('../img/Jua-Regular.ttf') format('truetype'); font-display: swap; }
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #2b1d16; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
body { font-family: var(--font); color: var(--ink); word-break: keep-all; overflow-wrap: break-word; }
button { font-family: inherit; color: inherit; border: 0; cursor: pointer; }
#frame { position: fixed; inset: 0; overflow: hidden; }
#stage { position: absolute; left: 50%; top: 50%; width: 1600px; height: 1000px; transform-origin: center; overflow: hidden; background: var(--cream); flex: none; }

/* 배경 */
#wall { position: absolute; inset: 0; background: #fff4df center / cover no-repeat; }
#sign { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; z-index: 1; }
#sign #signImg { height: 96px; margin: -20px -14px -10px 0; position: relative; z-index: 1; filter: drop-shadow(0 4px 0 rgba(0,0,0,.12)); }
#sign #signText { font-size: 40px; background: #fff; border: 6px solid var(--wood-dark); border-radius: 28px; padding: 4px 26px; box-shadow: 0 6px 0 rgba(0,0,0,.12); white-space: nowrap; }
.light { position: absolute; top: 0; height: 110px; max-width: 270px; object-fit: contain; pointer-events: none; z-index: 1; }
#lightL { left: 350px; } #lightR { right: 350px; transform: scaleX(-1); }
.plant { position: absolute; top: 150px; height: 150px; pointer-events: none; z-index: 1; }
#plantL { left: 14px; } #plantR { right: 14px; }

/* 위 막대 */
#topbar { position: absolute; left: 24px; right: 96px; top: 20px; height: 96px; display: flex; align-items: center; gap: 18px; pointer-events: none; }
#topbar > * { pointer-events: auto; }
.pill { background: #fff; border: 5px solid var(--ink); border-radius: 999px; padding: 6px 26px; font-size: 44px; box-shadow: 0 5px 0 rgba(0,0,0,.15); }
#dayDots { display: flex; gap: 10px; margin-right: auto; }
#dayDots i { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); }
#dayDots i.done { background: #ffd34d; }
#dayDots { margin-left: 8px; }
#topbar #dayDots { margin-right: auto; }
.round { width: 92px; height: 92px; border-radius: 50%; background: #fff; border: 5px solid var(--ink); font-size: 48px; box-shadow: 0 6px 0 rgba(0,0,0,.18); display: grid; place-items: center; }
.round:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.round.mini { width: 72px; height: 72px; font-size: 36px; }
#btnDex { margin-left: 0; }
#parentZone { position: absolute; right: 0; top: 0; width: 70px; height: 70px; z-index: 50; }

/* 인물(그림 확정 전 자리 표시) */
.person { position: absolute; pointer-events: none; filter: drop-shadow(0 8px 0 rgba(0,0,0,.12)); transform-origin: bottom center; }
#chef { left: 20px; top: 330px; height: 430px; z-index: 3; }
#oppa { left: 300px; top: 300px; height: 390px; z-index: 1; }
#oppa.talk, #chef.hop { animation: bob .4s 2; }

/* 말풍선 */
.bubble { position: absolute; background: #fff; border: 6px solid var(--ink); border-radius: 44px; box-shadow: 0 8px 0 rgba(0,0,0,.12); }
.bubble.small { left: 300px; top: 150px; max-width: 420px; padding: 16px 24px; font-size: 34px; line-height: 1.3; z-index: 6; text-wrap: pretty; }
#orderBubble { right: 300px; top: 130px; width: 560px; min-height: 230px; padding: 22px 26px 22px 26px; display: grid; place-items: center; z-index: 4; }
#orderBubble::after { content: ''; position: absolute; right: -40px; top: 50px; border: 26px solid transparent; border-left: 40px solid var(--ink); }
#btnReplay { position: absolute; left: -24px; bottom: -24px; }
#orderBody { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: 60px; }
#orderBody .hidden-card { font-size: 90px; }
#orderBody .bigtext { font-size: 120px; line-height: 1; letter-spacing: 6px; }
#orderBody .mathtext { font-size: 110px; line-height: 1; }
#orderBody .group { display: flex; flex-wrap: wrap; gap: 4px; max-width: 470px; justify-content: center; align-items: center; }
#orderBody .times { font-size: 44px; }
#orderBody .op { font-size: 70px; padding: 0 6px; }
#orderBody .crossed { position: relative; opacity: .5; }
#orderBody .crossed::after { content: '✕'; position: absolute; inset: 0; display: grid; place-items: center; color: #e33; font-size: 80px; }

/* 손님 */
#customer { position: absolute; right: 30px; top: 300px; width: 280px; height: 300px; display: grid; place-items: end center; z-index: 3; }
#monster { width: 270px; height: 270px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 0 rgba(0,0,0,.12)); transform-origin: bottom center; }
#monster.enter { animation: enter .6s ease-out; }
#monster.leave { animation: leave .6s ease-in forwards; }
#monster.eat { animation: eat .5s 3; }
#monster.wiggle { animation: wiggle .4s 2; }

/* 요리판 */
#board { position: absolute; left: 470px; top: 400px; width: 700px; height: 380px; z-index: 2; }
#board .counter { position: absolute; inset: 120px -100px -40px -100px; background: var(--wood); border-top: 10px solid var(--wood-dark); border-radius: 20px; }
#board .base { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
img.base { object-fit: contain; filter: drop-shadow(0 8px 0 rgba(0,0,0,.15)); }
.base.dough { width: 360px; height: 330px; top: -20px !important; }
.base.cookie { width: 340px; height: 330px; top: -20px !important; }
.base.seaweed { width: 380px; height: 320px; top: -20px !important; }
.base.cone { width: 150px; height: 200px; top: auto !important; bottom: 10px; }
.base.plate { width: 560px; height: 300px; border-radius: 50%; background: #fff; border: 6px solid var(--ink); box-shadow: inset 0 0 0 26px #f2ecf7; }
#board .placed { position: absolute; transform: translate(-50%, -50%); animation: plop .25s ease-out; z-index: 3; }
#board .slots { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); display: flex; gap: 14px; z-index: 3; }
#board .slot { width: 120px; height: 120px; border-radius: 26px; border: 5px dashed var(--ink); background: rgba(255,255,255,.7); display: grid; place-items: center; position: relative; }
#board .slot.fixed { border-style: solid; background: #fff; }
#board .slot .guide { position: absolute; font-size: 80px; opacity: .18; }
#board .slot.q { font-size: 80px; color: var(--pink); }

/* 재료 */
.item { width: 100px; height: 100px; display: grid; place-items: center; font-size: 66px; line-height: 1; position: relative; pointer-events: none; }
.item > img { width: 100%; height: 100%; object-fit: contain; }
.item.scoop-img { width: 130px; }
.item.letter-img { background: url(../img/letter_tile.webp) center / contain no-repeat; }
.item.letter-img .em { font-size: 60px; color: var(--ink); margin-top: 4px; }
.item .chip { position: absolute; inset: 6px; border-radius: 50%; border: 5px solid var(--ink); }
.item .em { position: relative; }
.item.shape-circle .chip { border-radius: 50%; }
.item.shape-square .chip { border-radius: 10px; inset: 12px; }
.item.shape-triangle .chip { border: 0; inset: 4px; clip-path: polygon(50% 4%, 96% 92%, 4% 92%); }
.item.scoop .chip { border-radius: 50% 50% 40% 40%; }
.item.letter { width: 104px; height: 104px; }
.item.letter .chip { border-radius: 24px; background: #f2c27f; }
.item.letter .em { font-size: 64px; color: var(--ink); }
.item.word { width: 220px; height: 100px; }
.item.word .chip { border-radius: 24px; background: #fff; }
.item.word .em { font-size: 52px; }

#tray { position: absolute; left: 30px; right: 30px; bottom: 18px; height: 210px; display: flex; justify-content: center; gap: 22px; z-index: 5; padding: 14px; background: var(--wood-dark); border-radius: 34px; box-shadow: inset 0 8px 0 rgba(0,0,0,.2); }
.bin { width: 230px; height: 180px; background: #fff7ea; border: 5px solid var(--ink); border-radius: 28px; display: grid; place-items: center; touch-action: none; box-shadow: 0 6px 0 rgba(0,0,0,.2); position: relative; }
.bin:active { transform: translateY(3px); }
.bin.glow { animation: glow 0.8s infinite; }
.bin.used { opacity: .35; }
.bin.wide { width: 290px; }
.ghost { position: absolute; z-index: 40; pointer-events: none; transform: translate(-50%, -50%) scale(1.15); }
.bounce { animation: bounceBack .45s ease-in forwards; }

/* 덮개 화면 */
#overlay { position: absolute; inset: 0; z-index: 30; background: rgba(60, 35, 20, .55); display: grid; place-items: center; }
.panel { background: #fff8ec; border: 8px solid var(--ink); border-radius: 50px; padding: 40px 50px; min-width: 900px; max-width: 1400px; text-align: center; box-shadow: 0 14px 0 rgba(0,0,0,.2); }
.panel h2 { font-size: 72px; margin: 0 0 20px; font-weight: 400; text-wrap: balance; }
.panel .row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.big-btn { font-size: 52px; padding: 22px 56px; border-radius: 999px; background: #ffd34d; border: 6px solid var(--ink); box-shadow: 0 8px 0 rgba(0,0,0,.2); }
.big-btn.alt { background: #fff; }
.big-btn:active { transform: translateY(5px); box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.title-name { font-size: 110px; line-height: 1.1; margin: 0; font-weight: 400; text-wrap: balance; }
.title-sub { font-size: 40px; margin: 16px 0 34px; }

/* 도감 */
.dex { display: grid; grid-template-columns: repeat(6, 170px); gap: 22px; justify-content: center; }
.dex button { width: 170px; height: 190px; border-radius: 30px; border: 5px solid var(--ink); background: #fff; display: grid; place-items: center; font-size: 90px; padding: 0; }
.dex button span { font-size: 28px; display: block; }
.dex button.unknown { background: #e9ddd0; color: #b9a48f; }

/* 꾸미기 */
.decor-tabs { display: flex; gap: 14px; justify-content: center; margin-bottom: 22px; }
.decor-tabs button { font-size: 38px; padding: 10px 28px; border-radius: 999px; border: 5px solid var(--ink); background: #fff; }
.decor-tabs button.on { background: #ffd34d; }
.decor-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.decor-grid button { width: 180px; height: 180px; border-radius: 30px; border: 6px solid var(--ink); position: relative; font-size: 90px; display: grid; place-items: center; background: #fff; padding: 0; }
.decor-grid button.on { outline: 10px solid #ffd34d; }
.decor-grid .price { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); background: #fff; border: 4px solid var(--ink); border-radius: 999px; font-size: 28px; padding: 0 12px; white-space: nowrap; }

/* 알 퍼즐 */
.puzzle-area { position: relative; width: 1300px; height: 760px; }
.puzzle-target { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 6px dashed var(--ink); border-radius: 24px; background: rgba(255,255,255,.6); }
.piece { position: absolute; border: 3px solid rgba(74,47,34,.6); border-radius: 10px; touch-action: none; box-shadow: 0 6px 0 rgba(0,0,0,.18); background-repeat: no-repeat; }
.piece.done { box-shadow: none; border-color: transparent; border-radius: 0; z-index: 0 !important; }

/* 부모 메뉴 */
.parent { text-align: left; font-family: system-ui, sans-serif; font-size: 26px; min-width: 980px; }
.parent h2 { font-family: var(--font); }
.parent label { display: flex; align-items: center; gap: 16px; margin: 12px 0; }
.parent input[type=range] { width: 360px; }
.parent .lv { display: inline-flex; gap: 8px; align-items: center; margin-right: 28px; }
.parent .lv button { font-size: 26px; width: 48px; height: 48px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; }

.confetti { position: absolute; font-size: 60px; z-index: 35; pointer-events: none; animation: fall 1.6s ease-in forwards; }

@keyframes plop { from { transform: translate(-50%, -50%) scale(.3); } 70% { transform: translate(-50%, -50%) scale(1.2); } }
@keyframes bob { 50% { transform: scale(.8) translateY(-14px); } }
@keyframes enter { from { transform: translateX(400px) rotate(10deg); } 70% { transform: translateX(-20px); } }
@keyframes leave { to { transform: translateX(500px) rotate(15deg); opacity: 0; } }
@keyframes eat { 50% { transform: scale(1.12, .9); } }
@keyframes wiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes glow { 50% { box-shadow: 0 0 0 14px #ffe34d, 0 6px 0 rgba(0,0,0,.2); transform: scale(1.05); } }
@keyframes bounceBack { 30% { transform: translate(-50%, -80%) scale(1.15); } to { transform: translate(var(--bx), var(--by)) scale(.6); opacity: 0; } }
@keyframes fall { from { transform: translateY(-100px) rotate(0); } to { transform: translateY(1100px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; } }

/* 그림 넣은 뒤 추가 */
.dex button img { width: 130px; height: 120px; object-fit: contain; }
.dex button.unknown img { opacity: .55; filter: grayscale(.4); }
.decor-grid button img { width: 150px; height: 150px; object-fit: contain; }
.decor-grid button { font-size: 34px; }
.egg-wiggle { height: 70px; vertical-align: middle; animation: wiggle .5s infinite; }
.hatch-egg { height: 380px; animation: wiggle .3s infinite; }
.hatch-mon { height: 400px; animation: plopIn .6s ease-out; filter: drop-shadow(0 10px 0 rgba(0,0,0,.15)); }
@keyframes plopIn { from { transform: scale(.2); } 70% { transform: scale(1.12); } }
.puzzle-ghost { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; border-radius: 18px; pointer-events: none; }

/* ===== 놀이 마을(2판) ===== */
#sceneRoot, #sceneRoot > .scene { position: absolute; inset: 0; }
.bg { position: absolute; inset: 0; background: center / cover no-repeat; }
.bg.sky { background: linear-gradient(#a8dcff, #e6f6ff 60%, #fff3d6); }
.bg-dim { position: absolute; inset: 0; background: rgba(255, 250, 240, .5); }
#hud { position: absolute; left: 24px; top: 20px; display: flex; gap: 16px; align-items: center; z-index: 25; pointer-events: none; }
#hud > * { pointer-events: auto; }
.scene-cook #topbar { left: 300px; }
#overlay { z-index: 40; }
.puff { position: absolute; font-size: 54px; pointer-events: none; animation: puffUp 1s ease-out forwards; z-index: 30; }
.fart-cloud { position: absolute; font-size: 110px; pointer-events: none; animation: drift 1.4s ease-out forwards; z-index: 30; }

/* 말랑이 방 */
.hub-pet { position: absolute; left: 545px; top: 270px; width: 510px; height: 510px; object-fit: contain; z-index: 5; filter: drop-shadow(0 12px 0 rgba(0,0,0,.12)); transform-origin: bottom center; touch-action: none; }
.game-btn { position: absolute; width: 150px; height: 150px; border-radius: 50%; padding: 0; background: none; clip-path: circle(49%); z-index: 6; filter: drop-shadow(0 6px 0 rgba(0,0,0,.18)); }
.game-btn img { width: 100%; height: 100%; object-fit: contain; }
.game-btn.L { left: 40px; } .game-btn.R { right: 40px; }
.game-btn:active { transform: scale(.94); }
.dex-btn { position: absolute; top: 20px; right: 110px; z-index: 6; }
.plate { position: absolute; left: 1060px; top: 770px; width: 360px; height: 120px; border-radius: 50%; background: radial-gradient(#fff 55%, #f1e4d6 56%); border: 6px solid var(--ink); z-index: 6; }
.snack { position: absolute; top: -20px; width: 105px; height: 105px; object-fit: contain; z-index: 7; touch-action: none; filter: drop-shadow(0 5px 0 rgba(0,0,0,.15)); }
.snack.flying { z-index: 45; }
.snack.lift, .tool.lift, .wear-item.lift { transform: scale(1.15); }
.mic-btn { position: absolute; left: 245px; top: 790px; z-index: 6; }
.mic-btn.on { background: #ff8fc1; animation: glowMic 1.2s infinite; }
.mic-btn.off { opacity: .35; }
.hub-egg { position: absolute; left: 330px; top: 560px; height: 190px; z-index: 6; animation: wiggle .6s infinite; }

/* 목욕 */
.bath-pet { position: absolute; left: 590px; top: 270px; width: 420px; height: 420px; object-fit: contain; z-index: 4; transform-origin: bottom center; }
.bath-pet.shine { filter: drop-shadow(0 0 30px #fff7a8) brightness(1.08); }
.tub-front { position: absolute; inset: 0; background: center / 1600px 1000px no-repeat; z-index: 8; pointer-events: none;
  clip-path: polygon(296px 588px, 1344px 588px, 1336px 690px, 1270px 790px, 1160px 850px, 440px 850px, 340px 790px, 304px 690px); }
.foam { position: absolute; z-index: 7; pointer-events: none; animation: bob 2.4s infinite; }
.mud { position: absolute; width: 110px; height: 110px; object-fit: contain; z-index: 5; pointer-events: none; transition: opacity .2s; }
.bubble { position: absolute; z-index: 6; pointer-events: none; animation: plopIn .3s ease-out; }
.bubble.rinse { opacity: 0; transform: translateY(40px); transition: all .4s; }
.drop { position: absolute; width: 16px; height: 26px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #6cc4ff; z-index: 9; pointer-events: none; animation: dropFall .6s ease-in forwards; }
.sparkle { position: absolute; width: 80px; height: 80px; z-index: 9; pointer-events: none; animation: plopIn .5s ease-out; }
.tool { position: absolute; width: 140px; height: 140px; object-fit: contain; z-index: 20; touch-action: none; filter: drop-shadow(0 6px 0 rgba(0,0,0,.15)); }
.tool.floating { animation: bob 1.4s infinite; z-index: 9; }

/* 숨바꼭질 */
.hide-prop { position: absolute; width: 240px; height: 200px; object-fit: contain; transition: transform .45s cubic-bezier(.3,1.6,.5,1), opacity .45s; touch-action: none; filter: drop-shadow(0 8px 0 rgba(0,0,0,.15)); }
.hide-prop.lifted { transform: translate(90px, -120px) rotate(14deg) scale(.8); opacity: .75; pointer-events: none; }
.hidden-thing { position: absolute; width: 190px; height: 170px; object-fit: contain; opacity: 0; transform: scale(.3); transition: all .4s cubic-bezier(.3,1.6,.5,1); }
.hidden-thing.small { width: 130px; height: 120px; }
.hidden-thing.peek { opacity: 1; transform: scale(1); }
.hidden-thing.dance { animation: dance 0.5s infinite; }

/* 풍선 */
.balloon { position: absolute; bottom: -260px; width: 150px; height: 185px; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.75) 0 10%, var(--c) 11%); border: 5px solid rgba(74,47,34,.55); animation: rise linear forwards; display: grid; place-items: center; z-index: 5; touch-action: none; }
.balloon::after { content: ''; position: absolute; left: 50%; top: 100%; width: 3px; height: 90px; background: rgba(74,47,34,.5); }
.balloon span { font-size: 76px; color: #fff; -webkit-text-stroke: 4px #4a2f22; paint-order: stroke; pointer-events: none; }
.balloon.popped { animation-play-state: paused; transform: scale(1.4); opacity: 0; transition: all .25s; }
.balloon.big { left: 50%; bottom: 200px; width: 300px; height: 370px; animation: none; transform-origin: bottom center; transition: transform .15s; }
.shard { position: absolute; width: 26px; height: 26px; border-radius: 50%; z-index: 6; pointer-events: none; animation: shard .55s ease-out forwards; }

/* 퍼즐 */
.pz-gallery { position: absolute; left: 50%; top: 170px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, 360px); gap: 34px; z-index: 5; }
.pz-thumb { width: 360px; height: 240px; border-radius: 26px; border: 8px solid var(--ink); background: #fff center / cover; box-shadow: 0 8px 0 rgba(0,0,0,.18); padding: 0; }
.pz-thumb:active { transform: scale(.96); }
.pz-area { position: absolute; inset: 0; z-index: 5; }
.pz-target { position: absolute; border: 6px dashed var(--ink); border-radius: 18px; background: rgba(255,255,255,.65); }
.pz-target.pz-win { border-style: solid; box-shadow: 0 0 0 12px #ffe34d; }
.pz-mon { position: absolute; left: 50%; top: 260px; height: 380px; transform: translateX(-50%); animation: plopIn .6s ease-out, bob 1s .6s infinite; z-index: 60; }

/* 옷 입히기 */
.model-holder { position: absolute; left: 530px; top: 220px; width: 540px; height: 540px; z-index: 5; }
.model { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 0 rgba(0,0,0,.12)); }
.worn { position: absolute; width: 180px; height: 140px; object-fit: contain; z-index: 2; touch-action: none; animation: plopIn .3s ease-out; }
.wear-item { position: absolute; width: 170px; height: 130px; object-fit: contain; z-index: 20; touch-action: none; filter: drop-shadow(0 5px 0 rgba(0,0,0,.15)); }
.arrow { position: absolute; top: 450px; z-index: 6; }
.arrow.L { left: 400px; } .arrow.R { right: 400px; }
.cam-btn { position: absolute; top: 20px; right: 110px; z-index: 6; }
.flash { position: absolute; inset: 0; background: #fff; z-index: 50; animation: flash .45s ease-out forwards; pointer-events: none; }
.polaroid { position: absolute; left: 640px; top: 250px; width: 320px; height: 320px; background: center / cover; border: 16px solid #fff; border-bottom-width: 50px; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 51; animation: polaroid 2.6s ease-in forwards; pointer-events: none; }

/* 그림 그리기 */
.paper { position: absolute; left: 200px; top: 110px; width: 1200px; height: 780px; border-radius: 24px; border: 8px solid var(--ink); box-shadow: 0 10px 0 rgba(0,0,0,.15); touch-action: none; z-index: 5; background: #fffdf7; }
.paper.dancing { animation: paperDance .5s 5; }
.palette, .stamps { position: absolute; top: 120px; display: flex; flex-direction: column; gap: 6px; z-index: 6; }
.palette { left: 50px; } .stamps { right: 40px; }
.paint-col, .stamp { width: 84px; height: 80px; border-radius: 22px; border: 5px solid var(--ink); padding: 0; background: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.stamp img { width: 64px; height: 64px; object-fit: contain; }
.paint-col.on, .stamp.on { outline: 7px solid #ffd34d; transform: scale(1.08); }
.paint-done { position: absolute; top: 20px; right: 110px; z-index: 6; }
.paint-clear { position: absolute; top: 20px; right: 220px; z-index: 6; }

/* 음악회 */
.band-mate { position: absolute; top: 230px; width: 260px; height: 400px; z-index: 5; touch-action: none; transform-origin: bottom center; }
.band-mon { width: 240px; height: 260px; object-fit: contain; filter: drop-shadow(0 8px 0 rgba(0,0,0,.15)); }
.band-ins { position: absolute; right: -10px; bottom: 20px; width: 140px; height: 130px; object-fit: contain; }
.band-mate.dance { animation: dance .45s infinite; }
.xylo { position: absolute; left: 300px; top: 670px; width: 1000px; display: flex; gap: 12px; align-items: flex-start; z-index: 6; }
.xkey { flex: 1; border: 6px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 rgba(0,0,0,.2); padding: 0; }
.xkey.lit { filter: brightness(1.35); box-shadow: 0 0 0 10px #fff7a8, 0 6px 0 rgba(0,0,0,.2); }
.mus-btn { position: absolute; top: 20px; z-index: 6; }
.mus-btn.b1 { right: 110px; } .mus-btn.b2 { right: 220px; } .mus-btn.b3 { right: 330px; }
.mus-btn.on { background: #ffd34d; }

/* 움직임 */
.squish { animation: squish .35s; } .jolt { animation: jolt .4s; } .chomp { animation: squish .2s 3; }
.spin { animation: spin 1.1s ease-in-out; } .dance { animation: dance .5s infinite; } .dance1 { animation: dance .45s 1; } .press { animation: squish .2s; }
@keyframes squish { 30% { transform: scale(1.12, .86); } 60% { transform: scale(.94, 1.08); } }
@keyframes jolt { 20% { transform: translateY(-40px); } 40% { transform: translateY(0); } 60% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(720deg); } }
@keyframes dance { 25% { transform: rotate(-8deg) translateY(-12px); } 75% { transform: rotate(8deg) translateY(-12px); } }
@keyframes puffUp { to { transform: translateY(-120px); opacity: 0; } }
@keyframes drift { from { transform: scale(.4); opacity: 1; } to { transform: translate(80px, -120px) scale(1.6); opacity: 0; } }
@keyframes glowMic { 50% { box-shadow: 0 0 0 16px rgba(255,143,193,.45), 0 6px 0 rgba(0,0,0,.18); } }
@keyframes dropFall { to { transform: translateY(160px); opacity: 0; } }
@keyframes rise { 0% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-700px) rotate(3deg); } 100% { transform: translateY(-1400px) rotate(-3deg); } }
@keyframes shard { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }
@keyframes polaroid { 0% { transform: scale(.4) rotate(-10deg); opacity: 0; } 15% { transform: scale(1) rotate(-4deg); opacity: 1; } 70% { transform: scale(1) rotate(-4deg); } 100% { transform: translate(560px, -360px) scale(.25) rotate(10deg); opacity: 0; } }
@keyframes paperDance { 25% { transform: rotate(-1.5deg) scale(1.02); } 75% { transform: rotate(1.5deg) scale(1.02); } }
