/* Whodunitdoku v2 play screen: phone first (390x844), desktop is the same pieces laid out wider.
   Art direction: bold flat vector, thick ink outlines, noir-comedy palette. See docs/BOARD-REDESIGN.md part B. */
:root {
  --wd-ink: #1a1423; --wd-cream: #fff6e5; --wd-paper: #fff6e5; --wd-tomato: #e4572e; --wd-mustard: #f2b134;
  --wd-frame: #17121f; --wd-frame2: #241b30; --wd-text: #f6eedd; --wd-muted: #b7a9c4; --wd-line: #3a2e48;
  --wd-sans: var(--font-sans); --wd-mono: var(--font-mono); --wd-serif: var(--font-display);
  /* furniture kit fills */
  --wood: #c9824a; --wood-d: #8e5530; --fabric-a: #e9a23b; --fabric-b: #2f9c8f; --fabric-c: #d9534f; --linen: #fff3dc;
  --leaf: #4caf6a; --leaf-d: #2f7d47; --pot: #d2693c; --metal: #b9c2cf; --glass: #9fd3f0;
  --book1: #e4572e; --book2: #2f56c4; --book3: #f2b134; --book4: #1f8a80; --piano: #3b2a4a; --lamp: #3f9b55;
  --mustard: #f2b134; --tomato: #e4572e;
  /* Phone bottom chrome: the fixed toolbar plus the closed Evidence drawer peek. The play view reserves exactly this
     (plus the safe-area inset), so nothing hides behind them and there is no dead band to scroll into. */
  --wd-tools-h: 64px; --wd-drawer-peek: 58px;
  --wd-safe-b: env(safe-area-inset-bottom, 0px);
  --wd-bottom-reserve: calc(var(--wd-tools-h) + var(--wd-drawer-peek) + var(--wd-safe-b));
}
body {
  color: var(--wd-text);
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 1.6px) 0 0 / 7px 7px,
    repeating-linear-gradient(105deg, transparent 0 22px, rgba(160, 180, 255, .035) 22px 23px),
    radial-gradient(ellipse 90% 50% at 50% 18%, #3a2a52, transparent 70%),
    linear-gradient(var(--wd-frame2), var(--wd-frame));
  background-attachment: fixed;
}
.topbar { background: transparent; border-bottom: 0; box-shadow: none; }
.wordmark .accent { color: var(--wd-tomato); }
.footer { color: var(--wd-muted); }
/* Phone play view: the disclaimer lives at the bottom of the Evidence sheet instead, so the page footer does not add
   height below the suspects. The archive (and desktop) keep the page footer. */
@media (max-width: 899px) { body.wd-in-play .footer { display: none; } }

/* ---------- board ---------- */
.wd-play { display: block; }
/* Phone play view: one screen-tall column. Header, board and hint at the top; the suspects row docks directly above
   the closed Evidence drawer; the bottom reserve is exactly the fixed drawer + toolbar (+ safe area). Any spare
   height on a tall phone sits between the hint and the suspects, never as a band to scroll into. */
