/* ─────────────────────────────────────────────────────────────
   디자이너 스킨 v1 (docs/reference/design-20261013-d 조각 파일)
   style.css / world-design.css 의 코드 그림을 디자이너 그림으로 덮어쓴다.
   9-slice(border-image) 치수: 원본 px × (요소 높이 ÷ 원본 높이)
   ───────────────────────────────────────────────────────────── */

/* ── 상단 HUD ── */
.title-plate { height: 52px; width: auto; filter: drop-shadow(0 4px 0 rgba(120, 80, 40, 0.28)) drop-shadow(0 6px 10px rgba(60, 35, 10, 0.2)); }
.plate { background: none; border: 0; box-shadow: none; height: 46px; padding: 0 22px; border-image: url("./assets/ui/hud/plate.png") 0 130 fill / 0 22px stretch; filter: drop-shadow(0 3px 0 rgba(120, 80, 40, 0.25)) drop-shadow(0 5px 8px rgba(60, 35, 10, 0.18)); }
.plate-clock img { width: 28px; height: 28px; }
.plate-clock b { font-size: 16px; }
.plate-speed { padding: 0 14px; gap: 6px; }
.speed { height: 30px; min-width: 44px; padding: 0 12px; font-weight: 900; font-size: 13px; color: var(--ink-2); border-image: url("./assets/ui/tab-off.png") 0 66 fill / 0 15px stretch; }
.speed.on { color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); border-image: url("./assets/ui/tab-on.png") 0 66 fill / 0 15px stretch; }
.pause-btn { width: 48px; height: 48px; display: grid; place-items: center; transition: transform 0.08s; }
.pause-btn img { width: 48px; height: 48px; filter: drop-shadow(0 3px 0 rgba(160, 60, 80, 0.3)); }
.pause-btn:active { transform: translateY(3px); }

