/* Solubility: layout only. Tokens and base elements come from ../shared/base.css */

.score-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* question card: the compound is the hero */
.question {
  background: var(--chem);
  text-align: center;
  padding: 32px 24px 28px;
  margin-bottom: 16px;
}
.prompt { color: var(--ink-2); font-weight: 500; }
.compound {
  font-size: clamp(3rem, 1.6rem + 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 28px;
  min-height: 1.1em;
  overflow-wrap: anywhere;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.answer-btn,
.answer-btn:disabled {
  min-height: 60px;
  font-size: 1.15rem;
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.answer-btn:hover:not(:disabled),
.answer-btn:focus-visible:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}
.answer-btn.highlight-correct,
.answer-btn.highlight-correct:hover {
  background: var(--right-bg);
  color: var(--right);
  border-color: var(--right);
  opacity: 1;
}
.answer-btn.highlight-wrong,
.answer-btn.highlight-wrong:hover {
  background: var(--wrong-bg);
  color: var(--wrong);
  border-color: var(--wrong);
  opacity: 1;
}

/* feedback card */
.feedback-card { margin-bottom: 16px; }
.feedback-card .feedback { font-size: 1.15rem; }
.rules-label { margin: 20px 0 8px; font-weight: 600; color: var(--ink-2); }
.rules-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rules-list li {
  background: var(--paper-deep);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
}
.rule-title { display: block; font-weight: 600; margin-bottom: 2px; }
.next-btn { width: 100%; }

/* reference */
.reference-toggle { text-align: center; margin: 8px 0 16px; }
.reference h2 { margin-bottom: 16px; }
.rule-section + .rule-section { margin-top: 16px; }
.rule-section h3 { margin-bottom: 6px; }
.rule-section ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rule-section li { font-size: 0.95rem; }
.rule-section .note { color: var(--ink-2); font-size: 0.9rem; }

.footer { margin-top: 32px; text-align: center; font-size: 0.8rem; }
.footer a { color: var(--ink-3); text-decoration: none; }

@media (max-width: 420px) {
  .answers { grid-template-columns: 1fr; }
  .question { padding: 24px 16px 20px; }
}