@media (max-width: 899px) {
  body.wd-in-play { display: flex; flex-direction: column; }
  body.wd-in-play > main.app { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; }
  body.wd-in-play .wd-play:not([hidden]) { flex: 1 0 auto; display: flex; flex-direction: column; padding-bottom: var(--wd-bottom-reserve); }
  .wd-play .wd-app { flex: 1 0 auto; display: flex; flex-direction: column; }
  .wd-play .wd-right { margin-top: auto; }
}
.wd-stage { position: relative; padding: 0 4px; overflow: hidden; }
.wd-boardbox { position: relative; width: 100%; }
.wd-boardbox svg.wd-board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.wd-cells { position: absolute; display: grid; grid-template-columns: repeat(var(--n), 1fr); grid-template-rows: repeat(var(--n), 1fr); touch-action: manipulation; }
.wd-cells.inking { touch-action: none; cursor: crosshair; }
.wd-cell { all: unset; display: block; cursor: pointer; border-radius: 8px; }
.wd-cell:focus-visible { outline: 3px solid var(--wd-mustard); outline-offset: -4px; }
.wd-hit { cursor: pointer; }
.wd-stage.stamped { animation: shake .2s linear; }
@keyframes shake { 0%, 100% { transform: rotate(-.3deg); } 25% { transform: translateX(-4px) rotate(-.8deg); } 75% { transform: translateX(4px) rotate(.3deg); } }
.stamp-layer { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; }
.stamp {
  padding: 6px 16px; border: 7px solid var(--wd-tomato); border-radius: 10px; color: var(--wd-tomato);
  font: 900 clamp(28px, 8vw, 54px)/1 var(--wd-sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: rgba(255, 246, 229, .85); box-shadow: 6px 6px 0 rgba(26, 20, 35, .5); transform: rotate(-11deg);
  animation: slam .32s var(--slam) both;
}
.stamp.fade { animation: slam .32s var(--slam) both, stamp-out .5s ease-in 1.4s forwards; }
@keyframes slam { 0% { transform: rotate(-11deg) scale(2.4); opacity: 0; } 60% { transform: rotate(-11deg) scale(.94); opacity: 1; } 100% { transform: rotate(-11deg) scale(1); opacity: 1; } }
@keyframes stamp-out { to { opacity: 0; } }
.burst { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.burst span { position: absolute; left: var(--x); top: var(--y); font-size: var(--s); animation: fly 1.1s cubic-bezier(.15, .7, .35, 1) forwards; }
@keyframes fly { 0% { transform: translate(-50%, -50%) scale(.4) rotate(0); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--r)); opacity: 0; } }

