* { box-sizing: border-box; }
:root {
  --bg: #0b0b0f;
  --accent: #e50914;
  --accent2: #f5b301;
  --muted: rgba(255, 255, 255, 0.62);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: #fff; }
body {
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 1s var(--soft);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* 섹션별 분위기 색 (스크롤하면 전체 배경 조명이 바뀜) */
body::before {
  content: "";
  position: fixed; inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 25%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
    radial-gradient(35% 30% at 85% 75%, color-mix(in srgb, var(--accent2) 28%, transparent), transparent 70%);
  filter: blur(40px);
  opacity: 0.55;
  transition: background 1.2s var(--soft);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(3%, -2%) scale(1.06); } }
body[data-theme="red"]    { --accent: #e50914; --accent2: #ff7a59; }
body[data-theme="violet"] { --accent: #8b5cf6; --accent2: #ec4899; }
body[data-theme="orange"] { --accent: #f97316; --accent2: #f5b301; }
body[data-theme="blue"]   { --accent: #3b82f6; --accent2: #22d3ee; }
body[data-theme="pink"]   { --accent: #ec4899; --accent2: #a855f7; }
body[data-theme="gold"]   { --accent: #f5b301; --accent2: #ef4444; }
body[data-theme="teal"]   { --accent: #14b8a6; --accent2: #3b82f6; }
body[data-theme="slate"]  { --accent: #64748b; --accent2: #8b5cf6; }
body[data-theme="finale"] { --accent: #e50914; --accent2: #f5b301; }

/* 상단 진행 막대 */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform-origin: left; transform: scaleX(0);
  transition: background 1s var(--soft);
}

/* 헤더 */
.rc-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 28px; padding-top: env(safe-area-inset-top);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}
.logo { font-size: 24px; font-weight: 900; color: #e50914; letter-spacing: -0.05em; }
.years { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.years::-webkit-scrollbar { display: none; }
.years a { padding: 6px 12px; border-radius: 99px; color: rgba(255, 255, 255, 0.75); font-size: 14px; font-weight: 700; transition: background 0.45s var(--soft), color 0.45s; }
.years a:hover { background: rgba(255, 255, 255, 0.12); transition-delay: 60ms; }
.years a.on { background: #fff; color: #111; }
.share {
  height: 36px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 99px;
  background: rgba(255, 255, 255, 0.08); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.45s var(--soft), transform 0.45s var(--soft);
}
.share:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); transition-delay: 60ms; }

/* 진행 점 */
.dots {
  position: fixed; right: 20px; top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
}
.dots button {
  position: relative;
  width: 10px; height: 10px; padding: 0;
  border: 0; border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: height 0.5s var(--ease), background 0.5s;
}
.dots button.on { height: 28px; background: #fff; }
.dots button span {
  position: absolute; right: 20px; top: 50%;
  transform: translate(6px, -50%);
  padding: 4px 10px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.75); color: #fff;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--soft), transform 0.35s var(--soft);
}
.dots button:hover span { opacity: 1; transform: translate(0, -50%); transition-delay: 100ms; }

/* 슬라이드 공통 */
.slide {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding: 90px 24px 60px;
  scroll-snap-align: start;
  overflow: hidden;
}
.wrap { width: min(1000px, 100%); margin: 0 auto; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  color: var(--accent2);
  font-size: 14px; font-weight: 800; letter-spacing: 0.18em;
  transition: color 1s var(--soft);
}
.headline { margin: 0 0 40px; font-size: clamp(34px, 6vw, 68px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.1; word-break: keep-all; }
.headline em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.headline small { font-size: 0.42em; color: var(--muted); font-weight: 700; margin-left: 6px; letter-spacing: -0.02em; }

/* 등장: 섹션 안 요소가 차례로 */
.slide .eyebrow, .slide .headline, .slide .persona-emoji, .slide .persona-title, .slide .persona-sub, .slide .split, .slide .aside, .slide .rc-link {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.slide.in .eyebrow { opacity: 1; transform: none; }
.slide.in .headline, .slide.in .persona-emoji { opacity: 1; transform: none; transition-delay: 0.12s; }
.slide.in .persona-title { opacity: 1; transform: none; transition-delay: 0.3s; }
.slide.in .persona-sub, .slide.in .aside { opacity: 1; transform: none; transition-delay: 0.45s; }
.slide.in .split, .slide.in .rc-link { opacity: 1; transform: none; transition-delay: 0.6s; }

/* 1. 인트로 */
.intro { justify-content: center; text-align: center; }
.mosaic {
  position: absolute; inset: -20% -30%;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  transform: rotate(-8deg) scale(1.25);
  transition: transform 1.4s var(--soft);
  opacity: 0.5;
  filter: saturate(1.2);
}
.mosaic-row { display: flex; gap: 16px; width: max-content; animation: marquee 70s linear infinite; }
.mosaic-row.r1 { animation-direction: reverse; animation-duration: 85s; }
.mosaic-row.r2 { animation-duration: 95s; }
.mosaic-row img { width: 150px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
@keyframes marquee { to { transform: translateX(-50%); } }
.intro::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(11, 11, 15, 0.55) 0%, rgba(11, 11, 15, 0.92) 60%, var(--bg) 100%);
}
.intro-inner { position: relative; z-index: 2; }
.kicker { display: inline-block; margin-bottom: 20px; color: #f5b301; font-size: 13px; font-weight: 800; letter-spacing: 0.35em; animation: fadeUp 1s var(--ease) both; }
.intro h1 { margin: 0 0 18px; line-height: 0.95; letter-spacing: -0.06em; }
.intro .yr {
  display: block;
  font-size: clamp(90px, 20vw, 230px); font-weight: 900;
  background: linear-gradient(90deg, #ff4b53, #f5b301, #ff4b53); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fadeUp 1.2s 0.1s var(--ease) both, shimmer 7s linear infinite;
}
.intro .line2 { display: block; font-size: clamp(36px, 6vw, 72px); font-weight: 800; animation: fadeUp 1.2s 0.3s var(--ease) both; }
.intro p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 18px; animation: fadeUp 1.2s 0.5s var(--ease) both; }
.intro p b { color: #fff; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } }
.scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 56px; color: var(--muted); font-size: 13px; font-weight: 600;
  animation: fadeUp 1.2s 0.8s var(--ease) both;
  transition: color 0.4s;
}
.scroll-hint:hover { color: #fff; }
.scroll-hint span { width: 24px; height: 38px; border: 2px solid currentColor; border-radius: 99px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: currentColor; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* 2. 숫자 */
.big-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.num-card {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(40px) scale(0.96);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), border-color 0.6s var(--soft), box-shadow 0.6s var(--soft);
}
.slide.in .num-card { opacity: 1; transform: none; }
.slide.in .num-card:nth-child(2) { transition-delay: 0.1s; }
.slide.in .num-card:nth-child(3) { transition-delay: 0.2s; }
.slide.in .num-card:nth-child(4) { transition-delay: 0.3s; }
.num-card:hover { border-color: rgba(255, 255, 255, 0.28); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); transform: translateY(-4px); transition-delay: 100ms !important; }
.num-card i { display: block; font-style: normal; font-size: 26px; margin-bottom: 16px; }
.num-card b { display: block; font-size: clamp(44px, 6.4vw, 76px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.num-card:nth-child(2) b { color: #ff7a80; }
.num-card:nth-child(3) b { color: #7cb4ff; }
.num-card:nth-child(4) b { color: #ffd666; }
.num-card span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; }
.aside { margin: 26px 0 0; color: var(--muted); font-size: 16px; }
.aside b { color: #fff; }

/* 3. 성향 */
.persona-emoji { font-size: clamp(80px, 14vw, 140px); line-height: 1; margin-bottom: 16px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)); }
.slide.in .persona-emoji { animation: pop 1s 0.1s var(--ease) both; }
@keyframes pop { 0% { transform: scale(0.4) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.08) rotate(4deg); opacity: 1; } 100% { transform: none; } }
.persona-title { margin: 0 0 12px; font-size: clamp(38px, 7vw, 78px); font-weight: 900; letter-spacing: -0.05em; background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--accent2) 70%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.persona-sub { margin: 0 0 40px; color: var(--muted); font-size: 18px; }
.split { width: min(520px, 100%); margin: 0 auto; }
.split-bar { height: 14px; border-radius: 99px; background: color-mix(in srgb, #3b82f6 60%, transparent); overflow: hidden; }
.split-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; transition: width 1.6s 0.7s var(--ease); }
.slide.in .split-bar i { width: var(--w); }
.split-label { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 700; }

/* 4. 카테고리 */
.type-bars { display: flex; flex-direction: column; gap: 14px; }
.tb {
  display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 16px;
  font-size: 17px; font-weight: 700;
  opacity: 0; transform: translateX(-20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(0.2s + var(--i) * 70ms);
}
.slide.in .tb { opacity: 1; transform: none; }
.tb i { height: 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); position: relative; overflow: hidden; }
.tb i::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 1.4s var(--ease); transition-delay: calc(0.35s + var(--i) * 70ms); }
.slide.in .tb i::after { width: var(--w); }
.tb b { text-align: right; font-size: 18px; }
.tb b small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }

/* 5. 월별 */
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-items: end; height: 320px; }
.months > div { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.months i {
  width: 100%; height: 0;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.28));
  transition: height 1.3s var(--ease); transition-delay: calc(0.2s + var(--i) * 60ms);
}
.slide.in .months i { height: max(6px, calc(var(--h) * 0.82)); }
.months .zero i { background: rgba(255, 255, 255, 0.06); }
.months .peak i { background: linear-gradient(to top, var(--accent), var(--accent2)); box-shadow: 0 0 30px color-mix(in srgb, var(--accent2) 45%, transparent); }
.months b { font-size: 14px; font-weight: 800; color: rgba(255, 255, 255, 0.85); min-height: 1em; }
.months span { color: var(--muted); font-size: 13px; font-weight: 600; }
.months .peak span { color: #fff; }
.peak-tag { position: absolute; top: -6px; padding: 3px 8px; border-radius: 99px; background: var(--accent2); color: #111; font-style: normal; font-size: 11px; font-weight: 800; }
.slide.in .peak-tag { animation: pop 0.9s 1.2s var(--ease) both; }

/* 6. 키워드 */
.tag-cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; max-width: 820px; margin: 0 auto; }
.kw {
  display: inline-block;
  padding: calc(8px * var(--s)) calc(18px * var(--s));
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: calc(17px * var(--s)); font-weight: 800; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(20px) scale(0.8);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), background 0.5s var(--soft);
  transition-delay: calc(0.15s + var(--i) * 80ms);
}
.kw:nth-child(1) { background: linear-gradient(90deg, var(--accent), var(--accent2)); border-color: transparent; }
.slide.in .kw { opacity: 1; transform: none; }
.kw:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-3px) scale(1.03); transition-delay: 80ms; }
.slide.in .kw:nth-child(odd) { animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); }
@keyframes float { 50% { translate: 0 -6px; } }

/* 7. TOP 5 */
.top5 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.top1 {
  position: relative; display: block;
  opacity: 0; transform: translateY(30px) rotate(-2deg);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.slide.in .top1 { opacity: 1; transform: rotate(-1.5deg); }
.top1-img { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: #1c1c22; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1); transition: transform 0.8s var(--soft), box-shadow 0.8s var(--soft); }
.top1:hover .top1-img { transform: rotate(1.5deg) scale(1.02); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2); transition-delay: 120ms; }
.top1-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crown { position: absolute; top: 16px; left: 16px; padding: 7px 14px; border-radius: 99px; background: var(--accent2); color: #111; font-weight: 900; font-size: 15px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.top1-info { margin-top: 16px; }
.top1-info strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.top1-info small { color: var(--muted); font-size: 14px; }
.top-rest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.top-rest li { opacity: 0; transform: translateX(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(0.35s + var(--i) * 110ms); }
.slide.in .top-rest li { opacity: 1; transform: none; }
.top-rest a {
  display: grid; grid-template-columns: 40px 56px minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.5s var(--soft), transform 0.5s var(--soft);
}
.top-rest a:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(-4px); transition-delay: 90ms; }
.rk { font-size: 28px; font-weight: 900; color: rgba(255, 255, 255, 0.5); text-align: center; }
.th { width: 56px; height: 76px; border-radius: 10px; overflow: hidden; background: #1c1c22; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tx { min-width: 0; }
.tx strong { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx small { color: var(--muted); font-size: 13px; }

/* 8. 지역 */
.bubbles { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 30px; }
.bubble {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: calc(96px * var(--s)); height: calc(96px * var(--s));
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 55%, #fff 5%), color-mix(in srgb, var(--accent) 30%, transparent));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: scale(0.3);
  transition: opacity 0.8s var(--ease), transform 0.9s cubic-bezier(0.34, 1.4, 0.64, 1);
  transition-delay: calc(0.2s + var(--i) * 90ms);
}
.slide.in .bubble { opacity: 1; transform: none; }
.bubble.first { background: radial-gradient(circle at 35% 30%, #ffe08a, var(--accent2) 60%, color-mix(in srgb, var(--accent2) 40%, transparent)); color: #111; }
.bubble b { font-size: calc(16px * var(--s)); font-weight: 900; }
.bubble span { font-size: 12px; opacity: 0.8; font-weight: 700; }
.bubble:hover { transform: scale(1.07); transition: transform 0.5s var(--soft) 80ms; }
.slide.in .bubble:nth-child(even) { animation: float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
.rc-link { display: inline-block; color: #9fd8ff; font-weight: 700; font-size: 16px; transition: color 0.4s, padding 0.5s var(--soft); }
.rc-link:hover { color: #fff; padding-left: 6px; transition-delay: 60ms; }

/* 9. 기억 */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.fact {
  display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 16px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), background 0.5s var(--soft);
  transition-delay: calc(0.2s + var(--i) * 120ms);
}
.slide.in .fact { opacity: 1; transform: none; }
.fact:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-3px); transition-delay: 90ms; }
.fi { width: 70px; height: 94px; border-radius: 12px; overflow: hidden; background: #1c1c22; }
.fi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft em { display: block; font-style: normal; color: var(--accent2); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; margin-bottom: 6px; }
.ft strong { display: block; font-size: 18px; line-height: 1.3; margin-bottom: 4px; word-break: keep-all; }
.ft small { color: var(--muted); }

/* 10. 피날레 */
.finale-bg { position: absolute; inset: -60px; }
.finale-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) brightness(0.35) saturate(1.4); transform: scale(1.2); }
.finale .wrap { position: relative; z-index: 2; }
.finale-card {
  position: relative; display: block;
  width: min(380px, 86vw); margin: 0 auto 34px;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0; transform: translateY(40px) scale(0.94) rotate(2deg);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.slide.in .finale-card { opacity: 1; transform: none; transition-delay: 0.15s; }
.finale-card:hover { transform: translateY(-4px) scale(1.01); transition: transform 0.7s var(--soft) 120ms; }
.finale-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.finale-card .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%); transform: translateX(-100%); pointer-events: none; }
.slide.in .finale-card .shine { animation: sweep 2.2s 1.2s var(--soft) both; }
@keyframes sweep { to { transform: translateX(100%); } }
.finale-card div { position: absolute; inset: auto 0 0 0; padding: 70px 24px 22px; text-align: left; background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent); }
.finale-card strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.finale-card small { color: rgba(255, 255, 255, 0.8); }
.thanks { margin: 0 0 30px; font-size: 24px; font-weight: 800; line-height: 1.6; letter-spacing: -0.02em; opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease) 0.5s, transform 0.9s var(--ease) 0.5s; }
.thanks span { font-size: 17px; font-weight: 600; color: var(--muted); }
.slide.in .thanks { opacity: 1; transform: none; }
.rc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; opacity: 0; transition: opacity 0.9s var(--ease) 0.7s; }
.slide.in .rc-actions { opacity: 1; }
.btn {
  display: inline-flex; align-items: center; height: 50px; padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 16px;
  background: rgba(255, 255, 255, 0.09); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.5s var(--soft), background 0.45s var(--soft), box-shadow 0.5s var(--soft);
}
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.18); transition-delay: 70ms; }
.btn.primary { background: linear-gradient(90deg, #f5b301, #ffcf4d); border-color: transparent; color: #111; }
.btn.primary:hover { box-shadow: 0 14px 34px rgba(245, 179, 1, 0.35); }

.rc-empty { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.rc-empty h1 { font-size: 96px; margin: 0; font-weight: 900; letter-spacing: -0.05em; }
.rc-empty p { color: var(--muted); }
.rc-empty a { margin-top: 20px; color: #f5b301; font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 99; padding: 12px 18px; border-radius: 99px; background: #fff; color: #111; font-weight: 700; opacity: 0; transform: translate(-50%, 12px); transition: opacity 0.35s, transform 0.35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 반응형 */
@media (max-width: 860px) {
  html { scroll-snap-type: none; }
  .rc-header { padding: 0 14px; padding-top: env(safe-area-inset-top); gap: 10px; }
  .dots { right: 8px; gap: 8px; }
  .dots button { width: 6px; height: 6px; }
  .dots button.on { height: 18px; }
  .dots button span { display: none; }
  .slide { min-height: auto; padding: 96px 18px 70px; }
  .intro { min-height: 100vh; min-height: 100dvh; }
  .mosaic-row img { width: 96px; border-radius: 10px; }
  .big-numbers { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .num-card { padding: 20px 16px; border-radius: 20px; }
  .num-card i { font-size: 20px; margin-bottom: 10px; }
  .top5 { grid-template-columns: 1fr; }
  .top1 { width: min(320px, 100%); margin: 0 auto; }
  .months { height: 220px; gap: 4px; }
  .months span { font-size: 10px; }
  .months b { font-size: 11px; }
  .tb { grid-template-columns: 78px 1fr 44px; gap: 10px; font-size: 14px; }
  .bubble { width: calc(76px * var(--s)); height: calc(76px * var(--s)); }
  .thanks { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slide *, .num-card, .tb, .kw, .top1, .top-rest li, .bubble, .fact, .finale-card, .thanks, .rc-actions { opacity: 1 !important; transform: none !important; }
  .tb i::after { width: var(--w); } .months i { height: max(6px, calc(var(--h) * 0.82)); } .split-bar i { width: var(--w); }
}


/* ==========================================================
   이미지로 저장 모달
   ========================================================== */
.card-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s var(--soft);
}
.card-modal[hidden] { display: none; }
.card-modal.show { opacity: 1; }
.card-sheet {
  width: min(460px, 100%);
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column;
  padding: 18px;
  border-radius: 24px;
  background: #16161c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease);
}
.card-modal.show .card-sheet { transform: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sheet-head strong { font-size: 17px; }
.fmt { display: flex; gap: 4px; margin-left: auto; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.fmt button { height: 30px; padding: 0 12px; border: 0; border-radius: 99px; background: transparent; color: #bbb; font-size: 12px; font-weight: 700; cursor: pointer; transition: background 0.3s var(--soft), color 0.3s; }
.fmt button.on { background: #fff; color: #111; }
.close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 19px; cursor: pointer; transition: background 0.3s; }
.close:hover { background: rgba(255, 255, 255, 0.2); }
.preview {
  position: relative;
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: #0b0b0f;
  overflow: hidden;
}
.preview canvas {
  display: block;
  max-width: 100%;
  max-height: min(62vh, 640px);
  width: auto; height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.preview[data-fmt="square"] canvas { aspect-ratio: 1 / 1; max-height: min(52vh, 420px); }
.spinner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 11, 15, 0.75);
  color: #ddd; font-size: 14px; font-weight: 600;
}
.spinner[hidden] { display: none; }
.sheet-actions { display: flex; gap: 8px; margin-top: 14px; }
.sheet-actions .btn { flex: 1; justify-content: center; height: 48px; }
.sheet-actions .btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.sheet-tip { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 860px) {
  .card-modal { padding: 10px; align-items: flex-end; }
  .card-sheet { border-radius: 22px 22px 16px 16px; }
  .rc-header .share { padding: 0 11px; }
}
