* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #fff8e6;
  color: #222;
  min-height: 100vh;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

.app-header {
  text-align: center;
  margin-bottom: 16px;
}

.app-header h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 0.95rem;
  color: #555;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hidden {
  display: none;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.quiz-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

.profile-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn {
  background: #ffc800;
  color: #111;
  width: 100%;
  margin-top: 10px;
}

.secondary-btn {
  background: #f1f1f1;
  color: #111;
  width: 100%;
  margin-top: 10px;
}

.profile-btn {
  background: #ffe170;
  color: #111;
  width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

.link-btn {
  border: none;
  background: none;
  color: #0070f3;
  padding: 4px 0;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.note, .small-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #777;
}

.quiz-question {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #fff4bf;
}

.quiz-question p {
  margin-bottom: 6px;
  font-weight: 500;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.score-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pass-text {
  font-size: 1rem;
  margin-bottom: 10px;
}

.pass {
  color: #0a7b18;
}

.fail {
  color: #b30000;
}

#explanations {
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.explanation-item {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 8px;
  background: #fffaf0;
  font-size: 0.9rem;
}

.explanation-item strong {
  display: block;
}

.history-list {
  list-style: none;
  font-size: 0.9rem;
}

.history-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
