/* 이벤트 캠페인 페이지(/event/vip …) — 사이트 공통 틀(legal.css·site.css · legal-nav.js 머리줄·바닥) 위에 얹는다.
   색은 사이트 변수만: 바탕 --hero-surface · 강조 --mp-bar · VIP 표시만 노랑(왕관). tools/event_pages/build_vip.py */
.cp-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cp-ico svg, .btn svg { width: 1em; height: 1em; }

/* ── 첫 화면 ─────────────────────────────────────────────── */
.cp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(56% 70% at 88% 8%, rgba(17, 135, 207, 0.11) 0%, transparent 62%),
    radial-gradient(40% 50% at 72% 100%, rgba(201, 162, 74, 0.1) 0%, transparent 70%),
    var(--hero-surface);
  border-bottom: 1px solid var(--mp-line);
  padding: 56px 0 64px;
}
.cp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 86, 152, 0.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(105deg, transparent 38%, #000 70%);
  mask-image: linear-gradient(105deg, transparent 38%, #000 70%);
  pointer-events: none;
}
.cp-hero .hero-grid { position: relative; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); gap: 48px; }
.cp-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 18px;
}
.cp-status .eyebrow { margin: 0; }
.cp-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #17643a;
  background: rgba(31, 157, 85, 0.1);
  border: 1px solid rgba(31, 157, 85, 0.24);
}
.cp-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9d55;
  box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.5);
  animation: cp-pulse 2s ease-out infinite;
}
@keyframes cp-pulse { 70% { box-shadow: 0 0 0 7px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }
.cp-dday {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mp-ink);
  background: var(--mp-bg);
  border: 1px solid var(--mp-line);
  font-variant-numeric: tabular-nums;
}
.cp-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
  color: var(--mp-ink);
  word-break: keep-all;
}
.cp-hero h1 .cp-accent { color: var(--mp-bar); }
.cp-hero .lead { font-size: 17.5px; color: var(--mp-ink); margin: 0 0 6px; max-width: 30em; word-break: keep-all; }
.cp-hero .lead-sub { color: var(--mp-muted); margin: 0; max-width: 32em; }
.cp-hero .actions { margin: 26px 0 0; }
.cp-hero .btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 12px; }
.cp-hero .btn.primary { box-shadow: 0 8px 20px -8px rgba(17, 135, 207, 0.6); }
.cp-hero .meta { margin: 14px 0 0; font-size: 13.5px; color: var(--mp-muted); }

/* 첫 화면 그림 — 심볼(소리 물결) + 앱 화면 폰 + 재생 막대 (배너·og 와 같은 구성) */
.vip-art {
  position: relative;
  width: min(440px, 100%);
  margin: 0 auto;
}
.va-stage {
  position: relative;
  aspect-ratio: 1 / 0.95;
}
.va-rings i {
  position: absolute;
  left: 22%;
  top: 50%;
  border: 1.5px solid rgba(17, 135, 207, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.va-rings i:nth-child(1) { width: 52%; aspect-ratio: 1; }
.va-rings i:nth-child(2) { width: 76%; aspect-ratio: 1; border-color: rgba(17, 135, 207, 0.14); }
.va-rings i:nth-child(3) { width: 90%; aspect-ratio: 1; border-color: rgba(17, 135, 207, 0.07); }
.va-phone {
  position: absolute;
  right: 6%;
  top: 4%;
  width: 50%;
  height: 86%;
  overflow: hidden;
  padding: 2.2% 2.2% 0;
  border-radius: 30px 30px 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  background: #fff;
  border: 1px solid var(--mp-line);
  transform: rotate(4deg);
  transform-origin: 50% 0;
  box-shadow: 0 30px 60px -24px rgba(15, 86, 152, 0.45), 0 4px 12px -4px rgba(15, 86, 152, 0.18);
}
.va-phone img { display: block; width: 100%; height: auto; border-radius: 24px; }
.va-sym {
  position: absolute;
  left: 22%;
  top: 50%;
  width: 40%;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 16px 24px rgba(15, 86, 152, 0.3));
}
.va-vip {
  position: absolute;
  right: 2%;
  top: 1%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe58a, #ffc933);
  color: #0b3a66;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px -10px rgba(120, 80, 0, 0.55);
  transform: rotate(4deg);
}
.va-vip svg { width: 16px; height: 16px; color: #0b3a66; }
.va-pill {
  position: absolute;
  left: 14%;
  bottom: 13%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--mp-line);
  box-shadow: 0 16px 30px -14px rgba(15, 86, 152, 0.5);
}
.va-pill b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mp-wash, #e8f2fb);
  color: var(--mp-bar);
  font-size: 13px;
  font-weight: 800;
}
.va-pill b.go { width: 48px; height: 48px; background: var(--mp-bar); color: #fff; }
.va-pill svg { width: 46%; height: 46%; }
.vip-checks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.vip-checks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mp-deep);
  background: var(--mp-bg);
  border: 1px solid var(--mp-tint);
  border-radius: 999px;
  box-shadow: 0 2px 6px -2px rgba(15, 86, 152, 0.12);
}
.vip-checks svg { width: 14px; height: 14px; color: var(--mp-bar); }

