/* Diálogos: Gerar mundo, Exportar imagem e Folha nova. */

dialog {
  width: min(460px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 0;
  background: var(--hull);
  color: var(--bone);
  border: 1px solid var(--seam-2);
  border-radius: 9px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

dialog::backdrop {
  background: rgba(5, 8, 9, 0.62);
}

dialog form {
  display: grid;
  gap: 18px;
  padding: 22px 22px 20px;
}

.dlg-head {
  display: grid;
  gap: 6px;
}

.dlg-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
}

.dlg-head p {
  margin: 0;
  color: var(--lichen);
  font-size: 14.5px;
}

.seed-row {
  display: flex;
  gap: 6px;
}

.seed-row input {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
}

.choice label {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--seam-2);
  border-radius: 6px;
  background: var(--hull-2);
  cursor: pointer;
  font-size: 14.5px;
  color: var(--bone);
}

.choice label small {
  color: var(--lichen);
  font-size: 12.5px;
  font-family: var(--font-mono);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label:has(input:checked) {
  border-color: var(--brass);
  background: var(--hull-3);
}

.choice .choice-full {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 88% 50%, rgba(201, 162, 79, 0.16), transparent 55%),
    var(--hull-2);
}

.choice label:has(input:focus-visible) {
  outline: 2px solid var(--brass-2);
  outline-offset: 2px;
}

.fine {
  margin: 0;
  font-size: 13px;
  color: var(--lichen);
  line-height: 1.45;
}

.dlg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}
