/* ==========================================================================
   SHOP.CSS — 별빛 부적 공방의 목록·기능 안내·코칭 A형
   색은 tokens.css의 :root 토큰만 써서 다크/라이트 테마에 자동 대응한다
   ========================================================================== */

/* GNB 스토어 탭 포인트 */
.nav-tab-shop .nav-shop-dot {
  margin-left: 4px;
  color: var(--neon-lime);
  font-size: 11px;
}
.nav-tab-shop.active .nav-shop-dot {
  color: var(--neon-yellow);
}

/* ── 1. 스토어 히어로 모니터 (캔버스 + 우측 계기판, 다른 허브와 같은 뼈대) ── */
.pp-monitor.shop-monitor { height: clamp(190px, 23vw, 250px); overflow: hidden; }
.pp-monitor.shop-monitor canvas { top: 0; height: 100%; }
@media (max-width: 760px) {
  .pp-monitor.shop-monitor { height: 210px; }
  .pp-monitor.shop-monitor canvas { top: 0; height: 100%; }
}

/* ── 4. 필터 바 ─────────────────────────────────────────────────────────── */
.shop-filter-bar {
  margin-bottom: 24px;
}
.shop-filter-bar .cat-row {
  display: flex;
  flex-wrap: wrap;
  width: auto;
  gap: 8px;
}
@media (max-width: 760px) {
  .shop-filter-bar .cat-row { width: max-content; flex-wrap: nowrap; }
}

/* ── 5. RPG 아이템 그리드 & 카드 ─────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 48px;
}
@media (max-width: 960px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .shop-grid { grid-template-columns: 1fr; }
}

.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1.5px solid var(--border-box-purple);
  box-shadow: 0 14px 32px var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.item-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-pink);
}
.item-card.is-zodiac-unavailable .item-visual-box { filter: grayscale(1); }
.item-zodiac-status { margin: 0; color: var(--text-sub); font-size: 14px; line-height: 1.45; }
.item-zodiac-status[hidden] { display: none; }
.item-card.is-zodiac-unavailable .item-zodiac-status { font-weight: 800; color: var(--text-pure); }
.btn-item-buy:disabled, #btnModalAcquire:disabled { opacity: .55; cursor: not-allowed; }
/* 내 띠 감정 시 하이라이트 */
.item-card.is-my-guardian {
  border-color: var(--neon-lime) !important;
  box-shadow: 0 0 28px color-mix(in srgb, var(--neon-lime) 35%, transparent) !important;
}

.item-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
}
.item-rarity {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
/* 뱃지는 등급이 아니라 묶음을 나타낸다. 12지신 의상은 성격 분류별(분홍·노랑·초록), 운세 부적은 보라, 꾸미기는 파랑이다. */
.badge-group-1 {
  background: color-mix(in srgb, var(--neon-pink) 18%, transparent);
  color: var(--pink-ink);
  border: 1px solid var(--border-pink);
}
.badge-group-2 {
  background: color-mix(in srgb, var(--neon-yellow) 18%, transparent);
  color: var(--neon-yellow);
  border: 1px solid var(--neon-yellow);
}
.badge-group-3 {
  background: color-mix(in srgb, var(--neon-lime) 16%, transparent);
  color: var(--neon-lime);
  border: 1px solid var(--neon-lime);
}
.badge-fortune {
  background: color-mix(in srgb, var(--neon-purple) 18%, transparent);
  color: var(--purple-ink);
  border: 1px solid var(--border-purple);
}
.item-element-tag {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-muted);
}

