:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f5ee;
  --ink: #23201a;
  --ink-soft: #554f45;
  --muted: #8a8275;
  --accent: #a76b4a;
  --accent-weak: #f4ece2;
  --accent-2: #6e7a5e;
  --line: #e4dfd3;
  --line-soft: #f0ece3;
  --male: #5c7c9e;
  --female: #b5708a;
  --ok: #5c7a5a;
  --warn: #b4543c;
  --warn-weak: #faede7;
  --ok-weak: #ecf1e7;
  --cat-1: #a76b4a;
  --cat-1-weak: #f5ebe2;
  --cat-2: #6e7a5e;
  --cat-2-weak: #edf0e7;
  --cat-3: #5c7c9e;
  --cat-3-weak: #e9eff5;
  --cat-4: #3f8a80;
  --cat-4-weak: #e3f0ee;
  --region: #6d5a9e;
  --region-weak: #ece7f5;
  --year: #a9822b;
  --year-weak: #f6efdd;
  --shadow: 0 24px 60px -34px rgba(52, 42, 30, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #16130f;
    --surface: #1e1a15;
    --surface-2: #262118;
    --ink: #f2ede3;
    --ink-soft: #cfc7b8;
    --muted: #9a9183;
    --accent: #d9a277;
    --accent-weak: #33291f;
    --accent-2: #a3b28c;
    --line: #3a332a;
    --line-soft: #2c261e;
    --male: #8fb0d4;
    --female: #dfa0b6;
    --ok: #92be8c;
    --warn: #e38c72;
    --warn-weak: #3a241d;
    --ok-weak: #22301f;
    --cat-1: #d9a277;
    --cat-1-weak: #33291f;
    --cat-2: #a3b28c;
    --cat-2-weak: #242a1e;
    --cat-3: #8fb0d4;
    --cat-3-weak: #1f2732;
    --cat-4: #7ecfc4;
    --cat-4-weak: #1c2e2b;
    --region: #b6a3d9;
    --region-weak: #26213a;
    --year: #d9b25c;
    --year-weak: #302711;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16130f;
  --surface: #1e1a15;
  --surface-2: #262118;
  --ink: #f2ede3;
  --ink-soft: #cfc7b8;
  --muted: #9a9183;
  --accent: #d9a277;
  --accent-weak: #33291f;
  --accent-2: #a3b28c;
  --line: #3a332a;
  --line-soft: #2c261e;
  --male: #8fb0d4;
  --female: #dfa0b6;
  --ok: #92be8c;
  --warn: #e38c72;
  --warn-weak: #3a241d;
  --ok-weak: #22301f;
  --cat-1: #d9a277;
  --cat-1-weak: #33291f;
  --cat-2: #a3b28c;
  --cat-2-weak: #242a1e;
  --cat-3: #8fb0d4;
  --cat-3-weak: #1f2732;
  --cat-4: #7ecfc4;
  --cat-4-weak: #1c2e2b;
  --region: #b6a3d9;
  --region-weak: #26213a;
  --year: #d9b25c;
  --year-weak: #302711;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans KR", ui-sans-serif, system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Song Myung", "IBM Plex Sans KR", ui-serif, Georgia, serif;
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 22px;
}

/* topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

/* Sizing first, then the light/dark swap. Only one of the two logo images is
   ever visible, so any rule that sets `display` on a logo has to live above
   the swap rules below — otherwise it wins on source order and both show. */
.brand-logo,
.footer-logo {
  width: auto;
  display: block;
}

.brand-logo {
  height: 30px;
}

.footer-logo {
  height: 18px;
}

.brand-logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-light {
    display: none;
  }
  :root:not([data-theme="light"]) .brand-logo-dark {
    display: block;
  }
}

:root[data-theme="dark"] .brand-logo-light {
  display: none;
}
:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}

/* hero */
.hero {
  padding: 34px 0 10px;
}

.hero-lead {
  margin-bottom: 18px;
}

.hero-lead h1 {
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.3;
  margin: 10px 0 10px;
  white-space: pre-line;
}

