:root {
  --bg: #000;
  --fg: #fff;
  --dim: rgba(255, 255, 255, 0.5);
  --faint: rgba(255, 255, 255, 0.26);
  --line: rgba(255, 255, 255, 0.22);
  --fill: rgba(255, 255, 255, 0.08);
  --fill-hover: rgba(255, 255, 255, 0.14);
  --pink: #ea40b3;
  --font: "Helvetica Neue", Helvetica, "Pretendard Variable", Pretendard, Arial, sans-serif;
  --gutter: clamp(16px, 2.6vw, 40px);
  --col-gap: clamp(16px, 2vw, 32px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
}
h1, h2, h3, h4, b, strong { font-weight: 500; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.pink { color: var(--pink); }
.dim { color: var(--dim); }
:focus-visible { outline: 1px solid var(--pink); outline-offset: 3px; }
::selection { background: var(--pink); color: #fff; }

/* ── Boot: loader → intro ─────────────────────────────── */
#boot {
  position: fixed; inset: 0; z-index: 100;
  background: #020202;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
#boot video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity 0.5s ease;
}
#boot .intro { opacity: 0; background: #000; }
#boot.is-intro { background: #000; }
#boot.is-intro .intro { opacity: 1; }
#boot.is-intro .loader { opacity: 0; }
#boot .skip {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--faint); background: none; border: 0; cursor: pointer;
}
#boot.is-out { opacity: 0; pointer-events: none; }
html.booted #boot { display: none; }
html:not(.booted) body { overflow: hidden; }

.rise { opacity: 0; transform: translateY(12px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
html.booted .rise { opacity: 1; transform: none; }
html.booted .rise:nth-child(2) { transition-delay: 0.08s; }
html.booted .rise:nth-child(3) { transition-delay: 0.16s; }

/* ── Grid ─────────────────────────────────────────────── */
.page { padding: 0 var(--gutter); }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); }
.half { grid-column: span 2; }
.rule { border-top: 1px solid var(--line); padding-top: 14px; }
.lab { color: var(--dim); font-size: inherit; font-weight: 400; }

/* ── Top bar ──────────────────────────────────────────── */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  padding: 20px var(--gutter) 28px;
  align-items: center;
  background: linear-gradient(#000 55%, rgba(0, 0, 0, 0));
}
.bar .logo { display: block; flex: none; }
.bar .logo img { height: 13px; width: auto; max-width: none; }  /* 칸이 좁아도 비율 유지 */
.bar nav { display: flex; gap: 28px; }
.bar .end { grid-column: 4; justify-self: end; }
.bar a:hover { color: var(--pink); }

/* ── Big type ─────────────────────────────────────────── */
.headline {
  padding-top: clamp(104px, 12vw, 160px);
  font-size: clamp(40px, 7vw, 108px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.012em;
}
.headline .lt { display: block; font-weight: 400; color: var(--pink); letter-spacing: 0; }
.statement {
  padding: clamp(120px, 16vw, 220px) 0;
  text-align: center;
  font-size: clamp(26px, 3.5vw, 52px);
  font-weight: 500;
  line-height: 1.32;
  text-wrap: balance;
}
.statement p { max-width: 20em; margin: 0 auto; }

.meta { margin-top: clamp(120px, 17vw, 240px); row-gap: 24px; }
.meta .lab { display: block; }

/* ── Home ─────────────────────────────────────────────── */
.home-hero { padding-top: clamp(96px, 11vw, 150px); }
.wordmark { width: 100%; height: auto; }
.home-sub {
  margin-top: clamp(20px, 2.4vw, 36px);
  font-size: clamp(28px, 4.6vw, 70px);
  font-weight: 400; line-height: 1.04;
  color: var(--pink);
}
.list { margin-top: clamp(96px, 12vw, 180px); border-top: 1px solid var(--line); }
.row {
  align-items: baseline;
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--line);
}
.row .no { color: var(--dim); }
.row .t { grid-column: span 2; font-size: clamp(34px, 5.4vw, 84px); font-weight: 500; line-height: 1; letter-spacing: -0.01em; }
.row .s { justify-self: end; text-align: right; }
.row .t .mo { font-size: max(15px, 0.24em); font-weight: 400; letter-spacing: 0; vertical-align: top; position: relative; top: 0.35em; margin-left: 0.45em; color: var(--dim); }
.row .t .mo:empty { display: none; }
a.row:hover .t { color: var(--pink); }
.row.soon .t { color: var(--faint); }
.row.soon .s { color: var(--dim); }

/* ── Workshop: sessions ───────────────────────────────── */
.sessions { margin-top: clamp(96px, 12vw, 160px); list-style: none; border-top: 1px solid var(--line); }
.sessions li { padding: 16px 0 30px; border-bottom: 1px solid var(--line); align-items: start; }
.sessions .k { line-height: 1.5; }
.sessions .k .when { display: block; color: var(--pink); }
.sessions .k .when:empty { display: none; }
.sessions .v { grid-column: span 3; font-size: clamp(24px, 3.2vw, 48px); line-height: 1.1; letter-spacing: -0.008em; }
.sessions .v b { display: block; }
.sessions .v span { display: block; font-weight: 400; color: var(--dim); letter-spacing: 0; }

/* credits-style rows: label left half, content right half */
.cred { padding: 14px 0 0; border-top: 1px solid var(--line); row-gap: 28px; }
.cred + .cred { margin-top: 72px; }
.cred .body { grid-column: 3 / span 2; }
.prose p { font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.steps { list-style: none; margin-top: 40px; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 2.6em 1fr; gap: 0 8px; font-size: 15px; line-height: 1.65; }
.steps .n { color: var(--pink); }
.steps b { display: block; font-size: 15px; }
.steps p { color: var(--dim); }

/* ── Apply ────────────────────────────────────────────── */
.apply { margin-top: clamp(120px, 14vw, 200px); }
.apply aside { align-self: start; position: sticky; top: 80px; }
.seat-num { margin-top: 18px; font-size: clamp(56px, 7vw, 104px); font-weight: 500; line-height: 0.9; letter-spacing: -0.02em; }
.seat-num small { font-size: 0.32em; font-weight: 400; color: var(--dim); letter-spacing: 0; margin-left: 0.2em; }
.dots { display: flex; gap: 6px; margin-top: 18px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--fill-hover); }
.dots i.on { background: var(--pink); }
.clock { margin-top: 24px; }
.clock .lab { display: block; }
.clock .t { display: block; margin-top: 2px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.clock.stopped .t { color: var(--pink); }
.clock.waiting .t { color: var(--faint); }
.aside-meta { margin-top: 28px; line-height: 1.5; }

.form { display: grid; gap: 44px; }
.f > .q { display: block; margin-bottom: 12px; color: var(--dim); }
.f > .q small { font-size: inherit; color: var(--faint); margin-left: 8px; }
.f .hint { margin-top: 8px; font-size: 13px; color: var(--dim); }
.input {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 0 10px;
  font-size: 19px;
  border-radius: 0;
  transition: border-color 0.2s;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--fg); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 9px 15px 8px;
  border-radius: 99px;
  background: var(--fill);
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.chip:hover span { background: var(--fill-hover); }
.chip input:checked + span { background: var(--fg); color: #000; }
.chip input:focus-visible + span { outline: 1px solid var(--pink); outline-offset: 2px; }

.levels { display: grid; gap: 6px; }
.level { position: relative; }
.level input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.level div {
  display: grid; grid-template-columns: 7.5em 1fr; gap: 12px;
  padding: 14px 16px;
  background: var(--fill);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.level b { font-size: 14px; }
.level p { font-size: 14px; line-height: 1.6; color: var(--dim); }
.level:hover div { background: var(--fill-hover); }
.level input:checked + div { background: var(--fg); color: #000; }
.level input:checked + div p { color: rgba(0, 0, 0, 0.6); }
.level input:focus-visible + div { outline: 1px solid var(--pink); outline-offset: 2px; }

.f.err > .q, .f.err .check > span { color: var(--pink); }
.f.err .input { border-color: var(--pink); }
.f.err .chip span, .f.err .level div { box-shadow: inset 0 0 0 1px rgba(234, 64, 179, 0.7); }
.f.err .check input { border-color: var(--pink); }

.pay { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 14px; }
.pay .price { font-size: clamp(32px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.pay .price small { font-size: 15px; font-weight: 400; color: var(--dim); margin-left: 10px; letter-spacing: 0; }
.acct { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.acct b { font-weight: 400; font-variant-numeric: tabular-nums; }
.copy {
  background: var(--fill); border: 0; border-radius: 99px;
  padding: 5px 12px 4px; font-size: 12px; cursor: pointer;
}
.copy:hover { background: var(--fill-hover); }

.checks { display: grid; gap: 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.5; }
.check input {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 18px; height: 18px; margin-top: 2px;
  border: 1px solid var(--faint); border-radius: 0;
  display: grid; place-items: center; cursor: pointer;
}
.check input:checked { background: var(--fg); border-color: var(--fg); }
.check input:checked::after { content: ""; width: 8px; height: 4px; border: solid #000; border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
.check input:focus { outline: none; }
.check input:focus-visible { outline: 1px solid var(--pink); outline-offset: 2px; }
.check small { display: block; color: var(--dim); font-size: 13px; margin-top: 2px; }

.submit {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px 14px;
  border: 0; border-radius: 99px;
  background: var(--fg); color: #000;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.submit.incomplete { opacity: 0.3; }
.submit:not(.incomplete):hover { background: var(--pink); color: #fff; }
.submit[disabled] { opacity: 0.3; cursor: wait; }
.form-msg { font-size: 14px; color: var(--pink); min-height: 1.4em; margin-top: -28px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice h2 { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.32; text-wrap: balance; }
.notice p { margin-top: 18px; font-size: 15px; line-height: 1.75; color: var(--dim); }
.notice .lab { margin-bottom: 16px; color: var(--pink); }

/* ── Fine print / next / footer ───────────────────────── */
.fine { margin-top: clamp(120px, 14vw, 200px); font-size: 13px; line-height: 1.75; }
.fine .cred + .cred { margin-top: 40px; }
.fine ul { list-style: none; color: var(--dim); }
.fine li + li { margin-top: 4px; }
.fine a { color: var(--fg); }
.fine a:hover { color: var(--pink); }

.next { margin-top: clamp(120px, 14vw, 200px); font-size: clamp(28px, 3.4vw, 50px); line-height: 1.05; color: var(--faint); font-weight: 500; letter-spacing: -0.01em; }
.next span { display: block; }

.big-mark { margin-top: clamp(64px, 8vw, 120px); }
.foot { padding: 18px 0 28px; font-size: 13px; line-height: 1.5; }
.foot .end { justify-self: end; text-align: right; }
.home-foot { margin-top: clamp(140px, 16vw, 240px); }
.foot a:hover { color: var(--pink); }

/* ── Admin ────────────────────────────────────────────── */
.admin { padding: 100px var(--gutter) 60px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin th, .admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { font-weight: 400; color: var(--dim); }
.admin tr.cancelled td { color: var(--faint); text-decoration: line-through; }
.admin h2 { font-size: 22px; margin: 40px 0 12px; }
.admin .scroll { overflow-x: auto; }
.admin .login { max-width: 360px; margin: 80px auto; }

/* ── Tablet / phone ───────────────────────────────────── */
@media (max-width: 900px) {
  .apply aside { position: static; }
  .apply aside, .apply .form-col { grid-column: 1 / -1; }
  .apply .form-col { margin-top: 56px; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .bar { display: flex; align-items: center; gap: 22px; }
  .bar .end { margin-left: auto; }
  .bar nav .opt { display: none; }
  .bar .logo img { height: 12px; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .row .no { grid-column: 1 / -1; }
  .row .t { grid-column: 1; }
  .row .s { grid-column: 2; align-self: end; }
  .sessions li { grid-template-columns: 1fr; row-gap: 10px; }
  .sessions .v { grid-column: 1; }
  .cred { grid-template-columns: 1fr; }
  .cred .body { grid-column: 1; }
  .prose p { font-size: 16px; }
  .level div { grid-template-columns: 1fr; gap: 4px; }
  .submit { justify-self: stretch; justify-content: center; }
  .foot { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .foot .mid { display: none; }
}
.check .req { font-style: normal; color: var(--dim); }

/* ── Pass card ────────────────────────────────────────── */
.pass {
  position: fixed; inset: 0; z-index: 60;
  background: #000;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  padding: 56px var(--gutter) 40px;
}
.pass.on { display: flex; }
html.pass-open, html.pass-open body { overflow: hidden; }
.pass-title { font-size: clamp(20px, 2vw, 26px); color: var(--dim); }
.pass-stage { position: relative; perspective: 1600px; }
.pass-tilt {
  position: relative;
  transform-style: preserve-3d;
  touch-action: none;           /* 끄는 동안 화면이 같이 움직이지 않게 */
  cursor: grab;
  will-change: transform;
}
.pass-tilt.is-drag { cursor: grabbing; }
.pass-glare {
  position: absolute; inset: 0; pointer-events: none;
  border-radius: 4.81% / 3.38%;   /* 카드 모서리(52px / 1080×1540)와 같게 */
  background: radial-gradient(70% 55% at var(--gx, 50%) var(--gy, 40%), rgba(255, 255, 255, var(--ga, 0.2)), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
}
.pass-shadow {
  position: absolute; left: 10%; right: 10%; bottom: -7%; height: 10%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), transparent);
  filter: blur(14px);
}
.pass-card {
  display: block;
  width: min(78vw, calc(62svh * 1080 / 1540), 460px);
  aspect-ratio: 1080 / 1540;
  -webkit-touch-callout: default;
  -webkit-user-select: auto; user-select: auto;
}
.pass-card:not([src]) { background: rgba(255, 255, 255, 0.06); border-radius: 22px; }
.pass-hint { font-size: 15px; color: var(--dim); text-align: center; }
.pass-close {
  position: absolute; top: 18px; right: var(--gutter);
  background: none; border: 0; color: var(--dim); font-size: 14px; cursor: pointer;
}
.pass-close:hover { color: var(--fg); }
.notice .submit { margin-top: 28px; }

/* ── Confirmed page ───────────────────────────────────── */
.confirm { min-height: 100svh; display: flex; flex-direction: column; }
.confirm-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 120px 0 80px; }
.confirm-body h1 { margin-top: 18px; font-size: clamp(32px, 4.6vw, 68px); line-height: 1.2; letter-spacing: -0.01em; }
.confirm-note { margin-top: 24px; max-width: 34em; font-size: 16px; line-height: 1.75; color: var(--dim); }
.confirm-body .submit { margin-top: 40px; }

/* 정원 마감 상태 */
.form.is-closed .f, .form.is-closed .checks { opacity: 0.35; pointer-events: none; }
.submit.closed, .submit.closed[disabled] { opacity: 1; background: var(--fill-hover); color: var(--dim); cursor: not-allowed; }
.form-msg.closed-note { color: var(--dim); line-height: 1.75; }

/* ── Tools ────────────────────────────────────────────── */
.tools-sec { margin-top: clamp(96px, 11vw, 160px); }
.tools-intro { font-size: 15px; line-height: 1.75; color: var(--dim); text-wrap: pretty; }
.tools { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); }
.tools li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0 13px; border-bottom: 1px solid var(--line); font-size: 17px; }
.tools li span:last-child { color: var(--dim); font-size: 15px; text-align: right; }
.tools em { font-style: normal; color: var(--faint); }
.pay-note { font-size: 13px; color: var(--dim); margin-top: -4px; }
.pay-note a { color: var(--fg); border-bottom: 1px solid var(--faint); margin-left: 6px; }
.pay-note a:hover { color: var(--pink); border-color: var(--pink); }

/* 안내 문단마다 bullet (줄바꿈은 글자 기준으로 들여쓰기) */
.fine li { position: relative; padding-left: 1.1em; }
.fine li::before { content: "•"; position: absolute; left: 0; top: 0; color: var(--faint); }
.fine li + li { margin-top: 8px; }

/* 확정 문구: 지정한 3줄 그대로 (줄 안에서는 안 끊김) */
.confirm-body h1 span { display: block; white-space: nowrap; }
.lab.pink { color: var(--pink); }

/* ── Home: My Pass ────────────────────────────────────── */
.mypass { margin-top: clamp(96px, 12vw, 180px); }
.mypass-form .q { display: block; margin-bottom: 14px; color: var(--dim); font-size: 15px; text-wrap: balance; }
.mypass-row { display: flex; align-items: flex-end; gap: 16px; }
.mypass-row .input { flex: 1; min-width: 0; }
.mypass-row .submit { flex: none; }
.mypass-form .form-msg { margin-top: 12px; }
@media (max-width: 720px) {
  .mypass-row { flex-direction: column; align-items: stretch; gap: 20px; }
}
