/* ───────────── 장식 웹스토어 : 밝은 종이 톤 + 먹색 + 주홍 포인트, 미리보기 무대만 디스코드 어두운 화면 ───────────── */
: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: "Wanted Sans Variable", "Wanted Sans", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-display: var(--f-ui);
  --f-num: var(--f-ui);
  --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); }
/* 가상 요소도 함께 : 헤더 배경(.topbar::before)만 즉시 바뀌고 글자색은 천천히 바뀌면 사이트 이름이 잠깐 배경에 묻혀 깜빡인다 */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { 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-num); font-variant-numeric: tabular-nums; 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-discord { --bg: #5865f2; --fg: #fff; --bd: #5865f2; }
.btn-discord:hover { --bg: #4752c4; --bd: #4752c4; }
.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-num); font-variant-numeric: tabular-nums; 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-num); font-variant-numeric: tabular-nums; 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-ui); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; 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; border-bottom: 1px solid var(--line); }
/* 흐림 배경은 가상 요소에 : 헤더 자체에 backdrop-filter 를 걸면 헤더가 안쪽 position:fixed 요소의 기준 상자가 되어
   모바일 메뉴가 60px 헤더 안에 갇혀 찌그러진다 */
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.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: 750; font-size: 20px; letter-spacing: -0.035em; white-space: nowrap; }
.brand-tag:empty, #foot-tag:empty { display: none; }
.brand-tag { font-family: var(--f-ui); font-size: 12px; color: var(--ink-3); letter-spacing: -0.01em; 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-num); font-variant-numeric: tabular-nums; 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-num); font-variant-numeric: tabular-nums; 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 { position: relative; padding: 10px 12px 12px; }
.menu-head .theme-btn { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); }
.menu-head > b, .menu-head > span { padding-right: 40px; }
.menu-head .theme-btn:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.menu-head b { display: block; font-size: 15px; }
.menu-head span { font-size: 12px; color: var(--ink-3); font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.rel { position: relative; }
.burger { display: none; }
/* 모바일 메뉴 전용 조각 : 데스크톱 가로 메뉴에서는 숨김 */
.nav-ic, .nav-go, .nav .nav-extra { 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-num); font-variant-numeric: tabular-nums; }
.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: 750; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.14; letter-spacing: -0.05em; 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-num); font-variant-numeric: tabular-nums; 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-num); font-variant-numeric: tabular-nums; }
.showcase-bar .p { font-family: var(--f-num); font-variant-numeric: tabular-nums; 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: 700; 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; }

/* ───────────── 상점 : 쇼윈도 + 장식 목록 ─────────────
   그림(컬렉션 원화 · 장식 미리보기)이 색을 맡고, 화면 틀은 종이 · 먹 두 가지 색만 씀 */

/* 쇼윈도 : 최신 컬렉션 원화 위에 내 아바타가 장식을 바꿔 입음 */
.sw { position: relative; isolation: isolate; overflow: hidden; background: #0d0e10; color: #fff; }
.sw-skel { height: clamp(440px, 58vh, 600px); border-radius: 0; }
.sw-art { position: absolute; inset: 0; z-index: -2; }
.sw-art-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 30%; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 6s var(--ease); }
.sw-art-img.is-in { opacity: 1; transform: none; }
.sw-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, .82) 0%, rgba(8, 9, 11, .45) 42%, rgba(8, 9, 11, .1) 70%, rgba(8, 9, 11, .35) 100%),
    linear-gradient(0deg, rgba(8, 9, 11, .9) 0%, rgba(8, 9, 11, 0) 38%); }
