/* 언폴드엑스 키비주얼 색: 짙은 회색 바탕 + 형광 초록 (입장 등록 페이지와 같은 값) */
:root {
  --bg: #2A2829; --ink: #F2F2F2; --neon: #2BFF2B; --muted: #A9A6A7; --line: #4A4748; --soft: #343233;
  --red: #FF5A4E; --yellow: #FFD23F;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.55; word-break: keep-all;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.lang { display: flex; justify-content: flex-end; }
.mine-btn { background: none; border: 1px solid var(--ink); color: var(--ink); padding: 6px 12px; font-size: 13px; font-weight: 700; }
.lang button { background: none; border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; font-size: 13px; font-weight: 700; }
.lang button[aria-pressed="true"] { border-color: var(--neon); color: var(--neon); }

.top { padding: 20px 0 20px; border-bottom: 1px solid var(--neon); color: var(--neon); }
.top .t1 { margin: 0; font-size: 14px; font-weight: 700; }
.top h1 { margin: 8px 0 8px; font-size: 44px; line-height: 0.95; font-weight: 900; letter-spacing: -0.01em; }
.top .t2 { margin: 0; font-size: 14px; }

.lead { margin: 22px 0 4px; font-size: 18px; font-weight: 700; }
.sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* 토크 카드 — 누르면 고름 */
.cards { display: grid; gap: 12px; margin-bottom: 16px; }
.card { display: block; width: 100%; text-align: left; background: var(--soft); border: 1px solid var(--line); padding: 16px; position: relative; }
button.card[aria-pressed="true"] { border: 2px solid var(--neon); padding: 15px; }
button.card:disabled { opacity: .55; cursor: default; }
.card .when { color: var(--neon); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.card .title { font-size: 19px; font-weight: 800; margin: 2px 0 6px; line-height: 1.35; }
.card .host, .card .place, .card .note { margin: 0; font-size: 14px; color: var(--muted); }
.card .host { color: var(--ink); white-space: pre-line; }
.card .note { white-space: pre-line; }
.card .bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.card .tick { width: 24px; height: 24px; border: 1px solid var(--muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #111; flex: none; }
button.card[aria-pressed="true"] .tick { background: var(--neon); border-color: var(--neon); }
.state { font-weight: 700; }
.state.wait { color: var(--yellow); }
.state.off { color: var(--muted); }

.go { width: 100%; padding: 16px; border: 0; background: var(--neon); color: #111; font-size: 18px; font-weight: 800; }
.go:disabled { opacity: 0.4; cursor: default; }
.again { display: block; margin: 20px auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 14px; }
.back { background: none; border: 0; padding: 18px 0 6px; color: var(--muted); font-size: 14px; }

/* 신청서 */
.picked { border-left: 3px solid var(--neon); background: var(--soft); padding: 10px 14px; margin: 8px 0 22px; }
.picked p { margin: 2px 0; font-size: 15px; }
.picked b { color: var(--neon); margin-right: 6px; font-variant-numeric: tabular-nums; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
label small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 6px; }
input:not([type="checkbox"]) {
  display: block; width: 100%; margin-top: 6px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 0;
  font-size: 18px; background: var(--soft); -webkit-appearance: none; appearance: none;
}
input:focus { outline: 2px solid var(--neon); outline-offset: -1px; }
.q { margin-bottom: 20px; }
.q-t { margin: 0 0 8px; font-weight: 600; font-size: 15px; }
.q-t small { font-weight: 400; color: var(--muted); font-size: 13px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg.two { grid-template-columns: repeat(2, 1fr); }
.seg.one { grid-template-columns: 1fr; }
.seg.one button { text-align: left; padding: 11px 14px; }
.etc { display: block; margin: 8px 0 0; }
.seg button { background: var(--soft); border: 1px solid var(--line); padding: 11px 4px; font-size: 14px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--neon); border-color: var(--neon); color: #111; }

.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; padding: 12px; background: var(--soft); margin-bottom: 8px; }
.agree.all { background: none; border: 1px solid var(--line); }
.agree.opt { font-weight: 500; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--neon); flex: none; }
details.terms { font-size: 13px; color: var(--muted); margin: -4px 0 14px; }
details.terms summary { cursor: pointer; padding: 4px 0; }
details.terms dl { margin: 6px 0 0; display: grid; grid-template-columns: 72px 1fr; gap: 4px 8px; }
details.terms dt { font-weight: 700; color: var(--ink); }
details.terms dd { margin: 0; }
.missing input:not([type="checkbox"]), .agree.missing { outline: 2px solid var(--red); outline-offset: 2px; }
.err { color: var(--red); font-weight: 600; margin: 12px 0; min-height: 1em; }

/* 완료 */
.done-item { border: 1px solid var(--line); background: var(--soft); padding: 16px; margin-top: 16px; }
.badge { display: inline-block; background: var(--neon); color: #111; font-weight: 800; padding: 3px 10px; font-size: 14px; }
.badge.wait { background: var(--yellow); }
.badge.no { background: var(--red); color: #fff; }
.done-item .title { font-size: 18px; font-weight: 800; margin: 10px 0 2px; }
.done-item p { margin: 2px 0; font-size: 14px; color: var(--muted); }
.cal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cal a { display: block; text-align: center; text-decoration: none; color: var(--neon); border: 1px solid var(--neon); padding: 10px 4px; font-size: 14px; font-weight: 700; }
.done-head { margin: 26px 0 0; font-size: 26px; font-weight: 900; color: var(--neon); line-height: 1.25; }
.tip { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

.cancel-btn { background: none; border: 1px solid var(--red); color: var(--red); padding: 8px 14px; font-weight: 700; font-size: 14px; }
.confirm-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.confirm-row .yes { background: var(--red); color: #fff; border: 0; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.confirm-row .no { background: none; border: 1px solid var(--line); padding: 8px 14px; font-size: 14px; }

.foot { margin-top: 44px; color: var(--muted); font-size: 12px; text-align: center; }
.foot p { margin: 0 0 4px; }
.foot a { color: var(--ink); }

/* 입장 등록 겸용 칸 · 입장 QR (2026-11-01) */
.sec { margin: 26px 0 4px; font-size: 15px; font-weight: 800; }
.seg button small { display: block; font-size: 11px; font-weight: 400; }
.gu { margin: 10px 0 0; }
.gu select { display: block; width: 100%; margin-top: 6px; padding: 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 0; background: var(--soft); color: var(--ink); }
.missing .seg { outline: 2px solid #B82E29; outline-offset: 2px; }
.ticket { margin: 18px 0; padding: 18px; border: 1px solid #ddd; text-align: center; }
.ticket .qr-note { margin: 6px 0 4px; font-size: 14px; line-height: 1.55; text-align: left; word-break: keep-all; color: inherit; }
.ticket .qr { width: 220px; max-width: 70%; margin: 10px auto; background: #fff; padding: 10px; }
.ticket .qr svg { display: block; width: 100%; height: auto; }
.t-name { font-weight: 800; font-size: 18px; margin: 4px 0; }
.offer-btn { display: inline-block; margin-top: 8px; padding: 10px 14px; background: #111; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