/* ── 하단 독 ── */
.dock { background: none; border: 0; backdrop-filter: none; height: 88px; padding: 0 26px; gap: 10px; align-items: center; border-image: url("./assets/ui/dock/bar.png") 0 70 fill / 0 26px stretch; box-shadow: 0 10px 24px rgba(50, 30, 10, 0.35); border-radius: 0; }
.dock-btn { width: 64px; gap: 1px; margin-top: 2px; }
.dock-btn i { display: none; }
.dock-btn img { width: 50px; height: 50px; transition: transform 0.08s; filter: drop-shadow(0 3px 0 rgba(90, 55, 20, 0.35)); }
.dock-btn span { color: #fff6e3; text-shadow: 0 1px 0 #6b4320, 0 0 6px rgba(80, 45, 10, 0.6); font-size: 11px; }
.dock-btn:active img, .dock-btn.on img { transform: translateY(3px); filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); }
.dock-btn.on span { color: #ffe9a8; }
.dock-btn.main { width: 76px; margin-top: -22px; }
.dock-btn.main img { width: 68px; height: 68px; border-radius: 50%; box-shadow: 0 0 0 4px #4aa9f0, 0 6px 0 #2a74b8, 0 10px 14px rgba(0, 0, 0, 0.25); }
.dock-btn.main:active img { box-shadow: 0 0 0 4px #4aa9f0, 0 2px 0 #2a74b8; }

/* ── 장면: 활동 지점·장애물·폰 말풍선 ── */
.life-place i { display: none; }
.life-place img.mat { width: calc(var(--pawn, 112px) * 1.35); height: auto; filter: drop-shadow(0 4px 4px rgba(90, 60, 30, 0.25)); }
.life-place .label { display: inline-flex; align-items: center; height: 30px; padding: 2px 10px 2px 24px; margin-top: -6px; font-size: 11px; font-weight: 900; color: var(--ink); background: none; border: 0; border-image: url("./assets/ui/label.png") 0 60 0 150 fill / 0 10px 0 25px stretch; filter: drop-shadow(0 2px 0 rgba(120, 80, 40, 0.25)); }
.life-place.selected img.mat { filter: drop-shadow(0 0 0 #4aa9f0) drop-shadow(0 0 5px #4aa9f0); }
.life-wall:before { display: none; }
.life-wall img { width: 100%; height: auto; filter: drop-shadow(0 3px 3px rgba(90, 60, 30, 0.3)); }
.life-pawn .mood { display: none !important; }
.bubble, .life-pawn img.bubble { position: absolute; top: -10px; right: -14px; width: calc(var(--pawn, 112px) * 0.46); height: auto; background: none; border: 0; box-shadow: none; border-radius: 0; filter: drop-shadow(0 3px 4px rgba(90, 60, 30, 0.25)); animation: pop 0.3s ease-out; }
.life-pawn .say { position: absolute; bottom: calc(100% - 2px); left: 30%; white-space: nowrap; font-size: calc(var(--pawn, 112px) * 0.12); font-weight: 900; color: var(--ink); height: calc(var(--pawn, 112px) * 0.34); display: inline-flex; align-items: center; padding: 0 12px 4px 14px; border-image: url("./assets/ui/bubble.png") 40 60 80 110 fill / 6px 9px 12px 16px stretch; filter: drop-shadow(0 2px 3px rgba(90, 60, 30, 0.22)); animation: pop 0.3s ease-out; pointer-events: none; }
.life-pawn.chosen .say { color: var(--sky-2); }
.fx img { width: 22px; height: 22px; }

/* ── 패널·팝업 ── */
.panel, .detail-panel, .sheet-box { background: none; border: 0; border-image: url("./assets/ui/panel.png") 70 fill / 24px stretch; border-radius: 0; box-shadow: 0 10px 28px rgba(120, 82, 44, 0.22); }
.sheet-box { box-shadow: 0 26px 50px rgba(60, 40, 20, 0.35); }
.sheet-head { background: none; border-bottom: 2px dashed var(--line-2); }
.sheet-head .close, .detail-top .close { background: none; border: 0; box-shadow: none; width: 40px; height: 40px; padding: 0; }
.sheet-head .close img, .detail-top .close img { width: 100%; height: 100%; filter: drop-shadow(0 2px 0 rgba(120, 80, 40, 0.25)); }
.sheet-head .close:active img, .detail-top .close:active img { transform: translateY(2px); }
.h-ico { width: 30px; height: 30px; }
.avatar { position: relative; width: 64px; height: 64px; }
.avatar canvas { width: 54px; height: 54px; position: absolute; left: 5px; top: 5px; }
.avatar img { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); }
.tabs button { height: 38px; padding: 0 12px 0 8px; background: none; border: 0; box-shadow: none; border-image: url("./assets/ui/tab-off.png") 0 66 fill / 0 19px stretch; color: var(--ink-2); gap: 5px; }
.tabs button.on { color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); border-image: url("./assets/ui/tab-on.png") 0 66 fill / 0 19px stretch; }
.tabs button img { width: 26px; height: 26px; }
.now .ico { background: none; box-shadow: none; }
.now img.ico { width: 48px; height: 48px; }
.need { grid-template-columns: 30px 40px 1fr 40px; }
.need img { width: 30px; height: 30px; }
.gbtn img { width: 24px; height: 24px; }
.gbtn-sm img { width: 20px; height: 20px; }
.log-row .ico { background: none; box-shadow: none; }
.log-row img.ico { width: 40px; height: 40px; }
.change-head .arrow img, .change-row img { width: 28px; height: 28px; }
.change-row { grid-template-columns: 28px 1fr auto 18px; }
.mini span img { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.visit-hero { display: block; width: 100%; height: auto; margin: -6px 0 2px; }
.save-tile img.big { width: 60px; height: 60px; }
.row-btn img { width: 36px; height: 36px; }
.tile-art { display: none; }
.tile img { width: 64px; height: 44px; object-fit: contain; }

@container game (max-width: 820px) {
  .title-plate { height: 34px; }
  .plate-speed [data-speed="4"] { display: none; }
  .plate { height: 36px; padding: 0 12px; border-image-width: 0 17px; }
  .plate-clock img { width: 22px; height: 22px; }
  .plate-clock b { font-size: 14px; }
  .plate-speed { padding: 0 10px; gap: 4px; }
  .speed { height: 24px; min-width: 32px; padding: 0 6px; font-size: 11.5px; border-image-width: 0 12px; }
  .pause-btn, .pause-btn img { width: 36px; height: 36px; }
  .hud-top { gap: 5px; }
  .dock { height: 76px; padding: 0 16px; gap: 2px; border-image-width: 0 22px; }
  .dock-btn { width: 50px; }
  .dock-btn img { width: 42px; height: 42px; }
  .dock-btn span { font-size: 10px; }
  .dock-btn.main { width: 62px; margin-top: -18px; }
  .dock-btn.main img { width: 56px; height: 56px; }
  .life-place .label { height: 24px; font-size: 9.5px; padding: 2px 8px 2px 20px; border-image-width: 0 8px 0 20px; }
  .life-pawn .say { padding: 0 10px 3px 12px; }
}
/* PO-REQ-001: 대사 말풍선이 주인공. 상태 글자는 선택한 폰에만(다른 폰은 손을 올리거나 초점이 갈 때) — 상태는 작은 아이콘 말풍선으로 항상 보인다 */
.life-pawn .say { display: none; }
.life-pawn.chosen .say, .life-pawn:hover .say, .life-pawn:focus-visible .say { display: inline-flex; }
