/* ==========================================================
   reveal.css — 5-phase reveal experience.
   Luxury gothic aesthetic. Extends theme.css tokens + app.css chrome.
   ========================================================== */

/* ── CUSTOM ANIMATIONS ──────────────────────────────────── */
@keyframes glitterCascade {
  0% {
    background-position: 0% 0%, 25% -10%, 50% -20%, 75% -5%, 100% -15%;
    opacity: 0;
  }
  10% { opacity: 1; }
  100% {
    background-position: 10% 110%, 30% 120%, 55% 105%, 80% 115%, 95% 108%;
    opacity: 0;
  }
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 60, 0.4), 0 0 20px rgba(255, 0, 60, 0.15); }
  50% { box-shadow: 0 0 18px rgba(255, 0, 60, 0.65), 0 0 36px rgba(255, 0, 60, 0.25); }
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(255, 0, 60, 0.5), 0 0 20px rgba(255, 0, 60, 0.2); }
  50% { text-shadow: 0 0 14px rgba(255, 0, 60, 0.7), 0 0 30px rgba(255, 0, 60, 0.35); }
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.reveal-body {
  overflow-x: hidden;
  background: var(--bg);
  min-height: 100vh;
  color: var(--fg);
  font-family: var(--font-body);
}

.reveal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.reveal-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow:
    0 0 10px rgba(255, 0, 60, 0.5),
    0 0 30px rgba(255, 0, 60, 0.2),
    0 0 60px rgba(255, 0, 60, 0.1);
  animation: textGlow 3s ease-in-out infinite;
  transition: color 0.3s ease;
}

.reveal-brand:hover {
  color: var(--gold-light);
}

/* ── PROGRESS DOTS ──────────────────────────────────────── */
.phase-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.phase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phase-dot.dot-pending {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phase-dot.dot-completed {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.4), 0 0 12px rgba(212, 175, 55, 0.15);
}

.phase-dot.dot-active {
  background: var(--neon-red);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(255, 49, 49, 0.6), 0 0 24px rgba(255, 0, 60, 0.3);
  animation: neonPulse 2s ease-in-out infinite;
}

/* ── TIMER PILL ─────────────────────────────────────────── */
.reveal-timer-pill {
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(255, 0, 60, 0.06);
  border: 1px solid rgba(255, 0, 60, 0.15);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: border-color 0.3s ease;
}

.reveal-timer-pill:hover {
  border-color: rgba(255, 0, 60, 0.3);
}

.timer-icon {
  font-size: 14px;
  color: var(--neon-red);
  filter: drop-shadow(0 0 4px rgba(255, 0, 60, 0.4));
}

/* ── GLOW BACKGROUND ────────────────────────────────────── */
.reveal-glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(255, 0, 60, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(139, 0, 0, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(212, 175, 55, 0.02) 0%, transparent 60%);
}

/* ── PHASE SECTIONS ─────────────────────────────────────── */
.reveal-phase {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 96px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0s, transform 0s;
}

.reveal-phase.phase-enter {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
  display: none !important;
}

/* ── PHASE HEADER ───────────────────────────────────────── */
.phase-header {
  text-align: center;
  margin-bottom: 36px;
  width: 100%;
}

.phase-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 16px;
  background: var(--deep-red);
  color: #fff;
  border: 1px solid rgba(255, 0, 60, 0.25);
  box-shadow: 0 0 12px rgba(255, 0, 60, 0.15);
}

.dare-badge-p2 {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--bg);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.phase-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.phase-sub {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── NEXT BUTTON ────────────────────────────────────────── */
.phase-next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--deep-red), var(--dark-red));
  color: #fff;
  border: 1px solid rgba(255, 0, 60, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.phase-next-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 0, 60, 0.15) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.phase-next-btn:hover {
  background: linear-gradient(135deg, var(--neon-red), var(--deep-red));
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 0, 60, 0.3);
  border-color: rgba(255, 0, 60, 0.5);
}

.phase-next-btn:hover::before {
  opacity: 1;
}