.wd-status { min-height: 22px; margin: 0; padding: 6px 14px 2px; font: 600 13.5px/1.35 var(--wd-sans); color: #fbecc8; }
.wd-status.good { color: #8fe3a8; } .wd-status.bad { color: #ff9c84; }
.wd-status .btn { margin-left: 6px; }
.wd-kbd { display: none; }

/* ---------- suspect strip ---------- */
.wd-strip-head { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px 2px; font: 700 11px/1 var(--wd-sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--wd-muted); }
.wd-strip-head .swipe { margin-left: auto; letter-spacing: .4px; text-transform: none; font-weight: 600; color: var(--wd-mustard); }
.wd-strip-wrap { position: relative; }
.wd-strip { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior: contain; scroll-snap-type: x mandatory; scroll-padding: 0 14px; padding: 10px 14px 12px; scrollbar-width: none; }
.wd-strip::-webkit-scrollbar { display: none; }
.wd-strip-wrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 44px; background: linear-gradient(90deg, transparent, var(--wd-frame) 85%); pointer-events: none; }
.wd-strip-wrap .more { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--wd-mustard); color: var(--wd-ink); border: 2px solid var(--wd-ink); font: 900 18px/26px var(--wd-sans); text-align: center; box-shadow: 2px 2px 0 rgba(0, 0, 0, .5); pointer-events: none; z-index: 2; }
.wd-strip-wrap.end::after, .wd-strip-wrap.end .more { display: none; }
.wd-chip { position: relative; flex: 0 0 100px; scroll-snap-align: start; border-radius: 14px; background: var(--wd-paper); color: var(--wd-ink); border: 3px solid var(--wd-ink); box-shadow: 4px 4px 0 rgba(0, 0, 0, .5); transition: transform .12s; }
.wd-chip .pick { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 6px 4px 7px; text-align: center; cursor: pointer; border-radius: 12px; }
.wd-chip .pick:focus-visible { outline: 3px solid var(--wd-mustard); }
.wd-chip .wd-face { display: block; margin: 0 auto; }
.wd-chip .nm { display: flex; align-items: center; justify-content: center; min-height: 28px; margin-top: 2px; font: 800 12px/1.15 var(--wd-sans); }
.wd-chip .st { display: block; margin-top: 2px; padding-left: 16px; font: 600 10px/1.2 var(--wd-mono); color: #6b5a78; }
.wd-chip.sel { transform: translateY(-5px); box-shadow: 0 0 0 4px var(--c), 4px 9px 0 rgba(0, 0, 0, .5); }
.wd-chip.strike { opacity: .5; } .wd-chip.strike .nm { text-decoration: line-through; text-decoration-thickness: 2px; }
.wd-chip .vic { position: absolute; left: 6px; top: 6px; z-index: 1; font: 800 9px/1 var(--wd-sans); letter-spacing: 1px; background: var(--wd-tomato); color: #fff; border-radius: 4px; padding: 3px 4px; pointer-events: none; }
.wd-chip .key { position: absolute; left: 6px; bottom: 6px; z-index: 1; font: 800 10px/1 var(--wd-mono); border: 1.5px solid var(--wd-ink); border-radius: 4px; padding: 1px 3px; background: #fff; pointer-events: none; }
.wd-chip .pm { position: absolute; top: 4px; right: 4px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--wd-ink); background: #fff; font: 900 14px/1 var(--wd-sans); color: var(--wd-ink); padding: 0; cursor: pointer; }
.wd-chip .pm.tick { background: #3fae5f; color: #fff; } .wd-chip .pm.strike { background: #7a6d86; color: #fff; }

/* ---------- clue sheet (drawer on phone) ---------- */
.wd-drawer { position: fixed; left: 0; right: 0; bottom: calc(var(--wd-tools-h) + var(--wd-safe-b)); z-index: 20; display: flex; flex-direction: column; height: var(--wd-drawer-peek); overflow: hidden;
  background: var(--wd-paper); color: var(--wd-ink); border-top: 3px solid var(--wd-ink); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .45); transition: height .22s ease;
  overscroll-behavior: contain; }
.wd-drawer.open { height: min(74vh, 600px); }
.wd-drawer:not(.open) .wd-sheet { visibility: hidden; }
.wd-handle { flex: 0 0 auto; padding: 6px 14px; cursor: grab; touch-action: none; }
.wd-handle .bar { width: 44px; height: 5px; border-radius: 3px; background: #b9a99a; margin: 0 auto 6px; }
.wd-handle .row { display: flex; align-items: center; gap: 8px; font: 800 13px/1.2 var(--wd-sans); }
.wd-handle .cnt { font: 700 11px var(--wd-mono); color: #7a6a5a; white-space: nowrap; }
.wd-handle .next { margin-left: auto; max-width: 58%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 12px/1.2 var(--wd-sans); color: #5e4f6c; }
.wd-sheet { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 12px 18px; }
.wd-sheet .brief { background: none; border: 0; padding: 0; margin: 0 0 8px; color: var(--wd-ink); }
.wd-sheet .brief .case-title { color: var(--wd-ink); font-size: 21px; margin: 4px 0 2px; }
.wd-sheet .brief .hook, .wd-sheet .brief .victim-line { color: #5e4f6c; font-size: 13.5px; }
.wd-sheet .brief summary { color: var(--wd-ink); }
.wd-sheet .brief .chalk { display: inline-flex; vertical-align: middle; }
.wd-clues { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.wd-clues li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; padding: 9px 10px; border: 2px solid var(--wd-ink); border-radius: 10px; background: #fff; font: 15px/1.4 var(--font-serif); cursor: pointer; box-shadow: 2px 2px 0 rgba(26, 20, 35, .25); }
.wd-clues li .n { font: 800 12px/21px var(--wd-mono); color: var(--wd-tomato); }
.wd-clues li.used { opacity: .38; filter: grayscale(1); box-shadow: none; }
.wd-clues li.used .n { color: #888; }
.wd-clues .who { font-weight: 700; box-shadow: inset 0 -4px 0 var(--c); }
.wd-clues .obj { font-weight: 700; white-space: nowrap; }
.wd-clues .obj svg { width: 21px; height: 21px; vertical-align: -5px; margin-right: 2px; }
.wd-clues .term { border-bottom: 2px dotted var(--wd-tomato); cursor: help; }
.wd-clues .aside { color: #7a6a5a; font-style: italic; }
.wd-sheet h3 { margin: 16px 0 6px; font: 800 11px/1 var(--wd-sans); letter-spacing: 1.6px; text-transform: uppercase; color: #7a6a5a; }
.wd-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 10px; font: 12px/1.3 var(--wd-sans); }
.wd-legend div { display: flex; align-items: center; gap: 6px; }
.wd-legend svg { width: 30px; height: 30px; flex: 0 0 30px; }
.wd-sheet-actions { display: flex; gap: 8px; margin-top: 14px; }
.wd-sheet-actions .btn { flex: 1; }
.wd-saved, .wd-yesterday { margin: 8px 0 0; font: 11.5px/1.3 var(--wd-sans); color: #7a6a5a; }
.wd-yesterday a { color: #5e4f6c; font-weight: 700; }

/* ---------- thumb toolbar (fixed at the bottom on phone) ---------- */
.wd-tools { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; height: calc(var(--wd-tools-h) + var(--wd-safe-b)); padding: 8px 10px calc(8px + var(--wd-safe-b)); display: flex; gap: 6px; align-items: center; background: var(--wd-ink); border-top: 2px solid var(--wd-line); }
.wd-seg { display: flex; flex: 1; min-width: 0; border: 2px solid var(--wd-line); border-radius: 12px; overflow: hidden; }
.wd-seg button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 46px; padding: 0 4px; border: 0; background: transparent; color: var(--wd-text); font: 700 11px var(--wd-sans); cursor: pointer; }
.wd-seg button + button { border-left: 2px solid var(--wd-line); }
.wd-seg button.on { background: var(--wd-mustard); color: var(--wd-ink); }
.wd-seg button.t-place { display: none; }
.wd-seg svg, .wd-tools .ib svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wd-tools .ib { width: 40px; height: 46px; border-radius: 10px; border: 2px solid var(--wd-line); background: transparent; color: var(--wd-text); display: grid; place-items: center; cursor: pointer; }
.wd-tools .ib:disabled { opacity: .35; }
.wd-submit { height: 46px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--wd-ink); background: var(--wd-tomato); color: #fff; font: 900 13px var(--wd-sans); letter-spacing: .6px; text-transform: uppercase; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.wd-submit:disabled { background: #6e4a52; color: #e9cfc7; cursor: default; }

/* ---------- desktop: the same pieces, wider ---------- */
@media (min-width: 900px) {
  .wd-app { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 22px; max-width: 1240px; margin: 0 auto; padding: 0 18px; align-items: start; }
  .wd-left { min-width: 0; }
  .wd-stage, .wd-tools, .wd-status, .wd-kbd { max-width: calc(100vh - 150px); margin-left: auto; margin-right: auto; }
  .wd-tools { position: static; height: auto; padding: 0 0 8px; background: transparent; border: 0; }
  .wd-seg { flex: 0 1 auto; }
  .wd-seg button { flex-direction: row; gap: 5px; padding: 0 12px; height: 42px; font-size: 13.5px; }
  .wd-seg button.t-place { display: flex; }
  .wd-submit { margin-left: auto; }
  .wd-status { text-align: center; }
  .wd-kbd { display: block; margin-top: 2px; text-align: center; font: 11.5px var(--wd-sans); color: var(--wd-muted); }
  .wd-kbd kbd { font: 700 10.5px var(--wd-mono); border: 1px solid var(--wd-line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; color: var(--wd-text); }
  .wd-right { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 16px); position: sticky; top: 8px; }
  /* Compact suspect chips in one tight row so the clue list keeps the leftover height. Phone strip is unchanged. */
  .wd-dock { flex: 0 0 auto; }
  .wd-strip-head { padding: 0 2px; }
  .wd-strip { display: flex; flex-wrap: wrap; overflow: visible; padding: 6px 2px 4px; gap: 6px; }
  .wd-chip { flex: 1 1 calc((100% - 36px) / 7); min-width: 52px; max-width: calc((100% - 24px) / 5); border-width: 2px; border-radius: 10px; box-shadow: 2px 2px 0 rgba(0, 0, 0, .45); }
  .wd-chip .pick { padding: 4px 2px; }
  .wd-chip .wd-face { width: 40px; height: 40px; }
  .wd-chip .nm { min-height: 0; max-height: 2.5em; overflow: hidden; margin-top: 1px; font: 800 10px/1.2 var(--wd-sans); }
  .wd-chip .st { margin-top: 0; padding-left: 0; font-size: 8.5px; line-height: 1.2; }
  .wd-chip .vic { left: 3px; top: 3px; font-size: 7px; padding: 2px 3px; letter-spacing: .6px; }
  .wd-chip .key { left: 3px; bottom: 3px; font-size: 8px; padding: 0 2px; }
  .wd-chip .pm { top: 2px; right: 2px; width: 20px; height: 20px; border-width: 2px; font-size: 11px; }
  .wd-chip.sel { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--c), 2px 5px 0 rgba(0, 0, 0, .45); }
  .wd-strip-wrap::after, .wd-strip-wrap .more, .wd-strip-head .swipe { display: none; }
  .wd-drawer { position: static; height: auto !important; flex: 1; min-height: 0; border-radius: 16px; border: 3px solid var(--wd-ink); box-shadow: 5px 5px 0 rgba(0, 0, 0, .45); }
  .wd-handle { display: none; }
  .wd-drawer .wd-sheet { visibility: visible !important; overflow-y: auto; }
  /* Slightly larger clue text. The sheet only shows a scrollbar when the content actually overflows. */
  .wd-clues { gap: 6px; }
  .wd-clues li { font-size: 16px; line-height: 1.4; padding: 8px 11px; }
  .footer { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { .wd-chip, .wd-drawer, .stamp { transition: none !important; animation: none !important; } }

/* ---------- accounts, leaderboards, share (launch) ---------- */
.wd-auth { display: grid; gap: 10px; margin-top: 6px; }
.wd-auth label { display: grid; gap: 4px; font: 600 13px var(--font-sans); }
.wd-auth input, .wd-danger input { font: 16px var(--font-sans); padding: 10px 12px; border: 2px solid var(--wd-ink); border-radius: 10px; background: #fff; color: var(--wd-ink); }
.wd-auth-err { min-height: 1.2em; margin: 0; color: #b3261e; font: 600 13px var(--font-sans); }
.wd-auth-intro { margin: 0 0 4px; }
.wd-auth-small { margin: 0; font: 12px/1.35 var(--font-sans); color: #6b5a78; }
.wd-link { background: none !important; border: 0 !important; box-shadow: none !important; text-decoration: underline; color: inherit; }
.wd-save { margin: 14px 0 6px; padding: 12px 14px; border: 3px solid var(--wd-ink); border-radius: 14px; background: #fff6e5; box-shadow: 4px 4px 0 rgba(26, 20, 35, .35); text-align: left; }
.wd-save h3 { margin: 0 0 4px; }
.wd-saved-ok { margin: 0; }
.wd-share { flex-wrap: wrap; gap: 8px; }
.wd-share .wd-wa { background: #1fa855 !important; border-color: #12783b !important; color: #fff !important; text-decoration: none; }
.wd-share .wd-x { background: #111 !important; color: #fff !important; text-decoration: none; }
.wd-tabs { display: flex; gap: 6px; margin: 8px 0; }
.wd-tabs button { flex: 1; padding: 9px 8px; border: 2px solid var(--wd-ink); border-radius: 10px; background: #fff; font: 700 13px var(--font-sans); color: var(--wd-ink); cursor: pointer; }
.wd-tabs button[aria-selected="true"] { background: var(--wd-mustard); }
.board-list li.empty { justify-content: center; color: #6b5a78; }
.wd-danger { margin-top: 14px; font-size: 13px; }

/* Phone top bar: five icons plus the wordmark and clock must fit 390 px. */
@media (max-width: 440px) {
  .topbar { gap: 6px; padding-left: 10px; padding-right: 8px; }
  .wordmark { font-size: 19px; }
  .topbar-nav { gap: 4px; }
  .topbar-nav .icon-btn { min-width: 32px; width: 32px; height: 32px; padding: 0; font-size: 15px; }
  .topbar-nav [data-archive-link] { display: none; }
  .topbar-meta .case-date { display: none; }
}
@media (max-width: 359px) { .topbar-nav [data-sound] { display: none; } }
.share-preview { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; }
.wd-archive-link { margin: 6px 0 0; font: 11.5px/1.3 var(--wd-sans); }
.wd-archive-link a { color: #5e4f6c; font-weight: 700; }

/* ---------- stats panel ("Your casebook"), phone first ---------- */
.wd-st { max-width: 440px; margin: 0 auto; }
.wd-st h2 { margin-bottom: 8px; }
.wd-st-solved { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 2px solid var(--wd-ink); font: 14px/1.4 var(--font-sans); }
.wd-st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wd-st-grid div { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 9px 4px 8px; border: 2px solid var(--wd-ink); border-radius: 12px; background: #fff; box-shadow: 2px 2px 0 rgba(26, 20, 35, .2); text-align: center; }
.wd-st-grid b { font: 800 clamp(20px, 6.2vw, 26px)/1 var(--font-mono); color: var(--wd-ink); white-space: nowrap; }
.wd-st-grid b small { font-size: .6em; }
.wd-st-grid span { margin-top: 4px; font: 600 11px/1.15 var(--font-sans); color: #5e4f6c; }
.wd-st-h { margin: 14px 0 6px; font: 800 12px/1 var(--font-sans); letter-spacing: 1.2px; text-transform: uppercase; color: #5e4f6c; }
.wd-st-chart { display: grid; gap: 5px; }
.wd-st-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 6px; }
.wd-st-row .lab { font: 800 13px var(--font-mono); text-align: right; color: var(--wd-ink); }
.wd-st-row .track { display: block; min-width: 0; }
.wd-st-row i { display: block; min-width: 26px; max-width: 100%; box-sizing: border-box; padding: 3px 7px; border-radius: 6px; background: #6b5a78; color: #fff; font: 800 13px/1.3 var(--font-mono); font-style: normal; text-align: right; }
.wd-st-row.today i { background: var(--wd-tomato); box-shadow: 0 0 0 2px var(--wd-ink); }
.wd-st-chart.empty i { background: #c9bdd3; }
.wd-st-empty { margin: 8px 0 0; font: 14px/1.4 var(--font-sans); color: #5e4f6c; text-align: center; }
.wd-st-src { margin: 10px 0 0; font-size: 12px; text-align: center; }
.wd-st-actions { justify-content: center; }
.wd-st .wd-share, .wd-st-actions { margin-top: 10px; }
@media (min-width: 900px) { .wd-st-grid b { font-size: 26px; } }

/* The case disclaimer, at the foot of the Evidence sheet (always present on phone; also in the desktop side column). */
.wd-disclaimer { margin: 10px 0 0; font: 11.5px/1.35 var(--wd-sans); color: #7a6a5a; }
.wd-disclaimer strong { color: #5e4f6c; }

/* "How to play": collapsed at the foot of the Evidence sheet (on phones the drawer, so the play view gains no height). */
.wd-howto { margin: 10px 0 0; font: 12.5px/1.45 var(--wd-sans); color: #5e4f6c; }
.wd-howto summary { cursor: pointer; font-weight: 800; color: var(--wd-ink); }
.wd-howto ul { margin: 6px 0; padding-left: 1.1em; }
.wd-howto p { margin: 6px 0; }
.wd-howto a, .wd-noscript a { color: #5e4f6c; font-weight: 700; }
/* No-JavaScript fallback sits on the light card: dark ink text. */
.wd-noscript, .wd-noscript .case-title { color: var(--ink); }
