/* ============================================
   Re:Stage — 공연 예매 페이지
   공연 프로그램북 톤 · 크림/잉크 + 오렌지 액센트
   모바일 우선
   ============================================ */
:root {
  --cream: #f6efe4;
  --cream-2: #efe4d3;
  --paper: #fffdf8;
  --ink: #2b2018;
  --ink-2: #5c4a3b;
  --ink-soft: #8d7b6c;
  --cta: #d9480f;
  --cta-dark: #b03a0b;
  --amber: #c98b2e;
  --line: #ddcdb6;
  --line-2: #e9dcc8;
  --kakao: #fee500;
  --r: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: 'Noto Serif KR', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.78;
  font-size: 16px;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding-bottom: 84px;
}
img { max-width: 100%; display: block; }
.accent { color: var(--cta); }
b, strong { font-weight: 700; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

section { padding: 46px 20px; max-width: 620px; margin: 0 auto; }

/* 섹션 표제 — 번호 + 라틴 라벨 + 세리프 제목 (좌측 정렬) */
.sec-head { margin-bottom: 22px; }
.sec-kicker {
  display: flex; align-items: center; gap: 9px;
  font-size: .68rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px;
}
.sec-kicker::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sec-num { color: var(--cta); font-variant-numeric: tabular-nums; }
.sec-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 1.9rem); line-height: 1.35; letter-spacing: -.02em;
}
.sec-title__sub { display: block; font-size: .74em; color: var(--cta); margin-top: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  min-height: 54px; padding: 0 28px; border: none; border-radius: var(--r);
  cursor: pointer; text-decoration: none; color: inherit;
  letter-spacing: -.01em;
  transition: background .2s, transform .12s var(--ease);
}
.btn--cta { background: var(--cta); color: #fff; }
.btn--cta:active { transform: translateY(1px); }
.btn--lg { min-height: 58px; font-size: 1.06rem; }
.btn--full { width: 100%; margin-top: 8px; }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); min-height: 44px; font-size: .9rem; }
.btn--kakao { background: var(--kakao); color: #3c1e1e; margin-top: 18px; }
.btn--copy { background: var(--ink); color: #fff; width: 100%; margin-top: 16px; }
.btn--copy.copied, #copyLink.copied { background: #2f6b3d; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ============================================
   HERO — 포스터 단독
   ============================================ */
.hero { padding: 26px 20px 6px; max-width: 620px; margin: 0 auto; text-align: center; }
/* 액자 프레임 — 매트지 여백 + 얇은 테두리 */
.hero__frame {
  background: var(--paper);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 18px 44px rgba(43,32,24,.18);
}
.hero__frame::after {
  content: ''; display: block; /* 내부 헤어라인 */
}
.hero__poster {
  width: 100%; border-radius: 0;
  outline: 1px solid rgba(43,32,24,.12); outline-offset: 0;
}
.hero__cta { margin-top: 26px; min-width: 220px; }
@media (min-width: 520px) { .hero__frame { padding: 18px; } }

/* ---------- 지원 문구 ---------- */
.support { padding: 30px 20px 12px; }
.support p {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 4px; text-align: center;
  font-size: .89rem; line-height: 1.75; color: var(--ink-2);
}
.support strong { color: var(--ink); font-weight: 700; }
.support .accent { color: var(--cta); }

/* ---------- 시놉시스 ---------- */
.synop__hook {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.12rem, 5vw, 1.32rem); line-height: 1.6;
  padding: 20px 0 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line); text-align: center;
}
.synop p:not(.synop__hook) { font-size: .97rem; line-height: 1.85; color: var(--ink-2); }
.synop p + p { margin-top: 13px; }

