* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fffde7;
  color: #19312f;
  font-family: Arial, Helvetica, sans-serif;
}

.site-header {
  align-items: center;
  background: #ffd54f;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
  color: #004d40;
  display: flex;
  font-size: 22px;
  font-weight: 700;
  gap: 16px;
  justify-content: center;
  min-height: 64px;
  padding: 10px 18px;
  position: relative;
}

.brand {
  left: 18px;
  position: absolute;
}

.brand img {
  display: block;
  filter: drop-shadow(0 0 3px white) drop-shadow(0 0 3px white);
  height: 40px;
}

.quiz-shell {
  margin: 28px auto;
  width: min(920px, calc(100% - 32px));
}

.intro,
.question-card {
  background: #ffffff;
  border: 2px solid #ffd54f;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(80, 64, 0, 0.08);
}

.intro {
  padding: 24px;
}

.eyebrow {
  color: #00796b;
  font-weight: 700;
  margin: 0 0 6px;
}

h1 {
  font-size: 32px;
  margin: 0 0 10px;
}

.scorebar {
  align-items: center;
  border-top: 1px solid #f3df8e;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
}

.questions {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.question-card {
  padding: 20px;
}

.question-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.number {
  align-items: center;
  background: #ffd54f;
  border-radius: 50%;
  color: #004d40;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
}

h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 3px 0 0;
}

.choices {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.choices label,
.short-answer {
  border: 1px solid #ead37a;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.choices label:hover {
  background: #fff8d6;
}

.short-answer {
  display: grid;
  cursor: default;
}

.short-answer input,
.short-answer textarea {
  border: 1px solid #cbb65a;
  border-radius: 6px;
  font: inherit;
  padding: 10px;
}

.short-answer textarea {
  min-height: 120px;
  resize: vertical;
}

.cause-effect {
  background: #f6fbfa;
  border: 1px solid #cde5df;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  line-height: 1.5;
  margin-top: 16px;
  padding: 12px;
}

.cause-effect p {
  margin: 0;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

button {
  background: #ffd54f;
  border: 0;
  border-radius: 8px;
  color: #004d40;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
}

button:hover {
  background: #ffca28;
}

.reveal-button,
#reset-button {
  background: #e7f1ef;
}

.result {
  font-weight: 700;
  min-height: 24px;
}

.correct {
  border-color: #1f9d55;
}

.correct .result {
  color: #067647;
}

.incorrect {
  border-color: #d92d20;
}

.incorrect .result {
  color: #b42318;
}

.explanation {
  background: #f6fbfa;
  border-left: 4px solid #00796b;
  border-radius: 6px;
  line-height: 1.5;
  padding: 12px;
}

@media (max-width: 700px) {
  .site-header {
    font-size: 18px;
    justify-content: flex-end;
  }

  .brand {
    left: 12px;
  }

  .brand img {
    height: 32px;
  }

  h1 {
    font-size: 26px;
  }

  .scorebar,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }
}
