/* ══════════════════════════════════════════════
   FAMWRAPPED — STYLES
   Premium story-based monthly recap UI
   Matches FamWish design system exactly
══════════════════════════════════════════════ */

/* ── DESIGN TOKENS (mirrors FamWish) ────────── */
:root {
  --bg:        #0D0D0D;
  --bg2:       #141414;
  --bg3:       #1C1C1C;
  --card:      #1A1A1A;
  --card2:     #222222;
  --border:    #2A2A2A;
  --accent:    #F5C518;
  --accent-d:  #C49D12;
  --accent-l:  rgba(245,197,24,0.15);
  --text:      #F0F0F0;
  --text2:     #A0A0A0;
  --text3:     #666666;
  --green:     #2DD98A;
  --red:       #FF5555;
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font:      'Space Grotesk', sans-serif;
  --font-head: 'Syne', sans-serif;
  --shadow:    0 4px 24px rgba(0,0,0,0.6);
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════
   MOCK DASHBOARD
═══════════════════════════════════════════════ */
#mock-dashboard {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0 100px;
  min-height: 100vh;
  background: var(--bg);
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 52px 20px 20px;
  background: linear-gradient(to bottom, var(--bg2), var(--bg));
}
.mock-greeting { font-size: 0.78rem; color: var(--text3); }
.mock-username  { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); }
.mock-balance-pill {
  display: flex; flex-direction: column; align-items: flex-end;
  background: var(--card); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px;
}
.mock-bal-label { font-size: 0.68rem; color: var(--text3); }
.mock-bal-val   { font-family: var(--font-head); font-size: 1rem; color: var(--accent); }

