/* Who Said It? Its own look: letterpress quote cards on warm paper, oxblood ink, mustard highlights.
   Fraunces for display and quotes, Courier Prime for labels. Everything is scoped to .wsi-page. */
.wsi-page {
  --paper: #f6efe2; --paper2: #ebe0cb; --card: #fffaf0; --ink: #231a14; --muted: #6a5a4d; --line: #d9c9ad;
  --ox: #8f1d14; --ox-soft: #f3dcd4; --on-ox: #fffaf0; --mus: #d9a21b; --mus-ink: #7a5300; --mus-soft: #f8e7b5;
  --teal: #1d5d57; --ok: #2c6e3c; --ok-soft: #dcefdc; --bad: #a3241a; --bad-soft: #f7dcd7;
  --shadow: 0 1px 0 rgba(35,26,20,.08), 0 14px 34px rgba(60,35,15,.14);
  --dot: rgba(143,29,20,.07);
  --f-disp: "Fraunces", Georgia, "Times New Roman", serif;
  --f-mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  background: var(--paper); color: var(--ink);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px); background-size: 14px 14px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wsi-page {
  --paper: #18120f; --paper2: #231a15; --card: #211913; --ink: #f2e8d9; --muted: #bba997; --line: #3b2f26;
  --ox: #f08a77; --ox-soft: #3c211b; --on-ox: #1a120e; --mus: #e8b84d; --mus-ink: #f0c868; --mus-soft: #3a2e15;
  --teal: #84cdc3; --ok: #8fd09d; --ok-soft: #1d3523; --bad: #ff9584; --bad-soft: #42211c;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.45); --dot: rgba(240,138,119,.07); } }
:root[data-theme="dark"] .wsi-page {
  --paper: #18120f; --paper2: #231a15; --card: #211913; --ink: #f2e8d9; --muted: #bba997; --line: #3b2f26;
  --ox: #f08a77; --ox-soft: #3c211b; --on-ox: #1a120e; --mus: #e8b84d; --mus-ink: #f0c868; --mus-soft: #3a2e15;
  --teal: #84cdc3; --ok: #8fd09d; --ok-soft: #1d3523; --bad: #ff9584; --bad-soft: #42211c;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.45); --dot: rgba(240,138,119,.07); }
main.wsi-page .wrap { padding-block: 0; }
.wsi-page > .wrap { padding-bottom: 56px; }

/* Title band */
.wsi-band { border-bottom: 3px double var(--line); }
.wsi-band .wrap { display: grid; gap: 4px; padding-block: 18px 16px !important; }
.wsi-back { font-family: var(--f-mono); font-weight: 700; font-size: 14px; color: var(--ox); text-decoration: none; justify-self: start; padding: 6px 0; }
.wsi-back:hover { text-decoration: underline; }
.wsi-eyebrow { font-family: var(--f-mono); color: var(--mus-ink); letter-spacing: .12em; }
.wsi-h1 { font-family: var(--f-disp); font-weight: 900; font-size: clamp(30px, 5vw, 46px); line-height: 1.05; letter-spacing: -.01em; color: var(--ink); }
.wsi-h1 span { font-weight: 400; font-style: italic; color: var(--muted); font-size: .55em; margin-left: 6px; white-space: nowrap; }

.wsi { margin-top: 22px; min-width: 0; }
.wsi-noscript { font-family: var(--f-mono); padding: 24px; background: var(--card); border: 1px solid var(--line); }
.wsi button { font: inherit; color: inherit; }
.wsi :focus-visible { outline: 3px solid var(--mus); outline-offset: 3px; }
.wsi kbd { font-family: var(--f-mono); font-weight: 700; font-size: 12px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--paper); color: var(--muted); }
@media (hover: none) { .wsi .keys { display: none; } }

/* Buttons */
.wsi-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 28px; border: 2px solid var(--ink); border-radius: 4px;
  background: var(--ox); color: var(--on-ox) !important; font-family: var(--f-disp) !important; font-weight: 700; font-size: 19px; letter-spacing: .01em; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; text-decoration: none; }
.wsi-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.wsi-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.wsi-btn.ghost { background: var(--card); color: var(--ink) !important; }
.wsi-btn svg { width: 20px; height: 20px; }

