/* ── Doodle Detective ─────────────────────────────────────────────────────
   Everyone draws the same secret prompt except the imposters (one word
   swapped); the room watches every drawing, then votes for the ones that
   look off. Drawn as three cards to inspect (the shared 3x3 grid's middle
   row, not a board — a row of drawings, not letters) with a magnifying
   glass over the odd one, in the game's own secret-prompt purple (phone/
   games/doodledetective: #8B5CF6, .dd-my-prompt b / .dd-self-card border) —
   doubling as the detective motif the name calls for. Marks are the game's
   own normal-green (#22C55E) and imposter-red (#EF4444, display
   .ddd-stamp / .ddd-grid.stamped .ddd-card border). */
.game-art--doodledetective .ga-cell.ddd-ok {
  border-color: color-mix(in srgb, #22C55E 55%, var(--border));
}
.game-art--doodledetective .ga-cell.ddd-ok::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 40%;
  height: 40%;
  background: #22C55E;
  clip-path: polygon(10% 55%, 35% 80%, 90% 15%, 78% 5%, 35% 60%, 22% 42%);
}
.game-art--doodledetective .ga-cell.ddd-imposter {
  border-color: #EF4444;
  background: color-mix(in srgb, #EF4444 14%, var(--surface));
  z-index: 2;
}
.game-art--doodledetective .ga-cell.ddd-imposter::before,
.game-art--doodledetective .ga-cell.ddd-imposter::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56%;
  height: max(1px, 3cqmin);
  background: #EF4444;
  border-radius: 999px;
}
.game-art--doodledetective .ga-cell.ddd-imposter::before { transform: translate(-50%, -50%) rotate(45deg); }
.game-art--doodledetective .ga-cell.ddd-imposter::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.game-art--doodledetective .ddd-glass {
  position: absolute;
  left: 62%;
  top: 56%;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  border: max(1px, 3.4cqmin) solid #8B5CF6;
  background: transparent;
  z-index: 3;
}
.game-art--doodledetective .ddd-glass::after {
  content: '';
  position: absolute;
  left: 88%;
  top: 88%;
  width: 60%;
  height: max(1px, 3.6cqmin);
  background: #8B5CF6;
  border-radius: 999px;
  transform-origin: 0 50%;
  transform: rotate(45deg);
}
/* Thumbnail tier: the check and X marks blur first — three cards plus the
   purple glass over the middle one still reads as "spot the odd one." */
@container ga-stage (max-width: 70px) {
  .game-art--doodledetective .ga-cell.ddd-ok::before,
  .game-art--doodledetective .ga-cell.ddd-imposter::before,
  .game-art--doodledetective .ga-cell.ddd-imposter::after { display: none; }
}
