/* 트래블퀴즈 홈페이지 공통 스타일 — 색은 게임 아이콘(남색 밤하늘·파란 지구·금색 테두리·산호색 리본)에서 가져옴 */
:root {
  --night: #0f1238;
  --navy: #1b1d55;
  --navy-2: #2a3190;
  --sky: #5cb8ff;
  --blue: #2f6fe0;
  --gold: #ffc94a;
  --gold-dark: #b9852a;
  --coral: #ee6460;
  --coral-dark: #c94a48;
  --cream: #fbf4e4;
  --paper: #f3e7cc;
  --ink: #1d2140;
  --muted: #5d6280;
  --green: #36b36b;
  --red: #e0474f;
  --radius: 22px;
  --shadow: 0 14px 34px rgba(12, 16, 64, .22);
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* 언어 선택: <html data-lang="ko|en">에 맞지 않는 lang 요소를 숨김 */
html[data-lang="ko"] [lang="en"]:not(html),
html[data-lang="en"] [lang="ko"]:not(html) { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 머리 막대 ── */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(15, 18, 56, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { color: #dfe4ff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.topnav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.lang-switch { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .12); flex: none; }
.topnav + .lang-switch { margin-left: 4px; }
.brand + .lang-switch { margin-left: auto; }
.lang-switch button { font: inherit; font-size: .85rem; font-weight: 700; border: 0; cursor: pointer; padding: 6px 12px; border-radius: 999px; color: #c9cff5; background: transparent; }
html[data-lang="ko"] .lang-switch [data-lang-btn="ko"],
html[data-lang="en"] .lang-switch [data-lang-btn="en"] { background: var(--gold); color: var(--ink); }
@media (max-width: 720px) { .topnav { display: none; } .brand + .lang-switch, .topnav + .lang-switch { margin-left: auto; } }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; font-size: 1.05rem; text-decoration: none; border: 0; cursor: pointer; padding: 14px 26px; border-radius: 999px; transition: transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(2px); }
.btn-gold { background: linear-gradient(#ffd866, var(--gold)); color: var(--ink); box-shadow: 0 5px 0 var(--gold-dark), 0 12px 24px rgba(0, 0, 0, .25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--gold-dark), 0 16px 28px rgba(0, 0, 0, .28); }
.btn-coral { background: linear-gradient(#ff7d78, var(--coral)); color: #fff; box-shadow: 0 5px 0 var(--coral-dark); }
.btn-coral:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }

/* ── 밤하늘 배경 (별 반짝임) ── */
.sky { position: relative; color: #fff; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #303aa0 0%, var(--navy) 48%, var(--night) 100%); }
.sky::before, .sky::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image:
  radial-gradient(1.6px 1.6px at 24px 34px, #fff 50%, transparent 52%),
  radial-gradient(1.1px 1.1px at 130px 86px, #fff 50%, transparent 52%),
  radial-gradient(2.2px 2.2px at 210px 152px, #fff 50%, transparent 52%),
  radial-gradient(1.1px 1.1px at 66px 178px, #cfe3ff 50%, transparent 52%),
  radial-gradient(1.6px 1.6px at 268px 42px, #fff 50%, transparent 52%);
  background-size: 300px 220px; opacity: .55; }
.sky::after { background-size: 430px 310px; background-position: 110px 70px; opacity: .3; animation: twinkle 3.6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .95; } }
.sky > * { position: relative; z-index: 1; }

/* ── 첫 화면 ── */
.hero { padding: 56px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.hero-logo { width: min(520px, 100%); margin: 0 0 18px -6px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); animation: pop-in .8s cubic-bezier(.2, 1.4, .4, 1) both; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 900; margin-bottom: .35em; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #dbe2ff; max-width: 34em; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.soon { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #e8ecff; font-weight: 700; font-size: .92rem; border: 1px dashed rgba(255, 255, 255, .45); }
.soon svg { width: 18px; height: 18px; flex: none; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.flight-path { position: absolute; inset: -10% -18% -6% -18%; width: 136%; height: 116%; pointer-events: none; overflow: visible; }
.phone { position: relative; width: min(290px, 64vw); aspect-ratio: 9 / 16; padding: 10px; border-radius: 40px; background: linear-gradient(150deg, #3a3e63, #0b0c18 60%); box-shadow: 0 34px 70px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .1); transform: rotate(-5deg); transition: transform .5s cubic-bezier(.2, 1.3, .4, 1); animation: phone-in 1s .15s cubic-bezier(.2, 1.2, .4, 1) both; }
.phone:hover { transform: rotate(0) scale(1.02); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; }
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; transform: translateX(-50%); border-radius: 12px; background: #0b0c18; }
.float { position: absolute; width: 150px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .35)); animation: bob 4.2s ease-in-out infinite; }
.float.f1 { top: 6%; left: -2%; --r: -14deg; }
.float.f2 { top: 44%; right: -6%; width: 140px; --r: 12deg; animation-delay: -1.4s; }
.float.f3 { bottom: 2%; left: 2%; width: 140px; --r: -6deg; animation-delay: -2.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 4deg)); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.7) rotate(-3deg); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(-12deg); } }

@media (max-width: 900px) {
  .hero { padding: 34px 0 60px; text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-logo { margin: 0 auto 14px; width: min(420px, 92%); }
  .hero-lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { min-height: 520px; margin-top: 12px; }
  .float { width: 112px; }
  .float.f2 { width: 104px; right: 0; }
  .float.f3 { width: 104px; }
}

/* ── 숫자 띠 (리본) ── */
.stats { background: linear-gradient(var(--coral), var(--coral-dark)); color: #fff; padding: 26px 0; position: relative; }
.stats::before, .stats::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: radial-gradient(circle at 10px -4px, transparent 9px, var(--coral) 10px) repeat-x; background-size: 20px 10px; }
.stats::before { top: -10px; transform: scaleY(-1); }
.stats::after { bottom: -10px; background-image: radial-gradient(circle at 10px -4px, transparent 9px, var(--coral-dark) 10px); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; text-align: center; }
.stats b { display: block; font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; line-height: 1.1; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); font-variant-numeric: tabular-nums; }
.stats span { font-weight: 700; color: #ffe6e4; font-size: .95rem; }
@media (max-width: 640px) { .stats ul { grid-template-columns: repeat(3, 1fr); row-gap: 16px; } }

/* ── 섹션 공통 ── */
.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.sky .section-head p { color: #cfd6ff; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); background: #fff; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; box-shadow: 0 3px 0 rgba(0, 0, 0, .06); }
.sky .kicker { background: rgba(255, 255, 255, .12); color: var(--gold); box-shadow: none; }

/* ── 이렇게 여행해요 (탑승권 카드) ── */
.how { background: var(--cream) radial-gradient(circle, rgba(29, 33, 64, .07) 1.2px, transparent 1.4px) 0 0 / 22px 22px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.step-art { height: 210px; display: grid; place-items: center; position: relative; background: linear-gradient(160deg, #e9f5ff, #cfe7ff); }
.step:nth-child(2) .step-art { background: linear-gradient(160deg, #fff6dc, #ffe6a8); }
.step:nth-child(3) .step-art { background: linear-gradient(160deg, #ffe9e6, #ffd0cb); }
.step-body { padding: 22px 24px 26px; border-top: 3px dashed #e3e6f2; position: relative; }
.step-body::before, .step-body::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); }
.step-body::before { left: -12px; } .step-body::after { right: -12px; }
.step-no { font-weight: 900; color: var(--coral); font-size: .9rem; letter-spacing: .08em; }
.step h3 { font-size: 1.3rem; font-weight: 900; margin: 4px 0 8px; }
.step p { color: var(--muted); margin: 0; }
.tickets { position: relative; width: 100%; height: 100%; }
.tickets img { position: absolute; width: 150px; left: 50%; top: 50%; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.tickets img:nth-child(1) { transform: translate(-95%, -60%) rotate(-12deg); }
.tickets img:nth-child(2) { transform: translate(-50%, -44%) rotate(2deg); z-index: 1; }
.tickets img:nth-child(3) { transform: translate(-8%, -62%) rotate(13deg); }
.step:hover .tickets img:nth-child(1) { transform: translate(-112%, -64%) rotate(-18deg); }
.step:hover .tickets img:nth-child(3) { transform: translate(8%, -66%) rotate(19deg); }
/* 퀴즈 미리보기 + 하루 10칸 */
.mock-quiz { width: 80%; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 8px 18px rgba(185, 133, 42, .25); font-size: .86rem; }
.mock-quiz .q { font-weight: 800; margin-bottom: 10px; }
.mock-quiz .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mock-quiz .opts span { background: #f1f3fb; border-radius: 9px; padding: 6px 8px; font-weight: 700; text-align: center; }
.mock-quiz .opts .ok { background: var(--green); color: #fff; animation: blink-ok 2.8s infinite; }
@keyframes blink-ok { 0%, 40% { background: #f1f3fb; color: var(--ink); } 50%, 100% { background: var(--green); color: #fff; } }
.day-gauge { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 12px; }
.day-gauge i { height: 8px; border-radius: 3px; background: #e7e9f3; animation: fill-slot 5s infinite; }
.day-gauge i:nth-child(n) { animation-delay: calc(var(--n) * .35s); }
@keyframes fill-slot { 0%, 8% { background: #e7e9f3; } 12%, 88% { background: var(--gold); } 100% { background: #e7e9f3; } }
.gauge-label { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); font-weight: 700; margin-top: 4px; }
.step-art .event { width: 84%; border-radius: 14px; box-shadow: 0 8px 18px rgba(201, 74, 72, .3); transform: rotate(-3deg); transition: transform .3s; }
.step:hover .step-art .event { transform: rotate(0) scale(1.04); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ── 퀴즈 맛보기 ── */
.quiz { background: linear-gradient(180deg, #6cc3ff 0%, #3b86ec 100%); color: #fff; position: relative; overflow: hidden; }
.quiz .section-head p { color: #eef6ff; }
.quiz .kicker { color: var(--blue); }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .35; filter: blur(1px); animation: drift 38s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 55%; height: 160%; left: 14%; bottom: 20%; }
.cloud::after { width: 40%; height: 120%; right: 14%; bottom: 25%; }
.cloud.c1 { width: 180px; height: 46px; top: 16%; left: -200px; }
.cloud.c2 { width: 120px; height: 32px; top: 62%; left: -140px; animation-duration: 52s; animation-delay: -20s; }
.cloud.c3 { width: 220px; height: 54px; top: 84%; left: -240px; animation-duration: 64s; animation-delay: -40s; opacity: .25; }
@keyframes drift { to { transform: translateX(calc(100vw + 300px)); } }
.quiz-card { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; background: #fff; color: var(--ink); border-radius: 26px; padding: 26px; box-shadow: 0 24px 50px rgba(12, 40, 110, .35); }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.quiz-place { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .88rem; color: var(--blue); background: #eaf3ff; padding: 6px 12px; border-radius: 999px; }
.quiz-dots { display: flex; gap: 6px; }
.quiz-dots i { width: 12px; height: 12px; border-radius: 50%; background: #e2e5f0; }
.quiz-dots i.on { background: var(--gold); }
.quiz-dots i.ok { background: var(--green); }
.quiz-dots i.no { background: var(--red); }
.quiz-q { font-size: clamp(1.15rem, 2.4vw, 1.35rem); font-weight: 900; margin: 0 0 18px; min-height: 2.5em; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opts button { position: relative; font: inherit; font-weight: 800; font-size: 1rem; text-align: left; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; border: 2px solid #e2e5f0; background: #f7f8fc; color: var(--ink); cursor: pointer; transition: transform .12s, border-color .12s, background .12s; }
.quiz-opts button:hover:not(:disabled) { border-color: var(--sky); background: #eef7ff; transform: translateY(-2px); }
.quiz-opts button b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #dfe3f0; font-size: .85rem; }
.quiz-opts button:disabled { cursor: default; }
.quiz-opts button.ok { border-color: var(--green); background: #e5f7ec; }
.quiz-opts button.ok b { background: var(--green); color: #fff; box-shadow: none; }
.quiz-opts button.no { border-color: var(--red); background: #fdeaeb; animation: shake .4s; }
.quiz-opts button.no b { background: var(--red); color: #fff; box-shadow: none; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.pop { position: absolute; right: 12px; top: -8px; font-weight: 900; font-size: 1rem; pointer-events: none; animation: pop-up 1.1s ease-out forwards; }
.pop.good { color: var(--green); } .pop.bad { color: var(--red); }
@keyframes pop-up { from { opacity: 0; transform: translateY(6px) scale(.8); } 20% { opacity: 1; transform: translateY(-6px) scale(1.1); } to { opacity: 0; transform: translateY(-34px); } }
.quiz-feedback { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #f6f7fb; display: none; }
.quiz-feedback.show { display: block; animation: fade-up .3s both; }
.quiz-feedback strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.quiz-feedback.ok strong { color: var(--green); } .quiz-feedback.no strong { color: var(--red); }
.quiz-feedback p { margin: 0; color: var(--muted); font-size: .95rem; }
.quiz-next { margin-top: 16px; display: none; justify-content: flex-end; }
.quiz-next.show { display: flex; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
/* 결과: 작은 여권에 도장 */
.quiz-result { text-align: center; }
.quiz-result h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 4px; }
.quiz-result .sub { color: var(--muted); }
.mini-passport { margin: 18px auto 20px; max-width: 460px; border-radius: 18px; background: var(--coral); padding: 34px 12px 12px; position: relative; box-shadow: 0 10px 0 var(--coral-dark); }
.mini-passport::before { content: attr(data-label); position: absolute; top: 7px; left: 18px; color: #fff; font-weight: 900; letter-spacing: .04em; font-size: .9rem; }
.mini-page { background: #fdf7e8 radial-gradient(circle, rgba(185, 133, 42, .12) 1px, transparent 1.2px) 0 0 / 16px 16px; border-radius: 12px; min-height: 150px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; align-items: center; }
.mini-page .slot { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #e2cfa2; display: grid; place-items: center; color: #c9b27c; font-weight: 800; font-size: .75rem; }
.mini-page .slot img { width: 112%; max-width: none; transform: rotate(var(--rot, -8deg)); animation: stamp 0.45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--d, 0s); mix-blend-mode: multiply; }
.mini-page .slot.filled { border-color: transparent; }
@keyframes stamp { from { opacity: 0; transform: scale(2.4) rotate(var(--rot, -8deg)); } 60% { opacity: 1; } }
@media (max-width: 520px) { .quiz-card { padding: 20px 16px; } .quiz-opts { grid-template-columns: 1fr; } }

/* ── 모으는 재미 ── */
.collect-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 24px; }
.card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card h3 { font-size: 1.3rem; font-weight: 900; margin-top: 18px; }
.card h3 b { color: var(--gold); }
.card p { color: #cfd6ff; margin: 0; }
.card-art { position: relative; height: 250px; display: grid; place-items: center; }
.passport-art { position: relative; width: 124px; transform: rotate(-4deg); }
.passport-art > img { width: 100%; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .4)); }
.passport-art .st { position: absolute; width: 68px; opacity: 0; mix-blend-mode: multiply; }
.passport-art .st.s1 { top: 14%; left: 6%; --rot: -12deg; }
.passport-art .st.s2 { top: 40%; left: 32%; --rot: 9deg; }
.passport-art .st.s3 { top: 62%; left: 0; --rot: -4deg; width: 60px; }
.in .passport-art .st { animation: stamp-in .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.in .passport-art .st.s2 { animation-delay: .45s; } .in .passport-art .st.s3 { animation-delay: .9s; }
@keyframes stamp-in { from { opacity: 0; transform: scale(2.2) rotate(var(--rot)); } to { opacity: .92; transform: scale(1) rotate(var(--rot)); } }
.artifacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 250px; }
.artifacts div { aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(255, 201, 74, .35), rgba(255, 255, 255, .04) 70%); border: 1px solid rgba(255, 255, 255, .12); }
.artifacts img { width: 78%; transition: transform .3s; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); animation: bob 5s ease-in-out infinite; }
.artifacts div:nth-child(2) img { animation-delay: -1.2s; } .artifacts div:nth-child(3) img { animation-delay: -2.4s; } .artifacts div:nth-child(4) img { animation-delay: -3.6s; }
.artifacts div:hover img { transform: scale(1.15) rotate(6deg); }
.podium { display: flex; align-items: flex-end; gap: 8px; height: 190px; }
.podium div { width: 66px; border-radius: 12px 12px 4px 4px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 10px; font-weight: 900; font-size: 1.4rem; color: var(--ink); }
.podium .p1 { height: 150px; background: linear-gradient(#ffe08a, var(--gold)); }
.podium .p2 { height: 112px; background: linear-gradient(#eef1f8, #c5cbe0); }
.podium .p3 { height: 86px; background: linear-gradient(#ffd2b0, #e59a64); }
.trophy { width: 64px; margin-bottom: 6px; animation: bob 3.6s ease-in-out infinite; }
@media (max-width: 960px) { .collect-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ── 마지막 안내 ── */
.finale { text-align: center; padding: 96px 0 104px; }
.finale .icon { width: 140px; border-radius: 34px; margin: 0 auto 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); animation: bob 4.5s ease-in-out infinite; }
.finale h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; }
.finale p { color: #d7ddff; max-width: 30em; margin: 0 auto 26px; }
.finale .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 바닥 ── */
.footer { background: var(--night); color: #aab2e6; font-size: .9rem; padding: 34px 0 40px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer a { color: #e3e7ff; text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }
.footer .co { display: flex; align-items: center; gap: 10px; }
.footer .co img { width: 28px; height: 28px; border-radius: 8px; }

/* ── 문서(약관·방침) 페이지 ── */
.doc-hero { padding: 46px 0 40px; text-align: center; }
.doc-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 900; margin: 0; }
.doc-hero p { color: #cfd6ff; margin: 8px 0 0; }
.doc { width: min(820px, 100% - 32px); margin: -22px auto 64px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); position: relative; z-index: 2; }
.doc h1 { font-size: 1.5rem; margin-bottom: .2rem; }
.doc h2 { font-size: 1.12rem; margin-top: 2rem; padding-bottom: .35rem; border-bottom: 2px solid #eef0f6; }
.doc table { border-collapse: collapse; width: 100%; font-size: .93rem; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid #e3e6ef; padding: 7px 9px; text-align: left; vertical-align: top; }
.doc th { background: #f5f6fb; }
.doc .meta { color: var(--muted); font-size: .9rem; }
.doc ol, .doc ul { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .35em; }
.doc hr { margin: 48px 0; border: 0; border-top: 2px dashed #e3e6ef; }
.doc .toc { background: #f7f8fc; border-radius: 14px; padding: 14px 18px; margin: 18px 0 8px; font-size: .93rem; }
.doc .toc ol { columns: 2; column-gap: 28px; margin: 0; }
@media (max-width: 560px) { .doc .toc ol { columns: 1; } }

/* ── 404 ── */
.lost { min-height: calc(100vh - 62px); display: grid; place-items: center; text-align: center; padding: 40px 0; }
.lost img { width: min(340px, 80vw); margin: 0 auto 20px; border-radius: 18px; transform: rotate(-4deg); box-shadow: var(--shadow); }
.lost h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; }
.lost p { color: #d7ddff; margin-bottom: 24px; }

/* ── 스크롤하면 나타나기 ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .passport-art .st { opacity: .92; }
}
/* 두 언어가 다 보일 때(JavaScript 꺼짐)만 구분선 */
html[data-lang] .lang-sep { display: none; }
