.impostor-count-field {
  margin-top: 20px;
}

.impostor-count-field p,
.locations-box p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.locations-box {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.locations-box h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* QR Code */

.qr-shell {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: #fff;
}

#qr-code img,
#qr-code canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
}

.manual-code-box {
  margin: 0 0 24px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  text-align: left;
}

.manual-code-box summary {
  padding: 12px 16px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.manual-code-box textarea,
.manual-code-box .button {
  width: calc(100% - 24px);
  margin: 0 12px 12px;
}

.manual-code-box textarea {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.qr-reader {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.status-text {
  min-height: 24px;
  color: var(--muted);
  text-align: center;
}

.status-text.error {
  color: var(--danger);
}

.status-text.success {
  color: var(--success);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--rule);
}

#manual-code {
  margin-bottom: 10px;
}

/* Fim de jogo */

.impostor-reveal-name {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
}

.impostor-name-badge {
  padding: 16px 20px;
  border: 2px solid var(--danger);
  border-radius: 16px;
  color: var(--danger);
  background: var(--danger-soft);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.result-reveal-card {
  width: 100%;
  color: var(--text);
  text-align: center;
  transition: background-color 120ms ease;
}

.result-reveal-card:hover {
  background: var(--surface-2);
}

.result-reveal-card.revealed {
  cursor: default;
  background: var(--bg);
}

.result-reveal-card h2 {
  overflow-wrap: anywhere;
}

/* Diálogo de identidade com botão de remover */

.identity-dialog-content {
  position: relative;
}

.identity-dialog-content > .eyebrow,
.identity-dialog-content > h2,
.identity-dialog-content > p {
  padding-right: 48px;
}

.remove-player-dialog-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  color: var(--danger);
  background: transparent;
}

.remove-player-dialog-button:hover {
  background: var(--danger-soft);
}

.remove-player-dialog-button svg {
  width: 20px;
  height: 20px;
}
