:root {
  color-scheme: dark;
  --ink: #02d1ff;
  --background: #0f192d;
  color: var(--ink);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
.centered {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
}
.clock { width: 100%; padding: 5vw; }
.weight { font: 12vw monospace; text-align: center; overflow-wrap: anywhere; }
.clock p { margin: 0; font-size: 3.5vw; text-align: center; }
.clock details { margin-top: 12px; color: white; }
.clock summary { width: fit-content; cursor: pointer; font-size: .85rem; }
@media (hover: hover) {
  .clock details:not([open]) summary { opacity: 0; }
  .clock:hover details summary, .clock details:focus-within summary { opacity: 1; }
}
.settings { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin-top: .5rem; }
.settings input { min-width: 0; }

.quiz, .results { width: min(100%, 760px); padding: clamp(16px, 4vw, 30px); }
.options { display: grid; gap: 12px; }
@media (min-width: 550px) { .options { grid-template-columns: 1fr 1fr; } }
button {
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  cursor: pointer;
}
button:focus-visible, summary:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.option { text-align: start; }
.option[aria-pressed="true"], button:enabled:active { background: var(--ink); color: var(--background); }
.option:disabled { cursor: default; opacity: 1; }
.option.correct { background: green; border-color: green; color: white; }
.option.wrong { background: #ad1818; border-color: #ad1818; color: white; }
.option.missing { background: lightgreen; border-color: red; color: var(--background); }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px dashed;
  margin-top: 24px;
  padding-top: 24px;
}
.points { font-size: 2em; }
.free-answer {
  display: block;
  background: transparent;
  border: 0;
  border-bottom: 2px solid;
  color: inherit;
  font: inherit;
  width: 100%;
  margin-bottom: 24px;
}
.results li { overflow-wrap: anywhere; margin-block: .5em; }