/* ---------- 배우 소개 ---------- */
.cast { display: flex; flex-direction: column; gap: 0; }
.actor { padding: 26px 0; border-top: 1px solid var(--line-2); }
.actor:first-of-type { border-top: none; padding-top: 4px; }
/* 사진 위에 이름·역·설명 오버레이 */
.actor__frame { position: relative; border-radius: 2px; overflow: hidden; }
.actor__photo {
  width: 100%; display: block; aspect-ratio: 4/3.6;
  object-fit: cover; object-position: center 18%;
}
.actor__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 46px 18px 18px; color: #fff;
  background: linear-gradient(to top, rgba(24,16,10,.86) 0%, rgba(24,16,10,.55) 45%, rgba(24,16,10,0) 100%);
}
.actor__name {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.34rem; letter-spacing: -.02em; color: #fff; line-height: 1.3;
}
.actor__name span {
  font-family: 'Noto Sans KR', sans-serif; font-weight: 500;
  color: rgba(255,255,255,.82); font-size: .86rem;
}
.actor__role { margin-top: 3px; font-size: .88rem; color: rgba(255,255,255,.78); }
.actor__hand {
  width: 100%; max-width: 430px; margin: 18px auto 0; display: block;
  opacity: .92;
}
@media (min-width: 620px) {
  .cast { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .actor:nth-of-type(2) { border-top: none; padding-top: 4px; }
}

/* ---------- Re:Stage 소개 ---------- */
.intro__box p { font-size: .97rem; line-height: 1.85; color: var(--ink-2); }
.intro__box p + p { margin-top: 13px; }
.intro__last { color: var(--ink) !important; margin-top: 16px !important; }
.dirs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.dir { text-align: center; }
.dir img {
  width: 100%; aspect-ratio: 1/1.18; object-fit: cover; object-position: center 18%;
  border-radius: 2px;
}
.dir figcaption { margin-top: 11px; display: flex; flex-direction: column; gap: 1px; }
.dir figcaption b { font-family: var(--serif); font-size: 1.02rem; font-weight: 700; }
.dir figcaption span { font-size: .76rem; color: var(--ink-soft); letter-spacing: -.01em; }

/* ---------- 기획 의도 + 슬라이더 ---------- */
.plan__box p { font-size: .97rem; line-height: 1.85; color: var(--ink-2); margin-bottom: 22px; }
.slider__track {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track img {
  flex: 0 0 84%; scroll-snap-align: center; width: 84%;
  aspect-ratio: 4/3; object-fit: cover; border-radius: 2px;
}
.slider__dots { display: flex; justify-content: center; gap: 5px; margin-top: 14px; }
.slider__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); transition: all .25s; }
.slider__dots i.active { background: var(--cta); width: 18px; border-radius: 3px; }
.slider__hint { text-align: center; font-size: .78rem; color: var(--ink-soft); margin-top: 10px; letter-spacing: .04em; }
@media (min-width: 620px) { .slider__track img { flex-basis: 47%; width: 47%; } }

/* ---------- 연출 한마디 ---------- */
.word__group { width: 100%; border-radius: 2px; margin-bottom: 24px; }
.word__box p { font-size: .97rem; line-height: 1.85; color: var(--ink-2); }
.word__box p + p { margin-top: 13px; }
.word__q {
  margin-top: 20px !important;
  font-family: var(--serif); font-size: 1.1rem !important; line-height: 1.6;
  color: var(--ink) !important; text-align: center;
}
/* 번호 없는 소제목 (연출 한마디) */
.sub-title {
  font-family: var(--serif); font-weight: 700; font-size: 1.32rem;
  letter-spacing: -.02em; margin-bottom: 18px;
}
.word__q b { font-weight: 700; }

/* ---------- 크레딧 ---------- */
.credit { margin-top: 30px; border-top: 1px solid var(--line); }
.credit__row {
  display: flex; gap: 14px; padding: 13px 2px;
  border-bottom: 1px solid var(--line-2); font-size: .93rem;
}
.credit__row > span {
  flex: 0 0 82px; color: var(--ink-soft); font-weight: 600;
  font-size: .78rem; letter-spacing: .06em; padding-top: 2px;
}
.credit__row b { flex: 1; font-weight: 600; }
.credit__row--sm b { font-size: .85rem; font-weight: 400; line-height: 1.75; color: var(--ink-2); }

