:root {
  --bg: #f3f5f2;
  --card: #ffffff;
  --text: #1b1f1d;
  --muted: #5d6662;
  --brand: #12693f;
  --green: #1e9e55;
  --green-bg: #e3f6eb;
  --red: #d32f2f;
  --red-bg: #fdeaea;
  --border: #d9dfdb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.top { text-align: center; margin-bottom: 20px; }
.top h1 { margin: 0; color: var(--brand); font-size: 1.9rem; }
.sub { margin: 4px 0 0; color: var(--muted); }

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  text-align: center;
}

.hidden { display: none !important; }

.status {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}

.bar {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  margin: 10px 0 20px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.3s ease;
}

.sign svg { width: 180px; height: 180px; }
.question { font-weight: 600; font-size: 1.1rem; margin: 8px 0 16px; }

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option {
  position: relative;
  padding: 14px 40px 14px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.option:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-1px); }
.option:disabled { cursor: default; }

/* Tick or cross shown in the right corner after answering */
.option::after {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 700;
}

.option.correct {
  border-color: var(--green);
  background: var(--green-bg);
  color: #0f5a30;
}
.option.correct::after { content: "\2713"; color: var(--green); }

.option.wrong {
  border-color: var(--red);
  background: var(--red-bg);
  color: #8e1c1c;
  animation: shake 0.3s;
}
.option.wrong::after { content: "\2717"; color: var(--red); }

.option.faded { opacity: 0.5; }

@keyframes shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.feedback {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  text-align: left;
  border-left: 5px solid;
}
.feedback.good { background: var(--green-bg); border-color: var(--green); }
.feedback.bad { background: var(--red-bg); border-color: var(--red); }
.feedback p { margin: 0; }
.feedback-title { font-weight: 700; margin-bottom: 4px !important; }

.btn {
  margin-top: 18px;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }

@media (max-width: 480px) {
  .options { grid-template-columns: 1fr; }
  .sign svg { width: 150px; height: 150px; }
}
