html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #f1f1f1;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

#dos {
  position: absolute;
  inset: 0;
}

.panel {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #111;
  text-align: center;
}

.hidden { display: none; }

h1 { font-size: 18px; margin: 0 0 4px; }
.hint { margin: 0 0 16px; color: #aaa; }

#choices {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 360px;
  max-height: 70vh;
  overflow-y: auto;
}

#choices button {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1d1d1d;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  word-break: break-all;
}

#choices button:hover { background: #2a2a2a; }

.spinner {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border: 3px solid #333;
  border-top-color: #4f8cff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.error .spinner { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