.hero-lead p {
  color: var(--ink-soft);
  max-width: 44ch;
  font-size: 15px;
  white-space: pre-line;
}

.schedule-cards {
  display: grid;
  gap: 14px;
}

.ticket {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 16px 20px 15px;
}

/* 구분과 남은 기간. 카드마다 같은 높이의 첫 줄이 된다. */
.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}

/* 날짜를 읽고 바로 오른쪽에서 신청한다. */
.ticket-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ticket-date {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.ticket-dnum {
  font-family: "Song Myung", serif;
  font-weight: 700;
  font-size: clamp(27px, 5vw, 33px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ticket-dow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}

.ticket-time {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.ticket-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ticket-category {
  padding: 3px 11px;
  border-radius: 30px;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
}

.ticket-seats {
  display: flex;
  gap: 10px 26px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* 마감된 일정 카드. <details>라 네이티브 토글을 그대로 쓰고, summary 안에
   머리줄(.ticket-head)과 날짜·정원 요약(.ticket-closed-compact)만 담아
   기본으로는 그 두 줄만 보이게 한다. */
.ticket-closed-summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 26px;
}
.ticket-closed-summary::after {
  content: "더 보기 ▾";
  position: absolute;
  right: 0;
  bottom: -2px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.ticket-closed[open] .ticket-closed-summary::after {
  content: "접기 ▴";
}
.ticket-closed-summary::-webkit-details-marker {
  display: none;
}
.ticket-closed-summary::marker {
  display: none;
}
.ticket-closed-compact {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.ticket-closed-compact .ticket-dow {
  font-size: 11px;
}
.ticket-closed-seats {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}
.ticket-closed[open] .ticket-closed-summary {
  margin-bottom: 10px;
}

/* 마감된 카드는 구분·기수·년생·지역 배지까지 전부 무채색으로 가라앉혀서
   "더 이상 신청 안 받는 카드"라는 게 색만 봐도 보이게 한다. 크고 진한
   .pill-closed만 유일하게 눈에 띄도록 남겨둔다. */
.ticket-closed {
  border-top-color: var(--line) !important;
}
.ticket-closed .ticket-category,
.ticket-closed .pill-year-lg,
.ticket-closed .pill-cohort,
.ticket-closed .pill-region {
  background: var(--surface-2) !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 10px !important;
}

/* 점을 아래로 내리면 카드마다 한 줄이 더 붙는다. 같은 줄에 둔다. */
.seatgroup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seatgroup-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

.seatgroup-count {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.dots {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.35s ease;
}

.dot.m {
  background: var(--male);
}

.dot.f {
  background: var(--female);
}

.tag-m {
  color: var(--male);
}

.tag-f {
  color: var(--female);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.12s,
    opacity 0.15s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 12.5px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.pill-open {
  background: var(--accent-weak);
  color: var(--accent);
}

/* 마감 배지. 마감된 카드는 다른 내용을 접어서 작게 보여주는 대신, 이
   글자가 사실상 그 카드에서 제일 중요한 정보라 크게 둔다. 색은 일부러
   눈에 띄는 색 대신 무채색으로 — 전체 카드를 더 이상 신청 안 받는
   "흐릿해진" 느낌으로 보이게 한다. */
.pill-closed {
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 11px;
  background: var(--line-soft);
  color: var(--ink-soft);
}

.pill-soon {
  background: var(--surface-2);
  color: var(--accent-2);
}

.pill-year {
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  background: var(--surface-2);
  color: var(--ink-soft);
}

/* 시작 시간·장소를 안 보여주는 카드(셋로그 소개팅)는 년생 배지가 핵심
   정보라 눈에 더 잘 띄게 키운다. */
.pill-year-lg {
  font-size: 15px;
  font-weight: 700;
  padding: 6px 14px;
  color: var(--year);
  background: var(--year-weak);
}

/* 지역 배지(셋로그 소개팅). 년생 배지와 크기는 같지만, 헷갈리지 않도록
   구분 색과 다른 고유 색을 쓴다. */
.pill-region {
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  font-size: 15px;
  font-weight: 700;
  padding: 6px 14px;
  color: var(--region);
  background: var(--region-weak);
}

/* 기수 배지(셋로그 소개팅). 머리줄 맨 앞쪽에 와서 눈에 띄도록 꽉 채운 색을 쓴다. */
.pill-cohort {
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  font-size: 15px;
  font-weight: 700;
  padding: 6px 14px;
  color: #fff;
  background: var(--tab, var(--accent));
}

/* form */
.form-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 22px 72px;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0 20px;
}

.backlink:hover {
  color: var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head {
  padding: 26px 26px 20px;
  border-bottom: 1px dashed var(--line);
}

.card-head .eyebrow {
  display: block;
  margin-bottom: 9px;
}

.card-head h2 {
  font-size: 22px;
}

.card-head .badge-category {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 11px;
  border-radius: 30px;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
}

.card-head .when {
  margin-top: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.card-body {
  padding: 8px 26px 28px;
}

.fs {
  border: none;
  padding: 0;
  margin: 0;
}

.fs + .fs {
  margin-top: 8px;
}

.fs-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 22px 0 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}

.fs-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.fs-head h3 {
  font-size: 16px;
}

.fs-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > label {
  font-size: 13.5px;
  font-weight: 700;
}

.field .opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 12.5px;
}

.hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-line;
}

/* 내 신청 조회 */
.lookup-body h2 {
  margin-bottom: 6px;
}

.lookup-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}

.lookup-submit {
  margin-top: 22px;
}

.lookup-loading,
.lookup-error {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
}

.lookup-error {
  color: var(--warn);
}

.lookup-result {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lookup-result-head {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--accent-weak);
  color: var(--accent);
}

.status-approved {
  background: var(--ok-weak);
  color: var(--ok);
}

.status-rejected,
.status-cancelled {
  background: var(--warn-weak);
  color: var(--warn);
}

.lookup-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.lookup-facts {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 11px 16px;
  margin: 0;
  font-size: 14px;
}

.lookup-facts dt {
  color: var(--muted);
  font-size: 13px;
}

.lookup-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
  color: var(--ink);
}

.lookup-details {
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
}

.lookup-details > summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.lookup-details .lookup-facts {
  margin-top: 16px;
}

.lookup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .lookup-facts {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 9px 12px;
  }

  /* 날짜 옆에 못 붙고 아래로 내려오면 어중간해진다. 누르기 쉽게 꽉 채운다. */
  .ticket-main .btn {
    width: 100%;
  }
}

.field input[type="text"],
.field input[type="number"],
.field input[type="tel"],
.field select,
.field textarea {
  font-size: 15px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  resize: vertical;
}

.field select {
  appearance: none;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field-error {
  font-size: 12.5px;
  color: var(--warn);
  display: none;
}

/* 성별 정원 마감처럼, 틀린 입력은 아니지만 바로 알려야 하는 안내. */
.field-warn {
  font-size: 12.5px;
  line-height: 1.6;
  background: var(--warn-weak);
  color: var(--warn);
  border-radius: 10px;
  padding: 9px 12px;
  margin-top: 8px;
}

.seat-full {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 30px;
  background: var(--warn-weak);
  color: var(--warn);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--warn);
}

.field.invalid .field-error {
  display: block;
}

.field.invalid .photo-slot,
.field.invalid .proof-slot {
  border-color: var(--warn);
}

.field.invalid .opts button {
  border-color: var(--warn);
}

.notice {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 11px 14px;
  white-space: pre-line;
}

.opts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.opts button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.opts button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.opts.grow button {
  flex: 1;
}

/* photos */
.photo-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.photo-cell {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 추가 사진은 선택 항목이라 필수 두 칸보다 작게 둔다. */
.photo-cell-optional {
  flex: 0 0 96px;
  min-width: 96px;
}

.photo-cell-optional .photo-cap {
  color: var(--muted);
  font-weight: 500;
}

.photo-cap {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

.photo-slot {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1.5px dashed var(--line);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: var(--muted);
  text-align: center;
  padding: 10px;
}

.photo-slot:hover {
  border-color: var(--accent);
}

.photo-slot.has-image {
  border-style: solid;
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-icon {
  font-size: 20px;
}

.slot-label {
  font-size: 12px;
  font-weight: 600;
}

.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(35, 32, 26, 0.7);
  color: #fff;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.proof-slot {
  border-radius: 12px;
  border: 1.5px dashed var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 64px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: var(--muted);
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
}

.proof-slot:hover {
  border-color: var(--accent);
}

.proof-slot.has-image {
  border-style: solid;
  color: var(--ok);
}

.photo-slot.loading,
.proof-slot.loading {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 0.7;
}

.photo-slot.loading::after,
.proof-slot.loading::after {
  content: "불러오는 중...";
  font-size: 12px;
  font-weight: 600;
}

.banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--warn-weak);
  border-left: 3px solid var(--warn);
  border-radius: 0 12px 12px 0;
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 18px;
  white-space: pre-line;
  flex-wrap: wrap;
}

.banner b {
  color: var(--warn);
  font-weight: 700;
}

/* 원인 코드. 참가자가 문의할 때 이 값만 알려주면 바로 확인할 수 있다. */
.banner-code {
  margin-left: auto;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.submit-row {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 24px;
}

.status {
  font-size: 13px;
  color: var(--warn);
  min-height: 17px;
}

.status.ok {
  color: var(--ok);
}

/* done */
.done {
  max-width: 500px;
  margin: 0 auto;
  padding: 96px 22px;
  text-align: center;
}

.receipt-box {
  margin: 22px 0 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.receipt-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.receipt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.receipt-value {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  user-select: all;
  overflow-wrap: anywhere;
}

.done-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--accent-weak);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.done h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.done p {
  color: var(--ink-soft);
  margin-bottom: 28px;
  white-space: pre-line;
}

/* 요소 선택자로 두면 .wrap의 margin: 0 auto에 밀려 위 여백이 사라진다. */
.site-footer {
  margin-top: 56px;
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
}

.footer-social-link:hover {
  color: var(--ink-soft);
  background: var(--line-soft);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink-soft);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
}

.footer-contact {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.footer-contact:hover {
  color: var(--ink-soft);
  text-decoration-color: currentColor;
}

.policy-section {
  margin: 22px 0;
}

.policy-section h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.policy-body {
  color: var(--ink-soft);
  white-space: pre-line;
  font-size: 13.5px;
  line-height: 1.75;
}

.policy-effective {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 8px;
}

.empty-box {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
  color: var(--muted);
}
/* Sections share the wrapper; their vertical padding must not erase mobile gutters. */
.wrap {
  padding-left: 22px;
  padding-right: 22px;
}
a.btn,
a.backlink {
  text-decoration: none;
}
.hero-lead h1 {
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hint,
.notice {
  overflow-wrap: anywhere;
}

/* 세 단계뿐이라 상자로 가둘 필요가 없다. 번호만 살려 한 줄로 읽힌다. */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
}

.steps li {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.step-no {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* 누적 실적 · 구분 탭 · 참여자 명단 ------------------------------------- */

.hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  /* 아래 진행 단계(01·02·03)와 붙어 보이지 않도록 아래쪽 여백을 함께 준다. */
  margin: 22px 0 26px;
}

.hero-stat {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.hero-stat-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 12.5px;
  color: var(--muted);
}

/* 누적 실적 아래, 오른쪽으로 넘겨보는 참가자 후기 갤러리. */
.review-gallery {
  margin: 0 0 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.review-gallery::-webkit-scrollbar {
  display: none;
}

.review-track {
  display: flex;
  gap: 12px;
  padding: 2px 2px 4px;
  scroll-snap-type: x mandatory;
}

.review-item {
  flex: 0 0 auto;
  width: 168px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.review-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* 구분 선택 화면의 큰 카드 목록. */
.cat-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 28px 0 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 22px 20px;
  cursor: pointer;
  text-align: left;
  border-top: 4px solid var(--tab, var(--accent));
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}

.cat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.cat-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-card-emoji {
  font-size: 30px;
  line-height: 1;
}

.cat-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--tab, var(--accent));
}

.cat-card-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.cat-card-count {
  font-size: 13px;
  color: var(--muted);
}

.cat-card-setlog {
  border-top-width: 5px;
}

.cat-card-promo {
  max-width: 360px;
  margin-top: 14px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-card-prices {
  display: flex;
  gap: 16px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.cat-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
}

.cat-card-price-label {
  color: var(--muted);
}

.cat-card-price-new {
  font-weight: 700;
  font-size: 15px;
  color: var(--tab, var(--accent));
}

.cat-info-section + .cat-info-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.cat-info-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tab, var(--accent));
  margin-bottom: 4px;
}

.cat-info-text {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.cat-info-muted {
  color: var(--muted);
  font-size: 12px;
}

.cat-card-cta {
  align-self: stretch;
  text-align: center;
  margin-top: 4px;
  padding: 10px;
  border-radius: 999px;
  background: var(--tab, var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

/* 구분을 고른 뒤 목록 화면 맨 위. 뒤로가기와 고른 구분 이름만 있다. */
.cat-heading {
  margin-bottom: 18px;
}

.cat-heading-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--tab, var(--accent));
  margin: 0;
}

/* 구분 소개글. 참가비 안내보다 위, 제목 바로 아래에 온다. */
.cat-intro {
  margin: 14px 0 20px;
}

.cat-intro-hook {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.cat-intro-body {
  margin: 0 0 8px;
  color: var(--ink-soft);
  line-height: 1.6;
  white-space: pre-line;
}

.cat-intro-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* 진행 순서 4단계. */
.cat-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--surface-2);
  border-radius: 14px;
}

.cat-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cat-step-no {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--tab, var(--accent));
}

.cat-step-title {
  margin: 0 0 2px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.cat-step-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* 구분별 색. 카드 위쪽 띠와 배지, 탭이 같은 색을 쓰도록 변수로 묶는다. */
.cat-1 {
  --tab: var(--cat-1);
  --tab-weak: var(--cat-1-weak);
}

.cat-2 {
  --tab: var(--cat-2);
  --tab-weak: var(--cat-2-weak);
}

.cat-3 {
  --tab: var(--cat-3);
  --tab-weak: var(--cat-3-weak);
}

.cat-4 {
  --tab: var(--cat-4);
  --tab-weak: var(--cat-4-weak);
}

.ticket.cat-1,
.ticket.cat-2,
.ticket.cat-3,
.ticket.cat-4 {
  border-top: 4px solid var(--tab);
}

.ticket.cat-1 .ticket-category,
.ticket.cat-2 .ticket-category,
.ticket.cat-3 .ticket-category,
.ticket.cat-4 .ticket-category {
  background: var(--tab-weak);
  color: var(--tab);
  font-size: 14px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 30px;
}

.ticket-years {
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 14px 0 2px;
}

.ticket-years b {
  color: var(--ink);
  font-weight: 600;
}

.roster {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.roster > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  list-style: none;
}

.roster > summary::-webkit-details-marker {
  display: none;
}

.roster > summary::after {
  content: " ▾";
  color: var(--muted);
}

.roster[open] > summary::after {
  content: " ▴";
}

.roster-caption {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

.roster-groups {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.roster-group {
  flex: 1 1 0;
  min-width: 0;
}

.roster-group-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 8px;
}

/* 인스타그램에 올리던 참가자 List처럼, 한 줄에 한 사람씩 선으로만 나눈다. */
.roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.roster-item {
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line-soft);
}

.roster-item:last-child {
  border-bottom: none;
}

.roster-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 700;
}

.roster-age,
.roster-job {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

.roster-charm {
  margin: 0;
  color: var(--ink-soft);
  text-align: center;
  overflow-wrap: anywhere;
}

.roster-empty {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  padding: 10px 0;
}

/* 셋로그 소개팅의 "심사 중" 자리. 확정된 사람과 헷갈리지 않도록 흐리게 둔다. */
.roster-item-pending {
  text-align: center;
}

.roster-pending {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px dashed var(--line-soft);
  color: var(--muted);
  font-style: italic;
}

.roster-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}