.sw-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; min-height: clamp(380px, 50vh, 520px); padding-top: 40px; padding-bottom: 32px; }
.sw-copy { max-width: 460px; }
.sw-copy.is-in > * { animation: swUp .6s var(--ease) both; }
.sw-copy.is-in > :nth-child(3) { animation-delay: .08s; }
.sw-copy.is-in > :nth-child(4) { animation-delay: .14s; }
@keyframes swUp { from { opacity: 0; transform: translateY(10px); } }
.sw-logo { display: block; width: auto; max-width: min(420px, 100%); max-height: 150px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .5)); }
.sw-title { margin: 0; font-size: clamp(34px, 4.6vw, 56px); font-weight: 850; line-height: 1.08; letter-spacing: -0.045em; word-break: keep-all; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.sw-meta { margin: 18px 0 22px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.sw-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: #fff; color: #0d0e10; font-size: 15.5px; font-weight: 750; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s; }
.sw-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); }
.sw-btn:active { transform: scale(.97); }
.sw-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* 입어 보기 : 큰 아바타 + 장식, 아래에 지금 입은 장식 이름 · 가격 */
.sw-try { position: relative; display: grid; justify-items: center; gap: 18px; padding: 8px; text-decoration: none; color: #fff; border-radius: 24px; }
.sw-try:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.sw-av { position: relative; width: clamp(180px, 19vw, 248px); aspect-ratio: 1; }
.sw-av .face { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #5c5e66; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 30px 80px -10px rgba(0, 0, 0, .7); transition: box-shadow .2s; }
.sw-av .deco { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; max-width: none; pointer-events: none; }
.sw-av .deco:not([src]) { visibility: hidden; }
.sw-av .deco.is-in { animation: swWear .45s var(--ease); }
@keyframes swWear { from { opacity: 0; transform: scale(1.08); } }
.sw-try:hover .sw-av .face { box-shadow: 0 0 0 6px rgba(255, 255, 255, .16), 0 30px 80px -10px rgba(0, 0, 0, .7); }
.sw-ticks { display: flex; gap: 4px; height: 3px; }
.sw-ticks i { width: 14px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .24); transition: background-color .3s, width .3s var(--ease); }
.sw-ticks i.is-on { width: 26px; background: #fff; }
.sw-try-cap { display: grid; justify-items: center; gap: 2px; max-width: 280px; text-align: center; }
.sw-try-name { font-size: 15px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.sw-try-price { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }

/* 컬렉션 고르기 : 배너 그림만 */
.sw-picks-wrap { position: relative; padding-bottom: 28px; }
.sw-picks { display: flex; gap: 10px; }
.sw-pick { position: relative; flex: 0 1 200px; min-width: 0; aspect-ratio: 1000 / 240; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #1b1c20; cursor: pointer; opacity: .55; transition: opacity .2s, transform .2s var(--ease); }
.sw-pick img { width: 100%; height: 100%; object-fit: cover; }
.sw-pick::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.sw-pick:hover { opacity: .9; }
.sw-pick[aria-pressed="true"] { opacity: 1; }
.sw-pick[aria-pressed="true"]::after { box-shadow: inset 0 0 0 2px #fff; }
.sw-pick:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* 종류 탭 + 찾기 · 정렬 (스크롤해도 위에 붙어 있음) */
.shop.section { padding-top: 0; }
.shop-tools { position: sticky; top: var(--top-h); z-index: 20; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; padding: 0; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.st-tabs { display: flex; gap: 4px; margin-right: auto; }
.st-tab { position: relative; display: inline-flex; align-items: flex-start; gap: 3px; height: 64px; padding: 21px 10px 0; border: 0; background: none; color: var(--ink-3); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; cursor: pointer; transition: color .15s; }
.st-tab sup { font-size: 11px; font-weight: 600; line-height: 1; margin-top: 2px; font-variant-numeric: tabular-nums; opacity: .8; }
.st-tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.st-tab:hover { color: var(--ink); }
.st-tab.is-on { color: var(--ink); }
.st-tab.is-on::after { transform: scaleX(1); }
.st-tab:focus-visible { outline-offset: -4px; }
.st-tools { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.search { position: relative; flex: 1 1 280px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 40px; }
.st-tools .search { flex: 0 1 240px; }
.st-tools .input, .st-tools .dd-btn { height: 40px; border-radius: 999px; border-color: var(--line); background: transparent; font-size: 14px; }
.st-tools .input:focus { border-color: var(--ink-3); box-shadow: none; }
.st-tools .dd { flex: none; width: auto; min-width: 0; max-width: 190px; }
.st-tools .dd-btn { padding: 0 12px 0 16px; font-weight: 650; }
.st-tools .dd-btn:hover { border-color: var(--ink-3); }
.st-tools .dd-count { display: none; }
.st-tools .dd.is-open .dd-btn, .st-tools .dd-btn:focus-visible { border-color: var(--ink); box-shadow: none; }
.st-tools .dd.is-open .dd-chev { color: var(--ink); }
.st-tools .dd.is-set .dd-btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.st-tools .dd.is-set .dd-chev { color: var(--paper); }

.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; min-height: 28px; font-size: 13.5px; color: var(--ink-3); }
.result-meta b { color: var(--ink-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.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 12px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 650; cursor: pointer; }
.active-filters button:hover { opacity: .85; }

/* 장식 타일 : 상자 없이 그림 + 이름 한 줄 + 가격 */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 0; text-align: left; text-decoration: none; color: inherit; background: none; border: 0; border-radius: 16px; }
.card:focus-visible { outline: none; }
.card-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--stage); isolation: isolate; transition: box-shadow .25s var(--ease); }
.card-stage::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); pointer-events: none; transition: box-shadow .2s; }
.card:hover .card-stage { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
.card:focus-visible .card-stage::after { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ink); }
.card-stage .scene { position: absolute; inset: 0; transition: transform .5s var(--ease); }
.card:hover .card-stage .scene { transform: scale(1.04); }
.card-body { display: grid; gap: 3px; padding: 0 2px; }
.card-name { font-weight: 600; font-size: 14.5px; line-height: 1.4; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: keep-all; }
.card-foot { display: flex; align-items: baseline; gap: 8px; }
.price { font-weight: 750; font-size: 16px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-old { font-size: 13px; color: var(--ink-3); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.off { font-size: 13px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.swatches { display: flex; gap: 3px; margin-left: auto; align-self: center; }
.swatches i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.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-ui); backdrop-filter: blur(6px); }
.tag-badge { position: absolute; right: 8px; top: 8px; z-index: 3; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 22px; letter-spacing: .02em; background: var(--accent); color: #fff; }
.card-stage .tag-badge { left: 10px; right: auto; top: 10px; background: #fff; color: #0d0e10; }
/* NEW 는 거의 모든 장식에 붙을 수 있어 눈에 덜 띄게 (어두운 유리) */
:root[data-theme="dark"] .card-stage .tag-badge.is-new, .card-stage .tag-badge.is-new { height: 20px; padding: 0 7px; font-size: 10px; line-height: 20px; letter-spacing: .06em; background: rgba(10, 11, 13, .5); color: rgba(255, 255, 255, .88); backdrop-filter: blur(6px); }
/* 장바구니 버튼 : 평소엔 숨기고 마우스를 올리거나 담았을 때만 (터치 화면은 항상) */
.card-cart { position: absolute; right: 10px; bottom: 10px; z-index: 6; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #0d0e10; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .18s, transform .2s var(--ease), background-color .15s; }
.card:hover .card-cart, .card:focus-visible .card-cart, .card-cart:focus-visible, .card-cart.is-on { opacity: 1; transform: none; }
.card .card-cart:hover { background: #fff; transform: scale(1.06); }
.card .card-cart:active { transform: scale(.92); }
.card-cart.is-on { background: #23a55a; color: #fff; }
.card .card-cart.is-on:hover { background: #1f9150; }
.card-cart:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: none) { .card-cart { opacity: 1; transform: none; width: 34px; height: 34px; } }

.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 56px; flex-wrap: wrap; }
.pager[hidden] { display: none; }
.pg { min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font: 650 14px var(--f-ui); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s, color .15s; }
.pg:hover:not(:disabled):not(.is-on) { background: var(--hover); color: var(--ink); }
.pg.is-on { background: var(--ink); color: var(--paper); cursor: default; }
.pg:disabled { opacity: .3; cursor: default; }
.pg-gap { min-width: 20px; text-align: center; color: var(--ink-3); }
.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-num); font-variant-numeric: tabular-nums; 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: 700; 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 { color: var(--accent); }
.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-num); font-variant-numeric: tabular-nums; 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-num); font-variant-numeric: tabular-nums; 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-num); font-variant-numeric: tabular-nums; 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); }
/* 입금 계좌 카드는 테마와 상관없이 항상 어두운 카드로 고정 (다크모드에서 --ink/--paper 가 뒤바뀌어 글씨가 안 보이던 문제) */
.slip { position: relative; border-radius: 18px; background: #15130e; color: #f2eee5; padding: 26px; overflow: hidden; border: 1px solid transparent; }
:root[data-theme="dark"] .slip { background: #1f1c16; border-color: rgba(242, 238, 229, .14); }
.slip::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(242, 238, 229, .12); pointer-events: none; }
.slip-row { position: relative; z-index: 1; 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-num); font-variant-numeric: tabular-nums; 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: #f2eee5; vertical-align: middle; transition: background-color .15s; cursor: pointer; }
.copy:hover { background: rgba(242, 238, 229, .16); }
.timer { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-num); font-variant-numeric: tabular-nums; 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-num); font-variant-numeric: tabular-nums; 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-num); font-variant-numeric: tabular-nums; 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-num); font-variant-numeric: tabular-nums; 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-num); font-variant-numeric: tabular-nums; }
.row .amt { font-family: var(--f-num); font-variant-numeric: tabular-nums; 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-num); font-variant-numeric: tabular-nums; 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; }