/* Start screen: full-bleed hero with a centered card */
.wsi-hero { position: relative; border-radius: 6px; overflow: hidden; min-height: clamp(460px, 62vh, 600px); display: grid; place-items: center; padding: 64px 16px 48px;
  background: #3b120d; isolation: isolate; box-shadow: var(--shadow); }
.wsi-art { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(circle at 20% 30%, rgba(217,162,27,.35), transparent 45%),
  radial-gradient(circle at 85% 80%, rgba(29,93,87,.55), transparent 50%),
  repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 12px),
  linear-gradient(135deg, #6e150f, #2b0e0b); }
.wsi-art .qm { position: absolute; font-family: var(--f-disp); font-weight: 900; color: rgba(255,240,215,.13); line-height: .7; user-select: none; }
.wsi-art .qm.a { font-size: clamp(260px, 42vw, 520px); left: -2%; top: -4%; }
.wsi-art .qm.b { font-size: clamp(200px, 32vw, 420px); right: -1%; bottom: -22%; }
.wsi-art .glyph { position: absolute; right: 7%; top: 12%; font-size: clamp(56px, 9vw, 110px); opacity: .5; filter: saturate(.6); }
.wsi-photo { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: 0; transition: opacity .5s; }
.wsi-photo.on { opacity: 1; }
.wsi-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,6,.15), rgba(20,10,6,.5)); }
.wsi-credit { position: absolute; left: 12px; bottom: 8px; right: 12px; font-family: var(--f-mono); font-size: 12px; color: rgba(255,248,235,.85); text-shadow: 0 1px 2px rgba(0,0,0,.7); overflow-wrap: anywhere; }
.wsi-credit a { color: inherit; }
.wsi-card { position: relative; width: min(480px, 100%); background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 8px 8px 0 rgba(0,0,0,.35);
  padding: 34px clamp(18px, 4vw, 34px) 24px; text-align: center; }
.wsi-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.wsi-pill { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--mus); color: #2a1a05; border: 2px solid var(--ink); padding: 5px 14px; border-radius: 3px; }
.wsi-mark { display: block; width: min(340px, 100%); height: auto; margin: 4px auto 6px; }
.wsi-mark .m-q { fill: var(--ox); }
.wsi-mark .m-t { fill: var(--ink); font-family: var(--f-disp); font-weight: 900; font-style: italic; }
.wsi-tag { margin: 0 0 18px; color: var(--muted); font-family: var(--f-disp); font-style: italic; font-size: 17px; line-height: 1.35; }
.wsi-card .wsi-btn.play { width: 100%; min-height: 60px; font-size: 22px; }
.wsi-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-family: var(--f-mono); font-weight: 700; font-size: 15px; }
.wsi-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; position: relative; min-height: 44px; }
.wsi-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wsi-switch .sw { width: 46px; height: 26px; border-radius: 999px; background: var(--paper2); border: 2px solid var(--ink); position: relative; flex: none; transition: background .15s; }
.wsi-switch .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .15s; }
.wsi-switch input:checked + .sw { background: var(--ox); }
.wsi-switch input:checked + .sw::after { transform: translateX(20px); background: var(--card); }
.wsi-switch input:focus-visible + .sw { outline: 3px solid var(--mus); outline-offset: 2px; }
.wsi-opts-t { margin-top: 14px; background: none; border: 0; font-family: var(--f-mono) !important; font-weight: 700; font-size: 14px; color: var(--ox) !important; cursor: pointer; padding: 8px; min-height: 40px; text-decoration: underline; text-underline-offset: 3px; }
.wsi-opts { margin-top: 6px; text-align: left; }
.wsi-opts > span { display: block; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.wsi-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.wsi-cats button { border: 1.5px solid var(--ink); background: var(--card); border-radius: 3px; padding: 8px 12px; min-height: 42px; font-family: var(--f-mono) !important; font-weight: 700; font-size: 14px; cursor: pointer; }
.wsi-cats button[aria-pressed="true"] { background: var(--ink); color: var(--card) !important; }
.wsi-best { margin: 14px 0 0; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }

/* Playing */
.wsi-game { background: var(--card); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 8px 8px 0 var(--paper2), var(--shadow); overflow: hidden; }
.wsi-top { display: flex; align-items: center; gap: 10px 16px; padding: 12px clamp(14px, 3vw, 24px); border-bottom: 2px solid var(--ink); background: var(--paper); flex-wrap: wrap; }
.wsi-top .ttl { font-family: var(--f-disp); font-weight: 900; font-style: italic; font-size: 20px; margin-right: auto; color: var(--ox); white-space: nowrap; }
.wsi-lvl { font-family: var(--f-mono); font-weight: 700; font-size: 13px; color: var(--mus-ink); background: var(--mus-soft); border: 1.5px solid var(--mus); border-radius: 3px; padding: 3px 8px; white-space: nowrap; }
.wsi-prog { font-family: var(--f-mono); font-weight: 700; font-size: 16px; white-space: nowrap; }
.wsi-score { position: relative; font-family: var(--f-mono); font-weight: 700; font-size: 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 3px; padding: 5px 10px; white-space: nowrap; }
.wsi-score b { color: var(--ox); font-size: 18px; }
.wsi-pop { position: absolute; right: 100%; top: 50%; margin-right: 6px; transform: translateY(-50%); background: var(--ok); color: var(--card); font-family: var(--f-mono); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 3px 9px; opacity: 0; pointer-events: none; white-space: nowrap; }
.wsi-pop.show { animation: wsiPop 1.4s ease-out; }
@keyframes wsiPop { 0% { opacity: 0; transform: translate(6px, -50%) scale(.6); } 15% { opacity: 1; transform: translate(0, -50%) scale(1.1); } 70% { opacity: 1; transform: translate(0, -80%) scale(1); } 100% { opacity: 0; transform: translate(0, -140%); } }
.wsi-ring { width: 46px; height: 46px; position: relative; flex: none; }
.wsi-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.wsi-ring .trk { stroke: var(--paper2); }
.wsi-ring .arc { stroke: var(--teal); transition: stroke-dashoffset .25s linear; }
.wsi-ring.low .arc { stroke: var(--bad); }
.wsi-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: 15px; }
.wsi-steps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; padding: 0 clamp(14px, 3vw, 24px); margin-top: 10px; }
.wsi-steps i { height: 5px; border-radius: 2px; background: var(--paper2); }
.wsi-steps i.ok { background: var(--ok); } .wsi-steps i.no { background: var(--bad); } .wsi-steps i.now { background: var(--mus); }

