/* ============================================================================
   Truth or Dare / Never Have I Ever Generator — tool layer over base.css
   base.css supplies reset, type, forms, buttons, chips, badges, panels, tables,
   header, footer, focus rings. This file adds the accent and only what is
   unique to this tool.

   Accent — burnt orange/coral, measured against base.css surfaces (WCAG
   relative luminance):
     dark  #ef8261  7.2:1 on --bg   6.7:1 on --surface   7.5:1 on --bg-sunk
     light #962908  7.7:1 on --bg   8.0:1 on --surface   7.0:1 on --bg-sunk
   Both clear the 4.5:1 text floor on all three surfaces in both themes.
   ========================================================================= */
:root { --accent: #ef8261; --accent-dim: rgba(239, 130, 97, 0.14); }
@media (prefers-color-scheme: light) {
  :root { --accent: #962908; --accent-dim: rgba(150, 41, 8, 0.10); }
}

.brand svg .mark-bg { fill: var(--accent); }
.brand svg .mark-fg { fill: var(--on-accent); }

/* base has no visually-hidden helper; the live-region status text needs one */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================================
   The prompt card
   ========================================================================= */

.td-tool { margin-bottom: 2.5rem; }

.td-bar { margin-bottom: 1.1rem; }
.td-bar .field-label { display: block; margin-bottom: 0.5rem; }
.td-bar[hidden] { display: none; }

.td-card {
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3.5vw, 1.75rem);
  text-align: center;
}

.td-tag {
  margin: 0 0 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.td-type-pill {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  color: var(--accent);
  background: var(--accent-dim);
}
.td-type-pill.is-truth { color: var(--accent); background: var(--accent-dim); }
.td-type-pill.is-dare  { color: var(--err);    background: var(--err-bg); }
.td-type-pill.is-never { color: var(--ok);     background: var(--ok-bg); }

.td-cat-tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.td-prompt {
  margin: 0;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.55rem);
  line-height: 1.4;
}

/* fresh-prompt pop — reduced-motion guarded even though base.css already
   neutralises all transitions/animations globally under that media query;
   this file's own keyframe gets its own explicit guard per house style. */
.td-card.is-fresh { animation: td-pop 0.22s ease; }
@keyframes td-pop {
  from { opacity: 0.35; transform: translateY(2px); }
  to   { opacity: 1;    transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .td-card.is-fresh { animation: none; }
}

/* --------------------------------------------------------------- copy ---- */

.copy-status {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ok);
  min-width: 4.5em;
}
.copy-status.is-err { color: var(--err); }

/* ============================================================================
   Category note + browsable list (never-have-i-ever-questions.html)
   ========================================================================= */

.qcat { max-width: 74ch; }
.qlist {
  padding-left: 1.4em;
  margin: 0 0 1.1em;
  display: grid;
  gap: 0.55em;
}
.qlist li { padding-left: 0.2em; }

/* ------------------------------------------------------------- furniture -- */

.section { max-width: 74ch; }
.pagelinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.pagelinks a {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
}
.pagelinks a:hover { border-color: var(--accent); }
.pagelinks strong { display: block; color: var(--accent); margin-bottom: 0.15rem; }
.pagelinks span { display: block; color: var(--text-dim); font-size: 0.875rem; }

.noscript {
  background: var(--err-bg);
  border: 1px solid var(--err);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--err);
  font-size: 0.9375rem;
}