/* 후기 : 디스코드 후기 채널처럼 읽히는 메시지 피드 (왼쪽 요약은 따라 내려옴) */
.stars { display: inline-flex; gap: 1px; color: var(--line-2); font-size: 15px; line-height: 1; }
.stars i { font-style: normal; }
.stars i.on { color: var(--accent); }
.rv-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 760px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rv-intro { position: sticky; top: calc(var(--top-h) + 32px); }
.rv-side { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.rv-score { display: flex; align-items: center; gap: 18px; }
.rv-avg { font-family: var(--f-display); font-size: 76px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.05em; line-height: .85; }
.rv-score > div { display: grid; gap: 8px; }
.rv-stars-lg { font-size: 20px; gap: 2px; }
.rv-count { font-size: 13px; color: var(--ink-3); }
.rv-dist { display: grid; gap: 12px; margin-top: 10px; }
.rv-dist-track { position: relative; padding: 6px 0; }
.rv-dist-bar { display: flex; gap: 3px; height: 8px; }
.rv-dist-bar i { position: relative; min-width: 6px; border-radius: 2px; cursor: pointer; outline: none; transform-origin: center; transition: transform .28s var(--ease), opacity .2s, filter .2s, box-shadow .2s; }
.rv-dist-bar i:first-child { border-radius: 99px 2px 2px 99px; }
.rv-dist-bar i:last-child { border-radius: 2px 99px 99px 2px; }
.rv-dist-bar i:only-child { border-radius: 99px; }
.rv-dist-track.is-hover .rv-dist-bar i { opacity: .35; }
.rv-dist-track.is-hover .rv-dist-bar i.is-on { opacity: 1; transform: scaleY(1.9); filter: brightness(1.12); box-shadow: 0 0 14px -2px var(--c); }
.rv-dist-bar i:focus-visible { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.rv-dist-tip { position: absolute; bottom: calc(100% + 4px); left: 0; transform: translate(-50%, 6px); padding: 5px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 12.5px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .18s, transform .25s var(--ease), left .25s var(--ease); }
.rv-dist-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--ink); }
.rv-dist-track.is-hover .rv-dist-tip { opacity: 1; transform: translate(-50%, 0); }
.rv-dist-legend li { transition: opacity .2s, color .2s; }
.rv-dist:has(.is-hover) .rv-dist-legend li:not(.is-on) { opacity: .35; }
.rv-dist-legend li.is-on { color: var(--ink); }
.rv-dist-bar i, .rv-dist-legend i { background: var(--c); }
.rv-dist .s5 { --c: var(--accent); }
.rv-dist .s4 { --c: color-mix(in srgb, var(--accent) 60%, var(--paper-2)); }
.rv-dist .s3 { --c: var(--ink-3); }
.rv-dist .s2 { --c: var(--line-2); }
.rv-dist .s1 { --c: var(--ink); }
.rv-dist-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); }
.rv-dist-legend li { display: inline-flex; align-items: center; gap: 6px; }
.rv-dist-legend i { width: 8px; height: 8px; border-radius: 50%; }
.rv-dist-legend b { font-variant-numeric: tabular-nums; color: var(--ink); }
.rv-dist-legend li.is-zero { opacity: .45; }
.rv-side-note { display: flex; align-items: center; gap: 7px; margin: -12px 0 0; font-size: 12.5px; color: var(--ink-3); }

