.setup-dialog {
  width: min(92vw, 620px);
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 25px 70px rgba(0,0,0,.3);
}
.setup-dialog::backdrop {
  background: rgba(3, 8, 23, .65);
}
.setup-form { padding: clamp(18px, 4vw, 30px); }
.setup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.setup-header h2 { margin: 0; }
.setup-close {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.5rem;
}
.setup-fields {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}
.setup-fields > label, .setup-names label {
  font-weight: 650;
  font-size: .9rem;
}
.setup-fields select, .setup-names input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  padding: 9px 12px;
}
.setup-names { display: grid; gap: 10px; }
.setup-names label { display: grid; gap: 5px; }
.setup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.setup-actions button {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}
.setup-cancel {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.setup-save {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}
#setup-status { min-height: 1.5em; font-size: .9rem; }
#setup-status[data-state="error"] { color: #c2410c; }
#setup-status[data-state="ok"] { color: var(--text); }
@media (max-width: 520px) {
  .setup-dialog { width: 96vw; max-height: 94dvh; }
  .setup-actions button { flex: 1; }
}
/* CRONOS-004.2F.6D.4A.1_FIX */
.setup-game-name-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
  margin-bottom: 10px;
}

.setup-game-name-field > label {
  font-weight: 650;
}

.setup-game-name-optional {
  font-size: 12px;
  font-weight: 400;
  opacity: .7;
}

.setup-game-name-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #c9bfdf;
  border-radius: 10px;
  background: #fff;
  color: #30264c;
  font: inherit;
}

.setup-game-name-field input:focus-visible {
  outline: 2px solid #8b70d3;
  outline-offset: 2px;
}

.setup-game-name-field small {
  font-size: 12px;
  opacity: .75;
  line-height: 1.4;
}