/* ---------- 티켓 가격 ---------- */
.price-hi__box {
  border: 1px solid var(--ink); border-radius: var(--r);
  padding: 28px 22px; text-align: center; background: var(--paper);
  margin-bottom: 18px;
}
.price-hi__label {
  font-size: .7rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft);
}
.price-hi__amt { margin: 8px 0 4px; }
.price-hi__amt strong {
  font-family: var(--serif); font-size: clamp(2.9rem, 14vw, 3.7rem);
  font-weight: 700; color: var(--cta); letter-spacing: -.03em;
}
.price-hi__amt strong span { font-size: .34em; margin-left: 3px; letter-spacing: 0; }
.price-hi__note { margin-bottom: 20px; font-size: .85rem; color: var(--ink-soft); }
.price-hi__free { border-top: 1px dashed var(--line); padding-top: 18px; }
.free__head { font-size: .98rem; font-weight: 700; line-height: 1.65; }
.free__how {
  margin-top: 10px; font-size: .86rem; line-height: 1.75;
  color: var(--ink-2); font-weight: 400; text-wrap: pretty;
}
.price-hi__party {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2);
  font-size: .86rem; line-height: 1.8; color: var(--ink-2);
  text-align: left; text-wrap: pretty;
}
.price-hi__party b { color: var(--ink); font-weight: 700; }

/* 함께한 사람들 */
.withus .credit { margin-top: 0; }

/* ============================================
   공연 정보 · 예매
   ============================================ */
.perf {
  border: 1px solid var(--ink); border-radius: var(--r);
  background: var(--paper); padding: 26px 20px 22px; text-align: center;
  margin-bottom: 18px;
}
.perf__date {
  font-family: var(--serif); font-size: clamp(1.6rem, 7.5vw, 2rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
}
.perf__date span { font-size: .7em; }
.perf__time {
  font-family: var(--serif); font-size: clamp(2.1rem, 10vw, 2.7rem);
  font-weight: 700; color: var(--cta); letter-spacing: -.02em; line-height: 1.15; margin: 2px 0 12px;
}
.perf__hall { font-size: 1.08rem; font-weight: 700; }
.perf__hall small { display: block; font-size: .78rem; font-weight: 400; color: var(--ink-soft); margin-top: 1px; }
.perf__tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.perf__tags span {
  border: 1px solid var(--line); border-radius: 2px;
  padding: 6px 12px; font-size: .84rem; font-weight: 600; color: var(--ink-2);
}
.perf__tags .warn { border-color: var(--cta); color: var(--cta); }

.book__card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px 20px;
}
.book__seats {
  display: flex; align-items: baseline; gap: 8px; justify-content: center;
  padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line-2);
}
.book__seats span { font-size: .82rem; color: var(--ink-soft); letter-spacing: .06em; }
.book__seats b { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--cta); }
.book__seats small { font-size: .82rem; color: var(--ink-soft); }

.fld { display: block; margin-bottom: 18px; }
.fld > span { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.fld em { color: var(--cta); font-style: normal; }
.fld small { color: var(--ink-soft); font-weight: 400; font-size: .8rem; }
.fld input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fffefb; transition: border-color .18s;
}
.fld input:focus { outline: none; border-color: var(--cta); }
.fld.invalid input { border-color: #c62828; background: #fff7f6; }

.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 46px; height: 46px; border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--r); font-size: 1.3rem; font-weight: 600; color: var(--ink);
  cursor: pointer; font-family: inherit; transition: border-color .18s, color .18s;
}
.stepper button:hover:not([disabled]) { border-color: var(--cta); color: var(--cta); }
.stepper button[disabled] { opacity: .3; cursor: not-allowed; }
.stepper output {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  min-width: 34px; text-align: center;
}
.stepper__unit { font-size: .88rem; color: var(--ink-soft); }

.total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; margin: 4px 0 6px;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.total span { font-size: .86rem; color: var(--ink-soft); letter-spacing: .04em; }
.total b { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--cta); }
.book__hint { margin-top: 14px; font-size: .84rem; color: var(--ink-soft); line-height: 1.7; text-align: center; }

/* 예약 완료 */
.done, .closed { text-align: center; }
.done__ico, .closed__ico {
  font-family: var(--serif); font-size: 1.6rem; color: var(--cta);
  letter-spacing: .3em; margin-bottom: 10px;
}
.done h3, .closed h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.done__no { font-size: .92rem; color: var(--ink-2); margin-bottom: 20px; }
.done__no b { color: var(--cta); font-weight: 700; }
.closed p { font-size: .94rem; color: var(--ink-2); }