.rv-compose { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 10px 16px 10px 10px; border: 0; border-radius: 12px; background: var(--paper-2); color: var(--ink-3); font: inherit; font-size: 14.5px; text-align: left; cursor: text; transition: background-color .15s, color .15s; }
.rv-compose:hover { color: var(--ink-2); background: color-mix(in srgb, var(--paper-2) 80%, var(--ink) 6%); }
.rv-compose:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rv-compose > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-compose-av { width: 30px; height: 30px; flex: none; }

.rv-tools { display: flex; justify-content: flex-end; margin: 20px 0 8px; }
.rv-tools .dd { width: 168px; }
.rv-feed { display: grid; }
.rv { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 18px 14px 20px; margin: 0 -14px; border-radius: 12px; transition: background-color .15s; }
.rv + .rv { margin-top: 2px; }
.rv:hover { background: var(--hover); }
.rv-av { width: 52px; height: 52px; margin-top: 4px; }
.rv-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.rv-name { font-size: 15.5px; color: var(--ink); }
.rv-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ok); }
.rv-time { font-size: 12.5px; color: var(--ink-3); }
.rv-stars { margin-top: 6px; font-size: 13px; }
.rv-text { margin: 8px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; max-width: 62ch; }
.rv-embed { --bar: var(--accent); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; max-width: 440px; margin-top: 14px; padding: 12px 12px 12px 16px; border-radius: 4px 12px 12px 4px; border-left: 4px solid var(--bar); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; }
a.rv-embed:hover .rv-embed-go { color: var(--ink); }
a.rv-embed:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rv-embed-text { display: grid; gap: 4px; min-width: 0; }
.rv-embed-kind { font-size: 12px; color: var(--ink-3); }
.rv-embed-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-embed-go { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); transition: color .15s; }
.rv-embed-thumb { position: relative; width: 112px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--stage); }
.rv-embed-thumb .scene { position: absolute; inset: 0; }
.rv-more { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: color .15s; }
.rv-more:hover { color: var(--ink); }
.rv-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rv-pop { width: min(520px, 100%); }
.rv-pop-review { padding-right: 36px; }
.rv-pop-review .rv-text { font-size: 15px; max-height: 30vh; overflow: auto; }
.rv-pop-title { margin: 20px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.rv-pop-list { display: grid; gap: 10px; max-height: 52vh; overflow: auto; margin: 0 -4px; padding: 0 4px 4px; }
.rv-pop-list .rv-embed { max-width: none; margin-top: 0; }
.rv-pop-list .rv-embed:first-child { margin-top: 10px; }
.rv-empty { padding: 56px 8px; color: var(--ink-2); }
.rv-empty b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.mini-reviews .rv { margin: 0; padding: 14px 12px; }
.mini-reviews .rv-embed, .mini-reviews .rv-more { display: none; }
.rv-rotate { display: grid; gap: 0; overflow: hidden; }
.rv-rotate > .rv { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .45s ease, transform .45s ease; }
.rv-rotate > .rv.is-on { opacity: 1; transform: none; pointer-events: auto; }
.rv-rotate > .rv.is-out { opacity: 0; transform: translateY(-14px); }
@media (prefers-reduced-motion: reduce) { .rv-rotate > .rv, .rv-rotate > .rv.is-out { transform: none; } }
.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-weight: 700; font-size: 24px; 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 .toast-act { margin-top: 10px; display: inline-flex; gap: 6px; }
.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-weight: 700; font-size: 34px; 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-weight: 700; font-size: 17px; letter-spacing: -0.03em; color: var(--ink); margin-right: 10px; }
.footer a { color: var(--ink-2); }
.footer .foot-discord { color: inherit; text-decoration: none; }
.footer .foot-discord:hover { color: var(--ink); text-decoration: underline; }