/* ── WRAPPED TRIGGER CARD ─────────────────────── */
.wrapped-trigger-card {
  margin: 0 16px 20px;
  position: relative;
  background: linear-gradient(135deg, #181100 0%, #201800 60%, #181100 100%);
  border: 1.5px solid rgba(245,197,24,0.3);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.2s, box-shadow 0.2s;
}
.wrapped-trigger-card:hover {
  transform: scale(1.01);
  border-color: rgba(245,197,24,0.55);
  box-shadow: 0 8px 32px rgba(245,197,24,0.1);
}
.wrapped-trigger-card:active { transform: scale(0.98); }

.trigger-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(245,197,24,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.trigger-left { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.trigger-sparkle { font-size: 2rem; }
.trigger-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.trigger-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--accent);
  line-height: 1.2;
}
.trigger-sub { font-size: 0.78rem; color: var(--text2); margin-top: 2px; }
.trigger-right { position: relative; z-index: 1; }
.trigger-btn {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 10px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.trigger-btn:hover { opacity: 0.85; }

/* ── MOCK DASHBOARD CONTENT ───────────────────── */
.mock-summary-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
}
.mock-sum-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.accent-card { border-color: rgba(245,197,24,0.25); }
.msc-label { font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.msc-val   { font-family: var(--font-head); font-size: 1.4rem; color: var(--text); }
.accent-card .msc-val { color: var(--accent); }

.mock-section-title {
  padding: 0 16px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mt16 { margin-top: 6px; }

.mock-wish-card {
  margin: 0 16px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.mwc-left { display: flex; align-items: center; gap: 14px; }
.mwc-emoji { font-size: 1.8rem; }
.mwc-name  { font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; }
.mwc-info  { flex: 1; }
.mwc-bar   { height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.mwc-fill  { height: 100%; background: linear-gradient(90deg, var(--accent-d), var(--accent)); border-radius: 4px; }
.mwc-sub   { font-size: 0.72rem; color: var(--text3); }

.mock-task {
  margin: 0 16px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mt-icon   { font-size: 1rem; }
.mt-name   { flex: 1; font-size: 0.88rem; }
.mt-status { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.pending-tag { background: rgba(255,85,85,0.12); color: var(--red); }
.done-tag    { background: rgba(45,217,138,0.12); color: var(--green); }
.mt-reward   { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

.mock-nav-hint {
  margin: 24px 16px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text3);
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════
   INFO MODAL
═══════════════════════════════════════════════ */
#info-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.info-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg2);
  border-top: 1.5px solid var(--border);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 44px;
  animation: slideUp 0.35s cubic-bezier(0.22,1,0.36,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.info-close {
  position: absolute;
  top: 16px; right: 16px;
  color: var(--text3);
  font-size: 1rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s;
}
.info-close:hover { color: var(--text); }
.info-icon-header { font-size: 2.5rem; margin-bottom: 10px; }
.info-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 12px;
}
.info-body {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 18px;
}
.info-list {
  list-style: none;
  margin-bottom: 24px;
}
.info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-list li span { font-size: 1.1rem; }

/* ═══════════════════════════════════════════════
   SHARED BUTTONS
═══════════════════════════════════════════════ */
.btn-yellow {
  display: block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: opacity 0.2s, transform 0.12s;
}
.btn-yellow:hover  { opacity: 0.88; }
.btn-yellow:active { transform: scale(0.98); }

.btn-outline {
  display: block;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.2s, transform 0.12s;
}
.btn-outline:hover  { background: var(--accent-l); }
.btn-outline:active { transform: scale(0.98); }

.btn-ghost-text {
  display: block;
  background: none;
  color: var(--text3);
  font-size: 0.88rem;
  padding: 10px;
  text-align: center;
  transition: color 0.2s;
}
.btn-ghost-text:hover { color: var(--text2); }

.btn-ghost-sm {
  background: rgba(255,255,255,0.06);
  color: var(--text2);
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: background 0.2s;
}
.btn-ghost-sm:hover { background: rgba(255,255,255,0.1); }

.w100 { width: 100%; }
.mt8  { margin-top: 8px; }

/* ═══════════════════════════════════════════════
   WRAPPED OVERLAY
═══════════════════════════════════════════════ */
#wrapped-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  overflow: hidden;
}

/* ── Story progress bar ── */
.story-progress {
  position: absolute;
  top: 12px;
  left: 12px; right: 12px;
  z-index: 20;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.sp-seg {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  overflow: hidden;
}
.sp-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0;
}
.sp-seg.done .sp-fill { width: 100%; }
.sp-seg.active .sp-fill { width: 100%; }

/* ── Top overlay buttons ── */
.w-btn-close, .w-btn-share {
  position: absolute;
  top: 26px;
  z-index: 25;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  transition: color 0.2s, background 0.2s, opacity 0.3s;
}
.w-btn-close:hover, .w-btn-share:hover {
  color: #fff;
  background: rgba(0,0,0,0.55);
}
.w-btn-close { right: 14px; }
.w-btn-share { right: 56px; opacity: 0.35; }

/* ── Slides container ── */
#slides-container {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════
   SLIDE BASE
═══════════════════════════════════════════════ */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.38s ease, transform 0.38s ease;
  pointer-events: none;
  will-change: opacity, transform;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}
.slide.exit-prev {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide-inner {
  width: 100%;
  max-width: 430px;
  padding: 72px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: center;
  overflow: hidden;
}
.slide-inner.centered { align-items: center; text-align: center; }

/* ── Common slide text elements ── */
.s-chip {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--accent);
  text-transform: uppercase;
}
.s-hero {
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--text);
}
.s-sub {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.65;
}
.s-big {
  font-family: var(--font-head);
  font-size: 3rem;
  line-height: 1.1;
  color: var(--text);
}
.s-footnote {
  font-size: 0.75rem;
  color: var(--text3);
  animation: textBlink 2s ease-in-out infinite;
}
@keyframes textBlink {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; }
}

/* ═══════════════════════════════════════════════
   SLIDE 0 — COVER
═══════════════════════════════════════════════ */
.slide[data-slide="0"] {
  background: radial-gradient(ellipse at 50% 35%, #1a1400 0%, #0d0d0d 65%);
  flex-direction: column;
  text-align: center;
}
.cover-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  10%  { opacity: 0.9; }
  80%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-110vh) scale(0.2); }
}
.cover-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
}
.cover-brand {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0.65;
  letter-spacing: 1px;
}
.cover-month {
  font-size: 0.75rem;
  color: var(--text3);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.cover-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0;
}
.cover-name {
  font-family: var(--font-head);
  font-size: 3.2rem;
  color: var(--text);
  line-height: 1;
}
.cover-word {
  font-family: var(--font-head);
  font-size: 4.5rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -3px;
}
.cover-tagline {
  font-size: 0.88rem;
  color: var(--text2);
  margin-top: 6px;
}
.cover-hint {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 28px;
  animation: textBlink 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   SLIDE 1 — WELCOME
═══════════════════════════════════════════════ */
.slide[data-slide="1"] {
  background: linear-gradient(155deg, #0f0f0f 0%, #141200 100%);
}
.welcome-stats {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 4px;
}
.ws-item { flex: 1; padding: 16px 10px; text-align: center; }
.ws-divider { width: 1px; background: var(--border); flex-shrink: 0; }
.ws-val {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--accent);
}
.ws-label { font-size: 0.7rem; color: var(--text2); margin-top: 3px; }

/* ═══════════════════════════════════════════════
   SLIDE 2 — EARNINGS
═══════════════════════════════════════════════ */
.slide[data-slide="2"] {
  background: linear-gradient(155deg, #0f0e00 0%, #0d0d0d 100%);
}
.earnings-hero { text-align: center; padding: 8px 0; }
.e-label  { font-size: 0.85rem; color: var(--text2); margin-bottom: 2px; }
.e-amount {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
}
.e-cur {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--accent);
  margin-top: 12px;
  line-height: 1;
}
.e-num {
  font-family: var(--font-head);
  font-size: 5.5rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -3px;
}
.e-period { font-size: 0.8rem; color: var(--text3); margin-top: 4px; }
.earnings-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.e-task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.e-task-row:last-child { border-bottom: none; }
.e-task-row .et-icon  { font-size: 1rem; }
.e-task-row .et-name  { flex: 1; font-size: 0.84rem; color: var(--text2); }
.e-task-row .et-amt   { font-size: 0.88rem; font-weight: 600; color: var(--accent); }
.e-task-row.et-more .et-name { color: var(--text3); font-style: italic; }
.e-compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--green);
  background: rgba(45,217,138,0.1);
  padding: 7px 14px;
  border-radius: 20px;
  align-self: flex-start;
}
.e-arrow { font-size: 0.95rem; font-weight: 700; }

