/* 건물 창 공용 조각 — 탭 줄 · 가진 것 격자(연금술솥 [가진 물약] sky_cauldron.js) · 바로 끝내기 연출 · 버프 줄로 날아가는 음식 그림.
   크기 = hq-ui 모바일 기준(GUI 450): 탭 28 · 칸 52 · 알약 26 · 이름 12. 탭 = 01-popup.part .popup.full .tabs 알약 줄 그대로(글자 폭). */
#ui .skw .skw-tabs { flex: none; }
#ui .skw .skw-tabs .tab { height: 28px; line-height: 28px; font-size: 12.5px; font-weight: 800; }
#ui .skw .skc-head .skw-tabs { margin-right: auto; }
/* 탭을 바꿀 때만 판이 살짝 떠오름(다시 그릴 때는 안 튐) */
#ui .skw .fx-swap > :is(.skq-list, .skq-chips, .skfd, .skc-list, .skc-have):not([hidden]) { animation: fx-card-in .28s cubic-bezier(.2, .8, .3, 1) both; }
/* 칸 사이 숨 — 카드 줄 6 → 8 */
#ui .skw .skq-list, #ui .skw .skq-slots { gap: 8px; }

/* 가진 것 격자: 창 폭대로 열 수가 늘고 칸은 커지지 않음 */
#ui .skw :is(.skfd, .skq-list, .skq-chips, .skc-rest)[hidden] { display: none; }
#ui .skw .skfd, #ui .skw .skc-hgrid { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding-bottom: 34px; }   /* 아래 34 = 알림 알약 자리 */
#ui .skw .skfd-grid, #ui .skw .skc-hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; align-content: start; }
#ui .skw :is(.skfd-dish, .skc-pot) { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px 8px; border-radius: 10px; color: #fff;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); animation: fx-card-in .36s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
#ui .skw :is(.skfd.still, .skc-hgrid.still) :is(.skfd-dish, .skc-pot) { animation: none; }
#ui .skw :is(.skfd-dish, .skc-pot) .skl-cell { width: 52px; height: 52px; box-shadow: inset 0 0 0 1.5px var(--g, rgba(255, 255, 255, .22)), 0 0 8px color-mix(in srgb, var(--g, transparent) 35%, transparent); }
#ui .skw :is(.skfd-nm, .skc-pot .skq-nm) { display: flex; flex: none; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; min-width: 0; text-align: center; }
#ui .skw :is(.skfd-nm, .skc-pot .skq-nm) b { max-width: 100%; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ui .skw .skfd-nm small { font-size: 10px; font-weight: 800; color: #9fe3b0; }
#ui .skw .skc-pot .skq-nm > small { font-size: 10.5px; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
#ui .skw .skfd-eat { flex: none; height: 26px; min-width: 64px; padding: 0 14px; font-size: 12px; line-height: 26px; }
#ui .skw .skfd-eat.off { opacity: .5; pointer-events: none; }
/* 먹는 중 = 금 테 맥박(크기는 그대로) */
#ui .skw .skfd-dish.on { box-shadow: inset 0 0 0 1.5px #e8c979, 0 0 10px rgba(232, 201, 121, .35); animation: fx-card-in .36s cubic-bezier(.2, .8, .3, 1) both, skl-sel 1.2s ease-in-out .4s infinite alternate; }
#ui .skw .skfd.still .skfd-dish.on { animation: skl-sel 1.2s ease-in-out infinite alternate; }
/* 빈 목록 = 무채색 글리프 */
#ui .skw .skfd-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 36px 0; font-size: 12px; color: rgba(255, 255, 255, .55); grid-column: 1 / -1; }
#ui .skw .skfd-glyph { width: 40px; height: 40px; background: currentColor; opacity: .7; -webkit-mask: url(../../assets/icons/slot-bag.png) center / contain no-repeat; mask: url(../../assets/icons/slot-bag.png) center / contain no-repeat; }
/* 연금술솥 [가진 물약] 탭 — 아래 오른쪽 "최대 보관" */
#ui .skw .skc-have { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
#ui .skw .skc-have[hidden] { display: none; }
#ui .skw .skc-have .skc-hgrid { padding-bottom: 0; }
#ui .skw .skc-cap { flex: none; align-self: flex-end; margin-bottom: 34px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
#ui .skw .skc-pot > em { position: absolute; right: 8px; top: 6px; font: 900 11px/1 var(--ui-font); font-style: normal; color: #fff; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }

/* 바로 끝내기: 창 가운데 진주빛 글자(청록 빛) + 진행 막대가 끝까지 차오름 */
#ui .skw.rushfx .skw-fx { animation: skw-lv .9s ease-out both; text-shadow: 0 0 10px rgba(150, 236, 230, .9), 0 0 22px rgba(110, 210, 220, .5); }
#ui .skw.rushfx .skl-bar::after { transform: scaleX(1); transition: transform .45s cubic-bezier(.2, .8, .3, 1); background: linear-gradient(90deg, #8fe6df, #fff); }
#ui .skw.rushfx .skw-rush { animation: skl-pop .32s cubic-bezier(.3, 1.4, .5, 1) both; }
/* 버프 줄로 날아가 앉는 음식 그림(sky_food landFx — 창이 닫힌 뒤 화면 가운데 → HUD 왼쪽 위 칸) */
.skfd-land { position: fixed; left: 0; top: 0; z-index: 9999; width: 44px; height: 44px; margin: -22px 0 0 -22px; object-fit: contain; image-rendering: pixelated; pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 226, 150, .85)); }