.item-thumb-img.is-pixel,
.item-icon-img.is-pixel,
.item-thumb-sample {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* 12지신 수호 아이콘 — 게임 인벤토리 아이템 아이콘(희귀도 색 테두리) */
.item-pixel-stage.is-icon-stage { height: 140px; }
.item-icon-img {
  --ic: var(--neon-cyan);
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid var(--ic);
  background: #0c0526;
  box-shadow: 0 0 0 2px #0c0526, 0 0 22px color-mix(in srgb, var(--ic) 55%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.item-card.is-group-1 .item-icon-img { --ic: #ff5fd2; }
.item-card.is-group-2 .item-icon-img { --ic: #ffe600; }
.item-card.is-group-3 .item-icon-img { --ic: #00ffa3; }
.item-card:hover .item-icon-img { transform: translateY(-3px) scale(1.04); }
.item-icon-img.is-fallback { object-fit: contain; padding: 14px; box-sizing: border-box; }

/* 아이템 픽셀 인벤토리 슬롯 박스 */
.item-visual-box {
  position: relative;
  padding: 20px 14px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card-inner);
  border: 1px solid var(--border-hair);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.item-slot-label {
  position: absolute;
  top: 8px;
  left: 12px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.75;
}
.item-pixel-stage {
  height: 92px;
  display: grid;
  place-items: center;
}
.item-thumb-img {
  max-height: 78px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(203, 35, 162, 0.45));
}
.item-stage-icon {
  font-size: 46px;
}
.item-persona-chip {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--purple-ink);
  background: var(--bg-cell);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-align: center;
}

.item-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--text-pure);
}
.item-lore {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.55;
}

/* RPG 스탯 테이블 */
.item-stat-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-cell);
  border: 1px dashed var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.item-stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
}
.stat-name { color: var(--text-sub); }
.stat-val {
  font-family: var(--font-display);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--text-pure);
}
.stat-val.is-buff { color: var(--neon-lime); }
.stat-val.is-def { color: var(--neon-cyan); }

/* 카드 하단 가격 & 액션 */
.item-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-hair);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.item-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.item-star-cost {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--neon-yellow);
}
.item-won-cost {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.item-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-item-preview,
.btn-item-buy {
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-item-preview {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-box-bright);
  color: var(--text-pure);
}
.btn-item-preview:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.btn-item-buy {
  background: linear-gradient(135deg, #cb23a2 0%, #8338ec 100%);
  border: 1px solid rgba(255, 200, 245, 0.35);
  color: var(--text-on-neon);
}
.btn-item-buy:hover { box-shadow: var(--glow-pink); }
.item-thumb-sample {
  max-height: 86px;
  width: 86px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-box-bright);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* ── 부적 안내 모달 ───────────────────────────────────────────────────── */
.shop-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(580px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-box-bright);
  background: var(--bg-card);
  color: var(--text-pure);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}
.shop-modal::backdrop {
  background: rgba(10, 8, 24, 0.78);
  backdrop-filter: blur(4px);
}
.shop-modal-inner {
  padding: 24px;
}
.shop-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.shop-modal-kicker {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 900;
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
}
.shop-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-box-purple);
  background: var(--bg-card-inner);
  color: var(--text-pure);
  font-size: 16px;
  cursor: pointer;
}
.shop-modal-close:hover { border-color: var(--neon-pink); }
.shop-modal-title { margin: 0 0 8px; font-size: 26px; font-weight: 900; line-height: 1.25; }
.shop-modal-desc { margin: 0 0 14px; font-size: 17.5px; line-height: 1.5; color: var(--text-sub); }

