/* Snap Hunt — only what base.css does not already give us: the camera stage, the two find cards,
   the vote row and the RESULT contact sheet. Everything else (scene, pack, buttons, hud, reveal,
   result) is shared. The camera block (.cam*) is shared with the Fashion Show and lives here as
   the canonical copy — both pages import their own sheet, so it is duplicated on purpose rather
   than dragged into base.css, which no non-camera activity should have to download. */

/* ---- the camera stage (shared shape with /fashion) ---------------------------------------- */
.cam {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r16);
  overflow: hidden;
  background: #EDEFF3;
  box-shadow: var(--shadow-1);
}
.cam__video, .cam__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cam__video.is-mirrored { transform: scaleX(-1); }
.cam__video.is-behind { visibility: hidden; }
.cam__flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.cam__flash.is-on { animation: cam-flash 420ms ease-out; }
@keyframes cam-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.cam__err {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: var(--paper-raised);
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---- HUNT ---------------------------------------------------------------------------------- */
.hu-eyebrow { font-family: var(--mono); letter-spacing: .12em; }
.hu-clue { margin: 2px 0 14px; text-align: center; }
.hu-stage { width: min(100%, 520px); margin: 0 auto; }
.hu-status { min-height: 20px; margin-top: 10px; text-align: center; font-size: 13px; color: var(--blue); }
.hu-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; }
.hu-starthint, .hu-secret { text-align: center; }
.hu-hunt.is-live .hu-clue { color: var(--ink); }

/* ---- REVEAL -------------------------------------------------------------------------------- */
.hu-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin: 8px 0 4px;
}
.hu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r16);
  overflow: hidden;
  background: var(--paper-raised);
  box-shadow: var(--shadow-1);
}
.hu-card.pink { border-color: var(--pink); }
.hu-card.blue { border-color: var(--blue); }
.hu-card.is-win { box-shadow: var(--shadow-2); }
.hu-card__photo { aspect-ratio: 4 / 3; background: #EDEFF3; }
.hu-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.hu-card__empty {
  aspect-ratio: 4 / 3;
  display: grid;
  place-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  background: #EDEFF3;
}
.hu-card__crown { position: absolute; top: 8px; right: 10px; font-size: 22px; }
.hu-card__row { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px 0; }
.hu-card__name { font-weight: 800; }
.hu-card__bolt { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.hu-card__score { margin-left: auto; font-size: 28px; font-weight: 800; }
.hu-card__badge { padding: 0 12px 4px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.hu-card__note { padding: 0 12px 12px; font-size: 13px; color: var(--ink-soft); font-style: italic; }

/* `.meta` is styled under `.play` in base.css; the reveal is not a play scene, so it repeats the row here. */
.hu-reveal .meta { display: flex; gap: 14px; align-items: center; justify-content: center; font: 700 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.hu-vote__wrap { display: grid; gap: 8px; justify-items: center; margin: 10px 0; text-align: center; }
.hu-vote__q { font-weight: 800; }
.hu-vote__clock { font-size: 13px; color: var(--ink-soft); }
.hu-line { text-align: center; font-style: italic; color: var(--ink-soft); }
.hu-next { margin-top: 12px; }

/* ---- RESULT --------------------------------------------------------------------------------- */
.hu-result__emoji { font-size: 52px; line-height: 1; }
.hu-result__h { margin: 4px 0; text-align: center; }
.hu-result__band { margin-bottom: 12px; color: var(--ink-soft); text-align: center; }
.hu-board { display: grid; gap: 6px; width: 100%; max-width: 420px; }
.hu-board__row { border: 1px solid var(--line); border-radius: var(--r8); padding: 10px 14px; gap: 12px; }
.hu-board__row.pink { border-color: var(--pink); }
.hu-board__row.blue { border-color: var(--blue); }
.hu-board__pts { margin-left: auto; font-weight: 800; }
.hu-sheet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  margin: 14px 0 4px;
}
.hu-sheet__cell {
  width: 84px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r4);
  overflow: hidden;
  background: #EDEFF3;
  border: 2px solid transparent;
}
.hu-sheet__cell.pink { background: var(--pink-tint); }
.hu-sheet__cell.blue { background: var(--blue-tint); }
.hu-sheet__cell.is-win { border-color: var(--yellow); }
.hu-sheet__cell img { width: 100%; height: 100%; object-fit: cover; }
.hu-rounds { width: 100%; }
.hu-busy { text-align: center; }

@media (max-width: 520px) {
  .hu-cards { grid-template-columns: 1fr; }
  .hu-card__photo, .hu-card__empty { aspect-ratio: 16 / 10; }
}
