@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');

/* 포케야호 — 로고의 남색·노랑·하늘·주황. 맨 아래 "포케야호 레이어"가 최종 화면 규칙 */
:root {
  --night: #0f1e45;
  --night-2: #1a2d5e;
  --pink: #e0520f;
  --pink-d: #b8460c;
  --pink-dd: #b3191f;
  --pink-l: #fdecec;
  --pink-ll: #f4f6fb;
  --cream: #ffffff;
  --bg: #f3f4f7;
  --card: #ffffff;
  --ink: #141a2b;
  --muted: #687087;
  --line: #e2e5ed;
  --ok: #23845a;
  --ok-l: #e5f4ec;
  --warn: #b7731b;
  --warn-l: #fbf0de;
  --err: #d0333b;
  --yellow: #ffcf3a;

  --f-display: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --f-body: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;

  --r-xl: 18px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-pill: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 74, 0.05), 0 8px 22px -14px rgba(20, 33, 74, 0.28);
  --shadow-soft: 0 4px 12px -6px rgba(20, 33, 74, 0.3);
  --puffy: none;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bar-h: 76px;
}

* { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, a, [role='button'], label.choice {
  touch-action: manipulation;
}
button, .btn, .chip, .stepper, .tab {
  user-select: none;
  -webkit-user-select: none;
}
input, textarea, select { font-size: 16px; font-family: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink-d); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 560px; margin: 0 auto; padding-inline: 16px; }

/* ===== 헤더 ===== */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #000;
  color: var(--cream);
  padding-top: env(safe-area-inset-top, 0px);
  border-radius: 0 0 26px 26px;
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.6);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 58px; }
.brand { display: flex; align-items: baseline; gap: 2px; text-decoration: none; font-family: var(--f-display); font-size: 26px; line-height: 1; }
.brand .g { color: var(--pink); }
.account-links { display: flex; align-items: center; gap: 9px; }
.top-link { color: var(--cream); text-decoration: none; font-size: 11px; font-weight: 700; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .top-link:hover { color: var(--pink); } }
.brand .q { color: var(--pink); font-size: 16px; transform: translateY(-9px) rotate(10deg); display: inline-block; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--night-2); color: var(--cream);
  border: 0; text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--ease);
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--pink); color: var(--night); font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}

