/*
 * styleSetup.css — game-setup modal (post-prototype UI change). Styles the
 * native <dialog id="setup-modal"> (guidance text, stacked input rows with
 * explanatory taglines, primary action) and the HUD "New game" button that
 * reopens it. Replaces the inline generate panel formerly in style.css.
 */

.setup-modal {
  width: min(36rem, 92vw);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  background: #fff;
  color: #222;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.setup-modal::backdrop {
  background: rgba(30, 34, 40, 0.55);
}

.setup-modal h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.setup-guidance {
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
}

.setup-rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Each row: labelled control on the left, explanatory tagline right. */
.setup-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  align-items: center;
}

.setup-field label {
  display: block;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.setup-field input[type="number"],
.setup-field input[type="text"],
.setup-field select {
  padding: 0.3rem 0.4rem;
  font-size: 0.9rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.setup-field .check-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #222;
  margin-bottom: 0;
}

.setup-tagline {
  margin: 0;
  font-size: 0.8rem;
  color: #777;
  line-height: 1.35;
}

/* Level 2 unlock progress — highlighted so new players spot the gate. */
#level-lock-note {
  display: block;
  margin-top: 0.3rem;
  padding: 0.25rem 0.45rem;
  background: #fbf3e2;
  border-left: 3px solid #a15c00;
  border-radius: 3px;
  color: #a15c00;
  font-weight: 600;
}

#level-lock-note:empty { display: none; }

.setup-actions {
  margin-top: 1.3rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* Secondary action — cancel without generating (same as Esc). */
.setup-actions button.setup-close {
  background: #fff;
  color: #2e5e8c;
  border: 1px solid #2e5e8c;
}

.setup-actions button.setup-close:hover {
  background: #eef3f8;
}

.setup-actions button {
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  background: #2e5e8c;
  color: #fff;
  cursor: pointer;
}

.setup-actions button:hover {
  background: #24496d;
}

/* Secondary HUD button — overrides the .hud-controls accent styling. */
.hud-controls button.btn-new-game {
  background: #fff;
  color: #2e5e8c;
  border: 1px solid #2e5e8c;
}

.hud-controls button.btn-new-game:hover {
  background: #eef3f8;
}