.phase-next-btn:active {
  transform: scale(0.97);
}

.btn-glow {
  box-shadow:
    0 0 20px rgba(255, 0, 60, 0.3),
    0 0 40px rgba(255, 0, 60, 0.15);
}

.btn-glow:hover {
  box-shadow:
    0 0 30px rgba(255, 0, 60, 0.5),
    0 0 60px rgba(255, 0, 60, 0.25),
    0 0 80px rgba(255, 0, 60, 0.1);
}

/* ── PHASE 1: ENVELOPE ──────────────────────────────────── */
.phase-envelope {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 300px;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(15, 5, 8, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(212, 175, 55, 0.06),
    inset 0 1px 0 rgba(212, 175, 55, 0.08);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(145deg, #1a0e14, #261520, #1a0e14);
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
  transform-origin: top center;
  transform: rotateX(0deg);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.envelope-flap.flap-open {
  transform: rotateX(-160deg);
  opacity: 0;
}

.envelope-body {
  position: relative;
  z-index: 1;
  padding: 40px 36px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.handwritten-note {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.handwritten-note.note-rise {
  opacity: 1;
  transform: translateY(0);
}

.note-from {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.note-from em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold-light);
}

.note-text {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.8;
  color: var(--fg);
  white-space: pre-wrap;
  word-break: break-word;
  text-shadow: 0 0 20px rgba(240, 232, 224, 0.15), 0 0 40px rgba(212, 175, 55, 0.08);
}

.note-seal {
  text-align: center;
  margin-top: 28px;
  font-size: 32px;
  color: var(--neon-red);
  opacity: 0.8;
  filter: drop-shadow(0 0 8px rgba(255, 0, 60, 0.4));
}

.phase-hint {
  margin-top: 20px;
  font-size: 14px;
  color: var(--fg-muted);
  opacity: 0.8;
  animation: hint-pulse 2.5s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── PHASE 2: GAME MECHANICS ────────────────────────────── */
.game-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.game-container.game-done .game-mechanic {
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.mechanic-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.mechanic-hint {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.5px;
}

/* -- Tap game -- */
.tap-target {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 0, 60, 0.12), rgba(10, 10, 10, 0.9));
  border: 2px solid rgba(255, 0, 60, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 0 30px var(--tap-glow, rgba(255, 0, 60, 0.1));
  --tap-glow: rgba(255, 0, 60, 0.1);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.tap-target::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 60, 0.08), transparent 70%);
  pointer-events: none;
}

.tap-target:active,
.tap-target.tap-pop {
  transform: scale(0.88);
  border-color: var(--neon-red);
  box-shadow: 0 0 40px rgba(255, 0, 60, 0.4);
}

.tap-target.tap-complete {
  border-color: var(--gold);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.5), 0 0 100px rgba(212, 175, 55, 0.2);
  animation: tap-celebrate 0.6s ease forwards;
}

@keyframes tap-celebrate {
  0% { transform: scale(0.88); }
  40% { transform: scale(1.2); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.tap-flame {
  font-size: 44px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(255, 0, 60, 0.5));
}

.tap-count {
  font-size: 22px;
  font-weight: 700;
  color: var(--neon-red);
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.6);
}

/* -- Swipe seal -- */
.swipe-seal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.swipe-seal {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a0e14, #261520);
  border: 2px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.1), inset 0 0 20px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.swipe-seal:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.18);
}