/* LIVE 배지 */
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  background: var(--night-2); color: #b9a9ab;
}
.live-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #6f6264; }
.live-pill.on { background: var(--pink); color: var(--night); box-shadow: var(--puffy); }
.live-pill.on::before { background: #e3264a; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ===== 히어로 ===== */
.hero { background: #000; margin-top: -26px; padding: 26px 0 6px; border-radius: 0 0 36px 36px; text-align: center; overflow: hidden; }
.hero img { width: 100%; max-width: 900px; height: auto; aspect-ratio: 1536 / 614; margin: 0 auto; }

/* ===== 알림 배너 ===== */
.banner {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: var(--pink-l);
  color: var(--pink-dd);
  font-weight: 600;
  display: flex; gap: 10px; align-items: center;
}
.banner .heart { font-size: 18px; }
.banner.off { background: var(--cream); color: #7a6150; }
.notice { margin-top: 10px; padding: 12px 16px; border-radius: var(--r-md); background: var(--card); color: var(--muted); font-size: 14px; box-shadow: var(--shadow); white-space: pre-line; }

/* ===== 상품 그리드 ===== */
.section-title { font-family: var(--f-display); font-weight: 400; font-size: 25px; margin: 26px 4px 12px; display: flex; align-items: center; gap: 8px; }
.section-title small { font-family: var(--f-body); font-size: 13px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* 홈(상품 목록)은 넓게: 카드가 너무 작지 않도록 */
body.has-cartbar main.wrap { max-width: 820px; }
.card {
  position: relative;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 10px 10px 14px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer;
  border: 0; text-align: left; font: inherit; color: inherit;
  transition: transform 140ms var(--ease);
}
.card { text-decoration: none; color: inherit; }
.card:active { transform: scale(0.97); }
.thumb {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #fff 0%, var(--pink-l) 55%, var(--pink) 130%);
  display: grid; place-items: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { font-family: var(--f-display); font-size: 56px; color: #fff; text-shadow: 0 3px 8px rgba(201, 90, 115, 0.35); }
.card .name { font-weight: 700; font-size: 16px; line-height: 1.38; padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card .row { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; gap: 6px; }
.price { font-family: var(--f-display); color: var(--pink-dd); font-size: 22px; line-height: 1.1; }
.price.hidden { font-family: var(--f-body); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stock-tag { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.stock-tag.low { color: var(--pink-dd); }
.add-dot {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink); color: var(--night); font-size: 24px; font-weight: 800; line-height: 1;
  box-shadow: var(--puffy), var(--shadow-soft);
}
.soldout .thumb::after {
  content: 'SOLD OUT ♡';
  position: absolute; inset: 10px 10px auto 10px; aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: rgba(20, 16, 17, 0.55);
  color: var(--cream); font-family: var(--f-display); font-size: 20px;
  display: grid; place-items: center;
}
.soldout .add-dot { background: #eee3e0; color: #b5a6a8; box-shadow: none; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty.small { padding: 18px 16px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.empty.small p { margin: 0; }
.section-title:not(.sample)::before { content: "🎀"; font-size: 19px; }
.section-title.sample { margin-top: 48px; padding-top: 48px; border-top: 2px dashed var(--line); }
.section-title.sample::before { content: "✿"; color: var(--pink-d); font-size: 18px; }
.empty .big { font-family: var(--f-display); font-size: 40px; color: var(--pink); }

/* ===== 구매 고객 리뷰 ===== */
.review-section { margin: 54px 0 30px; padding-top: 28px; border-top: 2px dashed var(--line); }
.review-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 0 4px 16px; }
.review-section-head h2 { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 400; font-size: 25px; margin: 0; }
.review-section-head h2::before { content: "✿"; color: var(--pink-d); font-family: var(--f-body); font-size: 18px; line-height: 1; }
.review-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.review-section-tools { display: flex; align-items: center; gap: 8px; }
.review-count { flex: none; color: var(--pink-dd); font-size: 13px; font-weight: 800; }
.review-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.review-entry { min-width: 0; padding: 16px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.review-entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.review-entry-head time { flex: none; color: var(--muted); font-size: 11px; }
.review-stars { color: var(--pink-dd); letter-spacing: .08em; font-size: 14px; }
.review-rating { margin-left: 6px; color: var(--pink-dd); font-size: 12px; font-weight: 800; }
.review-product { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 0; color: var(--ink); font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.review-product-label { flex: none; color: var(--muted); font-size: 11px; font-weight: 600; }
.review-product-name { min-width: 0; overflow-wrap: anywhere; }
.review-author { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 13px; font-weight: 800; }
.review-verified { display: inline-flex; align-items: center; min-height: 21px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--ok-l); color: var(--ok); font-size: 11px; font-weight: 800; }
.review-content { margin: 11px 0 0; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.review-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.review-photos-1 { grid-template-columns: minmax(0, 1fr); }
.review-photos a { display: block; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 13px; background: var(--pink-ll); }
.review-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.review-purchase { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.review-purchase-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.review-item-chip { max-width: 100%; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.review-empty { margin: 0; padding: 22px 16px; border-radius: var(--r-lg); background: var(--card); color: var(--muted); text-align: center; box-shadow: var(--shadow); }
.review-write-panel { margin-bottom: 16px; padding: 16px; border: 1.5px solid var(--pink-d); border-radius: var(--r-lg); background: var(--pink-ll); }
.review-write-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.review-write-panel-head strong { font-size: 15px; }
.review-write-panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.review-write-count { flex: none; color: var(--pink-dd); font-size: 12px; font-weight: 800; }
.review-write-list { display: grid; gap: 12px; }
.review-write-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.review-write-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-width: 0; }
.review-write-card-head > div { min-width: 0; }
.review-write-card-head h3 { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.review-write-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.review-write-kicker { color: var(--ok); font-size: 11px; font-weight: 800; }
.review-write-card-head .btn { flex: none; }
.review-modal .sheet-head h2 { min-width: 0; overflow-wrap: anywhere; }
.review-modal .sheet-body { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.review-modal-product { display: grid; gap: 3px; margin: 2px 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--pink-ll); }
.review-modal-product strong { font-size: 17px; overflow-wrap: anywhere; }
.review-modal-product small { color: var(--muted); font-size: 12px; }
.review-modal-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.review-modal-form .btn.block { margin-top: 4px; }
.review-file-picker { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 2px; padding: 9px; border: 1px dashed var(--pink-d); border-radius: 16px; background: var(--pink-ll); }
.review-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.review-file-button { display: inline-flex; align-items: center; gap: 9px; flex: none; min-height: 46px; padding: 0 13px 0 9px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .review-file-button:hover { background: #fffaf8; } }
.review-file-button:focus-within { outline: 3px solid var(--pink-d); outline-offset: 2px; }
.review-file-button-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--pink); color: var(--night); font-size: 22px; line-height: 1; }
.review-file-button strong, .review-file-button small { display: block; }
.review-file-button strong { font-size: 13px; }
.review-file-button small { margin-top: 1px; color: var(--muted); font-size: 10px; font-weight: 500; }
.review-file-name { min-width: 0; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-login-prompt { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--card); color: var(--muted); box-shadow: var(--shadow); }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: var(--r-pill);
  font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
  background: var(--night); color: var(--cream);
  transition: transform 120ms var(--ease), background 120ms, opacity 120ms;
}
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn.disabled { opacity: 0.45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.big { min-height: 58px; font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.btn.pink { background: var(--pink); color: var(--night); box-shadow: var(--puffy), var(--shadow-soft); }
.btn.soft { background: var(--pink-l); color: var(--pink-dd); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.kakao { background: #fee500; color: #191600; }
.btn.google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1.5px #e6dcda; }
.btn .sub { font-family: var(--f-body); font-size: 13px; font-weight: 600; opacity: 0.85; }
.link { color: var(--pink-dd); font-weight: 600; text-decoration: none; }

/* ===== 하단 장바구니 바 ===== */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 70%, rgba(243, 244, 247, 0));
  transform: translateY(110%);
  transition: transform 260ms var(--ease);
}
.cartbar.show { transform: none; }
.cartbar-inner { max-width: 528px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.cartbar .btn { display: flex; width: 100%; justify-content: space-between; padding: 0 10px 0 22px; }
.cartbar .cartbar-buy { width: auto; padding-inline: 18px; justify-content: center; }
.cartbar .count { background: var(--pink); color: var(--night); border-radius: var(--r-pill); padding: 4px 12px; font-family: var(--f-body); font-size: 14px; font-weight: 800; }
.has-cartbar { padding-bottom: calc(var(--bar-h) + 24px); }

/* ===== 바텀시트 ===== */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 16, 17, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
  max-width: 560px; margin: 0 auto;
  max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--bg);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.35);
  transform: translateY(105%);
  transition: transform 300ms var(--ease);
}
.sheet.open { transform: none; }
.sheet-grab { width: 44px; height: 5px; border-radius: 9px; background: #e8d6d1; margin: 10px auto 4px; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 20px 8px; flex: none; }
.sheet-head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.sheet-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--pink-ll); color: var(--ink); font-size: 20px; cursor: pointer; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 16px; flex: 1; }
.sheet-foot { flex: none; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }

.p-gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 4px; }
.p-gallery .thumb { flex: 0 0 auto; width: min(46vw, 210px); scroll-snap-align: start; border-radius: 22px; }
.p-name { font-weight: 800; font-size: 19px; margin: 14px 0 2px; line-height: 1.35; }
.p-price { font-family: var(--f-display); color: var(--pink-dd); font-size: 28px; }
.p-desc { color: #5f5153; font-size: 14.5px; margin: 10px 0 0; white-space: pre-line; }
.p-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--pink-ll); color: var(--pink-dd); font-size: 12.5px; font-weight: 700; }
.chip.gray { background: #f3ece9; color: var(--muted); }
.chip.ok { background: var(--ok-l); color: var(--ok); }
.chip.warn { background: var(--warn-l); color: var(--warn); }
.chip.dark { background: var(--night); color: var(--cream); }

/* 독립 상품 상세페이지 */
.detail-page { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 80px; }
.detail-breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .04em; margin-bottom: 22px; }
.detail-breadcrumb a { color: var(--ink); text-decoration: none; font-weight: 700; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: clamp(36px, 7vw, 96px); align-items: start; }
.detail-media { min-width: 0; position: relative; }
.detail-gallery-viewport { width: 100%; overflow: hidden; border-radius: 4px; }
.detail-gallery { display: flex; align-items: flex-start; gap: 0; width: 100%; margin: 0; padding: 0; overflow: visible; transition: transform 260ms cubic-bezier(.2,.8,.2,1); will-change: transform; }
.detail-gallery .thumb { align-self: flex-start; flex: 0 0 100%; width: 100%; max-height: none; overflow: visible; scroll-snap-align: none; border-radius: 4px; background: transparent; }
.detail-gallery .thumb img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.gallery-nav { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 16, 17, .72); color: #fff; font-size: 31px; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: opacity 160ms ease, background 160ms ease; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
@media (hover: hover) and (pointer: fine) { .gallery-nav:hover { background: rgba(20, 16, 17, .9); } }
.gallery-nav:disabled { opacity: .28; cursor: default; pointer-events: none; }
.detail-info { padding: 10px 0 0; }
.detail-kicker { color: var(--muted); font-size: 11px; letter-spacing: .12em; margin: 0 0 14px; }
.detail-info .p-name { font-family: var(--f-body); font-size: 22px; margin: 0 0 10px; line-height: 1.45; }
.detail-info .p-price { font-size: 29px; margin-bottom: 18px; }
.detail-info .p-meta { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; }
.detail-package-box { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; display: grid; gap: 14px; }
.detail-package-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-package-option { position: relative; cursor: pointer; }
.detail-package-option input { position: absolute; opacity: 0; pointer-events: none; }
.detail-package-option > span { display: grid; gap: 3px; min-height: 104px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.package-option-content { display: grid !important; grid-template-columns: 58px minmax(0, 1fr); gap: 10px !important; align-items: center; }
.package-option-image { width: 58px; height: 58px; overflow: hidden; border-radius: 10px; background: var(--pink-ll); display: grid; place-items: center; color: var(--pink-dd); font-size: 11px; font-weight: 800; }
.package-option-image img { width: 100%; height: 100%; object-fit: cover; }
.package-option-content > span:last-child { display: grid; gap: 3px; min-width: 0; }
.detail-package-option strong { font-size: 16px; }
.detail-package-option small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.detail-package-option b { margin-top: auto; color: var(--pink-dd); font-size: 16px; }
.detail-package-option input:checked + span { border-color: var(--pink-d); background: var(--pink-ll); box-shadow: inset 0 0 0 1px var(--pink-d), var(--shadow); }
.detail-package-option input:focus-visible + span { outline: 3px solid var(--pink-d); outline-offset: 2px; }
.detail-option-box { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; display: grid; gap: 14px; }
.detail-option-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.detail-option-label span { color: var(--muted); font-size: 12px; }
.expected-shipping { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #e9f7f0; color: #2d7258; font-size: 13px; }
.expected-shipping strong { margin-left: 6px; }
.detail-option-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.detail-option-row > div:first-child { display: grid; gap: 2px; }
.detail-option-row strong { font-size: 15px; }
.detail-option-row small { color: var(--muted); font-size: 12px; }
.detail-stepper { display: flex; align-items: center; gap: 10px; }
.detail-stepper button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--pink-ll); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.detail-stepper button:last-child { background: var(--pink); color: var(--ink); box-shadow: var(--puffy); }
.detail-stepper button:disabled { opacity: .35; cursor: default; }
.detail-stepper output { min-width: 18px; text-align: center; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.detail-field { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 16px; font-size: 13px; }
.detail-field > span { color: var(--muted); }
.detail-field select { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 11px 12px; font: inherit; }
.detail-qty { display: flex; align-items: center; width: 132px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.detail-qty button { width: 36px; height: 36px; border: 0; background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; }
.detail-qty input { width: 58px; height: 36px; border: 0; border-inline: 1px solid var(--line); text-align: center; font: inherit; }
.detail-total { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.detail-total strong { color: var(--ink); font-family: var(--f-display); font-size: 25px; font-weight: 400; letter-spacing: 0; }
.detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.detail-actions .btn { border-radius: 4px; }
.detail-wish { border: 1px solid var(--line); background: #fff; border-radius: 4px; color: var(--pink-dd); font-size: 24px; cursor: pointer; }
.cart-fly { position: fixed; z-index: 100; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: var(--night); font-weight: 800; pointer-events: none; box-shadow: var(--shadow-soft); transition: transform 560ms cubic-bezier(.2,.8,.2,1), opacity 560ms ease; }
.cart-fly.is-flying { opacity: 0; transform: translate(var(--fly-x), var(--fly-y)) scale(.45); }
.detail-tabs { display: flex; justify-content: center; gap: 0; border-bottom: 1px solid var(--line); margin-top: 90px; }
.detail-tabs a { min-width: 110px; padding: 15px 12px; color: var(--muted); text-align: center; text-decoration: none; font-size: 11px; letter-spacing: .04em; }
.detail-tabs a.on { color: var(--ink); border-bottom: 1px solid var(--pink-dd); }
.detail-description { width: min(1160px, 100%); max-width: none; min-height: 160px; margin: 42px auto 0; text-align: center; }
.detail-description h2 { font-family: var(--f-display); font-size: 22px; font-weight: 400; margin: 0 0 22px; }
.detail-description .p-desc, .detail-description p { color: #5f5153; font-size: 15px; line-height: 1.85; white-space: normal; }
.detail-description .detail-description-text { max-width: 760px; margin: 0 auto; text-align: left; }
.detail-images { display: grid; gap: 0; width: 100%; margin: 34px auto 0; }
.detail-image { display: block; width: 100%; max-width: none; height: auto; border-radius: 0; }
.detail-guide { border-top: 1px solid var(--line); padding-top: 36px; }
.detail-empty { color: var(--muted); }

/* 수량 스테퍼 */
.opt-box { margin-top: 18px; display: grid; gap: 10px; }
.opt-label { font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.opt-label small { color: var(--muted); font-weight: 600; }
.opt-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border-radius: var(--r-lg); padding: 10px 10px 10px 18px;
  box-shadow: var(--shadow);
}
.opt-row .lbl { font-weight: 700; font-size: 16px; display: flex; flex-direction: column; line-height: 1.25; }
.opt-row .lbl small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--pink-l); color: var(--ink);
  font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: transform 100ms var(--ease), background 100ms;
}
.stepper button.plus { background: var(--pink); box-shadow: var(--puffy); }
.stepper button:active { transform: scale(0.88); }
.stepper button[disabled] { opacity: 0.35; }
.stepper output, .stepper input { min-width: 30px; text-align: center; font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
/* 수량 직접 입력 칸: 버튼 사이에 숫자만 보이게, 스핀 화살표 제거, 모바일 확대 방지(16px) */
.stepper input, .pcard-qty input { width: 3.2em; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button, .pcard-qty input::-webkit-outer-spin-button, .pcard-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus, .pcard-qty input:focus { outline: none; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--yellow, #ffc61a); }
.stepper input { font-size: 16px; }
.stepper.sm button { width: 34px; height: 34px; font-size: 19px; }
.stepper.sm output, .stepper.sm input { min-width: 22px; font-size: 16px; }

/* 장바구니 줄 */
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 64px; height: 64px; flex: none; align-self: flex-start; border-radius: 14px; }
.cart-line .thumb .ph { font-size: 24px; }
.cart-line .info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cart-line .nm { font-weight: 700; font-size: 15px; line-height: 1.35; }
.cart-line .opt { color: var(--muted); font-size: 13px; }
.cart-line .amt { font-weight: 800; }
.cart-line .problem { color: var(--err); font-size: 13px; font-weight: 700; }
.cart-line .ctrl { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cart-line .rm { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px; }
.cart-line .split { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.cart-line .split .s { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 6px 5px 14px; border-radius: 14px; background: var(--pink-ll); font-size: 14px; font-weight: 700; }
.cartbar .disabled { opacity: .48; pointer-events: auto; }
.hint { background: #f7f1ef; border-radius: var(--r-md); padding: 12px 14px; color: var(--muted); font-size: 13.5px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.sum-row.total { font-size: 18px; font-weight: 800; padding-top: 10px; }
.sum-row.total .v { font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--pink-dd); }
.sum-row .k { color: var(--muted); }
.sum-row .minus { color: var(--pink-dd); }

/* ===== 패널 (주문서, 마이페이지) ===== */
.page { width: min(100%, 560px); padding-block: 18px 40px; }
.page-title { font-family: var(--f-display); font-weight: 400; font-size: 28px; margin: 6px 4px 14px; display: flex; align-items: center; gap: 10px; }
.back { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); text-decoration: none; font-size: 18px; }
.panel { background: var(--card); border-radius: var(--r-xl); padding: 20px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.panel h2 { font-size: 17px; margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel h2 .side { font-size: 13px; font-weight: 600; }
.panel.tint { background: var(--pink-ll); box-shadow: none; }
.panel.dark { background: var(--night); color: var(--cream); }
.panel.auth { max-width: 480px; margin-inline: auto; padding: 32px 34px 30px; }
.panel.auth h1 { font-size: 32px; margin: 0 0 26px; }
.panel.auth .field { margin-bottom: 18px; }
.panel.auth .field input { min-height: 56px; }
.profile-panel { padding: 24px 22px 22px; }
.my-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.my-heading h2 { font-size: 24px; margin: 0 0 2px; }
.my-heading .hint { margin: 0; }
.my-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
/* 마이페이지 이용 요약(총 사용금액·결제 주문·마일리지): 놓인 폭에 따라 3열→1열 */
.my-stats { container-type: inline-size; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; padding: 0; }
.my-stat { min-width: 0; margin: 0; padding: 14px 16px 12px; border: 1px solid var(--line, #e3e7f0); border-radius: 14px; background: #f7f8fb; }
.my-stat dt { margin: 0; color: var(--muted, #6b7590); font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; }
.my-stat dd { margin: 4px 0 0; font-size: clamp(20px, 2vw, 24px); font-weight: 900; letter-spacing: -.03em; line-height: 1.15; color: var(--night, #0f1e45); font-variant-numeric: tabular-nums; }
.my-stat small { display: block; margin-top: 4px; color: var(--muted, #6b7590); font-size: 11.5px; font-weight: 600; }
.my-stat:first-child { background: #fff8e0; border-color: #f3dd8a; }
@media (max-width: 639px) { .my-stats { grid-template-columns: 1fr; gap: 8px; } .my-stat { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 12px 14px; } .my-stat dd { margin: 0; font-size: 19px; } .my-stat small { grid-column: 1 / -1; margin-top: 2px; } }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.profile-form .field { margin-bottom: 14px; }
.profile-form .btn { margin-top: 4px; }
.my-section { padding: 20px 18px; }
.my-section .section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.my-section .section-head h2 { margin: 0; }
.my-section > .hint { margin: 0 0 12px; }
.my-order-item { box-shadow: none; border: 1px solid var(--line); }
.my-order-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 5px; color: var(--muted); font-size: 13px; }
.my-order-row b { color: var(--pink-dd); font-size: 15px; }
.my-empty { color: var(--muted); margin: 0; padding: 12px 0 4px; }
.keep-merge { background: var(--pink-ll); border-radius: var(--r-md); padding: 12px 14px; margin: 14px 0 18px; }
.keep-merge .check { padding: 0; }
.keep-merge .hint { margin: 5px 0 0 32px; }
.delivery-choices { margin-bottom: 4px; }
.order-merge-box { min-width: 0; margin: 18px 0 24px; padding: 0; border: 0; }
.order-merge-box legend { padding: 0; font-size: 17px; font-weight: 800; }
.order-merge-box .merge-hint { margin: 10px 0 12px; line-height: 1.5; }
.merge-options { display: grid; gap: 8px; }
.merge-option { position: relative; display: block; min-width: 0; cursor: pointer; }
.merge-option input { position: absolute; z-index: 1; top: 18px; left: 16px; width: 22px; height: 22px; margin: 0; accent-color: var(--pink-d); }
.merge-option-body {
  display: grid; gap: 4px; min-height: 80px; padding: 14px 14px 14px 50px;
  border-radius: var(--r-md); background: #f8f1ef;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: background 140ms, box-shadow 140ms;
}
.merge-option-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.merge-option-heading strong { min-width: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; }
.merge-option-heading b { flex: none; color: var(--ink); font-size: 14px; }
.merge-option-meta { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.merge-option-body small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.merge-option input:checked + .merge-option-body { background: var(--pink-ll); box-shadow: inset 0 0 0 2px var(--pink-d); }
.merge-option input:focus-visible + .merge-option-body { outline: 3px solid var(--pink-d); outline-offset: 2px; }
.merge-option-separate .merge-option-body { min-height: 66px; }
.merge-option-separate .merge-option-heading b { color: var(--muted); font-size: 12px; }
.checkout-total-hint { margin: 24px 0 14px; line-height: 1.5; }
.checkout-total { margin: 0 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.checkout-total .sum-row { padding-block: 5px; }
.checkout-total .sum-row.total { margin-top: 5px; padding-top: 12px; }

/* 선택 타일 (배송방식, 결제수단) */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .tile {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 14px 13px;
  border-radius: var(--r-lg);
  background: #f8f1ef;
  box-shadow: inset 0 0 0 2px transparent;
  transition: background 140ms, box-shadow 140ms, transform 120ms var(--ease);
  min-height: 84px;
}
.choice:active .tile { transform: scale(0.97); }
.choice .tile .t { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.choice .tile .d { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.choice input:checked + .tile { background: var(--pink-l); box-shadow: inset 0 0 0 2px var(--pink-d); }
.choice input:checked + .tile .t::after { content: '♥'; color: var(--pink-dd); font-size: 13px; margin-left: auto; }
.choice input:focus-visible + .tile { outline: 3px solid var(--pink-d); outline-offset: 2px; }
.choice input:disabled + .tile { opacity: 0.45; }

/* 폼 */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: 13px; font-weight: 700; color: #6c5c5f; padding-left: 4px; }
.required-mark { color: var(--pink-dd); font-size: 11px; font-style: normal; margin-left: 3px; }
.payment-depositor { margin: 10px 0 0; }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 0;
  background: #f8f1ef;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow 120ms, background 120ms;
}
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--pink-d); }
.field input[readonly] { color: #6c5c5f; }
.field-row { display: flex; gap: 8px; }
.field-row > * { min-width: 0; }
.field-row .grow { flex: 1; }
.address-search-row { align-items: center; }
.address-search-row .btn { flex: 0 0 auto; min-height: 52px; white-space: nowrap; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; padding: 6px 2px; }
.check input { width: 22px; height: 22px; accent-color: var(--pink-d); flex: none; }
.err-box { background: #fde8ec; color: var(--err); border-radius: var(--r-md); padding: 12px 14px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.addr-view { display: grid; gap: 2px; font-size: 15px; }
.addr-view .who { font-weight: 800; }
.addr-view .muted { color: var(--muted); font-size: 14px; }

/* 하단 고정 결제 버튼 */
.paybar {
  position: sticky; bottom: 0; z-index: 20;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 75%, rgba(243, 244, 247, 0));
}

/* 계좌 안내 */
.bank-card { background: var(--night); color: var(--cream); border-radius: var(--r-xl); padding: 22px 20px; display: grid; gap: 12px; }
.bank-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bank-card .k { color: #b9a9ab; font-size: 13px; }
.bank-card .v { font-weight: 800; font-size: 17px; }
.bank-card .amount { font-family: var(--f-display); font-weight: 400; color: var(--pink); font-size: 30px; }
.bank-mini { background: var(--night); color: var(--cream); border-radius: var(--r-lg); padding: 14px 16px; }
.bank-mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bank-mini .k { color: #b9a9ab; font-size: 12.5px; }
.bank-mini .k b { color: var(--cream); }
.bank-mini .v { font-weight: 800; font-size: 17px; margin: 2px 0; }
.copy { border: 0; background: var(--night-2); color: var(--pink); border-radius: var(--r-pill); padding: 7px 13px; font-weight: 700; font-size: 13px; cursor: pointer; }
.copy:active { transform: scale(0.95); }

.done-hero { text-align: center; padding: 18px 0 8px; }
.done-hero .big { font-family: var(--f-display); font-size: 30px; }
.done-hero .heart { font-size: 40px; color: var(--pink); display: inline-block; animation: pop 600ms var(--ease) both; }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }

.order-reviews { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.order-reviews > h2 { margin: 0 0 6px; font-size: 18px; }
.order-reviews > .hint { margin: 0 0 12px; }
.order-review-list { display: grid; gap: 12px; }
.order-review-card { min-width: 0; padding: 16px; border-radius: var(--r-lg); background: var(--pink-ll); }
.order-review-card h3 { margin: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.order-review-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.review-written { background: #f8f1ef; }
.review-locked { color: var(--muted); }
.review-locked p { margin: 6px 0 0; font-size: 13px; }
.review-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.review-form legend { margin-bottom: 12px; font-size: 15px; font-weight: 800; }
.review-form .field { margin-bottom: 10px; }
.review-form .field > span small { color: var(--muted); font-size: 11px; font-weight: 500; }
.review-form .field textarea { min-height: 104px; }
.review-form input[type="file"] { padding: 10px 12px; font-size: 13px; }
.field-help { display: block; color: var(--muted); font-size: 12px; }
.review-form .btn { min-height: 44px; }
.my-reviews .section-head { align-items: flex-start; }
.my-review-card { padding: 16px 0; border-top: 1px solid var(--line); }
.my-review-card:first-of-type { border-top: 0; padding-top: 0; }
.my-review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.my-review-head h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.my-review-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.my-review-card .review-photos { max-width: 360px; }
.review-edit-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.review-edit-form .field { margin-bottom: 10px; }
.review-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-photo-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; max-width: 360px; }
.review-photo-preview-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--pink-ll); }
.review-photo-preview-item img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 리스트 */
.list { display: grid; gap: 10px; }
.item { display: block; background: var(--card); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; }
.item .top-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.item .meta { color: var(--muted); font-size: 13px; }
.item .title { font-weight: 700; margin: 4px 0 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }

/* 킵 진행바 */
.keep-meter { display: grid; gap: 8px; }
.keep-amount { font-family: var(--f-display); font-size: 30px; color: var(--pink-dd); line-height: 1.1; }
.meter { height: 16px; border-radius: 99px; background: #f3e4e0; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06); }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pink), var(--pink-d)); box-shadow: var(--puffy); }
.keep-left { font-weight: 700; font-size: 14.5px; }
.keep-left b { color: var(--pink-dd); }

.menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.menu a { background: var(--card); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); text-decoration: none; font-weight: 700; display: grid; gap: 2px; }
.menu a small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.menu a .v { font-family: var(--f-display); font-weight: 400; font-size: 20px; color: var(--pink-dd); }

/* 탭 */
.tabs { display: flex; gap: 6px; background: #f3ebe8; padding: 5px; border-radius: var(--r-pill); margin-bottom: 14px; }
.tabs a { flex: 1; text-align: center; padding: 9px 6px; border-radius: var(--r-pill); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); }
.tabs a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-soft); }

/* 플래시/토스트 */
.toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); z-index: 90;
  transform: translate(-50%, -140%);
  max-width: min(92vw, 480px);
  background: var(--night); color: var(--cream);
  padding: 12px 18px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14.5px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 280ms var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: var(--err); color: #fff; }

/* 로그인 */
.auth-hero { background: var(--night); border-radius: var(--r-xl); padding: 26px 18px 22px; text-align: center; color: var(--cream); margin-bottom: 14px; }
.auth-hero img { width: min(300px, 86%); margin: 0 auto; }
.auth-hero p { margin: 6px 0 0; color: #cdbfc1; font-size: 14px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.stack { display: grid; gap: 10px; }

/* 약관 */
.policy h2 { font-size: 16px; margin: 22px 0 6px; }
.policy p { margin: 0 0 10px; color: #4f4244; font-size: 14.5px; }

/* 하단 사업자 정보 */
.foot { margin-top: auto; padding: 26px 0 calc(30px + env(safe-area-inset-bottom, 0px)); background: var(--night); color: #a8999b; border-radius: 30px 30px 0 0; font-size: 12.5px; line-height: 1.75; }
.foot .brand { font-size: 22px; margin-bottom: 8px; color: var(--cream); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 12px; }
.foot-links a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 13px; }
.foot-links a.strong { color: var(--pink); }
.foot .biz span { display: inline-block; margin-right: 10px; }

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); }
  .btn:hover { filter: brightness(1.05); }
  .link:hover { text-decoration: underline; }
  .item:hover, .menu a:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}

@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .card { padding: 12px 12px 16px; border-radius: 26px; }
  .card .name { font-size: 17px; }
  .price { font-size: 24px; }
  .wrap.wide { max-width: 760px; }
}

@media (max-width: 600px) {
  .review-section-head { align-items: flex-start; flex-direction: column; }
  .review-feed { grid-template-columns: 1fr; }
  .review-write-card { align-items: stretch; }
  .review-write-card-head { align-items: stretch; flex-direction: column; }
  .review-write-card-head .btn { width: 100%; }
  .review-modal { max-height: 94dvh; }
  .review-modal .sheet-head { padding-inline: 16px; }
  .review-modal .sheet-body { padding-inline: 16px; }
  .review-file-picker { align-items: stretch; flex-direction: column; }
  .review-file-button { justify-content: center; }
  .review-file-name { padding: 0 4px; text-align: center; }
}

@media (max-width: 760px) {
  .detail-page { width: min(100% - 24px, 560px); padding-top: 18px; }
  .detail-layout { grid-template-columns: 1fr; gap: 26px; }
  .detail-info { padding: 0 4px; }
  .detail-tabs { margin-top: 52px; overflow-x: auto; justify-content: flex-start; }
  .detail-tabs a { flex: 1 0 92px; min-width: 0; }
  .detail-description { margin-top: 32px; }
  .detail-package-options { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .profile-grid { grid-template-columns: 1fr; }
  .my-heading { flex-direction: column; }
  .my-heading-actions { justify-content: flex-start; }
  .detail-actions { grid-template-columns: 1fr; }
}

/* 배송 안내 공지 모달 */
.notice-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: rgba(20, 16, 17, 0.62); opacity: 0; transition: opacity 0.22s ease; }
.notice-modal[hidden] { display: none; }
.notice-modal.open { opacity: 1; }
.notice-modal-card { display: flex; flex-direction: column; width: min(100%, 460px); max-height: 100%; border-radius: var(--r-xl); background: #fff; box-shadow: 0 18px 50px -12px rgba(20, 16, 17, 0.5); overflow: hidden; transform: translateY(12px) scale(0.98); transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); }
.notice-modal.open .notice-modal-card { transform: none; }
.notice-modal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--pink-ll); }
.notice-modal-body img { display: block; width: 100%; height: auto; }
.notice-modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-top: 1px solid var(--pink-l); background: #fff; }
.notice-modal-today { padding: 8px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .notice-modal-today:hover { color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .notice-modal, .notice-modal-card { transition: none; } }

/* 주문서 쿠폰 · 마이페이지 쿠폰 */
.coupon-row { align-items: center; }
.coupon-pick { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.coupon-pick select { max-width: 200px; text-overflow: ellipsis; min-height: 36px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.coupon-pick [data-sum-coupon] { color: var(--pink-dd); font-weight: 800; white-space: nowrap; }
.my-coupons { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.my-coupon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--pink-ll); border: 1.5px dashed var(--pink); }
.my-coupon strong { display: block; }
.my-coupon .meta { font-size: 12px; color: var(--muted); }
.my-coupon b { color: var(--pink-dd); font-size: 18px; white-space: nowrap; }
.order-ship-info { margin: 10px 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--pink-ll); font-size: 14px; }
.order-ship-info a { color: var(--pink-dd); font-weight: 800; }

/* =====================================================================
   공통 레이어 — 위 기본 규칙을 덮어쓰는 부분과 새 화면(헤더, 필터, 상품 카드, 공지)
   ===================================================================== */
.wrap { max-width: 640px; }
.sr-only { white-space: nowrap; }

/* 굵은 제목류: 둥근 디스플레이 서체 대신 Pretendard 굵기로 */
.section-title, .price, .p-price, .btn.big, .sheet-head h2, .page-title, .detail-total strong, .sum-row.total .v,
.bank-card .amount, .keep-amount, .menu a .v, .done-hero .big, .review-section-head h2, .detail-description h2, .panel.auth h1, .thumb .ph {
  font-weight: 800; letter-spacing: -0.01em;
}
.section-title::before, .section-title:not(.sample)::before, .review-section-head h2::before { content: none; }
.choice input:checked + .tile .t::after { content: '✓'; color: var(--night); }
.btn { border-radius: var(--r-md); background: var(--night); color: #fff; }
.btn.pink { background: var(--pink); color: #fff; box-shadow: none; }
.btn.soft { background: #e9edf6; color: var(--night); }
.btn.ghost { box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.btn.big { font-size: 17px; }
.link { color: var(--night); text-decoration: underline; text-underline-offset: 3px; }
.chip { border-radius: 6px; background: #eef1f7; color: var(--night); }
.cartbar .count { background: #fff; color: var(--night); border-radius: 6px; }
.stepper button { background: #eef1f7; border-radius: 10px; }
.stepper button.plus { background: var(--night); color: #fff; box-shadow: none; }
.detail-stepper button { border-radius: 10px; background: #eef1f7; color: var(--ink); }
.detail-stepper button:last-child { background: var(--night); color: #fff; box-shadow: none; }
.detail-actions .btn { border-radius: var(--r-md); }
.cart-fly { background: var(--pink); color: #fff; }
.thumb { background: linear-gradient(160deg, #f7f8fb, #e9ecf3); border-radius: 12px; }
.thumb .ph { font-size: 15px; letter-spacing: .12em; color: #b7bdcc; text-shadow: none; }
.hint { background: #f1f3f8; }
.field > span { color: #4c556b; }
.input, .field input, .field textarea, .field select { background: #f3f5f9; }
.choice .tile, .merge-option-body { background: #f3f5f9; }
.choice input:checked + .tile, .merge-option input:checked + .merge-option-body { background: #eef1f9; box-shadow: inset 0 0 0 2px var(--night); }
.bank-card, .bank-mini { background: var(--night); }
.bank-card .amount { color: var(--yellow); }
.copy { background: var(--night-2); color: #fff; }
.toast { border-radius: 12px; background: var(--night); }
.tabs { background: #e9ecf3; border-radius: 12px; }
.tabs a { border-radius: 9px; }
.sheet { border-radius: 20px 20px 0 0; }
.sheet-close { background: #eef1f7; }
.meter i { background: linear-gradient(90deg, var(--night-2), var(--pink)); }
.review-stars, .review-rating, .review-count { color: #e3a008; }
.review-write-panel { border-color: var(--line); background: #fff; }
.my-coupon { border-color: #c9d0e2; }

/* ===== 헤더 ===== */
.site-head { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.head-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 104px; }
.head-nav { display: flex; gap: 26px; }
.head-nav a { position: relative; text-decoration: none; font-weight: 800; font-size: 16px; color: var(--ink); padding: 6px 0; }
.head-nav a.on { color: var(--pink); }
.head-nav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--pink); }
.head-logo { display: block; }
.head-logo img { height: 88px; width: auto; transition: transform 200ms var(--ease); }
.head-util { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.util { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer; }
.util svg { flex: none; }
.util.text-only svg { display: none; }
.util .badge { position: absolute; top: 2px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.util.on, .util[aria-current] { color: var(--pink); }
.head-search { max-width: 640px; margin: 0 auto; padding: 0 16px 14px; display: flex; gap: 8px; }
.head-search input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #f6f7fa; }
.head-search input:focus { outline: none; border-color: var(--night); background: #fff; }
.head-search .btn { min-height: 44px; }

/* 방송 띠 */
.live-strip { background: var(--night); color: #d5dbee; }
.live-strip-in { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.live-strip .live-hours { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.live-strip .live-hours::before { content: ''; display: inline-block; width: 1px; height: 12px; margin: 0 12px 0 0; background: rgba(255, 255, 255, .25); vertical-align: -1px; }
.live-pill { border-radius: 6px; padding: 3px 9px; font-size: 11.5px; background: rgba(255, 255, 255, .1); color: #aeb6cf; }
.live-pill.on { background: var(--pink); color: #fff; box-shadow: none; }
.live-pill.on::before { background: #fff; }
.live-strip.on [data-live-text] { color: #fff; }

/* ===== 홈 ===== */
.shop { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 40px; }
.shop-notice { max-width: 760px; margin: 0 auto 12px; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: #4c556b; font-size: 14px; text-align: center; white-space: pre-line; }
.shop-notice.event { border-color: #f6cfae; color: var(--pink-dd); font-weight: 700; }
.search-result { display: flex; justify-content: center; align-items: baseline; gap: 14px; margin: 4px 0 18px; }
.search-result p { margin: 0; }
.shop-filters { display: grid; justify-items: center; gap: 12px; margin: 8px 0 30px; }
.cat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cat-tab { min-width: 150px; min-height: 46px; padding: 0 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #4c556b; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; transition: background 140ms, color 140ms, border-color 140ms, transform 120ms var(--ease); }
.cat-tab.on { background: var(--night); border-color: var(--night); color: #fff; }
.cat-tab:active, .type-tab:active { transform: scale(.97); }
.type-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.type-tab { min-width: 64px; min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .02em; cursor: pointer; }
.type-tab.on { border-color: var(--pink); color: var(--pink); background: #fff6e0; }

.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; }
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pcard.is-filtered { display: none; }
.pcard-thumb { position: relative; display: block; aspect-ratio: 1 / 1; border: 2px solid var(--night); border-radius: 12px; overflow: hidden; background: #f3f5f9; box-shadow: var(--shadow); transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.pcard-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); }
.pcard-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #b7bdcc; font-weight: 800; letter-spacing: .14em; font-size: 13px; }
.ptype { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 6px; background: var(--night); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.ribbon { display: none; position: absolute; top: 18px; left: -36px; width: 140px; padding: 5px 0; transform: rotate(-45deg); background: #1b1f2a; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-align: center; }
.pcard.soldout .ribbon { display: block; }
.pcard.soldout .pcard-thumb img { filter: grayscale(.85); opacity: .55; }
.pcard.soldout .pcard-thumb { border-color: #9aa1b4; }
.pcard-name { margin: 14px 0 6px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.pcard-price b { color: var(--pink); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pcard-price s { color: #9aa1b4; font-size: 13.5px; font-weight: 600; }
.pcard-tags { display: flex; align-items: center; gap: 6px; min-height: 22px; margin-top: 4px; }
.sale-tag { display: inline-block; padding: 1px 6px; border: 1px solid var(--pink); border-radius: 4px; color: var(--pink); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.stock-tag { font-size: 12px; color: var(--pink-dd); font-weight: 700; }
.pcard-qty { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-top: 10px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; transition: border-color 140ms; }
.pcard-qty.has-qty { border-color: var(--night); }
.pcard-qty button { height: 100%; border: 0; background: none; color: var(--ink); font-size: 20px; cursor: pointer; transition: background 120ms; }
.pcard-qty button[data-step="1"] { background: var(--night); color: #fff; }
.pcard-qty button:disabled { opacity: .3; cursor: default; }
.pcard-qty output, .pcard-qty input { min-width: 0; width: 100%; height: 100%; text-align: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.pcard-option { display: grid; place-items: center; margin-top: 10px; height: 42px; border: 1px solid var(--night); border-radius: 10px; color: var(--night); text-decoration: none; font-weight: 800; font-size: 14px; }
.pgrid-empty { padding: 60px 16px; text-align: center; color: var(--muted); }
.shop .review-section { border-top: 1px solid var(--line); }

/* 유튜브 바로가기 */
.yt-float { position: fixed; right: 22px; bottom: 24px; z-index: 35; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #ff0000; color: #fff; box-shadow: 0 10px 24px -8px rgba(200, 0, 0, .55); transition: transform 160ms var(--ease), bottom 260ms var(--ease); }
body.has-cartbar .yt-float { bottom: calc(var(--bar-h) + 20px); }
.yt-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px; background: #111; color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 140ms; }

/* 장바구니 바 */
.cartbar .btn { border-radius: 12px; }

/* 상세 */
.detail-kicker { color: var(--pink); font-weight: 800; letter-spacing: .04em; }
.p-list-price { display: flex; align-items: center; gap: 8px; margin: -12px 0 16px; color: #9aa1b4; font-size: 15px; }
.detail-info .p-price { color: var(--pink); }
.detail-gallery .thumb { border: 2px solid var(--night); border-radius: 12px; overflow: hidden; }
.detail-tabs a.on { border-bottom-color: var(--night); }

/* 공지사항 */
.notice-page { padding-top: 28px; }
.notice-list { margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.notice-list li + li { border-top: 1px solid var(--line); }
.notice-list a { display: flex; align-items: center; gap: 10px; padding: 16px 18px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .notice-list a:hover strong { text-decoration: underline; } }
.notice-list strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.notice-list time { flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.notice-pin { flex: none; padding: 2px 7px; border-radius: 5px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; }
.notice-empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.notice-back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; }
.notice-article h1 { margin: 0 0 6px; font-size: 22px; line-height: 1.4; }
.notice-article time { color: var(--muted); font-size: 13px; }
.notice-body { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); line-height: 1.8; overflow-wrap: anywhere; }

/* 공지 팝업 */
.notice-modal { background: rgba(14, 22, 48, .55); }
.notice-modal-card { border-radius: 16px; }
.notice-modal-body { padding: 26px 24px 20px; background: #fff; }
.notice-modal-kicker { margin: 0 0 6px; color: var(--pink); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.notice-modal-body h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.4; }
.notice-modal-text { color: #3c4459; line-height: 1.75; font-size: 14.5px; }
.notice-modal-actions { border-top: 1px solid var(--line); }

/* 푸터 */
.foot { margin-top: auto; padding: 36px 0 calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--night); color: #a7b0cb; border-radius: 0; font-size: 12.5px; line-height: 1.8; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; gap: 28px; align-items: flex-start; }
.foot-logo { width: 104px; height: auto; flex: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
.foot-links a { color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; }
.foot-links a.strong { color: var(--yellow); }
.foot .biz { display: flex; flex-wrap: wrap; gap: 0 14px; }
.foot .copy { margin: 10px 0 0; color: #7f89a8; background: none; padding: 0; font-size: 12px; font-weight: 500; cursor: auto; }

@media (hover: hover) and (pointer: fine) {
  .pcard-thumb:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(20, 33, 74, .5); }
  .pcard-thumb:hover img { transform: scale(1.03); }
  .pcard-qty button:hover:not(:disabled) { background: #eef1f7; }
  .pcard-qty button[data-step="1"]:hover:not(:disabled) { background: var(--night-2); }
  .cat-tab:hover:not(.on) { border-color: #b9c0d3; color: var(--ink); }
  .type-tab:hover:not(.on) { color: var(--ink); }
  .util:hover { background: #f1f3f8; }
  .yt-float:hover { transform: scale(1.06); }
  .yt-float:hover .yt-tip { opacity: 1; }
}

@media (max-width: 1080px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .head-in { grid-template-columns: auto 1fr; grid-template-areas: "logo util" "nav nav"; height: auto; padding: 8px 12px 0; gap: 0 8px; }
  .head-logo { grid-area: logo; }
  .head-logo img { height: 52px; }
  .head-util { grid-area: util; gap: 0; }
  .head-nav { grid-area: nav; gap: 20px; padding: 2px 4px 8px; }
  .head-nav a { font-size: 14.5px; }
  .util { padding: 0 8px; }
  .util.text-only { display: none; }
  .util > span:not(.sr-only) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .util .badge { left: 22px; }
  .live-strip-in { padding: 8px 12px; gap: 8px; font-size: 12.5px; }
  .live-strip .live-hours::before { margin-right: 8px; }
  .shop { width: calc(100% - 24px); padding-top: 18px; }
  .shop-filters { margin-bottom: 20px; }
  .cat-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .cat-tab { min-width: 0; padding: 0 6px; min-height: 42px; font-size: 14px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .pcard-name { font-size: 14.5px; margin-top: 10px; }
  .pcard-price b { font-size: 17px; }
  .pcard-price s { font-size: 12px; }
  .ribbon { top: 14px; left: -40px; font-size: 10px; }
  .yt-float { width: 54px; height: 54px; right: 14px; }
  .yt-tip { display: none; }
  .foot-in { flex-direction: column; gap: 14px; padding: 0 18px; }
  .foot-logo { width: 84px; }
}
@media (max-width: 380px) {
  .cat-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.page-title { font-size: 24px; }
.page-title h1 { font-size: inherit; margin: 0; }
.panel h1 { font-size: 24px; }

/* =====================================================================
   프리미엄 상품 · 모바일 최적화
   ===================================================================== */
@property --ring-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ===== 프리미엄 상품 카드 ===== */
.pcard.premium {
  --mx: 120px; --my: 120px; --px: 50%; --py: 50%; --rx: 0deg; --ry: 0deg;
  --gold: #f2c14e; --gold-l: #ffe7a3; --gold-d: #a8761c;
  z-index: 0;
  margin: -10px;
  padding: 10px;
  border-radius: 20px;
}
/* 마우스를 올리면 깔리는 남색 패널 + 커서를 따라다니는 금빛 */
.pcard.premium::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 214, 102, .30), transparent 62%),
    linear-gradient(155deg, #1d2d63 0%, #0e1736 56%, #1c1434 100%);
  box-shadow: 0 22px 44px -22px rgba(14, 23, 54, .75);
  opacity: 0;
  transition: opacity 320ms ease;
}
/* 돌아가는 금색 테두리 */
.pcard.premium::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ring-angle), #f9e08b, #b8862b, #fff4cf, #c99a3a, #f9e08b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}
.pcard.premium .pcard-thumb {
  border-color: var(--gold-d);
  background: linear-gradient(160deg, #fffaf0, #f4e6c2);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 220ms ease-out, box-shadow 320ms ease, border-color 320ms ease;
}
.pcard-foil, .pcard-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 320ms ease; }
.pcard-foil {
  background: linear-gradient(115deg, transparent 18%, rgba(255, 231, 140, .7) 33%, rgba(255, 120, 200, .42) 41%, rgba(120, 200, 255, .48) 49%, rgba(160, 255, 190, .38) 56%, transparent 72%);
  background-size: 260% 260%;
  background-position: var(--px) var(--py);
  mix-blend-mode: color-dodge;
}
.pcard-glare { background: radial-gradient(circle at var(--px) var(--py), rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 46%); mix-blend-mode: soft-light; }
.premium-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px 4px 7px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffeaa9, #f2c14e 45%, #c9902c);
  color: #3a2606;
  font-size: 10.5px; font-weight: 900; letter-spacing: .08em; line-height: 1;
  box-shadow: 0 2px 8px -2px rgba(168, 118, 28, .65), inset 0 1px 0 rgba(255, 255, 255, .65);
}
.premium-badge::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); transform: skewX(-18deg); animation: badge-shine 3.4s ease-in-out infinite; }
.premium-badge.inline { position: relative; left: auto; bottom: auto; margin-right: 8px; vertical-align: 1px; }
.spark { position: absolute; z-index: 3; width: 16px; height: 16px; pointer-events: none; opacity: 0; background: #fff6d2; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 4px rgba(255, 214, 102, .95)); }
.spark.s1 { top: 16%; left: 18%; }
.spark.s2 { top: 30%; right: 16%; width: 11px; height: 11px; }
.spark.s3 { bottom: 30%; left: 58%; width: 13px; height: 13px; }

.pcard.premium.is-hot::before, .pcard.premium.is-lit::before,
.pcard.premium.is-hot::after, .pcard.premium.is-lit::after { opacity: 1; }
.pcard.premium.is-hot::after, .pcard.premium.is-lit::after { animation: ring-spin 4s linear infinite; }
.pcard.premium.is-hot .pcard-thumb, .pcard.premium.is-lit .pcard-thumb { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255, 231, 163, .6), 0 18px 36px -14px rgba(242, 193, 78, .55); }
.pcard.premium.is-hot .pcard-foil, .pcard.premium.is-lit .pcard-foil { opacity: .78; }
.pcard.premium.is-hot .pcard-glare { opacity: 1; }
.pcard.premium.is-hot .spark, .pcard.premium.is-lit .spark { animation: twinkle 1.8s ease-in-out infinite; }
.pcard.premium .spark.s2 { animation-delay: .5s; }
.pcard.premium .spark.s3 { animation-delay: 1s; }
.pcard.premium.is-hot .pcard-name, .pcard.premium.is-lit .pcard-name { color: #fff; }
.pcard.premium.is-hot .pcard-price b, .pcard.premium.is-lit .pcard-price b { color: #ffd66b; }
.pcard.premium.is-hot .pcard-price s, .pcard.premium.is-lit .pcard-price s { color: #8d97bd; }
.pcard.premium.is-hot .sale-tag, .pcard.premium.is-lit .sale-tag { border-color: var(--gold); color: var(--gold-l); }
.pcard.premium.is-hot .stock-tag, .pcard.premium.is-lit .stock-tag { color: var(--gold-l); }
.pcard.premium.is-hot .pcard-qty, .pcard.premium.is-lit .pcard-qty { background: rgba(255, 255, 255, .07); border-color: rgba(242, 193, 78, .55); }
.pcard.premium.is-hot .pcard-qty output, .pcard.premium.is-lit .pcard-qty output, .pcard.premium.is-hot .pcard-qty input, .pcard.premium.is-lit .pcard-qty input,
.pcard.premium.is-hot .pcard-qty [data-step="-1"], .pcard.premium.is-lit .pcard-qty [data-step="-1"] { color: #fff; }
.pcard.premium.is-hot .pcard-qty [data-step="1"], .pcard.premium.is-lit .pcard-qty [data-step="1"] { background: linear-gradient(135deg, #ffe39a, #f2c14e 55%, #d39b34); color: #1b1404; }
.pcard.premium.is-hot .pcard-option, .pcard.premium.is-lit .pcard-option { border-color: var(--gold); color: var(--gold-l); }
.pcard.premium .pcard-name, .pcard.premium .pcard-price b, .pcard.premium .pcard-price s, .pcard.premium .pcard-qty, .pcard.premium .pcard-qty button, .pcard.premium .pcard-qty output { transition: color 260ms ease, background 260ms ease, border-color 260ms ease; }
@media (hover: hover) and (pointer: fine) {
  .pcard.premium .pcard-thumb:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(6px); }
  .pcard.premium.is-hot .pcard-qty [data-step="-1"]:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
  .pcard.premium.is-hot .pcard-qty [data-step="1"]:hover:not(:disabled) { background: linear-gradient(135deg, #fff0bf, #f6cd63 55%, #dca63f); }
}
/* 터치 화면: 화면 가운데에 왔을 때 빛이 한 번씩 훑고 지나간다 */
.pcard.premium.is-lit .pcard-foil { animation: foil-sweep 3.2s ease-in-out infinite; }
.detail-page.is-premium .detail-gallery .thumb { border-color: #c99a3a; box-shadow: 0 0 0 1px rgba(255, 231, 163, .7), 0 22px 44px -20px rgba(201, 154, 58, .55); }
.detail-kicker .premium-badge { font-size: 10px; }

@keyframes ring-spin { to { --ring-angle: 360deg; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes badge-shine { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
@keyframes foil-sweep { 0% { background-position: 0% 30%; } 50% { background-position: 100% 70%; } 100% { background-position: 0% 30%; } }

@media (hover: hover) and (pointer: fine) {
  .hero-cards:hover .hcard.c1 { --tx: -7.6em; --rot: -17deg; }
  .hero-cards:hover .hcard.c3 { --tx: 7.6em; --rot: 17deg; }
}
@media (max-width: 720px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 44%; min-height: 0; padding: 22px 14px 28px; }
  .hero-sub { font-size: 12px; margin-top: 6px; }
  .hero-status { margin-top: 10px; }
  .hero-cards { font-size: 7.4px; }
}
@media (max-width: 380px) { .hero-cards { font-size: 6.4px; } }
@media (prefers-reduced-motion: reduce) { .hcard, .hcard-holo, .hcard-ring { animation: none; } }

/* 상품 없음 */
.pgrid-empty { display: grid; justify-items: center; gap: 10px; padding: 56px 16px 64px; margin: 8px 0 24px; border: 1px dashed #d5dae7; border-radius: 18px; background: #fff; color: #6b738c; font-weight: 700; }
.pgrid-empty p { margin: 0; font-size: 15px; }
@keyframes empty-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(12deg); } }

/* ===== 프리미엄 홀로그램: 처음 버전으로 되돌림 (금빛 반사 + 대각선 무지개 + 반짝이 별) ===== */
.pcard.premium::before {
  background:
    radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 214, 102, .30), transparent 62%),
    linear-gradient(155deg, #1d2d63 0%, #0e1736 56%, #1c1434 100%);
}
.pcard-foil {
  background-image: linear-gradient(115deg, transparent 18%, rgba(255, 231, 140, .7) 33%, rgba(255, 120, 200, .42) 41%, rgba(120, 200, 255, .48) 49%, rgba(160, 255, 190, .38) 56%, transparent 72%);
  background-size: 260% 260%;
  background-position: var(--px) var(--py);
  background-blend-mode: normal;
  mix-blend-mode: color-dodge;
  filter: none;
}
.pcard-glare { background: radial-gradient(circle at var(--px) var(--py), rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 46%); mix-blend-mode: soft-light; }
.pcard-glitter, .pcard-sleeve { display: none; }
.pcard.premium .pcard-foil, .pcard.premium .pcard-glare { opacity: 0; }
.pcard.premium.is-hot .pcard-foil, .pcard.premium.is-lit .pcard-foil { opacity: .78; }
.pcard.premium.is-hot .pcard-glare { opacity: 1; }
.pcard.premium.is-lit .pcard-glare { opacity: 0; }
.pcard.premium .spark { display: block; }
.pcard.premium.is-lit { animation: none; }
.pcard.premium.is-lit .pcard-foil { animation: foil-sweep-v1 3.2s ease-in-out infinite; }
@keyframes foil-sweep-v1 { 0% { background-position: 0% 30%; } 50% { background-position: 100% 70%; } 100% { background-position: 0% 30%; } }

/* 프리미엄 빛: 커서가 카드 어디에 있든 바로 보이도록 무지개 띠를 넓게, 들어오는 순간 한 번 훑고 지나감 */
.pcard-foil {
  background-image: linear-gradient(115deg, transparent 6%, rgba(255, 231, 140, .7) 26%, rgba(255, 120, 200, .45) 38%, rgba(120, 200, 255, .5) 50%, rgba(160, 255, 190, .42) 62%, rgba(255, 231, 140, .55) 74%, transparent 94%);
  background-size: 180% 180%;
}
.pcard.premium.is-hot .pcard-foil { animation: foil-enter 700ms cubic-bezier(.2, .8, .2, 1); }
@keyframes foil-enter { from { background-position: 100% 100%; opacity: .2; } }

/* 프리미엄 홀로그램: 밝게 바래지 않고 스펙트럼 무지개 띠가 은은하게 비치도록 (홀로 스티커 느낌) */
.pcard-foil {
  background-image: linear-gradient(112deg,
    transparent 0%,
    hsl(350 100% 62%) 9%, hsl(28 100% 58%) 16%, hsl(55 100% 55%) 23%, hsl(110 85% 52%) 30%,
    hsl(180 100% 50%) 37%, hsl(215 100% 60%) 44%, hsl(265 95% 64%) 51%, hsl(315 95% 62%) 58%,
    hsl(350 100% 62%) 65%, hsl(28 100% 58%) 72%, hsl(55 100% 55%) 79%, hsl(180 100% 50%) 86%,
    transparent 100%);
  background-size: 210% 210%;
  background-position: var(--px) var(--py);
  mix-blend-mode: overlay;
  filter: saturate(1.15);
}
.pcard-glare { background: radial-gradient(circle at var(--px) var(--py), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 38%); mix-blend-mode: soft-light; }
.pcard.premium.is-hot .pcard-foil, .pcard.premium.is-lit .pcard-foil { opacity: .72; }
.pcard.premium.is-hot .pcard-glare { opacity: .6; }
.pcard.premium .pcard-thumb img { transition: transform 320ms ease, filter 320ms ease; }
.pcard.premium.is-hot .pcard-thumb img, .pcard.premium.is-lit .pcard-thumb img { filter: saturate(1.12) contrast(1.05); }
/* 올리면 바탕이 은박처럼 바뀌어 무지개 띠가 바탕에도 또렷하게 비친다 */
.pcard.premium .pcard-thumb { transition: transform 220ms ease-out, box-shadow 320ms ease, border-color 320ms ease, background-color 320ms ease; }
.pcard.premium.is-hot .pcard-thumb, .pcard.premium.is-lit .pcard-thumb {
  background: linear-gradient(135deg, #eef0f5 0%, #b8becd 34%, #e6e9f0 58%, #a9b0c1 100%);
}

/* 약관·정책 */
.policy-page { max-width: 820px; margin: 0 auto; }
.policy-body { color: #3a4157; font-size: 14.5px; line-height: 1.75; }
.policy-body h2 { margin: 26px 0 8px; font-size: 16.5px; color: var(--night, #0f1e45); }
.policy-body h2:first-child { margin-top: 4px; }
.policy-body p { margin: 0 0 8px; }
.policy-body ul { margin: 0 0 10px; padding-left: 20px; }
.policy-body li { margin: 2px 0; }

/* 상품 상세: 배송·교환·환불 */
.detail-policy { margin: 28px 0 8px; padding: 22px 22px 18px; border: 1px solid #e7eaf2; border-radius: 16px; background: #fff; }
.detail-policy h2 { margin: 0 0 14px; font-size: 17px; }
.detail-policy dl { margin: 0; display: grid; gap: 0; }
.detail-policy dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid #eef0f5; font-size: 14px; }
.detail-policy dt { font-weight: 800; color: #0f1e45; }
.detail-policy dd { margin: 0; color: #4a5168; }
.detail-policy p { margin: 12px 0 0; font-size: 13px; }
.detail-policy a { color: #b8460c; font-weight: 700; }
@media (max-width: 720px) {
  .detail-policy { padding: 18px 14px 14px; }
  .detail-policy dl > div { grid-template-columns: 1fr; gap: 2px; }
}

/* =====================================================================
   포케야호 레이어: 로고 색(남색 외곽선, 노랑, 하늘, 주황)을 그대로 쓰는 최종 화면 규칙
   주 버튼 = 노랑 바탕 + 남색 글자, 보조 = 남색. 카드 라운드 16~18px, 버튼 12~14px (알약 X)
   ===================================================================== */
:root {
  --night: #0f1e45;
  --night-2: #1a2d5e;
  --night-3: #253a73;
  --pink: #e0520f;
  --pink-d: #c9480c;
  --pink-dd: #b8420a;
  --pink-l: #fff1e6;
  --yellow: #ffc61a;
  --yellow-d: #f2b300;
  --yellow-l: #fff6d8;
  --sky: #45bdd6;
  --sky-d: #1b86a3;
  --sky-l: #e5f5f9;
  --orange-l: #ffeee2;
  --bg: #f2f4f9;
  --ink: #0f1a33;
  --muted: #5b6480;
  --line: #e0e4ee;
  --shadow: 0 1px 2px rgba(15, 30, 69, .06), 0 12px 26px -18px rgba(15, 30, 69, .42);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 3.2vw, 40px);
  --page: 1240px;
}
@media (min-width: 1600px) { :root { --page: 1480px; } }

body { background: var(--bg) url(../img/surface-bg.webp) center top / 100% auto no-repeat; color: var(--ink); }
::selection { background: var(--yellow); color: var(--night); }
input, textarea { caret-color: var(--pink); }
:focus-visible { outline: 3px solid var(--sky-d); outline-offset: 2px; }
html { scrollbar-color: #b9c1d6 transparent; scroll-padding-top: 88px; }

/* 버튼: 노랑이 주 행동 */
.btn.pink, .cartbar .cartbar-buy { background: var(--yellow); color: var(--night); box-shadow: inset 0 -3px 0 rgba(15, 30, 69, .14); }
.btn { border-radius: 12px; }
.live-pill.on { background: var(--pink); color: #fff; }

/* ===== 헤더 ===== */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.head-in { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav util"; align-items: center; gap: 28px; }
.menu-btn { grid-area: menu; display: none; width: 44px; height: 44px; margin-left: -10px; border: 0; border-radius: 12px; background: none; color: var(--night); place-items: center; cursor: pointer; }
.head-logo { grid-area: logo; display: block; }
.head-logo img { height: 44px; width: auto; transition: transform 260ms var(--ease-out); }
.head-nav { grid-area: nav; display: flex; justify-content: flex-start; gap: 4px; }
.head-nav a { position: relative; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.head-nav a::after { content: none; }
.head-nav a.on { color: var(--ink); }
.head-nav a.on::after { content: none; }
.head-nav a.is-cur { color: var(--night); }
.head-nav a.is-cur::before { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 4px; border-radius: 3px; background: var(--yellow); }
.head-util { grid-area: util; display: flex; align-items: center; gap: 2px; }
.util { height: 42px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.util.on, .util[aria-current] { color: var(--night); }
.util.cart { margin-left: 4px; padding: 0 14px 0 12px; background: var(--night); color: #fff; }
.util.cart .badge { position: static; margin-left: 2px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--yellow); color: var(--night); }
.cat-scroll { display: none; }

/* 모바일 드로어 */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 30, 69, .5); opacity: 0; transition: opacity 260ms ease; }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(340px, 86vw); display: flex; flex-direction: column; background: #fff; padding: calc(14px + env(safe-area-inset-top, 0px)) 0 calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-102%); transition: transform 320ms var(--ease-out); overflow-y: auto; overscroll-behavior: contain; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 38px; width: auto; }
.drawer-x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--bg); color: var(--night); cursor: pointer; }
.drawer-nav { display: grid; padding: 6px 12px; }
.drawer-label { margin: 18px 10px 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.drawer-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 10px; border-radius: 12px; color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.drawer-nav a:active { background: var(--yellow-l); }
body.drawer-lock { overflow: hidden; }

/* ===== 히어로 ===== */
.py-hero {
  position: relative; isolation: isolate; color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 24, 58, .96) 0%, rgba(12, 24, 58, .82) 34%, rgba(12, 24, 58, .25) 62%, rgba(12, 24, 58, 0) 78%),
    #0f1e45 url(../img/hero-v3-1920.webp) right center / cover no-repeat;
}
.py-hero-in { max-width: var(--page); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(96px, 9vw, 124px); display: grid; align-content: center; gap: 28px; min-height: clamp(440px, 58svh, 600px); }
.py-hero-copy { display: grid; justify-items: start; max-width: 560px; }
.py-hero-logo { margin: 0 0 0 -6px; line-height: 0; }
.py-hero-logo img {
  width: clamp(250px, 33vw, 470px); height: auto;
  /* 로고 남색 외곽선 바깥에 흰 테를 둘러 스티커처럼 띄운다 */
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 14px 22px rgba(0, 0, 0, .38));
  transform-origin: 30% 70%;
}
.py-hero-lead { margin: clamp(18px, 2.4vw, 28px) 0 0; font-size: clamp(24px, 2.7vw, 36px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; text-wrap: balance; }
.py-hero-sub { margin: 10px 0 0; color: #c8d2ee; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.65; }
.py-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.py-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 14px; font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 200ms ease; }
.py-btn.primary { background: var(--yellow); color: var(--night); box-shadow: inset 0 -4px 0 rgba(15, 30, 69, .16), 0 12px 24px -12px rgba(255, 198, 26, .7); }
.py-btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.py-btn:active { transform: translateY(1px) scale(.98); }
.py-hero-status { justify-self: start; display: inline-flex; align-items: center; gap: 12px; padding: 11px 16px 11px 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.py-hero-status .live-pill { border-radius: 7px; padding: 4px 9px; font-size: 11.5px; font-weight: 800; background: rgba(255, 255, 255, .14); color: #c8d2ee; }
.py-hero-status .live-pill.on { background: var(--pink); color: #fff; }
.py-hero-status-text { display: grid; gap: 1px; font-size: 13px; color: #c8d2ee; line-height: 1.4; }
.py-hero-status-text b { color: #fff; font-size: 14.5px; font-weight: 800; }
.py-hero-status-text span { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .py-hero-logo img { animation: py-pop 900ms var(--ease-out) both; }
  .py-hero-lead, .py-hero-sub, .py-hero-actions, .py-hero-status { animation: py-rise 700ms var(--ease-out) both; }
  .py-hero-lead { animation-delay: 140ms; }
  .py-hero-sub { animation-delay: 200ms; }
  .py-hero-actions { animation-delay: 260ms; }
  .py-hero-status { animation-delay: 320ms; }
}
@keyframes py-pop { 0% { opacity: 0; transform: scale(.86) rotate(-2deg); } 60% { opacity: 1; transform: scale(1.03) rotate(.5deg); } 100% { transform: none; } }
@keyframes py-rise { from { opacity: 0; transform: translateY(12px); } }

/* ===== 카테고리 바로가기 (히어로에 살짝 걸침) ===== */
.cat-tiles { position: relative; z-index: 2; max-width: var(--page); margin: calc(-1 * clamp(60px, 6vw, 76px)) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.cat-tile { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 124px; padding: 18px 16px 18px 20px; border-radius: 18px; text-decoration: none; box-shadow: 0 18px 32px -22px rgba(15, 30, 69, .7), inset 0 -4px 0 rgba(15, 30, 69, .12); transition: transform 220ms var(--ease-out), box-shadow 220ms ease; }
.cat-tile-text { display: grid; gap: 4px; min-width: 0; }
.cat-tile strong { font-size: clamp(17px, 1.5vw, 20px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.cat-tile-text span { font-size: 13px; font-weight: 700; opacity: .86; }
.cat-tile img { flex: none; width: clamp(72px, 7vw, 92px); height: clamp(72px, 7vw, 92px); object-fit: cover; border-radius: 12px; background: #fff; box-shadow: 0 0 0 3px #fff, 0 10px 18px -8px rgba(15, 30, 69, .55); transform: rotate(6deg) translateY(4px); transition: transform 300ms var(--ease-out); }
.cat-tile.t-yellow { background: var(--yellow); color: var(--night); }
.cat-tile.t-sky { background: var(--sky); color: var(--night); }
.cat-tile.t-orange { background: var(--pink); color: #fff; }
.cat-tile.t-orange .cat-tile-text span { opacity: .95; }
.cat-tile.t-navy { background: var(--night-2); color: #fff; }
.cat-tile:active { transform: scale(.98); }

/* ===== 상품 영역 ===== */
body.is-home .shop, .shop { width: auto; max-width: var(--page); margin: 0 auto; padding: clamp(36px, 4vw, 56px) var(--gutter) 56px; }
body.is-home .shop-notice { max-width: none; margin: 0 0 10px; text-align: left; border-radius: 14px; }
.shop-filters, body.is-home .shop-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin: 0 0 24px; }
.cat-tabs, body.is-home .cat-tabs { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 6px; padding: 5px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.cat-tab, body.is-home .cat-tab { min-width: 0; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 15px; font-weight: 800; white-space: nowrap; }
.cat-tab.on, body.is-home .cat-tab.on { background: var(--night); color: #fff; }
.type-tabs { display: flex; gap: 6px; justify-content: flex-end; }
.type-tab, body.is-home .type-tab { min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-size: 13.5px; font-weight: 800; }
.type-tab.on { border-color: var(--yellow-d); background: var(--yellow-l); color: var(--night); }
.grid-head, body.is-home .grid-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; }
.grid-head h2, body.is-home .grid-head h2 { margin: 0; font-size: clamp(21px, 2vw, 26px); font-weight: 800; letter-spacing: -0.025em; }
.grid-count { padding: 2px 9px; border-radius: 8px; background: var(--yellow-l); color: var(--night); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 상품 카드 */
.pgrid, body.is-home .pgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 216px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.pcard, body.is-home .pcard { container: pcard / inline-size; padding: 10px 10px 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); transition: transform 240ms var(--ease-out), box-shadow 240ms ease; }
.pcard-thumb, body.is-home .pcard-thumb { border: 0; border-radius: 13px; background: var(--yellow-l); box-shadow: none; }
.pcard[data-cat="원피스카드"] .pcard-thumb { background: var(--sky-l); }
.pcard[data-cat="드래곤볼/디즈니"] .pcard-thumb { background: var(--orange-l); }
.pcard[data-cat="이벤트"] .pcard-thumb { background: #e9edf8; }
.pcard-thumb img, body.is-home .pcard-thumb img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; border-radius: 0; }
.pcard-thumb .ph { color: rgba(15, 30, 69, .35); letter-spacing: .12em; }
.ptype, body.is-home .ptype { top: 10px; left: 10px; right: auto; padding: 3px 8px; border-radius: 7px; background: #fff; color: var(--night); font-size: 11.5px; font-weight: 800; letter-spacing: 0; box-shadow: 0 2px 6px -2px rgba(15, 30, 69, .25); }
.ribbon { background: var(--night); }
.pcard.soldout .pcard-thumb { border: 0; background: #eceef3; }
.pcard.soldout .pcard-thumb img { filter: grayscale(1); opacity: .45; }
.pcard-name, body.is-home .pcard-name { margin: 12px 4px 0; min-height: 2.8em; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.pcard-body, body.is-home .pcard-body { margin: 8px 4px 0; }
.pcard-price b, body.is-home .pcard-price b { color: var(--night); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.pcard-rate, body.is-home .pcard-rate { color: var(--pink-d); font-size: 19px; }
.stock-tag { color: var(--pink-d); font-size: 12.5px; }
.pcard-qty, body.is-home .pcard-qty { height: 44px; grid-template-columns: 44px 1fr 44px; margin: 10px 0 0; border: 1.5px solid var(--line); border-radius: 12px; }
.pcard-qty.has-qty { border-color: var(--night); background: var(--yellow-l); }
.pcard-qty button { color: var(--night); font-weight: 700; }
.pcard-qty button[data-step="1"] { background: var(--yellow); color: var(--night); font-size: 22px; }
.pcard-qty button:active:not(:disabled) { background: var(--yellow-d); }
.pcard-option { height: 44px; border: 1.5px solid var(--night); border-radius: 12px; }
@container pcard (max-width: 190px) {
  .pcard-name { font-size: 13.5px; margin-inline: 2px; }
  .pcard-body { margin-inline: 2px; }
  .pcard-price b, .pcard-rate { font-size: 16.5px; }
  .pcard-qty { height: 40px; grid-template-columns: 38px 1fr 38px; }
  .ptype { top: 7px; left: 7px; font-size: 10.5px; padding: 2px 6px; }
}
.pgrid-empty { border: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }

/* ===== 구매 흐름 ===== */
.py-flow {
  margin: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); padding: clamp(28px, 4vw, 48px); border-radius: 24px; color: #fff; overflow: hidden;
  background: linear-gradient(90deg, rgba(12, 24, 58, .97) 0%, rgba(12, 24, 58, .9) 55%, rgba(12, 24, 58, .55) 100%), #0f1e45 url(../img/tile-navy.webp) right center / cover no-repeat;
}
.py-flow-head h2 { margin: 0; font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; letter-spacing: -0.025em; }
.py-flow-head p { margin: 10px 0 0; max-width: 46ch; color: #c8d2ee; font-size: 15px; line-height: 1.65; }
.py-flow-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.py-flow-steps::before { content: ''; position: absolute; left: 24px; right: 12%; top: 23px; height: 2px; background: linear-gradient(90deg, var(--yellow), var(--sky) 40%, var(--pink) 75%, rgba(255, 255, 255, .6)); opacity: .55; }
.py-flow-steps li { position: relative; display: grid; justify-items: start; gap: 12px; font-size: 16px; font-weight: 800; }
.py-flow-steps span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--yellow); color: var(--night); font-size: 19px; font-weight: 900; box-shadow: inset 0 -4px 0 rgba(15, 30, 69, .18), 0 0 0 5px #0d1a3e; }
.py-flow-steps li:nth-child(2) span { background: var(--sky); }
.py-flow-steps li:nth-child(3) span { background: var(--pink); color: #fff; }
.py-flow-steps li:nth-child(4) span { background: #fff; }
.py-flow-note { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); color: #c8d2ee; font-size: 14.5px; }
.py-flow-note strong { color: var(--yellow); font-weight: 800; }

/* 장바구니 바 */
.cartbar .btn { border-radius: 14px; }
.cartbar .btn:not(.cartbar-buy) { background: var(--night); }
.cartbar .count { background: var(--yellow); color: var(--night); }

/* ===== 푸터 ===== */
.foot { padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px)); color: #aab4d2; background: linear-gradient(180deg, rgba(12, 24, 58, .96), rgba(12, 24, 58, .99)), #0f1e45 url(../img/tile-navy.webp) right bottom / cover no-repeat; }
.foot-in { max-width: var(--page); padding: 0 var(--gutter); gap: clamp(24px, 4vw, 64px); }
.foot-brand { flex: none; display: grid; gap: 10px; }
.foot-brand p { margin: 0; color: #c8d2ee; font-size: 13px; font-weight: 700; }
.foot-logo { width: 150px; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }
.foot-links a.strong { color: var(--yellow); }
.foot .biz { gap: 2px 16px; }
.foot .copy { color: #8a95b8; }

/* ===== 마우스 화면에서만 hover ===== */
@media (hover: hover) and (pointer: fine) {
  .head-nav a:hover { background: var(--bg); }
  .head-logo:hover img { transform: rotate(-2deg) scale(1.03); }
  .util.cart:hover { background: var(--night-2); }
  .py-btn.primary:hover { background: #ffd040; transform: translateY(-1px); }
  .py-btn.ghost:hover { background: rgba(255, 255, 255, .1); }
  .cat-tile:hover { transform: translateY(-3px); box-shadow: 0 24px 36px -22px rgba(15, 30, 69, .8), inset 0 -4px 0 rgba(15, 30, 69, .12); }
  .cat-tile:hover img { transform: rotate(0) translateY(0) scale(1.05); }
  .pcard:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(15, 30, 69, .06), 0 22px 36px -22px rgba(15, 30, 69, .5); }
  .pcard-thumb:hover { transform: none; box-shadow: none; }
  .pcard:hover .pcard-thumb img { transform: scale(1.05) rotate(-1deg); }
  .cat-tab:hover:not(.on) { color: var(--night); background: var(--bg); }
  .type-tab:hover:not(.on) { border-color: #c3cadb; color: var(--ink); }
  .pcard-qty button[data-step="1"]:hover:not(:disabled) { background: #ffd040; }
  .pcard-qty button[data-step="-1"]:hover:not(:disabled) { background: var(--bg); }
}
@media (hover: none) {
  .pcard:active { transform: scale(.985); }
  .cat-tab:active, .type-tab:active { transform: scale(.96); }
}

/* ===== 태블릿 ===== */
@media (max-width: 1100px) {
  .head-in { gap: 16px; }
  .head-nav a { padding: 10px 9px; font-size: 14.5px; }
  .util.text-only { display: none; }
}
@media (max-width: 1023px) {
  .head-in { height: 64px; grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo util"; gap: 6px; padding-top: 0; }
  .menu-btn { display: grid; }
  .head-logo { justify-self: start; }
  .head-logo img { height: 38px; }
  .head-nav { display: none; }
  .cat-scroll { display: block; position: relative; }
  .cat-scroll::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 36px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
  .cat-scroll-in { display: flex; gap: 4px; padding: 0 var(--gutter) 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .cat-scroll-in::-webkit-scrollbar { display: none; }
  .cat-scroll-in a { flex: none; scroll-snap-align: start; min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
  .cat-scroll-in a.is-cur { background: var(--night); color: #fff; }
  .cat-scroll-in a:last-child { margin-right: 24px; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .py-flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .py-flow-steps::before { display: none; }
}
/* ===== 휴대폰 ===== */
@media (max-width: 767px) {
  .util > span:not(.sr-only):not(.badge) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .util.cart { padding: 0 10px; gap: 4px; }
  .py-hero { background: linear-gradient(180deg, rgba(12, 24, 58, .35) 0%, rgba(12, 24, 58, .86) 46%, rgba(12, 24, 58, .98) 100%), #0f1e45 url(../img/tile-navy.webp) 82% top / auto 58% no-repeat; }
  .py-hero-in { min-height: 0; padding: 36px var(--gutter) 92px; gap: 22px; }
  .py-hero-logo img { width: min(76vw, 320px); }
  .py-hero-lead { font-size: clamp(23px, 6.6vw, 28px); }
  .py-hero-actions { width: 100%; }
  .py-btn { flex: 1 1 auto; min-height: 54px; }
  .py-hero-status { justify-self: stretch; }
  .cat-tiles { gap: 10px; margin-top: -64px; }
  .cat-tile { min-height: 96px; padding: 14px 10px 14px 14px; border-radius: 16px; }
  .cat-tile img { width: 58px; height: 58px; border-radius: 10px; box-shadow: 0 0 0 2px #fff, 0 8px 14px -8px rgba(15, 30, 69, .55); }
  .cat-tile strong { font-size: 15.5px; }
  .cat-tile-text span { font-size: 12px; }
  .shop-filters, body.is-home .shop-filters { margin: 0 calc(-1 * var(--gutter)) 18px; gap: 10px; }
  .cat-tabs, body.is-home .cat-tabs { margin: 0 var(--gutter); max-width: calc(100% - 2 * var(--gutter)); overflow-x: auto; scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab, body.is-home .cat-tab { padding: 0 14px; min-height: 40px; font-size: 14px; }
  .type-tabs { padding: 0 var(--gutter); justify-content: flex-start; }
  .pgrid, body.is-home .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard, body.is-home .pcard { padding: 7px 7px 9px; border-radius: 16px; }
  .py-flow { margin-inline: calc(-1 * var(--gutter) + 8px); border-radius: 20px; }
  .py-flow-note { font-size: 13.5px; }
  .foot-in { flex-direction: column; }
  .foot-logo { width: 120px; }
}
/* 가로로 눕힌 휴대폰: 히어로를 낮게 */
@media (max-height: 500px) and (orientation: landscape) {
  .py-hero-in { min-height: 0; padding-top: 24px; padding-bottom: 84px; }
  .py-hero-logo img { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer-panel, .drawer-backdrop, .pcard, .cat-tile, .cat-tile img { transition: none; }
}

/* body가 세로 flex라 자식이 내용 폭으로 줄어들지 않게 */
.py-hero, .cat-tiles, body.is-home .shop, .shop, .foot { width: 100%; }
/* 은은한 매트 표면 배경: 화면에 고정된 한 장 (스크롤해도 다시 그리지 않음) */
body { background: var(--bg); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url(../img/surface-bg.webp) center / cover no-repeat; opacity: .9; }
.pcard-thumb img, body.is-home .pcard-thumb img { padding: 5%; }
/* 홈에서는 카테고리 타일·탭이 있으니 헤더 아래 가로 메뉴는 숨긴다 */
body.is-home .cat-scroll { display: none; }
.pcard-out { display: grid; place-items: center; height: 44px; margin-top: 10px; border-radius: 12px; background: #eceef3; color: #7a8299; font-size: 14px; font-weight: 800; }
.pcard.soldout .ptype { display: none; }
.pcard.soldout .pcard-name, .pcard.soldout .pcard-price b { color: #7a8299; }

/* ===== 상품 상세 ===== */
.detail-gallery .thumb { border: 0; border-radius: 20px; background: var(--yellow-l); box-shadow: var(--shadow); }
.detail-gallery .thumb img { mix-blend-mode: multiply; padding: 4%; }
.detail-kicker { color: var(--sky-d); font-weight: 800; }
.detail-info .p-price { color: var(--night); letter-spacing: -0.02em; }
.detail-actions .btn { border-radius: 14px; }
.detail-actions #detailBuyNow { background: var(--yellow); color: var(--night); box-shadow: inset 0 -4px 0 rgba(15, 30, 69, .16); }
.detail-actions #detailCartAdd { background: var(--night); color: #fff; }
.detail-tabs a.on { color: var(--night); border-color: var(--yellow-d); }
.detail-policy { border: 0; box-shadow: var(--shadow); }
.detail-policy dt { color: var(--night); }
.detail-policy a { color: var(--pink-d); }
.live-strip { background: var(--night); }
@media (hover: hover) and (pointer: fine) {
  .detail-actions #detailBuyNow:hover { background: #ffd040; }
  .detail-actions #detailCartAdd:hover { background: var(--night-2); }
}
.cartbar .btn, .cartbar .count { white-space: nowrap; }
@media (max-width: 767px) {
  .cartbar .btn { font-size: 15.5px; padding-left: 16px; }
  .cartbar .count { padding: 4px 9px; font-size: 13px; }
  .cartbar .cartbar-buy { padding-inline: 16px; }
}

/* =====================================================================
   포케야호 버튼 체계
   로고 글자처럼 아래쪽에 두께(안쪽 그림자)가 있는 통통한 버튼. 누르면 두께가 줄며 1px 내려앉는다.
   주 행동 = 노랑(.pink), 기본 = 남색, 보조 = 연한 남색(.soft), 테두리(.ghost)
   크기: small 40 · 기본 50 · big 56. 라운드 11 / 14 / 16
   ===================================================================== */
:root {
  --press: inset 0 -3px 0 rgba(15, 30, 69, .2);
  --press-sm: inset 0 -2px 0 rgba(15, 30, 69, .18);
  --press-down: inset 0 -1px 0 rgba(15, 30, 69, .2);
}
.btn, .py-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: 14px;
  background: var(--night); color: #fff; box-shadow: var(--press);
  font: inherit; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, box-shadow 140ms ease, color 160ms ease, opacity 160ms ease;
}
.btn:active:not([disabled]):not(.disabled), .py-btn:active { transform: translateY(1px); box-shadow: var(--press-down); }
.btn.big { min-height: 56px; padding: 0 26px; border-radius: 16px; font-family: inherit; font-size: 17px; font-weight: 800; }
.btn.small, .btn.sm { min-height: 40px; padding: 0 14px; border-radius: 11px; font-size: 14px; box-shadow: var(--press-sm); }
.btn.block { width: 100%; }
.btn.pink, .py-btn.primary { background: var(--yellow); color: var(--night); box-shadow: var(--press); }
.btn.soft { background: #e9edf7; color: var(--night); box-shadow: inset 0 -3px 0 rgba(15, 30, 69, .08); }
.btn.ghost { background: #fff; color: var(--night); box-shadow: inset 0 0 0 1.5px #d6dbe8, inset 0 -3px 0 rgba(15, 30, 69, .06); }
.btn.ghost:active:not([disabled]) { box-shadow: inset 0 0 0 1.5px #c3cadb; }
.btn.danger { background: #fff; color: #c42b2b; box-shadow: inset 0 0 0 1.5px #f0c4c4, inset 0 -3px 0 rgba(196, 43, 43, .08); }
.btn.ok { background: #1f8a5b; color: #fff; }
.btn.kakao { background: #fee500; color: #191600; box-shadow: inset 0 -3px 0 rgba(25, 22, 0, .12); }
.btn.google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1.5px #dadce0, inset 0 -3px 0 rgba(0, 0, 0, .05); }
.py-btn.ghost { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
/* 사용 불가: 흐리게만 하지 않고 회색 면으로 바꿔 '못 누름'이 분명하게 */
.btn[disabled], .btn.disabled, .btn[aria-disabled="true"] { background: #e4e8f1; color: #8a93ab; box-shadow: none; opacity: 1; cursor: not-allowed; pointer-events: none; }
/* 처리 중: 글자는 남기고 오른쪽에 도는 표시 */
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"]::after { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: btn-spin 700ms linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn:focus-visible, .py-btn:focus-visible { outline: 3px solid var(--sky-d); outline-offset: 3px; }
.py-hero .py-btn:focus-visible { outline-color: var(--yellow); }
.btn .sub { font-size: 13px; font-weight: 700; opacity: .8; }

/* 글자 링크 */
.link, .back-link { color: var(--night); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(15, 30, 69, .3); }

/* 아이콘 버튼 (헤더·드로어·시트 닫기) */
.util, .menu-btn, .drawer-x { -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.util { min-width: 44px; height: 44px; justify-content: center; }
.util:active, .menu-btn:active, .drawer-x:active { transform: scale(.94); }
.util.cart { box-shadow: var(--press-sm); }
.util.cart:active { transform: translateY(1px); box-shadow: none; }
.sheet-close { display: inline-flex; align-items: center; gap: 4px; width: auto; height: 40px; padding: 0 12px 0 10px; border: 0; border-radius: 11px; background: #eef1f8; color: var(--night); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.sheet-close:active { transform: scale(.96); }
.head-search .btn { min-height: 44px; }

/* 수량 조절: 빼기 = 연한 면, 더하기 = 노랑 (카드·상세·장바구니 모두 같은 규칙) */
.stepper { gap: 4px; }
.stepper button, .detail-stepper button {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 11px;
  background: #eef1f8; color: var(--night); font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: none;
  transition: transform 120ms var(--ease-out), background-color 140ms ease;
}
.stepper button.plus, .detail-stepper button:last-child { background: var(--yellow); color: var(--night); box-shadow: var(--press-sm); }
.stepper button:active:not([disabled]), .detail-stepper button:active:not(:disabled) { transform: scale(.9); }
.stepper button[disabled], .detail-stepper button:disabled { background: #f1f3f8; color: #b6bccd; box-shadow: none; opacity: 1; cursor: not-allowed; }
.stepper.sm button { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.detail-stepper { gap: 6px; }
.detail-stepper button { width: 44px; height: 44px; border-radius: 12px; }
.pcard-qty button:disabled { background: transparent; color: #c2c8d6; }
.pcard-qty button[data-step="1"]:disabled { background: #f1f3f8; }
.pcard-qty output { font-size: 16px; color: var(--night); }
.cart-line .rm { min-height: 36px; padding: 0 10px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.cart-line .rm:active { background: #fdecec; color: #c42b2b; }

/* 탭·필터: 누르는 순간 살짝 눌림, 선택은 면 색으로 */
.cat-tab, .type-tab, .tabs a, .detail-tabs a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms var(--ease-out); }
.type-tab { min-height: 40px; }
.tabs { padding: 4px; border-radius: 14px; background: #e9edf6; }
.tabs a { min-height: 40px; border-radius: 11px; font-weight: 800; }
.tabs a.on, .tabs a[aria-current] { background: #fff; color: var(--night); box-shadow: 0 2px 8px -4px rgba(15, 30, 69, .35); }

/* 선택 타일(배송 방법 등)과 라디오·체크박스 */
input[type="radio"], input[type="checkbox"] { accent-color: var(--night); }
.choice .tile { border-radius: 14px; transition: box-shadow 160ms ease, background-color 160ms ease; }
.choice input:checked + .tile { background: var(--yellow-l); box-shadow: inset 0 0 0 2px var(--night); }
.choice input:focus-visible + .tile { outline: 3px solid var(--sky-d); outline-offset: 2px; }
.copy { border-radius: 9px; font-weight: 800; }
.chip { border-radius: 7px; font-weight: 800; }

/* 기타 */
.gallery-nav { width: 44px; height: 44px; background: rgba(255, 255, 255, .92); color: var(--night); box-shadow: 0 6px 16px -8px rgba(15, 30, 69, .5); font-size: 26px; }
.notice-modal-today { min-height: 40px; padding: 0 6px; font-weight: 700; }
.review-file-button { border-radius: 12px; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover:not([disabled]):not(.disabled) { background: var(--night-2); }
  .btn.pink:hover:not([disabled]), .py-btn.primary:hover { background: #ffd23f; }
  .btn.soft:hover:not([disabled]) { background: #dfe5f3; }
  .btn.ghost:hover:not([disabled]) { background: #f6f8fc; box-shadow: inset 0 0 0 1.5px #b8c0d4, inset 0 -3px 0 rgba(15, 30, 69, .06); }
  .btn.danger:hover:not([disabled]) { background: #fff5f5; }
  .btn.kakao:hover { background: #f5dc00; }
  .btn.google:hover { background: #f8f9fb; }
  .py-btn.ghost:hover { background: rgba(255, 255, 255, .14); }
  .link:hover, .back-link:hover { text-decoration-color: var(--night); }
  .util:hover, .menu-btn:hover { background: #eef1f8; }
  .util.cart:hover { background: var(--night-2); }
  .drawer-x:hover, .sheet-close:hover { background: #e3e8f4; }
  .stepper button:hover:not([disabled]), .detail-stepper button:hover:not(:disabled) { background: #e3e8f4; }
  .stepper button.plus:hover:not([disabled]), .detail-stepper button:last-child:hover:not(:disabled) { background: #ffd23f; }
  .cart-line .rm:hover { background: #fdecec; color: #c42b2b; }
  .tabs a:hover:not(.on) { color: var(--night); }
  .gallery-nav:hover { background: #fff; }
  .drawer-nav a:hover { background: var(--bg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .py-btn, .util, .stepper button, .detail-stepper button { transition: none; }
  .btn[aria-busy="true"]::after { animation-duration: 2s; }
}
.detail-qty { width: auto; gap: 4px; border: 0; border-radius: 0; overflow: visible; }
.detail-qty button { width: 44px; height: 44px; border-radius: 12px; background: #eef1f8; color: var(--night); font-size: 20px; font-weight: 700; }
.detail-qty button:last-child { background: var(--yellow); box-shadow: var(--press-sm); }
.detail-qty input { width: 64px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 800; color: var(--night); }
.detail-qty button:active { transform: scale(.92); }

/* =====================================================================
   포케야호 포인터 (마우스 화면만): 포인터 자체가 작은 카드
   왼쪽 위 모서리 = 클릭 위치. 기본 = 남색 뒷면(노랑 테두리·별), 누를 수 있는 곳 = 뒤집혀 노랑 앞면, 누르는 순간 탁 눌림
   ===================================================================== */
html.has-pcur, html.has-pcur * { cursor: none !important; }
html.has-pcur input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
html.has-pcur textarea, html.has-pcur [contenteditable] { cursor: text !important; }
.pcur { position: fixed; inset: 0; z-index: 130; pointer-events: none; opacity: 0; transition: opacity 160ms ease; }
.pcur.on { opacity: 1; }
.pcur.is-text { opacity: 0; }
.pcur-card { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.pcur-tilt { position: absolute; left: 0; top: 0; width: 19px; height: 26px; transform-origin: 0 0; perspective: 90px; }
.pcur-face { position: absolute; inset: 0; border-radius: 1px 5px 5px 5px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-origin: 0 0; transition: transform 300ms cubic-bezier(.16, 1, .3, 1); }
.pcur-face::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.pcur-face.pc-back { background: linear-gradient(150deg, #263d7c, var(--night) 60%); box-shadow: inset 0 0 0 1.5px var(--yellow), 0 0 0 1.5px #fff, 2px 5px 9px -2px rgba(9, 18, 46, .5); transform: rotate(-14deg); }
.pcur-face.pc-back::after { background: var(--yellow); }
.pcur-face.pc-front { background: linear-gradient(135deg, #ffe066, var(--yellow) 45%, #ffb300); box-shadow: inset 0 0 0 1.5px var(--night), 0 0 0 1.5px #fff, 2px 6px 10px -2px rgba(9, 18, 46, .5); transform: rotate(-14deg) rotateY(-180deg); }
.pcur-face.pc-front::after { background: var(--night); }
.pcur.is-hot .pcur-face.pc-back { transform: rotate(-4deg) rotateY(180deg) scale(1.12); }
.pcur.is-hot .pcur-face.pc-front { transform: rotate(-4deg) scale(1.12); }
.pcur.is-down .pcur-face.pc-back { transform: rotate(-14deg) scale(.84); transition-duration: 90ms; }
.pcur.is-down.is-hot .pcur-face.pc-front { transform: rotate(0deg) scale(.9); transition-duration: 90ms; }

/* 누르면 퍼지는 빛줄기 */
.fx-layer { position: fixed; inset: 0; z-index: 125; pointer-events: none; overflow: hidden; }
.fx-burst { position: absolute; width: 0; height: 0; }
.fx-burst-ring { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--yellow); animation: fx-ring 460ms var(--ease-out) forwards; }
.fx-ray { position: absolute; left: -2px; top: -6px; width: 4px; height: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); border-radius: 2px; background: var(--c); transform: rotate(var(--a)) translateY(-8px); animation: fx-ray 480ms var(--ease-out) forwards; }
@keyframes fx-ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
@keyframes fx-ray { 0% { transform: rotate(var(--a)) translateY(-6px) scaleY(.4); opacity: 1; } 55% { opacity: 1; } 100% { transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scaleY(.15); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fx-layer, .pcur { display: none; } }
.pgrid-empty::before { content: ''; width: 56px; height: 56px; background: url('../img/empty-star.png') center / contain no-repeat; }
@media (prefers-reduced-motion: no-preference) { .pgrid-empty::before { animation: empty-bob 2.4s ease-in-out infinite; } }

/* ===== 반응형 보조 ===== */
/* 가로로 넘기는 줄: 넘길 게 남은 쪽만 흐리게 */
.cat-tabs.can-right, .cat-scroll-in.can-right, .type-tabs.can-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.cat-tabs.can-left, .cat-scroll-in.can-left, .type-tabs.can-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.cat-tabs.can-left.can-right, .cat-scroll-in.can-left.can-right, .type-tabs.can-left.can-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.cat-scroll::after { content: none; }
/* 하단 장바구니 바: 푸터·메뉴가 열리면 내려간다 */
body.foot-in-view .cartbar.show, body.drawer-lock .cartbar.show { transform: translateY(120%); }
.cartbar { background: linear-gradient(to top, rgba(242, 244, 249, .96) 64%, rgba(242, 244, 249, 0)); }
.cartbar-inner { max-width: 560px; }
/* 태블릿: 타일 2열이라 히어로 아래 겹침을 조금 줄이고, 상품 3열 */
@media (min-width: 768px) and (max-width: 1023px) {
  .py-hero-in { min-height: 0; padding-top: 48px; padding-bottom: 96px; }
  .py-hero-logo img { width: 360px; }
  .pgrid, body.is-home .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-tabs { width: 100%; justify-content: flex-start; }
}
/* 큰 화면: 상품 6열, 히어로 로고 더 크게 */
@media (min-width: 1600px) {
  .py-hero-logo img { width: 520px; }
  .py-hero-lead { font-size: 38px; }
}
/* 아주 좁은 폰(320~359) */
@media (max-width: 359px) {
  .cat-tiles { grid-template-columns: 1fr; }
  .cat-tile { min-height: 84px; }
  .pgrid, body.is-home .pgrid { gap: 8px; }
  .py-hero-actions .py-btn { padding: 0 16px; }
}
/* 키보드로 움직일 때 상품 카드 전체에 테두리 */
.pcard:has(.pcard-thumb:focus-visible, .pcard-name:focus-visible) { box-shadow: 0 0 0 3px var(--sky-d), var(--shadow); }
.pcard-thumb:focus-visible, .pcard-name:focus-visible { outline: none; }
body.actions-in-view .cartbar.show { transform: translateY(120%); }
.detail-qty button:first-child { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.detail-qty button:disabled { background: #f1f3f8; color: #b6bccd; box-shadow: none; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .detail-qty button:first-child:hover:not(:disabled) { background: #f6f8fc; }
  .detail-qty button:last-child:hover:not(:disabled) { background: #ffd23f; }
}

/* =====================================================================
   배너 v2: Codex 실사 배경(떠 있는 카드팩 + 로고 3색 림 조명), 처음 한 번만 천천히 당겨지는 줌
   ===================================================================== */
.py-hero { overflow: hidden; background: #0b1736; }
.py-hero-bg { position: absolute; inset: 0; z-index: -2; background: #0b1736 url(../img/hero-v3-1920.webp) 72% center / cover no-repeat; transform-origin: 75% 50%; }
.py-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 60% at 16% 38%, rgba(255, 198, 26, .13), transparent 70%),
    linear-gradient(90deg, rgba(9, 18, 46, .94) 0%, rgba(9, 18, 46, .8) 30%, rgba(9, 18, 46, .28) 56%, rgba(9, 18, 46, 0) 74%),
    linear-gradient(180deg, rgba(9, 18, 46, 0) 62%, rgba(9, 18, 46, .55) 100%);
}
.py-hero-in { min-height: clamp(480px, 64svh, 660px); padding-bottom: clamp(110px, 10vw, 140px); }
.py-hero-lead { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.035em; }
.py-hero-sub { color: rgba(214, 223, 248, .82); }
.py-hero-status { background: rgba(9, 18, 46, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
@media (prefers-reduced-motion: no-preference) {
  .py-hero-bg { animation: hero-settle 2200ms cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes hero-settle { from { transform: scale(1.07); opacity: .6; } to { transform: none; opacity: 1; } }
@media (max-width: 767px) {
  .py-hero { background: #0b1736; }
  .py-hero-bg { background-image: url(../img/tile-navy.webp); background-position: 78% top; background-size: auto 64%; }
  .py-hero::before { background: linear-gradient(180deg, rgba(9, 18, 46, .25) 0%, rgba(9, 18, 46, .8) 40%, rgba(9, 18, 46, .97) 62%, #0b1736 100%); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .py-hero-bg { background-position: 66% center; }
}

/* =====================================================================
   카테고리 버튼 v2: 버튼마다 Codex 실사 배경 + 같은 색 그라데이션 위에 글자, 오른쪽 아래 화살표
   ===================================================================== */
.cat-tile { --tone: 255, 198, 26; --tile-img: none; isolation: isolate; align-items: flex-end; min-height: 150px; padding: 20px 64px 20px 22px; background: rgb(var(--tone)); box-shadow: 0 22px 36px -24px rgba(9, 18, 46, .75), inset 0 -4px 0 rgba(15, 30, 69, .14); }
.cat-tile::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--tile-img) right center / cover no-repeat; transition: transform 600ms var(--ease-out); }
.cat-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--tone), .96) 0%, rgba(var(--tone), .78) 38%, rgba(var(--tone), 0) 72%); }
.cat-tile.t-yellow { --tone: 255, 198, 26; --tile-img: url(../img/tile-yellow.webp); background-color: rgb(255, 198, 26); }
.cat-tile.t-sky { --tone: 69, 189, 214; --tile-img: url(../img/tile-sky.webp); background-color: rgb(69, 189, 214); }
.cat-tile.t-orange { --tone: 224, 82, 15; --tile-img: url(../img/tile-orange.webp); background-color: rgb(224, 82, 15); }
.cat-tile.t-navy { --tone: 26, 45, 94; --tile-img: url(../img/tile-navy.webp); background-color: rgb(26, 45, 94); }
.cat-tile-text { gap: 6px; }
.cat-tile strong { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.03em; }
.cat-tile-text span { font-size: 13px; font-weight: 700; }
.cat-tile-go { position: absolute; right: 16px; bottom: 16px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--night); box-shadow: 0 6px 14px -6px rgba(9, 18, 46, .55); transition: transform 260ms var(--ease-out), background-color 200ms ease; }
.cat-tile.t-navy .cat-tile-go { background: var(--yellow); }
@media (hover: hover) and (pointer: fine) {
  .cat-tile:hover::before { transform: scale(1.07); }
  .cat-tile:hover .cat-tile-go { transform: translateX(3px); background: #fff; }
  .cat-tile.t-navy:hover .cat-tile-go { background: #ffd23f; }
}
@media (max-width: 767px) {
  .cat-tile { min-height: 112px; padding: 14px 48px 14px 14px; }
  .cat-tile::after { background: linear-gradient(90deg, rgba(var(--tone), .95) 0%, rgba(var(--tone), .7) 52%, rgba(var(--tone), .1) 100%); }
  .cat-tile::before { background-position: 70% center; }
  .cat-tile-go { right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 10px; }
  .cat-tile-go svg { width: 15px; height: 15px; }
}
.cat-tab, body.is-home .cat-tab { flex: none; }

/* =====================================================================
   배너 v3: 밝은 하늘 배경 + 가운데 로고 + 아래에서 카드가 터져 나오는 개봉 장면 (Codex 실사)
   떠다니는 카드·별은 마우스를 따라 깊이감 있게 움직이고(마우스 화면), 그 외에는 천천히 둥실거림
   ===================================================================== */
.py-hero.v3 { --mx: 0; --my: 0; overflow: hidden; color: var(--night); background: #cdeef7; }
.py-hero.v3::before { content: none; }
.py-hero.v3 .py-hero-bg { background: #cdeef7 url(../img/hero-v3-1920.webp) center bottom / cover no-repeat; transform-origin: 50% 100%; }
.py-hero.v3 .py-hero-in { min-height: clamp(620px, 82svh, 780px); align-content: start; justify-items: center; text-align: center; gap: 18px; padding: clamp(44px, 6vw, 72px) var(--gutter) clamp(260px, 26vw, 360px); }
.py-hero.v3 .py-hero-copy { justify-items: center; max-width: 720px; }
.py-hero.v3 .py-hero-logo { margin: 0; }
.py-hero.v3 .py-hero-logo img { width: clamp(280px, 34vw, 520px); filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(0 18px 26px rgba(15, 30, 69, .28)); transform-origin: 50% 70%; }
.py-hero.v3 .py-hero-lead { color: var(--night); margin-top: clamp(14px, 2vw, 22px); font-size: clamp(26px, 3vw, 40px); }
.py-hero.v3 .py-hero-sub { color: #2c416f; font-weight: 600; }
.py-hero.v3 .py-hero-actions { justify-content: center; margin-top: 22px; }
.py-hero.v3 .py-btn.primary { box-shadow: inset 0 -4px 0 rgba(15, 30, 69, .2), 0 14px 26px -12px rgba(15, 30, 69, .45); }
.py-hero.v3 .py-btn.ghost { color: var(--night); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1.5px rgba(15, 30, 69, .2); }
.py-hero.v3 .py-hero-status { justify-self: center; background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px rgba(15, 30, 69, .1), 0 10px 24px -16px rgba(15, 30, 69, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.py-hero.v3 .py-hero-status-text { color: #4a5a80; text-align: left; }
.py-hero.v3 .py-hero-status-text b { color: var(--night); }
.py-hero.v3 .py-hero-status .live-pill:not(.on) { background: #e3e8f3; color: #5b6480; }
.py-hero.v3 .py-btn:focus-visible { outline-color: var(--night); }

/* 떠다니는 카드·별 */
.hero-floats { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.py-hero.v3 .py-hero-in { position: relative; z-index: 1; }
.hf { position: absolute; height: auto; filter: drop-shadow(0 18px 22px rgba(15, 30, 69, .28)); will-change: transform; transform: translate3d(calc(var(--mx) * var(--d) * 1px), calc(var(--my) * var(--d) * 1px), 0) rotate(var(--r)); transition: transform 500ms cubic-bezier(.16, 1, .3, 1); }
.hf-c1 { --d: 26; --r: -16deg; left: max(2vw, calc(50% - 640px)); top: 20%; width: clamp(110px, 11vw, 170px); }
.hf-c2 { --d: 40; --r: 14deg; right: max(3vw, calc(50% - 650px)); top: 12%; width: clamp(96px, 9vw, 150px); }
.hf-s1 { --d: 16; --r: 12deg; left: max(10vw, calc(50% - 470px)); top: 58%; width: clamp(48px, 4.4vw, 70px); }
.hf-s2 { --d: 52; --r: -10deg; right: max(12vw, calc(50% - 480px)); top: 52%; width: clamp(40px, 3.6vw, 58px); }
@media (prefers-reduced-motion: no-preference) {
  .hf { animation: hf-bob 6s ease-in-out infinite; }
  .hf-c2 { animation-duration: 7.4s; animation-delay: -2s; }
  .hf-s1 { animation-duration: 5.2s; animation-delay: -1s; }
  .hf-s2 { animation-duration: 6.6s; animation-delay: -3s; }
  .py-hero.v3 .py-hero-bg { animation: hero-settle-v3 1800ms cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes hf-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes hero-settle-v3 { from { transform: scale(1.06) translateY(14px); } to { transform: none; } }

/* 카테고리 버튼은 배너 아래에 띄워 둔다(개봉 장면을 가리지 않게) */
.py-hero.v3 + .cat-tiles { margin-top: clamp(-56px, -3.6vw, -36px); }

@media (min-width: 768px) and (max-width: 1023px) {
  .py-hero.v3 .py-hero-in { min-height: 0; padding-bottom: 300px; }
  .py-hero.v3 .py-hero-bg { background-size: auto 100%; }
  .hf-s1, .hf-s2 { display: none; }
}
@media (max-width: 767px) {
  .py-hero.v3 { background: #cdeef7; }
  .py-hero.v3 .py-hero-bg { background-image: url(../img/hero-v3-1200.webp); background-size: 150% auto; background-position: center bottom; }
  .py-hero.v3 .py-hero-in { min-height: 0; padding: 34px var(--gutter) min(64vw, 300px); gap: 16px; }
  .py-hero.v3 .py-hero-logo img { width: min(78vw, 330px); }
  .py-hero.v3 .py-hero-status { justify-self: stretch; }
  .hf-c1 { display: none; }
  .hf-c2 { right: -22px; top: 2px; width: 58px; }
  .hf-s1, .hf-s2 { display: none; }
  .py-hero.v3 + .cat-tiles { margin-top: -28px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .py-hero.v3 .py-hero-in { padding-bottom: 180px; }
  .hero-floats { display: none; }
}
/* 휴대폰: 배경 사진 위쪽 경계가 보이지 않게 위는 같은 하늘색 그라데이션으로 이어 준다 */
@media (max-width: 767px) {
  .py-hero.v3 { background: linear-gradient(180deg, #d9f3fb 0%, #9de4fc 60%); }
  .py-hero.v3 .py-hero-bg { background: linear-gradient(180deg, #d9f3fb 0%, rgba(157, 228, 252, 0) 52%), url(../img/hero-v3-1200.webp) center bottom / 150% auto no-repeat; }
}
@media (min-width: 768px) { .py-hero.v3 { background: #bfeefb; } }
@media (max-width: 767px) {
  .py-hero.v3 .py-hero-bg { background: #cdeef7 url(../img/hero-v3-1200.webp) center bottom / cover no-repeat; }
}
/* 배너 v3 낮게: 로고 + 방송 상태만, 아래 개봉 장면 */
.py-hero.v3 .py-hero-in { min-height: 0; gap: 16px; padding: clamp(28px, 3.4vw, 44px) var(--gutter) clamp(190px, 17vw, 250px); }
.py-hero.v3 .py-hero-logo img { width: clamp(260px, 26vw, 400px); }
.py-hero.v3 .py-hero-bg { background-size: cover; background-position: center 78%; }
.hf-c1 { top: 16%; }
.hf-c2 { top: 8%; }
.hf-s1 { top: 62%; }
.hf-s2 { top: 56%; }
.py-hero.v3 + .cat-tiles { margin-top: -24px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .py-hero.v3 .py-hero-in { padding-bottom: 210px; }
}
@media (max-width: 767px) {
  .py-hero.v3 .py-hero-in { padding: 24px var(--gutter) min(52vw, 220px); gap: 14px; }
  .py-hero.v3 .py-hero-logo img { width: min(70vw, 290px); }
  .py-hero.v3 .py-hero-bg { background-position: center bottom; }
  .py-hero.v3 + .cat-tiles { margin-top: -20px; }
}
/* 개봉 장면(상자)이 카테고리 버튼에 가리지 않게: 버튼은 배너 아래로 */
.py-hero.v3 .py-hero-bg { background-position: center bottom; }
.py-hero.v3 + .cat-tiles { margin-top: clamp(18px, 2vw, 28px); }
@media (max-width: 767px) { .py-hero.v3 + .cat-tiles { margin-top: 16px; } }

/* =====================================================================
   카테고리별 인기상품 줄 · 재고 띠 · 약속 줄 · 공지/채널
   ===================================================================== */
.cat-row { margin: 0 0 clamp(40px, 5vw, 64px); }
.cat-row-head, .home-info-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cat-row-head h2, .home-info-head h2 { margin: 0; font-size: clamp(20px, 1.9vw, 25px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.cat-row-more { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 12px 0 14px; border-radius: 11px; background: #fff; color: var(--night); font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line), inset 0 -2px 0 rgba(15, 30, 69, .05); transition: background-color 160ms ease, box-shadow 160ms ease, transform 140ms var(--ease-out); }
.cat-row-more:active { transform: translateY(1px); }
.cat-row-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--row-gap)) / 4); --row-gap: clamp(14px, 1.6vw, 22px); column-gap: var(--row-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px; margin: -6px -2px -14px; overscroll-behavior-x: contain; }
.cat-row-track::-webkit-scrollbar { display: none; }
.cat-row-track > .pcard { scroll-snap-align: start; }
.cat-row-nav { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.cat-row-nav[hidden] { display: none; }
.cat-row-progress { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(15, 30, 69, .1); overflow: hidden; }
.cat-row-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 25%; border-radius: 4px; background: var(--night); transition: transform 200ms ease-out, width 200ms ease-out; }
.row-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 11px; background: #fff; color: var(--night); font-size: 22px; font-weight: 700; line-height: 1; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: background-color 160ms ease, transform 120ms var(--ease-out); }
.row-btn:active:not(:disabled) { transform: scale(.92); }
.row-btn:disabled { color: #b6bccd; box-shadow: inset 0 0 0 1.5px #eceff5; cursor: not-allowed; }
@media (max-width: 1023px) { .cat-row-track { grid-auto-columns: calc((100% - 2 * var(--row-gap)) / 2.6); } }
@media (max-width: 767px) {
  .cat-row-track { grid-auto-columns: 46%; --row-gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .row-btn { display: none; }
}

/* 재고 표시: 포케야호 라벨(노랑 면·남색 테·아래 두께). 회전·겹테두리 없이 또렷하게 (2026-11-03 사용자 요청: 화질 깨짐 수정)
   3개 이하는 빨간 면·흰 글자, 표기는 똑같이 '재고 N개' */
.pcard-thumb { overflow: hidden; }
.stock-ribbon { position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none; }
.stock-ribbon b { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 11px 6px 10px; border: 2px solid var(--night); border-radius: 11px; background: var(--yellow); color: var(--night); font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; box-shadow: 0 3px 0 var(--night), 0 8px 14px -8px rgba(15, 30, 69, .45); -webkit-font-smoothing: antialiased; }
.stock-ribbon b::before { content: '재고'; font-size: 11px; font-weight: 800; opacity: .8; letter-spacing: .02em; }
.stock-ribbon b strong { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stock-ribbon b em { font-style: normal; font-size: 12px; font-weight: 800; }
.stock-ribbon.low b { background: #e0282e; color: #fff; }
.stock-ribbon.low b::before { opacity: .95; }
.pcard:has(.stock-ribbon) .ptype { left: auto; right: 10px; }
@container pcard (max-width: 190px) {
  .stock-ribbon { top: 8px; left: 8px; }
  .stock-ribbon b { padding: 5px 9px 5px 8px; font-size: 11px; border-radius: 9px; box-shadow: 0 2.5px 0 var(--night), 0 8px 14px -8px rgba(15, 30, 69, .45); }
  .stock-ribbon b strong { font-size: 16px; }
  .stock-ribbon b::before { font-size: 10px; }
  .pcard:has(.stock-ribbon) .ptype { right: 7px; }
}

/* 약속 줄 */
.trust-strip { list-style: none; margin: 0 0 clamp(44px, 5vw, 64px); padding: 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.trust-strip li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 15px; }
.trust-strip li:nth-child(1) { background: var(--yellow-l); }
.trust-strip li:nth-child(2) { background: var(--sky-l); }
.trust-strip li:nth-child(3) { background: var(--orange-l); }
.trust-strip li:nth-child(4) { background: #edf0f8; }
.trust-strip svg { flex: none; color: var(--night); }
.trust-strip div { display: grid; gap: 1px; min-width: 0; }
.trust-strip strong { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.trust-strip span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 1023px) { .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .trust-strip li { padding: 12px; gap: 9px; } .trust-strip span { font-size: 12px; } }

/* 공지 · 채널 */
.home-info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 22px); margin: 0 0 clamp(44px, 5vw, 64px); }
.home-info.single { grid-template-columns: minmax(0, 1fr); }
.home-notice, .home-channels { padding: clamp(18px, 2vw, 26px); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.home-notice ul { list-style: none; margin: 0; padding: 0; display: grid; }
.home-notice li + li { border-top: 1px solid #eef0f5; }
.home-notice a { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--ink); text-decoration: none; }
.home-notice strong { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-notice time { flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.home-notice .notice-pin { flex: none; padding: 2px 7px; border-radius: 6px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; }
.home-channel-list { display: grid; gap: 8px; }
.home-channel-list a { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 13px; background: var(--bg); color: var(--night); font-weight: 800; text-decoration: none; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.home-channel-list a span { flex: 1; }
.home-channel-list a:active { transform: scale(.98); }
@media (max-width: 767px) { .home-info { grid-template-columns: minmax(0, 1fr); } }

@media (hover: hover) and (pointer: fine) {
  .cat-row-more:hover { background: var(--yellow-l); box-shadow: inset 0 0 0 1.5px var(--yellow-d); }
  .row-btn:hover:not(:disabled) { background: var(--yellow-l); }
  .home-notice a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
  .home-channel-list a:hover { background: var(--yellow-l); }
}

/* =====================================================================
   카드 도감 (/dex) · 홈 도감 띠
   ===================================================================== */
.dex-page { padding-top: clamp(28px, 3.4vw, 44px); }
.dex-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.dex-head h1 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.dex-head p { margin: 8px 0 0; max-width: 56ch; color: var(--muted); font-size: 15px; line-height: 1.6; }
.dex-head .dex-count { margin: 0; padding: 8px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); color: var(--muted); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dex-count b { color: var(--night); font-weight: 800; }
.dex-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 24px; }
.dex-tools-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dex-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.dex-search:focus-within { box-shadow: inset 0 0 0 2px var(--night); color: var(--night); }
.dex-search input { width: 180px; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.dex-search input::placeholder { color: #7d86a0; }
.dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.dex-card { container: dex / inline-size; display: flex; flex-direction: column; padding: 10px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); transition: transform 240ms var(--ease-out), box-shadow 240ms ease; }
.dex-card[hidden] { display: none; }
.dex-thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 13px; overflow: hidden; background: var(--yellow-l); }
.dex-card[data-cat="원피스카드"] .dex-thumb { background: var(--sky-l); }
.dex-card[data-cat="드래곤볼/디즈니"] .dex-thumb { background: var(--orange-l); }
.dex-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform 300ms var(--ease-out); }
.dex-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(15, 30, 69, .35); font-weight: 800; letter-spacing: .12em; font-size: 12px; }
.dex-card.is-out .dex-thumb img { filter: grayscale(1); opacity: .5; }
.dex-card.is-out .dex-thumb { background: #eceef3; }
.dex-body { display: grid; gap: 8px; padding: 12px 4px 4px; }
.dex-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.dex-meta span { padding: 2px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 800; }
.dex-cat { background: #edf0f8; color: var(--night); }
.dex-region { background: var(--yellow-l); color: #7a5a00; }
.dex-state { margin-left: auto; background: #e6f6ee; color: #1f7a4f; }
.dex-card.is-out .dex-state { background: #eef0f5; color: #7a8299; }
.dex-title { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.dex-title a { color: var(--ink); text-decoration: none; }
.dex-forms { display: flex; flex-wrap: wrap; gap: 6px; }
.dex-form { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 11px; border-radius: 10px; background: var(--bg); color: var(--night); font-size: 13px; text-decoration: none; transition: background-color 160ms ease, transform 120ms var(--ease-out); }
.dex-form span { font-weight: 700; color: var(--muted); }
.dex-form b { font-weight: 800; font-variant-numeric: tabular-nums; }
.dex-form.out b { color: #8a93ab; font-weight: 700; }
.dex-form:active { transform: scale(.96); }
@container dex (max-width: 220px) { .dex-title { font-size: 15px; } .dex-form { padding: 0 9px; font-size: 12.5px; } }
@media (max-width: 767px) {
  .dex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dex-card { padding: 7px; border-radius: 16px; }
  .dex-tools { margin-inline: calc(-1 * var(--gutter)); }
  .dex-tools .cat-tabs { margin: 0 var(--gutter); max-width: calc(100% - 2 * var(--gutter)); overflow-x: auto; scrollbar-width: none; }
  .dex-tools-right { width: 100%; padding: 0 var(--gutter); }
  .dex-search { flex: 1; }
  .dex-search input { width: 100%; }
  .dex-state { margin-left: 0; }
}

/* 홈 도감 띠 */
.dex-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 20px; min-height: 120px; margin: 0 0 clamp(44px, 5vw, 64px); padding: 20px 76px 20px clamp(20px, 2.4vw, 32px); border-radius: 20px; color: #fff; text-decoration: none; background: linear-gradient(90deg, rgba(15, 30, 69, .97) 0%, rgba(15, 30, 69, .88) 45%, rgba(15, 30, 69, .55) 100%), #0f1e45 url(../img/hero-v3-1200.webp) center 80% / cover no-repeat; box-shadow: 0 22px 36px -24px rgba(9, 18, 46, .75), inset 0 -4px 0 rgba(0, 0, 0, .18); transition: transform 220ms var(--ease-out); }
.dex-banner-text { display: grid; gap: 4px; flex: none; }
.dex-banner strong { font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -0.03em; }
.dex-banner-text span { color: #c8d2ee; font-size: 14px; font-weight: 600; }
.dex-banner-thumbs { display: flex; margin-left: auto; }
.dex-banner-thumbs img { width: 76px; height: 76px; object-fit: contain; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 3px #0f1e45, 0 10px 18px -8px rgba(0, 0, 0, .5); transform: rotate(var(--r, -4deg)); }
.dex-banner-thumbs img + img { margin-left: -14px; }
.dex-banner-thumbs img:nth-child(2) { --r: 5deg; }
.dex-banner-thumbs img:nth-child(3) { --r: -2deg; }
.dex-banner-thumbs img:nth-child(4) { --r: 7deg; }
.dex-banner .cat-tile-go { background: var(--yellow); }
.dex-banner:active { transform: scale(.99); }
@media (max-width: 767px) {
  .dex-banner { min-height: 104px; padding-right: 56px; }
  .dex-banner-thumbs { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .dex-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(15, 30, 69, .06), 0 22px 36px -22px rgba(15, 30, 69, .5); }
  .dex-card:hover .dex-thumb img { transform: scale(1.05); }
  .dex-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .dex-form:hover { background: var(--yellow-l); }
  .dex-banner:hover { transform: translateY(-2px); }
  .dex-banner:hover .cat-tile-go { transform: translateX(3px); }
}
@media (max-width: 767px) { .dex-search { flex: 1 1 100%; order: 2; } }
/* 도감: 구매 요소 없이 품목 정보만 */
.dex-thumb { cursor: default; }
.dex-form { min-height: 28px; padding: 0 10px; border-radius: 8px; background: var(--bg); color: var(--night); font-size: 12.5px; font-weight: 800; }
.dex-forms { gap: 5px; }
@media (hover: hover) and (pointer: fine) { .dex-form:hover { background: var(--bg); } }
/* 상품 사진 배경: 전부 흰색 (카드 안에서 구분되도록 아주 옅은 테두리) */
.pcard-thumb, body.is-home .pcard-thumb,
.pcard[data-cat] .pcard-thumb, .pcard.soldout .pcard-thumb,
.dex-thumb, .dex-card[data-cat] .dex-thumb, .dex-card.is-out .dex-thumb,
.detail-gallery .thumb { background: #fff; box-shadow: inset 0 0 0 1px #eceff5; }
.detail-gallery .thumb { box-shadow: inset 0 0 0 1px #eceff5, var(--shadow); }

/* =====================================================================
   깅모지식 헤더 + 브랜드 블록 (2026-10-31): 남색 헤더가 아래 브랜드 블록과 한 면으로 이어진다
   ===================================================================== */
.site-head { background: #0b1736; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.head-in { max-width: 980px; height: 58px; grid-template-columns: auto 1fr auto; grid-template-areas: "logo . util"; gap: 12px; }
.head-nav { display: none !important; }
.head-logo img { height: 34px; filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff); }
.head-util { gap: 2px; }
.site-head .util { height: 36px; min-width: 0; padding: 0 9px; color: #fff; font-size: 13px; font-weight: 700; }
.site-head .util svg { width: 18px; height: 18px; }
.site-head .util.text-only { display: inline-flex; }
.site-head .util:not(.cart) svg { display: none; }
.head-live { margin: 0 4px 0 6px; padding: 5px 10px 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #aeb8d6; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px; }
.head-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.head-live.on { background: var(--pink); color: #fff; }
.site-head .util.cart { width: 38px; height: 38px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); box-shadow: none; justify-content: center; position: relative; }
.site-head .util.cart > span:not(.badge) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-head .util.cart .badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; font-size: 10.5px; }
.site-head .menu-btn { color: #fff; }
.site-head [data-toggle-search] { display: none; }
.cat-scroll, body.is-home .cat-scroll { display: none !important; }
.live-strip { display: none; }
.head-search { padding-top: 6px; }

.brand-hero { position: relative; overflow: hidden; color: #fff; text-align: center; border-radius: 0 0 44px 44px;
  background:
    radial-gradient(38% 60% at 50% 115%, rgba(69, 189, 214, .28), transparent 70%),
    radial-gradient(30% 50% at 18% 20%, rgba(255, 198, 26, .12), transparent 70%),
    radial-gradient(30% 50% at 84% 30%, rgba(224, 82, 15, .12), transparent 70%),
    #0b1736; }
.bh-in { position: relative; display: inline-grid; justify-items: center; padding: clamp(26px, 3.4vw, 44px) 20px clamp(34px, 4vw, 52px); }
.bh-logo { margin: 0; line-height: 0; }
.bh-logo img { width: clamp(270px, 33vw, 540px); height: auto; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 16px 24px rgba(0, 0, 0, .45)); }
.bh-tags { display: flex; align-items: center; gap: 14px; margin: clamp(14px, 1.6vw, 20px) 0 0; color: #dfe6fb; font-size: clamp(10.5px, .95vw, 13px); font-weight: 800; letter-spacing: .32em; white-space: nowrap; }
.bh-tags span { padding-left: .32em; }
.bh-tags i { position: relative; width: clamp(28px, 4vw, 56px); height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7)); }
.bh-tags i:last-child { background: linear-gradient(90deg, rgba(255, 255, 255, .7), transparent); }
.bh-tags i::after { content: ''; position: absolute; top: -5px; width: 11px; height: 11px; background: var(--yellow); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.bh-tags i:first-child::after { right: -6px; }
.bh-tags i:last-child::after { left: -6px; }
.bh-btn { margin-top: clamp(14px, 1.6vw, 20px); padding: 9px 30px 9px calc(30px + .34em); border: 1.5px solid rgba(255, 255, 255, .75); border-radius: 999px; color: #fff; font-size: clamp(12px, 1vw, 14px); font-weight: 800; letter-spacing: .34em; text-decoration: none; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 140ms var(--ease-out); }
.bh-btn:active { transform: scale(.97); }
.bh-spark { position: absolute; top: 40%; width: 22px; height: 22px; background: #fff6d6; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.bh-spark.l { left: -14px; }
.bh-spark.r { right: -14px; }
@media (prefers-reduced-motion: no-preference) {
  .bh-spark { animation: bh-twinkle 2.8s ease-in-out infinite; }
  .bh-spark.r { animation-delay: 1.4s; }
  .bh-logo img { animation: py-pop 900ms var(--ease-out) both; }
}
@keyframes bh-twinkle { 0%, 100% { opacity: .5; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.05) rotate(45deg); } }
@media (hover: hover) and (pointer: fine) {
  .bh-btn:hover { background: #fff; color: #0b1736; border-color: #fff; }
  .site-head .util:hover { background: rgba(255, 255, 255, .1); }
  .site-head .util.cart:hover { background: rgba(255, 255, 255, .2); }
}
/* 브랜드 블록 다음 첫 줄(방송 상태·도감) 간격 */
.brand-hero + .top-strip { margin-top: 18px; }
.top-strip, .top-dex { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.top-dex { margin-top: 14px; }
.top-dex .dex-banner { margin-bottom: 0; }
.live-chip { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); color: #4a5470; font-size: 14px; font-weight: 800; }
.live-chip.on { background: var(--pink-l); color: var(--pink-dd); }
.live-chip .live-pill { padding: 3px 9px; border-radius: 7px; font-size: 11px; }
.live-chip .live-pill:not(.on) { background: #e3e8f3; color: #5b6480; }
.live-chip-hours { margin-left: auto; color: var(--muted); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  .head-in { height: 54px; grid-template-areas: "menu logo util"; grid-template-columns: auto 1fr auto; }
  .site-head .util.text-only, .site-head .util:not(.cart) { display: none; }
  .site-head .util[href="/my"], .site-head .util[href="/login"] { display: inline-flex; }
  .site-head .util[href="/my"] svg, .site-head .util[href="/login"] svg { display: block; }
  .site-head .util[href="/my"] > span, .site-head .util[href="/login"] > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 767px) {
  .brand-hero { border-radius: 0 0 28px 28px; }
  .bh-tags { letter-spacing: .18em; gap: 8px; }
  .bh-spark { width: 14px; height: 14px; }
  .live-chip { flex-wrap: wrap; row-gap: 4px; font-size: 13px; }
  .live-chip-hours { margin-left: 0; width: 100%; }
}
.top-strip, .top-dex { width: 100%; }
@media (max-width: 767px) {
  .bh-tags { font-size: 9.5px; letter-spacing: .14em; gap: 6px; }
  .bh-tags i { width: 18px; }
  .bh-tags i::after { width: 9px; height: 9px; top: -4px; }
  .bh-in { padding-inline: 12px; }
}

/* =====================================================================
   카드 도감 v2 (포케히트 도감 배치): 도감 고르기 → 제목 → 남색 검색 패널 → 종류 카드 → 5열 목록
   ===================================================================== */
.dx-page { padding-top: clamp(20px, 2.4vw, 32px); }
.dx-worlds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #0b1736; }
.dx-world { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(120px, 12vw, 168px); padding: 18px 22px; color: #fff; text-decoration: none; overflow: hidden; }
/* 2026-11-04 사용자 요청: 세 도감 타일 모두 흑백 없이 컬러로. 글자 자리(왼쪽)는 ::after 그라데이션이 어둡게 깔아 준다 */
.dx-world::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--bg) right center / cover no-repeat; filter: brightness(.88); transition: filter 300ms ease, transform 500ms var(--ease-out); }
.dx-world::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 23, 54, .85), rgba(11, 23, 54, .25) 70%); }
.dx-world.on::before { filter: none; }
.dx-world.on::after { background: linear-gradient(90deg, rgba(11, 23, 54, .78), rgba(11, 23, 54, .12) 70%); }
.dx-world.on { box-shadow: inset 0 0 0 3px var(--yellow); }
.dx-world + .dx-world { border-left: 1px solid rgba(255, 255, 255, .12); }
.dx-world-text { display: grid; gap: 3px; }
.dx-world strong { font-size: clamp(18px, 1.8vw, 24px); font-weight: 800; letter-spacing: -0.03em; }
.dx-world-text > span { font-size: 11px; font-weight: 800; letter-spacing: .16em; opacity: .85; }
.dx-world em { justify-self: start; margin-top: 8px; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .16); font-style: normal; font-size: 12px; font-weight: 800; }
.dx-world.on em { background: var(--yellow); color: var(--night); }
.dx-head { margin: clamp(24px, 3vw, 36px) 0 18px; text-align: center; }
.dx-head h1 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.dx-head p { margin: 8px auto 0; max-width: 60ch; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.dx-panel { padding: 16px; border-radius: 18px; background: linear-gradient(180deg, #13265a, #0f1e45); color: #fff; box-shadow: var(--shadow); }
.dx-panel-row { display: grid; grid-template-columns: minmax(0, 1.6fr) auto minmax(0, .8fr) minmax(0, .8fr); gap: 10px; align-items: center; }
.dx-input { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; background: #fff8e1; color: #6b5a1f; }
.dx-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 15px; }
.dx-input input::placeholder { color: #8f7d45; }
.dx-input:focus-within { box-shadow: 0 0 0 3px var(--yellow); }
.dx-regions { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.dx-region { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: #c8d2ee; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.dx-region.on { background: #c63b2f; color: #fff; }
.dx-select select { width: 100%; height: 46px; padding: 0 12px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 700; }
.dx-panel-info { margin: 12px 2px 0; color: #c8d2ee; font-size: 13px; font-weight: 700; }
.dx-panel-info b { color: var(--yellow); }
.dx-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 24px; padding: 12px; border-radius: 18px; background: #fdf3d6; box-shadow: inset 0 0 0 1px #f2deaa; }
.dx-kind { display: grid; justify-items: start; gap: 2px; padding: 10px 10px 12px; border: 0; border-radius: 13px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 160ms ease, transform 140ms var(--ease-out); }
.dx-kind-img { width: 100%; aspect-ratio: 16 / 10; margin-bottom: 8px; border-radius: 9px; background: #f6f7fb; display: grid; place-items: center; overflow: hidden; }
.dx-kind-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.dx-kind-all { background: linear-gradient(135deg, var(--yellow-l), var(--sky-l)); }
.dx-kind strong { font-size: 14px; font-weight: 800; }
.dx-kind > span:last-child { font-size: 12px; color: var(--muted); font-weight: 700; }
.dx-kind.on { background: #fff4c9; box-shadow: inset 0 0 0 2px var(--yellow-d); }
.dx-kind:active { transform: scale(.98); }
.dx-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.dx-card { display: flex; flex-direction: column; padding: 10px 10px 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #eceff5, var(--shadow); position: relative; }
.dx-card::before { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--yellow), var(--pink), var(--sky)); opacity: .8; }
.dx-card[hidden] { display: none; }
.dx-img { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px #f0f2f7; }
.dx-img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.dx-img .ph { color: #9aa2b8; font-size: 12.5px; font-weight: 700; }
.dx-soon { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 3px 8px; border-radius: 7px; background: #c63b2f; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.dx-name { margin: 12px 2px 8px; font-size: 15px; font-weight: 800; line-height: 1.38; letter-spacing: -0.02em; color: var(--ink); word-break: keep-all; }
.dx-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 2px; }
.dx-chips span { padding: 2px 7px; border-radius: 6px; background: #eef1f8; color: #3c4766; font-size: 11.5px; font-weight: 800; }
.dx-chips .r { background: var(--yellow-l); color: #7a5a00; }
.dx-chips .k { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px #e1e5ee; }
.dx-date { margin: auto 2px 0; padding-top: 10px; color: var(--muted); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dx-source { margin: 28px 0 0; color: #8a93ab; font-size: 12px; text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .dx-world:hover::before { transform: scale(1.05); filter: brightness(1); }
  .dx-world.on:hover::before { filter: none; }
  .dx-kind:hover { box-shadow: inset 0 0 0 1.5px #e7c766; }
  .dx-region:hover:not(.on) { color: #fff; }
}
@media (max-width: 1200px) { .dx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .dx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dx-panel-row { grid-template-columns: 1fr 1fr; }
  .dx-input { grid-column: 1 / -1; }
  .dx-regions { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 767px) {
  .dx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dx-kinds { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; padding: 10px var(--gutter); }
  .dx-kinds::-webkit-scrollbar { display: none; }
  .dx-kind { flex: 0 0 132px; }
  .dx-world { padding: 14px; min-height: 104px; }
  .dx-world em { display: none; }
  .dx-name { font-size: 14px; }
}
.dx-kind-img { aspect-ratio: auto; height: clamp(64px, 6.4vw, 92px); }
@media (max-width: 767px) { .dx-kind-img { height: 64px; } }

/* 카테고리 이동 카드 (브랜드 블록 아래) */
.cat-nav { width: 100%; max-width: var(--page); margin: 18px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.cn-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(112px, 9vw, 132px); padding: 18px 22px; border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px #e6e9f1, 0 10px 24px -18px rgba(15, 30, 69, .45); transition: transform 220ms var(--ease-out), box-shadow 220ms ease; }
.cn-card::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: -1; background: var(--img) 70% center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); transition: transform 500ms var(--ease-out); }
.cn-text { display: grid; gap: 4px; }
.cn-en { color: #a07a22; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.cn-card.t-s .cn-en { color: #1b7f99; }
.cn-card.t-o .cn-en { color: #b8460c; }
.cn-card strong { font-size: clamp(20px, 1.9vw, 26px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.15; }
.cn-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; font-weight: 800; color: #2c3550; }
.cn-card:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .cn-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #d5dae6, 0 16px 30px -18px rgba(15, 30, 69, .55); }
  .cn-card:hover::before { transform: scale(1.06); }
  .cn-card:hover .cn-go { text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 1023px) { .cat-nav { grid-template-columns: 1fr 1fr; } .cn-card.t-o { grid-column: 1 / -1; min-height: 96px; } }
@media (max-width: 767px) {
  .cat-nav { grid-template-columns: 1fr; gap: 10px; }
  .cn-card, .cn-card.t-o { grid-column: auto; min-height: 112px; }
  .cn-card.t-o { min-height: 88px; }
}
.cat-nav + .top-strip { margin-top: 14px; }
/* 도감 종류 카드: 사진이 칸 높이에 맞춰 통째로 보이게 */
.dx-kind-img { position: relative; display: block; background: #fff; box-shadow: inset 0 0 0 1px #eef0f5; }
.dx-kind-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.dx-kind-all { background: linear-gradient(135deg, var(--yellow-l), var(--sky-l)); box-shadow: none; }

/* 도감: 수록 카드 목록 창 */
.dx-card.has-cards { cursor: pointer; transition: transform 220ms var(--ease-out), box-shadow 220ms ease; }
.dx-card.has-cards:focus-visible { outline: 3px solid var(--sky-d); outline-offset: 2px; }
.dx-cards-btn { margin: 10px 2px 0; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; border-radius: 10px; background: var(--yellow-l); color: var(--night); font-size: 12.5px; font-weight: 800; }
.dx-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: clamp(0px, 3vw, 32px); }
.dx-modal-back { position: absolute; inset: 0; background: rgba(9, 18, 46, .55); opacity: 0; transition: opacity 240ms ease; }
.dx-modal-panel { position: relative; width: min(1100px, 100%); max-height: min(88dvh, 920px); display: flex; flex-direction: column; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px -30px rgba(9, 18, 46, .7); transform: translateY(16px) scale(.98); opacity: 0; transition: transform 300ms var(--ease-out), opacity 220ms ease; overflow: hidden; }
.dx-modal.open .dx-modal-back { opacity: 1; }
.dx-modal.open .dx-modal-panel { transform: none; opacity: 1; }
.dx-modal-head { display: flex; align-items: center; gap: 14px; padding: 16px 16px 12px 20px; border-bottom: 1px solid #eef0f5; }
.dx-modal-img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; box-shadow: inset 0 0 0 1px #eef0f5; padding: 4px; flex: none; }
.dx-modal-head > div { flex: 1; min-width: 0; }
.dx-modal-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.dx-modal-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.dx-modal-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 20px; }
.dx-modal-tools .dx-input { flex: 1 1 240px; height: 42px; }
.dx-modal-tools select { height: 42px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; font-weight: 700; }
.dx-modal-count { color: var(--muted); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dx-card-grid { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; padding: 4px 20px 22px; align-content: start; }
.dx-c { margin: 0; display: grid; gap: 6px; }
.dx-c-img { display: block; aspect-ratio: 63 / 88; border-radius: 8px; background: #f2f4f9; overflow: hidden; }
.dx-c-img img { width: 100%; height: 100%; object-fit: cover; }
.dx-c figcaption { display: grid; gap: 1px; font-size: 12.5px; line-height: 1.35; }
.dx-c-no { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.dx-c-no b { margin-left: 4px; padding: 0 5px; border-radius: 4px; background: var(--yellow-l); color: #7a5a00; font-weight: 800; }
.dx-c strong { font-weight: 800; color: var(--ink); }
.dx-c-sub { color: #8a93ab; font-size: 11.5px; }
.dx-c-empty { grid-column: 1 / -1; margin: 40px 0; text-align: center; color: var(--muted); font-weight: 700; }
@media (max-width: 767px) {
  .dx-modal { padding: 0; place-items: end stretch; }
  .dx-modal-panel { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dx-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-inline: 14px; }
}
@media (hover: hover) and (pointer: fine) {
  .dx-card.has-cards:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #e1e5ee, 0 20px 34px -22px rgba(15, 30, 69, .5); }
}
@media (prefers-reduced-motion: reduce) { .dx-modal-panel, .dx-modal-back { transition: none; } }
.dx-c-img { position: relative; }
.dx-c-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; color: #9aa2b8; font-size: 12px; font-weight: 800; letter-spacing: .02em; text-align: center; background: repeating-linear-gradient(135deg, #f2f4f9 0 10px, #eceff6 10px 20px); }

/* 도감 카드 목록: 희귀도 섹션 (좋은 희귀도부터) */
.dx-card-grid { display: block; padding: 0 20px 22px; }
.dx-sec + .dx-sec { margin-top: 22px; }
.dx-sec-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: 8px; margin: 0 -20px 12px; padding: 10px 20px 9px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid #eceff5; font-size: 13px; }
.dx-sec-head b { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 7px; background: #eef1f8; color: #3c4766; font-size: 13.5px; font-weight: 900; letter-spacing: .02em; }
.dx-sec-head span { color: var(--ink); font-weight: 800; }
.dx-sec-head em { margin-left: auto; color: var(--muted); font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.dx-sec.is-top .dx-sec-head b { background: linear-gradient(135deg, #ffd75a, #ffc61a 55%, #f4a51c); color: #0f1e45; box-shadow: inset 0 -2px 0 rgba(15, 30, 69, .18); }
.dx-sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.dx-c-alt { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 5px; background: rgba(15, 30, 69, .86); color: #ffd75a; font-size: 10.5px; font-weight: 800; }
@media (max-width: 767px) {
  .dx-card-grid { padding-inline: 14px; }
  .dx-sec-head { margin-inline: -14px; padding-inline: 14px; }
  .dx-sec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

/* 상품별 적립 안내 칩: '적립 기본 1~3% · 무통장 2~5%' / '적립금 X' */
.point-chip { justify-self: start; display: inline-block; margin: 0 0 8px; padding: 4px 8px; border-radius: 7px; background: #fff4d6; box-shadow: inset 0 0 0 1px #f2d999; color: #7a5200; font-size: 12px; font-weight: 800; line-height: 1.4; word-break: keep-all; }
.point-chip.is-none { background: #f3f4f8; box-shadow: inset 0 0 0 1px #e1e5ee; color: #6b7590; }
.point-chip.detail { display: inline-block; margin: 0 0 6px; font-size: 13px; }
/* 상세: 가격 아래 정가·세일 줄은 가격에 붙이려고 위로 당겨져 있다. 사이에 적립 칩이 끼면 겹치지 않게 당김을 푼다 */
.point-chip.detail + .p-list-price { margin-top: 2px; }
.pcard .point-chip { align-self: flex-start; width: fit-content; max-width: 100%; margin-inline: 0; }

/* 메인 화면: 바로 아래 큰 로고(brand-hero)가 있으니 헤더의 작은 로고는 감춘다(자리는 유지해 메뉴 위치가 흔들리지 않게) */
body:has(.brand-hero) .head-logo { visibility: hidden; }

/* ===== 카테고리 이동 카드 v2: 색 면 + 그림 ===== */
.cn-card { --tone: #fdc61e; --tone-2: #ffd84a; --cn-ink: #0f1e45; --cn-sub: rgba(15, 30, 69, .72);
  min-height: clamp(128px, 10.5vw, 156px); padding: clamp(16px, 1.6vw, 22px) clamp(18px, 1.8vw, 26px); border-radius: 18px;
  background: var(--tone); color: var(--cn-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(15, 30, 69, .12), 0 14px 28px -20px rgba(15, 30, 69, .6); }
.cn-card.t-y { background-color: #fdc61e; }
.cn-card.t-s { --tone: #4dcefb; --tone-2: #7fdcff; background-color: #4dcefb; }
.cn-card.t-o { --tone: #ee5203; --tone-2: #ff7a2e; --cn-ink: #fff; --cn-sub: rgba(255, 255, 255, .85); background-color: #ee5203; }
.cn-card::before { width: 66%; background: var(--img) 62% 55% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
.cn-card.t-y::before { --img: url(../img/tile-yellow.webp); }
.cn-card.t-s::before { --img: url(../img/tile-sky.webp); }
.cn-card.t-o::before { --img: url(../img/tile-orange.webp); }
.cn-card::after { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, var(--tone-2) 0%, transparent 60%); }
.cn-text { gap: 6px; max-width: 58%; }
.cn-card .cn-en, .cn-card.t-s .cn-en, .cn-card.t-o .cn-en { color: var(--cn-sub); font-size: 11px; letter-spacing: .14em; }
.cn-card strong { color: var(--cn-ink); font-size: clamp(21px, 2vw, 28px); white-space: nowrap; }
.cn-go { width: fit-content; margin-top: 6px; padding: 6px 10px 6px 12px; border-radius: 8px; background: #0f1e45; color: #fff; font-size: 12.5px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); transition: background 180ms ease, color 180ms ease; }
.cn-card.t-y .cn-go svg { color: #ffc61a; }
.cn-card.t-s .cn-go svg { color: #7fdcff; }
.cn-card.t-o .cn-go { background: #fff; color: #0f1e45; box-shadow: inset 0 -2px 0 rgba(15, 30, 69, .18); }
.cn-card.t-o .cn-go svg { color: #ee5203; }
@media (hover: hover) and (pointer: fine) {
  .cn-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(15, 30, 69, .12), 0 20px 34px -20px rgba(15, 30, 69, .7); }
  .cn-card:hover .cn-go { text-decoration: none; }
  .cn-card.t-y:hover .cn-go, .cn-card.t-s:hover .cn-go { background: #1c2f63; }
}
@media (max-width: 1023px) { .cn-card.t-o { min-height: 112px; } .cn-card.t-o::before { width: 38%; background-size: cover; background-position: 62% 45%; } .cn-card.t-o .cn-text { max-width: 60%; } }
@media (max-width: 639px) { .cn-card, .cn-card.t-o { min-height: 108px; } .cn-card::before, .cn-card.t-o::before { width: 62%; } .cn-text { max-width: 62%; } }
@media (prefers-reduced-motion: reduce) { .cn-card, .cn-card::before { transition: none; } }

/* 브랜드 배너 배경: Codex 생성(design-gen/brand-hero-bg.png), 가운데는 로고 자리로 비어 있음 */
.brand-hero { background: radial-gradient(42% 70% at 50% 55%, rgba(11, 23, 54, .55), transparent 75%), url(../img/brand-hero-bg-1920.webp) center 40% / cover no-repeat, #0b1736; }
@media (max-width: 1100px) { .brand-hero { background-image: radial-gradient(42% 70% at 50% 55%, rgba(11, 23, 54, .55), transparent 75%), url(../img/brand-hero-bg-1100.webp); } }
@media (max-width: 639px) { .brand-hero { background-size: auto, auto 100%; background-position: center, center; } }

/* 도감 종류 카드 v2: '전체' 없음, 팩 이미지 3장 부채꼴, 키 큰 카드 */
.dx-kinds { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(10px, 1vw, 14px); padding: clamp(10px, 1vw, 14px); }
.dx-kind { position: relative; display: grid; grid-template-rows: auto auto; gap: 0; padding: 0; overflow: hidden; border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 1px #efe2bb, 0 8px 18px -16px rgba(15, 30, 69, .5); }
.dx-kind .dx-kind-img { position: relative; display: block; width: 100%; height: clamp(150px, 13vw, 190px); margin: 0; border-radius: 0; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 100%, #fff3c4 0%, transparent 70%), linear-gradient(180deg, #fffaf0, #fff4d6); box-shadow: none; }
.dx-kind .dx-kind-img img { position: absolute; left: 50%; bottom: -6%; width: auto; height: 92%; padding: 0; object-fit: contain; inset: auto auto -6% 50%;
  filter: drop-shadow(0 10px 12px rgba(15, 30, 69, .28)); transform-origin: 50% 100%; transition: transform 320ms var(--ease-out); }
.dx-kind .n1 .p0 { transform: translateX(-50%); }
.dx-kind .n2 .p0 { transform: translateX(-78%) rotate(-8deg); }
.dx-kind .n2 .p1 { transform: translateX(-22%) rotate(7deg); }
.dx-kind .n3 .p0 { transform: translateX(-100%) rotate(-12deg) scale(.9); }
.dx-kind .n3 .p1 { transform: translateX(0%) rotate(12deg) scale(.9); }
.dx-kind .n3 .p2 { z-index: 1; transform: translateX(-50%); }
.dx-kind-text { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid #f3e7c4; }
.dx-kind-text strong { font-size: clamp(14px, 1.1vw, 16px); font-weight: 900; letter-spacing: -0.02em; }
.dx-kind-text span { flex: none; font-size: 12px; font-weight: 800; color: var(--muted); }
.dx-kind.on { background: #fff; box-shadow: inset 0 0 0 2.5px var(--yellow-d), 0 10px 22px -14px rgba(160, 122, 34, .7); }
.dx-kind.on .dx-kind-text { background: #ffe9a6; border-top-color: #f2d27a; }
.dx-kind.on .dx-kind-text span { color: #6b5212; }
@media (hover: hover) and (pointer: fine) {
  .dx-kind:hover { box-shadow: inset 0 0 0 1.5px #e7c766, 0 12px 22px -16px rgba(15, 30, 69, .55); }
  .dx-kind:hover .n3 .p0 { transform: translateX(-108%) rotate(-16deg) scale(.9); }
  .dx-kind:hover .n3 .p1 { transform: translateX(8%) rotate(16deg) scale(.9); }
  .dx-kind:hover .n3 .p2, .dx-kind:hover .n1 .p0 { transform: translateX(-50%) translateY(-4%); }
}
@media (max-width: 767px) {
  .dx-kind { flex: 0 0 min(64vw, 230px); }
  .dx-kind .dx-kind-img { height: 140px; }
}
@media (prefers-reduced-motion: reduce) { .dx-kind .dx-kind-img img { transition: none; } }
/* 팩 사진 흰 배경이 사각형으로 보이지 않게: 겹치지 않게 나란히 두고 곱하기 합성 */
.dx-kind { justify-items: stretch; align-content: start; }
.dx-kind .dx-kind-img { background: linear-gradient(180deg, #fffdf6, #fff6dc); }
.dx-kind .dx-kind-img img { height: 82%; bottom: 9%; inset: auto auto 9% 50%; filter: none; mix-blend-mode: multiply; }
.dx-kind .n2 .p0 { transform: translateX(-104%) rotate(-5deg); }
.dx-kind .n2 .p1 { transform: translateX(4%) rotate(5deg); }
.dx-kind .n3 .p0 { transform: translateX(-162%) rotate(-7deg) scale(.88); }
.dx-kind .n3 .p1 { transform: translateX(62%) rotate(7deg) scale(.88); }
.dx-kind .n3 .p2 { transform: translateX(-50%); }
@media (hover: hover) and (pointer: fine) {
  .dx-kind:hover .n3 .p0 { transform: translateX(-168%) rotate(-10deg) scale(.88); }
  .dx-kind:hover .n3 .p1 { transform: translateX(68%) rotate(10deg) scale(.88); }
  .dx-kind:hover .n3 .p2, .dx-kind:hover .n1 .p0 { transform: translateX(-50%) translateY(-4%); }
  .dx-kind:hover .n2 .p0 { transform: translateX(-108%) rotate(-8deg) translateY(-3%); }
  .dx-kind:hover .n2 .p1 { transform: translateX(8%) rotate(8deg) translateY(-3%); }
}
/* 위치 계산을 이미지 폭에 기대지 않도록 가로 줄 배치로 */
.dx-kind .dx-kind-img { display: flex; align-items: center; justify-content: center; gap: 4%; padding: 6% 6% 7%; }
.dx-kind .dx-kind-img img, .dx-kind .dx-kind-img img.p0, .dx-kind .dx-kind-img img.p1, .dx-kind .dx-kind-img img.p2 {
  position: static; inset: auto; flex: 0 1 30%; min-width: 0; width: 30%; height: 100%; object-fit: contain; transform: none; }
.dx-kind .n1 img { flex-basis: 40%; width: 40%; }
.dx-kind .n2 img { flex-basis: 36%; width: 36%; }
.dx-kind .n3 .p0 { order: 0; transform: rotate(-6deg) scale(.9); }
.dx-kind .n3 .p2 { order: 1; transform: none; }
.dx-kind .n3 .p1 { order: 2; transform: rotate(6deg) scale(.9); }
.dx-kind .n2 .p0 { transform: rotate(-4deg); }
.dx-kind .n2 .p1 { transform: rotate(4deg); }
@media (hover: hover) and (pointer: fine) {
  .dx-kind:hover .n3 .p0 { transform: rotate(-9deg) scale(.9) translateX(-4%); }
  .dx-kind:hover .n3 .p1 { transform: rotate(9deg) scale(.9) translateX(4%); }
  .dx-kind:hover .n3 .p2, .dx-kind:hover .n1 .p0 { transform: translateY(-4%); }
  .dx-kind:hover .n2 .p0 { transform: rotate(-7deg) translateY(-3%); }
  .dx-kind:hover .n2 .p1 { transform: rotate(7deg) translateY(-3%); }
}
.dx-kind .dx-kind-img { gap: 6%; padding: 8% 8% 9%; }
.dx-kind .dx-kind-img img { filter: drop-shadow(0 6px 8px rgba(15, 30, 69, .25)); mix-blend-mode: normal; }
.dx-kind .dx-kind-img.n3 img.p0 { transform: rotate(-6deg) scale(.92); }
.dx-kind .dx-kind-img.n3 img.p1 { transform: rotate(6deg) scale(.92); }
.dx-kind .dx-kind-img.n2 img.p0 { transform: rotate(-4deg); }
.dx-kind .dx-kind-img.n2 img.p1 { transform: rotate(4deg); }
@media (hover: hover) and (pointer: fine) {
  .dx-kind:hover .dx-kind-img.n3 img.p0 { transform: rotate(-10deg) scale(.92) translateX(-5%); }
  .dx-kind:hover .dx-kind-img.n3 img.p1 { transform: rotate(10deg) scale(.92) translateX(5%); }
  .dx-kind:hover .dx-kind-img img.p2, .dx-kind:hover .dx-kind-img.n1 img.p0 { transform: translateY(-5%); }
  .dx-kind:hover .dx-kind-img.n2 img.p0 { transform: rotate(-8deg) translateY(-3%); }
  .dx-kind:hover .dx-kind-img.n2 img.p1 { transform: rotate(8deg) translateY(-3%); }
}

/* ===== 도감 v3: 세 도감 고르기 · 검색 패널 · 배지 ===== */
.dx-worlds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dx-panel { padding: clamp(14px, 1.4vw, 20px); }
.dx-panel-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, .9fr); }
.dx-regions { align-items: center; }
.dx-regions-label { padding: 0 6px 0 8px; color: #9fb0d8; font-size: 12px; font-weight: 800; white-space: nowrap; }
.dx-region { white-space: nowrap; }
.dx-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.dx-panel-foot .dx-panel-info { margin: 0; text-align: right; }
.dx-reset { min-height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 9px; background: none; color: #dfe6fb; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.dx-reset:active { transform: scale(.97); }
.dx-img { position: relative; }
.dx-badge { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 4px 10px -4px rgba(15, 30, 69, .5); }
.dx-badge.soon { background: #c99a2e; color: #fff; }
.dx-badge.new { background: #c63b2f; color: #fff; }
.dx-badge.sale { top: auto; bottom: 8px; left: auto; right: 8px; background: var(--yellow); color: var(--night); letter-spacing: 0; }
.dx-hit { align-self: flex-start; margin-top: 6px; padding: 3px 8px; border-radius: 6px; background: #e7f6fb; color: #0f6f86; font-size: 12px; font-weight: 800; }
.dx-hit[hidden] { display: none; }
.dx-cards-none { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .dx-reset:hover { background: rgba(255, 255, 255, .1); color: #fff; } }
@media (max-width: 1023px) {
  .dx-panel-row { grid-template-columns: 1fr 1fr; }
  .dx-panel-row .dx-input { grid-column: auto; }
  .dx-regions { grid-column: auto; justify-self: stretch; }
}
@media (max-width: 767px) {
  .dx-worlds { grid-template-columns: 1fr 1fr 1fr; }
  .dx-world { min-height: 96px; padding: 12px; }
  .dx-world-text > span { display: none; }
  .dx-world strong { font-size: 15px; }
  .dx-world em { font-size: 11px; padding: 3px 7px; }
  .dx-panel-row { grid-template-columns: 1fr; }
  .dx-panel-foot { flex-wrap: wrap; }
}
.dx-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dx-kind .dx-kind-img { padding: 14px 10px 12px; gap: 5%; }
.dx-kind .dx-kind-img img, .dx-kind .dx-kind-img img.p0, .dx-kind .dx-kind-img img.p1, .dx-kind .dx-kind-img img.p2 { width: auto; max-width: 30%; flex: 0 1 auto; height: 100%; }
@media (max-width: 767px) { .dx-kinds { display: flex; } }
/* 도감 고르기 배경: 미리보기(하위 경로)에서도 보이도록 CSS 상대 경로로 */
/* 도감 타일 배경: 카드 바인더·돋보기 장면 (Codex 3D 렌더, design-gen/tile-dex-*.png, 2026-11-04 사용자 요청 '도감스럽게') */
.dx-world.w-pokemon { --bg: url(../img/tile-dex-pokemon.webp); }
.dx-world.w-onepiece { --bg: url(../img/tile-dex-onepiece.webp); }
.dx-world.w-dragonball { --bg: url(../img/tile-dex-dragonball.webp); }
.cn-card.t-y::before { background-position: 58% 30%; }
/* 종류 카드에 쓸 이미지가 없을 때(예: 프로모) 빈 칸 대신 이름 글자 */
.dx-kind .dx-kind-img.n0::after { content: attr(data-empty); position: absolute; inset: 0; display: grid; place-items: center; color: #d8b552; font-size: clamp(28px, 2.6vw, 40px); font-weight: 900; letter-spacing: .08em; }

/* 도감: 박스 사진이 없는 세트(프로모 등)는 그 세트 카드를 부채꼴로 겹쳐 보여 준다 */
.dx-img .dx-fan { position: absolute; inset: 0; display: block;
  background: radial-gradient(80% 70% at 50% 62%, #fff4cf 0%, rgba(255, 244, 207, 0) 72%); }
.dx-img .dx-fan img { position: absolute; left: 50%; top: 50%; width: auto; height: 74%; padding: 0; aspect-ratio: 63 / 88; object-fit: cover;
  border-radius: 4.5% / 3.2%; background: #eef0f5; box-shadow: 0 8px 16px -6px rgba(15, 30, 69, .38), 0 0 0 1px rgba(15, 30, 69, .06);
  transform: translate(-50%, -50%); transform-origin: 50% 120%; transition: transform 320ms var(--ease-out, cubic-bezier(.22, 1, .36, 1)); }
.dx-img .dx-fan.n2 .f0 { transform: translate(-50%, -50%) rotate(-8deg) translateX(-14%); }
.dx-img .dx-fan.n2 .f1 { transform: translate(-50%, -50%) rotate(8deg) translateX(14%); }
.dx-img .dx-fan.n3 .f0 { z-index: 2; height: 76%; }
.dx-img .dx-fan.n3 .f1 { z-index: 1; transform: translate(-50%, -50%) rotate(-13deg) translateX(-24%); height: 66%; }
.dx-img .dx-fan.n3 .f2 { z-index: 1; transform: translate(-50%, -50%) rotate(13deg) translateX(24%); height: 66%; }
@media (hover: hover) and (pointer: fine) {
  .dx-card:hover .dx-fan.n3 .f1 { transform: translate(-50%, -50%) rotate(-17deg) translateX(-30%); }
  .dx-card:hover .dx-fan.n3 .f2 { transform: translate(-50%, -50%) rotate(17deg) translateX(30%); }
  .dx-card:hover .dx-fan.n2 .f0 { transform: translate(-50%, -50%) rotate(-11deg) translateX(-19%); }
  .dx-card:hover .dx-fan.n2 .f1 { transform: translate(-50%, -50%) rotate(11deg) translateX(19%); }
}
@media (prefers-reduced-motion: reduce) { .dx-img .dx-fan img { transition: none; } }
/* 종류 카드의 프로모 칸: 카드 사진은 세로가 길어 조금 작게, 테두리 그림자 */
.dx-kind .dx-kind-img.is-cards img { height: 92%; border-radius: 5px; aspect-ratio: 63 / 88; object-fit: cover; flex-basis: 24%; width: 24%;
  filter: none; box-shadow: 0 6px 12px -4px rgba(15, 30, 69, .35); }

/* ===== 왼쪽 고정 바로가기 (홈 · 포켓몬카드 · 원피스카드 · 드래곤볼) =====
   본문 옆에 자리가 넉넉하면 항상 펼쳐 두고, 좁으면 왼쪽 가장자리 탭을 눌러 꺼낸다 */
.side-rail { position: fixed; left: 0; top: 50%; z-index: 40; transform: translateY(-50%); display: flex; align-items: center;
  font-family: inherit; -webkit-tap-highlight-color: transparent; }
.rail-list { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 0 18px 18px 0; background: #0f1e45;
  box-shadow: 0 16px 34px -14px rgba(15, 30, 69, .6), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.rail-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 74px; padding: 9px 4px 8px; border-radius: 12px;
  color: #dfe5f5; text-decoration: none; touch-action: manipulation; transition: background-color 160ms ease, color 160ms ease; }
.rail-ico { width: 42px; height: 42px; border-radius: 11px; background: #1c2d5e center / cover no-repeat; box-shadow: 0 0 0 2px rgba(255, 255, 255, .14);
  transition: transform 200ms cubic-bezier(.22, 1, .36, 1), box-shadow 160ms ease; }
.rail-link.r-home .rail-ico { background: #1c2d5e url(../img/rail-home.webp) center / cover no-repeat; }
.rail-link.r-y .rail-ico { background-image: url(../img/rail-pokemon.webp); background-position: center; }
.rail-link.r-s .rail-ico { background-image: url(../img/rail-onepiece.webp); background-position: center; }
.rail-link.r-o .rail-ico { background-image: url(../img/rail-dragonball.webp); background-position: center; }
.rail-label { font-size: 11.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-align: center; word-break: keep-all; }
.rail-link.is-cur, .rail-link.is-home.no-cat { background: #ffc61a; color: #0f1e45; }
.rail-link.is-cur .rail-ico, .rail-link.is-home.no-cat .rail-ico { box-shadow: 0 0 0 2px #0f1e45; }
.rail-link:focus-visible { outline: 3px solid #45bdd6; outline-offset: 2px; }
.rail-link:active .rail-ico { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .rail-link:not(.is-cur):not(.no-cat):hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .rail-link:hover .rail-ico { transform: translateY(-2px); }
}
.rail-toggle { display: none; }
/* 휴대폰 폭: 머리글 아래 카테고리 가로 스크롤과 전체 메뉴가 있으므로 왼쪽 바로가기는 숨긴다(본문 글자를 덮는 문제) */
@media (max-width: 767px) { .side-rail, .rail-toggle { display: none !important; } }

/* 좁은 화면: 탭만 보이고, 누르면 목록이 옆으로 나온다 */
@media (max-width: 1439px), (min-width: 1600px) and (max-width: 1719px) {
  .side-rail { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); transform: none; }
  body.has-cartbar .side-rail { bottom: calc(var(--bar-h, 72px) + env(safe-area-inset-bottom, 0px) + 24px); }
  .rail-toggle { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 7px 12px 6px; border: 0; border-radius: 0 14px 14px 0;
    background: #0f1e45; color: #ffc61a; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; touch-action: manipulation;
    box-shadow: 0 10px 24px -10px rgba(15, 30, 69, .6), inset 0 -3px 0 rgba(0, 0, 0, .2); }
  .rail-toggle-text { writing-mode: vertical-rl; letter-spacing: .08em; }
  .rail-toggle-ico { width: 18px; height: 18px; border-radius: 5px; background: #fff url(../img/favicon-64.png) center / 80% no-repeat; }
  .rail-toggle:focus-visible { outline: 3px solid #45bdd6; outline-offset: 2px; }
  .rail-list { position: absolute; left: 0; bottom: 0; opacity: 0; visibility: hidden; transform: translateX(-16px);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear 220ms; }
  .side-rail.open .rail-list { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1); }
  .side-rail.open .rail-toggle { visibility: hidden; }
}
@media (max-width: 767px) {
  .rail-link { width: 68px; padding: 8px 3px 7px; }
  .rail-ico { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .rail-list, .rail-ico { transition: none !important; } }
@media print { .side-rail { display: none; } }

/* 카테고리 목록: 박스(위) · 낱팩(아래) 섹션 */
.pgrid-secs { display: grid; gap: clamp(28px, 3.4vw, 44px); }
.pgrid-sec[hidden] { display: none; }
.pgrid-sec-head { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 0 0 10px; border-bottom: 2px solid #0f1e45;
  color: #0f1e45; font-size: clamp(17px, 1.5vw, 20px); font-weight: 800; letter-spacing: -.02em; }
.pgrid-sec-head .grid-count { margin-left: 2px; }

/* 바로가기 v3 (2026-11-03): 이모지 대신 카테고리 타일의 3D 그림(번개·보물상자·수정구슬)을 아이콘으로, 홈은 로고 마크 */
.rail-link .rail-ico { display: block; border-radius: 12px; background-color: #1c2d5e; background-repeat: no-repeat; box-shadow: 0 0 0 2px rgba(255, 255, 255, .16), inset 0 -2px 0 rgba(0, 0, 0, .18); }
/* 바로가기 아이콘: Codex 3D 렌더(design-gen/rail-*.png, 2026-11-03) */
.rail-link.r-home .rail-ico { background: #1c2d5e url(../img/rail-home.webp) center / cover no-repeat; box-shadow: 0 0 0 2px rgba(255, 255, 255, .16); }
.rail-link.r-y .rail-ico { background-image: url(../img/rail-pokemon.webp); background-size: cover; background-position: center; }
.rail-link.r-s .rail-ico { background-image: url(../img/rail-onepiece.webp); background-size: cover; background-position: center; }
.rail-link.r-o .rail-ico { background-image: url(../img/rail-dragonball.webp); background-size: cover; background-position: center; }
.rail-link.is-cur .rail-ico, .rail-link.is-home.no-cat .rail-ico { box-shadow: 0 0 0 2px #0f1e45, inset 0 -2px 0 rgba(0, 0, 0, .12); }
.rail-sep { display: block; height: 2px; margin: 6px 10px 2px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.rail-cap { display: block; padding: 4px 0 2px; color: #8e9ac0; font-size: 10.5px; font-weight: 800; text-align: center; letter-spacing: .02em; }
.rail-toggle-ico { width: 18px; height: 18px; border-radius: 5px; background: #fff url(../img/favicon-64.png) center / 80% no-repeat; }

/* 주문서 · 사용할 마일리지 입력 */
.point-use { margin-bottom: 12px; }
.point-use .field > span small { font-weight: 600; color: var(--muted); margin-left: 4px; }
.point-use-row { display: flex; align-items: center; gap: 8px; }
.point-use-row input { flex: 1; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.point-unit { color: #6c5c5f; font-weight: 700; flex: none; }
.point-use-row .btn { flex: none; }
.point-locked { margin-bottom: 12px; }

/* 구성(박스/낱팩) 세부 탭: 카테고리 탭 바로 아래 왼쪽에 */
.shop-filters, body.is-home .shop-filters { flex-direction: column; align-items: flex-start; gap: 10px; }
.type-tabs, body.is-home .type-tabs { justify-content: flex-start; padding-left: 4px; }

/* ===== 홈 도감 띠 (2026-11-03 개편): 세트·카드 수 + 게임별 바로가기 + 최근 세트 표지 부채꼴 + 큰 '도감 열기' ===== */
.top-dex { margin-top: 14px; }
.dex-band { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: clamp(18px, 3vw, 44px); margin: 0 0 clamp(44px, 5vw, 64px); padding: clamp(20px, 2.6vw, 30px) clamp(20px, 2.8vw, 36px); border-radius: 22px; color: #fff; background: linear-gradient(100deg, #0f1e45 0%, #0f1e45 42%, rgba(15, 30, 69, .78) 70%, rgba(15, 30, 69, .62) 100%), #0f1e45 url(../img/hero-v3-1200.webp) right 70% / cover no-repeat; box-shadow: 0 22px 36px -24px rgba(9, 18, 46, .75), inset 0 -4px 0 rgba(0, 0, 0, .18); }
.dex-band::after { content: ''; position: absolute; z-index: -1; right: 18%; top: 50%; width: 320px; height: 320px; transform: translateY(-50%); background: radial-gradient(circle, rgba(255, 198, 26, .32), transparent 62%); pointer-events: none; }
.dex-band-text { min-width: 0; }
.dex-band-text strong { display: block; font-size: clamp(22px, 2.3vw, 30px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; }
.dex-band-text p { margin: 6px 0 0; color: #c8d2ee; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.dex-band-games { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dex-band-games a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .09); color: #fff; font-size: 13.5px; font-weight: 800; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.dex-band-games a b { color: var(--yellow); font-weight: 900; font-variant-numeric: tabular-nums; }
.dex-band-games a:active { background: rgba(255, 255, 255, .2); }
.dex-band-fan { display: flex; align-items: center; padding: 6px 14px 6px 6px; }
.dex-band-fan img { width: 104px; height: 104px; object-fit: contain; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 3px var(--night), 0 0 0 5.5px #fff, 0 16px 26px -14px rgba(0, 0, 0, .7); transform: rotate(var(--r, -7deg)); }
.dex-band-fan img + img { margin-left: -24px; }
.dex-band-fan img:nth-child(2) { --r: 3deg; z-index: 1; }
.dex-band-fan img:nth-child(3) { --r: 10deg; z-index: 2; }
.dex-band-cta { gap: 8px; white-space: nowrap; }
/* 도감 띠 전체가 하나의 링크(2026-11-03 사용자 요청: 버튼을 안 눌러도 섹션 어디를 눌러도 열리게) */
a.dex-band { display: grid; color: #fff; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform 160ms cubic-bezier(.22, 1, .36, 1), box-shadow 160ms ease; }
a.dex-band:focus-visible { outline: 3px solid var(--sky, #45bdd6); outline-offset: 3px; }
a.dex-band:active { transform: translateY(1px); }
a.dex-band:active .dex-band-cta { transform: translateY(1px); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  a.dex-band:hover { transform: translateY(-2px); box-shadow: 0 26px 40px -24px rgba(9, 18, 46, .85), inset 0 -4px 0 rgba(0, 0, 0, .18); }
  a.dex-band:hover .dex-band-cta { background: #ffd23f; }
  a.dex-band:hover .dex-band-fan img { transform: rotate(var(--r, -7deg)) translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) { a.dex-band, a.dex-band .dex-band-fan img { transition: none; } }
.dex-band-cta svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .dex-band-games a:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); }
  .dex-band-cta:hover svg { transform: translateX(3px); }
}
@media (max-width: 1023px) {
  .dex-band-fan img { width: 88px; height: 88px; }
}
@media (max-width: 767px) {
  .dex-band { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'text fan' 'cta cta'; gap: 14px 10px; padding: 20px 18px; background-position: right 60%; }
  .dex-band-text { grid-area: text; }
  .dex-band-fan { grid-area: fan; align-self: start; padding: 4px 12px 0 0; }
  .dex-band-fan img { width: 64px; height: 64px; padding: 5px; border-radius: 12px; }
  .dex-band-fan img + img { margin-left: -20px; }
  .dex-band-fan img:first-child { display: none; }
  .dex-band-cta { grid-area: cta; justify-content: center; width: 100%; }
  .dex-band-games { gap: 6px; }
  .dex-band-games a { min-height: 34px; padding: 0 10px; font-size: 13px; }
  .dex-band::after { display: none; }
}
@media (min-width: 1600px) {
  .dex-band { padding: 34px 44px; }
  .dex-band-fan img { width: 120px; height: 120px; }
}
