/* 3차 그림 1회분(2026-11-14): 아이템 그림 · 마을 문 · 보물 조끼 · 문제 소품(수학 1학년·국어 1학년). 색은 tokens.css 값만 쓴다. */

/* 아이템 그림(방어막·힌트 티켓·이어하기): 어디서나 같은 그림, 칸 크기만 다르다 */
.item-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.ui-bag__icon .item-art { width: 34px; height: 34px; }
.ui-bag.is-off .ui-bag__icon .item-art { opacity: 0.45; filter: grayscale(0.6); }
.bt-held__ico .item-art { width: 22px; height: 22px; }
.bt-guard .item-art { width: 34px; height: 34px; }

/* 마을 문 그림: 둘레가 아치 그림이라 둥근 틀·테두리 없이 그림 그대로(놓는 칸만 정사각) */
.gw-door[data-art="image"] { width: 100%; max-width: 150px; height: auto; aspect-ratio: 1; border-radius: 0; overflow: visible; filter: drop-shadow(0 0 10px var(--lamp-glow)); }
.gw-door[data-art="image"] .gw-door__arch { display: none; }
.gw-scene:has(.gw-door[data-art="image"]) { grid-template-columns: 1fr 1fr 1.45fr; }
.bt-hero > .gw-scene .gw-door[data-art="image"] { width: 100%; max-width: 168px; height: auto; border-radius: 0; }
@media (max-width: 360px) { .gw-door[data-art="image"], .bt-hero > .gw-scene .gw-door[data-art="image"] { max-width: 124px; height: auto; } }

/* 보물 조끼: 빈 둥근 배지 자리 셋(그림 값). 받은 배지 수만큼 자리가 금색으로 찬다 */
.tv-vest.is-art { margin: 0 0 8px; }
.tv-vest__fig { position: relative; display: block; width: 128px; height: 128px; }
.tv-vest.is-art img { width: 128px; height: 128px; object-fit: contain; }
.tv-pin { position: absolute; width: 11%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.tv-pin.is-on { background: var(--lamp); border: 2px solid var(--bg); box-shadow: 0 0 6px var(--lamp-glow); }

/* 문제 소품·낱말 그림 줄(art-problem): 종이 카드 안, 가로 넘침 없음 */
.art-fig { width: 100%; box-sizing: border-box; overflow: hidden; gap: 6px; padding: 6px var(--sp-2); }
.art-count { display: grid; gap: 6px; justify-items: center; }
.art-count__row { display: grid; grid-template-columns: repeat(5, 44px); gap: 4px; justify-content: center; }
.art-count__img { width: 44px; height: 44px; object-fit: contain; }
.art-count__row.is-small { grid-template-columns: repeat(6, 34px); gap: 3px; }
.art-count__row.is-small .art-count__img { width: 34px; height: 34px; }
/* 접시마다 한 묶음(만두 N개씩 M접시): 묶음이 가로로 나란히, 줄이 차면 다음 줄 */
.art-count[data-layout="plates"] { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.art-count[data-layout="plates"] .art-count__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; box-sizing: border-box; max-width: 112px; min-height: 44px; align-content: center; padding: 4px; border: 1.5px solid var(--paper-line); border-radius: 12px; }
.art-count[data-layout="plates"] .art-count__img { width: 32px; height: 32px; }
.art-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.art-card { margin: 0; display: grid; justify-items: center; align-content: start; gap: 2px; width: 84px; }
.art-card__img { width: 72px; height: 72px; object-fit: contain; }
.art-card__cap { font-size: 0.85em; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.art-card.is-text { align-content: center; min-height: 72px; border: 1.5px solid var(--paper-line); border-radius: 10px; padding: 4px; }
.art-cards.is-one .art-card { width: auto; }
.art-cards.is-one .art-card__img { width: 104px; height: 104px; }
.art-cards.is-pair .art-card, .art-cards.is-jars .art-card { width: 112px; }
.art-cards.is-pair .art-card__img { width: 88px; height: 88px; }
.art-cards.is-jars .art-card__img { width: 72px; height: 72px; }
/* 장면 그림(국어 지문 묶음·통합 장면·차례 그림): 가로 폭 안에서 크기만 줄고 자리는 안 흔들린다(그림 파일의 가로·세로 비율을 그대로 쓴다) */
.art-fig[data-at="top"] { margin-bottom: 6px; }
/* 가로로 긴 그림(계절 카드 등): 보기 줄·한 장에서도 비율 그대로, 줄에 둘씩 */
.art-cards.is-set .art-card.is-wide { width: calc(50% - 6px); max-width: 132px; }
.art-cards.is-set .art-card.is-wide .art-card__img { width: 100%; height: auto; max-height: 88px; }
.art-cards.is-one .art-card.is-wide .art-card__img { width: min(100%, 200px); height: auto; max-height: 140px; }
.art-cards.is-scene .art-card { width: min(100%, 288px); max-width: none; }
.art-cards.is-scene .art-card__img { width: 100%; height: auto; max-height: 200px; }
.art-cards.is-scenes { gap: 6px; }
.art-cards.is-scenes .art-card { width: calc(50% - 6px); max-width: 150px; }
.art-cards.is-scenes .art-card__img { width: 100%; height: auto; max-height: 120px; }
@media (max-height: 700px) {
  .art-cards.is-one .art-card__img { width: 80px; height: 80px; }
  .art-cards.is-pair .art-card__img { width: 72px; height: 72px; }
  .art-cards.is-jars .art-card__img { width: 56px; height: 56px; }
  .art-card__img { width: 60px; height: 60px; }
  .art-card { width: 72px; }
  .art-cards.is-scene .art-card__img { max-height: 140px; }
  .art-cards.is-set .art-card.is-wide .art-card__img { max-height: 64px; }
  .art-cards.is-one .art-card.is-wide .art-card__img { max-height: 100px; }
  .art-cards.is-scenes .art-card__img { max-height: 84px; }
  .art-count__row { grid-template-columns: repeat(5, 36px); }
  .art-count__img { width: 36px; height: 36px; }
}