.pay {
  border: 1px solid var(--ink); border-radius: var(--r);
  padding: 22px 18px; text-align: center; background: #fffefb;
}
.pay__label {
  font-size: .7rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft);
}
.pay__amt {
  font-family: var(--serif); font-size: 2.1rem; font-weight: 700;
  color: var(--cta); margin: 4px 0 16px; letter-spacing: -.02em;
}
.pay__acc {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.pay__acc span { font-size: .84rem; color: var(--ink-soft); }
.pay__acc strong {
  font-family: var(--serif); font-size: clamp(1.4rem, 6.5vw, 1.75rem);
  font-weight: 700; letter-spacing: .01em;
}
.pay__note { margin-top: 14px; font-size: .84rem; color: var(--ink-2); line-height: 1.7; }

/* ---------- 오시는 길 ---------- */
.place { margin-top: 34px; }
.place__h {
  font-family: var(--serif); font-size: 1.14rem; font-weight: 700; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.place__box h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.place__addr { font-size: .95rem; line-height: 1.7; color: var(--ink-2); }
.place__addr--en { font-size: .8rem; color: var(--ink-soft); margin: 3px 0 14px; }
.place__row { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); margin-top: 4px; }
.place__row > span {
  flex: 0 0 58px; font-weight: 600; font-size: .8rem; color: var(--ink-soft);
  letter-spacing: .04em; padding-top: 2px;
}
.place__row p { flex: 1; font-size: .92rem; line-height: 1.7; }
.place__row small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .82rem; }

/* ---------- 관람 안내 ---------- */
.notice__intro {
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.notice__intro p { font-size: .95rem; line-height: 1.85; color: var(--ink-2); }
.notice__intro p + p { margin-top: 11px; }
.notice__list { list-style: none; display: flex; flex-direction: column; }
.notice__list li {
  position: relative; padding: 11px 0 11px 20px;
  font-size: .92rem; line-height: 1.7; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}
.notice__list li:last-child { border-bottom: none; }
.notice__list li::before {
  content: ''; position: absolute; left: 4px; top: 20px;
  width: 4px; height: 4px; background: var(--cta); border-radius: 50%;
}

/* ---------- 공유하기 ---------- */
.share__copy { text-align: center; }
.share__url {
  border: 1px dashed var(--line); border-radius: var(--r);
  padding: 14px 12px; margin-bottom: 14px; background: var(--paper);
  font-size: .84rem; font-weight: 500; color: var(--ink-2);
  word-break: break-all; line-height: 1.5; letter-spacing: -.01em;
}
.share__note { margin-top: 12px; font-size: .84rem; color: var(--ink-soft); }

/* ---------- Re:Stage 구경하기 ---------- */
.visit { padding-top: 10px; }
.share__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share__links a {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 10px; text-decoration: none; color: var(--ink);
  font-size: .92rem; font-weight: 600; transition: border-color .18s, color .18s;
}
.share__links a:hover { border-color: var(--cta); color: var(--cta); }
.share__free { margin-top: 16px; text-align: center; font-size: .89rem; color: var(--ink-2); }

/* ---------- 푸터 ---------- */
.foot {
  background: var(--ink); color: rgba(255,255,255,.7);
  text-align: center; padding: 46px 20px 52px;
}
.foot__logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.foot__logo span { color: var(--amber); }
.foot p { font-size: .9rem; }
.foot__sm { margin-top: 16px; font-size: .76rem; color: rgba(255,255,255,.45); line-height: 1.75; }

/* ---------- 모바일 하단 고정 예매 바 ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
  transform: translateZ(0); backface-visibility: hidden;
}
.sticky__info { display: flex; flex-direction: column; line-height: 1.3; }
.sticky__info b { font-family: var(--serif); font-size: 1.16rem; font-weight: 700; color: var(--cta); }
.sticky__info span { font-size: .78rem; color: var(--ink-soft); }
.sticky__btn {
  flex-shrink: 0; background: var(--cta); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .98rem; padding: 14px 26px; border-radius: var(--r);
}
.sticky__btn:active { transform: translateY(1px); }
.sticky.is-hidden { display: none; }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(14px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: var(--r);
  font-size: .92rem; font-weight: 600; z-index: 300; opacity: 0;
  transition: opacity .28s var(--ease), transform .28s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