.shop-modal-foot {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.shop-modal-foot .btn-offer-no,
.shop-modal-foot .btn-offer-yes {
  flex: 1;
  text-align: center;
  text-decoration: none;
}

/* 새 아이템은 연결된 기능과 준비 중인 기능을 구분한다. */
.item-prototype-note { margin: 0 0 10px; color: var(--text-sub); font-size: 13px; line-height: 1.5; }
.item-prototype-link { display: inline-flex; min-height: 42px; align-items: center; padding: 0 14px; border: 1px solid var(--neon-cyan); border-radius: 999px; color: var(--neon-cyan); font-size: 14px; font-weight: 800; text-decoration: none; }
.item-prototype-pending { color: var(--text-muted); font-size: 14px; font-weight: 700; }

/* 시드 부적 알림 창 — 별이 모자라거나 구매 확인이 필요할 때 열린다. 버튼이 많아 좁은 화면에서는 줄을 바꾼다. */
.item-seed-notice-meta { margin: 0 0 14px; color: var(--text-sub); font-size: 14px; line-height: 1.5; }
.item-seed-notice-meta[hidden] { display: none; }
.item-seed-notice .shop-modal-foot { flex-wrap: wrap; }
.item-seed-notice .shop-modal-foot > * { flex: 1 1 150px; display: flex; align-items: center; justify-content: center; }
.item-seed-notice .shop-modal-foot button:disabled { opacity: 0.55; cursor: default; }

.item-seed-notice:has(.item-credit-summary) .shop-modal-head {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  margin: 0;
}
.item-seed-notice:has(.item-credit-summary) .shop-modal-kicker { display: none; }
.item-seed-notice:has(.item-credit-summary) .shop-modal-title { padding-inline-end: 40px; }
.item-credit-summary { display: grid; gap: 10px; }
.item-credit-usage {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--border-box-bright);
  border-radius: var(--radius-sm);
  background: var(--bg-card-inner);
}
.item-credit-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.item-credit-fact > span { flex-shrink: 0; }
.item-credit-fact > strong {
  color: var(--text-pure);
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.item-credit-track {
  display: flex;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border-box-bright);
}
.item-credit-track > span { display: block; }
.item-credit-used { background: var(--neon-cyan); }
.item-credit-added {
  background: var(--neon-pink);
  transform-origin: left center;
  animation: item-credit-fill 450ms ease-out;
}
@keyframes item-credit-fill { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .item-credit-added { animation: none; }
}
.item-credit-feature { font-size: 13px; }
.item-seed-notice .shop-modal-foot > .item-credit-other {
  display: block;
  flex: 1 1 100%;
  color: var(--text-sub);
  font-size: 14px;
}
.item-credit-other > summary { padding: 9px 0; cursor: pointer; }
.item-credit-other > p { margin: 0; }

.shop-fun-notice { margin: 12px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; text-align: center; }

/* 시드 구매 의식 — 별빛이 산 카드에 모이며 오방색 빛이 번진다. */
.item-card.is-ritual { animation: seed-ritual 2.4s ease-out; }
@keyframes seed-ritual {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.0), 0 14px 36px var(--shadow-card); }
  25% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.55), 0 0 40px rgba(239, 68, 68, 0.45), 0 14px 36px var(--shadow-card); }
  55% { box-shadow: 0 0 0 10px rgba(250, 204, 21, 0.45), 0 0 56px rgba(248, 250, 252, 0.5), 0 14px 36px var(--shadow-card); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.0), 0 14px 36px var(--shadow-card); }
}
@media (prefers-reduced-motion: reduce) {
  .item-card.is-ritual { animation: none; }
}
.sim-feature-panel[hidden],
.shop-modal-foot[hidden] { display: none; }
.sim-feature-panel {
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-box-purple);
}
.item-prototype .item-actions { align-items: center; }

/* 길일 부적: 달력 보기 링크와 다가오는 손 없는 날 */
.btn-item-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-card-inner);
  border: 1px solid var(--neon-yellow);
  color: var(--neon-yellow);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.btn-item-link:hover { background: color-mix(in srgb, var(--neon-yellow) 14%, var(--bg-card-inner)); }
.lucky-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-box-purple); background: var(--bg-card-inner); color: var(--text-sub); font-size: 13px;
}
.lucky-chip b { color: var(--text-pure); }
.lucky-chip i { color: var(--neon-yellow); font-style: normal; font-weight: 800; }

.shop-modal-foot a, .shop-modal-foot button { font-size: 16px; }
@media (max-width: 540px) {
  .shop-modal-title { font-size: 24px; }
}

/* 내 띠를 확정하기 전과 다른 띠의 카드는 처음부터 숨긴다. */
.item-card[hidden] { display: none !important; }
.shop-guardian-hint { margin: 14px 0; padding: 16px; border: 1px solid var(--border-box-purple); border-radius: 16px; background: var(--bg-card-inner); color: var(--text-sub); line-height: 1.7; }
.shop-guardian-hint p { margin: 0 0 8px; }
.shop-guardian-hint[hidden], #shopGuardianLink[hidden] { display: none; }


