/* Snap Hunt styles. Reuses the photobooth tokens + base classes AND debate.css components
   (the camera stage, score bar, result board, pack grid, seg, age-gate). This file adds the
   viewfinder + countdown, the find-preview overlay, the reveal cards, and the keepsake
   filmstrip on the result. Pastel base with a warm "treasure" gold accent. */

:root {
  --hunt-gold: #E6A23C;
  --hunt-gold-soft: #FBEBD2;
}

/* ============ PACK (rounds/seconds reuse .rounds-block + .seg) ============ */
.scene-hunt .clue-label,
.hunt-cluewrap .clue-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--hunt-gold); text-transform: uppercase;
}
.hunt-cluewrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hunt-clue { max-width: 22ch; text-align: center; }

/* ============ HUNT — the viewfinder ============ */
.hunt-stage {
  position: relative; width: 100%; max-width: 480px; margin: 0 auto;
  aspect-ratio: 4 / 3; background: #000; border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow-soft);
}
.hunt-stage .debate-video { width: 100%; height: 100%; object-fit: cover; }

/* 3-2-1 countdown + capture flash, overlaid on the viewfinder */
.evidence-countdown {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 120px; color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5); background: rgba(23,24,28,0.28);
}
.evidence-countdown.is-on { display: flex; animation: count-pop 0.62s ease both; }
@keyframes count-pop { from { transform: scale(1.5); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1); opacity: 0.9; } }
.evidence-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.evidence-flash.is-on { animation: flash 0.22s ease; }
@keyframes flash { from { opacity: 0.9; } to { opacity: 0; } }

/* "found it!" badge once a find is locked in */
.find-locked {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  background: var(--hunt-gold); color: #fff; font-weight: 800; font-size: 14px;
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-soft);
  animation: count-pop 0.4s ease both;
}

/* the captured-but-unconfirmed preview overlay (use / retake) */
.find-preview {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: rgba(23,24,28,0.55); backdrop-filter: blur(2px);
}
.find-preview-img { width: 100%; flex: 1; object-fit: cover; min-height: 0; }
.find-preview-actions {
  display: flex; gap: var(--s1); justify-content: center; padding: 10px;
  background: rgba(23,24,28,0.35);
}

/* partner presence chip */
.hunt-partner {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; text-align: center;
  color: var(--ink-soft);
}
.hunt-partner[data-color="pink"] { color: var(--pink); }
.hunt-partner[data-color="blue"] { color: var(--blue); }

.hunt-snap { font-size: 17px; }
.scene-hunt .debate-timer.is-urgent { color: #E2554F; animation: pulse 0.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

/* ============ REVEAL — both finds side by side ============ */
.reveal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); width: 100%; }
.reveal-card {
  display: flex; flex-direction: column; border: 2px solid var(--ink);
  border-radius: var(--r-card); overflow: hidden; background: var(--paper-raised);
  border-color: rgba(23,24,28,0.12);
}
.reveal-card[data-color="pink"] { border-color: var(--pink-tint); }
.reveal-card[data-color="blue"] { border-color: var(--blue-tint); }
.reveal-card.is-winner[data-color="pink"] { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-tint); }
.reveal-card.is-winner[data-color="blue"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.reveal-photo { position: relative; aspect-ratio: 4 / 3; background: #000; }
.reveal-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reveal-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--hunt-gold-soft); color: var(--ink-soft); font-weight: 700;
}
.reveal-crown { position: absolute; top: 6px; right: 8px; font-size: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.reveal-card-body { display: flex; flex-direction: column; gap: 6px; padding: var(--s2); }
.reveal-score { font-size: 28px; }
.reveal-card .score-meter-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-soft); text-transform: uppercase;
}
.reveal-badge {
  align-self: center; background: var(--hunt-gold); color: #fff; font-weight: 800;
  padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-soft);
}
.reveal-headline {
  font-size: 16px; line-height: 1.5; color: var(--ink); text-align: center;
  max-width: 48ch; font-style: italic;
}
.reveal-headline::before { content: "“"; }
.reveal-headline::after { content: "”"; }

/* ============ RESULT — keepsake filmstrip ============ */
.result-strip {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  width: 100%; max-width: 520px;
}
.strip-col { display: flex; flex-direction: column; gap: 4px; }
.strip-thumb {
  width: 56px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px;
  border: 2px solid var(--hunt-gold); background: var(--hunt-gold-soft); display: block;
}
.strip-thumb.is-empty { border-style: dashed; }
.breakdown-winner { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--hunt-gold); white-space: nowrap; }
.result-actions { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; justify-content: center; }

/* ============ responsive ============ */
@media (max-width: 720px) {
  .reveal-cards { grid-template-columns: 1fr; }
  .evidence-countdown { font-size: 84px; }
}
