/* 위쉐어 상품권 — 다크모드(배경 어둡게 + 포인트 노랑 하나). 위쉐어더시즌 대표 홈과 같은 노랑 #fde889 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #111214;
  --surface: #1a1c1f;
  --surface-2: #23262a;
  --line: #2e3136;
  --text: #ededee;
  --muted: #9da1a8;
  --accent: #fde889;
  --accent-ink: #1d1a0c;
  --ok: #8fdba8;
  --err: #ff9b8f;
  --r: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.sent { display: block; }
p, .sent, li { text-wrap: balance; }
h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(28px, 7.4vw, 38px); }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* 머리 */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { font-weight: 750; font-size: 16px; text-decoration: none; letter-spacing: -0.02em; }
.brand b { color: var(--accent); font-weight: 750; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 14px; transition: color 160ms ease-out; }
.top nav a:hover { color: var(--text); }

.test-note { background: var(--surface-2); color: var(--muted); font-size: 13px; padding: 10px 14px; border-radius: var(--r-sm); margin: 4px 0 8px; }

/* 표지 */
.hero { padding: 28px 0 24px; }
.hero p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

/* 상품권 카드 */
.cards { display: grid; gap: 12px; margin: 12px 0 8px; }
.card {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 18px 18px 16px; font: inherit; transition: border-color 160ms ease-out, transform 480ms var(--ease);
}
.card:hover { border-color: #4a4e55; }
.card:active { transform: scale(.99); }
.card[aria-pressed="true"] { border-color: var(--accent); }
.card .price { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.card .note { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card .chk {
  position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 13px; color: transparent;
}
.card[aria-pressed="true"] .chk { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* 노랑 면(브랜드색 블록) */
.ticket {
  background: var(--accent); color: var(--accent-ink); border-radius: var(--r); padding: 22px 52px 22px 20px;
  position: relative; overflow: hidden;
}
.ticket .t-name { font-weight: 700; font-size: 15px; }
.ticket .t-amt { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; }
.ticket .t-code { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.ticket::after {
  content: ""; position: absolute; right: -34px; top: 50%; width: 68px; height: 68px; margin-top: -34px;
  border-radius: 50%; background: var(--bg);
}

/* 폼 */
.panel { background: var(--surface); border-radius: var(--r); padding: 20px 18px; margin: 16px 0; }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=password], input[type=number], select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px; transition: border-color 160ms ease-out;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button {
  height: 54px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit; font-weight: 650; cursor: pointer; transition: border-color 160ms ease-out;
}
.seg button small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.2; }
.seg button[aria-pressed="true"] { border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }

.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; border: 0; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 17px; font-weight: 750; cursor: pointer;
  text-decoration: none; transition: filter 160ms ease-out, transform 160ms ease-out;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.99); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }

.msg { min-height: 22px; font-size: 14px; margin: 10px 0 0; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }

/* 목록 */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.list li:first-child { border-top: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.steps li::before {
  content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent);
}

.qr { background: #f4f4f2; border-radius: var(--r-sm); padding: 12px; width: 196px; margin: 16px auto 0; }
.qr svg { display: block; width: 100%; height: auto; }

.bar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; min-width: 2px; }

.nowrap { white-space: nowrap; }
.hero .ticket { margin-top: 22px; }
.ticket .t-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.ticket .t-row span { background: rgba(29, 26, 12, .1); border-radius: 99px; padding: 4px 10px; font-size: 13px; font-weight: 650; }
.foot { padding: 32px 0 40px; color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
