/* ───────────── 장식 웹스토어 : 밝은 종이 톤 + 먹색 + 주홍 포인트, 미리보기 무대만 디스코드 어두운 화면 ───────────── */
:root {
  --paper: #f2eee5;
  --paper-2: #e8e2d4;
  --surface: #fbf9f4;
  --white: #ffffff;
  --ink: #15130e;
  --ink-2: #4a453b;
  --ink-3: #857e70;
  --line: #ddd6c7;
  --line-2: #c9c0ad;
  --accent: #d6432a;
  --accent-2: #b8331d;
  --accent-soft: #f7e0d8;
  --ok: #1d7650;
  --ok-soft: #dbece2;
  --bad: #b5341e;
  --bad-soft: #f6ddd6;
  --info: #2c5b86;
  --info-soft: #dde7f1;
  --warn: #9a6a12;
  --warn-soft: #f4e9cf;
  --stage: #111214;
  --stage-2: #1a1b1e;
  --stage-line: #2b2d31;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --f-ui: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-display: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --top-h: 68px;
  --shadow-1: 0 1px 0 rgba(21, 19, 14, .04), 0 1px 2px rgba(21, 19, 14, .06);
  --shadow-2: 0 10px 30px -12px rgba(21, 19, 14, .28), 0 2px 6px rgba(21, 19, 14, .08);
  --shadow-3: 0 30px 80px -20px rgba(21, 19, 14, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
  --hover: rgba(21, 19, 14, .06);
  --focus: rgba(21, 19, 14, .08);
}

/* 어두운 테마 : 같은 종이 톤을 밤 버전으로 (토큰만 바꾸고 컴포넌트는 그대로) */
:root[data-theme="dark"] {
  --paper: #13120e;
  --paper-2: #24211b;
  --surface: #191813;
  --white: #1f1d18;
  --ink: #f1ece1;
  --ink-2: #c8c1b1;
  --ink-3: #908979;
  --line: #2f2c25;
  --line-2: #454136;
  --accent: #e65a3f;
  --accent-2: #f07056;
  --accent-soft: #3b2019;
  --ok: #5cc490;
  --ok-soft: #16301f;
  --bad: #f0806a;
  --bad-soft: #3a1e18;
  --info: #84b4e0;
  --info-soft: #182a3b;
  --warn: #e3b55e;
  --warn-soft: #352a13;
  --shadow-1: 0 1px 0 rgba(0, 0, 0, .2), 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 10px 30px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-3: 0 30px 80px -20px rgba(0, 0, 0, .75);
  --hover: rgba(241, 236, 225, .07);
  --focus: rgba(241, 236, 225, .12);
  color-scheme: dark;
}
:root[data-theme="dark"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f1ece1' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .tag-badge.is-new { background: var(--ink); color: var(--paper); }
html.theme-anim, html.theme-anim * { transition: background-color .25s, border-color .25s, color .25s !important; }
.theme-btn .ic-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ic-sun { display: block; }
:root[data-theme="dark"] .theme-btn .ic-moon { display: none; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ic { width: 18px; height: 18px; flex: none; }
.ic-lg { width: 22px; height: 22px; }
.ic-sm { width: 14px; height: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); letter-spacing: -0.02em; }
.muted { color: var(--ink-3); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* ───────────── 버튼 · 입력 ───────────── */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: var(--r-m);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: none; }
.btn[disabled], .btn.is-busy { opacity: .5; pointer-events: none; }
.btn-accent { --bg: var(--accent); --fg: #fff; --bd: var(--accent); }
.btn-accent:hover { --bg: var(--accent-2); --bd: var(--accent-2); }
.btn-line { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn-line:hover { --bd: var(--ink); background: var(--white); }
.btn-ghost { --bg: transparent; --fg: var(--ink-2); --bd: transparent; }
.btn-ghost:hover { --fg: var(--ink); background: var(--hover); box-shadow: none; }
.btn-danger { --bg: transparent; --fg: var(--bad); --bd: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn-danger:hover { --bg: var(--bad-soft); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; gap: 6px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-m);
  background: var(--white); border: 1px solid var(--line-2); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315130e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
.input.is-big { height: 64px; font-size: 28px; font-family: var(--f-mono); font-weight: 600; letter-spacing: -0.03em; }
.hint { font-size: 13px; color: var(--ink-3); }
.err { font-size: 13px; color: var(--bad); font-weight: 600; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .n { font-family: var(--f-mono); font-size: 12px; opacity: .6; font-weight: 500; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-mute { background: var(--paper-2); color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.eyebrow { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ───────────── 상단 바 ───────────── */
.notice-bar { background: var(--ink); color: var(--paper); font-size: 13px; }
.notice-bar .wrap { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.notice-bar .ic { color: var(--accent); }
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: var(--top-h); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; min-width: 0; }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; flex: none; align-self: center; object-fit: cover; background: var(--paper-2); }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; white-space: nowrap; }
.brand-tag { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 12px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); border-radius: 8px; transition: color .15s; white-space: nowrap; }
.balance, .balance * { white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); }
.nav a.is-on { color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 600;
  transition: border-color .15s, transform .15s;
}
.balance:hover { border-color: var(--ink); transform: translateY(-1px); }
.balance .amt { font-family: var(--f-mono); font-weight: 700; font-size: 15px; letter-spacing: -0.03em; }
.balance .plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); transition: border-color .15s, transform .15s; }
.icon-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.96); }
.badge-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 11px/18px var(--f-mono); text-align: center; }
.me-btn { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); transition: border-color .15s; }
.me-btn:hover { border-color: var(--ink); }
.me-btn img { width: 34px; height: 34px; border-radius: 50%; }
.me-btn b { font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-3); padding: 8px; z-index: 60; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left; text-decoration: none; border-radius: 8px; font-weight: 600; color: var(--ink-2); }
.menu a:hover, .menu button:hover { background: var(--paper); color: var(--ink); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu-head { padding: 10px 12px 12px; }
.menu-head b { display: block; font-size: 15px; }
.menu-head span { font-size: 12px; color: var(--ink-3); font-family: var(--f-mono); }
.rel { position: relative; }
.burger { display: none; }

/* 알림 패널 */
.npanel { width: min(380px, calc(100vw - 32px)); padding: 0; overflow: hidden; }
.npanel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.npanel-head b { white-space: nowrap; }
.menu .npanel-head button { width: auto; flex: none; padding: 6px 10px; gap: 6px; white-space: nowrap; }
.npanel-list { max-height: 420px; overflow: auto; }
.nitem { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.nitem:last-child { border-bottom: 0; }
.nitem.is-new { background: color-mix(in srgb, var(--accent-soft) 45%, var(--white)); }
.nitem b { display: block; font-size: 14px; }
.nitem p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.nitem time { font-size: 11px; color: var(--ink-3); font-family: var(--f-mono); }
.tone-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.tone-success { background: var(--ok-soft); color: var(--ok); }
.tone-danger { background: var(--bad-soft); color: var(--bad); }
.tone-info { background: var(--info-soft); color: var(--info); }

/* ───────────── 히어로 ───────────── */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.12; letter-spacing: -0.045em; margin: 14px 0 18px; word-break: keep-all; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-2); max-width: 34em; margin: 0 0 28px; word-break: keep-all; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.fact { padding: 16px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact b { display: block; font-family: var(--f-mono); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.2; }
.fact span { font-size: 13px; color: var(--ink-3); }

.showcase { position: relative; aspect-ratio: 1 / 1.02; border-radius: 22px; background: var(--stage); overflow: hidden; box-shadow: var(--shadow-3); isolation: isolate; }
.showcase-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; filter: saturate(1.1); transition: opacity .6s; z-index: -1; }
.showcase::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, transparent 0%, rgba(17, 18, 20, .55) 70%, var(--stage) 100%); z-index: -1; }
.showcase-inner { position: absolute; inset: 40px 0 84px; display: grid; place-items: center; }
.showcase-bar { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); color: #f2f3f5; }
.showcase-bar .t { min-width: 0; flex: 1; }
.showcase-bar .t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase-bar .t span { font-size: 12px; color: #b5bac1; font-family: var(--f-mono); }
.showcase-bar .p { font-family: var(--f-mono); font-weight: 700; font-size: 17px; }
.showcase-dots { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; }
.showcase-dots i { width: 22px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.showcase-dots i.is-on::after { content: ""; display: block; height: 100%; background: #fff; animation: fill 3.6s linear forwards; }
.showcase.is-paused .showcase-dots i.is-on::after { animation-play-state: paused; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.showcase-pause { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: #fff; }

/* ───────────── 섹션 공통 ───────────── */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2, .page-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.04em; line-height: 1.15; margin: 6px 0 0; word-break: keep-all; }
.section-head p { margin: 8px 0 0; color: var(--ink-2); }

/* 컬렉션 */
.col-more { margin-top: 18px; display: flex; justify-content: center; }

/* ───────────── 상점 필터 · 그리드 ───────────── */
.shop-tools { position: sticky; top: var(--top-h); z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); padding: 14px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tools-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tools-row + .tools-row { margin-top: 10px; }
.search { position: relative; flex: 1 1 280px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 42px; }
.tools-row .dd { flex: none; width: auto; min-width: 170px; }
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 16px; font-size: 14px; color: var(--ink-2); }
.result-meta b { font-family: var(--f-mono); color: var(--ink); }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.active-filters button { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-size: 13px; font-weight: 600; }
.active-filters button:hover { border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager[hidden] { display: none; }
.pg { min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 600 14px var(--f-mono); cursor: pointer; transition: border-color .15s, background-color .15s; }
.pg:hover:not(:disabled):not(.is-on) { border-color: var(--ink); }
.pg.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); cursor: default; }
.pg:disabled { opacity: .35; cursor: default; }
.pg-gap { min-width: 20px; text-align: center; color: var(--ink-3); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden; text-align: left; padding: 0; text-decoration: none; color: inherit;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card:active { transform: translateY(0); }
.card-stage { position: relative; aspect-ratio: 4 / 3; margin: 8px 8px 0; border-radius: 11px; overflow: hidden; background: var(--stage); isolation: isolate; }
.card-stage .scene { position: absolute; inset: 0; transition: transform .45s var(--ease); }
.card:hover .card-stage .scene { transform: scale(1.025); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.card-cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .02em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name { font-weight: 700; font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; min-height: 2.7em; }
.card-foot { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.price { font-family: var(--f-mono); font-weight: 700; font-size: 18px; letter-spacing: -0.04em; }
.price-old { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.off { font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: var(--accent); }
.swatches { display: flex; gap: 3px; margin-left: auto; }
.swatches i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.tag-type { position: absolute; left: 8px; top: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(17, 18, 20, .72); color: #e3e5e8; font: 600 11px/22px var(--f-mono); backdrop-filter: blur(6px); }
.tag-badge { position: absolute; right: 8px; top: 8px; z-index: 3; height: 22px; padding: 0 8px; border-radius: 6px; font: 700 11px/22px var(--f-mono); background: var(--accent); color: #fff; }
.tag-badge.is-new { background: #f2f3f5; color: var(--ink); }
.card-stage .tag-badge { right: 46px; top: 10px; }
.card-cart { position: absolute; right: 8px; top: 8px; z-index: 4; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transition: transform .15s var(--ease), background-color .15s; }
.card-cart:hover { transform: scale(1.08); background: var(--accent-2); }
.card-cart:active { transform: scale(.94); }
.card-cart.is-on { background: #23a55a; }
.card-cart:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.more-row { display: flex; justify-content: center; margin-top: 28px; }
.empty { padding: 64px 16px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: var(--r-l); }
.empty b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.skel { background: linear-gradient(90deg, var(--paper-2), var(--surface), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ───────────── 미리보기 장면 (카드 · 히어로 · 상세 공용) ───────────── */
.scene { --u: 1cqw; container-type: inline-size; background: radial-gradient(90% 70% at 50% 35%, #26282d 0%, var(--stage) 70%); color: #f2f3f5; overflow: hidden; }
.scene.light { background: radial-gradient(90% 70% at 50% 35%, #ffffff 0%, #e3e5e8 75%); color: #060607; }
.sc-center { position: absolute; inset: 0; display: grid; place-items: center; }
.av { position: relative; display: grid; place-items: center; }
.av > img.face { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #5c5e66; }
.av > img.deco { position: absolute; width: 120%; height: 120%; max-width: none; left: -10%; top: -10%; pointer-events: none; }
.av .status { position: absolute; right: 2%; bottom: 2%; width: 26%; height: 26%; border-radius: 50%; background: #23a55a; box-shadow: 0 0 0 calc(var(--ring, 4px)) var(--ring-c, #111214); }
.sc-deco .av { width: 40cqw; height: 40cqw; }
.sc-deco .av .status { display: none; }
.sc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-profile { position: absolute; left: 50%; top: 3.5cqw; width: 36cqw; aspect-ratio: 900 / 1760; transform: translateX(-50%); border-radius: 2.4cqw; background: #232428; overflow: hidden; box-shadow: 0 1cqw 4cqw rgba(0,0,0,.45); }
.mini-profile .bn { height: 12cqw; background: var(--bn, #5d6b85); background-size: cover; background-position: center; }
.mini-profile .av { position: absolute; left: 2.6cqw; top: 7cqw; width: 11cqw; height: 11cqw; --ring: .7cqw; --ring-c: #232428; }
.mini-profile .av > img.face { box-shadow: 0 0 0 .8cqw #232428; }
.mini-profile .bd { padding: 7.5cqw 2.8cqw 3cqw; display: grid; gap: 1.4cqw; }
.mini-profile .bd b { font-size: 2.8cqw; line-height: 1.2; color: #f2f3f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-profile .bar { height: 1.6cqw; border-radius: 2cqw; background: #2e3035; }
.mini-profile .fx-layer { z-index: 3; }
.mini-profile .bar.w60 { width: 60%; } .mini-profile .bar.w80 { width: 80%; } .mini-profile .bar.w40 { width: 40%; }
.fx-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.plate-list { position: absolute; inset: 0; display: grid; align-content: center; gap: 2.4cqw; padding: 0 7cqw; }
.plate-row { position: relative; display: flex; align-items: center; gap: 3cqw; height: 13cqw; padding: 0 3.5cqw; border-radius: 2.4cqw; overflow: hidden; }
.plate-row.ghost { opacity: .35; }
.plate-row.ghost .av > img.face { background: #3a3c42; }
.plate-row .av { width: 8.4cqw; height: 8.4cqw; --ring: .5cqw; --ring-c: var(--stage); z-index: 2; }
.plate-row .nm { position: relative; z-index: 2; font-weight: 600; font-size: 3.8cqw; color: #f2f3f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.plate-row .bar { height: 2.6cqw; width: 34cqw; border-radius: 2cqw; background: #2b2d31; }
.plate-bg { position: absolute; inset: 0; z-index: 0; }
.plate-bg img, .plate-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-wrap { position: absolute; left: 50%; top: 7cqw; width: 34cqw; transform: translateX(-50%); }
.frame-card { position: relative; aspect-ratio: 1200 / 2240; border-radius: 2.4cqw; background: #232428; }
.frame-card .clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.frame-card .bn { height: 11.5cqw; background: var(--bn, #5d6b85); background-size: cover; background-position: center; }
.frame-card .av { position: absolute; left: 2.4cqw; top: 6.6cqw; width: 10.5cqw; aspect-ratio: 1; --ring: .7cqw; --ring-c: #232428; }
.frame-card .av > img.face { box-shadow: 0 0 0 .8cqw #232428; }
.frame-card .lines { position: absolute; left: 2.6cqw; right: 2.6cqw; top: 20cqw; display: grid; gap: 1.6cqw; }
.frame-card .lines i { display: block; height: 1.6cqw; border-radius: 2cqw; background: #2e3035; }
.frame-layer { position: absolute; max-width: none; pointer-events: none; }
.scene-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 10%; font-family: var(--f-display); font-weight: 800; font-size: 7cqw; line-height: 1.2; color: #e3e5e8; background: linear-gradient(135deg, #2a2c31, #151619); }

/* ───────────── 상세 (모달) ───────────── */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(21, 19, 14, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 48px); background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-3); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); animation: rise .28s var(--ease); }
@keyframes rise { from { transform: translateY(14px); opacity: .4; } }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 6; }
.stage-pane { position: relative; background: var(--stage); min-height: 640px; display: flex; flex-direction: column; overflow: hidden; }
.stage-pane.light { background: #e3e5e8; }
.stage-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.stage-pane.light .stage-bg { opacity: .18; }
.stage-tools { position: relative; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: #b5bac1; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.seg button.is-on { background: rgba(255,255,255,.16); color: #fff; }
.stage-pane.light .seg { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.08); }
.stage-pane.light .seg button { color: #4e5058; }
.stage-pane.light .seg button.is-on { background: #fff; color: #060607; }
.stage-btn { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #e3e5e8; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: background-color .15s, transform .15s; }
.stage-btn:hover { background: rgba(255,255,255,.14); }
.stage-btn:active { transform: scale(.97); }
.stage-pane.light .stage-btn { border-color: rgba(0,0,0,.12); background: rgba(255,255,255,.6); color: #313338; }
.stage-main { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: start; gap: 28px; padding: 18px 24px 24px; }
.stage-main.is-solo { grid-template-columns: auto; }
.outfit { position: relative; z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 14px; }
.outfit .lbl { font: 600 11px/28px var(--f-mono); color: #949ba4; margin-right: 4px; }
.outfit button { height: 28px; padding: 0 8px 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #dbdee1; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.outfit button:hover { background: rgba(255,255,255,.14); }
.stage-pane.light .outfit button { color: #313338; border-color: rgba(0,0,0,.12); background: rgba(255,255,255,.7); }

/* 디스코드 프로필 팝아웃 */
.dc { --dc-bg: #232428; --dc-card: #2b2d31; --dc-ink: #f2f3f5; --dc-sub: #b5bac1; --dc-bar: #35373c; font-family: "gg sans", var(--f-ui); }
.light .dc { --dc-bg: #ffffff; --dc-card: #f2f3f5; --dc-ink: #060607; --dc-sub: #4e5058; --dc-bar: #e3e5e8; }
.dc-profile { position: relative; width: 280px; aspect-ratio: 1200 / 2240; border-radius: 10px; background: var(--dc-bg); box-shadow: 0 8px 28px rgba(0,0,0,.38); }
.dc-clip { position: relative; border-radius: inherit; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.dc-banner { position: relative; z-index: 2; flex: none; height: 104px; background: var(--bn, #5d6b85); background-size: cover; background-position: center; }
.dc-avatar { position: absolute; left: 14px; top: 60px; width: 84px; height: 84px; --ring: 5px; --ring-c: var(--dc-bg); z-index: 3; }
.dc-avatar > img.face { box-shadow: 0 0 0 6px var(--dc-bg); }
.dc-body { position: relative; z-index: 2; padding: 52px 16px 12px; color: var(--dc-ink); flex: 1; }
.dc-roles { display: flex; gap: 6px; flex-wrap: wrap; }
.dc-roles span { width: 58px; height: 20px; border-radius: 5px; background: var(--dc-bar); }
.dc-roles span:nth-child(2) { width: 44px; } .dc-roles span:nth-child(3) { width: 70px; }
.dc-msg { position: relative; z-index: 2; margin: 0 12px 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--dc-bar); font-size: 12px; color: var(--dc-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.dc-user { font-size: 13px; color: var(--dc-sub); margin-top: 2px; }
.dc-box { margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--dc-card); display: grid; gap: 8px; }
.dc-box i { display: block; height: 8px; border-radius: 4px; background: var(--dc-bar); }
.dc-box i:nth-child(2) { width: 70%; } .dc-box i:nth-child(3) { width: 45%; }
.dc-box .h { width: 34%; height: 9px; background: color-mix(in srgb, var(--dc-sub) 45%, transparent); }
.dc-fx { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 4; }
.dc-frame-back { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 2; }
.dc-clip > .dc-banner { z-index: 1; }
.dc-clip > .dc-body, .dc-clip > .dc-msg { z-index: 3; }
.dc-frame-front { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.dc-members { width: 240px; border-radius: 10px; background: color-mix(in srgb, var(--dc-bg) 92%, transparent); padding: 14px 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); color: var(--dc-ink); }
.dc-members h5 { margin: 0 8px 8px; font-size: 11px; letter-spacing: .04em; color: var(--dc-sub); font-weight: 700; }
.dc-row { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border-radius: 6px; overflow: hidden; margin-bottom: 2px; }
.dc-row .av { width: 32px; height: 32px; --ring: 3px; --ring-c: var(--dc-bg); z-index: 2; }
.dc-row .av > img.face { background: #5c5e66; }
.dc-row .nm { position: relative; z-index: 2; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-row.ghost { opacity: .45; }
.dc-row.ghost .nm { width: 110px; height: 10px; border-radius: 5px; background: var(--dc-bar); }
.dc-row .plate-bg img, .dc-row .plate-bg video { border-radius: 6px; }
.stage-loading { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 6; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.stage-loading .spin { width: 12px; height: 12px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

.info-pane { overflow: auto; padding: 32px 32px 28px; display: flex; flex-direction: column; gap: 22px; }
.info-cat { display: flex; align-items: center; gap: 10px; }
.info-cat img { height: 26px; max-width: 120px; object-fit: contain; }
.info-pane h2 { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.18; margin: 4px 0 0; word-break: keep-all; }
.info-desc { margin: 0; color: var(--ink-2); word-break: keep-all; }
.price-block { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-block .price { font-size: 34px; line-height: 1; }
.price-block .price-old { font-size: 15px; }
.price-block .off { font-size: 15px; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-size: 13px; font-weight: 600; transition: border-color .15s, transform .15s; }
.variant:hover { border-color: var(--ink); transform: translateY(-1px); }
.variant.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.variant i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.parts { display: grid; gap: 8px; }
.part { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.part .thumb { position: relative; width: 56px; height: 56px; border-radius: 9px; overflow: hidden; background: var(--stage); }
.part .thumb .scene { position: absolute; inset: 0; }
.part b { display: block; font-size: 14px; line-height: 1.3; }
.part span { font-size: 12px; color: var(--ink-3); }
.part .mono { font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.buy-box { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-l); background: var(--white); border: 1px solid var(--line); }
.buy-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-2); }
.buy-line b { font-family: var(--f-mono); color: var(--ink); }
.buy-line.total b { font-size: 18px; }
.buy-line .bad { color: var(--bad); }
details.more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary .ic { transform: rotate(180deg); }
details.more > div { display: grid; gap: 10px; margin-top: 10px; }
.mini-reviews { display: grid; gap: 10px; }

/* ───────────── 페이지 공통 ───────────── */
.page { padding: clamp(28px, 4vw, 56px) 0 80px; min-height: calc(100vh - var(--top-h) - 120px); }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-head p { margin: 8px 0 0; color: var(--ink-2); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin: 0 0 14px; font-size: 17px; letter-spacing: -0.02em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { position: relative; height: 42px; padding: 0 14px; border: 0; background: none; font-weight: 650; color: var(--ink-3); }
.tabs button.is-on { color: var(--ink); }
.tabs button.is-on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ink); }

/* 충전 단계 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; counter-reset: step; }
.step { position: relative; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); }
.step .n { font-family: var(--f-mono); font-size: 12px; }
.step b { display: block; font-size: 14px; margin-top: 2px; color: inherit; }
.step.is-on { border-color: var(--ink); background: var(--white); color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.step.is-done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: color-mix(in srgb, var(--ok-soft) 50%, var(--white)); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--f-mono); font-weight: 600; font-size: 14px; transition: border-color .15s, transform .15s; }
.quick button:hover { border-color: var(--ink); transform: translateY(-1px); }
.quick button:active { transform: scale(.97); }
.slip { position: relative; border-radius: 18px; background: var(--ink); color: var(--paper); padding: 26px; overflow: hidden; }
.slip::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(242, 238, 229, .12); }
.slip-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(242, 238, 229, .18); }
.slip-row:last-child { border-bottom: 0; }
.slip-row span { font-size: 13px; color: rgba(242, 238, 229, .6); }
.slip-row b { font-family: var(--f-mono); font-size: 17px; letter-spacing: -0.03em; text-align: right; }
.slip-row.big b { font-size: clamp(20px, 2.6vw, 28px); }
.copy { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 8px; border-radius: 8px; border: 1px solid rgba(242, 238, 229, .2); background: rgba(242, 238, 229, .06); color: var(--paper); vertical-align: middle; transition: background-color .15s; }
.copy:hover { background: rgba(242, 238, 229, .16); }
.timer { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.timer.is-low { background: var(--bad-soft); color: var(--bad); }
.verified { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); }
.verified b { color: var(--ink); }
.otp-input { width: 220px; max-width: 100%; height: 68px; padding: 0 0 0 .55em; text-align: center; font: 700 34px var(--f-mono); letter-spacing: .55em; border-radius: 14px; border: 1px solid var(--line-2); background: var(--white); outline: none; }
.otp-input::placeholder { color: var(--line-2); }
.otp-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,19,14,.08); }
.drop { display: grid; place-items: center; gap: 8px; min-height: 200px; padding: 24px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--surface); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.is-over { border-color: var(--ink); background: var(--white); }
.drop img { max-height: 280px; border-radius: 10px; box-shadow: var(--shadow-2); }
.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tl-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); color: var(--ink-3); }
.timeline li.is-done .tl-ico { background: var(--ok-soft); color: var(--ok); }
.timeline li.is-now .tl-ico { background: var(--ink); color: var(--paper); }
.timeline li.is-bad .tl-ico { background: var(--bad-soft); color: var(--bad); }
.timeline b { display: block; font-size: 15px; }
.timeline span { font-size: 13px; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-family: var(--f-mono); letter-spacing: -0.02em; }
.wallet-card { border-radius: 18px; padding: 22px; background: var(--white); border: 1px solid var(--line); }
.wallet-card .big { font-family: var(--f-mono); font-size: 34px; font-weight: 700; letter-spacing: -0.05em; line-height: 1.1; margin: 4px 0 14px; }
.list { display: grid; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row .sub { font-size: 12px; color: var(--ink-3); font-family: var(--f-mono); }
.row .amt { font-family: var(--f-mono); font-weight: 700; text-align: right; }
.row .amt.plus { color: var(--ok); }
.row .amt.minus { color: var(--ink); }

/* 주문 */
.orders { display: grid; gap: 12px; }
.order { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); }
.order .thumb { position: relative; width: 96px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--stage); }
.order .thumb .scene { position: absolute; inset: 0; }
.order h4 { margin: 4px 0 2px; font-size: 16px; }
.order .sub { font-size: 13px; color: var(--ink-3); }
.order .right { display: grid; justify-items: end; gap: 8px; }
/* ── 주문 내역 (.oc : 장바구니의 .order 와 따로) ── */
.ostats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--white); }
.ostat { display: grid; gap: 6px; padding: 16px 20px; min-width: 0; }
.ostat + .ostat { border-left: 1px solid var(--line); }
.ostat span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.ostat b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ostat b small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.otabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.olist { display: grid; gap: 28px; margin-top: 18px; }
.oday { display: grid; gap: 10px; }
.oday-head { display: flex; align-items: center; gap: 12px; margin: 0 0 2px; font: 600 12.5px var(--f-mono); color: var(--ink-3); letter-spacing: .02em; }
.oday-head i { flex: 1; height: 1px; background: var(--line); }
.oday-head small { font-size: 12px; font-family: var(--f-ui); }

.oc { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; column-gap: 18px; align-items: center; padding: 14px 18px 14px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); transition: border-color .15s; }
.oc:hover { border-color: var(--line-2); }
.oc-thumb-link { display: block; border-radius: 12px; }
.oc-thumb { position: relative; width: 88px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--stage); }
.oc-thumb .scene { position: absolute; inset: 0; }
.oc-thumb-link:hover .oc-thumb { outline: 2px solid var(--line-2); outline-offset: 2px; }
.oc-main { min-width: 0; display: grid; gap: 4px; }
.oc-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); min-width: 0; }
.oc-meta .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-type { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-weight: 700; font-size: 11.5px; }
.oc-name { margin: 2px 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-side { display: grid; justify-items: end; gap: 4px; align-self: start; padding-top: 4px; }
.oc-price { font-size: 17px; font-weight: 800; white-space: nowrap; }
.oc-time { font-size: 12px; color: var(--ink-3); }

/* 진행 단계 : 세 칸 막대 + 이름 */
.oc-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: 6px; }
.oc-track li { display: grid; gap: 6px; font-size: 12px; color: var(--ink-3); min-width: 0; }
.oc-track li i { height: 4px; border-radius: 4px; background: var(--paper-2); }
.oc-track li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-track li.done i { background: var(--ink-3); }
.oc-track li.done span { color: var(--ink-2); }
.oc-track li.now i { background: var(--accent); }
.oc-track li.now span { color: var(--ink); font-weight: 800; }
.is-gifted .oc-track li i { background: var(--ok); }
.is-gifted .oc-track li.now span { color: var(--ok); }
.oc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.oc-status.is-bad { color: var(--bad); }

.oc-foot { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.oc-gift { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: var(--r-m); background: var(--ok-soft); }
.oc-gift-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ok); color: var(--white); }
.oc-gift-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.oc-gift-txt b { font-size: 12px; color: var(--ok); }
.oc-gift-txt span { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-gift .icon-btn { flex: none; width: 32px; height: 32px; }
.oc-gift .btn { flex: none; }
.oc-note { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.oc-note .ic { flex: none; }
.oc-note em { font-style: normal; color: var(--ink-2); }
.oc-review { margin-left: auto; }
.oc-reviewed { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.oc.is-cancelled { background: var(--surface); }
.oc.is-cancelled .oc-thumb { filter: grayscale(1); opacity: .55; }
.oc.is-cancelled .oc-name { color: var(--ink-2); }
.oc.is-cancelled .oc-price { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.oc.is-gone .oc-thumb { opacity: .5; }

@media (max-width: 640px) {
  .ostats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ostat { padding: 12px 12px; }
  .ostat b { font-size: 17px; }
  .otabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 8px; padding: 0 var(--gutter); }
  .otabs::-webkit-scrollbar { display: none; }
  .otabs .chip { flex: none; }
  .oc { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; row-gap: 10px; padding: 12px; align-items: start; }
  .oc-thumb { width: 64px; }
  .oc-side { grid-column: 2; grid-row: 2; grid-auto-flow: column; justify-content: space-between; align-items: baseline; padding-top: 0; }
  .oc-foot { grid-column: 1 / -1; margin-top: 2px; }
  .oc-gift { flex-basis: 100%; }
  .oc-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.progress { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.progress i { width: 18px; height: 2px; background: var(--line-2); }
.progress .on { color: var(--ink); font-weight: 700; }

/* 후기 */
.review-top { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); margin-bottom: 24px; }
.score { font-family: var(--f-display); font-size: 72px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 16px; }
.dist { display: grid; gap: 6px; }
.dist div { display: grid; grid-template-columns: 34px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; font-family: var(--f-mono); color: var(--ink-2); }
.dist .bar { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.dist .bar i { display: block; height: 100%; background: var(--ink); }
.reviews { columns: 3 300px; column-gap: 16px; }
.review { break-inside: avoid; margin-bottom: 16px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); }
.review p { margin: 10px 0 14px; white-space: pre-wrap; word-break: break-word; }
.review-foot { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.review-foot img { width: 26px; height: 26px; border-radius: 50%; }
.review-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--paper); padding: 3px 8px; border-radius: 6px; }
.star-pick { display: flex; gap: 6px; }
.star-pick button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--white); font-size: 22px; color: var(--line-2); transition: transform .15s, color .15s, border-color .15s; }
.star-pick button.is-on { color: var(--accent); border-color: var(--accent); }
.star-pick button:hover { transform: translateY(-1px); }

/* 일반 모달 */
.modal { width: min(520px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-3); animation: rise .25s var(--ease); position: relative; }
.modal h3 { font-family: var(--f-display); font-size: 26px; letter-spacing: -0.03em; margin: 0 0 6px; }
.modal .lead { color: var(--ink-2); margin: 0 0 18px; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.stack { display: grid; gap: 14px; }

/* 토스트 (오른쪽 위) */
.toasts { position: fixed; top: calc(var(--top-h) + 12px); right: 16px; z-index: 120; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: grid; grid-template-columns: 36px 1fr 28px; gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-3); animation: slidein .35s var(--ease); }
.toast.is-out { animation: slideout .3s ease forwards; }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } }
@keyframes slideout { to { transform: translateX(24px); opacity: 0; } }
.toast .tone-ico { width: 36px; height: 36px; }
.toast b { display: block; font-size: 15px; }
.toast p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); word-break: keep-all; }
.toast .x { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--ink-3); }
.toast .x:hover { background: var(--paper); color: var(--ink); }
.toast.tone-success-t { border-left: 4px solid var(--ok); }
.toast.tone-danger-t { border-left: 4px solid var(--bad); }
.toast.tone-info-t { border-left: 4px solid var(--info); }

/* 점검 · 로그인 안내 */
.blocker { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.blocker h2 { font-family: var(--f-display); font-size: 36px; letter-spacing: -0.04em; margin: 12px 0; }
.blocker p { color: var(--ink-2); max-width: 30em; margin: 0 auto 24px; }

/* 푸터 */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 13px; color: var(--ink-3); }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer b { font-family: var(--f-display); font-size: 18px; color: var(--ink); margin-right: 10px; }
.footer a { color: var(--ink-2); }

/* ───────────── 반응형 ───────────── */
@media (max-width: 1240px) {
  .brand-tag { display: none; }
  .topbar .wrap { gap: 16px; }
  .nav a { padding: 8px 9px; }
}
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet { grid-template-columns: 1fr; overflow: auto; }
  .stage-pane { min-height: 560px; }
  .info-pane { overflow: visible; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .showcase { max-width: 560px; width: 100%; justify-self: center; }
  .split { grid-template-columns: 1fr; }
  .nav { display: none; }
  .burger { display: grid; }
  .nav.is-open { display: grid; position: fixed; inset: var(--top-h) 0 0; background: var(--paper); padding: 16px var(--gutter); gap: 4px; align-content: start; z-index: 50; }
  .nav.is-open a { font-size: 22px; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav.is-open a::after { display: none; }
  .reviews { columns: 2 260px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --top-h: 60px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pg { min-width: 36px; height: 36px; padding: 0 8px; }
  .brand-tag { display: none; }
  .me-btn b { display: none; }
  .me-btn { padding: 3px; }
  .balance { padding-left: 10px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact { padding-right: 12px; margin-right: 12px; }
  .stage-main { grid-template-columns: 1fr; justify-items: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .order { grid-template-columns: 72px minmax(0, 1fr); }
  .order .thumb { width: 72px; }
  .order .right { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .card-name { font-size: 14.5px; }
  .price { font-size: 16px; }
  .info-pane { padding: 24px 18px; }
  .overlay { padding: 0; align-items: end; }
  .sheet { max-height: 94vh; border-radius: 20px 20px 0 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .tools-row .dd { flex: 1 1 140px; min-width: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}
.top-right > *, .burger { flex: none; }
.brand { flex: 0 1 auto; overflow: hidden; }
@media (max-width: 760px) {
  .showcase { aspect-ratio: 4 / 5; }
  .showcase-inner { inset: 36px 0 78px; }
  #showcase-stage > .dc:nth-child(2) { display: none; }
  .topbar .wrap { gap: 8px; }
  .top-right { gap: 6px; }
}
@media (max-width: 760px) {
  .shop-tools { position: static; padding: 10px 0; }
  #type-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  #type-chips::-webkit-scrollbar { display: none; }
  #type-chips .chip { flex: none; }
  .tools-row .search { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .balance .muted { display: none; }
  .balance { gap: 6px; padding-left: 10px; }
  .brand-name { font-size: 19px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .balance .amt { font-size: 13px; }
  .dc, .dc-profile { width: 270px; }
  .reviews { columns: 1; }
  .otp input { width: 48px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ── 장바구니 ── */
.cart-btn { position: relative; }
.cart-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cart-actions .btn { flex: 1 1 auto; }
.cart-actions.is-split { display: grid; grid-template-columns: 1fr 1fr; }
.qty { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--white); }
.qty-btn { width: 34px; height: 100%; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.qty-btn:hover:not(:disabled) { background: var(--hover); }
.qty-btn:disabled { opacity: .35; cursor: default; }
.qty-input { width: 40px; height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; color: var(--ink); text-align: center; font: 700 14px var(--f-mono); -moz-appearance: textfield; appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; background: var(--hover); }
.qty-sm { height: 30px; border-radius: 7px; }
.qty-sm .qty-btn { width: 28px; }
.qty-sm .qty-input { width: 34px; font-size: 13px; }
.cart-row-actions { display: flex; align-items: center; gap: 6px; }
.order .right .unit { font-size: 12px; color: var(--ink-3); }
.cart-actions.is-split .btn { min-width: 0; padding-left: 10px; padding-right: 10px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.cart-side { position: sticky; top: 88px; }
.order.is-gone { opacity: .6; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-side { position: static; }
}

/* ───────────── 드롭다운 (dropdown.js) : 기본 select 목록 대신 ───────────── */
.dd { position: relative; display: block; min-width: 0; }
.dd > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dd-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 46px; padding: 0 12px 0 14px;
  border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--white); color: var(--ink);
  font-weight: 600; font-size: 14.5px; text-align: left; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.dd-btn:hover { border-color: var(--ink-3); }
.dd-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.dd-btn:disabled { opacity: .5; cursor: not-allowed; }
.dd-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-count { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dd-chev { flex: none; width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); }
.dd.is-open .dd-btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.dd.is-open .dd-chev { transform: rotate(180deg); color: var(--accent); }
/* 기본값이 아닌 것을 골랐을 때 : 필터가 걸려 있다는 표시 */
.dd.is-set .dd-btn { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); background: var(--accent-soft); color: var(--accent-2); }
.dd.is-set .dd-chev { color: var(--accent); }
.dd.is-set .dd-count { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-2); }

.dd-panel {
  position: fixed; z-index: 1000; display: flex; flex-direction: column; max-height: var(--room, 360px);
  padding: 6px; border-radius: 14px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 18px 48px -12px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .08); color: var(--ink);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top center;
  transition: opacity .14s ease, transform .16s var(--ease); outline: none;
}
.dd-panel.is-up { transform: translateY(4px) scale(.98); transform-origin: bottom center; }
.dd-panel.is-in { opacity: 1; transform: none; }
.dd-search { position: relative; display: block; flex: none; margin: 0 0 6px; }
.dd-search input {
  width: 100%; height: 38px; padding: 0 12px 0 36px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-size: 14px; outline: none;
}
.dd-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.dd-search-ic { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.dd-list { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; display: grid; gap: 1px; }
.dd-list::-webkit-scrollbar { width: 8px; }
.dd-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 2px solid var(--white); }
.dd-opt {
  display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 10px 7px 8px; border-radius: 8px;
  font-size: 14.5px; line-height: 1.35; cursor: pointer; user-select: none;
}
.dd-opt.is-active { background: var(--hover); }
.dd-check { flex: none; width: 16px; height: 16px; color: var(--accent); opacity: 0; }
.dd-opt.is-on { color: var(--accent-2); font-weight: 700; }
.dd-opt.is-on .dd-check { opacity: 1; }
.dd-opt.is-on.is-active { background: var(--accent-soft); }
.dd-opt.is-disabled { opacity: .45; cursor: not-allowed; }
.dd-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dd-n { flex: none; min-width: 28px; padding: 1px 7px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); font-size: 12px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.dd-opt.is-on .dd-n { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-2); }
.dd-empty { padding: 18px 10px; text-align: center; color: var(--ink-3); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .dd-panel, .dd-chev { transition: none; } }