.wsi-body { padding: clamp(18px, 4vw, 34px) clamp(14px, 4vw, 40px) clamp(20px, 4vw, 32px); }
.wsi-quote { position: relative; margin: 0 auto; max-width: 760px; padding: 6px 0 0 clamp(40px, 7vw, 64px); }
.wsi-quote::before { content: "\201C"; position: absolute; left: -4px; top: -18px; font-family: var(--f-disp); font-weight: 900; font-size: clamp(92px, 14vw, 132px); line-height: 1; color: var(--ox); }
.wsi-quote p { margin: 0; font-family: var(--f-disp); font-style: italic; font-weight: 400; font-size: clamp(21px, 3.1vw, 30px); line-height: 1.32; color: var(--ink); text-wrap: pretty; overflow-wrap: break-word; }
.wsi-quote p.long { font-size: clamp(19px, 2.5vw, 25px); }
.wsi-ask { margin: 22px 0 14px; text-align: center; font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wsi-opts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; max-width: 780px; margin: 0 auto; }
@media (max-width: 520px) { .wsi-opts-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.wsi-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; text-align: left; border: 2px solid var(--ink); border-radius: 4px; background: var(--card);
  font-family: var(--f-disp) !important; font-weight: 600; font-size: 19px; line-height: 1.2; cursor: pointer; box-shadow: 3px 3px 0 var(--line); transition: transform .12s, box-shadow .12s, opacity .3s, background-color .2s; }