.swipe-seal.seal-broken {
  border-color: var(--neon-red);
  box-shadow: 0 0 50px rgba(255, 0, 60, 0.4), 0 0 80px rgba(255, 0, 60, 0.15);
  animation: seal-break 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes seal-break {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(15deg) scale(1.1); }
  50% { transform: rotate(-12deg) scale(0.95); }
  75% { transform: rotate(5deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}

.seal-symbol {
  font-size: 48px;
  color: var(--gold);
  position: relative;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.seal-crack {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 60, 0.8), var(--neon-red), rgba(255, 0, 60, 0.8), transparent);
  opacity: 0;
  transition: none;
}

.swipe-track-hint {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* -- Hold button -- */
.hold-btn {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 0, 60, 0.06);
  border: 2px solid rgba(255, 0, 60, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.hold-btn:hover {
  border-color: rgba(255, 0, 60, 0.35);
  background: rgba(255, 0, 60, 0.08);
}

.hold-btn.holding {
  border-color: var(--neon-red);
  box-shadow: 0 0 40px rgba(255, 0, 60, 0.35), 0 0 80px rgba(255, 0, 60, 0.1);
  background: rgba(255, 0, 60, 0.1);
}

.hold-btn.hold-complete {
  border-color: var(--gold);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.45), 0 0 100px rgba(212, 175, 55, 0.15);
  animation: hold-complete 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes hold-complete {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.hold-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 3px solid rgba(255, 0, 60, 0.1);
  background: conic-gradient(
    var(--neon-red) calc(var(--hold-pct, 0) * 360deg),
    transparent 0
  );
  --hold-pct: 0;
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 3px));
}

.hold-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--neon-red);
  position: relative;
  z-index: 1;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.4);
}

/* -- Game response -- */
.game-response {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding-top: 28px;
  animation: slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.response-prompt {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  font-style: italic;
}

.dare-textarea {
  background: rgba(15, 5, 8, 0.8);
  border: 1px solid rgba(255, 0, 60, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  min-height: 100px;
}

.dare-textarea:focus {
  border-color: var(--neon-red);
  box-shadow: 0 0 16px rgba(255, 0, 60, 0.12);
}

.dare-textarea.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.char-count {
  font-size: 12px;
  color: var(--fg-muted);
  text-align: right;
}

/* ── PHASE 3: MEDIA ─────────────────────────────────────── */
.media-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.reveal-image-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 420px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 0, 60, 0.05);
}

.phase-reveal-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius);
}

.phase-reveal-image.img-revealed {
  opacity: 1;
}

.img-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 0, 60, 0.1) 20%,
    rgba(212, 175, 55, 0.2) 40%,
    rgba(255, 0, 60, 0.15) 55%,
    rgba(212, 175, 55, 0.1) 80%
  );
  background-size: 300% 100%;
  animation: shimmer-sweep 1.5s ease infinite;
  border-radius: var(--radius);
  pointer-events: none;
}

.img-shimmer.shimmer-fade {
  animation: none;
  opacity: 0;
  transition: opacity 1s ease;
}

@keyframes shimmer-sweep {
  0% { background-position: 300% 0; }
  100% { background-position: -300% 0; }
}

/* -- Voice player -- */
.voice-player {
  width: 100%;
  background: linear-gradient(135deg, rgba(15, 5, 8, 0.9), rgba(10, 10, 10, 0.95));
  border: 1px solid rgba(255, 0, 60, 0.15);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(255, 0, 60, 0.05);
}

.voice-player-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.voice-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-red), var(--deep-red));
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 0, 60, 0.3);
}

.voice-play-btn:hover {
  background: linear-gradient(135deg, var(--primary-red), var(--neon-red));
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(255, 0, 60, 0.5);
}

.voice-play-btn:active {
  transform: scale(0.95);
}

.play-icon {
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.voice-visualizer {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
}

.viz-bar {
  flex: 1;
  background: rgba(255, 0, 60, 0.25);
  border-radius: 2px;
  height: 20%;
  transition: height 0.12s ease;
}

.voice-visualizer.viz-playing .viz-bar {
  animation: viz-bounce 0.8s ease-in-out infinite;
  background: rgba(255, 0, 60, 0.5);
}

@keyframes viz-bounce {
  0%, 100% { height: 20%; }
  50% { height: 85%; }
}

.voice-duration {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

.voice-hint {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 12px;
  text-align: center;
}

.no-media-msg {
  text-align: center;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.7;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ── PHASE 4: FINAL INSTRUCTION ─────────────────────────── */
.final-instruction-wrap {
  width: 100%;
}

.final-instruction-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(15, 5, 8, 0.95));
  border: 1px solid rgba(255, 0, 60, 0.2);
  border-radius: var(--radius);
  padding: 40px 44px;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 0, 60, 0.06),
    inset 0 1px 0 rgba(212, 175, 55, 0.06);
}

