/* /showdown (LAUNCH-READY-PLAN 2.7, WS-S): mobile-first, 16 px gutter from the container, no horizontal page scroll
   (wide tables scroll inside .sd-scroll), tap targets >= 44 px, side colours of style.css (--a red, --b blue). */
.sd-page { display: block; }
.sd-hero { margin: 8px 0 16px; }
.sd-hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.1; margin: 4px 0 8px; }
.sd-hero .lead { font-size: 1rem; max-width: 46rem; }
.sd-eyebrow { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0; overflow-wrap: anywhere; }
.sd-summary { margin: 4px 0 0; }
.sd-status { margin: 12px 0; }
.sd-page .card { margin-bottom: 16px; }
.sd-page .card + .card { margin-top: 0; }
.sd-note { margin-top: -4px; font-size: 0.9rem; }
.sd-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.sd-scroll:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.sd-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.sd-table th, .sd-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.sd-table thead th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.sd-table tbody th { font-weight: 600; }
.sd-list { list-style: none; padding: 0; margin: 0; }
.sd-match { padding: 14px 0; border-top: 1px solid var(--line); }
.sd-match:first-child { border-top: 0; padding-top: 4px; }
.sd-match-head { margin: 0 0 4px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.sd-game { display: inline-block; font-size: 0.75rem; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); color: var(--pg-smart, #8fd3ff); font-weight: 700; }
.sd-a { color: var(--a); }
.sd-b { color: var(--b); }
.sd-line { margin: 4px 0; font-size: 1.05rem; }
.sd-words { margin: 8px 0; display: grid; gap: 6px; }
.sd-word { margin: 0; padding-inline-start: 10px; border-inline-start: 3px solid var(--line); }
.sd-word.sd-side-a { border-color: var(--a); }
.sd-word.sd-side-b { border-color: var(--b); }
.sd-word dt { font-size: 0.8rem; color: var(--muted); }
.sd-word dd { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.sd-meta { font-size: 0.85rem; margin: 6px 0; overflow-wrap: anywhere; }
.sd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.sd-actions .btn, .sd-honesty .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; }
.sd-big { font-size: clamp(1.3rem, 5vw, 1.9rem); font-weight: 700; line-height: 1.2; margin: 0 0 8px; }
.sd-quote { margin: 8px 0; padding: 8px 12px; border-inline-start: 3px solid var(--accent); background: var(--bg-3); border-radius: 8px; }
.sd-quote p { margin: 0; font-size: 1.05rem; }
.sd-quote footer { margin-top: 4px; color: var(--muted); font-size: 0.85rem; }
.sd-live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sd-live-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sd-live-list .btn.small { min-height: 44px; display: inline-flex; align-items: center; }
.sd-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pg-live, #4cd97b); display: inline-block; }
.sd-prompt { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.85rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0; text-align: left; }
.sd-honesty p { max-width: 46rem; }
@media (prefers-reduced-motion: no-preference) { .sd-live .sd-dot { animation: sd-pulse 1.6s ease-in-out infinite; } }
@keyframes sd-pulse { 50% { opacity: 0.35; } }
@media (min-width: 900px) {
  .sd-words { grid-template-columns: 1fr 1fr; }
}

/* FIXER (visitor review 2026-10-23): no layout shift when the data arrives (CLS was 0.546 on desktop): until the first
   answer the main column holds the viewport and the honesty block waits. Wide tables on phones fade at the edge. */
.sd-page.sd-loading { min-height: 100vh; }
.sd-page.sd-loading .sd-honesty { display: none; }
@media (max-width: 600px) {
  .sd-scroll.is-wide { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .sd-scroll.is-wide::before { content: "\2194  scroll"; display: block; font-size: 0.75rem; color: var(--muted); margin: 0 0 4px; }
  html[dir="rtl"] .sd-scroll.is-wide { -webkit-mask-image: linear-gradient(270deg, #000 85%, transparent); mask-image: linear-gradient(270deg, #000 85%, transparent); }
}