/* ── 생활 부적: 상황 추천·기능 카드·도움 예시 (item.html 전용) ──────────────
   기존 카드·FeatureCard 뼈대를 확장한다. 색상은 양 테마의 공용 잉크/표면 토큰을 쓴다. */
.hb-shop .shop-solution-guide {
  display: grid;
  gap: 12px;
  margin: 28px 0 24px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--border-box-bright);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, color-mix(in srgb, var(--neon-pink) 7%, var(--bg-card)), var(--bg-card));
  color: var(--text-pure);
}
.hb-shop .solution-guide-heading { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 20px; }
.hb-shop .solution-guide-emblem { display: grid; place-items: center; width: 72px; height: 72px; }
.hb-shop .solution-guide-emblem img { width: 56px; height: 56px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--neon-lime) 22%, transparent)); }
.hb-shop .solution-guide-copy { display: grid; gap: 8px; min-width: 0; }
.hb-shop .solution-guide-note { padding: 14px 16px; border-left: 3px solid var(--border-box-purple); border-radius: 0 12px 12px 0; background: var(--bg-card-inner); }
.hb-shop .solution-kicker {
  margin: 0;
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
}
.hb-shop .shop-solution-guide h2 {
  margin: 0;
  color: var(--text-pure);
  font-size: clamp(21px, 2.8vw, 28px);
  line-height: 1.35;
  text-wrap: balance;
}
.hb-shop .shop-solution-guide > p:not(.solution-kicker),
.hb-shop .solution-guide-copy > p:not(.solution-kicker) {
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.7;
}
.hb-shop .solution-nudges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.hb-shop .solution-nudge {
  --solution-accent: var(--neon-pink);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 14px;
  min-width: 0;
  min-height: 132px;
  padding: 16px 14px;
  border: 1px solid var(--border-box-purple);
  border-radius: var(--radius-md);
  background: var(--bg-card-inner);
  color: var(--text-pure);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.hb-shop .solution-nudge[data-shop-solution="appointment"] { --solution-accent: var(--neon-cyan); }
.hb-shop .solution-nudge[data-shop-solution="wallet"] { --solution-accent: var(--neon-yellow); }
.hb-shop .solution-nudge-art { display: grid; place-items: center; width: 64px; height: 72px; border: 1px solid color-mix(in srgb, var(--solution-accent) 45%, var(--border-hair)); border-radius: 16px; background: radial-gradient(circle, color-mix(in srgb, var(--solution-accent) 14%, var(--bg-card)), var(--bg-card)); }
.hb-shop .solution-nudge-art img { display: block; width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.hb-shop .solution-nudge-copy { display: grid; gap: 7px; min-width: 0; }
.hb-shop .solution-nudge-copy strong span { color: color-mix(in srgb, var(--solution-accent) 60%, var(--text-pure)); }
.hb-shop .solution-nudge small {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.5;
}
.hb-shop .solution-nudge strong { color: var(--text-pure); font-size: 17px; line-height: 1.4; }
.hb-shop .solution-nudge:hover { border-color: var(--solution-accent); background: var(--bg-cell); transform: translateY(-3px); }
.hb-shop .solution-nudge:focus-visible,
.hb-shop .solution-card .btn-item-preview:focus-visible,
.hb-shop .solution-card .btn-item-link:focus-visible {
  outline: 3px solid var(--neon-cyan);
  outline-offset: 3px;
}
.hb-shop .solution-card {
  min-width: 0;
  scroll-margin-top: 110px;
}
.hb-shop .solution-card.is-featured { border-color: var(--border-pink); }
.hb-shop .solution-card:target { outline: 2px solid var(--neon-cyan); outline-offset: 3px; }
.hb-shop .solution-card .item-icon-img.solution-icon {
  display: block;
  width: min(200px, 100%);
  height: auto;
  aspect-ratio: 1;
  max-width: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 5px 10px color-mix(in srgb, var(--neon-purple) 16%, transparent));
}
.hb-shop .solution-card .item-body { min-width: 0; }
.hb-shop .solution-card .item-title { font-size: 21px; line-height: 1.4; }
.hb-shop .solution-card .item-lore { font-size: 15px; line-height: 1.65; }
.hb-shop .solution-card .item-actions { display: grid; grid-template-columns: 1fr; align-items: stretch; }
.hb-shop .solution-card .btn-item-preview,
.hb-shop .solution-card .btn-item-link { min-width: 0; min-height: 44px; white-space: normal; line-height: 1.5; }
.hb-shop .solution-card .btn-item-preview { border-color: var(--border-pink); color: var(--pink-ink); }
.hb-shop .solution-card .btn-item-link { border-color: var(--border-box-purple); color: var(--text-sub); font-size: 13px; }
.hb-shop .solution-card .item-prototype-note { margin-bottom: 0; }
.hb-shop .shop-solution-guide,
.hb-shop .solution-card { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .hb-shop .solution-nudges { grid-template-columns: 1fr; }
  .hb-shop .solution-nudge { min-height: 104px; }
  .hb-shop .solution-guide-heading { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .hb-shop .solution-guide-emblem { width: 56px; height: 56px; }
  .hb-shop .solution-guide-emblem img { width: 48px; height: 48px; }
  .hb-shop .solution-guide-copy .solution-kicker { font-size: 10px; letter-spacing: .06em; }
}
@media (max-width: 380px) {
  .hb-shop .solution-nudge { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .hb-shop .solution-nudge-art { width: 52px; height: 64px; }
  .hb-shop .solution-nudge-art img { width: 52px; height: 52px; }
  .hb-shop .solution-nudge strong { font-size: 16px; }
  .hb-shop .solution-card { padding: 15px; }
  .hb-shop .solution-card .item-icon-img.solution-icon { width: min(180px, 100%); }
  .hb-shop .solution-card .item-title { font-size: 20px; }
}


/* 아이템 도감 */
.hb-shop .item-card.is-guide-card {
  min-width: 0;
  align-self: stretch;
  padding: 16px;
}
.hb-shop .item-card > .item-source { display: none; }
.hb-shop .item-card:has(.is-active-item) { border-color: var(--border-box-bright); }
.hb-shop .fc-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  color: var(--text-pure);
  overflow-wrap: anywhere;
}
.hb-shop .fc-card.is-catalog {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hb-shop .fc-catalog-header,
.hb-shop .fc-heading {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.hb-shop .fc-catalog-art,
.hb-shop .fc-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border-box-purple);
  border-radius: 14px;
  background: var(--bg-card-inner);
}
.hb-shop .fc-catalog-art {
  padding: 12px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--neon-purple) 16%, var(--bg-card-inner)), var(--bg-card-inner) 75%);
}
.hb-shop .fc-catalog-art .fc-art-img {
  width: min(100%, clamp(132px, 15vw, 160px));
  height: auto;
  aspect-ratio: 1;
  border-radius: 10px;
}
.hb-shop .fc-art { aspect-ratio: 1; }
.hb-shop .fc-art-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.hb-shop .fc-catalog-heading { min-width: 0; }
.hb-shop .fc-catalog-title,
.hb-shop .fc-heading-title { margin: 0; color: var(--text-pure); font-size: 19px; font-weight: 900; line-height: 1.35; }
.hb-shop .fc-catalog-status {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 2px 8px;
  border: 1px solid var(--border-box-purple);
  border-radius: 999px;
  background: var(--bg-card-inner);
  color: var(--text-pure);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
.hb-shop .is-active-item .fc-catalog-status { border-color: var(--neon-lime); }
.hb-shop .fc-catalog-status[hidden], .hb-shop .fc-period[hidden] { display: none; }
.hb-shop .fc-catalog-summary {
  margin: 4px 0 0;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.5;
}
.hb-shop .fc-catalog-availability {
  margin: 0;
  padding-inline-start: 10px;
  border-inline-start: 2px solid var(--border-box-bright);
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.5;
}
.hb-shop .fc-period { margin: 0; color: var(--text-sub); font-size: 14px; font-weight: 700; line-height: 1.45; }
.hb-shop .fc-actions { display: grid; gap: 8px; min-width: 0; }
.hb-shop .fc-catalog-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block-start: auto; }
.hb-shop .fc-actions > button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--border-box-bright);
  border-radius: 11px;
  background: var(--bg-card-inner);
  color: var(--text-pure);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