/* ═══════════════════════════════════════════════
   SLIDE 3 — EFFORT
═══════════════════════════════════════════════ */
.slide[data-slide="3"] {
  background: linear-gradient(155deg, #0d0d0d 0%, #0e0e14 100%);
}
.effort-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.effort-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid rgba(45,217,138,0.2);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--text2);
  opacity: 0;
  animation: blockPop 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes blockPop {
  from { opacity: 0; transform: scale(0.75); }
  to   { opacity: 1; transform: scale(1); }
}
.effort-block .eb-check { color: var(--green); font-size: 0.75rem; }
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,197,24,0.09);
  border: 1px solid rgba(245,197,24,0.22);
  color: var(--accent);
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 20px;
}
.effort-note { font-size: 0.78rem; color: var(--text3); }

/* ═══════════════════════════════════════════════
   SLIDE 4 — WISH PROGRESS
═══════════════════════════════════════════════ */
.slide[data-slide="4"] {
  background: linear-gradient(155deg, #0d0d14 0%, #0d0d0d 100%);
}
.wish-emoji { font-size: 4.5rem; }
.wish-name  { font-family: var(--font-head); font-size: 2rem; color: var(--text); }
.wish-track {
  width: 100%;
  height: 14px;
  background: var(--card);
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.wish-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-d), var(--accent));
  border-radius: 7px;
  transition: width 1.4s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.wish-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 28px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28));
}
.wish-pct {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
}
.wish-nums { font-size: 0.88rem; color: var(--text2); }
.wish-eta  {
  font-size: 0.84rem;
  color: var(--text3);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 10px;
}

