.puzzle-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.puzzle-shell {
  display: flex;
  justify-content: center;
  padding: 48px 16px;
}

.puzzle-launcher {
  max-width: 420px;
  text-align: center;
}

.puzzle-title {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.puzzle-prompt {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.launcher-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}

.launcher-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.range-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raise);
}

.range-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-controls input[type="range"] { flex: 1; }

.launcher-play {
  padding: 10px 16px;
  border: 1px solid #7dc97f;
  border-radius: 10px;
  background: var(--raise);
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(125, 201, 127, .35);
}

.launcher-play:disabled { opacity: .5; cursor: default; }

.puzzle-history {
  margin-top: 26px;
  text-align: left;
}

.puzzle-history h2 { font-size: 1rem; margin: 0 0 8px; }

.puzzle-history ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .9rem;
}

.puzzle-history a { text-decoration: none; font-weight: 700; }
.puzzle-history a:hover { text-decoration: underline; }
.history-win { color: #7dc97f; }
.history-loss { color: #e07a7a; }