.hb-shop .fc-actions > :is(.btn-item-buy, .btn-catalog-buy, .btn-offer-yes) {
  background: #ffe45c;
  border-color: #ffe45c;
  color: #241800;
}
.hb-shop .fc-actions > button:disabled {
  background: var(--bg-card-inner);
  border-color: var(--border-hair);
  color: var(--text-sub);
  opacity: 1;
  cursor: not-allowed;
}
.hb-shop :is(.fc-actions button, .fc-detail-link, .fc-detail summary, #btnCloseShopModal):focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

/* 상세 상단의 제공 범위와 사용 예시 */
#shopPreviewModal .shop-modal-inner { padding: clamp(14px, 4vw, 24px); }
#shopPreviewModal .shop-modal-head {
  position: sticky;
  top: 8px;
  z-index: 1;
  height: 0;
  margin: 0;
  justify-content: flex-end;
  align-items: start;
}
#btnCloseShopModal { width: 44px; height: 44px; }
#shopPreviewModal .sim-feature-panel { margin: 0; padding: 0; border: 0; background: transparent; }
.hb-shop .fc-detail { gap: 15px; }
.hb-shop .fc-heading {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 0 10px;
  padding-inline-end: 52px;
}
.hb-shop .fc-heading .fc-art { width: 52px; grid-row: span 2; }
.hb-shop .fc-heading-title { align-self: end; font-size: 21px; }
.hb-shop .fc-heading .fc-catalog-status { grid-column: 2; align-self: start; }
.hb-shop .fc-section-title { margin: 0 0 4px; color: var(--text-pure); font-size: 15px; font-weight: 900; line-height: 1.4; }
.hb-shop .fc-copy { margin: 0; color: var(--text-sub); font-size: 16px; line-height: 1.6; }
.hb-shop .fc-detail-availability { padding-inline-start: 12px; border-inline-start: 2px solid var(--border-box-bright); }
.hb-shop .fc-coach-sample {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: clamp(12px, 3.5vw, 18px);
  border: 1px solid color-mix(in srgb, var(--neon-purple) 64%, var(--border-box-bright));
  border-radius: 16px;
  background: color-mix(in srgb, var(--neon-purple) 9%, var(--bg-card-inner));
}
.hb-shop .fc-coach-sample > .fc-section-title { margin: 0; font-size: 18px; }
.hb-shop .fc-coach-sample-label { margin: -5px 0 0; color: var(--text-sub); font-size: 14px; line-height: 1.5; }
.hb-shop .fc-coach-case { margin: 0; color: var(--text-pure); font-size: 16px; font-weight: 900; line-height: 1.5; }
.hb-shop .fc-coach-chat { display: grid; gap: 9px; min-width: 0; }
.hb-shop .fc-coach-message { min-width: 0; max-width: 94%; padding: 10px 12px; border: 1px solid var(--border-hair); border-radius: 13px; }
.hb-shop .fc-coach-message.is-user { justify-self: end; background: var(--bg-card); border-bottom-right-radius: 3px; }
.hb-shop .fc-coach-message.is-guide { justify-self: start; background: color-mix(in srgb, var(--neon-cyan) 7%, var(--bg-card)); border-bottom-left-radius: 3px; }
.hb-shop .fc-coach-speaker { display: block; margin-bottom: 3px; color: var(--purple-ink); font-size: 14px; line-height: 1.4; }
.hb-shop .fc-coach-message-body { margin: 0; color: var(--text-pure); font-size: 16px; line-height: 1.6; white-space: pre-line; }
.hb-shop .fc-kakao-notice { display: grid; gap: 9px; min-width: 0; padding: 13px; border: 1px solid #b6a145; border-radius: 12px; background: color-mix(in srgb, #fee500 6%, var(--bg-card)); }
.hb-shop .fc-notice-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.hb-shop .fc-notice-app { padding: 3px 7px; border-radius: 6px; background: #fee500; color: #241800; font-size: 12px; line-height: 1.4; }
.hb-shop .fc-notice-delivery { color: var(--text-sub); font-size: 12px; line-height: 1.5; }
.hb-shop .fc-notice-body { margin: 0; color: var(--text-pure); font-size: 16px; line-height: 1.6; white-space: pre-line; }
.hb-shop .fc-calendar-example {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1.5px solid var(--neon-cyan);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--neon-yellow) 16%, transparent), transparent 55%),
    linear-gradient(145deg, color-mix(in srgb, var(--neon-cyan) 12%, var(--bg-card)), var(--bg-card));
  box-shadow: 0 0 22px color-mix(in srgb, var(--neon-cyan) 18%, transparent);
}
.hb-shop .fc-calendar-example.is-guardian-calendar {
  border-color: color-mix(in srgb, var(--neon-yellow) 78%, var(--neon-cyan));
  box-shadow: 0 0 24px color-mix(in srgb, var(--neon-yellow) 18%, transparent);
}
.hb-shop .fc-calendar-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 3px 10px;
  border: 1px solid color-mix(in srgb, var(--neon-cyan) 75%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--neon-cyan) 16%, var(--bg-card-inner));
  color: var(--text-pure);
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.4;
}
.hb-shop .fc-calendar-example.is-guardian-calendar .fc-calendar-label {
  border-color: color-mix(in srgb, var(--neon-yellow) 80%, transparent);
  background: color-mix(in srgb, var(--neon-yellow) 20%, var(--bg-card-inner));
}
.hb-shop .fc-calendar-month { margin: 0; color: var(--text-pure); font-size: 18.5px; font-weight: 900; line-height: 1.4; text-align: center; }
.hb-shop .fc-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; min-width: 0; }
.hb-shop .fc-calendar-weekday { padding: 2px 0; color: var(--text-sub); font-size: 12.5px; font-weight: 800; text-align: center; }
.hb-shop .fc-calendar-weekday.is-red { color: #ec6478; }
.hb-shop .fc-calendar-weekday.is-blue { color: #66b9ff; }
.hb-shop .fc-calendar-blank { min-height: 52px; }
.hb-shop .fc-calendar-day {
  display: grid;
  align-content: space-between;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 52px;
  padding: 4px 2px;
  border: 1px solid var(--border-hair);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-pure);
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hb-shop .fc-calendar-day:hover { transform: translateY(-1px); }
.hb-shop .fc-calendar-day:focus-visible,
.hb-shop .fc-calendar-day[aria-pressed="true"] {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 1px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--neon-cyan) 35%, transparent);
}
.hb-shop .fc-calendar-day.is-marked {
  border: 1.5px solid var(--neon-cyan);
  background: linear-gradient(155deg, color-mix(in srgb, var(--neon-cyan) 22%, var(--bg-card)), var(--bg-card));
  box-shadow: 0 0 12px color-mix(in srgb, var(--neon-cyan) 22%, transparent);
}
.hb-shop .fc-calendar-day.is-good {
  border: 2px solid var(--neon-yellow);
  background: linear-gradient(155deg, color-mix(in srgb, var(--neon-yellow) 24%, var(--bg-card)), color-mix(in srgb, var(--neon-cyan) 14%, var(--bg-card)));
  box-shadow: 0 0 14px color-mix(in srgb, var(--neon-yellow) 26%, transparent);
}
.hb-shop .fc-calendar-day-number { font-weight: 900; }
.hb-shop .fc-calendar-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--neon-cyan) 26%, var(--bg-card-inner));
  color: var(--text-pure);
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}
.hb-shop .fc-calendar-day.is-good .fc-calendar-mark {
  background: linear-gradient(135deg, #ffe45c 0%, #fff29c 100%);
  color: #241800;
  box-shadow: 0 1px 6px rgba(255, 228, 92, 0.35);
}
.hb-shop .fc-calendar-detail {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid color-mix(in srgb, var(--neon-cyan) 65%, var(--border-hair));
  border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--neon-cyan) 14%, var(--bg-card-inner)), var(--bg-card-inner));
}
.hb-shop .fc-calendar-detail[data-marker-type="good"] {
  border-color: var(--neon-yellow);
  background: linear-gradient(135deg, color-mix(in srgb, var(--neon-yellow) 16%, var(--bg-card-inner)), color-mix(in srgb, var(--neon-cyan) 12%, var(--bg-card-inner)));
}
.hb-shop .fc-calendar-detail-title { color: var(--text-pure); font-size: 16px; font-weight: 900; line-height: 1.5; }
.hb-shop .fc-calendar-detail-copy { margin: 0; color: var(--text-pure); font-size: 16px; font-weight: 700; line-height: 1.55; }
.hb-shop .fc-calendar-note { margin: 0; color: var(--text-sub); font-size: 13px; line-height: 1.55; }
.hb-shop .fc-example-event,
.hb-shop .fc-domain-sample-copy,
.hb-shop .fc-coach-next { margin: 0; color: var(--text-pure); font-size: 16px; line-height: 1.6; white-space: pre-line; }
.hb-shop .fc-date-example,
.hb-shop .fc-guardian-outfit { min-width: 0; padding: 12px; border: 1px solid var(--border-hair); border-radius: 12px; background: var(--bg-card); }
.hb-shop .fc-date-label { font-size: 16px; }
.hb-shop .fc-guardian-examples { display: grid; gap: 10px; min-width: 0; }
.hb-shop .fc-example-calendar > summary,
.hb-shop .fc-coach-details > summary {
  min-height: 44px;
  padding: 10px 0;
  color: var(--text-pure);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  cursor: pointer;
}
.hb-shop .fc-coach-details { min-width: 0; border-top: 1px solid var(--border-hair); }
.hb-shop .fc-condition-list { margin: 0; }
.hb-shop .fc-condition {
  display: grid;
  grid-template-columns: minmax(6.25rem, 1fr) minmax(0, 2.6fr);
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-hair);
  font-size: 15px;
  line-height: 1.55;
}
.hb-shop .fc-condition dt { color: var(--text-pure); font-weight: 800; }
.hb-shop .fc-condition dd { min-width: 0; margin: 0; color: var(--text-sub); }
.hb-shop .fc-condition dd p { margin: 0; }
.hb-shop .fc-condition dd p + p { margin-top: 3px; }
.hb-shop .fc-detail-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-pure);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hb-shop .fc-detail-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-hair);
}
.hb-shop .fc-detail-footer > .fc-period[hidden] + .fc-actions { grid-column: 1 / -1; }
.hb-shop .fc-guardian-costumes { display: flex; justify-content: center; align-items: end; gap: 12px; margin-top: 8px; }
.hb-shop .fc-guardian-costume { flex: 0 1 116px; min-width: 0; margin: 0; text-align: center; }
.hb-shop .fc-guardian-costume-img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; }
.hb-shop .fc-guardian-costume figcaption { margin-top: 4px; color: var(--text-sub); font-size: 14px; }
.hb-shop .fc-guardian-costume-error { color: var(--text-sub); font-size: 16px; line-height: 1.6; }
@media (max-width: 380px) {
  .hb-shop .fc-condition { grid-template-columns: minmax(0, 1fr); }
  .hb-shop .fc-date-example { padding: 8px; }
  .hb-shop .fc-calendar-grid { gap: 2px; }
  .hb-shop .fc-calendar-mark { padding-inline: 2px; font-size: 8px; }
}
