/* Juror 13 — The Lizzie Borden Case File
   Visual identity: 1890s case file. Parchment, ink, oxblood, brass. */

:root {
  --paper: #f3ead8;
  --paper-2: #ebdfc6;
  --card: #fbf6ea;
  --ink: #1f1a14;
  --ink-soft: #3d342a;
  --muted: #65584a;
  --line: #d6c6a4;
  --blood: #8c1c13;
  --blood-ink: #fff8ee;
  --brass: #8a6420;
  --brass-soft: #e8d3a2;
  --innocent: #255e6b;
  --guilty: #8c1c13;
  --shadow: 0 1px 0 rgba(60, 40, 10, .08), 0 8px 24px -12px rgba(60, 40, 10, .35);
  --radius: 10px;
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-type: "Special Elite", "Courier New", monospace;
  --maxw: 1080px;
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #15110d;
  --paper-2: #1d1712;
  --card: #231c16;
  --ink: #f0e5d0;
  --ink-soft: #ddd0b8;
  --muted: #b3a48b;
  --line: #3d3228;
  --blood: #e2604f;
  --blood-ink: #1a0f0b;
  --brass: #dcae58;
  --brass-soft: #4a3a1e;
  --innocent: #6cbfcf;
  --guilty: #ef7465;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(166, 124, 45, .10), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(140, 28, 19, .06), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--blood); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 7vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 3px double var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 40;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .55rem 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.brand {
  display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink);
  font-family: var(--f-display); font-weight: 900; font-size: 1.2rem; white-space: nowrap;
}
.brand-mark {
  width: 32px; height: 32px; flex: none;
}
.brand small { font-family: var(--f-type); font-weight: 400; font-size: .7rem; color: var(--muted); display: block; line-height: 1; letter-spacing: .06em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav-links { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .45rem .6rem; border-radius: 6px; text-decoration: none;
  color: var(--ink-soft); font-family: var(--f-type); font-size: .88rem; letter-spacing: .02em;
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--blood); background: var(--paper-2); }
.icon-btn {
  appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
  cursor: pointer; flex: none;
}
.icon-btn:hover { border-color: var(--brass); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn { display: inline-grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--paper); border-bottom: 3px double var(--line); padding: .5rem 1rem 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem .5rem; font-size: 1rem; border-bottom: 1px dashed var(--line); border-radius: 0; }
}

/* ---------- Layout ---------- */
main { flex: 1; width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 760px; }
.section { padding: 2.5rem 0; }
.eyebrow {
  font-family: var(--f-type); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: var(--blood); margin: 0 0 .6rem; display: block;
}
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.rule { border: 0; border-top: 3px double var(--line); margin: 2rem 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* ---------- Components ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem;
  position: relative;
}
.card.paper-clip::before {
  content: ""; position: absolute; top: -10px; left: 22px; width: 14px; height: 38px;
  border: 3px solid var(--brass); border-radius: 8px; border-bottom-color: transparent;
  transform: rotate(-8deg); opacity: .8;
}
a.card { color: inherit; text-decoration: none; display: block; transition: transform .2s ease, border-color .2s; }
a.card:hover { transform: translateY(-3px) rotate(-.3deg); border-color: var(--brass); }
.card h3 { margin-bottom: .3em; }
.card .go { font-family: var(--f-type); color: var(--blood); font-size: .9rem; }

.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem; border-radius: 8px; border: 2px solid var(--blood);
  background: var(--blood); color: var(--blood-ink); font-family: var(--f-type); font-size: 1rem;
  letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.ghost { background: transparent; color: var(--blood); }
.btn.ghost:hover { background: color-mix(in srgb, var(--blood) 10%, transparent); }
.btn.quiet { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { border-color: var(--brass); }
.btn.small { min-height: 38px; padding: .4rem .85rem; font-size: .9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.stamp {
  display: inline-block; font-family: var(--f-type); text-transform: uppercase; letter-spacing: .12em;
  border: 3px solid currentColor; color: var(--blood); padding: .2rem .6rem; border-radius: 4px;
  transform: rotate(-4deg); font-size: .85rem; opacity: .9;
  mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,.75) 100%);
}
.stamp.brass { color: var(--brass); }
.stamp.teal { color: var(--innocent); }

