body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: #1f2430;
  background: #ffffff;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 16px;
  text-align: center;
}

.intro {
  color: #5b6272;
  margin-bottom: 40px;
}

.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

/* One card per person: image, name and quiz box */
.team li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border: 1px solid #e3e6ee;
  border-radius: 16px;
}

.team img {
  display: block;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
}

.team span {
  font-weight: 600;
}

.quiz {
  box-sizing: border-box;
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: #f5f6fa;
  text-align: left;
}

.quiz p {
  margin: 0;
}

.quiz-question {
  font-weight: 500;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.quiz-option {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5d9e4;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.quiz-option:hover:not(:disabled) {
  border-color: #8b94a9;
}

/* Answered: options are locked, the lie is green, a wrong pick is red */
.quiz-option:disabled {
  cursor: default;
}

.quiz-option.correct {
  --tone: #1f9d55;
  border-color: var(--tone);
  background: #e6f6ec;
}

.quiz-option.wrong {
  --tone: #d64545;
  border-color: var(--tone);
  background: #fdeaea;
}

/* picked option glows */
.quiz-option.selected {
  box-shadow: 0 0 0 3px var(--tone), 0 0 16px 4px var(--tone);
}

.quiz .quiz-result {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.quiz-result:empty {
  display: none;
}

/* show whole image for extra cards */
.team .extra img {
  box-sizing: border-box;
  padding: 18px;
  background: #dbeeff;
  object-fit: contain;
}

/* A just text option for quiz: e.g. notes */
.quiz-line {
  cursor: default;
}

/* hover option edits */
.quiz-option.quiz-line:hover {
  border-color: #d5d9e4;
}

/* animation call for extra cards*/
@media (prefers-reduced-motion: no-preference) {
  .extra {
    animation: extra-in 0.6s ease-out;
  }
}

/* Fade, slide and scale animation */
@keyframes extra-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Phones */
@media (max-width: 560px) {
  .intro {
    margin-bottom: 24px;
  }

  .team {
    grid-template-columns: 1fr;   /* one card per row */
    gap: 20px;
  }

  .team li {
    padding: 16px;
  }

  .team img {
    max-width: 60%;
    height: auto;
  }
}
