/* UI 아르 2026-10-12 v3 (초영): 컨베이어 없애고 판 아래 역삼각형 · 판 위 대기 줄 없앰(상자가 판 밖에서 떨어짐) · 다음 상자를 오른쪽 위에
   skin3d.css · progress.css · walls.css 위에 얹는다. 규칙·터치는 그대로 */

/* 배경: 컨베이어를 잘라낸 창고 그림 */
body.skin3d { background: #efb988 url(../img/skin3d/bg-floor.jpg) center bottom / cover no-repeat; }

/* 위 대기 줄: 틀·빗금 없이 투명. 자리(터치·떨어지는 시작 높이)는 그대로 */
.skin3d .dropper { background: none !important; border: none !important; box-shadow: none !important; }
.skin3d .dropper .slot { background: none !important; box-shadow: none !important; }

/* 판: 위쪽도 둥근 테두리로 닫힌 상자 */
.skin3d .bboard { border-top: 4px solid #5b49c2 !important; border-radius: 20px !important; padding-top: 8px !important; }

/* 컨베이어 자리 → 줄마다 역삼각형 */
.skin3d .belt, .skin3d.bpage .belt { height: 24px; margin-top: 8px; background: none; box-shadow: none; animation: none; border-radius: 0; overflow: visible; }
.skin3d .belt-cat, .skin3d .belt-box { display: none !important; }
.skin3d .chutes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.skin3d .chute { position: absolute; top: 0; height: 18px; display: block;
  background: #6b3a1e; clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 2px 0 rgba(74, 40, 20, 0.35)); animation: chutebob 1.6s ease-in-out infinite; }
.skin3d .chute::after { content: ''; position: absolute; left: 3px; right: 3px; top: 2.5px; bottom: 5px;
  background: linear-gradient(#ffe27a, #f2b52a); clip-path: polygon(0 0, 100% 0, 50% 100%); }
@keyframes chutebob { 50% { transform: translateY(3px); } }
.skin3d .belt.flash .chute::after { background: linear-gradient(#b8f08a, #6cc94a); }
.skin3d .belt.bad .chute::after { background: linear-gradient(#ffc0a8, #ff8a6a); }

/* 출고·떠남 알림: 판 아래쪽 위에 잠깐 */
.skin3d .belt span { top: auto !important; bottom: calc(100% + 18px); z-index: 6; }

/* 다음 상자: 목표 칩과 좌우 짝 */
.skin3d .next-chip { display: flex !important; right: 0; left: auto; padding: 3px 4px 3px 9px; border-radius: 18px;
  background: rgba(255, 246, 230, 0.95); box-shadow: 0 3px 0 rgba(74, 40, 20, 0.35); }
.skin3d .next-chip small { font-size: 11px; font-weight: 900; color: #8a5a2a; }
.skin3d .next-chip b { position: relative; width: 34px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 13px !important; font-weight: 900; color: #fff; }
.skin3d .next-chip b.hidden-next { background: rgba(74, 40, 20, 0.15); color: #a8998a; font-size: 16px !important; }

@media (max-height: 700px) {
  .skin3d .belt, .skin3d.bpage .belt { height: 20px; margin-top: 4px; }
  .skin3d .chute { height: 15px; }
}
/* 판 아래 여백: 화면 맞추기가 정확히 바닥까지 쓰므로 아래 여백을 줄여 2px 넘침 방지 */
.skin3d.bpage .app { padding-bottom: 6px; }

/* ════ UI 아르 2026-10-12 v4 (초영 "판이 너무 작아 손가락에 걸림") ════
   위쪽 정보 영역과 판 위 대기 자리를 줄여서, 화면 맞추기(b-ui.js fit)가 칸을 더 크게 잡게 한다. 규칙은 그대로 */
.skin3d .hud-top { margin-bottom: -2px; }
.skin3d .earn-row { min-height: 30px; }
.skin3d .orders-wrap { padding-top: 10px; }
.skin3d .order, .skin3d.bpage .order { padding: 5px 6px 6px; }
.skin3d .owin { height: 44px; }
.skin3d .order .ov, .skin3d.bpage .order .ov { width: 48px; height: 44px; font-size: 15px; }
.skin3d .order .pbar, .skin3d.bpage .order .pbar { height: 8px; }
/* 판 위 대기 자리: 칸 한 개 높이 → 절반. 떨어지는 상자는 주문 카드 아래쪽에 살짝 겹쳐 나타난다 */
.skin3d .dropper { padding: 0 8px !important; }
.skin3d .dropper .slot { aspect-ratio: 2 / 1 !important; }
.skin3d .bstage { z-index: 2; }
/* 칸 사이 틈 5 → 4px */
.skin3d .bboard, .skin3d .bcol { gap: 4px !important; }
.skin3d .bboard { padding: 6px 6px 6px !important; }
/* 판 아래 역삼각형 줄 */
.skin3d .belt, .skin3d.bpage .belt { height: 16px; margin-top: 4px; }
.skin3d .chute { height: 14px; }
@media (max-height: 700px) {
  .skin3d .owin { height: 36px; }
  .skin3d .order .ov, .skin3d.bpage .order .ov { width: 38px; height: 34px; font-size: 13px; }
  .skin3d .belt, .skin3d.bpage .belt { height: 14px; margin-top: 3px; }
  .skin3d .chute { height: 12px; }
}

/* ════ UI 아르 2026-10-12 v5 (초영 "반짝이는 상자 눌러도 안 나감") ════
   원인: v3에서 출고 알림 글자(belt-text)를 판 아래쪽 위로 옮기면서, 안 보일 때(투명)도 맨 아랫줄 가운데 상자를 덮고 터치를 가로채고 있었다.
   알림은 보여주기만 하고 터치는 통과시킨다. */
.skin3d .belt span, .skin3d .belt #belt-text { pointer-events: none !important; }