.final-instruction-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0.5;
}

.fi-sender {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.final-instruction-text {
  font-family: var(--font-serif);
  font-size: clamp(18px, 3.5vw, 23px);
  line-height: 1.8;
  color: var(--fg);
  font-style: italic;
  word-break: break-word;
}

/* ── PHASE 5: DESTRUCT ──────────────────────────────────── */
.destruct-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  width: 100%;
}

.destruct-countdown-ring {
  position: relative;
  width: 168px;
  height: 168px;
  margin-bottom: 8px;
}

.countdown-svg {
  width: 168px;
  height: 168px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 12px rgba(255, 0, 60, 0.3));
}

.countdown-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 6;
}

.countdown-fill {
  fill: none;
  stroke: var(--neon-red);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 8px rgba(255, 0, 60, 0.6));
}

.countdown-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 0, 60, 0.3);
}

.countdown-unit {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fg-muted);
}

.destruct-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.destruct-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 400px;
}

.destruct-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  background: rgba(255, 0, 60, 0.04);
  border: 1px solid rgba(255, 0, 60, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px 28px;
}

.destruct-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.destruct-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--fg-muted);
}

.destruct-meta-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

.destruct-sep {
  color: rgba(255, 0, 60, 0.2);
  font-size: 20px;
}

.destruct-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.replay-btn {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--fg-muted);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.replay-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold-light);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.1);
}

/* ── OVERLAYS (expired + complete) ──────────────────────── */
.expired-overlay,
.complete-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.expired-card,
.complete-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(15, 5, 8, 0.98));
  border: 1px solid rgba(255, 0, 60, 0.15);
  border-radius: var(--radius);
  padding: 52px 44px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 0, 60, 0.06);
}

.expired-card h2,
.complete-card h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
  margin: 16px 0 14px;
}

.expired-card p,
.complete-card p {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.7;
}

.complete-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle,
    rgba(212, 175, 55, 0.15) 0%,
    rgba(255, 0, 60, 0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
  /* Glitter cascade overlay for reveal moments */
  background-image:
    radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(255, 0, 60, 0.05) 40%, transparent 70%),
    radial-gradient(1px 1px at 20% 30%, var(--gold) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 20%, var(--gold-light) 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 50%, var(--gold) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 40% 10%, var(--gold-light) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 40%, var(--gold) 50%, transparent 50%);
  animation: glitterCascade 3s ease-in-out infinite;
}

.complete-icon {
  font-size: 52px;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.complete-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 14px;
}

.complete-body {
  color: var(--fg-muted);
  font-size: 16px;
  margin-bottom: 4px;
  line-height: 1.7;
}

/* ── DARE PROMPT BOX (shared with dare.ejs) ─────────────── */
.dare-prompt-box {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  width: 100%;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.05);
}

.dare-prompt-text {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  font-style: italic;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .reveal-header {
    padding: 12px 16px;
  }

  .reveal-brand {
    font-size: 19px;
  }

  .reveal-phase {
    padding: 88px 16px 72px;
  }

  .phase-dots {
    gap: 8px;
  }

  .phase-dot {
    width: 8px;
    height: 8px;
  }

  .envelope-body {
    padding: 32px 20px 28px;
  }

  .phase-envelope {
    max-width: 100%;
  }

  .final-instruction-card {
    padding: 28px 22px;
  }

  .destruct-meta {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 20px;
  }

  .destruct-sep {
    display: none;
  }

  .expired-card,
  .complete-card {
    padding: 36px 24px;
  }

  .voice-player {
    padding: 16px 16px;
  }

  .tap-target,
  .hold-btn {
    width: 140px;
    height: 140px;
  }

  .swipe-seal {
    width: 120px;
    height: 120px;
  }

  .game-container {
    gap: 20px;
  }

  .destruct-countdown-ring,
  .countdown-svg {
    width: 140px;
    height: 140px;
  }
}