/* 끝난 뒤 */
.cp-ended { display: none; }
.event-ended .live-only { display: none !important; }
.event-ended .cp-ended {
  display: block;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--mp-bg);
  border: 1px solid var(--mp-line);
  color: var(--mp-muted);
  font-weight: 600;
}

/* ── 본문 ─────────────────────────────────────────────────── */
.cp-kicker {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--mp-bar);
}
.cp-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 21px;
  color: var(--mp-deep);
  background: var(--mp-wash);
  border: 1px solid var(--mp-tint);
}
.cp-benefits .feat-card { padding: 24px 22px 22px; }
.cp-benefits .feat-card p { word-break: keep-all; }
.step-card .feat-n { background: var(--mp-bar); color: #fff; }

.cp-table-wrap {
  background: var(--mp-bg);
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  overflow-x: auto;
}
.cp-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.cp-table th, .cp-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--mp-line); }
.cp-table tbody tr:last-child th, .cp-table tbody tr:last-child td { border-bottom: 0; }
.cp-table thead th { font-size: 13px; color: var(--mp-muted); font-weight: 700; background: var(--mp-soft); }
.cp-table tbody th { font-weight: 600; color: var(--mp-ink); }
.cp-table td { color: var(--mp-muted); }
.cp-table .is-vip { background: var(--mp-wash); color: var(--mp-deep); font-weight: 700; }
.cp-table thead .is-vip { color: var(--mp-deep); }
.cp-table thead .is-vip svg { width: 14px; height: 14px; color: #c69a3f; vertical-align: -2px; margin-right: 4px; }

.cp-where { display: grid; gap: 24px 36px; align-items: center; }
@media (min-width: 800px) { .cp-where { grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr); } }
.cp-where h2 { margin-bottom: 8px; }
.cp-where p { color: var(--mp-muted); margin: 0 0 12px; max-width: 34em; }
.cp-path {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mp-deep);
  background: var(--mp-bg);
  border: 1px solid var(--mp-tint);
}
.cp-drawer {
  background: var(--mp-bg);
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  box-shadow: 0 16px 36px -18px rgba(15, 60, 110, 0.3);
  overflow: hidden;
  max-width: 320px;
  width: 100%;
  justify-self: center;
}
.cp-drawer .hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--mp-bar);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.cp-drawer .hd img { width: 22px; height: 22px; }
.cp-drawer ul { list-style: none; margin: 0; padding: 6px 0; }
.cp-drawer li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--mp-ink);
}
.cp-drawer li svg { width: 18px; height: 18px; color: var(--mp-muted); flex: none; }
.cp-drawer li.on { background: var(--mp-wash); color: var(--mp-deep); font-weight: 700; }
.cp-drawer li.on svg { color: var(--mp-bar); }
.cp-drawer li.vip svg { color: #c69a3f; }
.cp-drawer li em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  color: #6b4a0c;
  background: linear-gradient(135deg, #f6e3a8, #d9b76a);
}
.cp-drawer li.sub { font-size: 12.5px; color: var(--mp-muted); padding-top: 0; }

.cp-other .link-card { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.cp-other .link-card .cp-live { align-self: flex-start; }
.cp-other .go { color: var(--mp); font-weight: 700; font-size: 14px; }

.cp-final { gap: 22px 32px; }
.cp-final .btn { display: inline-flex; align-items: center; gap: 8px; }
.cp-qr { display: none; align-items: center; gap: 12px; margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, 0.9); }
.is-desktop .cp-qr { display: flex; }
.cp-qr [data-qr-page] { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.cp-langs { padding-top: 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(20, 24, 28, 0.92);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .cp-hero { padding: 36px 0 44px; }
  .cp-hero .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .cp-status, .cp-hero .actions { justify-content: center; }
  .cp-hero .lead, .cp-hero .lead-sub { margin-left: auto; margin-right: auto; }
  .vip-art { width: min(360px, 92%); }
}
@media (max-width: 420px) {
  .va-pill { gap: 6px; padding: 5px 8px; }
  .va-pill b { width: 32px; height: 32px; font-size: 11.5px; }
  .va-pill b.go { width: 40px; height: 40px; }
  .va-vip { font-size: 13px; padding: 5px 11px 5px 9px; }
}
/* 띄어쓰기 없는 일본어·중국어는 keep-all 이면 줄이 안 바뀌어 폰에서 옆으로 넘친다 */
.page-vip:lang(ja) *, .page-vip:lang(zh) * { word-break: normal; line-break: strict; }
@media (prefers-color-scheme: dark) {
  .cp-hero::before { background-image: radial-gradient(rgba(127, 189, 242, 0.08) 1px, transparent 1.2px); }
  .cp-live { color: #7fd8a4; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-live i { animation: none; }
}
@media print {
  .cp-hero { background: none; }
  .vip-art, .cp-qr, .toast { display: none; }
}
