.start-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.start-title {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  color: #9d174d;
}

.start-pool-meta {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 2.8vw, 0.98rem);
  max-width: 28rem;
  line-height: 1.4;
  padding-inline: 4px;
}

.start-error {
  margin: 0;
  color: #be123c;
  font-size: 0.95rem;
  max-width: 28rem;
}

.start-options {
  margin-top: 8px;
  width: 100%;
  max-width: min(360px, 100%);
}

.start-prompt {
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
}

.start-count-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.start-count-btn {
  min-height: 48px;
  font-size: 1.05rem;
}

#quiz-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.answers {
  display: grid;
  gap: 9px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

#quiz-view .question {
  max-height: clamp(88px, 18dvh, 140px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.answer-btn {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-align: left;
  padding: clamp(9px, 2.4vw, 12px) clamp(12px, 2.8vw, 14px);
  border-radius: 9px;
  font-size: clamp(0.82rem, 2.6vw, 0.92rem);
  line-height: 1.32;
  cursor: pointer;
  transition:
    background-color 0.18s,
    border-color 0.18s,
    transform 0.06s;
}

.answer-btn:hover {
  background: var(--hover);
  border-color: #f9a8d4;
}

.answer-btn.is-selected {
  background: #fdf2f8;
  border-color: #f472b6;
}

.answer-btn:active {
  transform: scale(0.995);
}

#quiz-view .quiz-actions {
  margin-top: auto;
  margin-bottom: 0;
  flex-shrink: 0;
  padding-top: clamp(12px, 3vw, 24px);
}

.quiz-actions {
  margin-top: 14px;
  margin-bottom: 14px;
  display: grid;
  gap: 10px;
}

.quiz-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(4px, 2vw, 10px);
  width: 100%;
}

.quiz-nav-start {
  justify-self: start;
  min-width: 0;
}

.quiz-nav-end {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.quiz-nav-progress {
  margin: 0;
  justify-self: center;
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.78rem, 2.4vw, 0.95rem);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 380px) {
  .quiz-nav-progress {
    white-space: normal;
    line-height: 1.25;
    max-width: min(42vw, 140px);
  }
}

.submit-warning {
  margin: 0;
  color: #be123c;
  font-size: 0.9rem;
}

.meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
