/*
 * 메모플레이어 이벤트·업데이트 홍보 페이지 — /event (앱 배너가 여는 곳) · /event/invite (친구가 받는 설치 페이지).
 * 사이트 공통 legal.css·site.css 와 따로 둔다(색·배치를 배너 그림과 맞춤: 파란 그라데이션 + 노란 강조).
 * 설계·주소 규칙: docs/event_promo_page.md
 */
:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #eaf2fb;
  --ink: #132033;
  --muted: #5a6778;
  --line: #e0e7ef;
  --blue: #1187cf;
  --blue-2: #1565c0;
  --blue-deep: #0f4f9a;
  --navy: #0a2a5c;
  --navy-2: #0e3577;
  --yellow: #ffc533;
  --yellow-2: #ffad0a;
  --orange: #f06414;
  --radius: 20px;
  --shadow: 0 10px 28px rgba(15, 50, 100, 0.09);
  --shadow-lg: 0 24px 60px rgba(5, 24, 60, 0.28);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1217;
    --surface: #171c23;
    --surface-2: #121820;
    --ink: #edf1f6;
    --muted: #a3aebb;
    --line: #29313b;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.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;
}
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 8px; }

/* ── 위 막대 ───────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(15, 50, 100, 0.08);
}
@media (prefers-color-scheme: dark) {
  .topbar { background: rgba(14, 18, 23, 0.86); border-bottom-color: rgba(255, 255, 255, 0.06); }
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; }
.top-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 14px; white-space: nowrap;
}
.top-cta svg { width: 16px; height: 16px; }

/* ── 공통 단추 ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 14px 24px; border-radius: 16px; border: 0;
  font: inherit; font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-yellow { background: linear-gradient(180deg, #ffd34f, var(--yellow-2)); color: #2b1d00; box-shadow: 0 10px 24px rgba(255, 173, 10, 0.35); }
.btn-blue { background: linear-gradient(180deg, #1d8fe0, var(--blue-2)); color: #fff; box-shadow: 0 10px 24px rgba(21, 101, 192, 0.3); }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.45); }
.btn-line { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-gray { background: #eef1f5; color: #2a3646; }
@media (prefers-color-scheme: dark) { .btn-gray { background: #262d36; color: #e7ecf2; } }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  font-weight: 800; font-size: 14px; letter-spacing: -0.01em;
}
.pill-yellow { background: var(--yellow); color: #1b2a44; box-shadow: 0 6px 16px rgba(255, 197, 51, 0.35); }
.pill-live { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5a36; box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(255, 90, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); } }

/* ── 첫 화면(배너와 같은 파란 그라데이션) ───────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 460px at 88% -12%, rgba(130, 200, 255, 0.5), transparent 62%),
    radial-gradient(700px 380px at -12% 112%, rgba(20, 70, 180, 0.6), transparent 60%),
    linear-gradient(135deg, #0b4aa2 0%, #1463c4 50%, #3a8ee0 100%);
  padding: 36px 0 84px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px;
  background: var(--bg);
  -webkit-mask: radial-gradient(120% 100% at 50% 100%, #000 60%, transparent 61%);
  mask: radial-gradient(120% 100% at 50% 100%, #000 60%, transparent 61%);
}
.hero.to-navy::after { background: var(--navy); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 9vw, 60px); line-height: 1.12; letter-spacing: -0.05em; margin: 16px 0 14px; font-weight: 900; }
.hero h1 .hl { color: var(--yellow); }
.hero .lead { font-size: clamp(16px, 4.3vw, 19px); color: rgba(255, 255, 255, 0.9); max-width: 30em; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700; font-size: 14px;
}
.chips svg { width: 16px; height: 16px; }
@media (max-width: 420px) {
  .chips { gap: 6px; }
  .chips li { padding: 6px 10px; font-size: 13px; gap: 4px; }
  .chips svg { width: 14px; height: 14px; }
}
@media (min-width: 880px) {
  .hero { padding: 64px 0 112px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 48px; }
}

/* 첫 화면 이벤트 알림 카드 */
.teaser {
  position: relative; display: flex; align-items: center; gap: 14px;
  max-width: 470px; padding: 14px 16px; border-radius: 20px;
  background: #fff; color: var(--navy); text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.teaser .gift { width: 56px; height: 56px; flex: none; }
.teaser small { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #d6400a; }
.teaser strong { display: block; font-size: 18px; line-height: 1.35; letter-spacing: -0.03em; margin-top: 2px; }
.teaser strong em { font-style: normal; color: var(--blue-2); background: linear-gradient(transparent 58%, rgba(255, 197, 51, 0.6) 58%); }
.teaser .go { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.teaser .go svg { width: 18px; height: 18px; }

/* ── 폰 모양 그림(CSS) ─────────────────────────────────── */
.visual { position: relative; padding: 10px 0 0; }
.phone {
  position: relative; z-index: 1; width: min(292px, 76vw); margin: 0 auto;
  aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 10px;
  background: #0d141c;
  box-shadow: 0 32px 70px rgba(3, 20, 50, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.09);
}
.phone .screen {
  position: absolute; inset: 10px; border-radius: 33px; overflow: hidden;
  background: #f3f7fc; color: #14304f; display: flex; flex-direction: column;
  font-size: 12px; line-height: 1.4;
}
.phone .cam { position: absolute; top: 18px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #0d141c; z-index: 3; }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 20px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; }
.ph-status i { display: inline-block; width: 22px; height: 9px; border: 1.5px solid #fff; border-radius: 3px; position: relative; }
.ph-status i::after { content: ""; position: absolute; inset: 1px 5px 1px 1px; background: #fff; border-radius: 1px; }
.ph-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px 12px; background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; }
.ph-bar svg { width: 18px; height: 18px; }
.ph-bar .sp { margin-left: auto; display: flex; gap: 12px; }
.ph-input { margin: 10px 10px 2px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid #dbe6f2; color: #8a9bb0; font-size: 11px; display: flex; align-items: center; gap: 8px; }
.ph-input b { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: #e3effb; display: grid; place-items: center; }
.ph-input b svg { width: 12px; height: 12px; }
.ph-tabs { display: flex; gap: 6px; padding: 8px 10px 2px; overflow: hidden; }
.ph-tabs span { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #e1ecf8; color: #3a5675; white-space: nowrap; }
.ph-tabs span.on { background: var(--navy); color: #fff; }
.ph-memo { margin: 8px 10px 0; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(20, 60, 110, 0.08); display: flex; gap: 10px; align-items: center; }
.ph-memo .tx { min-width: 0; }
.ph-memo .q { font-size: 12.5px; font-weight: 800; color: #14304f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-memo .a { font-size: 11px; color: #5d6e82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-memo .pl { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: #e3effb; color: var(--blue-2); display: grid; place-items: center; flex: none; }
.ph-memo .pl svg { width: 12px; height: 12px; }
.ph-memo.on { box-shadow: 0 0 0 2px rgba(17, 135, 207, 0.55), 0 6px 16px rgba(17, 135, 207, 0.18); }
.ph-memo.on .pl { background: var(--yellow); color: #3b2a00; }
.ph-player { margin-top: auto; background: #fff; border-top: 1px solid #e2eaf3; padding: 10px 14px 16px; display: flex; align-items: center; gap: 10px; }
.ph-player .t { min-width: 0; }
.ph-player .t b { display: block; font-size: 11.5px; }
.ph-player .t span { font-size: 10.5px; color: #6b7c90; }
.ph-player .pp { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.ph-player .pp svg { width: 14px; height: 14px; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; flex: none; }
.wave i { display: block; width: 3px; height: 8px; border-radius: 2px; background: var(--blue); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -0.9s; }
.wave i:nth-child(3) { animation-delay: -0.7s; }
.wave i:nth-child(4) { animation-delay: -0.5s; }
.wave i:nth-child(5) { animation-delay: -0.3s; }
.wave i:nth-child(6) { animation-delay: -0.1s; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 22px; } }

/* 폰 주위에 떠 있는 것 */
.float { position: absolute; z-index: 2; animation: bob 5s ease-in-out infinite; }
.float-play { right: max(2%, calc(50% - 230px)); top: 34%; width: 96px; height: 96px; }
.float-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 14px; background: #fff; color: var(--navy);
  font-weight: 800; font-size: 13px; box-shadow: 0 12px 28px rgba(5, 30, 70, 0.25);
}
.float-chip svg { width: 18px; height: 18px; }
.float-ocr { left: max(0%, calc(50% - 230px)); top: 5%; animation-delay: -1.5s; }
.float-tr { left: max(2%, calc(50% - 215px)); bottom: 16%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 400px) { .float-play { width: 76px; height: 76px; } .float-chip { font-size: 12px; padding: 7px 10px; } }

/* ── 구역 공통 ─────────────────────────────────────────── */
.sec { padding: 72px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: 0.16em; color: var(--blue-2); margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(28px, 7vw, 42px); font-weight: 900; }
.sec-head h2 em { font-style: normal; color: var(--blue-2); }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
@media (prefers-color-scheme: dark) { .eyebrow, .sec-head h2 em { color: #6cb7f5; } }

/* ── 이벤트(남색 바탕 · 가장 크게) ──────────────────────── */
.event {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(800px 420px at 50% -8%, rgba(255, 197, 51, 0.2), transparent 62%),
    radial-gradient(600px 400px at 100% 100%, rgba(40, 110, 230, 0.35), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 64px 0 76px;
}
.event .sec-head { position: relative; z-index: 1; }
.event .sec-head h2 { font-size: clamp(32px, 8.6vw, 54px); line-height: 1.16; }
.event .sec-head h2 em { color: var(--yellow); }
.event .sec-head p { color: rgba(255, 255, 255, 0.85); }
.event .eyebrow { color: var(--yellow); }
.event-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; display: block; width: 8px; height: 14px; border-radius: 2px; opacity: 0.9; animation: fall 9s linear infinite; }
.confetti i:nth-child(1) { left: 6%; background: var(--yellow); animation-delay: -1s; }
.confetti i:nth-child(2) { left: 14%; background: #5ec2ff; animation-delay: -4s; width: 6px; height: 10px; }
.confetti i:nth-child(3) { left: 24%; background: #ff7a9c; animation-delay: -6.5s; }
.confetti i:nth-child(4) { left: 35%; background: #8ef0c4; animation-delay: -2.5s; width: 10px; height: 10px; border-radius: 50%; }
.confetti i:nth-child(5) { left: 47%; background: var(--yellow); animation-delay: -8s; width: 6px; height: 12px; }
.confetti i:nth-child(6) { left: 58%; background: #5ec2ff; animation-delay: -3.5s; }
.confetti i:nth-child(7) { left: 67%; background: #ff7a9c; animation-delay: -5.5s; width: 9px; height: 9px; border-radius: 50%; }
.confetti i:nth-child(8) { left: 76%; background: var(--yellow); animation-delay: -0.5s; }
.confetti i:nth-child(9) { left: 85%; background: #8ef0c4; animation-delay: -7s; width: 6px; height: 12px; }
.confetti i:nth-child(10) { left: 93%; background: #5ec2ff; animation-delay: -2s; }
@keyframes fall { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(1400px) rotate(540deg); } }

/* 이용권 그림 */
.ticket-wrap { position: relative; z-index: 1; max-width: 540px; margin: 0 auto; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.38)); transform: rotate(-2.5deg); }
.ticket {
  position: relative; display: grid; grid-template-columns: 104px 1fr; border-radius: 22px; overflow: hidden;
  background: #fff; color: var(--navy);
  -webkit-mask: radial-gradient(circle 11px at 104px 0, transparent 97%, #000 100%) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at 104px 100%, transparent 97%, #000 100%) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 11px at 104px 0, transparent 97%, #000 100%) top / 100% 51% no-repeat,
        radial-gradient(circle 11px at 104px 100%, transparent 97%, #000 100%) bottom / 100% 51% no-repeat;
}
.ticket .stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(160deg, #ffd955, var(--yellow-2)); color: #4a3200;
  border-right: 2px dashed rgba(10, 42, 92, 0.28);
  font-weight: 900; font-size: 11px; letter-spacing: 0.14em;
}
.ticket .stub svg { width: 40px; height: 40px; }
.ticket .body { padding: 20px 22px 18px; }
.ticket .t1 { font-weight: 800; font-size: 15px; color: #47607d; }
.ticket .t2 { font-weight: 900; font-size: clamp(30px, 8vw, 42px); letter-spacing: -0.05em; line-height: 1.12; margin: 2px 0 6px; }
.ticket .t2 b { color: var(--orange); }
.ticket .t3 { font-size: 13.5px; color: #55667a; }
.ticket .shine { position: absolute; inset: 0; pointer-events: none; }
.ticket .shine::after {
  content: ""; position: absolute; top: -60%; left: -50%; width: 34%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(18deg); animation: shine 4.2s ease-in-out infinite;
}
@keyframes shine { 0% { left: -50%; } 55%, 100% { left: 130%; } }

/* 친구 3명 진행 그림 */
.friends { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; gap: clamp(10px, 3.4vw, 28px); margin: 46px auto 0; padding: 0; list-style: none; max-width: 560px; }
.friends::before { content: ""; position: absolute; left: 12%; right: 12%; top: 31px; border-top: 3px dashed rgba(255, 255, 255, 0.3); }
.friends li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 74px; text-align: center; font-size: 14px; font-weight: 800; }
.friends .av { position: relative; width: 64px; height: 64px; border-radius: 50%; background: #1c4c96; border: 3px solid rgba(255, 255, 255, 0.35); display: grid; place-items: center; animation: lit 6s ease-in-out infinite; }
.friends .av svg { width: 34px; height: 34px; color: #cfe6ff; }
.friends .ck { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: #20c374; color: #fff; display: grid; place-items: center; border: 2px solid var(--navy); transform: scale(0); animation: pop 6s ease-in-out infinite; }
.friends .ck svg { width: 13px; height: 13px; color: #fff; }
.friends li:nth-child(2) .av, .friends li:nth-child(2) .ck { animation-delay: 0.7s; }
.friends li:nth-child(3) .av, .friends li:nth-child(3) .ck { animation-delay: 1.4s; }
.friends .goal .av { background: linear-gradient(160deg, #ffd955, var(--yellow-2)); border-color: #fff3c4; animation: glow 6s ease-in-out infinite; animation-delay: 2.1s; }
.friends .goal .av svg { color: #5a3a00; }
.friends .goal span { color: var(--yellow); }
@keyframes lit { 0%, 8% { background: #1c4c96; border-color: rgba(255, 255, 255, 0.35); } 14%, 88% { background: #2f7ee6; border-color: #9fd0ff; } 100% { background: #1c4c96; border-color: rgba(255, 255, 255, 0.35); } }
@keyframes pop { 0%, 8% { transform: scale(0); } 14% { transform: scale(1.25); } 18%, 88% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes glow { 0%, 8% { box-shadow: 0 0 0 0 rgba(255, 197, 51, 0); transform: scale(1); } 16% { box-shadow: 0 0 0 14px rgba(255, 197, 51, 0.25); transform: scale(1.12); } 24%, 88% { box-shadow: 0 0 0 8px rgba(255, 197, 51, 0.18); transform: scale(1.04); } 100% { box-shadow: 0 0 0 0 rgba(255, 197, 51, 0); transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .friends .ck { transform: scale(1); } .friends .av { background: #2f7ee6; } }

/* 참여 단계 */
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 14px; margin: 46px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; align-content: start; padding: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
.steps .ic { position: relative; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; }
.steps .ic svg { width: 30px; height: 30px; color: #fff; }
.steps .ic::after { counter-increment: step; content: counter(step); position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: #2b1d00; font-weight: 900; font-size: 13px; display: grid; place-items: center; }
.steps h3 { font-size: 19px; margin: 2px 0 4px; }
.steps p { color: rgba(255, 255, 255, 0.82); font-size: 15px; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps li { grid-template-columns: 1fr; text-align: left; padding: 22px; }
}

/* 앱에서 이벤트 찾는 곳 */
.where { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; margin-top: 18px; padding: 20px; border-radius: var(--radius); background: #fff; color: var(--ink); }
@media (prefers-color-scheme: dark) { .where { background: var(--surface); } }
.where h3 { font-size: 19px; margin-bottom: 6px; }
.where p { color: var(--muted); font-size: 15px; }
.where p + p { margin-top: 6px; }
.where kbd { font: inherit; font-weight: 800; color: var(--blue-2); background: var(--surface-2); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .where kbd { color: #7cc0f7; } }
.mini-drawer { width: 100%; max-width: 270px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #f3f7fc; border: 1px solid #dfe8f2; box-shadow: var(--shadow); color: #1b3350; font-size: 13.5px; }
.mini-drawer .hd { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--blue); color: #fff; font-weight: 800; }
.mini-drawer .hd img { width: 24px; height: 24px; border-radius: 6px; background: #fff; }
.mini-drawer ul { margin: 0; padding: 6px 0; list-style: none; }
.mini-drawer li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-weight: 600; }
.mini-drawer li svg { width: 18px; height: 18px; color: #6d8098; }
.mini-drawer li.on { margin: 2px 8px; padding: 9px 8px; border-radius: 10px; background: #fff3c4; color: #5a3a00; font-weight: 900; box-shadow: 0 0 0 2px var(--yellow) inset; }
.mini-drawer li.on svg { color: #d98a00; }
.mini-drawer li.on em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; background: var(--orange); padding: 2px 8px; border-radius: 999px; }
@media (min-width: 760px) { .where { grid-template-columns: 1.3fr 1fr; padding: 28px 32px; } }

.event-cta { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 34px; text-align: center; }
.event-cta .btn { min-width: min(100%, 360px); }
.event-cta small { color: rgba(255, 255, 255, 0.72); font-size: 13.5px; }

.notes { position: relative; z-index: 1; margin-top: 30px; padding: 18px 20px; border-radius: 16px; background: rgba(0, 0, 0, 0.18); border: 1px solid rgba(255, 255, 255, 0.1); }
.notes h3 { font-size: 15px; margin-bottom: 8px; color: #fff; }
.notes ul { margin: 0; padding-left: 18px; color: rgba(255, 255, 255, 0.78); font-size: 14px; }
.notes li + li { margin-top: 4px; }

/* 내 초대 링크(앱이 주소에 공유자 정보를 실어 열 때만 보임) */
.mylink { position: relative; z-index: 1; margin-top: 18px; padding: 20px; border-radius: var(--radius); background: linear-gradient(160deg, #fff8dc, #fff); color: var(--navy); border: 2px solid var(--yellow); }
.mylink h3 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.mylink h3 svg { width: 22px; height: 22px; color: var(--orange); }
.mylink p { color: #55667a; font-size: 14.5px; margin: 6px 0 12px; }
.mylink .url { display: block; font-family: inherit; padding: 11px 14px; border-radius: 12px; background: #fff; border: 1px dashed #d8c98f; font-size: 13.5px; color: #34465c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 12px; }
.mylink .btn { min-height: 48px; padding: 10px 16px; font-size: 15.5px; flex: 1 1 auto; }
.mylink .btn svg { width: 18px; height: 18px; }

/* 친구 추천으로 왔을 때 알림 */
.from-friend { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; font-size: 15px; }
.from-friend svg { width: 28px; height: 28px; flex: none; color: var(--yellow); }

/* ── 구독 혜택 ─────────────────────────────────────────── */
.premium { background: var(--surface); }
.benefits { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.benefits li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; align-content: start; padding: 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.benefits h3 { font-size: 19px; margin: 3px 0 4px; }
.benefits p { color: var(--muted); font-size: 15px; }
@media (min-width: 700px) { .benefits { grid-template-columns: repeat(2, 1fr); } .benefits li.wide { grid-column: span 2; } }
.benefits li.wide { background: linear-gradient(135deg, #1d8fe0, #1565c0); border-color: transparent; color: #fff; box-shadow: 0 14px 30px rgba(21, 101, 192, 0.25); }
.benefits li.wide p { color: rgba(255, 255, 255, 0.9); }
.benefits li.wide .ico { background: rgba(255, 255, 255, 0.18); color: #fff; }
.benefits li.wide h3 { font-size: 21px; }
@media (min-width: 980px) { .benefits { grid-template-columns: repeat(3, 1fr); } .benefits li { grid-template-columns: 1fr; } .benefits li.wide { grid-template-columns: 56px 1fr; align-content: center; } }
.ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.ico svg { width: 30px; height: 30px; }
.ico-blue { background: #e3f0fd; color: #1565c0; }
.ico-yellow { background: #fff2c9; color: #c77800; }
.ico-violet { background: #ece8ff; color: #5b47d6; }
.ico-green { background: #dcf7ea; color: #0f8f57; }
.ico-pink { background: #ffe4ec; color: #d63d6a; }
.ico-teal { background: #d9f5f5; color: #0b8c8c; }
.ico-orange { background: #ffe7d6; color: #d65a0a; }
.ico-navy { background: #e2e8f5; color: #22407a; }
@media (prefers-color-scheme: dark) {
  .ico-blue { background: #15324f; color: #7cc0f7; }
  .ico-yellow { background: #3b3015; color: #ffcf55; }
  .ico-violet { background: #2a2550; color: #b3a8ff; }
  .ico-green { background: #123a2a; color: #5fdca2; }
  .ico-pink { background: #42202c; color: #ff8fb0; }
  .ico-teal { background: #123838; color: #5ed8d8; }
  .ico-orange { background: #43281a; color: #ffa465; }
  .ico-navy { background: #1f2a40; color: #a9bde6; }
}

/* 무료 · 구독 비교 */
.compare { margin: 30px auto 0; max-width: 760px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; font-weight: 900; background: var(--surface-2); }
.compare thead th.sub { background: linear-gradient(160deg, #1d8fe0, #1565c0); color: #fff; }
.compare tbody th { text-align: left; font-weight: 700; color: var(--ink); }
.compare td { color: var(--muted); }
.compare td.sub { color: var(--blue-2); font-weight: 800; background: rgba(21, 101, 192, 0.05); }
@media (prefers-color-scheme: dark) { .compare td.sub { color: #7cc0f7; background: rgba(124, 192, 247, 0.06); } }
.compare col.c1 { width: 40%; }
.fine { margin: 14px auto 0; max-width: 760px; color: var(--muted); font-size: 13.5px; text-align: center; }

/* ── 업데이트 기능 ─────────────────────────────────────── */
.update { background: var(--bg); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.features li { padding: 18px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15, 50, 100, 0.04); }
.features .ico { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 12px; }
.features .ico svg { width: 26px; height: 26px; }
.features h3 { font-size: 17px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.features p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.new { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 900; letter-spacing: 0.04em; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); gap: 16px; } .features li { padding: 22px; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feat-note { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

.webmemo { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.webmemo h3 { font-size: 17px; margin-bottom: 2px; }
.webmemo p { color: var(--muted); font-size: 14px; }
.webmemo .go { margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--blue-2); }
.webmemo .go svg { width: 18px; height: 18px; }

/* ── 자주 묻는 질문 ────────────────────────────────────── */
.faq { background: var(--surface); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 4px; font-weight: 800; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--surface-2); color: var(--blue-2); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.faq summary::after { content: ""; margin-left: auto; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .ans { padding: 0 4px 18px 44px; color: var(--muted); font-size: 15px; }
.faq .ans p + p { margin-top: 6px; }

/* ── 마지막 권유 ───────────────────────────────────────── */
.final { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 64px 0 72px; background: radial-gradient(700px 360px at 50% 0%, rgba(255, 197, 51, 0.22), transparent 62%), linear-gradient(135deg, #0b4aa2, #1463c4 55%, #3a8ee0); }
.final .gift { width: 92px; height: 92px; margin: 0 auto 14px; animation: bob 4s ease-in-out infinite; }
.final h2 { font-size: clamp(28px, 7.4vw, 44px); font-weight: 900; }
.final h2 em { font-style: normal; color: var(--yellow); }
.final p { margin: 12px auto 26px; color: rgba(255, 255, 255, 0.88); font-size: 17px; max-width: 30em; }
.final .btn-row { justify-content: center; }
.play-badge { display: inline-block; margin-top: 20px; }
.play-badge img { height: 56px; width: auto; margin: 0 auto; }

/* ── 아래 막대(폰에서 스크롤하면 나타남) ────────────────── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94); border-top: 1px solid rgba(15, 50, 100, 0.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform 0.25s ease;
}
.dock.show { transform: translateY(0); }
.dock .tx { min-width: 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.dock .tx b { display: block; color: var(--ink); font-size: 14.5px; }
.dock .btn { margin-left: auto; min-height: 46px; padding: 10px 16px; font-size: 15px; border-radius: 14px; flex: none; }
@media (prefers-color-scheme: dark) { .dock { background: rgba(23, 28, 35, 0.95); border-top-color: rgba(255, 255, 255, 0.08); } }
@media (min-width: 880px) { .dock { display: none; } }
body.has-dock { padding-bottom: 76px; }
@media (min-width: 880px) { body.has-dock { padding-bottom: 0; } }

/* ── 바닥글 ───────────────────────────────────────────── */
.foot { background: #0d2a4a; color: rgba(255, 255, 255, 0.7); padding: 36px 0 40px; font-size: 13.5px; }
.foot .brand { color: #fff; margin-bottom: 12px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; padding: 0; list-style: none; }
.foot .links a { color: rgba(255, 255, 255, 0.88); text-decoration: none; }
.foot .links a:hover { text-decoration: underline; }
.foot p + p { margin-top: 4px; }

/* ── QR 창·알림 ────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(5, 15, 30, 0.6); }
.modal .box { width: min(360px, 100%); border-radius: 22px; background: var(--surface); color: var(--ink); text-align: center; overflow: hidden; box-shadow: var(--shadow-lg); }
.modal .hd { padding: 16px 20px; background: var(--blue); color: #fff; font-weight: 900; font-size: 17px; }
.modal .bd { padding: 20px; }
.modal .qr { width: 220px; height: 220px; margin: 0 auto 12px; padding: 10px; border-radius: 14px; background: #fff; }
.modal .qr svg { width: 100%; height: 100%; }
.modal .bd p { color: var(--muted); font-size: 14.5px; }
.modal .ft { padding: 0 20px 20px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 90; transform: translateX(-50%) translateY(20px); opacity: 0; transition: opacity 0.2s, transform 0.2s; padding: 12px 18px; border-radius: 999px; background: rgba(20, 28, 40, 0.92); color: #fff; font-size: 14.5px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 친구 설치 페이지(/event/invite) ───────────────────── */
.install-card { max-width: 460px; padding: 20px; border-radius: 22px; background: #fff; color: var(--navy); box-shadow: var(--shadow-lg); }
.install-card .btn { width: 100%; }
.install-card .hint { display: flex; gap: 8px; margin-top: 12px; color: #4f6178; font-size: 14px; }
.install-card .hint svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #20a464; }
.install-card .warn { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fff4e5; color: #8a4b00; font-size: 14px; }
.install-card .qr-row { display: flex; align-items: center; gap: 16px; }
.install-card .qr-row .qr { width: 132px; height: 132px; flex: none; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; }
.install-card .qr-row .qr svg { width: 100%; height: 100%; }
.install-card .qr-row p { font-size: 14.5px; color: #4f6178; }
.install-card .qr-row b { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.install-card .meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; color: #6a7a8e; font-size: 12.5px; }
.only-android, .only-desktop, .only-ios { display: none; }
html.is-android .only-android, html.is-desktop .only-desktop, html.is-ios .only-ios { display: block; }
html.is-android .hide-android, html.is-ios .hide-ios { display: none; }
html:not(.is-android) .dock.only-android-flex { display: none; }

.join-box { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; padding: 24px; border-radius: 24px; color: #fff; background: radial-gradient(500px 260px at 100% 0%, rgba(255, 197, 51, 0.25), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); box-shadow: var(--shadow-lg); }
.join-box h2 { font-size: clamp(24px, 6.4vw, 34px); font-weight: 900; }
.join-box h2 em { font-style: normal; color: var(--yellow); }
.join-box p { color: rgba(255, 255, 255, 0.85); margin-top: 8px; }
.join-box .ticket-mini { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; color: var(--navy); font-weight: 900; font-size: 17px; }
.join-box .ticket-mini svg { width: 40px; height: 40px; flex: none; }
.join-box .ticket-mini small { display: block; font-size: 12.5px; color: #5b6c80; font-weight: 700; }
@media (min-width: 760px) { .join-box { grid-template-columns: 1.4fr 1fr; padding: 34px 38px; } }

/* 이벤트가 끝났을 때(meta mp-event-end 가 지난 날) */
.ended-note { display: none; }
html.event-ended .ended-note { display: block; position: relative; z-index: 1; margin: 0 auto 18px; max-width: 560px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.92); color: #7a3e00; font-weight: 800; text-align: center; }
html.event-ended .live-only { display: none !important; }
