/* Anonymous lines-and-veils form, Direction A. Builds on /theme.css and /the-dungeon-games/theme.css.
   Shared form chrome (.backlink, .hp, #errors, #done, the submit .btn, the Turnstile box) lives in the skin. */

.anon { margin-top: 1.25rem; }
.anon h2 { margin: 0 0 0.5rem; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.anon ul { margin: 0; padding-left: 1.15rem; }
.anon li { margin: 0.4rem 0; max-width: 62ch; }

.intro { margin-top: 1.5rem; }
.intro p { max-width: 64ch; }

.scale { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 0.9rem; margin: 1.1rem 0 0; }
.scale dt { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.scale dd { margin: 0; color: var(--muted); }

#lv-form { margin-top: 1rem; }

.lv-group { margin-top: 1.9rem; }
.lv-group > h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--gilt);
}

fieldset.topic { border: 0; margin: 0; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
fieldset.topic:last-child { border-bottom: 0; }
.topic__label { padding: 0; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; max-width: 62ch; }

.topic__opts { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }

.opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
}
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt:hover { border-color: var(--gilt); }
.opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt:has(input:checked) { color: var(--on-accent); border-color: transparent; font-weight: 600; }
.opt[data-mark="line"]:has(input:checked) { background: var(--accent); }
.opt[data-mark="veil"]:has(input:checked) { background: var(--indigo); }
.opt[data-mark="lean"]:has(input:checked) { background: #3f6b4a; }

.opt-clear {
  min-height: 44px;
  margin-left: 0.2rem;
  padding: 0.35rem 0.6rem;
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.opt-clear:hover { color: var(--ink); }

.freeform { margin-top: 1.9rem; }

.reassure { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; }

#done p { max-width: 64ch; }
#start-over { margin-top: 0.4rem; }
