/* TestFables: the styles this game adds to FablesCore. */

.tf-title { margin: 0 0 6px; font-weight: 600; }
.tf-head { margin: 12px 0 4px; color: var(--muted); font: 700 0.75rem/1.4 system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }

.tf-code,
.tf-option pre {
  margin: 0;
  font: 0.9rem/1.5 var(--mono);
  tab-size: 4;
}
.tf-code {
  padding: 8px 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  white-space: pre;
}
.tf-setup { border-style: dashed; }
.tf-tests { display: grid; gap: 6px; }
.tf-test { border-left: 3px solid var(--accent); }
/* Tests wrap rather than scroll, so a long assert can be read whole on a phone. */
.tf-test { white-space: pre-wrap; overflow-wrap: anywhere; }

.tf-green {
  display: inline-block;
  margin: 10px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--good-soft);
  color: var(--ink);
  font-weight: 700;
}
.tf-green span { color: var(--good); }

.tf-prompt { margin: 14px 0 0; font-weight: 600; }

.tf-options { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.tf-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tf-option {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.tf-option pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.tf-option.is-code { border-left: 3px solid var(--accent); }
.tf-mono { font: 0.92rem/1.5 var(--mono); overflow-wrap: anywhere; }
.tf-option:hover:not(:disabled) { border-color: var(--accent); }
.tf-option:disabled { cursor: default; }
.tf-option.tried { opacity: 0.6; }
.tf-option.tried > * { text-decoration: line-through; }
.tf-option.is-answer { border: 2px solid var(--good); background: var(--good-soft); opacity: 1; }

@media (max-width: 480px) {
  .tf-code, .tf-option pre { font-size: 0.82rem; }
}

.tf-requests { margin: 4px 0 0; padding-left: 1.4em; }
.tf-requests li { margin-bottom: 2px; }