/* ───────────── 반응형 ───────────── */
@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) {
  .rv-layout { grid-template-columns: 1fr; gap: 28px; }
  .rv-intro { position: static; }
  .rv-side { margin-top: 24px; grid-template-columns: auto 1fr; align-items: center; }
  .rv-side .btn, .rv-side-note { grid-column: 1 / -1; }
  .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; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* 모바일 메뉴 : 헤더 바로 아래로 내려오는 패널 + 뒤쪽 어둡게 */
  .nav.is-open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    max-height: calc(100vh - var(--top-h) - 12px); max-height: calc(100dvh - var(--top-h) - 12px);
    overflow-y: auto; overscroll-behavior: contain;
    padding: 10px calc(var(--gutter) - 6px) 14px;
    background: var(--paper); border-bottom: 1px solid var(--line); border-radius: 0 0 22px 22px;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .35);
    animation: navDown .24s var(--ease);
  }
  .nav.is-open a {
    display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 10px;
    font-size: 17px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink);
    border-radius: 14px; -webkit-tap-highlight-color: transparent;
  }
  .nav.is-open a[hidden] { display: none; }
  .nav.is-open a::after { display: none; }
  .nav.is-open a:active { background: var(--hover); }
  .nav.is-open a.is-on { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
  .nav.is-open .nav-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--paper-2); color: var(--ink-2); flex: none; }
  .nav.is-open a.is-on .nav-ic { background: var(--ink); color: var(--paper); }
  .nav.is-open .nav-go { display: block; margin-left: auto; color: var(--ink-3); }
  .nav.is-open .nav-extra {
    min-height: 48px; margin-top: 8px; padding-top: 2px; gap: 10px;
    border-top: 1px solid var(--line); border-radius: 0; font-size: 14px; font-weight: 600; color: var(--ink-2);
  }
  .nav.is-open .nav-extra:active { background: none; color: var(--ink); }
  .topbar.nav-open::before { background: var(--paper); }
  .topbar.nav-open::after {
    content: ""; position: fixed; inset: 0; z-index: -2;
    background: rgba(10, 9, 7, .45); animation: fade .2s ease;
  }
  .icon-btn.burger[aria-expanded="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
}
@keyframes navDown { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 760px) {
  :root { --top-h: 60px; }
  .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; }
  .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; }
  .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; }
  /* 계정 메뉴 · 알림 패널 : 버튼 기준으로 붙이면 폰 화면 왼쪽 밖으로 잘림 → 헤더 아래 화면 폭에 맞춰 펼침 */
  .top-right .rel { position: static; }
  .top-right .menu {
    top: calc(100% + 8px); left: 10px; right: 10px; width: auto; min-width: 0;
    animation: navDown .2s var(--ease);
  }
  .top-right .menu:not(.npanel) {
    max-height: calc(100vh - var(--top-h) - 24px); max-height: calc(100dvh - var(--top-h) - 24px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .top-right .menu a, .top-right .menu button { min-height: 44px; }
  .top-right .menu .theme-btn, .top-right .npanel-head button { min-height: 0; }
  .npanel-list { max-height: min(420px, calc(100dvh - var(--top-h) - 110px)); overscroll-behavior: contain; }
}
/* 터치 화면 : 누른 뒤 hover 상태가 남아 버튼이 떠 있는 것처럼 보이는 현상 방지 */
@media (hover: none) {
  .icon-btn:hover, .balance:hover { transform: none; border-color: var(--line); }
  .me-btn:hover { border-color: var(--line); }
  .icon-btn, .balance, .me-btn, .burger { -webkit-tap-highlight-color: transparent; }
}
@media (max-width: 480px) {
  .rv-side { grid-template-columns: 1fr; }
  .rv { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .rv-av { width: 40px; height: 40px; }
  .rv-embed-thumb { width: 84px; }
  .balance .muted { display: none; }
  .balance { gap: 6px; padding-left: 10px; }
  .brand-name { font-size: 19px; }
}
/* 좁은 폰 (갤럭시 360px · 아이폰 SE/미니 375px) : 로그인 상태 헤더 버튼이 378px 를 넘어서
   로고가 찌그러지고 프로필이 햄버거 밑에 깔리던 문제 → 버튼 · 간격을 한 단계 줄임 */
@media (max-width: 420px) {
  .topbar .wrap { gap: 6px; }
  .top-right { gap: 4px; }
  .brand-icon { width: 32px; height: 32px; }
  .topbar .icon-btn { width: 36px; height: 36px; }
  .me-btn img { width: 30px; height: 30px; }
  .balance { height: 36px; padding: 0 4px 0 10px; }
  .balance .plus { width: 24px; height: 24px; }
  .topbar .btn-sm { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 350px) {
  :root { --gutter: 12px; }
  .balance { padding-right: 10px; }
  .balance .plus { display: none; }
  .login-long { display: none; }
}
@media (max-width: 420px) {
  .balance .amt { font-size: 13px; }
  .dc, .dc-profile { width: 270px; }
  .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-num); font-variant-numeric: tabular-nums; -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; } }

/* ───────────── 상점 반응형 ───────────── */
@media (max-width: 1240px) {
  .shop-tools { gap: 0 16px; }
  .st-tools { flex: 1 1 100%; padding-top: 0; }
  .st-tools .search { flex: 1 1 240px; }
}
@media (max-width: 1180px) { .grid { gap: 32px 16px; } }
@media (max-width: 960px) {
  .sw-inner { gap: 20px; }
  .sw-av { width: clamp(150px, 26vw, 200px); }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .sw-inner { grid-template-columns: 1fr; justify-items: start; min-height: 0; padding-top: 28px; padding-bottom: 20px; gap: 24px; }
  .sw-shade { background: linear-gradient(0deg, rgba(8, 9, 11, .92) 0%, rgba(8, 9, 11, .55) 55%, rgba(8, 9, 11, .25) 100%); }
  .sw-try { order: -1; justify-self: center; }
  .sw-av { width: 168px; }
  .sw-logo { max-height: 96px; max-width: 260px; }
  .sw-meta { margin: 12px 0 16px; }
  .sw-picks { overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
  .sw-picks::-webkit-scrollbar { display: none; }
  .sw-pick { flex: 0 0 150px; }
  .shop-tools { position: static; background: none; backdrop-filter: none; }
  .st-tabs { margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 10px); overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; }
  .st-tabs::-webkit-scrollbar { display: none; }
  .st-tab { flex: none; height: 54px; padding-top: 16px; font-size: 15px; }
  .st-tools { flex-wrap: wrap; padding: 12px 0; }
  .st-tools .search { flex: 1 1 100%; }
  .st-tools .dd { flex: 1 1 0; max-width: none; }
  .card-name { font-size: 14px; }
  .price { font-size: 15px; }
}
@media (max-width: 420px) {
  .grid { gap: 22px 10px; }
  .card-stage { border-radius: 12px; }
}
@media (max-width: 400px) {
  .brand-name { display: none; }
}

/* ───────────── 주문 내역 : 결제 한 번 = 카드 하나 (함께 산 장식은 겹쳐 쌓기) · 주문 상세 팝업 ───────────── */
.oc { position: relative; }
.oc:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
/* 카드 전체가 '주문 상세' 버튼. 안의 링크 · 버튼만 그 위에서 따로 눌림 */
.oc-open { position: absolute; inset: 0; z-index: 0; width: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.oc-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.oc > :not(.oc-open) { position: relative; z-index: 1; pointer-events: none; }
.oc .oc-foot a, .oc .oc-foot button { pointer-events: auto; }
.oc-foot-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oc-foot-r .oc-review, .oc-foot-r .oc-reviewed { margin-left: 0; }

.oc-stack { position: relative; width: 88px; aspect-ratio: 1; }
.oc-stack .oc-thumb { position: absolute; left: 0; bottom: 0; z-index: calc(3 - var(--i)); box-shadow: 0 0 0 2px var(--white);
  transform-origin: 30% 100%; transition: transform .28s var(--ease), filter .28s; }
.oc-stack.n2 .oc-thumb, .oc-stack.n3 .oc-thumb { width: 74px;
  transform: translate(calc(var(--i) * 6px), calc(var(--i) * -5px)) rotate(calc(var(--i) * 6deg));
  filter: brightness(calc(1 - var(--i) * .18)); }
.oc.is-multi:hover .oc-stack .oc-thumb { transform: translate(calc(var(--i) * 9px), calc(var(--i) * -6px)) rotate(calc(var(--i) * 10deg)); }
.oc-count { position: absolute; z-index: 5; right: -6px; bottom: -6px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--white); }
.oc.is-cancelled .oc-stack .oc-thumb { filter: grayscale(1); opacity: .55; }

/* 함께 산 장식 중 몇 개에 선물 링크가 왔는지 */
.oc-prog { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.oc-prog b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.oc-prog.is-done b { color: var(--ok); }
.oc-prog-bar { display: inline-flex; gap: 3px; flex: none; }
.oc-prog-bar i { width: 14px; height: 6px; border-radius: 3px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.oc-prog-bar i.on { background: var(--ok); box-shadow: none; }

/* 주문 상세 */
.modal.od-modal { width: min(660px, 100%); }
.od-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.od-lead-st { padding: 2px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; font-weight: 700; }
.od-lead-st.is-done { background: var(--ok-soft); color: var(--ok); }
.od-list { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--white); overflow: hidden; }
.od-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; }
.od-item + .od-item { border-top: 1px solid var(--line); }
.od-thumb-link { display: block; border-radius: 10px; align-self: start; }
.od-thumb { position: relative; width: 72px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--stage); }
.od-thumb .scene { position: absolute; inset: 0; }
.od-thumb-link:hover .od-thumb { outline: 2px solid var(--line-2); outline-offset: 2px; }
.od-main { min-width: 0; display: grid; gap: 10px; align-content: start; }
.od-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.od-title { min-width: 0; display: grid; gap: 4px; }
.od-name { font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-price { font-size: 15px; font-weight: 800; white-space: nowrap; padding-top: 2px; }
.od-gift { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 6px 6px 8px; border-radius: var(--r-m); background: var(--ok-soft); }
.od-gift-ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ok); color: var(--white); }
.od-link { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.od-link:hover { color: var(--ink); text-decoration: underline; }
.od-gift .icon-btn { flex: none; width: 32px; height: 32px; }
.od-gift .btn { flex: none; }
.od-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; border-radius: var(--r-m); background: var(--surface); border: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-3); }
.od-state b { font-weight: 800; color: var(--ink); }
.od-state.is-wait b { color: var(--warn); }
.od-pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 0 color-mix(in srgb, var(--warn) 50%, transparent); animation: od-pulse 1.8s ease-out infinite; }
@keyframes od-pulse { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.od-state.is-bad { border: 0; background: var(--bad-soft); }
.od-state.is-bad b, .od-state.is-bad .ic { color: var(--bad); }
.od-item.is-cancelled .od-thumb { filter: grayscale(1); opacity: .55; }
.od-item.is-cancelled .od-name { color: var(--ink-2); }
.od-item.is-cancelled .od-price { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.od-sum { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; padding: 0 4px; font-size: 14px; color: var(--ink-2); }
.od-sum > span { margin-right: auto; font-weight: 600; }
.od-sum small { font-size: 12.5px; color: var(--ink-3); }
.od-sum b { font-size: 21px; font-weight: 800; color: var(--ink); }
.od-modal .actions { align-items: center; }

@media (max-width: 640px) {
  .oc-stack { width: 64px; }
  .oc-stack .oc-thumb { width: 64px; }
  .oc-stack.n2 .oc-thumb, .oc-stack.n3 .oc-thumb { width: 54px; }
  .oc-foot-r { margin-left: 0; width: 100%; justify-content: flex-end; }
}
@media (max-width: 520px) {
  .od-item { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .od-thumb { width: 56px; }
  .od-gift { flex-wrap: wrap; }
  .od-link { flex-basis: calc(100% - 44px); }
  .od-gift .btn { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .oc-stack .oc-thumb { transition: none; }
  .od-pulse { animation: none; }
}

/* ───────────── 쇼윈도 '새로 나온 장식' : 컬렉션 원화가 없는 새 장식 (공급처가 컬렉션 정보를 주지 않음) ─────────────
   새 번들의 공식 일러스트(장식 · 테두리 · 이름표가 모인 그림)를 가운데에 겹쳐 놓고, 왼쪽 글 · 오른쪽 아바타는 그대로 */
.sw-fresh {
  background:
    radial-gradient(48% 70% at 58% 46%, rgba(255, 255, 255, .075), transparent 72%),
    radial-gradient(36% 55% at 92% 105%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    #0d0e10;
}
.sw-fresh-b { position: absolute; left: 54%; top: 47%; width: min(50vw, 720px); max-width: none; aspect-ratio: 2 / 1; object-fit: contain;
  transform: translate(calc(-50% + var(--dx, 0%)), calc(-50% + var(--dy, 0%))) rotate(var(--r, 0deg)) scale(var(--s, 1));
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .6)); }
.sw-fresh-b:nth-child(1) { z-index: 3; }
.sw-fresh-b:nth-child(2) { --dx: -24%; --dy: -26%; --r: -7deg; --s: .62; z-index: 2; opacity: .5; }
.sw-fresh-b:nth-child(3) { --dx: 27%; --dy: 30%; --r: 6deg; --s: .56; z-index: 1; opacity: .4; }
/* 번들이 없을 때 : 새 아바타 장식을 흩어 놓음 */
.sw-fresh.is-decos { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 3vw 4vw; padding: 0 22% 0 34%; }
.sw-fresh-d { width: clamp(78px, 8vw, 124px); max-width: none; aspect-ratio: 1; opacity: .5; transform: rotate(calc((var(--i) - 3) * 5deg)); }

/* 아래 컬렉션 고르기 : '새로 나온 장식' 버튼은 원화 배너 대신 새 장식을 나란히 */
.sw-pick.is-new { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 10px; background: linear-gradient(90deg, #1e1f24, #2a2b31); }
.sw-pick-t { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }
.sw-pick-t b { padding: 2px 6px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.sw-pick-d { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 2px; overflow: hidden; }
.sw-pick.is-new .sw-pick-d img { width: auto; height: 80%; aspect-ratio: 1; object-fit: contain; }

@media (max-width: 960px) {
  .sw-fresh-b { left: 50%; width: min(78vw, 640px); }
}
@media (max-width: 760px) {
  .sw-fresh-b { top: 30%; width: 120vw; opacity: .55; }
  .sw-fresh-b:nth-child(1) { opacity: .7; }
  .sw-fresh.is-decos { padding: 0 6%; align-content: flex-start; padding-top: 8%; }
}

/* ── 주문 내역 표 (관리자 '주문 관리' 와 같은 짜임) ── */
.olist:has(.otbl-wrap) { gap: 0; }
.otbl-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); overflow-x: auto; }
table.otbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.otbl th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3); padding: 11px 12px; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.otbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.otbl tr:last-child td { border-bottom: 0; }
.otbl th:first-child, .otbl td:first-child { padding-left: 18px; }
.otbl th:last-child, .otbl td:last-child { padding-right: 14px; }
.otbl th.num, .otbl td.num { text-align: right; white-space: nowrap; }
.otr { cursor: pointer; transition: background-color .1s; }
.otr:hover td { background: var(--hover); }
.otr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.o-no { white-space: nowrap; }
.o-id { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.o-sm { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }
.o-item { width: 100%; min-width: 220px; }
.o-item-in { display: flex; align-items: center; gap: 12px; min-width: 0; }
.o-thumb { position: relative; flex: none; width: 52px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--stage); }
.o-thumb .scene { position: absolute; inset: 0; }
.o-item-txt { min-width: 0; }
.o-title { display: block; max-width: 340px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-amt b { font-weight: 700; }
.o-meter { min-width: 140px; }
.om { display: grid; gap: 6px; }
.om-bar { display: flex; gap: 2px; height: 6px; max-width: 140px; }
.om-bar i { flex: 1 1 0; min-width: 4px; max-width: 26px; border-radius: 3px; background: var(--line-2); }
.om-bar .s-ok { background: var(--ok); }
.om-bar .s-info { background: var(--info); }
.om-bar .s-wait { background: color-mix(in srgb, var(--warn) 70%, var(--white)); }
.om-bar .s-off { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.om-txt { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.om-txt b { color: var(--ink); font-weight: 700; }
.o-st { white-space: nowrap; }
.o-acts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.o-acts .icon-btn { width: 30px; height: 30px; }
.otr .og-go { display: grid; place-items: center; width: 22px; height: 30px; color: var(--ink-3); transition: transform .15s, color .15s; }
.otr:hover .og-go { color: var(--ink); transform: translateX(2px); }
.otr.is-cancelled .o-title { text-decoration: line-through; text-decoration-color: var(--line-2); color: var(--ink-2); }
.otr.is-cancelled .o-thumb { filter: grayscale(1); opacity: .55; }
.otr.is-cancelled .o-amt b { color: var(--ink-3); }

@media (max-width: 760px) {
  .otbl thead { display: none; }
  .otbl, .otbl tbody { display: block; }
  .otr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px; border-bottom: 1px solid var(--line); }
  .otr:last-child { border-bottom: 0; }
  .otbl td, .otbl td:first-child, .otbl td:last-child { display: block; padding: 0; border: 0; min-width: 0; }
  .otr:hover td { background: none; }
  .o-item { grid-column: 1 / -1; grid-row: 1; }
  .o-title { max-width: none; }
  .o-no { grid-column: 1; grid-row: 2; }
  .o-amt { grid-column: 2; grid-row: 2; }
  .o-meter { grid-column: 1; grid-row: 3; align-self: center; }
  .o-st { grid-column: 2; grid-row: 3; justify-self: end; }
  .o-go { grid-column: 1 / -1; grid-row: 4; }
  .o-go .o-acts:has(> :only-child) { display: none; }
  .o-go .og-go { display: none; }
}
