/* 상디 방 진열장. v5c.css 의 .btn 키트 위에서 동작 */
.sh{position:absolute;inset:0;z-index:60;overflow:hidden;background:#1a0f08;font-family:var(--sans,"GowunBatang",serif);color:#f7ecd6;user-select:none;-webkit-user-select:none;animation:shlshIn .45s ease both}
.sh.out{opacity:0;transition:opacity .2s}
@keyframes shlshIn{from{opacity:0}to{opacity:1}}
.sh *{box-sizing:border-box}
.sh-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.sh-shade{position:absolute;inset:0;background:linear-gradient(#0007,#0000 18%,#0000 60%,#000b);pointer-events:none}
.sh-title{position:absolute;top:12px;left:0;right:0;display:flex;justify-content:center;z-index:5;pointer-events:none}
.sh-title span{width:210px;height:50px;padding-top:21px;text-align:center;background:url(../assets/ui/ribbon_name.webp) 0 0/100% 100% no-repeat;color:#3a2210;font:700 15px/1 var(--serif,"GowunBatang",serif)}
.sh-count{position:absolute;top:66px;right:14px;z-index:5;font-size:12px;color:#ffe9a8;text-shadow:0 1px 3px #000;pointer-events:none}
.sh-count b{font-size:14px}
/* 선반 영역(세로 스크롤 = 물건이 늘면 단이 늘어남) */
.sh-scroll{position:absolute;left:0;right:0;top:84px;height:496px;overflow-y:auto;overflow-x:hidden;z-index:3;scrollbar-width:none;touch-action:pan-y;overscroll-behavior:contain}
.sh-scroll::-webkit-scrollbar{display:none}
.sh-shelf{padding:6px 8px 14px}
.sh-row{position:relative;height:122px}
.sh-slots{position:absolute;left:14px;right:14px;bottom:16px;height:100px;display:flex;justify-content:space-between;z-index:2}
.sh-plank{position:absolute;left:0;right:0;bottom:0;width:100%;height:auto;filter:drop-shadow(0 6px 5px #000a)}
.sh-slot{position:relative;width:80px;height:100px;padding:0;border:0;background:none;display:flex;align-items:flex-end;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sh-slot.empty{cursor:default}
.sh-slot.empty i{width:46px;height:12px;margin-bottom:-4px;border-radius:50%;background:#0006;box-shadow:inset 0 2px 4px #000a}
.sh-ico{position:relative;z-index:2;max-width:76px;max-height:76px;margin-bottom:-2px;object-fit:contain;transform:rotate(var(--tilt,0deg));transform-origin:50% 100%;filter:drop-shadow(0 5px 3px #0009);animation:shlshDrop .5s var(--d,0ms) cubic-bezier(.34,1.56,.64,1) both;transition:transform .15s}
.sh-slot.k-dream .sh-ico{width:78px;height:56px;max-height:56px;object-fit:cover;border:3px solid #c9a24f;border-radius:6px;outline:2px solid #5a3a14;margin-bottom:2px}
.sh-slot:active .sh-ico{transform:rotate(var(--tilt,0deg)) scale(1.08) translateY(-3px)}
@keyframes shlshDrop{from{opacity:0;transform:translateY(-26px) rotate(var(--tilt,0deg))}}
.sh-glow{position:absolute;left:50%;bottom:6px;width:90px;height:90px;margin-left:-45px;border-radius:50%;background:radial-gradient(#ffd27a00 40%,#ffd27a00 70%);pointer-events:none;z-index:1}
.sh-slot.is-new .sh-glow{background:radial-gradient(#ffe9a8aa,#ffd27a55 45%,#ffd27a00 70%);animation:shlshGlow 1.8s ease-in-out infinite}
@keyframes shlshGlow{50%{transform:scale(1.18);opacity:.65}}
.sh-new{position:absolute;z-index:4;top:-2px;right:-2px;padding:2px 6px;border-radius:99px;background:#d9432e;border:1.5px solid #ffe9a8;color:#fff;font:700 10px/1.2 var(--sans,sans-serif);font-style:normal;letter-spacing:.5px;box-shadow:0 2px 4px #000a;animation:shlshNew 1.1s ease-in-out infinite}
@keyframes shlshNew{50%{transform:scale(1.12) rotate(-4deg)}}
.sh-sp{position:absolute;z-index:4;width:12px;height:12px;pointer-events:none;background:#fff;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);filter:drop-shadow(0 0 4px #ffe9a8);animation:shlshTw 1.6s ease-in-out infinite}
.sh-sp.a{left:6px;top:14px}.sh-sp.b{right:4px;top:40px;animation-delay:.5s;width:9px;height:9px}.sh-sp.c{left:18px;top:2px;animation-delay:1s;width:8px;height:8px}
@keyframes shlshTw{0%,100%{opacity:0;transform:scale(.3) rotate(0)}50%{opacity:1;transform:scale(1) rotate(45deg)}}
.sh-fade{position:absolute;left:0;right:0;top:540px;height:44px;z-index:4;background:linear-gradient(#0000,#000a);pointer-events:none}
/* 상디 + 말풍선 */
.sh-sanji{position:absolute;left:-8px;bottom:0;width:200px;height:262px;overflow:hidden;z-index:6}
.sh-sanji img{position:absolute;left:0;top:6px;width:200px;height:auto;filter:drop-shadow(0 0 14px #000a)}
.sh-bub{position:absolute;left:150px;right:12px;bottom:78px;z-index:7;min-height:92px;padding:12px 12px 12px 58px;border-radius:16px 16px 16px 3px;background:var(--parch,#f0e1bc);border:2px solid #c9a24f;color:#3a2210;box-shadow:0 6px 12px #000a}
.sh-bub.talk{animation:shlPop .4s cubic-bezier(.34,1.56,.64,1) both}
@keyframes shlPop{from{transform:scale(.88);opacity:.2}}
.sh-bub p{margin:0;font-size:13px;line-height:1.5;word-break:keep-all}
.sh-face{position:absolute;left:-26px;top:-20px;width:60px;height:60px;border-radius:50%;border:3px solid #c9a24f;background:#f0e1bc 35% 33%/300% auto no-repeat;box-shadow:0 3px 6px #000a}
.sh-face[data-face^=heart]::after{content:"";position:absolute;inset:-3px;border-radius:50%;box-shadow:0 0 12px 2px #ff6b9a99}
.sh-close{position:absolute;right:12px;bottom:14px;z-index:8;width:130px;min-height:46px;font-size:15px}
/* 물건 카드 */
.sh-cardwrap{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;background:#000a;animation:shlshIn .25s ease both}
.sh-card{position:relative;width:310px;padding:6px 8px 4px;border:solid transparent;border-width:41px 23px 30px 23px;border-image:url(../assets/ui/frame_card.webp) 83 46 61 47 / 41px 23px 30px 23px stretch;background:var(--parch,#f0e1bc);background-clip:padding-box;color:#3a2210;text-align:center;filter:drop-shadow(0 8px 12px #000b);animation:shlshCard .45s cubic-bezier(.34,1.56,.64,1) both}
@keyframes shlshCard{from{transform:scale(.7);opacity:0}}
.sh-cico{position:relative;height:118px;margin-top:-24px;display:flex;align-items:center;justify-content:center}
.sh-cico img{position:relative;z-index:2;max-width:120px;max-height:108px;object-fit:contain;filter:drop-shadow(0 6px 4px #0007)}
.sh-card.k-dream .sh-cico img{width:150px;height:104px;object-fit:cover;border:4px solid #c9a24f;border-radius:6px;outline:2px solid #5a3a14}
.sh-cglow{position:absolute;width:140px;height:140px;border-radius:50%;background:radial-gradient(#ffd27a99,#ffd27a00 68%)}
.sh-cname{display:block;word-break:keep-all;font:700 19px/1.25 var(--serif,serif);margin-top:2px}
.sh-cmeta{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:5px;font-size:12.5px;color:#6a4a2a}
.sh-kind{font-style:normal;font-weight:700;font-size:11.5px;padding:2px 9px;border-radius:99px;background:#3a2210;color:#ffd27a}
.sh-cline{margin:10px 4px 8px;padding:9px 10px;border-radius:10px;background:#fff6;border:1px dashed #c9a24f;font-size:13.5px;line-height:1.55;color:#3a2210;word-break:keep-all}
.sh-cok{display:block;width:130px;min-height:46px;margin:6px auto 4px}
