dialog.group-reveal[open] {
  position: fixed; inset: 0; margin: 0; width: 100vw; max-width: 100vw;
  height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-radius: 0;
  display: flex; flex-direction: column; background: #f5f2fc; color: #241842;
}
.group-reveal .modal-head { padding: 12px 28px; background: #fff; flex-shrink: 0; }
.group-reveal .modal-head h2 { font-size: 20px; }
.group-reveal .modal-body { flex: 1; min-height: 0; padding: 20px 28px 16px; display: flex; flex-direction: column; gap: 16px; }
.reveal-intro { text-align: center; flex-shrink: 0; }
.reveal-intro .eyebrow { margin: 0 0 4px; color: #65518a; }
.reveal-intro h3 { font: 900 clamp(32px, 4vw, 60px)/1.05 Nunito, sans-serif; margin: 0; }
.reveal-intro p:last-child { margin: 6px 0 0; color: #65518a; }
.reveal-grid { display: grid; grid-template-columns: repeat(var(--group-columns), minmax(0, 1fr)); gap: 14px; flex: 1; min-height: 0; overflow: auto; align-content: start; padding: 4px; }
.reveal-group { min-width: 0; background: white; border: 2px solid #e0d8ef; border-radius: 20px; padding: 16px; min-height: 160px; }
.reveal-group.is-current { border-color: #7047eb; box-shadow: 0 0 0 2px #7047eb18; }
.reveal-group header { display: flex; justify-content: space-between; align-items: start; gap: 8px; margin-bottom: 14px; }
.reveal-number { font-size: clamp(18px, 1.7vw, 28px); font-weight: 900; color: #5632bc; }
.reveal-group h4 { font-size: 15px; font-weight: 700; margin: 2px 0 0; overflow-wrap: anywhere; }
.reveal-count { font-size: 12px; white-space: nowrap; color: #65518a; padding-top: 6px; }
.reveal-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--face-width, 58px), 1fr)); gap: 12px 6px; }
.reveal-person { margin: 0; min-width: 0; text-align: center; }
.reveal-avatar { width: min(100%, 100px); aspect-ratio: 1; position: relative; margin: auto; border-radius: 50%; overflow: hidden; background: #e8ddff; display: grid; place-items: center; font-weight: 900; font-size: 22px; color: #5632bc; }
.reveal-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reveal-person figcaption { font-size: 12px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; margin-top: 5px; }
.reveal-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-shrink: 0; }
.reveal-controls p { margin: 0; font-weight: 800; }
.reveal-controls > div { display: flex; flex-wrap: wrap; gap: 8px; }
.reveal-loading { margin: auto; text-align: center; max-width: 600px; font-size: 20px; }
.group-reveal .modal-body { position: relative; }
.reveal-avatar svg { width: 85%; height: 85%; fill: #554567; }
.is-mystery .reveal-avatar { background: #d8d0e6; }
.reveal-spotlight { position: absolute; inset: 0 0 80px; z-index: 2; background: #f5f2fcf5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; pointer-events: none; }
.reveal-spotlight h3 { font-size: clamp(24px, 3vw, 40px); margin: 0 0 24px; }
.reveal-spotlight .reveal-person { width: min(260px, 55vw); }
.reveal-spotlight .reveal-avatar { width: 100%; font-size: 64px; box-shadow: 0 14px 60px #5632bc22; }
.reveal-spotlight figcaption { font-size: clamp(24px, 3vw, 38px); margin-top: 18px; }
.quest-feed-media { width: min(100%, 480px); max-height: 400px; object-fit: contain; border-radius: 16px; margin: 12px 0; }
.quest-feed-answer { white-space: pre-wrap; }
.quest-feed-card h2 { margin-bottom: 8px; }
@media (max-width: 1000px) { .reveal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .group-reveal .modal-head { padding: 10px 14px; }
  .group-reveal .modal-body { padding: 12px 10px; gap: 10px; }
  .reveal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .reveal-group { padding: 10px; border-radius: 14px; }
  .reveal-members { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
  .reveal-controls { flex-direction: column; align-items: stretch; }
  .reveal-controls > div { justify-content: center; }
  .reveal-controls p { text-align: center; }
  .reveal-controls button { padding: 10px; font-size: 13px; }
}
