/* 티켓 예매 — 공통 스타일 */

@font-face {
  font-family: "Noto Sans KR";
  src: url("../assets/font/NotoSansKR-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #111216;
  --surface: #1B1D24;
  --surface-2: #252732;
  --text: #F7F7F8;
  --muted: #BEC0C8;
  --primary: #C71332;
  --primary-hover: #E0163D;
  --primary-pressed: #970E26;
  --disabled: #45464C;
  --disabled-text: #D7D8DD;
  --border: #343640;
  --border-strong: #50525B;
  --icon: #E34864;
  --sc: #D9284F;
  --gr: #338FC0;
  --floor-r: #8AC0CC;
  --gs: #E1AF32;
  --closed: #484C57;
  --tab-active-stroke: #F2637D;
  --accent-text: #F2637D;
  --max: 1280px;
  --gutter: 32px;
  --header-h: 76px;
  --band-h: 38px;
  --radius-card: 16px;
  --radius-btn: 12px;
  --section-gap: 88px;
  --shadow: 0 16px 40px rgba(0, 0, 0, .45);
  --focus: 2px solid #F7F7F8;
  /* 하단 고정바 높이. 고정바가 보일 때 스크립트가 실제 높이로 바꾼다. */
  --mobile-bar-h: 76px;
}

@media (max-width: 767.98px) {
  :root {
    --gutter: 20px;
    --header-h: 64px;
    --section-gap: 52px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body.has-mobile-bar { padding-bottom: 0; }
@media (max-width: 767.98px) {
  /* 하단 고정바의 실제 높이(스크립트가 --mobile-bar-h 로 넣음)만큼 여백을 둔다. */
  body.has-mobile-bar { padding-bottom: var(--mobile-bar-h); }
}

h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 1.1em; height: 1.1em; }

:focus-visible { outline: var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
/* 화면이 바뀔 때 읽기 위치를 옮기려고 초점을 준 제목·안내 상자는 누를 수 있는 요소가 아니므로 테두리를 그리지 않는다. */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, .form-error[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.noscript {
  padding: 24px var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-gap); }
.section:last-child { padding-bottom: var(--section-gap); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 32px; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 17px; }
@media (max-width: 767.98px) {
  .section-head h2 { font-size: 26px; }
  .section-head p { font-size: 16px; }
}

.eyebrow {
  display: inline-block;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 18px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }

/* ---------- 상태띠 · 헤더 ---------- */
.status-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.status-band .wrap {
  min-height: var(--band-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.status-band strong { color: var(--text); font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 18, 22, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark { display: block; }
.brand-mark svg { width: auto; height: 40px; }
.brand-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  .brand-mark svg { height: 34px; }
  .brand-tag { display: none; }
}

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > li { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover { background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--accent-text); }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  border-radius: 999px; background: var(--primary); color: var(--text);
  font-size: 12px; font-weight: 800; line-height: 1; vertical-align: middle;
}
.nav-link .caret { width: 12px; height: 12px; }
.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.nav-menu[hidden] { display: none; }
.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
}
.nav-menu a:hover { background: var(--surface-2); }
.nav-menu a[aria-current="page"] { color: var(--accent-text); }
.header-cta { margin-left: 8px; white-space: nowrap; }
.menu-toggle { display: none; }

@media (max-width: 1199.98px) {
  .site-header .main-nav, .site-header .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    margin-left: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
  }
  .menu-toggle img { width: 24px; height: 24px; }
}

/* 모바일 전체 메뉴 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
}
.drawer.is-open { display: block; }
.drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .6);
}
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  padding: 16px 20px 32px;
  overflow-y: auto;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-top strong { font-size: 18px; }
.drawer-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--bg); cursor: pointer;
}
.drawer-close img { width: 24px; height: 24px; }
.drawer-list a, .drawer-list .drawer-group {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}
.drawer-list a:hover { background: var(--surface-2); }
.drawer-list a[aria-current="page"] { color: var(--accent-text); }
.drawer-group { color: var(--muted); font-size: 14px !important; font-weight: 700 !important; padding-bottom: 4px !important; margin-top: 6px; }
.drawer-sub a { padding-left: 22px; font-weight: 500; }
.drawer-cta { margin-top: 18px; width: 100%; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn img { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-lg { min-height: 56px; padding: 12px 28px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: var(--text); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-pressed); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] {
  background: var(--disabled);
  color: var(--disabled-text);
  cursor: not-allowed;
}

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--primary-hover); }
.btn-secondary:active { background: var(--bg); border-color: var(--primary); }
.btn-secondary:disabled, .btn-secondary[aria-disabled="true"] {
  background: #202126;
  border-color: var(--border-strong);
  color: var(--disabled-text);
  cursor: not-allowed;
}

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }

.btn-primary img, .btn-secondary img { filter: none; }
.btn-primary img { filter: brightness(0) invert(1); }

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.tab[aria-selected="true"], .tab.is-active {
  background: var(--primary);
  border-color: var(--tab-active-stroke);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { background: var(--bg); }
.icon-btn img { width: 22px; height: 22px; }
.icon-btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 카드 · 표 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}
.card h3 { font-size: 20px; }
.card-grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023.98px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
.card-grid > *, .sessions-layout > *, .map-layout > *, .booking-layout > *, .split > *, .footer-grid > *, .change-lists > *, .time-cards > *, .choice-grid > *, .steps > * { min-width: 0; }

.photo-card { overflow: hidden; padding: 0; }
.photo-card .photo { aspect-ratio: 4 / 3; overflow: hidden; background: #0B0C0F; }
.photo-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-card .body { padding: 22px 24px 24px; }
.photo-card .body h3 { font-size: 22px; }
.price { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.grade-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: .02em;
}
.grade-chip::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--chip, var(--muted)); }
.grade-tier1 { --chip: var(--sc); }
.grade-tier2 { --chip: var(--gr); }
.grade-tier2f { --chip: var(--floor-r); }
.grade-tier3 { --chip: var(--gs); }
.grade-closed { --chip: var(--closed); }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius-card); }
.figure figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.img-fallback {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px; min-height: 160px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-card);
  color: var(--muted); font-size: 15px;
  background: var(--surface);
}

.info-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.info-table th, .info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.info-table th { width: 34%; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 표 칸은 낱말 가운데서 줄을 바꾸지 않는다. 문서 전체의 overflow-wrap: anywhere 를 그대로 두면 표가 칸 너비를
   한 글자 폭까지 줄여 금액·날짜·이름이 글자 단위로 끊긴다. 넓어진 표는 .table-scroll 안에서 가로로 밀어 본다. */
.compare-table th, .compare-table td, .section-table th, .section-table td { overflow-wrap: normal; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare-table thead th { color: var(--muted); font-weight: 600; font-size: 14px; }
.compare-table td:first-child { font-weight: 700; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  background: rgba(27, 29, 36, .8);
}
.badge-ended { border-color: var(--border-strong); color: var(--muted); }
.badge-accent { border-color: #7A1F35; background: #2A1119; color: var(--accent-text); }
.badge-ok { border-color: var(--text); background: rgba(247, 247, 248, .06); color: var(--text); }
.badge-off { border-color: var(--border-strong); background: #202126; color: var(--muted); }
.badge-list { display: flex; flex-wrap: wrap; gap: 8px; }

.note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
}
.note img { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 2px; }
.note strong { color: var(--text); }
.note-accent { border-color: #7A1F35; background: #23131A; color: var(--text); }
.note-error { border-color: #A3193A; background: #2E0F18; color: #FFD5DD; }

details.fold { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
details.fold summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px;
}
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; font-size: 22px; color: var(--muted); }
details.fold[open] summary::after { content: "–"; }
details.fold .fold-body { padding: 0 20px 20px; color: var(--muted); }
details.fold .fold-body p + p { margin-top: 10px; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #0B0C0F;
  isolation: isolate;
  display: flex;
}
.hero-sub { min-height: 560px; }
.hero picture {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero picture img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero .hero-fallback { position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 80% at 70% 60%, #3A0D18 0%, #111216 70%); }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 18, 22, .9) 0%, rgba(17, 18, 22, .66) 34%, rgba(17, 18, 22, .12) 62%, rgba(17, 18, 22, .3) 100%),
    linear-gradient(180deg, rgba(17, 18, 22, .35) 0%, rgba(17, 18, 22, 0) 30%, rgba(17, 18, 22, .8) 100%);
}
.hero .wrap { position: relative; z-index: 2; display: flex; flex-direction: column; }
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(44%, 560px);
  padding: 122px 0 64px;
  margin-left: max(0px, calc(8% - var(--gutter)));
}
.hero-sub .hero-content { padding: 150px 0 64px; width: min(46%, 600px); }
.hero-title { font-size: 64px; line-height: 1.05; letter-spacing: -.01em; }
.hero-title span { display: block; }
.hero-title .sub { font-size: 30px; font-weight: 700; margin-top: 10px; letter-spacing: .04em; }
.hero-sub .hero-title { font-size: 48px; line-height: 1.15; }
.hero-desc { font-size: 18px; color: var(--text); max-width: 34em; }
.hero-date { font-size: 22px; font-weight: 800; }
.hero-meta { font-size: 16px; color: var(--muted); }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

@media (max-width: 1279.98px) {
  .hero-title { font-size: 52px; }
  .hero-content { width: min(50%, 560px); padding-top: 96px; }
}
@media (max-width: 1023.98px) {
  .hero-title { font-size: 44px; }
  .hero-content { width: min(58%, 520px); }
}
@media (max-width: 767.98px) {
  .hero { min-height: 650px; }
  .hero-sub { min-height: 520px; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(17, 18, 22, .74) 0%, rgba(17, 18, 22, .46) 30%, rgba(17, 18, 22, .12) 48%, rgba(17, 18, 22, .88) 100%);
  }
  .hero .wrap { flex: 1 1 auto; }
  .hero-content, .hero-sub .hero-content {
    width: auto;
    margin-left: 0;
    padding: 56px 0 40px;
    gap: 12px;
    flex: 1 1 auto;
  }
  .hero-title { font-size: 36px; }
  .hero-title .sub { font-size: 20px; }
  .hero-sub .hero-title { font-size: 32px; }
  .hero-desc { font-size: 16px; }
  .hero-date { font-size: 18px; }
  .hero-cta { margin-top: auto; padding-top: 24px; }
  .hero-cta .btn-row .btn { flex: 1 1 140px; }
}

/* ---------- 홈: 회차·요약 ---------- */
.sessions-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 1023.98px) { .sessions-layout { grid-template-columns: 1fr; } }
.session-list { display: grid; gap: 14px; }
.session-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 18px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.session-item .num { font-size: 14px; font-weight: 700; color: var(--accent-text); letter-spacing: .06em; }
.session-item .date { font-size: 22px; font-weight: 800; }
.session-item .time { color: var(--muted); font-size: 15px; }
@media (max-width: 767.98px) {
  .session-item { grid-template-columns: 1fr; }
  .session-item .btn { justify-self: start; }
}
.summary-card .price { font-size: 30px; }
.summary-card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.summary-card .row:last-of-type { border-bottom: 0; }

/* 타임라인 */
.timeline { display: grid; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 0 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-dot { width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--border-strong); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); }
.timeline-item .label { font-weight: 700; }
.timeline-item .when { color: var(--muted); font-size: 15px; }
@media (max-width: 767.98px) {
  .timeline-item { grid-template-columns: 22px 1fr; }
  .timeline-item .badge { grid-column: 2; justify-self: start; margin-top: 6px; }
}

.schedule-list { display: grid; gap: 10px; }
.schedule-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.schedule-row .t { font-weight: 800; font-variant-numeric: tabular-nums; }
.schedule-row.is-key { border-color: #7A1F35; }
@media (max-width: 767.98px) { .schedule-row { grid-template-columns: 1fr; gap: 4px; } }

.time-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.time-card { text-align: center; padding: 30px 20px; }
.time-card .big { font-size: 48px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.time-card .lbl { color: var(--muted); font-size: 16px; margin-bottom: 8px; }
@media (max-width: 767.98px) { .time-card .big { font-size: 40px; } }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 767.98px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
.split .text h2, .split .text h3 { font-size: 28px; margin-bottom: 14px; }
.split .text p + p { margin-top: 12px; }
@media (max-width: 767.98px) { .split .text h2, .split .text h3 { font-size: 24px; } }

.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(17, 18, 22, .55); z-index: 1; }
.banner .banner-body { position: relative; z-index: 2; padding: 40px 24px; max-width: 640px; display: grid; gap: 14px; justify-items: center; }
.banner h2 { font-size: 30px; }
@media (max-width: 767.98px) { .banner h2 { font-size: 24px; } }

.faq-list { display: grid; gap: 12px; }

.address-card .addr { font-size: 18px; font-weight: 700; user-select: all; }
.toast-region {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 300;
  display: grid;
  gap: 8px;
  width: min(92vw, 480px);
  pointer-events: none;
}
@media (max-width: 767.98px) { .toast-region { bottom: 92px; } }
.toast {
  padding: 14px 18px;
  border-radius: 12px;
  background: #2B2D36;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-size: 15px;
  text-align: center;
}
.toast.is-error { border-color: #A3193A; background: #3A1420; }

/* ---------- 배치도 ---------- */
.map-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.map-tools .spacer { flex: 1 1 auto; }
.map-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.map-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.map-search label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); flex: 1 1 220px; min-width: 0; }
.map-search input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.map-search input:focus { border-color: var(--text); outline: none; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.legend-btn {
  --sw: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.legend-btn[aria-pressed="true"] { border-color: var(--text); background: var(--surface-2); }
.legend-btn .sw { width: 14px; height: 14px; border-radius: 3px; background: var(--sw); flex: 0 0 auto; }

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1023.98px) { .map-layout { grid-template-columns: 1fr; } }
.map-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  touch-action: pan-y;
  cursor: grab;
  min-height: 320px;
}
.map-viewport.is-zoomed { touch-action: none; }
.map-viewport.is-dragging { cursor: grabbing; }
.map-viewport:focus-visible { outline: var(--focus); outline-offset: 3px; }
.map-canvas { transform-origin: 0 0; will-change: transform; }
.map-canvas svg { display: block; width: 100%; height: auto; }
/* 무대·돌출 무대·범례 같은 장식 요소는 클릭을 가로채지 않게 하고, 구역 그룹만 포인터를 받는다. */
.map-canvas svg * { pointer-events: none; }
.map-canvas svg [data-section], .map-canvas svg [data-section] * { pointer-events: auto; }
.map-canvas svg [data-section] { cursor: pointer; }
.map-canvas svg [data-section]:hover path,
.map-canvas svg [data-section]:hover polygon { filter: brightness(1.18); }
.map-canvas svg [data-section]:focus { outline: none; }
.map-canvas svg [data-section]:focus-visible > path,
.map-canvas svg [data-section]:focus-visible > polygon,
.map-canvas svg [data-section].is-selected > path,
.map-canvas svg [data-section].is-selected > polygon {
  stroke: #F7F7F8;
  stroke-width: 3px;
  paint-order: stroke fill;
}
.map-canvas svg.has-filter [data-section]:not(.is-match) { opacity: .22; }
.map-canvas svg[hidden] { display: none !important; }
.map-reset-float {
  display: none;
}
@media (max-width: 767.98px) {
  .map-reset-float {
    display: inline-flex;
    position: absolute;
    right: 12px; bottom: 12px;
    z-index: 3;
  }
}
.map-zoom-level { font-size: 14px; color: var(--muted); min-width: 4.5em; text-align: center; }
.map-panel { position: sticky; top: calc(var(--header-h) + 16px); }
.map-panel .panel-empty { color: var(--muted); }
.map-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 14px 0 0; }
.map-panel dt { color: var(--muted); font-size: 14px; }
.map-panel dd { margin: 0; font-weight: 600; }
.map-panel .panel-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.change-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767.98px) { .change-lists { grid-template-columns: 1fr; } }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip-list button, .chip-list span.chip {
  padding: 6px 12px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.chip-list button:hover { border-color: var(--text); }
.section-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 15px; }
.section-table th, .section-table td { white-space: nowrap; }
.section-table th, .section-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.section-table th { color: var(--muted); font-weight: 600; }
.section-table td:first-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.chip-btn {
  padding: 6px 12px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.chip-btn:hover { border-color: var(--text); }

/* ---------- 예매 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 28px; counter-reset: step; }
.steps li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.steps li .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--border); color: var(--text); font-size: 13px; flex: 0 0 auto;
}
.steps li[aria-current="step"] { color: var(--text); border-color: var(--tab-active-stroke); }
.steps li[aria-current="step"] .n { background: var(--primary); }
.steps li.is-done .n { background: var(--primary-pressed); }
@media (max-width: 767.98px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { font-size: 13px; padding: 10px 12px; }
}

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 1023.98px) { .booking-layout { grid-template-columns: 1fr; } }
.booking-block { margin-bottom: 36px; }
.booking-block h2 { font-size: 24px; margin-bottom: 6px; }
.booking-block .hint { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 767.98px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 18px 18px 16px;
  min-height: 48px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.choice:hover { background: var(--surface-2); }
.choice[aria-pressed="true"] { border-color: var(--tab-active-stroke); background: #23131A; }
.choice .choice-title { font-size: 18px; font-weight: 800; }
.choice .choice-sub { color: var(--muted); font-size: 14px; }
.choice .choice-state {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-size: 13px; font-weight: 700; color: var(--accent-text);
  min-height: 20px;
}
.choice .choice-state img { width: 18px; height: 18px; }
.choice[aria-pressed="false"] .choice-state { color: var(--muted); }
.choice .choice-flag { font-size: 12px; color: var(--muted); }

.seat-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.seat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.seat-legend i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; border: 1px solid var(--border-strong); }
.seat-legend .i-free { background: var(--surface-2); }
.seat-legend .i-sel { background: var(--primary); border-color: var(--tab-active-stroke); }
.seat-legend .i-off { background: #202126; border-style: dashed; }
.seat-legend .i-block, .seat.is-blocked, .seat.is-blocked[aria-disabled="true"] {
  background: repeating-linear-gradient(135deg, #3A1420 0 4px, #1B1D24 4px 8px);
  border-color: #7A1F35;
  border-style: solid;
}
.seat-grid-wrap { overflow-x: auto; padding-bottom: 6px; }
.seat-grid .row-label { display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
.seat {
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.seat:hover { border-color: var(--text); }
.seat[aria-pressed="true"] { background: var(--primary); border-color: var(--tab-active-stroke); }
.seat[aria-disabled="true"] { background: #202126; border-style: dashed; color: #8A8D98; cursor: not-allowed; }

.summary-panel { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-panel h2 { font-size: 20px; margin-bottom: 10px; }
.summary-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 0 0 16px; }
.summary-panel dt { color: var(--muted); font-size: 14px; }
.summary-panel dd { margin: 0; font-weight: 600; text-align: right; }
.summary-panel .empty { color: var(--muted); padding: 12px 0 18px; }
.summary-panel .missing { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 1023.98px) { .summary-panel { position: static; } }

.form-error {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #A3193A;
  background: #2E0F18;
  color: #FFD5DD;
  font-size: 15px;
  font-weight: 600;
}
.form-error[hidden] { display: none; }

.check {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 15px;
}
.check + .check { margin-top: 10px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--primary); }
.check.is-invalid { border-color: #A3193A; }

.price-panel .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.price-panel .row:last-of-type { border-bottom: 0; }
.price-panel .row.total { font-size: 20px; font-weight: 800; }
.price-panel .row.paid { color: var(--accent-text); font-weight: 800; }

.complete-head { text-align: center; padding: 20px 0 8px; display: grid; justify-items: center; gap: 12px; }
.complete-head img { width: 48px; height: 48px; }
.complete-head h1 { font-size: 32px; }
@media (max-width: 767.98px) { .complete-head h1 { font-size: 26px; } }
.ticket-card { max-width: 640px; margin: 24px auto 0; }
.ticket-card .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--border-strong); }
.ticket-card .code { font-size: clamp(20px, 6vw, 26px); font-weight: 900; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.ticket-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 16px 0 0; }
.ticket-card dt { color: var(--muted); font-size: 14px; }
.ticket-card dd { margin: 0; font-weight: 600; }

.booking-list { display: grid; gap: 14px; }
.danger-zone { border-color: #5A1A2B; }
.btn-danger { background: transparent; color: var(--accent-text); border-color: #7A1F35; }
.btn-danger:hover { background: #2A1119; }

.empty-state { text-align: center; padding: 40px 20px; display: grid; gap: 16px; justify-items: center; }
.empty-state p { color: var(--muted); font-size: 17px; }

/* ---------- 대화상자 ---------- */
.dialog {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dialog.is-open { display: flex; }
.dialog-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .66); }
.dialog-box {
  position: relative;
  width: min(480px, 100%);
  padding: 26px 24px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.dialog-box h2 { font-size: 20px; margin-bottom: 10px; }
.dialog-box p { color: var(--muted); }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }

