/* ============================================================================
   The fluency check: its options, the clock, and its results.
   common.css has the tokens and says what each color is allowed to mean.
   practice.css draws the items; this page shows them the same way.

   Nothing here moves, flashes or changes color with the time. The clock is
   ink on paper from its first second to its last.
   ========================================================================= */

/* ------------------------------------------------------------------ options */

#options h2 { margin: 0 0 10px; font-size: 1.3rem; }

.opt-about { margin: 0 0 8px; max-width: 62ch; }
#clock-rule { color: var(--dim); }
#fluent-line { margin: 18px 0 0; padding: 10px 14px; background: var(--paper); border-left: 6px solid var(--rule-hot); }

.opt {
  border: 0;
  border-top: 2px solid var(--rule);
  margin: 16px 0 0;
  padding: 12px 0 0;
  min-width: 0;
}

.opt legend {
  float: left;
  width: 150px;
  padding: 8px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dim);
}

.opt-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-left: 150px;
}

/* One choice: a real radio button and its words, in a box. The one chosen is
   amber, what you are acting on, and its button is filled as well. */
.opt-choice {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 7px 14px 7px 10px;
  font-size: 1rem;
  background: var(--panel);
  border: 2px solid var(--rule-hot);
  cursor: pointer;
}
.opt-choice:hover { background: var(--panel-lo); }
.opt-choice:has(input:checked) { background: var(--amber-fill); border-color: var(--amber); font-weight: 700; }
.opt-choice:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.opt-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); outline: none; }

.opt-choice.off { cursor: default; color: var(--dimmer); border-style: dashed; border-color: var(--rule); }
.opt-choice.off:hover { background: var(--panel); }
.opt-hint { color: var(--dim); font-weight: 400; font-size: 0.9rem; }

#opt-belt {
  font-family: var(--read);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--rule-hot);
  border-radius: 0;
  padding: 4px 6px;
  max-width: 100%;
}
#opt-belt.aside { color: var(--dim); background: var(--panel); }

.start-row { margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--rule); }

.btn.big { font-size: 1.2rem; padding: 12px 34px; }

.btn.quiet {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dim);
  padding: 5px 12px;
  box-shadow: none;
  border-color: var(--rule);
}

/* -------------------------------------------------------------- the clock */

.clock-slot { display: inline-flex; align-items: baseline; gap: 8px; }
.clock-slot:empty { display: none; }
.clock-word { color: var(--dim); font-size: 0.9rem; }
.clock {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 3.2em;
}

#controls #stop { margin-left: auto; }

/* The right answer to a missed item, said once and quietly. */
.right-answer {
  background: var(--panel);
  border: 2px solid var(--rule);
  border-left: 6px solid var(--rule-hot);
  padding: 10px 14px;
}
.right-answer .label { margin-bottom: 4px; }

/* ----------------------------------------------------------------- results */

#summary-body .stats .stat { flex: 1 1 130px; }
#summary-body .stats.misses { margin-top: 12px; }
#summary-body .stats.misses .stat { border-color: var(--rule); }
#summary-body .stats.misses .v { font-size: 1.5rem; }
.outcome p + p { margin-top: 6px; }

.slow-rule { margin: 0 0 4px; color: var(--dim); font-size: 0.95rem; max-width: 62ch; }
.nothing-listed { margin: 22px 0 0; color: var(--dim); }

.belt-group { margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--rule); }
.belt-group h4 { margin: 0 0 10px; font-size: 1.05rem; }
.belt-group .btn-row { margin-top: 10px; }
.belt-group .btn { font-size: 0.95rem; padding: 6px 14px; }
.not-open { margin: 10px 0 0; color: var(--dim); font-size: 0.95rem; }

.missed-list li.listed { display: grid; gap: 8px; justify-content: stretch; }
.missed-list li.listed.missed { border-left-color: var(--red); }
.listed-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }

.tags { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 0.9rem; }
.tags .tag { color: var(--dim); }
.tags .marked { font-weight: 700; }

.what-happened summary { cursor: pointer; color: var(--dim); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.what-happened[open] summary { margin-bottom: 8px; }
.what-happened .miss { border-width: 1px; border-left-width: 5px; padding: 12px 14px; }

@media (max-width: 768px) {
  .opt legend { width: 100%; padding: 0 0 8px; }
  .opt-choices { margin-left: 0; clear: both; }
  .opt-choice { flex: 1 1 100%; }
  .start-row .btn { flex: 1 1 100%; text-align: center; }
  .clock { font-size: 1.1rem; }
  .belt-group .btn-row .btn { flex: 1 1 100%; text-align: center; }
}