/* ═══════════════════════════════════════════════
   SLIDE 5 — PERSONA
═══════════════════════════════════════════════ */
.slide[data-slide="5"] {
  background: radial-gradient(ellipse at 50% 38%, #171200 0%, #0d0d0d 65%);
}
.persona-box {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.persona-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle, rgba(245,197,24,0.22) 0%, transparent 65%);
  border-radius: 50%;
  animation: glowPulse 2.8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.08); }
}
.persona-emoji {
  font-size: 6rem;
  position: relative;
  z-index: 2;
  animation: personaDrop 0.7s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.2s;
}
@keyframes personaDrop {
  from { opacity: 0; transform: scale(0.2) rotate(-20deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
.persona-name {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--accent);
  letter-spacing: -1px;
  animation: fadeUp 0.55s ease both;
  animation-delay: 0.45s;
}
.persona-desc {
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.65;
  max-width: 300px;
  animation: fadeUp 0.55s ease both;
  animation-delay: 0.65s;
}
.persona-share-tip {
  font-size: 0.74rem;
  color: var(--text3);
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.85s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   SLIDE 6 — BADGE
═══════════════════════════════════════════════ */
.slide[data-slide="6"] {
  background: radial-gradient(ellipse at 50% 38%, #160d00 0%, #0d0d0d 65%);
}
.badge-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-ring {
  width: 145px; height: 145px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: ringPop 0.65s cubic-bezier(0.34,1.56,0.64,1) both,
             ringGlow 2.2s ease-in-out 0.9s infinite;
  animation-delay: 0.15s, 0.9s;
}
@keyframes ringPop {
  from { opacity: 0; transform: scale(0.35) rotate(-90deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes ringGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(245,197,24,0.28); }
  50%       { box-shadow: 0 0 36px rgba(245,197,24,0.65); }
}
.badge-inner-circle {
  width: 112px; height: 112px;
  background: var(--card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-emoji {
  font-size: 3.8rem;
  animation: badgeIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.55s;
}
@keyframes badgeIn {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
/* Light beams */
.badge-beams {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  z-index: 1;
  pointer-events: none;
}
.beam {
  position: absolute;
  width: 2px;
  height: 0;
  background: linear-gradient(to top, rgba(245,197,24,0.7), transparent);
  transform-origin: 0 0;
  border-radius: 1px;
  animation: beamGrow 0.45s ease both;
  animation-delay: 0.65s;
}
.b1 { transform: rotate(0deg)   translateX(-1px); }
.b2 { transform: rotate(60deg)  translateX(-1px); }
.b3 { transform: rotate(120deg) translateX(-1px); }
.b4 { transform: rotate(180deg) translateX(-1px); }
.b5 { transform: rotate(240deg) translateX(-1px); }
.b6 { transform: rotate(300deg) translateX(-1px); }
@keyframes beamGrow {
  0%   { height: 0; opacity: 0; }
  50%  { opacity: 1; }
  100% { height: 68px; opacity: 0.45; }
}
.badge-name {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--accent);
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.8s;
}
.badge-desc {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.55;
  max-width: 280px;
  text-align: center;
  animation: fadeUp 0.5s ease both;
  animation-delay: 1s;
}
.btn-collect {
  background: linear-gradient(135deg, var(--accent-d), var(--accent));
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(245,197,24,0.28);
  transition: transform 0.15s, opacity 0.2s;
  animation: fadeUp 0.5s ease both;
  animation-delay: 1.15s;
}
.btn-collect:hover  { opacity: 0.88; }
.btn-collect:active { transform: scale(0.97); }
.btn-collect.collected {
  background: var(--card2);
  color: var(--green);
  border: 1.5px solid var(--green);
  box-shadow: none;
}

/* ═══════════════════════════════════════════════
   SLIDE 7 — PARENT REACTION
═══════════════════════════════════════════════ */
.slide[data-slide="7"] {
  background: linear-gradient(155deg, #0e0900 0%, #0d0d0d 100%);
}
.parent-card {
  background: var(--card);
  border: 1px solid rgba(245,197,24,0.18);
  border-radius: 18px;
  padding: 20px;
  max-width: 340px;
  text-align: left;
  position: relative;
}
.parent-quote-mark {
  position: absolute;
  top: 8px; left: 16px;
  font-family: var(--font-head);
  font-size: 4rem;
  color: rgba(245,197,24,0.12);
  line-height: 1;
  pointer-events: none;
}
.parent-avatar {
  width: 44px; height: 44px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.parent-message {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
}
.parent-sig {
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 14px;
}
.reaction-row {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.r-em {
  font-size: 2rem;
  opacity: 0;
  animation: emojiBounce 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: var(--d);
}
@keyframes emojiBounce {
  from { opacity: 0; transform: scale(0) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ═══════════════════════════════════════════════
   SLIDE 8 — FINAL SHARE
═══════════════════════════════════════════════ */
.slide[data-slide="8"] {
  background: radial-gradient(ellipse at 50% 28%, #141200 0%, #0d0d0d 60%);
}
.share-card {
  background: linear-gradient(135deg, #1c1500 0%, #231c00 55%, #1c1500 100%);
  border: 1.5px solid rgba(245,197,24,0.38);
  border-radius: 20px;
  padding: 22px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.share-card::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(245,197,24,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.sc-brand  { font-size: 0.62rem; color: var(--text3); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 12px; }
.sc-name   { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); margin-bottom: 4px; }
.sc-persona{ font-size: 1rem; color: var(--accent); margin-bottom: 16px; }
.sc-stats  { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.sc-stat   {}
.sc-v { font-family: var(--font-head); font-size: 1.4rem; color: var(--accent); }
.sc-l { font-size: 0.65rem; color: var(--text3); margin-top: 2px; }
.sc-badge-row {
  font-size: 0.8rem; color: var(--text2);
  background: var(--card); display: inline-block;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 14px;
}
.sc-footer { font-size: 0.62rem; color: var(--text3); letter-spacing: 0.5px; }
.final-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.final-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.btn-minor {
  color: var(--text3);
  font-size: 0.85rem;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-minor:hover { color: var(--text); border-color: var(--text3); }

/* ═══════════════════════════════════════════════
   SHARE SHEET
═══════════════════════════════════════════════ */
#share-sheet {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg2);
  border-top: 1.5px solid var(--border);
  border-radius: 24px 24px 0 0;
  padding: 12px 20px 44px;
  animation: slideUp 0.32s cubic-bezier(0.22,1,0.36,1);
}
.sheet-handle {
  width: 38px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 4px auto 18px;
}
.sheet-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 14px;
}
.share-preview {
  background: var(--card);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.sp-persona { font-size: 0.95rem; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.sp-stats   { font-size: 0.8rem; color: var(--text2); }
.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.s-opt {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background 0.18s, border-color 0.18s;
}
.s-opt:hover { background: var(--card2); border-color: var(--text3); }
.s-opt:active { transform: scale(0.96); }
.s-opt-icon  { font-size: 1.5rem; }
.s-opt-label { font-size: 0.68rem; color: var(--text2); white-space: nowrap; }
.s-opt-parent {
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  border-color: rgba(245,197,24,0.28);
  padding: 12px 20px;
}
.s-opt-parent .s-opt-label { font-size: 0.85rem; }
.share-privacy {
  font-size: 0.72rem;
  color: var(--text3);
  text-align: center;
  padding: 10px 4px;
}

/* ═══════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  z-index: 2000;
  white-space: nowrap;
  pointer-events: none;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 380px) {
  .cover-word   { font-size: 3.6rem; }
  .cover-name   { font-size: 2.6rem; }
  .s-hero       { font-size: 2.1rem; }
  .s-big        { font-size: 2.4rem; }
  .e-num        { font-size: 4.5rem; }
  .persona-name { font-size: 2rem; }
  .ws-val       { font-size: 1.4rem; }
}

@media (min-height: 750px) {
  .slide-inner { padding-bottom: 60px; }
}