.tag {
  display: inline-block; font-family: var(--f-type); font-size: .74rem; letter-spacing: .06em;
  text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--paper);
}
.tag.excluded { color: var(--blood); border-color: color-mix(in srgb, var(--blood) 50%, transparent); }

.pill-group { display: flex; flex-wrap: wrap; gap: .5rem; }

.toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 150%);
  background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; border-radius: 8px;
  font-family: var(--f-type); z-index: 90; transition: transform .3s ease; max-width: calc(100% - 2rem);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 1.5rem; position: relative; }
.hero-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }
.hero h1 .red { color: var(--blood); font-style: italic; }
.hero .dateline { font-family: var(--f-type); color: var(--muted); letter-spacing: .06em; margin-bottom: .75rem; }
.summons {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow); transform: rotate(1.2deg); position: relative;
  background-image: repeating-linear-gradient(transparent 0 27px, color-mix(in srgb, var(--line) 55%, transparent) 27px 28px);
}
.summons h2 { font-size: 1.35rem; text-align: center; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.summons .sub { text-align: center; font-family: var(--f-type); font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.summons p { font-family: var(--f-type); font-size: .95rem; line-height: 28px; margin: 0 0 .5rem; }
.summons .stamp { position: absolute; right: 12px; bottom: 14px; }

.fact-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .75rem; margin: 1.5rem 0 0;
}
.fact {
  border-top: 3px solid var(--blood); background: var(--card); padding: .8rem .9rem; border-radius: 0 0 8px 8px;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact b { font-family: var(--f-display); font-size: 1.9rem; display: block; line-height: 1; color: var(--ink); }
.fact span { font-size: .88rem; color: var(--muted); }

.rhyme {
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 3.5vw, 1.7rem); line-height: 1.4;
  border-left: 4px solid var(--blood); padding-left: 1rem; margin: 0 0 1rem;
}
.strike { text-decoration: line-through; text-decoration-color: var(--blood); text-decoration-thickness: 3px; color: var(--muted); }
.fix { color: var(--blood); font-family: var(--f-type); font-style: normal; font-size: .85em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 3px double var(--line); margin-top: 3rem; padding: 1.5rem 0 2rem; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer nav a { margin-right: .9rem; color: var(--ink-soft); }

/* ---------- Trial ---------- */
.stage { min-height: 60vh; }
.mode-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.mode-card { cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.mode-card:hover { border-color: var(--brass); transform: translateY(-2px); }
.mode-card { transition: transform .2s, border-color .2s; }
.mode-card .meta { font-family: var(--f-type); font-size: .8rem; color: var(--muted); }

.progress {
  display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; font-family: var(--f-type); font-size: .85rem; color: var(--muted);
}
.progress-bar { flex: 1; height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress-bar i { display: block; height: 100%; background: var(--blood); width: 0; transition: width .4s ease; }

.exhibit { padding: 0; overflow: hidden; }
.exhibit-head { padding: 1.25rem 1.25rem .75rem; border-bottom: 1px dashed var(--line); display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.exhibit-icon { width: 64px; height: 64px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.exhibit-icon svg { width: 44px; height: 44px; }
.exhibit-num { font-family: var(--f-type); color: var(--blood); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.exhibit h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); margin: .1rem 0 .35rem; }
.exhibit .tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.exhibit-body { padding: 1rem 1.25rem; }
.exhibit-body .record { font-size: 1.02rem; }
.argue { display: grid; gap: .75rem; grid-template-columns: 1fr; margin-top: .75rem; }
@media (min-width: 720px) { .argue { grid-template-columns: 1fr 1fr; } }
.side { border-radius: 8px; padding: .9rem 1rem; border: 1px solid var(--line); background: var(--paper); }
.side h4 { font-family: var(--f-type); font-weight: 400; text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; margin-bottom: .4rem; }
.side.pros { border-left: 4px solid var(--guilty); }
.side.pros h4 { color: var(--guilty); }
.side.def { border-left: 4px solid var(--innocent); }
.side.def h4 { color: var(--innocent); }
.side p { margin: 0; font-size: .98rem; }
.quote { font-style: italic; border-left: 3px solid var(--brass); padding: .2rem 0 .2rem .8rem; margin: .8rem 0; color: var(--ink-soft); }
.quote cite { display: block; font-style: normal; font-family: var(--f-type); font-size: .8rem; color: var(--muted); margin-top: .2rem; }

.weigh { padding: 1rem 1.25rem 1.25rem; background: var(--paper-2); border-top: 1px dashed var(--line); }
.weigh legend { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; margin-bottom: .6rem; padding: 0; }
.weigh fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.scale > div { position: relative; min-width: 0; }
.scale input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.scale label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: .2rem; min-height: 64px; padding: .4rem .2rem; border: 2px solid var(--line); border-radius: 8px;
  background: var(--card); cursor: pointer; font-size: .78rem; line-height: 1.15; font-family: var(--f-type);
  transition: border-color .15s, background .15s, transform .12s;
}
.scale label b { font-size: 1.15rem; font-family: var(--f-display); }
.scale label:hover { border-color: var(--brass); }
.scale input:focus-visible + label { outline: 3px solid var(--brass); outline-offset: 2px; }
.scale input:checked + label { transform: translateY(-2px); }
.scale .w-2 input:checked + label, .scale .w-1 input:checked + label { border-color: var(--innocent); background: color-mix(in srgb, var(--innocent) 16%, var(--card)); }
.scale .w0 input:checked + label { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 16%, var(--card)); }
.scale .w1 input:checked + label, .scale .w2 input:checked + label { border-color: var(--guilty); background: color-mix(in srgb, var(--guilty) 16%, var(--card)); }
.scale-ends { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); font-family: var(--f-type); margin-top: .35rem; }
.nav-row { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }

.balance { margin: 1rem 0; }
.balance-track { position: relative; height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--innocent), var(--brass-soft) 50%, var(--guilty)); border: 1px solid var(--line); }
.balance-needle { position: absolute; top: -6px; width: 6px; height: 26px; background: var(--ink); border-radius: 3px; left: 50%; transform: translateX(-50%); transition: left .6s cubic-bezier(.3,1.4,.5,1); box-shadow: 0 0 0 2px var(--card); }
.balance-labels { display: flex; justify-content: space-between; font-family: var(--f-type); font-size: .78rem; color: var(--muted); margin-top: .35rem; }