/* ---------- 푸터 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--border);
}
.site-footer .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .9; }
.site-footer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 18, 22, .78), rgba(17, 18, 22, .9)); z-index: 1; }
.site-footer .wrap { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 56px; display: grid; gap: 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 767.98px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 24px; margin-bottom: 10px; }
.site-footer p { color: var(--muted); font-size: 15px; }
.site-footer h3 { font-size: 15px; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; color: var(--text); }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.footer-links a .ext { font-size: 12px; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 999px; padding: 1px 7px; text-decoration: none; }
.footer-fine { font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 18px; display: grid; gap: 4px; }

/* ---------- 모바일 하단 고정바 ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(17, 18, 22, .96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  align-items: center;
  gap: 12px;
}
@media (max-width: 767.98px) { .mobile-bar.is-visible { display: flex; } }
.mobile-bar .state { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.mobile-bar .state strong { font-size: 15px; }
.mobile-bar .state span { font-size: 12px; color: var(--muted); }
.mobile-bar .btn { flex: 0 0 auto; min-width: 128px; }

/* ---------- 오류 페이지 ---------- */
.not-found { text-align: center; padding: 100px 0 60px; display: grid; gap: 16px; justify-items: center; }
.not-found h1 { font-size: 30px; }

/* ---------- 인쇄 ---------- */
@media print {
  .status-band, .site-header, .mobile-bar, .drawer, .toast-region, .skip-link, .map-tools, .map-search, .hero .btn-row, .hero-cta { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .note { border-color: #999; background: #fff; color: #000; }
  a { color: #000; }
}

/* ======================================================================
   예매 서비스 추가 구성 요소 (회원·예매 창·예매 내역)
   ====================================================================== */

/* ---------- 헤더: 글자 상표 · 로그인 영역 ---------- */
.brand-text {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.2;
}
@media (max-width: 767.98px) {
  .brand-text { max-width: 200px; font-size: 18px; }
}
.header-auth { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.header-auth .nav-link { font-size: 14px; padding: 0 10px; color: var(--muted); }
.header-auth .nav-link:hover { color: var(--text); }
.header-auth .header-user { color: var(--text); font-weight: 700; }
.header-auth span.header-user { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
@media (max-width: 1199.98px) {
  .site-header .header-auth { display: none; }
}
.drawer-auth { padding: 4px 0 16px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.drawer-user { display: grid; gap: 2px; margin-bottom: 12px; }
.drawer-auth .btn-row .btn { flex: 1 1 120px; }

/* ---------- 쪽 제목 ---------- */
.page-head { padding-top: 48px; }
.page-head h1 { font-size: 34px; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 17px; }
@media (max-width: 767.98px) {
  .page-head { padding-top: 32px; }
  .page-head h1 { font-size: 28px; }
}
.page-head.is-center { text-align: center; }
.section-tight { padding-top: 28px; }
.section-tight:last-child { padding-bottom: var(--section-gap); }

.text-strong { color: var(--text); font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.text-link img { width: 18px; height: 18px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { font-size: 20px; margin-bottom: 12px; }

/* ---------- 메인: 회차·예매 방법·소개 ---------- */
.session-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767.98px) {
  .session-actions { justify-content: flex-start; }
}
.summary-cta { margin-top: 16px; }
.intro-text { margin-top: 28px; max-width: 760px; }
.intro-text h2 { font-size: 32px; margin-bottom: 14px; }
.intro-text p + p { margin-top: 10px; }
@media (max-width: 767.98px) { .intro-text h2 { font-size: 26px; } }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1023.98px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .process { grid-template-columns: 1fr; } }
.process-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.process-item .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--text); font-weight: 800;
}
.process-item h3 { font-size: 17px; margin-bottom: 4px; }
.process-item p { font-size: 15px; }

/* ---------- 배치도 회차 선택 ---------- */
.session-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tab[aria-pressed="true"] { background: var(--primary); border-color: var(--tab-active-stroke); }
.map-canvas svg.has-dim [data-section].is-dim { opacity: .22; }
.map-canvas svg [data-section].is-soldout path,
.map-canvas svg [data-section].is-soldout polygon { filter: grayscale(1) brightness(.6); }
.map-canvas svg [data-section].is-disabled { cursor: not-allowed; }
.map-canvas svg [data-section].is-disabled:hover path,
.map-canvas svg [data-section].is-disabled:hover polygon { filter: none; }

/* ---------- 입력 양식 ---------- */
.field { display: grid; gap: 6px; align-content: start; margin-bottom: 16px; min-width: 0; }
.field label { font-size: 15px; font-weight: 600; }
.input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
textarea.input { padding: 12px 14px; min-height: 112px; resize: vertical; line-height: 1.6; }
select.input { padding-right: 36px; }
.input::placeholder { color: #9A9DA8; opacity: 1; }
.input:focus { border-color: var(--text); outline: none; }
.input:focus-visible { outline: var(--focus); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: #D9284F; }
.input[readonly] { background: #202126; color: var(--disabled-text); }
.input-code { font-size: 26px; font-weight: 800; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.field-hint { font-size: 14px; color: var(--muted); }
.field-error { font-size: 14px; font-weight: 600; color: #FFB3C1; }
.field-error[hidden] { display: none; }
.check .field-error { flex-basis: 100%; }
.check { flex-wrap: wrap; }
.check > span { flex: 1 1 0; min-width: 0; }

.auth-card { max-width: 520px; margin: 0 auto; }
.auth-title { font-size: 24px; margin-bottom: 8px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 18px; margin-top: 18px; font-size: 15px; }
.auth-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.consent-fold { margin-top: 4px; }
.consent-fold summary { font-size: 15px; }
.consent-fold .fold-body { font-size: 14px; }
.form-error a { color: #FFD5DD; font-weight: 700; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: 14px; border-width: 2px; }

/* ---------- 예매 조회 ---------- */
.booking-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.booking-code { font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.deadline-left { color: var(--accent-text); }
.lookup-card { max-width: 760px; margin: 0 auto; }
.lookup-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
@media (max-width: 767.98px) { .lookup-fields { grid-template-columns: minmax(0, 1fr); } }
.lookup-fields .input { width: 100%; }
.input-code4 { font-size: 22px; font-weight: 800; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.lookup-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.lookup-top p { min-width: 0; flex: 1 1 240px; }
.ticket-no { font-size: 18px; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.ticket-no-block { display: grid; gap: 2px; min-width: 0; }
.ticket-no-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.ticket-card .top h2.code { margin: 0; }
.ticket-card .code { overflow-wrap: anywhere; }
.status-pending { border-color: #8A6A1F; background: #2A230F; color: #F2CD6B; }
.status-confirmed { border-color: var(--text); background: rgba(247, 247, 248, .06); color: var(--text); }
.status-cancelled { border-color: var(--border-strong); background: #202126; color: var(--muted); }
.status-requested { border-color: #2F6E91; background: #0F2230; color: #9ED4F0; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1023.98px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-layout > * { min-width: 0; }
.deposit-card { border-color: #7A1F35; }
.deposit-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; margin: 16px 0 0; }
.deposit-list dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.deposit-list dd { margin: 0; font-weight: 600; }
.deposit-list dd .btn { margin-left: 8px; vertical-align: middle; }
.deposit-amount { font-size: 22px; font-weight: 800 !important; color: var(--accent-text); }
.ticket-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.ticket-dl dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.ticket-dl dd { margin: 0; font-weight: 600; }
.confirm-title, .complete-head h1 { font-size: 30px; }
@media (max-width: 767.98px) { .confirm-title, .complete-head h1 { font-size: 24px; } }
@media (max-width: 419.98px) {
  .deposit-list, .ticket-dl { grid-template-columns: 1fr; gap: 2px; }
  .deposit-list dd, .ticket-dl dd { margin-bottom: 10px; }
  .deposit-list dd .btn { margin: 8px 0 0; }
}

/* ---------- 예매 창 ---------- */
.bk-body { min-height: 100vh; }
.bk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 18, 22, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.bk-header-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.bk-header .spacer { flex: 1 1 auto; }
.bk-title { font-size: 15px; font-weight: 700; color: var(--muted); border-left: 1px solid var(--border); padding-left: 12px; white-space: nowrap; }
.bk-user { font-size: 14px; color: var(--muted); white-space: nowrap; }
@media (max-width: 479.98px) {
  .bk-user, .bk-title { display: none; }
  .bk-brand { max-width: 170px; }
}
.bk-main { padding: 24px 0 64px; }
.bk-main:focus { outline: none; }
.bk-head { margin-bottom: 20px; }
.bk-head h1 { font-size: 28px; }
.bk-head p { margin-top: 6px; }
@media (max-width: 767.98px) { .bk-head h1 { font-size: 22px; } }
.bk-message { margin-top: 24px; }
.bk-login { margin-top: 12px; }
.bk-map { min-height: 260px; }
@media (max-width: 767.98px) {
  .map-tools .map-reset-btn { display: none; }
}
.chips-title { font-size: 16px; margin: 16px 0 8px; }
.section-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.section-chip { display: inline-grid; gap: 0; text-align: left; line-height: 1.3; padding: 6px 12px; }
.section-chip .chip-sub { font-size: 13px; font-weight: 600; color: var(--muted); }
.section-chip[aria-pressed="true"] { background: #23131A; border-color: var(--tab-active-stroke); }
.section-chip[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.choice[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.choice[aria-disabled="true"]:hover { background: var(--surface); }
/* --seat-min: 좌석 한 칸의 최소 폭. PC 화면에서는 좌석표 전체가 한눈에 들어오도록 예매 창이 24~34px 로 바꿔 넣는다. */
.seat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; --cols: 12; --seat-min: 34px; min-width: min-content; }
.seat-row { display: grid; grid-template-columns: 28px repeat(var(--cols), minmax(var(--seat-min), 1fr)); gap: 4px; }
.seat-scroll-note { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.seat-row > span[role="gridcell"] { display: block; min-width: 0; }
.seat-row .seat { width: 100%; min-height: 36px; padding: 0; font-size: 12px; border-radius: 8px; }
.summary-amount { font-size: 20px; font-weight: 800; color: var(--accent-text); }
/* 금액은 숫자와 '원'이 줄에서 떨어지지 않게 한다. */
.summary-amount, .deposit-amount, .stat-value, .price-panel .row > span:last-child { white-space: nowrap; }
.price-panel .row > span:first-child { min-width: 0; }
.bk-body .summary-panel { top: 80px; }
.bk-body .summary-panel dd { overflow-wrap: anywhere; }

/* 결제 방법 · 인증 완료 표시 · 승인 대기 */
.pay-method { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.pay-option { border-color: var(--tab-active-stroke); background: #23131A; }
.pay-desc { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.pay-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: pay; }
.pay-flow li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 12px; align-items: start; counter-increment: pay; }
.pay-flow li::before {
  content: counter(pay);
  grid-row: span 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  font-size: 14px; font-weight: 800;
}
.pay-flow li strong { font-size: 15px; }
.pay-flow li span { color: var(--muted); font-size: 14px; }
.verified-line {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 10px 14px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: 14px; font-weight: 700;
}
.verified-line img { width: 18px; height: 18px; flex: 0 0 auto; }
/* 좁은 휴대폰에서는 예매 창의 버튼을 한 줄에 하나씩 같은 폭으로 둔다. */
@media (max-width: 479.98px) {
  .bk-main .btn-row > .btn { flex: 1 1 100%; }
}
.wait-card { border-color: #2F6E91; }
.wait-line { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.wait-dot { width: 10px; height: 10px; border-radius: 50%; background: #9ED4F0; flex: 0 0 auto; animation: wait-pulse 1.6s ease-in-out infinite; }
@keyframes wait-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media print {
  .bk-header, .ad-header, .ad-nav, .ad-savebar, .header-auth, .deposit-list .btn, .lookup-top .btn, [data-lookup-refresh], #lookup-cancel { display: none !important; }
}

/* 내 예매·결제 */
.my-page-layout { display:grid; grid-template-columns:minmax(240px,320px) minmax(0,1fr); gap:24px; align-items:start; }
.my-account { overflow-wrap:anywhere; }
.my-account > p { margin-top:8px; }
.my-account .fold { margin-top:22px; }
.my-list-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.my-booking h3 { margin:16px 0 8px; }
.my-booking > p { margin:8px 0; }
.my-booking .my-amount { font-size:24px; font-weight:700; margin:18px 0; }
.my-bank { padding:16px; border:1px solid var(--border); border-radius:10px; margin:12px 0; overflow-wrap:anywhere; }
.my-bank .btn { margin:10px 0; }
.my-booking .note { margin:16px 0; }
.dialog-box { max-height:calc(100dvh - 40px); overflow-y:auto; }
@media (max-width:760px) { .my-page-layout { grid-template-columns:1fr; } .my-booking { padding:20px; } }

/* 입금 안내 · 고유 입금코드 */
.transfer-card { margin:20px 0; padding:22px; border:1px solid #9c354b; border-radius:14px; background:linear-gradient(130deg,#351c28,#231f2b 78%); }
.transfer-eyebrow { display:block; color:#ff9aac; font-size:11px; font-weight:800; letter-spacing:.12em; margin-bottom:5px; }
.transfer-card h3 { font-size:15px; margin:0; font-weight:600; }
.transfer-code-row { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:10px 0; }
.transfer-code { font-size:34px; font-weight:800; letter-spacing:.12em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.transfer-card p { color:#dbd9e0; font-size:13px; margin:7px 0; line-height:1.65; }
.transfer-guide-link { display:inline-flex; gap:7px; padding:0; margin-top:5px; background:none; border:0; font-size:12px; cursor:pointer; }
.transfer-card .transfer-copy-status { min-height:0; color:#b4edcd; margin:0; }
.payment-dialog-box { width:min(100%,500px); border:1px solid #4a3540; padding:30px; background:linear-gradient(155deg,#23232d,#171920 65%); }
.payment-dialog-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.payment-dialog-top .icon-btn { font-size:26px; min-width:32px; min-height:32px; }
.payment-dialog-box h2 { font-size:25px; letter-spacing:-.04em; margin:0 0 10px; }
.payment-dialog-lead { line-height:1.85; color:var(--muted); font-size:13px; margin:0 0 22px; }
.guide-code { display:flex; flex-direction:column; align-items:center; padding:24px 20px; background:#33212c; border:1px solid #704051; border-radius:14px; gap:10px; }
.guide-code>span:first-child { font-size:13px; color:#ecc7d0; }
.guide-code>strong { font-size:44px; letter-spacing:.14em; font-weight:800; line-height:1.25; font-variant-numeric:tabular-nums; word-break:break-all; }
.guide-code [data-copy-status] { font-size:12px; color:#b4edcd; }
.guide-code [data-copy-status]:empty { display:none; }
.guide-instruction { text-align:center; font-size:14px; line-height:1.8; margin:20px 0; }
.guide-warning { padding:15px 17px; margin:18px 0; background:#342b22; border-radius:10px; border-left:3px solid #dfb073; color:#f4d6ae; font-size:13px; }
.guide-warning p { margin:5px 0 0; line-height:1.75; }
.guide-confirm { width:100%; margin-top:20px; min-height:48px; }
.report-expected { display:flex; justify-content:space-between; align-items:center; padding:14px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin-bottom:20px; font-size:13px; }
.report-expected strong { font-size:23px; font-weight:800; }
.payment-report-form .field { margin-bottom:17px; }
.payment-report-form label { font-size:13px; }
.payment-report-form .report-reference { font-size:22px; font-weight:700; letter-spacing:.05em; }
.payment-report-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.payment-report-grid .field { min-width:0; }
.report-mismatch { font-size:12px; line-height:1.7; color:#f4d6ae; margin-bottom:18px; }
@media(max-width:480px) {
 .payment-dialog-box { padding:22px 20px; }
 .payment-dialog-box h2 { font-size:22px; }
 .guide-code>strong { font-size:37px; }
 .transfer-card { padding:18px; }
 .transfer-code { font-size:30px; }
 .payment-report-grid { gap:10px; }
 .payment-report-form input[type=datetime-local] { min-width:0; max-width:100%; }
}

.my-payment-panels { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; margin:16px 0; }
.my-payment-panels .my-bank { margin:0; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:10px; padding:22px; }
.my-payment-panels .my-bank .btn { margin:0; }
.my-payment-panels .transfer-card { margin:0; }
@media(max-width:1050px) { .my-payment-panels { grid-template-columns:1fr; } }

/* 상태 조회는 모든 예매 완료 단계에서 같은 위치에 표시한다. */
.booking-live{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding:16px 20px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--muted);font-size:13px}
.booking-live p{margin:0}.booking-live .btn{flex-shrink:0}.booking-live.is-stale{background:#332914;border-color:#977634;color:#f6d78e}
@media(max-width:600px){.booking-live{align-items:flex-start;flex-direction:column;padding:14px}}
