:root {
  --bg: #0a0d14;
  --bg2: #0f1420;
  --panel: #141a28;
  --panel2: #1a2133;
  --line: #262f45;
  --text: #e8e4d8;
  --muted: #8f97aa;
  --gold: #c8aa6e;
  --gold2: #f0e6d2;
  --hex: #0ac8b9;
  --ok: #3ccf91;
  --warn: #f0b04a;
  --bad: #ff6b78;
  --r-common: #a4b8aa;
  --r-uncommon: #41b4b8;
  --r-rare: #c58ab5;
  --r-epic: #d0915c;
  --r-showcase: #e0c35a;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scrollbar-color: #2b3550 transparent; }
body {
  margin: 0; color: var(--text); font: 14px/1.5 "Noto Sans KR", system-ui, "Malgun Gothic", sans-serif;
  background: radial-gradient(1200px 600px at 50% -200px, #1b2440 0%, transparent 70%), var(--bg);
  min-height: 100vh;
}
img { display: block; }
button { font: inherit; color: inherit; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input[type=number] { width: 84px; }
input[type=number]::-webkit-inner-spin-button { opacity: .4; }
[hidden] { display: none !important; }

/* ---------- 헤더 ---------- */
header {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
  background: rgba(10, 13, 20, .82); border-bottom: 1px solid var(--line);
}
.hbar { max-width: 1400px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; color: var(--gold2); white-space: nowrap; }
.logo { cursor: pointer; }
.logo img { height: 84px; width: auto; display: block; filter: drop-shadow(0 2px 10px rgba(150, 90, 255, .25)); }
nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
nav button {
  background: none; border: 0; padding: 8px 14px; border-radius: 8px; color: var(--muted); cursor: pointer; position: relative;
}
nav button:hover { color: var(--text); }
nav button.on { color: var(--gold2); background: linear-gradient(180deg, transparent, rgba(200, 170, 110, .12)); box-shadow: inset 0 -2px var(--gold); }
.count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700;
}
.cart-btn {
  background: linear-gradient(180deg, #2a2213, #1a150b); border: 1px solid var(--gold); color: var(--gold2);
  border-radius: 10px; padding: 7px 14px; cursor: pointer; font-weight: 600;
}

main { max-width: 1400px; margin: 0 auto; padding: 18px 16px 80px; }

/* ---------- 공통 ---------- */
.btn {
  border: 1px solid var(--line); background: var(--panel2); border-radius: 8px; padding: 8px 14px; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--gold); }
.btn.gold { background: linear-gradient(180deg, #d9bd7f, #a8874a); border-color: #e2c98f; color: #1a1408; font-weight: 700; }
.btn.gold:hover { filter: brightness(1.08); }
.btn.hex { background: linear-gradient(180deg, #0fa89c, #0a7a72); border-color: #2bd8c9; color: #fff; font-weight: 600; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
h2.title { font-size: 20px; margin: 0 0 4px; color: var(--gold2); letter-spacing: .02em; }
.sub { color: var(--muted); margin: 0 0 16px; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.price { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
td.thumb img { width: 34px; border-radius: 4px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; border: 1px solid currentColor; }
.s-pending { color: var(--warn); } .s-accepted { color: var(--hex); } .s-completed { color: var(--ok); }
.s-rejected, .s-cancelled, .s-returned { color: var(--bad); }

/* ---------- 필터 바 ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .search { flex: 1; min-width: 200px; }
.search { position: relative; display: flex; align-items: center; }
.search input { width: 100%; padding-left: 34px; padding-right: 32px; }
.search .s-ico { position: absolute; left: 11px; color: var(--muted); display: grid; pointer-events: none; }
.search:focus-within .s-ico { color: var(--gold); }
.search .s-clear {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; padding: 0;
  border-radius: 50%; border: 0; cursor: pointer; background: var(--panel2); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.search .s-clear svg { display: block; }
.search .s-clear:hover { background: var(--gold); color: #1a1408; }
.search .s-clear[hidden] { display: none; }
.dom-toggle { display: flex; gap: 4px; }
.dom-toggle button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); padding: 5px; cursor: pointer; opacity: .45;
}
.dom-toggle button.on { opacity: 1; border-color: var(--gold); box-shadow: 0 0 10px rgba(200, 170, 110, .4); }
.dom-toggle img { width: 100%; height: 100%; }
.chk { display: flex; gap: 6px; align-items: center; color: var(--muted); cursor: pointer; user-select: none; }

/* ---------- 상점 그리드 ---------- */
.hero {
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 18px;
  background: linear-gradient(110deg, rgba(10, 200, 185, .1), transparent 40%), linear-gradient(290deg, rgba(200, 170, 110, .15), transparent 50%), var(--panel);
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.hero h2 { margin: 0; font-size: 24px; color: var(--gold2); }
.hero p { margin: 4px 0 0; color: var(--muted); }
.hero .stat { text-align: center; padding: 0 14px; border-left: 1px solid var(--line); }
.hero .stat b { display: block; font-size: 22px; color: var(--gold); }
.hero .stat span { font-size: 12px; color: var(--muted); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }

.tile {
  --rc: var(--r-common);
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s; display: flex; flex-direction: column;
}
.tile[data-r=uncommon] { --rc: var(--r-uncommon); }
.tile[data-r=rare] { --rc: var(--r-rare); }
.tile[data-r=epic] { --rc: var(--r-epic); }
.tile[data-r=showcase] { --rc: var(--r-showcase); }
.tile:hover { transform: translateY(-4px); border-color: var(--rc); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--rc) 60%, transparent); }
.tile .art { position: relative; aspect-ratio: 744 / 1039; background: #05070c; cursor: pointer; overflow: hidden; }
.tile .art img { width: 100%; height: 100%; object-fit: contain; }
.tile[data-r=showcase] .art::after, .tile[data-foil] .art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 240, 200, .35) 45%, transparent 60%);
  background-size: 250% 100%; animation: shine 4s ease-in-out infinite;
}
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.tile .info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tile .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }
.tile .meta img { width: 16px; height: 16px; }
.tile .bottom { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 6px; }
.tile .left { font-size: 12px; color: var(--muted); }
.tile .left.few { color: var(--warn); }
.tile .price { font-size: 17px; }
.tile.soldout .art img { filter: grayscale(1) brightness(.5); }
.tile.soldout .art::before {
  content: "SOLD OUT"; position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  font-weight: 900; letter-spacing: .2em; color: var(--bad); font-size: 18px;
}
.rar-pip { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 6px var(--rc); }
.tile .quick {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; opacity: 0; transform: translateY(6px); transition: .18s;
}
.tile:hover .quick { opacity: 1; transform: none; }

/* 컬렉션 타일 */
.tile.coll .art img { transition: filter .2s; }
.tile.coll.zero .art img { filter: grayscale(.85) brightness(.45); }
.tile .sel {
  position: absolute; top: 8px; left: 8px; z-index: 2; width: 22px; height: 22px; accent-color: var(--gold); cursor: pointer;
}
.tile .tag {
  position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(5, 7, 12, .85); border: 1px solid var(--gold);
  color: var(--gold2); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px;
}
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg2); }
.stepper button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--muted); }
.stepper button:hover { color: var(--gold); background: var(--panel2); }
.stepper input { width: 44px; border: 0; border-radius: 0; text-align: center; padding: 4px 0; background: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { display: none; }
.tile.coll .stepper { align-self: stretch; justify-content: space-between; }
.tile.coll.has .stepper { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }

/* 리스트 보기 */
.list-row td { vertical-align: middle; }
.list-row.zero { opacity: .55; }

/* 선택 바 */
.selbar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30;
  background: var(--panel2); border: 1px solid var(--gold); border-radius: 14px; padding: 10px 14px;
  display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}