.wsi-opt:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--mus); background: var(--paper); }
.wsi-opt .n { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font-family: var(--f-mono); font-weight: 700; font-size: 14px; }
.wsi-opt:disabled { cursor: default; }
.wsi-opt.fade { opacity: .4; box-shadow: none; }
.wsi-opt.right { border-color: var(--ok); background: var(--ok-soft); box-shadow: 3px 3px 0 var(--ok); opacity: 1; }
.wsi-opt.wrong { border-color: var(--bad); background: var(--bad-soft); box-shadow: 3px 3px 0 var(--bad); opacity: 1; }
.wsi-opt .badge { position: absolute; top: -13px; right: -13px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid var(--card); }
.wsi-opt.right .badge { background: var(--ok); } .wsi-opt.wrong .badge { background: var(--bad); }
:root[data-theme="dark"] .wsi-opt .badge { color: #1a120e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wsi-opt .badge { color: #1a120e; } }
.wsi-opt .badge svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .wsi-opt.shake { animation: wsiShake .42s ease; }
  @keyframes wsiShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
  .wsi-reveal { animation: wsiIn .35s ease-out; }
  @keyframes wsiIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.wsi-next-row { display: flex; justify-content: center; margin-top: 22px; }

/* Lightbulb reveal */
.wsi-reveal { border-top: 2px dashed var(--line); background: var(--paper); padding: 20px clamp(14px, 4vw, 40px) 24px; }
.wsi-rv { max-width: 780px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; }
.wsi-bulb { width: 34px; height: 34px; color: var(--mus-ink); grid-row: span 3; margin-top: 2px; }
.wsi-verdict { font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.wsi-verdict.ok { color: var(--ok); } .wsi-verdict.no { color: var(--bad); }
.wsi-who { font-family: var(--f-disp); font-weight: 700; font-size: 22px; line-height: 1.2; }
.wsi-who small { display: block; font-weight: 400; font-style: italic; font-size: 16px; color: var(--muted); margin-top: 2px; }
.wsi-facts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wsi-facts span { font-family: var(--f-mono); font-weight: 700; font-size: 13px; border: 1.5px solid var(--ink); border-radius: 3px; padding: 2px 8px; background: var(--card); }
.wsi-ctx { grid-column: 2; margin: 8px 0 0; font-size: 16px; line-height: 1.55; }
.wsi-src { grid-column: 2; font-family: var(--f-mono); font-size: 14px; font-weight: 700; color: var(--ox); overflow-wrap: anywhere; margin-top: 4px; justify-self: start; }

/* End screen */
.wsi-end { text-align: center; padding: clamp(24px, 5vw, 44px) clamp(14px, 4vw, 40px); }
.wsi-end .big { font-family: var(--f-disp); font-weight: 900; font-size: clamp(56px, 12vw, 96px); line-height: 1; color: var(--ox); }
.wsi-end .lbl { font-family: var(--f-mono); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.wsi-end h2 { font-family: var(--f-disp); font-style: italic; font-weight: 600; font-size: clamp(22px, 3.5vw, 30px); margin: 14px 0 6px; }
.wsi-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
.wsi-stats div { border: 2px solid var(--ink); border-radius: 4px; padding: 8px 14px; min-width: 110px; background: var(--paper); }
.wsi-stats b { display: block; font-family: var(--f-disp); font-size: 26px; }
.wsi-stats span { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.wsi-new { display: inline-block; background: var(--mus); color: #2a1a05; font-family: var(--f-mono); font-weight: 700; padding: 4px 12px; border-radius: 3px; border: 2px solid var(--ink); margin-top: 6px; }
.wsi-end .acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.wsi-review { list-style: none; padding: 0; margin: 28px auto 0; max-width: 780px; text-align: left; display: grid; gap: 10px; }
.wsi-review li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; border: 1.5px solid var(--line); border-left: 6px solid var(--ok); border-radius: 3px; padding: 10px 14px; background: var(--paper); }
.wsi-review li.no { border-left-color: var(--bad); }
.wsi-review .mk { grid-row: span 3; font-family: var(--f-mono); font-weight: 700; font-size: 18px; color: var(--ok); }
.wsi-review li.no .mk { color: var(--bad); }
.wsi-review q { font-family: var(--f-disp); font-style: italic; font-size: 16px; line-height: 1.4; }
.wsi-review .by { font-size: 14px; font-weight: 700; }
.wsi-review .by em { font-weight: 400; color: var(--muted); }
.wsi-review a { font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: var(--ox); justify-self: start; }
.wsi-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Guide, restyled to match but plain and readable */
.wsi-guide { background: var(--card); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--paper2); color: var(--ink); }
.wsi-guide h2, .wsi-guide h3 { font-family: var(--f-disp); font-weight: 700; color: var(--ink); }
.wsi-guide h2 { font-size: 28px; }
.wsi-guide .faq h3 { font-size: 18px; }
.wsi-guide p { color: var(--ink); }
@media (max-width: 520px) {
  .wsi-top { gap: 8px 10px; }
  .wsi-top .ttl { font-size: 17px; width: 100%; }
  .wsi-opt { font-size: 18px; min-height: 58px; }
  .wsi-hero { padding: 56px 12px 44px; }
}
