/* SUS: an evidence board on a detective's desk. The suspects are mugshot photos pinned to cork and joined by
   red string; the hints are index cards written in marker; files, notes and reports are paper on a dark
   wooden desk. Fonts: Alfa Slab One (the name, headings, stamps), Permanent Marker (hints and letter tiles),
   Source Sans 3 (reading), IBM Plex Mono (file labels). Every word sits on a plain surface, 7:1 or better
   against it: --fg and --fg-muted are the right colours for whatever surface a part sits on. */

@font-face { font-family: "Alfa Slab One"; src: url(../fonts/alfa-slab-one-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url(../fonts/permanent-marker-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/source-sans-3-var.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/ibm-plex-mono-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
	--desk: #2A211A;
	--desk-2: #1B1511;
	--desk-ink: #F6EEE2;
	--desk-muted: #DCCDB7;
	--paper: #FFFDF7;
	--paper-2: #F3EDE2;
	--ink: #17120E;
	--muted: #4D4034;
	--line: #B8A88F;
	--line-soft: #E4DACB;
	--cork: #C59B6C;
	--cork-edge: #8A6440;
	--red: #C62828;
	--red-btn: #A61B1B;
	--red-deep: #6E0F0F;
	--red-ink: #9A1B1B;
	--note: #FFE58A;
	--focus: #FFC72C;
	--cleared: #1D6B3A;
	--fg: var(--desk-ink);
	--fg-muted: var(--desk-muted);
	--display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
	--hand: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
	--body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--radius: 4px;
	--gutter: 16px;
	color-scheme: dark;
}
/* Paper surfaces: dark words. */
.prose, .report, .role, .side-card, .fmade, .fstart, .fjoin, .group, .ask, .practice, .spoiler, .minimap, .player-id,
.case-files__item a, .note, .glossary__item, .questions__list li, .mindmap__branch, .flow__card, .callout, .tile, .placard {
	--fg: var(--ink); --fg-muted: var(--muted); color: var(--fg);
}
/* Desk surfaces inside paper: light words again. */
.today-card, .cta-band { --fg: var(--desk-ink); --fg-muted: var(--desk-muted); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--desk); color: var(--fg); font: 500 17px/1.55 var(--body); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
b, strong { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--focus); color: var(--ink); padding: 8px 12px; border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: 8px; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
.wrap--narrow { max-width: 780px; }
.wrap--game { max-width: 600px; }
.fine { font-size: 15px; color: var(--fg-muted); margin: 8px 0 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Buttons: paper tabs with an edge underneath; the one main action is red. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink); font: 700 16px/1.15 var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--cork-edge); }
.btn:hover { background: var(--paper-2); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--cork-edge); }
.btn--primary, .btn--alarm { background: var(--red-btn); border-color: var(--red-deep); color: #FFFFFF; box-shadow: 0 4px 0 var(--red-deep); }
.btn--primary:hover, .btn--alarm:hover { background: #B42020; }
.btn--primary:active, .btn--alarm:active { box-shadow: 0 2px 0 var(--red-deep); }
.btn--ghost { border-color: var(--ink); }
.btn--small { min-height: 40px; padding: 6px 12px; font-size: 15px; }
.btn--whatsapp { background: #1F7A44; border-color: #14532E; color: #FFFFFF; box-shadow: 0 4px 0 #14532E; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.cost { font: 700 14px/1 var(--body); color: var(--red-ink); }
.cost--free { color: var(--muted); }

/* Header: the desk's dark edge, the name with a magnifying glass. */
.site-head { background: var(--desk-2); color: var(--desk-ink); border-bottom: 1px solid #3A2E25; }
.site-head__row { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--desk-ink); flex-shrink: 0; }
.brand__name { display: inline-flex; align-items: center; gap: 8px; font: 400 34px/1 var(--display); letter-spacing: .02em; }
.brand__name::before { content: ""; width: 26px; height: 26px; flex-shrink: 0; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='6.5' fill='none' stroke='%23F6EEE2' stroke-width='3'/%3E%3Cpath d='M15 15l6 6' stroke='%23F6EEE2' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.brand__tag { font: 600 11px/1.25 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--desk-muted); }
.site-nav { margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 10px 12px; color: var(--desk-ink); text-decoration: none; font-weight: 700; font-size: 16px; white-space: nowrap; border-radius: var(--radius); }
.site-nav a:hover { background: #33281F; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
@media (max-width: 560px) {
	.brand__tag { display: none; }
	.site-head__row { gap: 8px; }
	.brand__name { font-size: 28px; }
	.brand__name::before { width: 22px; height: 22px; }
	.site-nav a { padding: 10px 8px; font-size: 15px; }
}

/* The crime-scene tape band is not part of this look (the today card keeps its own strip of tape). */
.tape { display: none; }

/* Home masthead */
.main--game { padding-bottom: 8px; }
.game-layout { display: grid; gap: 24px; padding-top: 14px; }
@media (min-width: 1100px) {
	.game-layout { grid-template-columns: minmax(0, 600px) 340px; justify-content: center; align-items: start; }
	.game-side { position: sticky; top: 16px; }
}
.game-col { width: 100%; max-width: 600px; margin: 0 auto; min-width: 0; }
.mast { padding: 4px 0 2px; }
.mast__title { margin: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 14px; color: var(--desk-ink); }
.mast__logo { font: 400 66px/.85 var(--display); letter-spacing: .01em; }
.mast__tag { font: 400 20px/1.2 var(--display); max-width: 17em; padding-bottom: 4px; letter-spacing: .01em; }
.mast__title--small { font: 400 30px/1.1 var(--display); display: block; }
.mast__kicker { margin: 0 0 4px; font: 600 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--desk-muted); }
/* The case line is a rubber stamp on a paper label. */
.mast__case { display: inline-block; margin: 12px 0 0; padding: 6px 10px 5px; background: var(--paper); color: var(--red-ink); border: 2px solid var(--red-ink); border-radius: 3px; font: 400 14px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; transform: rotate(-1.5deg); box-shadow: 0 3px 6px rgba(0, 0, 0, .35); }

/* The game */
.game { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.game.is-busy { cursor: progress; }
.rules { margin: 0; font-size: 16px; color: var(--fg-muted); }
.rules b { color: var(--fg); }
.needs-js-note { margin: 0; font-size: 15px; color: var(--fg-muted); }
.js .needs-js-note { display: none; }

/* The evidence board: cork in a wooden frame. */
.lineup-wall, .lineup--still { position: relative; border-radius: 12px; background-color: var(--cork); background-image: radial-gradient(rgba(96, 58, 22, .38) 1px, transparent 1.4px), radial-gradient(rgba(255, 240, 210, .26) 1px, transparent 1.3px); background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px; box-shadow: inset 0 0 0 6px var(--cork-edge), inset 0 0 24px rgba(60, 35, 10, .45), 0 10px 24px rgba(0, 0, 0, .4); padding: 22px 12px 16px; }
.scale { display: none; }
.lineup { display: grid; gap: 10px; align-items: start; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lineup--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lineup--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lineup--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
@media (min-width: 640px) { .lineup--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.suspect { appearance: none; background: none; border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; color: var(--ink); text-align: center; position: relative; }
.suspect.is-clickable { cursor: pointer; }
/* The photo: a print with a white border, pinned at the top. */
.fig { position: relative; display: block; width: 100%; background: #FBFAF6; padding: 5px 5px 14px; box-shadow: 0 6px 12px rgba(40, 20, 0, .45); }
.fig svg { display: block; width: 100%; height: auto; }
.fig::before { content: ""; position: absolute; z-index: 4; top: -7px; left: 50%; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF8A80, var(--red) 45%, #7F1010); box-shadow: 0 3px 4px rgba(0, 0, 0, .45); }
/* Red string from each pin to the one before it. */
.lineup .suspect + .suspect .fig::after { content: ""; position: absolute; z-index: 3; top: -1px; right: 50%; width: calc(100% + 10px); height: 13px; border-bottom: 2px solid var(--red); border-radius: 0 0 50% 50% / 0 0 100% 100%; pointer-events: none; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .35)); }
@media (max-width: 639px) { .lineup--6 .suspect:nth-child(4) .fig::after { display: none; } }
.suspect:nth-child(4n+1) .fig { transform: rotate(-2.4deg); } .suspect:nth-child(4n+2) .fig { transform: rotate(1.8deg); }
.suspect:nth-child(4n+3) .fig { transform: rotate(-1.4deg); } .suspect:nth-child(4n+4) .fig { transform: rotate(2.4deg); }
/* The hint: an index card in marker, with a red rule along the top. */
.placard { display: flex; flex-direction: column; align-items: center; width: 100%; background: var(--paper); border-top: 4px solid var(--red); padding: 7px 2px 5px; box-shadow: 0 3px 6px rgba(40, 20, 0, .4); container-type: inline-size; }
.suspect:nth-child(2n) .placard { transform: rotate(-1.2deg); } .suspect:nth-child(2n+1) .placard { transform: rotate(1deg); }
/* Each hint fits its card on one line: the card's width over its letters (--n), within 10–19 px. */
.pw { display: block; height: 24px; font: 400 clamp(12px, 3.6vw, 19px)/24px var(--hand); color: var(--ink); max-width: 100%; white-space: nowrap; font-size: clamp(10px, calc(94cqw / (var(--n, 6) * .66)), 19px); }
.pn { font: 700 10px/1.6 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.who { font-size: 12px; line-height: 1.25; font-weight: 700; color: var(--ink); background: var(--paper); padding: 3px 6px; border-radius: 2px; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); max-width: 100%; }
.suspect__pct { display: block; font-weight: 500; }
/* One line each, never wrapped: every suspect of a lineup then has the same lines under its card, so the cards stay level. */
.who__by, .suspect__pct b, .suspect__pct span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suspect__pct b { font-weight: 700; }
.is-voting .suspect.is-clickable .fig, .is-asking .suspect.is-clickable .fig { outline: 3px dashed var(--focus); outline-offset: 3px; }
.is-voting .suspect.is-clickable:hover .fig, .is-asking .suspect.is-clickable:hover .fig { outline-style: solid; }
.suspect.is-picked .fig { outline: 4px solid var(--red) !important; outline-offset: 3px; }
.suspect.is-mine .fig { outline: 4px solid var(--focus); outline-offset: 3px; }
.tag-sus { position: absolute; z-index: 5; top: 12px; left: 50%; transform: translateX(-50%) rotate(-6deg); background: var(--red-btn); color: #FFFFFF; font: 400 15px/1 var(--display); letter-spacing: .06em; padding: 4px 7px 3px; border-radius: 2px; box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
/* Rubber stamps on the photo once the case is closed. */
.stamp { position: absolute; z-index: 5; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-14deg); font: 400 22px/1 var(--display); letter-spacing: .05em; padding: 4px 7px 3px; border: 3px solid currentColor; border-radius: 3px; background: rgba(255, 253, 247, .94); white-space: nowrap; }
.stamp--sus { color: var(--red-ink); font-size: 24px; }
.stamp--ok { color: var(--cleared); font-size: 10.5px; letter-spacing: .03em; padding: 3px 5px 2px; border-width: 2px; }
.stamp.is-new { animation: stamp .38s cubic-bezier(.2, 1.4, .4, 1) both; }
.stamp--ok.is-new { animation-delay: .25s; }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-14deg) scale(1.9); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: 1; } }
/* A suspect's answer: a note stuck to the photo. */
.bubble { position: absolute; z-index: 6; top: 4px; left: 50%; transform: translateX(-50%) rotate(-2deg); width: max-content; max-width: 150px; background: var(--note); color: var(--ink); border-radius: 2px; padding: 5px 8px; font-size: 12px; line-height: 1.25; box-shadow: 0 3px 6px rgba(0, 0, 0, .35); }
.bubble b { display: block; font: 400 20px/1 var(--display); letter-spacing: .04em; }

/* The desk: guessing. One tile per letter; the real text box lies invisibly over them. */
.desk { display: flex; flex-direction: column; gap: 12px; }
.desk__form { display: flex; flex-direction: column; gap: 12px; }
.tiles-wrap { position: relative; align-self: center; width: 100%; max-width: 420px; }
.desk__input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; font-size: 16px; border: 0; caret-color: transparent; cursor: text; }
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 64px); justify-content: center; gap: 8px; }
.tile { display: grid; place-items: center; aspect-ratio: 1 / 1.08; background: var(--paper); border-top: 5px solid var(--red); border-radius: 3px; box-shadow: 0 4px 8px rgba(0, 0, 0, .4); font: 400 clamp(22px, 7vw, 34px)/1 var(--hand); color: var(--ink); }
.tile.is-on { outline: 3px solid var(--focus); outline-offset: 2px; }
.tiles-wrap--7 .tiles, .tiles-wrap--8 .tiles { gap: 6px; }
.desk__input:disabled + .tiles { opacity: .6; }
.desk__meta { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 15px; color: var(--fg-muted); }
.tries { display: flex; gap: 6px; flex-shrink: 0; }
.sq { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--fg-muted); display: inline-block; }
.sq--wrong { background: var(--red); border-color: var(--red); }
.sq--right { background: #3BAA63; border-color: #3BAA63; }
.sq--decoy { background: var(--focus); border-color: var(--focus); }
.msg { margin: 0; min-height: 1.5em; font-weight: 700; color: var(--fg); text-align: center; }
.msg:empty { min-height: 0; }
.msg--trap { background: var(--note); color: var(--ink); padding: 8px 10px; border-radius: 2px; text-align: left; box-shadow: 0 3px 6px rgba(0, 0, 0, .3); }
.msg--good { color: #8FE3AE; }
.msg--bad, .msg--error { color: #FFB4A9; }
.prose .msg--good, .practice .msg--good { color: var(--cleared); }
.prose .msg--bad, .prose .msg--error, .practice .msg--bad, .practice .msg--error { color: var(--red-ink); }
.tried { margin: 0; font-size: 15px; color: var(--fg-muted); text-align: center; }
.tried b { font: 400 16px/1 var(--hand); color: var(--ink); background: var(--paper); padding: 2px 6px; margin-right: 4px; border-radius: 2px; }
.tried .tried--decoy { background: var(--note); }
.notes { display: flex; flex-direction: column; gap: 8px; }
.notes:empty { display: none; }
.note { background: var(--paper); border-top: 4px solid var(--ink); padding: 8px 12px; font-size: 17px; box-shadow: 0 3px 6px rgba(0, 0, 0, .3); }
.note__k { display: block; font: 600 10px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.desk__tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 10px; }
.desk__tools .btn { flex-direction: column; gap: 2px; }
.btn--guess { min-height: 56px; font: 400 22px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.shake { animation: shake .32s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* Interrogation */
.ask { border-top: 4px solid var(--ink); border-radius: 2px; background: var(--paper); padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.ask p { margin: 0; }
.ask__qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.q { appearance: none; text-align: left; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); border-radius: 3px; padding: 9px 10px; font-size: 15px; line-height: 1.25; cursor: pointer; min-height: 44px; }
.q:hover { border-color: var(--ink); }
@media (max-width: 380px) { .ask__qs { grid-template-columns: minmax(0, 1fr); } }

/* Accusation: a sticky note on the desk. */
.accuse { display: flex; flex-direction: column; gap: 10px; }
.callout { margin: 0; background: var(--note); font-weight: 700; padding: 12px 14px; border-radius: 2px; font-size: 16px; box-shadow: 0 4px 8px rgba(0, 0, 0, .35); transform: rotate(-.6deg); }
.accuse__row { display: flex; flex-wrap: wrap; gap: 10px; }
.accuse__row .btn--alarm { flex: 1 1 200px; }
.btn--noone { border-style: dashed; }
.btn--noone.is-on { background: var(--ink); color: var(--paper); border-style: solid; }

/* Reports, role cards and the side files: paper with a red rule along the top. */
.report, .role, .side-card, .fmade, .fstart, .fjoin, .group { background: var(--paper); border-top: 4px solid var(--red); border-radius: 2px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.report p, .role p, .side-card p, .fmade p, .group p { margin: 0; }
.report__k { margin: 0; font: 600 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.report__h, .role__h { margin: 0; font: 400 28px/1.08 var(--display); text-wrap: balance; }
.report__sub { margin: 6px 0 0; font: 400 19px/1.15 var(--display); }
.score { font-size: 18px; }
.score b { font: 400 32px/1 var(--display); color: var(--red-ink); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) 96px 46px; gap: 8px; align-items: center; font-size: 15px; }
.bar__track { height: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; display: block; }
.bar__fill { display: block; height: 100%; background: var(--ink); }
.bar__value { text-align: right; font: 600 14px/1 var(--mono); }
.share { display: flex; flex-direction: column; gap: 8px; }
.share__text { margin: 0; font: 400 15px/1.55 var(--mono); background: var(--paper-2); border: 1px dashed var(--line); padding: 10px 12px; border-radius: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.next { color: var(--muted); }
.role { border-top-color: var(--ink); }
.role--imp { border-top-color: var(--red); }
.role--imp .role__h { color: var(--red-ink); font-size: 40px; text-transform: uppercase; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opt { appearance: none; border: 0; border-top: 4px solid var(--red); border-radius: 2px; background: var(--paper-2); color: var(--ink); font: 400 16px/1.15 var(--hand); padding: 12px 4px; cursor: pointer; white-space: nowrap; min-width: 0; min-height: 50px; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); container-type: inline-size; font-size: clamp(11px, calc(90cqw / (var(--n, 6) * .66)), 16px); }
.opt:hover { background: #EAE2D4; }
.opt.is-pick { outline: 3px solid var(--red); outline-offset: 2px; background: var(--paper); }
.opt:disabled { cursor: default; opacity: .5; }
.opt.is-pick:disabled { opacity: 1; }
.opt.is-taken { text-decoration: line-through; }
@media (max-width: 360px) { .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Side column */
.game-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.side-card__h { margin: 0; font: 400 21px/1.15 var(--display); }
.me { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.me div { background: var(--paper-2); border-radius: 2px; padding: 8px 10px; }
.me dt { font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.me dd { margin: 0; font: 400 28px/1.1 var(--display); }
.steps { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.steps li::marker { font: 400 17px/1 var(--display); color: var(--red-ink); }
.writing, .case-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.chalk { display: inline-block; background: var(--paper-2); color: var(--ink); border-top: 2px solid var(--red); font: 400 15px/1.3 var(--hand); padding: 1px 6px; border-radius: 2px; }

/* Home: about */
.home-about { padding: 30px 0 8px; }

/* Pages: the title on the desk, the text on a sheet of paper. */
.page-head { padding: 24px 0 12px; color: var(--desk-ink); }
.page-head__title { margin: 0; font: 400 clamp(30px, 6.4vw, 48px)/1.08 var(--display); text-wrap: balance; }
.lede { margin: 12px 0 0; font-size: 19px; color: var(--fg-muted); }
.kicker { margin: 0 0 6px; font: 600 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 14px; color: var(--fg-muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.lead-figure { margin: 18px 0 0; }
.lead-figure img { display: block; width: 100%; border-radius: 2px; background: var(--paper-2); box-shadow: 0 8px 18px rgba(0, 0, 0, .45); }
.lead-figure figcaption { font-size: 14px; color: var(--fg-muted); margin-top: 8px; }
.prose { background: var(--paper); border-radius: 2px; padding: 8px 20px 24px; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.prose > :first-child { margin-top: 18px; }
.prose h2 { font: 400 28px/1.12 var(--display); margin: 34px 0 10px; }
.prose h3 { font: 400 21px/1.2 var(--display); margin: 24px 0 8px; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 14px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line-soft); padding: 8px 10px 8px 0; vertical-align: top; }
.prose th { font: 600 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose figure { margin: 20px 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose a { color: var(--red-ink); }
.page-meta { font-size: 14px; color: var(--fg-muted); margin-top: 28px; }
.sus-example .lineup { margin: 0; }
.cta-band { background: var(--desk-2); color: var(--desk-ink); padding: 24px 0; margin-top: 16px; }
.cta-band p { margin: 0 0 12px; }

/* Case files */
.case-play { padding-top: 8px; }
.case-play h2, .case-answer h2 { font: 400 26px/1.15 var(--display); margin: 18px 0 10px; color: var(--fg); }
.spoiler { border-top: 4px solid var(--red); border-radius: 2px; background: var(--paper); padding: 0 16px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.spoiler summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.spoiler[open] { padding-bottom: 16px; }
.answer-word { font: 400 30px/1 var(--hand); letter-spacing: .02em; }
.true-hints { margin: 0; }
.case-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px var(--gutter); font-weight: 700; }
.case-files { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.case-files__item a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; background: var(--paper); border-top: 4px solid var(--red); border-radius: 2px; padding: 12px 14px; text-decoration: none; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.case-files__item a:hover { background: var(--paper-2); }
.case-files__n { font: 400 24px/1 var(--display); }
.case-files__tag { font: 600 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--red-btn); color: #FFFFFF; padding: 1px 6px; border-radius: 2px; }

/* Friends */
.fstart__set { border: 0; padding: 0; margin: 0; }
.fstart__set legend { font-weight: 700; margin-bottom: 8px; }
.fstart__opts { display: flex; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; }
.pill span { display: inline-flex; width: 54px; height: 50px; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper-2); font: 400 24px/1 var(--display); cursor: pointer; }
.pill input:checked + span { background: var(--ink); color: var(--paper); }
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--red-btn); }
.link-box { font: 600 16px/1.4 var(--mono); background: var(--paper-2); color: var(--ink); border: 1px dashed var(--line); padding: 10px 12px; border-radius: 2px; overflow-wrap: anywhere; }
.fjoin label { font-weight: 700; }
.fjoin input { font: 500 18px/1.2 var(--body); padding: 10px 12px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); color: var(--ink); width: 100%; max-width: 320px; }
.progress { margin: 0; font-size: 16px; color: var(--fg); }
.fshare { margin-top: 6px; }
.fshare .fine { color: var(--fg-muted); }
.group__list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.stamp-inline { font: 400 12px/1 var(--display); letter-spacing: .06em; border: 2px solid var(--cleared); color: var(--cleared); padding: 2px 4px 1px; border-radius: 2px; text-transform: uppercase; }
.stamp-inline--sus { border-color: var(--red-ink); color: var(--red-ink); }
.stamp-inline--hidden { border-color: var(--line); color: var(--muted); }

/* Footer */
.site-foot { background: var(--desk-2); color: var(--desk-ink); margin-top: 28px; padding: 30px 0 16px; border-top: 1px solid #3A2E25; }
.site-foot a { color: var(--desk-ink); }
.site-foot__grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .site-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot__about p { margin: 8px 0 0; color: var(--desk-muted); font-size: 16px; }
.site-foot__small { font-size: 14px !important; }
.site-foot__h { margin: 0 0 6px; font: 600 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--desk-muted); }
.site-foot__nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.site-foot__base { margin-top: 22px; padding-top: 12px; border-top: 1px solid #3A2E25; font-size: 14px; color: var(--desk-muted); }
.brand--foot .brand__name { font-size: 40px; }

@media (prefers-reduced-motion: reduce) {
	.stamp.is-new, .shake { animation: none; }
	.btn:active { transform: none; }
}
@media print {
	.site-head, .site-foot, .cta-band, .desk__tools { display: none; }
	body { background: #FFFFFF; color: #000000; }
}

/* Guides: the parts a page can place ([psus_…] shortcodes). They sit on the paper of the page. */
.practice { border: 2px solid var(--ink); border-radius: 4px; background: var(--paper-2); padding: 14px; margin: 22px 0; }
.practice__k { margin: 0 0 6px; font: 600 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.practice .steps { margin: 0 0 6px; }
.practice .game { margin-top: 8px; }
.flow { margin: 26px 0; perspective: 900px; }
.flow__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .flow__list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.flow__card { position: relative; background: var(--paper-2); border-top: 4px solid var(--red); border-radius: 2px; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); transform-origin: 50% 0; }
.turn-in .flow__card { transform: rotateX(-62deg) translateY(10px); opacity: 0; transition: transform .6s cubic-bezier(.2, .9, .3, 1.15), opacity .4s; }
.turn-in .flow__card.is-in { transform: none; opacity: 1; }
.turn-in .flow__card:nth-child(2) { transition-delay: .08s; } .turn-in .flow__card:nth-child(3) { transition-delay: .16s; }
.turn-in .flow__card:nth-child(4) { transition-delay: .24s; } .turn-in .flow__card:nth-child(5) { transition-delay: .32s; }
.flow__n { font: 400 28px/1 var(--display); color: var(--red-ink); }
.flow__h { font: 400 19px/1.1 var(--display); }
.flow__p { font-size: 15px; line-height: 1.4; color: var(--muted); }
.scoring td:last-child, .scoring th:last-child { text-align: right; white-space: nowrap; }
.questions__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 359px) { .questions__list { grid-template-columns: minmax(0, 1fr); } }
.questions__list li { background: var(--paper-2); border-left: 3px solid var(--red); border-radius: 2px; padding: 8px 10px; font-size: 15px; margin: 0; max-width: none; }
.glossary { margin: 18px 0; display: grid; gap: 8px; }
.glossary__item { background: var(--paper-2); border-left: 4px solid var(--red); padding: 8px 12px; }
.glossary dt { font: 400 18px/1.25 var(--display); }
.glossary dd { margin: 2px 0 0; font-size: 16px; }
.mindmap { margin: 26px 0; position: relative; }
.mindmap__core { width: max-content; max-width: 100%; margin: 0 auto 16px; background: var(--paper); color: var(--red-ink); border: 3px solid var(--red-ink); font: 400 24px/1 var(--display); letter-spacing: .04em; padding: 12px 18px 10px; border-radius: 4px; text-transform: uppercase; transform: rotate(-2deg); }
.mindmap__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .mindmap__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mindmap__branch { position: relative; background: var(--paper-2); border-top: 4px solid var(--red); border-radius: 2px; padding: 10px 12px; margin: 0; max-width: none; display: flex; flex-direction: column; gap: 4px; font-size: 15px; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.mindmap__branch b { font: 400 18px/1.15 var(--display); }
.mindmap__branch::before { content: ""; position: absolute; left: 50%; top: -14px; width: 2px; height: 10px; background: var(--red); }
.minimap { background: var(--paper); border-top: 4px solid var(--ink); border-radius: 2px; padding: 12px 14px; margin: 18px 0; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.minimap__h { margin: 0 0 6px !important; font: 600 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.minimap ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 24px; }
.minimap li { margin: 3px 0; font-size: 15px; break-inside: avoid; }
.minimap a { color: var(--ink); }
.prose .minimap { box-shadow: none; border: 1px solid var(--line-soft); border-top: 4px solid var(--ink); }
@media (min-width: 1360px) {
	.page .minimap { position: fixed; left: calc(50% - 660px); top: 90px; width: 260px; max-height: calc(100vh - 120px); overflow: auto; margin: 0; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
	.page .minimap ol { columns: auto; }
}
.today-card { position: relative; overflow: hidden; background: var(--desk-2); color: var(--desk-ink); border-radius: 4px; padding: 46px 16px 18px; margin: 26px 0; }
.today-card p { margin: 0 0 12px; }
.today-card__tape { position: absolute; left: -10px; right: -10px; top: 10px; background: var(--focus); color: var(--ink); font: 600 11px/24px var(--mono); letter-spacing: .2em; white-space: nowrap; overflow: hidden; transform: rotate(-1deg); margin: 0 !important; }
.today-card__h { font: 400 24px/1.1 var(--display); }
.player-id { background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; margin: 14px 0; }
.player-id p { margin: 0 0 8px; }
.psus-figure { margin: 18px 0 0; }
.psus-figure img { display: block; width: 100%; height: auto; border-radius: 2px; background: var(--paper-2); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.psus-figure figcaption { font-size: 14px; color: var(--fg-muted); margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .turn-in .flow__card { transform: none; opacity: 1; transition: none; } }

/* Phones: the board and the tiles come into view without scrolling. */
@media (max-width: 560px) {
	.mast { padding-top: 0; }
	.mast__logo { display: none; } /* The bar above already says SUS. */
	.mast__tag { font-size: 19px; max-width: none; padding: 0; }
	.mast__case { margin-top: 8px; font-size: 13px; }
	.game { margin-top: 10px; gap: 12px; }
	.rules { font-size: 15px; }
	.lineup-wall, .lineup--still { padding: 20px 8px 14px; }
	.lineup { gap: 7px; }
	.prose { padding: 6px 16px 20px; }
}
@media (max-width: 400px) {
	.site-nav li:first-child { display: none; } /* The name goes to today's case anyway. */
	.mast__case { font-size: 12px; letter-spacing: .03em; }
	.desk__tools .btn { padding: 8px 8px; font-size: 15px; }
}
.who:empty { display: none; }
