main { max-width: 900px; }
h1 { font-size: clamp(1.6rem, 5vw, 2.5rem); line-height: 1.55; }
nav { flex-wrap: wrap; }
label { display: block; margin-bottom: .6rem; }
input:not([type="checkbox"]) { width: 100%; border: 1px solid #89b5ca; padding: .8rem; border-radius: .7rem; color: #142d4f; }
.sound-option { display: flex; align-items: center; gap: .6rem; padding-block: .6rem; }
.sound-option input { min-height: auto; width: 1.2rem; height: 1.2rem; }
.progress-row { display: flex; justify-content: space-between; gap: 1rem; }
progress { width: 100%; accent-color: #087fb6; }
#options { display: grid; gap: .8rem; }
#options button { text-align: left; padding: 1rem; border: 1px solid #b3cfe0; border-radius: .8rem; color: #142d4f; background: #f5faff; font-size: 1.05rem; }
#options button:disabled { opacity: 1; cursor: default; }
#options button.correct { background: #e8f6ef; border-color: #23714c; }
#options button.incorrect { background: #fff0ef; border-color: #af3030; }
#feedback:not(:empty) { padding: 1rem; margin-block-start: 1.2rem; background: #eef6fb; border-radius: .7rem; }
#answer-review { padding-inline-start: 1.4rem; }
#answer-review li { padding-block: 1rem; border-bottom: 1px solid #d9eaf4; }
#certificate { padding: 1rem; border: 3px solid #b68b38; background: #fffdf5; color: #155b57; margin-block: 2rem; text-align: center; }
.certificate-inner { padding: clamp(1rem, 5vw, 3rem); border: 1px solid #d3af62; outline: 1px solid #d3af62; outline-offset: -.45rem; }
.certificate-brand { font-size: 1.5rem; font-weight: bold; margin: 0; }
.certificate-stars { color: #9d7424; font-size: 2rem; margin: .4rem; }
#certificate h2 { color: #155b57; font-size: clamp(1.5rem, 5vw, 2.4rem); }
#certificate-name { font-size: clamp(1.6rem, 6vw, 2.8rem); font-weight: bold; color: #835d19; overflow-wrap: anywhere; margin-block: 1rem; }
.certificate-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid #d3af62; margin-top: 1.8rem; font-size: .85rem; }
#celebration { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: white; }
  body > header, body > footer, body > canvas, main > :not(#results), #results > :not(#certificate) { display: none !important; }
  main { padding: 0; max-width: none; }
  #certificate { margin: 0; break-inside: avoid; print-color-adjust: exact; }
  .certificate-inner { padding: 10mm; }
  #certificate p { margin-block: 3mm; }
}
@media (prefers-reduced-motion: reduce) { #celebration { display: none; } }
