/* 도트(픽셀) — js/pixel.js 스프라이트 · js/dungeon.js 층 바닥 색 · 금고 둘레 동료 · 동료 탭(screens/party.js)
   DESIGN-HANDOFF §1·§2, GAME §3·§8. styles.css 다음에 읽는다(.px · .sheet · .sr · 토큰은 styles.css). */
:root {
  /* 층마다 바닥 색 — 금고 화면에서 --dungeon-bg: var(--dungeon-f{tier}) 로 고른다(js/dungeon.js floor(n).bg) */
  --dungeon-f1: #EAE2D3; --dungeon-f2: #E4E1DC; --dungeon-f3: #E7DAD3; --dungeon-f4: #E2ECEE;
  --dungeon-f5: #EFDCD2; --dungeon-f6: #E5E0EA; --dungeon-f7: #DCD9DE; --dungeon-f8: #F1E5C8;
}

/* 슬롯 자리(.pixel-slot[data-sprite], pixel.js paint) — 32칸 × --pixel-scale. 픽셀 그대로 키우기는 styles.css .px */
.pixel-slot { width: calc(32px * var(--pixel-scale)); max-width: 100%; aspect-ratio: 1; margin: 0 auto; }

/* 캐릭터 한 명 — pixel.js avatar(): 직업 그림 위에 망토·모자를 겹친다(32칸 같은 격자) */
.avatar { position: relative; display: block; width: 100%; height: 100%; }
.avatar > .px + .px { position: absolute; inset: 0; }

/* 금고 둘레 동료 — pixel.js crew(). .arena(styles.css) 안에 넣는다. 오늘 광고를 안 본 사람은 회색, 본 사람은 횃불이 켜져 있다 */
.crew { position: absolute; inset: 0; pointer-events: none; }
.crew-m { position: absolute; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.crew-m .crew-torch { position: absolute; right: -16%; top: -8%; width: 44%; aspect-ratio: 1; }
.crew-m.off { filter: grayscale(1); opacity: .45; }
.crew-m.me { width: 26%; z-index: 1; }   /* 나 — 금고 바로 앞 */
/* 캐릭터 이름(대표님 10-30) — 머리 위 작은 꼬리표(발밑은 체력 막대와 겹친다). 나는 불빛 */
.crew-name { position: absolute; left: 50%; bottom: 96%; translate: -50% 0; display: flex; gap: 4px; max-width: 120px; padding: 0 6px; border-radius: 999px; background: rgba(245, 240, 232, .92);
  color: var(--ink); font: 600 10px/1.6 var(--font); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew-m.me .crew-name { background: var(--ember); color: #fff; font-size: 11px; }
.crew-name .num { font-weight: 700; opacity: .8; }   /* 누적 굿샷 — 이름 옆 숫자 */
.crew-m.me .crew-name .num { opacity: 1; }
/* 캐릭터 시트(슬롯 파일이 있을 때) — 상태마다 프레임을 돈다(대기 숨쉬기 2 · 휘두르기 3 …). 한 장(지침)은 steps 가 맞지 않아 멈춰 있다 */
.crew-m .sheet { animation: sheet 1s steps(var(--frames), jump-none) infinite; }

/* 동료 탭 — 정렬 단추 · 표 */
.sorts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.sorts button { min-height: 44px; padding: 0 6px; border-radius: var(--r); border: 1px solid var(--line); background: transparent;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sorts [aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.party { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.party th, .party td { padding: 10px 0; text-align: right; font-weight: 600; }
.party thead th { padding-top: 0; font-size: 12px; color: var(--sub); }
.party thead th:first-child { width: auto; text-align: left; }
.party thead th:not(:first-child) { width: 15%; }
.party thead th:last-child { width: 18%; }
.party tbody th, .party tbody td { border-top: 1px solid var(--line); vertical-align: middle; }
.party tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.party tbody th { text-align: left; font-weight: 400; }
.party tr.me td { color: var(--ember-text); }
.party .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.party .who > .avatar { width: 32px; height: 32px; flex: none; }
.party .who.off > .avatar { filter: grayscale(1); opacity: .45; }
.party .who > span { min-width: 0; }
.party .who b { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.party .who .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party .who small { display: block; font-size: 12px; color: var(--sub); }
.torch { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: -3px; }
.torch-line { display: flex; align-items: center; gap: 6px; }