.verdict-choice { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.verdict-choice button { min-height: 96px; font-size: 1.1rem; flex-direction: column; }
.verdict-choice button small { font-size: .78rem; opacity: .85; }
.btn.acquit { background: var(--innocent); border-color: var(--innocent); color: var(--blood-ink); }
.btn.selected { box-shadow: 0 0 0 4px var(--brass); }

.range-wrap { margin: 1.25rem 0; }
.range-wrap label { font-family: var(--f-display); font-weight: 700; display: block; margin-bottom: .4rem; }
input[type="range"] { width: 100%; accent-color: var(--blood); height: 32px; }

/* Deliberation */
.jury-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: .6rem; margin: 1rem 0; }
.juror {
  background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: .6rem .7rem; position: relative;
  transition: border-color .3s, transform .3s;
}
.juror .jn { font-family: var(--f-type); font-size: .72rem; color: var(--muted); }
.juror .jname { font-family: var(--f-display); font-weight: 700; line-height: 1.2; }
.juror .jjob { font-size: .8rem; color: var(--muted); line-height: 1.25; }
.juror .jvote { font-family: var(--f-type); font-size: .78rem; margin-top: .35rem; display: inline-block; padding: .05rem .45rem; border-radius: 4px; }
.juror.g { border-color: var(--guilty); }
.juror.g .jvote { background: var(--guilty); color: var(--blood-ink); }
.juror.n { border-color: var(--innocent); }
.juror.n .jvote { background: var(--innocent); color: var(--blood-ink); }
.juror.you { border-style: dashed; background: var(--paper-2); }
.juror.flipped { animation: flip .6s ease; }
@keyframes flip { 0% { transform: rotateY(0) } 50% { transform: rotateY(90deg) } 100% { transform: rotateY(0) } }
.juror .say { font-size: .82rem; font-style: italic; margin-top: .4rem; color: var(--ink-soft); line-height: 1.3; }
.tally { display: flex; gap: 1rem; font-family: var(--f-type); font-size: 1rem; flex-wrap: wrap; align-items: center; }
.tally b { font-family: var(--f-display); font-size: 1.6rem; }
.tally .g b { color: var(--guilty); }
.tally .n b { color: var(--innocent); }
.argue-list { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.argue-list button { text-align: left; justify-content: flex-start; min-height: 54px; font-family: var(--f-body); font-size: .95rem; }
.argue-list button .tag { margin-left: auto; }
.log { font-size: .95rem; border-left: 3px solid var(--line); padding-left: .8rem; margin: .8rem 0; }
.log p { margin: .25rem 0; }

/* Result card */
.result-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem; text-align: center; position: relative; overflow: hidden;
}
.result-card::after {
  content: ""; position: absolute; inset: 8px; border: 2px solid var(--line); border-radius: 10px; pointer-events: none;
}
.result-card .big-verdict { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1; margin: .4rem 0; }
.result-card .big-verdict.g { color: var(--guilty); }
.result-card .big-verdict.n { color: var(--innocent); }
.result-card .big-verdict.h { color: var(--brass); }
.result-card .profile-name { font-family: var(--f-display); font-style: italic; font-size: 1.5rem; margin: .8rem 0 .3rem; }
.result-card .profile-desc { max-width: 52ch; margin: 0 auto 1rem; color: var(--ink-soft); }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0; }
.result-stats div { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .25rem; }
.result-stats b { display: block; font-family: var(--f-display); font-size: 1.4rem; }
.result-stats span { font-size: .75rem; font-family: var(--f-type); color: var(--muted); }
.compare { text-align: left; margin-top: 1rem; }
.compare li { margin-bottom: .4rem; }
.gut-flag { background: color-mix(in srgb, var(--brass) 18%, var(--card)); border: 1px solid var(--brass); border-radius: 8px; padding: .7rem .9rem; font-size: .95rem; text-align: left; margin: 1rem 0; }