/* ---------- 모달 ---------- */
dialog {
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); padding: 0;
  width: min(880px, calc(100vw - 24px)); max-height: calc(100vh - 32px);
}
dialog::backdrop { background: rgba(3, 5, 10, .75); backdrop-filter: blur(3px); }
.dlg-body { padding: 22px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dlg-head h3 { margin: 0; color: var(--gold2); font-size: 18px; }
.x { background: none; border: 0; font-size: 22px; color: var(--muted); cursor: pointer; }
.detail { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 24px; }
.detail.land { grid-template-columns: 1fr; }
.detail .big { width: 100%; border-radius: 14px; box-shadow: 0 16px 50px rgba(0, 0, 0, .6); }
.detail h3 { font-size: 24px; margin: 0; color: var(--gold2); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
.chip { display: inline-flex; gap: 5px; align-items: center; padding: 2px 10px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); font-size: 12px; }
.chip img { width: 14px; height: 14px; }
.rules { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; white-space: pre-line; line-height: 1.7; }
.tok { display: inline-grid; place-items: center; vertical-align: -3px; }
.tok.en { width: 18px; height: 18px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 800; }
.tok img { width: 16px; height: 16px; }
.buybox { margin-top: 18px; padding: 14px; border: 1px solid var(--gold); border-radius: 12px; background: linear-gradient(180deg, rgba(200, 170, 110, .08), transparent); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.form label.full { grid-column: 1 / -1; }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
@media (max-width: 640px) { .detail { grid-template-columns: 1fr; } .detail .big { max-width: 320px; margin: 0 auto; } }

/* ---------- 장바구니 ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 40; background: var(--panel);
  border-left: 1px solid var(--gold); box-shadow: -20px 0 60px rgba(0, 0, 0, .6); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .25s ease;
}
.drawer.open { transform: none; }
.drawer .dlg-head { padding: 16px 18px 0; }
.drawer .scroll { flex: 1; overflow-y: auto; padding: 0 18px; }
.drawer .foot { border-top: 1px solid var(--line); padding: 14px 18px; }
.cart-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 52px; border-radius: 5px; }
.cart-line .n { font-weight: 600; font-size: 13px; }
.cart-line input[type=number] { width: 100px; padding: 4px 8px; }
.scrim { position: fixed; inset: 0; background: rgba(3, 5, 10, .6); z-index: 35; }

/* 오퍼 카드 */
.offer { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--panel); }
.offer .lines { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.offer .line { display: flex; gap: 8px; align-items: center; background: var(--bg2); border-radius: 8px; padding: 6px 10px 6px 6px; font-size: 13px; }
.offer .line img { width: 36px; border-radius: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat-box .k { color: var(--muted); font-size: 12px; }
.stat-box .v { font-size: 20px; font-weight: 800; color: var(--gold2); font-variant-numeric: tabular-nums; }

#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 99; opacity: 0; pointer-events: none;
  background: var(--gold2); color: #1a1408; padding: 10px 18px; border-radius: 10px; font-weight: 600; transition: .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
footer { text-align: center; color: var(--muted); font-size: 11px; padding: 20px; }
footer p { margin: 0 0 4px; }


/* 포일 */
.foil {
  display: inline-block; padding: 0 7px; border-radius: 99px; font-size: 11px; font-weight: 800; color: #1a1408; vertical-align: 1px;
  background: linear-gradient(90deg, #ffd6e8, #fff1b8, #c8f7ff, #e3d4ff);
}
.foil-text { background: linear-gradient(90deg, #ff9ac6, #ffe27a, #8de8ff, #c3a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile[data-foil] { border-color: color-mix(in srgb, #c8f7ff 35%, var(--line)); }

/* 가격 */
.ptag { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.ptag small { font-size: 10.5px; color: var(--muted); }
.tile .mkt { color: var(--hex); font-size: 11.5px; }
.phero {
  margin: 12px 0 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--hex) 45%, var(--line));
  background: linear-gradient(135deg, rgba(10, 200, 185, .14), transparent 60%), var(--bg2);
}
.phero .k { font-size: 12px; color: var(--hex); font-weight: 700; letter-spacing: .05em; }
.big-price { font-size: 36px; font-weight: 900; color: var(--gold2); font-variant-numeric: tabular-nums; line-height: 1.2; margin: 2px 0 4px; }
.big-price.none { font-size: 18px; color: var(--muted); font-weight: 700; margin: 4px 0 12px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trio div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.trio span { font-size: 11.5px; color: var(--muted); }
.trio b { font-size: 17px; color: var(--gold); font-variant-numeric: tabular-nums; }

/* 컬렉션 일반/포일 수량 */
.vrow { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.vrow .stepper { flex: 1; justify-content: space-between; }
.vl { font-size: 11px; width: 36px; color: var(--muted); flex: none; }
.vl.f { font-weight: 800; background: linear-gradient(90deg, #ff9ac6, #ffe27a, #8de8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
td .vrow .stepper { flex: none; }
.form input[type=number] { width: 100%; }
.form label.chk { flex-direction: row; }

/* ---------- 매물 묶음 ---------- */
.grid.lots { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.lot {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.lot:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 40px -10px rgba(200, 170, 110, .45); }
.lot-fan {
  position: relative; height: 250px; overflow: hidden;
  background: radial-gradient(circle at 50% 75%, rgba(200, 170, 110, .22), transparent 65%), linear-gradient(180deg, #121a2c, #0a0d14);
}
.lot-fan img {
  position: absolute; left: 50%; bottom: -18px; width: 44%; border-radius: 9px; box-shadow: 0 10px 26px rgba(0, 0, 0, .65);
  transform: translateX(calc(-50% + var(--i) * 62%)) rotate(calc(var(--i) * 9deg)); transform-origin: 50% 100%;
  transition: transform .25s;
}
.lot:hover .lot-fan img { transform: translateX(calc(-50% + var(--i) * 74%)) rotate(calc(var(--i) * 13deg)) translateY(-8px); }
.lot .info { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lot .name { font-size: 17px; font-weight: 800; color: var(--gold2); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lot .meta { color: var(--muted); font-size: 13px; }
.lot .meta b { color: var(--text); }
.lot .desc { color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.lot .foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); min-height: 40px; }
.lot .foot .ptag .price { font-size: 16px; }
.lot.soldout { opacity: .55; }
.lot-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.tile.picked { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 10px 30px -10px rgba(200, 170, 110, .6); }
.stepper.pick { margin-top: 8px; justify-content: space-between; }
.tile.picked .stepper.pick { border-color: var(--gold); }

/* ---------- 세트 대시보드 ---------- */
.stat-box .s { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.sets { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.set-tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.set-tile:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 40px -10px rgba(200, 170, 110, .45); }
.set-art { position: relative; height: 170px; overflow: hidden; }
.set-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transform: scale(1.15); }
.set-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--panel)); }
.set-code {
  position: absolute; top: 12px; left: 12px; z-index: 1; font-weight: 900; letter-spacing: .15em; font-size: 12px;
  padding: 3px 10px; border-radius: 99px; background: rgba(5, 7, 12, .8); border: 1px solid var(--gold); color: var(--gold2);
}
.set-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.set-body h3 { margin: 0; font-size: 19px; color: var(--gold2); }
.prog { height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; border: 1px solid var(--line); }
.prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--hex), var(--gold)); border-radius: 99px; }
.set-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.set-stats div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; display: flex; flex-direction: column; }
.set-stats span { font-size: 11.5px; color: var(--muted); }
.set-stats b { font-variant-numeric: tabular-nums; }
.set-tile.next { border-style: dashed; cursor: default; min-height: 300px; }
.set-tile.next:hover { transform: none; box-shadow: none; border-color: var(--line); }
.set-tile.next .set-body { justify-content: center; align-items: center; text-align: center; }
.set-tile.next h3 { color: var(--muted); }

/* ---------- 주문서 ---------- */
.order { padding: 6px 10px; }
.order td { vertical-align: middle; }
.order td.thumb img { width: 44px; border-radius: 5px; cursor: pointer; }
.order .link { cursor: pointer; }
.order .link:hover { color: var(--gold); text-decoration: underline; }
.orow.on { background: linear-gradient(90deg, rgba(200, 170, 110, .12), transparent 70%); }
.orow.on td:first-child { box-shadow: inset 3px 0 var(--gold); }
.orow.off { opacity: .5; }
.orow .offer-in { width: 120px; }
.orow.on .offer-in { border-color: var(--gold); }
.orow .sub { font-weight: 700; color: var(--gold); min-width: 90px; }
.order-foot {
  position: sticky; bottom: 0; z-index: 10; margin: 0 -16px; padding: 14px 16px;
  background: rgba(15, 20, 32, .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--gold); box-shadow: 0 -10px 30px rgba(0, 0, 0, .5);
}
.order .stepper { display: inline-flex; }

/* ---------- 프로필 ---------- */
.avatar {
  --s: 32px; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; flex: none; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--hex), var(--gold)); border: 2px solid var(--gold); box-shadow: 0 0 10px rgba(200, 170, 110, .35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar img.crop { object-position: 50% 12%; transform: scale(1.9); transform-origin: 50% 24%; }
.avatar img.crop.land { transform: scale(1.4); transform-origin: 50% 40%; }
.avatar span { color: #10131c; font-weight: 900; font-size: calc(var(--s) * .45); }
.me-btn {
  display: flex; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line); border-radius: 99px;
  padding: 4px 14px 4px 4px; cursor: pointer; font-weight: 700; color: var(--gold2);
}
.me-btn:hover { border-color: var(--gold); }
.seller { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.seller b { color: var(--text); }
.seller-card { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 8px 8px; max-width: 320px; }
.pf-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; max-height: 210px; overflow: auto; }
.pf-pick button { background: none; border: 0; padding: 2px; cursor: pointer; border-radius: 50%; }
.pf-pick button:hover .avatar { box-shadow: 0 0 0 2px var(--hex); }
#pfPreview .avatar { border-width: 3px; }
.add-banner {
  margin: 12px 0 4px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--hex);
  background: linear-gradient(90deg, rgba(10, 200, 185, .15), transparent); display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}

/* ---------- 공식 희귀도 마크 ---------- */
.rar-ic { --s: 16px; width: var(--s); height: var(--s); object-fit: contain; display: inline-block; vertical-align: -3px; flex: none; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .6)); }
.rar-line { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.tile .meta .rar-ic { margin-right: 2px; }
.rar-toggle { display: flex; gap: 4px; }
.rar-toggle button {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); padding: 0; cursor: pointer;
  display: grid; place-items: center; opacity: .45;
}
.rar-toggle button.on { opacity: 1; border-color: var(--gold); box-shadow: 0 0 10px rgba(200, 170, 110, .4); }
h3 .rar-ic { vertical-align: -2px; }
div.rar-line { display: flex; margin-top: 2px; }

/* ---------- 빠른 선택 ---------- */
.tile.coll.sel-on { border-color: var(--hex); box-shadow: 0 0 0 2px var(--hex), 0 10px 30px -10px rgba(10, 200, 185, .6); }
.tile.coll.sel-on .art::before {
  content: "✓"; position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none;
  font-size: 54px; font-weight: 900; color: #fff; background: rgba(10, 200, 185, .28); text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.list-row.sel-on { background: linear-gradient(90deg, rgba(10, 200, 185, .14), transparent 70%); }
.list-row.sel-on td:first-child { box-shadow: inset 3px 0 var(--hex); }
.tile.coll .art { user-select: none; }
.sel-hint { font-size: 12px; }

/* ---------- 판매자 페이지 ---------- */
.link { cursor: pointer; }
.seller.link:hover b { color: var(--gold); text-decoration: underline; }
.seller-card.link:hover { border-color: var(--gold); }
#sellerHead { margin-bottom: 18px; }
.seller-hero {
  margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(110deg, rgba(200, 170, 110, .16), transparent 45%), var(--panel);
}
.seller-hero h2 { margin: 0; font-size: 24px; color: var(--gold2); }
.seller-hero .stat { text-align: center; padding: 0 14px; border-left: 1px solid var(--line); }
.seller-hero .stat b { display: block; font-size: 20px; color: var(--gold); }
.seller-hero .stat span { font-size: 12px; color: var(--muted); }

/* 카드 틀 클릭 선택 */
.tile.coll { cursor: pointer; }
.tile.coll .art { cursor: zoom-in; }
.tile.coll .vrow { cursor: default; }
.tile.coll:not(.sel-on) .info:hover { background: rgba(10, 200, 185, .06); }
.tile.coll.sel-on .art::before { font-size: 40px; background: rgba(10, 200, 185, .18); }
.list-row { cursor: pointer; }
.list-row .thumb img { cursor: zoom-in; }

.kr-note { margin: 4px 0 8px; padding: 6px 12px; border-radius: 8px; background: rgba(255, 154, 198, .1); border: 1px solid rgba(255, 154, 198, .4); color: #ffc2dc; font-size: 13px; }

/* 카드 직접 등록 */
.cf-photo { width: 190px; display: flex; flex-direction: column; align-items: center; flex: none; }
.cf-photo img { width: 100%; aspect-ratio: 744 / 1039; object-fit: cover; border-radius: 10px; background: var(--bg2); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
#collSummary[hidden] { display: none; }
/* 세트 대표 이미지(공식 배너)는 확대·자르기 없이 */
.set-art img.banner { transform: none; }
.set-art { height: 180px; }

/* 카페 시세 */
.tile .meta.cafe { color: #e8c37a; font-size: 11.5px; }
.cafe-cell { color: #e8c37a; font-size: 12px; }
.cafe-box { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(232, 195, 122, .08); border: 1px solid rgba(232, 195, 122, .35); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cafe-box b { color: #e8c37a; }
.cafe-raw { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
#cafeRows tr.off { opacity: .45; }

/* 시세: 거래 시세(초록) · 참고 시세(금색) */
.mk-trade { color: var(--ok); }
.mk-ref { color: #e8c37a; }
.tile .meta.cafe small { color: var(--muted); font-size: 10.5px; }

/* 컬렉션 카드의 시세 줄: 세로로 쪼개지지 않게 한 줄 고정 */
.tile .meta.cafe { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; white-space: nowrap; min-width: 0; }
.tile .meta.cafe .mk-ico { flex: none; font-size: 11px; }
.tile .meta.cafe .mk-tag { flex: none; font-size: 10px; line-height: 15px; padding: 0 5px; border-radius: 99px; border: 1px solid currentColor; }
.tile .meta.cafe .mk-vals { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tile .meta.cafe .mk-vals span { white-space: nowrap; }
.tile .info { min-width: 0; }
.tile .meta { min-width: 0; white-space: nowrap; }

/* 컬렉션 카드: 내가 정한 판매가 */
.tile .meta.ask { color: var(--gold2); }
.mk-tag.mk-ask { color: var(--gold); }

/* 컬렉션 카드: 시세 · 판매 두 줄 표 (일반 | ✦포일 칸 맞춤) */
.tprice { display: grid; grid-template-columns: auto 1fr; gap: 3px 6px; align-items: center; font-size: 12px; margin: 2px 0 2px; }
.tprice.dual { grid-template-columns: auto 1fr 1fr; }
.tprice .mk-tag { font-size: 10px; line-height: 15px; padding: 0 5px; border-radius: 99px; border: 1px solid currentColor; text-align: center; }
.tprice .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; min-width: 0; }
.tprice .v.mk-ref { color: #e8c37a; }
.tprice .v.mk-trade { color: var(--ok); }
.tprice .v.ask { color: var(--gold2); font-weight: 700; }
.tprice .v.none { color: var(--muted); opacity: .6; }

/* 판매가를 시세보다 돋보이게: 판매 = 금색 꽉 찬 배지 + 크고 굵은 숫자, 시세 = 작고 흐리게 */
.tprice { row-gap: 4px; }
.tprice .mk-tag.mk-ref, .tprice .mk-tag.mk-trade { opacity: .75; }
.tprice .v.mk-ref, .tprice .v.mk-trade { font-size: 11px; opacity: .8; }
.tprice .mk-tag.mk-ask { background: linear-gradient(180deg, #e2c98f, #b8955a); border-color: #e2c98f; color: #1a1408; font-weight: 800; }
.tprice .v.ask { font-size: 14.5px; font-weight: 800; color: #fff3d6; text-shadow: 0 0 10px rgba(200, 170, 110, .45); }
.tprice .v.none { font-size: 12px; }
.tprice { column-gap: 5px; }
.tprice .v.ask { font-size: 13.5px; letter-spacing: -.2px; }
.tprice .v .fx { font-style: normal; font-size: 10px; margin-right: 1px; } /* ✦ 만 작게 */
/* ✦ 포일 표시: 포일 무지개색 (수량칸의 ✦포일 과 같은 색) */
.tprice .v .fx {
  font-size: 10px; text-shadow: none;
  background: linear-gradient(135deg, #ff9ac6, #ffe27a 40%, #8de8ff 70%, #c3a6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tprice .v.none .fx { opacity: .6; }

/* 판매 관리: 마켓 표시 상태 */
.vis { font-size: 12.5px; font-weight: 700; margin: -4px 0 8px; }
.vis.on { color: var(--ok); }
.vis.off { color: var(--warn); }
.panel.lot-off { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
tr.no-stock td { background: rgba(255, 107, 120, .08); }
tr.no-stock td:nth-child(3) { color: var(--bad); font-weight: 800; }

/* 판매가 필수 칸 */
input.need { border-color: var(--bad) !important; box-shadow: 0 0 0 2px rgba(255, 107, 120, .35); background: rgba(255, 107, 120, .08); }
#bulkDlg [data-k=desc] { width: 120px; }
#bulkDlg [data-k=qty] { width: 70px; }

/* 마켓에 올리기: 도구 버튼 한 줄 */
.bulk-tools { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; margin-bottom: 12px; }
.bulk-tools .btn { flex: none; }
.bulk-tools input { flex: 1; min-width: 120px; padding: 5px 9px; }

/* ---------- 평점 · 후기 ---------- */
.stars {
  display: inline-block; font-size: 15px; letter-spacing: 2px; line-height: 1;
  background: linear-gradient(90deg, var(--gold) var(--v), #39415a var(--v)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rep { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); }
.rep:hover { border-color: var(--gold); }
.rep .star1 { color: var(--gold); }
.rep b { color: var(--gold2); }
.rep small { color: var(--muted); }
.seller-hero .stat.link:hover b { color: var(--gold2); }
.rep-sum { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 4px 0 16px; padding: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.rep-sum .btn { align-self: center; margin-left: auto; }
.rep-cell { display: flex; flex-direction: column; gap: 3px; min-width: 130px; padding-right: 14px; }
.rep-cell .big { font-size: 24px; color: var(--gold); line-height: 1.1; }
.rep-top { display: flex; gap: 20px; align-items: center; margin-bottom: 12px; }
.rep-big { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 110px; }
.rep-big b { font-size: 40px; line-height: 1; color: var(--gold); }
.dist { display: grid; grid-template-columns: 34px 1fr 26px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.dist .bar { height: 7px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.dist .bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.reviews { max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.review { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.rate-box { margin-top: 10px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.rate-row { display: flex; gap: 8px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.rate-row .muted { min-width: 190px; }
.rate-row .rtext { color: var(--text); font-size: 12px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.starpick { display: flex; align-items: center; gap: 2px; margin: 6px 0 12px; }
.starpick button { background: none; border: 0; cursor: pointer; font-size: 34px; line-height: 1; color: #39415a; padding: 0 2px; }
.starpick button.on { color: var(--gold); }
.starpick span { margin-left: 10px; color: var(--gold2); font-weight: 700; }
.chip.pick { cursor: pointer; color: var(--muted); }
.chip.pick.on { border-color: var(--gold); color: var(--gold2); background: rgba(200, 170, 110, .12); }
#reviewDlg, #repDlg { width: min(520px, calc(100vw - 24px)); }
#reviewDlg textarea { resize: vertical; }

/* ---------- 서버 연동: 로그인 · 저장 상태 · 보낸/받은 오퍼 ---------- */
.g-login { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.g-login b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4285f4; font-size: 13px; }
.sync { font-size: 12px; color: var(--muted); padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.sync.saved { color: var(--ok); } .sync.saving { color: var(--warn); }
.sync.error { color: var(--bad); border-color: var(--bad); cursor: pointer; }
.seg { display: inline-flex; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: var(--bg2); border: 0; padding: 7px 16px; color: var(--muted); cursor: pointer; }
.seg button.on { background: rgba(200, 170, 110, .15); color: var(--gold2); box-shadow: inset 0 -2px var(--gold); }

/* ---------- 로그인 전 안내 (회원 전용) ---------- */
#gate { display: none; }
body.locked #gate { display: grid; place-items: center; padding: 48px 16px 24px; }
body.locked main, body.locked #tabs, body.locked .selbar, body.locked #syncState { display: none !important; }
body.auth-loading main, body.auth-loading #tabs { visibility: hidden; }
.gate-card { text-align: center; max-width: 440px; padding: 36px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.gate-card img { max-width: 70%; height: auto; margin: 0 auto 8px; }
.gate-card h2 { margin: 6px 0 10px; color: var(--gold2); }
.gate-card p { color: var(--muted); line-height: 1.7; margin: 0 0 18px; }
.gate-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; font-size: 16px; }
.g-dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 800; }
body.locked .me-btn { margin-left: auto; }
.gate-card p { word-break: keep-all; }

/* ---------- Google 로그인 버튼 (구글 브랜드 가이드의 '다크 테마': 어두운 배경 · 4색 G 로고 · Roboto Medium) ---------- */
.gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; padding: 0 14px 0 12px; box-sizing: border-box;
  background: #131314; color: #e3e3e3; border: 1px solid #8e918f; border-radius: 20px;
  font: 500 14px/20px Roboto, "Noto Sans KR", Arial, sans-serif; letter-spacing: .25px; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.gbtn:hover { background: #26272a; border-color: #b4b7b5; box-shadow: 0 0 0 3px rgba(138, 180, 248, .15); }
.gbtn:active { background: #303134; }
.gbtn:focus-visible { outline: 2px solid #8ab4f8; outline-offset: 2px; }
.gbtn .g-logo { flex: none; }
.gate-card .gbtn { height: 44px; padding: 0 22px 0 16px; font-size: 15px; margin: 0 auto; }
.me-btn.gbtn { height: 36px; padding: 0 14px 0 10px; gap: 8px; }

/* ---------- 아바타: 카드별로 얼굴에 맞춰 자른 일러스트 ---------- */
.avatar .pic { display: block; width: 100%; height: 100%; background-repeat: no-repeat; }

/* ---------- 마켓 새로고침 버튼 ---------- */
.refresh-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; cursor: pointer;
  color: var(--gold2); background: linear-gradient(180deg, rgba(200, 170, 110, .16), rgba(200, 170, 110, .05));
  border: 1px solid rgba(200, 170, 110, .55); border-radius: 12px; font: inherit; text-align: left;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.refresh-btn:hover { background: linear-gradient(180deg, rgba(200, 170, 110, .28), rgba(200, 170, 110, .1)); border-color: var(--gold); box-shadow: 0 0 14px rgba(200, 170, 110, .22); }
.refresh-btn:active { transform: scale(.97); }
.refresh-btn .rf-ico { flex: none; color: var(--gold); transition: transform .5s cubic-bezier(.3, .7, .3, 1); }
.refresh-btn:hover .rf-ico { transform: rotate(180deg); }
.refresh-btn .rf-text { display: flex; flex-direction: column; line-height: 1.2; }
.refresh-btn .rf-text b { font-size: 13px; }
.refresh-btn .rf-text small { font-size: 11px; color: var(--muted); }
.refresh-btn.busy { cursor: progress; border-color: var(--gold); }
.refresh-btn.busy .rf-ico { animation: rfspin .8s linear infinite; transition: none; }
@keyframes rfspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .refresh-btn.busy .rf-ico { animation: none; } }

/* ---------- 판매자 페이지: 신뢰 지표 / 판매 현황 묶음, 모아보기 ---------- */
.seller-hero .stat-group { display: flex; align-items: stretch; border-left: 1px solid var(--line); padding-left: 4px; }
.seller-hero .stat-group .stat { border-left: 0; }
.seller-hero .stat-group .stat + .stat { border-left: 1px solid var(--line); }
.seller-hero .stat.link { cursor: pointer; }
.seller-hero .stat[data-sview]:hover b { color: var(--gold2); text-decoration: underline; }
#sellerSeg { margin-top: 12px; }
.multi-lot { margin-bottom: 14px; }
.multi-head h3 { margin: 6px 0; font-size: 16px; color: var(--gold2); }
.multi-head .link { cursor: pointer; }
.multi-head .link:hover { color: var(--gold); text-decoration: underline; }

/* ---------- 연락처 입력: 휴대폰 / 오픈카톡 ---------- */
.contact-pick { display: inline-flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.contact-pick .cp-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.contact-pick .cp-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; background: var(--bg2); border: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.contact-pick .cp-seg button + button { border-left: 1px solid var(--line); }
.contact-pick .cp-seg button.on { color: var(--gold2); background: rgba(200, 170, 110, .15); box-shadow: inset 0 -2px var(--gold); }
.contact-pick .cp-ico { flex: none; }
.contact-pick .cp-in { width: 230px; }
.ct { display: inline-flex; align-items: center; gap: 5px; }
.ct a { color: var(--hex); text-decoration: none; font-weight: 600; }
.ct a:hover { text-decoration: underline; }
.ct .cp-ico { width: 16px; height: 16px; }

/* 끌올 버튼: 쿨다운 중에는 흐리게 (누르면 남은 시간 안내) */
.btn.cool { opacity: .6; }
.btn.cool:hover { opacity: .85; }

footer .legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
footer .legal-links a:hover { color: var(--gold2); }

/* 연락 방식 드롭다운 (휴대폰 / 오픈카톡) — 하단 고정 영역에 있어서 위쪽으로 펼쳐짐 */
.cp-dd { position: relative; }
.cp-dd-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 100%; min-height: 38px; padding: 0 10px 0 12px;
  background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font: inherit; font-size: 13px;
}
.cp-dd-btn:hover, .cp-dd.open .cp-dd-btn { border-color: var(--gold); }
.cp-dd-btn .cp-caret { color: var(--muted); transition: transform .15s; }
.cp-dd.open .cp-caret { transform: rotate(180deg); }
.cp-dd-menu {
  position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 160px; margin: 0; padding: 4px; list-style: none;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .55); display: none;
}
.cp-dd.open .cp-dd-menu { display: block; }
.cp-dd-menu li { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--text); }
.cp-dd-menu li:hover, .cp-dd-menu li:focus-visible { background: rgba(200, 170, 110, .15); outline: none; }
.cp-dd-menu li.on { color: var(--gold2); }
.cp-dd-menu .cp-check { margin-left: auto; color: var(--gold); }

/* 한 카드를 여러 묶음에 나눠 올리기 */
.alloc { margin-top: 12px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.llist { display: grid; gap: 6px; margin-top: 6px; }
.lrow { display: grid; grid-template-columns: minmax(120px, 1.4fr) 84px minmax(100px, 1fr) auto; gap: 6px; align-items: center; }
.lrow .lname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow select, .lrow input { min-width: 0; }
tr.no-left { opacity: .5; }
@media (max-width: 640px) { .lrow { grid-template-columns: 1fr 76px; } .lrow [data-f=ldesc] { grid-column: 1 / -1; } }

.gate-card .slogan { font-size: 24px; color: var(--gold2); letter-spacing: -.5px; margin: 10px 0 6px; }

/* 버그&개선 문의 떠 있는 버튼 (초기 한정 — 나중에 지울 때: index.html 의 #bugFab·#bugDlg, app.js 의 '버그 신고' 블록, 이 CSS) */
#bugFab {
  position: fixed; z-index: 40; bottom: 28px; right: max(28px, calc((100vw - 1400px) / 2 + 28px));   /* 본문 오른쪽 끝선에서 안쪽으로 */
  display: inline-flex; align-items: center; gap: 9px; padding: 15px 24px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 800; color: #1a1408; letter-spacing: -.2px;
  background: linear-gradient(180deg, #e3c887, #b08f52); border: 1px solid #f0dca8;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55), 0 0 0 4px rgba(200, 170, 110, .18);
  transition: transform .15s, filter .15s;
}
#bugFab svg { width: 24px; height: 24px; }
#bugFab:hover { transform: translateY(-2px); filter: brightness(1.08); }
#bugFab[hidden] { display: none; }
body.has-dock #bugFab { bottom: 92px; }
@media (max-width: 640px) { #bugFab { right: 18px; bottom: 22px; padding: 15px; } #bugFab span { display: none; } }

/* 문의 창: 이메일 쓰기 느낌 */
.mail { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); }
.mail-row { display: flex; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mail-row span { color: var(--muted); min-width: 72px; }
.mail-row b { font-weight: 600; word-break: break-all; }
.mail textarea { width: 100%; border: 0; border-radius: 0; background: transparent; resize: vertical; padding: 12px 14px; outline: none; }

/* 마켓 페이지 넘기기 */
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 22px 0 8px; }
.pager:empty { display: none; }
.pager button { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold2); }
.pager button.on { background: linear-gradient(180deg, #d9bd7f, #a8874a); border-color: #e2c98f; color: #1a1408; font-weight: 800; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .pg-gap { color: var(--muted); padding: 0 4px; }
