/* ============================================================
   Detective — deduction game (read clues, accuse the thief)
   ============================================================ */
.game-shell { max-width: 560px; }

.case { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; padding: 2px; }

/* ---------- case file (clues) ---------- */
.casefile {
  background: #FFFDF4; border: 4px solid var(--stroke); border-radius: 16px;
  box-shadow: 0 5px 0 var(--stroke); padding: 12px 14px;
  background-image: repeating-linear-gradient(transparent, transparent 27px, rgba(28,24,20,0.07) 28px);
}
.casefile-head {
  font-family: 'Astalamet', serif; font-weight: 700; font-size: 14px;
  letter-spacing: 1px; color: var(--stroke); margin-bottom: 8px; text-transform: uppercase;
}
.clues { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.clues li {
  display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600;
  line-height: 1.25; color: var(--text);
}
.clues li::before {
  content: '🔎'; flex: none; font-size: 15px;
}
.clue-tag {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 7px; height: 22px; border-radius: 7px; border: 2px solid var(--stroke);
  font-weight: 800; font-size: 13px; background: var(--card);
}
.clue-swatch { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--stroke); display: inline-block; }
.clue-no { color: #C62828; font-weight: 800; }

/* ---------- suspect grid ---------- */
.suspects {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}
.suspect {
  position: relative; background: var(--card);
  border: 4px solid var(--stroke); border-radius: 16px; box-shadow: 0 4px 0 var(--stroke);
  padding: 8px 6px 9px; text-align: center; cursor: pointer;
  transition: transform 0.12s var(--bounce), box-shadow 0.12s, opacity 0.18s, filter 0.18s;
}
.suspect:active { transform: translateY(4px); box-shadow: 0 0 0 var(--stroke); }
.suspect .face { font-size: 38px; line-height: 1; display: block; margin: 2px 0 6px; }
.suspect .sname { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .4px; }

.badges { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin-bottom: 5px; min-height: 22px; }
.badge {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--stroke);
  display: grid; place-items: center; font-size: 13px; background: #fff;
}
.badge.coat { /* colored coat swatch */ }

/* ruled-out state */
.suspect.out { opacity: 0.45; filter: grayscale(0.7); }
.suspect.out::after {
  content: '✗'; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 54px; font-weight: 900; color: rgba(198,40,40,0.85);
}

/* accuse mode */
.suspects.accusing .suspect {
  animation: accusePulse 1s ease-in-out infinite;
  box-shadow: 0 0 0 3px #FFD43B, 0 4px 0 var(--stroke);
}
.suspects.accusing .suspect.out { animation: none; }
@keyframes accusePulse { 0%,100%{ box-shadow:0 0 0 3px #FFD43B,0 4px 0 var(--stroke);} 50%{ box-shadow:0 0 0 6px rgba(255,212,59,.45),0 4px 0 var(--stroke);} }

/* reveal in modal */
.reveal-suspect { display: flex; align-items: center; justify-content: center; gap: 12px; }
.reveal-suspect .face { font-size: 46px; }
.reveal-suspect .badges { margin: 0; }

/* ---------- action bar ---------- */
.action-bar { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.status-line { text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); min-height: 18px; }
.accuse-btn { background: var(--yellow); }
.accuse-btn.armed { background: #E8443B; color: #fff; }