/* ---------- House ---------- */
.house-layout { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.house-layout > * { min-width: 0; }
@media (min-width: 900px) { .house-layout { grid-template-columns: 1.4fr 1fr; } }
.floor-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.floor-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; box-shadow: var(--shadow); }
.plan { width: 100%; height: auto; display: block; }
.plan .room { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; cursor: pointer; transition: fill .2s; }
.plan .room:hover, .plan .room:focus { fill: var(--brass-soft); outline: none; }
.plan .room.active { fill: color-mix(in srgb, var(--blood) 22%, var(--paper)); }
.plan .room.scene { fill: color-mix(in srgb, var(--blood) 12%, var(--paper)); }
.plan .rlabel { font-family: var(--f-type); font-size: 13px; fill: var(--ink-soft); pointer-events: none; }
.plan .door { stroke: var(--card); stroke-width: 6; }
.plan .locked { stroke: var(--blood); stroke-width: 4; stroke-dasharray: 3 3; }
.plan .stairs { stroke: var(--muted); stroke-width: 1.5; fill: none; pointer-events: none; }
.plan .token circle { stroke: var(--card); stroke-width: 2.5; }
.plan .token text { font-family: var(--f-type); font-size: 13px; fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.plan .token { transition: transform .6s ease; }
.plan .compass { font-family: var(--f-type); font-size: 11px; fill: var(--muted); }
.clock-panel { display: grid; gap: .75rem; }
.clock-row { display: flex; align-items: center; gap: 1rem; }
.clock-face { width: 88px; height: 88px; flex: none; }
.clock-face .face { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.clock-face .tick { stroke: var(--ink); stroke-width: 2; }
.clock-face .hand-h { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; transition: transform .5s ease; transform-origin: 50px 50px; }
.clock-face .hand-m { stroke: var(--blood); stroke-width: 2.5; stroke-linecap: round; transition: transform .5s ease; transform-origin: 50px 50px; }
.time-big { font-family: var(--f-display); font-size: 2rem; font-weight: 900; line-height: 1; }
.event-title { font-family: var(--f-display); font-size: 1.3rem; margin: .3rem 0; }
.cert { font-family: var(--f-type); font-size: .75rem; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .85rem; margin-top: .5rem; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.where-list { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .92rem; }
.where-list li { padding: .3rem 0; border-bottom: 1px dashed var(--line); display: flex; gap: .5rem; align-items: baseline; }
.where-list li i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; transform: translateY(-1px); }
.room-info { min-height: 5rem; }
.timeline-strip { display: flex; gap: .3rem; overflow-x: auto; padding: .4rem 0 .6rem; scrollbar-width: thin; }
.timeline-strip button { flex: none; font-family: var(--f-type); font-size: .78rem; padding: .35rem .55rem; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.timeline-strip button[aria-current="step"] { background: var(--blood); color: var(--blood-ink); border-color: var(--blood); }
.timeline-strip button.crit { border-color: var(--blood); }

/* ---------- Quiz ---------- */
.quiz-card { text-align: center; padding: 1.75rem 1.25rem; }
.quiz-card .statement { font-family: var(--f-display); font-size: clamp(1.3rem, 4.2vw, 1.9rem); line-height: 1.3; margin: .8rem 0 1.4rem; }
.tf { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tf .btn { min-height: 70px; font-size: 1.15rem; }
.explain { text-align: left; margin-top: 1.2rem; padding: 1rem; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); animation: rise .35s ease; }
.explain .verdict { font-family: var(--f-type); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.explain .verdict.right { color: var(--innocent); }
.explain .verdict.wrong { color: var(--guilty); }
.score-dots { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin-bottom: .5rem; }
.score-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line); }
.score-dots i.r { background: var(--innocent); border-color: var(--innocent); }
.score-dots i.w { background: var(--guilty); border-color: var(--guilty); }
.score-dots i.cur { box-shadow: 0 0 0 2px var(--brass); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.review-list { list-style: none; padding: 0; margin: 1rem 0; text-align: left; }
.review-list li { padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.review-list b.r { color: var(--innocent); }
.review-list b.w { color: var(--guilty); }

/* ---------- Suspects ---------- */
.suspect-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.suspect { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start; }
.suspect .rank { font-family: var(--f-display); font-weight: 900; font-size: 2rem; color: var(--blood); width: 2.2rem; text-align: center; line-height: 1; }
.suspect .portrait { width: 56px; height: 56px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.suspect h3 { margin: 0; }
.suspect .role { font-family: var(--f-type); font-size: .8rem; color: var(--muted); }
.suspect .moves { display: flex; flex-direction: column; gap: .3rem; }
.suspect details { margin-top: .5rem; }
.suspect summary { cursor: pointer; font-family: var(--f-type); font-size: .88rem; color: var(--blood); }
.suspect .fa { display: grid; gap: .5rem; grid-template-columns: 1fr; margin-top: .5rem; }
@media (min-width: 640px) { .suspect .fa { grid-template-columns: 1fr 1fr; } }
.suspect .fa ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; }
.suspect .fa h4 { font-family: var(--f-type); font-weight: 400; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .3rem; }
.plausibility { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-top: .45rem; max-width: 220px; }
.plausibility i { display: block; height: 100%; background: var(--brass); }
.suspect.moving { animation: rise .3s ease; }

/* ---------- Misc ---------- */
.two-col { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; } }
.source-list li { margin-bottom: .45rem; word-break: break-word; }
.note { font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .75rem; margin-top: 1rem; }
.hint-box { background: var(--paper-2); border: 1px dashed var(--line); border-radius: 8px; padding: .8rem 1rem; font-size: .95rem; }
.shared-banner { background: var(--ink); color: var(--paper); border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.shared-banner a { color: var(--brass-soft); }
[data-theme="dark"] .shared-banner a { color: var(--brass); }
.fade-in { animation: rise .45s ease both; }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .card { padding: 1rem; }
  .exhibit-head { grid-template-columns: 1fr; }
  .exhibit-icon { width: 52px; height: 52px; }
  .scale label { font-size: .68rem; min-height: 60px; }
  .result-stats b { font-size: 1.15rem; }
  .suspect { grid-template-columns: auto 1fr; }
  .suspect .moves { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .suspect .portrait { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
