:root {
  --felt:#53656c;
  --felt-dark:#42545b;
  --paper:#f2eee1;
  --card:#fbf8ef;
  --ink:#27292a;
  --muted:#5a5e60;
  --red:#b51f34;
  --line:#cac8bf;
  --focus:#11658a;
  --tint:#f9e4e3;
  --mono:ui-monospace,SFMono-Regular,Consolas,monospace;
  color-scheme:light
}
* {
  box-sizing:border-box
}
html,body {
  margin:0;
  height:100%;
  overscroll-behavior:none
}
body {
  display:grid;
  grid-template-rows:58px 44px minmax(180px,1fr) 126px 64px;
  background:var(--felt);
  color:var(--ink);
  font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  height:100dvh;
  overflow:hidden
}
button,input,select {
  font:inherit;
  color:inherit
}
button {
  cursor:pointer;
  touch-action:manipulation
}
button:disabled {
  cursor:default;
  opacity:.5
}
button,a,input,summary {
  -webkit-tap-highlight-color:transparent
}
a {
  color:inherit;
  text-underline-offset:3px
}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:3px
}
[hidden] {
  display:none!important
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}
.casebar {
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 max(12px,env(safe-area-inset-left));
  background:var(--paper);
  z-index:8;
  box-shadow:0 1px 3px #17252a22
}
.casebar h1 {
  font:500 20px/1.15 Georgia,"Times New Roman",serif;
  margin:0;
  flex:1;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis
}
.tool {
  height:44px;
  width:44px;
  flex:none;
  border:0;
  background:none;
  font-size:22px
}
.casebar #clock-brief {
  font:12px var(--mono);
  white-space:nowrap
}
.board-nav {
  display:flex;
  justify-content:center;
  gap:6px;
  z-index:6;
  background:var(--felt-dark);
  padding:0 12px
}
.board-nav button {
  min-height:44px;
  padding:0 18px;
  border:0;
  border-bottom:2px solid transparent;
  background:none;
  color:#f5f6ef;
  font-size:12px
}
.board-nav button.active {
  border-bottom-color:#f5f6ef
}
.board-nav button:focus-visible {
  outline-color:#fff;
  outline-offset:-4px
}
.board-viewport {
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#bac6c966 transparent;
  position:relative;
  overscroll-behavior:contain;
  touch-action:pan-x pan-y;
  isolation:isolate;
  background-color:var(--felt);
  background-image:radial-gradient(#ffffff0b .7px,transparent .9px),radial-gradient(#17293025 .7px,transparent 1px);
  background-position:0 0,2px 3px;
  background-size:5px 5px,7px 7px
}
.board-viewport:focus-visible {
  outline-color:#fff;
  outline-offset:-4px
}
.board-space {
  position:relative;
  margin:auto;
  overflow:clip
}
.board {
  position:absolute;
  width:1040px;
  height:640px;
  left:0;
  top:0;
  transform-origin:0 0
}
.board>section {
  position:absolute;
  min-width:0
}
.board-label {
  margin:0 0 18px;
  font:12px var(--mono);
  color:#f5f6ef;
  text-align:center;
  letter-spacing:.04em
}
.suspects {
  width:290px;
  left:374px;
  top:44px
}
.polaroids {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:55px 26px
}
.polaroid {
  position:relative;
  margin:0;
  background:var(--card);
  padding:9px 9px 13px;
  box-shadow:1px 3px 4px #17252a55,0 13px 13px -12px #111b21b0;
  transform:rotate(-3deg);
  isolation:isolate;
  transition:box-shadow 150ms
}
.polaroid:nth-child(2) {
  transform:rotate(4deg) translateY(16px)
}
.polaroid:nth-child(3) {
  transform:rotate(2deg)
}
.polaroid:nth-child(4) {
  transform:rotate(-4deg) translateY(15px)
}
.polaroid.focus {
  box-shadow:0 0 0 3px var(--red),1px 5px 5px #17252a66
}
.photo-pick {
  border:0;
  background:none;
  padding:0;
  width:100%;
  display:block;
  text-align:center;
  touch-action:none;
  min-height:140px
}
.photo {
  display:block;
  width:100%;
  height:108px;
  object-fit:cover;
  filter:saturate(.65) contrast(1.05)
}
.who {
  font:600 13px/1.2 Georgia,"Times New Roman",serif;
  display:block;
  margin-top:9px;
  overflow-wrap:anywhere
}
.photo-pick:focus-visible {
  outline-offset:5px
}
.physical-pin {
  position:absolute;
  width:13px;
  height:13px;
  left:calc(50% - 6.5px);
  top:-5px;
  z-index:7;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff 0,#c6cfd1 23%,#89989d 55%,#314047 90%);
  box-shadow:1px 3px 2px #142b3999;
  border:1px solid #e2e7e8
}
.polaroid .physical-pin {
  background:radial-gradient(circle at 35% 30%,#efada7 0,#bb3444 30%,#8a1629 75%);
  border-color:#d88e94
}
.back {
  font-size:11px;
  margin:8px 0 0;
  line-height:1.3
}
.plan {
  width:298px;
  left:25px;
  top:140px
}
.floor-name {
  color:#e5eaeb;
  font:10px var(--mono);
  margin:0 0 8px;
  letter-spacing:.12em
}
.floors>div+div {
  margin-top:32px
}
.rooms {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.room,.obj {
  position:relative;
  min-width:0;
  background:var(--card);
  box-shadow:1px 3px 4px #17252a55,0 14px 12px -12px #111b21b0;
  transform:rotate(2deg)
}
.room:nth-child(2) {
  transform:rotate(-2deg)
}
.room.crime {
  background:#fff0ea
}
.room.crime:after {
  content:"";
  position:absolute;
  inset:7px;
  border:1px solid #b51f3455;
  pointer-events:none
}
.paper-target {
  display:flex;
  position:relative;
  border:0;
  background:transparent;
  padding:14px 10px 10px;
  min-height:146px;
  width:100%;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:4px;
  touch-action:manipulation
}
.paper-target[aria-pressed=true] {
  box-shadow:inset 0 0 0 3px var(--red)
}
.room-sketch {
  height:42px;
  width:54px;
  fill:none;
  stroke:#587682;
  stroke-width:1.3;
  opacity:.75
}
.rname {
  font:600 13px/1.2 Georgia,"Times New Roman",serif
}
.crime-note {
  font:10px var(--mono);
  color:var(--red)
}
.room .body {
  height:25px;
  width:50px
}
.room .body path {
  stroke:var(--red)
}
.mark-badge {
  position:absolute;
  top:5px;
  right:7px;
  font:700 16px var(--mono);
  color:var(--red);
  min-width:16px
}
.connection-names {
  font:10px/1.25 var(--mono);
  color:var(--muted);
  min-height:12px;
  display:block
}
.objects {
  width:280px;
  left:731px;
  top:126px
}
.object-cards {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:47px 22px
}
.obj:nth-child(2) {
  transform:rotate(-4deg) translateY(12px)
}
.obj:nth-child(3) {
  transform:rotate(-3deg)
}
.obj:nth-child(4) {
  transform:rotate(3deg) translateY(14px)
}
.obj .paper-target {
  min-height:167px
}
.icon {
  width:57px;
  height:57px;
  display:block;
  filter:saturate(.65)
}
.oname {
  font:600 12px/1.2 Georgia,"Times New Roman",serif;
  margin:3px 0;
  min-height:29px;
  display:grid;
  place-items:center
}
.pins {
  display:none
}
.strings {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:5;
  overflow:visible
}
.strings path {
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke
}
.strings .yarn {
  stroke:#b31b32;
  stroke-width:2.7;
  filter:drop-shadow(1px 2px 1px #18282f88)
}
.strings .yarn-light {
  stroke:#f18689;
  stroke-width:.6;
  opacity:.75
}
.strings .dim {
  opacity:.16
}
.strings .truth {
  stroke:#f3e7d5;
  stroke-width:2;
  stroke-dasharray:5 6
}
.strings .loose {
  stroke:#e96476;
  stroke-width:2.5;
  stroke-dasharray:6 4
}
.paper-target.drag-over {
  outline:3px solid #fff;
  outline-offset:5px
}
.is-tying {
  cursor:grabbing
}
.is-tying .polaroid,.is-tying .room,.is-tying .obj {
  transition:none
}
.selection-bar {
  background:var(--paper);
  padding:10px max(16px,calc((100vw - 780px)/2));
  z-index:8;
  border-bottom:1px solid var(--line);
  overflow:hidden
}
.selection-heading {
  display:flex;
  align-items:center;
  gap:8px;
  height:28px
}
.selection-heading p {
  margin:0;
  flex:1;
  min-width:0;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
#undo-mark {
  border:0;
  padding:0 8px;
  min-height:44px;
  background:none;
  font-size:12px;
  flex:none
}
#mark-tools {
  display:flex;
  gap:8px;
  margin-top:4px
}
#mark-tools button {
  background:transparent;
  border:1px solid #a6a7a2;
  border-radius:4px;
  min-height:44px;
  flex:1;
  max-width:160px;
  font-size:12px;
  padding:0 9px
}
#mark-tools button[aria-pressed=true] {
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink)
}
#board-message {
  font-size:12px;
  line-height:1.3;
  margin:6px 0 0;
  max-height:32px;
  overflow:auto;
  color:var(--muted)
}
.playbar {
  background:var(--paper);
  display:flex;
  align-items:stretch;
  justify-content:center;
  padding:5px 10px max(5px,env(safe-area-inset-bottom));
  z-index:8;
  gap:8px
}
.playbar button {
  border:0;
  border-radius:3px;
  background:none;
  min-height:44px;
  padding:0 25px;
  font-size:14px
}
.playbar button#accuse {
  color:var(--red);
  font-weight:650
}
.playbar button span {
  font:11px var(--mono);
  margin-left:3px
}
.playbar button:hover {
  background:#deded45c
}
/* Information appears when requested;
the pinboard stays spatially stable. */
dialog {
  color:var(--ink);
  background:var(--paper);
  border:0;
  border-radius:6px;
  width:min(610px,calc(100vw - 28px));
  max-height:calc(100dvh - 40px);
  padding:28px;
  box-shadow:0 20px 80px #101c2480;
  overflow:auto;
  font-size:15px
}
dialog::backdrop {
  background:#12232aaa;
  backdrop-filter:blur(3px)
}
dialog h2 {
  font:500 27px/1.15 Georgia,"Times New Roman",serif;
  margin:0 35px 20px 0
}
dialog h3 {
  font-size:17px;
  margin:24px 0 8px
}
dialog p {
  line-height:1.55
}
dialog .lead {
  font-size:17px
}
.dialog-close {
  position:absolute;
  right:9px;
  top:9px;
  height:44px;
  width:44px;
  border:0;
  background:none;
  font-size:26px
}
.btn,dialog button:not(.dialog-close) {
  min-height:44px;
  border:1px solid var(--line);
  border-radius:3px;
  background:var(--card);
  padding:9px 14px
}
.btn.red,dialog button.red {
  background:var(--red);
  color:#fff;
  border-color:var(--red)
}
.row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center
}
.check {
  display:flex;
  align-items:center;
  gap:10px;
  margin:18px 0;
  min-height:44px;
  font-size:14px
}
.check input {
  width:20px;
  height:20px;
  flex:none;
  accent-color:var(--red)
}
.stamp-line {
  display:flex;
  gap:14px;
  font:12px var(--mono);
  color:var(--muted)
}
.tag {
  color:var(--red)
}
.desk-actions {
  margin-top:24px
}
.desk-actions>.row button {
  flex:1 1 40%
}
.desk-actions>a {
  display:inline-flex;
  align-items:center;
  min-height:44px
}
.hours {
  font:12px var(--mono);
  color:var(--muted);
  margin:0 0 10px
}
.hours.low {
  color:var(--red)
}
.walk-map {
  display:block;
  width:min(100%,300px);
  max-height:280px;
  margin:auto;
  overflow:visible
}
.path {
  stroke:#989e9e;
  stroke-width:.7
}
.spot circle:first-child {
  fill:var(--card);
  stroke:#777f83;
  stroke-width:.7
}
.spot.near {
  cursor:pointer
}
.spot.here circle:first-child {
  fill:var(--tint);
  stroke:var(--red);
  stroke-width:1.2
}
.spot-name {
  font:3.5px system-ui,sans-serif;
  text-anchor:middle;
  fill:var(--ink)
}
.spot.here .spot-name {
  font-weight:700
}
.spot:focus {
  outline:none
}
.spot:focus-visible circle:first-child {
  stroke:var(--focus);
  stroke-width:1.8
}
.walk-actions,.walk-exits {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0
}
.walk-actions .btn {
  flex:1
}
.walk-exits .btn {
  flex:1 1 40%;
  font-size:13px
}
.exit-cue {
  flex-basis:100%;
  font:11px var(--mono);
  color:var(--muted);
  margin-top:8px
}
.walk-empty,.map-note {
  font-size:12px;
  color:var(--muted)
}
#walk-here {
  margin:12px 0;
  font-size:14px
}
#latest-clue {
  margin:18px 0 4px;
  padding:14px;
  border-left:3px solid var(--red);
  background:var(--card);
  font:17px/1.4 Georgia,serif
}
#latest-clue cite {
  display:block;
  font:12px system-ui,sans-serif;
  margin-top:8px
}
.testimony {
  padding:0;
  list-style:none;
  margin:0
}
.testimony li {
  position:relative;
  padding:15px 15px 15px 26px;
  margin:0 0 16px;
  background:var(--card);
  border:1px solid var(--line);
  box-shadow:1px 2px 2px #101c2414
}
.testimony .n {
  position:absolute;
  left:8px;
  top:17px;
  font:10px var(--mono);
  color:var(--muted)
}
.testimony .q {
  font:17px/1.5 Georgia,serif;
  margin:0
}
.testimony .by {
  font-size:12px;
  color:var(--muted);
  margin:9px 0 0
}
#heard {
  display:block;
  font:12px var(--mono);
  color:var(--muted);
  margin-top:8px
}
.testimony .empty {
  font-size:14px;
  box-shadow:none;
  border:0;
  background:none;
  padding:0
}
.quick-steps {
  padding-left:23px
}
.quick-steps li {
  margin:12px 0
}
.help-cue {
  font:11px var(--mono);
  color:var(--muted);
  margin:0 0 12px
}
details {
  border-top:1px solid var(--line);
  margin-top:24px;
  padding-top:8px
}
summary {
  cursor:pointer;
  min-height:44px;
  display:list-item;
  padding:10px 0;
  font-size:14px
}
.example {
  border-left:2px solid var(--line);
  padding-left:15px;
  color:var(--muted)
}
fieldset {
  border:0;
  padding:0;
  margin:22px 0
}
legend {
  font-weight:600;
  margin-bottom:12px
}
.choices {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px
}
.choices label {
  display:flex;
  gap:8px;
  align-items:center;
  min-height:44px;
  padding:8px;
  border:1px solid var(--line);
  background:var(--card);
  font-size:14px
}
.choices input {
  accent-color:var(--red)
}
.v-stamp {
  font:500 30px Georgia,serif;
  color:var(--red);
  margin:0
}
.v-stamp.good {
  color:#32624e
}
.book-list {
  list-style:none;
  padding:0;
  display:grid;
  gap:10px
}
.book-case {
  display:grid;
  width:100%;
  grid-template-columns:25px 1fr;
  gap:3px 8px;
  text-align:left
}
.b-no {
  grid-row:span 2;
  font:12px var(--mono);
  color:var(--muted)
}
.b-title {
  font-weight:600
}
.b-meta {
  font-size:12px;
  color:var(--muted)
}
.book-list .solved .b-title:after {
  content:" ✓"
}
.arch-map {
  width:min(100%,330px);
  display:block;
  margin:auto
}
.archive-visits {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.archive-visits button {
  flex:1 1 40%;
  font-size:13px
}
.arch-clues {
  padding-left:22px
}
.arch-clues li {
  margin:12px 0;
  font-size:14px
}
.arch-guess .choices {
  display:flex;
  flex-wrap:wrap
}
.arch-guess button {
  flex:1 1 40%;
  font-size:13px
}
.arch-desc {
  font-size:14px
}
@media(min-width:1000px) {
  body {
    grid-template-rows:62px 44px minmax(200px,1fr) 125px 64px
  }
  .casebar {
    padding:0 26px
  }
  .casebar h1 {
    font-size:24px
  }
  .board-nav {
    gap:20px
  }
  .selection-bar {
    padding-left:calc((100vw - 780px)/2);
    padding-right:calc((100vw - 780px)/2)
  }
}
@media(max-width:420px) {
  .casebar h1 {
    font-size:17px
  }
  .casebar {
    padding:0 6px;
    gap:2px
  }
  .casebar #clock-brief {
    font-size:11px
  }
  .board-nav {
    gap:0;
    padding:0 5px
  }
  .board-nav button {
    padding:0 13px
  }
  .selection-bar {
    padding:8px 12px
  }
  .playbar button {
    padding:0 22px
  }
  dialog {
    padding:23px 20px
  }
  .choices {
    grid-template-columns:1fr
  }
  .walk-map {
    max-height:250px
  }
}
@media(prefers-color-scheme:dark) {
  :root {
    --felt:#34484f;
    --felt-dark:#293b42;
    --paper:#e8e6db;
    --card:#f0eee5;
    --ink:#252a2c;
    --muted:#505b5d;
    --line:#b8bcb6;
    --red:#a51931;
    --tint:#efd7d6;
    color-scheme:light
  }
  .casebar,.selection-bar,.playbar {
    background:#d4d9d5
  }
  .polaroid,.room,.obj {
    box-shadow:1px 3px 5px #08171dc0,0 15px 15px -10px #071820b0
  }
  .board-viewport {
    background-image:radial-gradient(#ffffff0b .7px,transparent .9px),radial-gradient(#08141b33 .7px,transparent 1px)
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
@media(forced-colors:active) {
  .board-viewport {
    background:Canvas
  }
  .board-label,.floor-name {
    color:CanvasText
  }
  .board-nav button {
    color:ButtonText
  }
  .room,.obj,.polaroid {
    border:1px solid CanvasText
  }
  .strings .yarn {
    stroke:LinkText;
    forced-color-adjust:none
  }
  .strings .yarn-light {
    display:none
  }
  .strings .truth {
    stroke:CanvasText;
    forced-color-adjust:none
  }
  .physical-pin {
    background:CanvasText;
    forced-color-adjust:none
  }
  .paper-target[aria-pressed=true],.polaroid.focus {
    outline:3px solid Highlight
  }
  .board-nav {
    background:Canvas
  }
}
@media(forced-colors:active) {
  :root {
    --paper:Canvas;
    --card:Canvas;
    --ink:CanvasText;
    --muted:CanvasText;
    --red:LinkText;
    --line:CanvasText;
    --tint:Canvas;
    --focus:Highlight
  }
  .casebar,.selection-bar,.playbar {
    background:Canvas;
    color:CanvasText
  }
  .selection-heading p,#board-message,.casebar h1,#clock-brief {
    color:CanvasText
  }
  .playbar button#accuse {
    color:ButtonText
  }
  #mark-tools button[aria-pressed=true] {
    background:Highlight;
    color:HighlightText
  }
}
body {
  grid-template-columns:minmax(0,1fr)
}
.casebar,.board-nav,.board-viewport,.selection-bar,.playbar {
  min-width:0
}
.playbar button {
  min-width:0;
  flex:0 1 150px;
  padding-left:12px;
  padding-right:12px
}
.paper-target:disabled {
  opacity:1
}

/* A pale thread edge stays visible against felt; red stays distinct on paper. */
.strings .yarn-rim {
  stroke: var(--paper);
  stroke-width: 4;
}
@media(forced-colors:active) {
  .strings .yarn-rim { stroke: Canvas; forced-color-adjust: none; }
}

.photo-pick:disabled { opacity: 1; }

/* Miniatures are part of the board surface, never gesture-start targets. */
.board-space.overview .photo-pick,
.board-space.overview .paper-target {
  pointer-events: none;
}


/* Board-surface composition: every persistent control is a pinned object. */
:root {
  --felt:#70482f;
  --felt-dark:#593521;
  --paper:#eee2bf;
  --card:#faf3df;
  --ink:#2f261e;
  --muted:#6a5b4d;
  --line:#c9b98f;
  --red:#a4162d;
  --focus:#f7d46a;
  color-scheme:light
}
html,body { width:100%; height:100%; }
body {
  display:block;
  height:100dvh;
  overflow:hidden;
  background:var(--felt);
}
.board-viewport {
  position:fixed;
  inset:0;
  width:100%;
  height:100dvh;
  overflow:auto;
  background-color:var(--felt);
  background-image:
    radial-gradient(circle at 20% 12%,#d8aa7655 0 1px,transparent 1.5px),
    radial-gradient(circle at 78% 65%,#2f1b1038 0 1px,transparent 1.6px),
    linear-gradient(115deg,#ffffff08,#00000016 55%,#ffffff06),
    repeating-linear-gradient(7deg,transparent 0 8px,#2c180d0c 9px 10px);
  background-size:13px 13px,17px 17px,100% 100%,100% 100%;
  box-shadow:inset 0 0 95px #24110988;
}
.board {
  width:1160px;
  height:820px;
}
.board::before {
  content:"";
  position:absolute;
  inset:12px;
  border:1px solid #d0a17124;
  box-shadow:inset 0 0 44px #29140b38;
  pointer-events:none;
}
.casebar {
  position:absolute;
  left:400px;
  top:22px;
  width:360px;
  height:76px;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto 58px;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:2px 5px 7px #26140b66,0 17px 18px -18px #1d0d07;
  transform:rotate(-.55deg);
  z-index:8;
}
.casebar::before,.selection-bar::before {
  content:"";
  position:absolute;
  left:50%;
  top:-7px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#f7c1b5 0,#b42d3d 31%,#701321 76%);
  border:1px solid #e78e93;
  box-shadow:1px 3px 2px #35141988;
  pointer-events:none;
}
.casebar h1 {
  font:600 18px/1.05 Georgia,"Times New Roman",serif;
  letter-spacing:.01em;
  text-align:center;
  white-space:normal;
  text-overflow:clip;
  max-height:40px;
}
.casebar #clock-brief {
  font:11px var(--mono);
  color:var(--muted);
}
.tool {
  width:54px;
  height:44px;
  border:0;
  border-radius:0;
  background:#d9c58f80;
  color:var(--ink);
  font:700 10px/1 var(--mono);
  letter-spacing:.08em;
  box-shadow:inset 0 -1px #806f4d55;
}
.tool:hover,.tool:active { background:#cfb877; }
.board-nav {
  position:absolute;
  left:400px;
  top:108px;
  width:360px;
  height:46px;
  display:flex;
  justify-content:center;
  gap:7px;
  padding:0;
  background:transparent;
  transform:rotate(.35deg);
  z-index:8;
}
.board-nav button {
  min-width:0;
  min-height:44px;
  flex:1;
  padding:0 9px;
  border:0;
  border-bottom:0;
  background:#dfd1a9;
  color:var(--ink);
  font:700 10px/1 var(--mono);
  letter-spacing:.05em;
  box-shadow:1px 3px 4px #26150c66;
  clip-path:polygon(3% 6%,97% 0,100% 92%,5% 100%,0 22%);
}
.board-nav button:nth-child(even) { transform:rotate(-1.2deg); }
.board-nav button.active { background:#f1e4bf; box-shadow:inset 0 -4px var(--red),1px 3px 4px #26150c66; }
.board-nav button:hover,.board-nav button:active { background:#f4e8c6; }
.board-label {
  width:max-content;
  max-width:100%;
  margin:0 auto 18px;
  padding:5px 12px 4px;
  background:#decda3;
  color:#34281e;
  box-shadow:1px 3px 3px #2b160d55;
  transform:rotate(-1deg);
}
.floor-name { color:#f4e5cd; text-shadow:0 1px 1px #28140c; }
.suspects { width:320px; left:420px; top:178px; }
.plan { width:315px; left:42px; top:190px; }
.objects { width:315px; left:803px; top:185px; }
.polaroid,.room,.obj {
  box-shadow:2px 5px 7px #25130b77,0 18px 17px -15px #1c0c06cc;
}
.polaroid,.room,.obj,.casebar,.selection-bar,.board-nav button,.playbar button {
  transition:transform 140ms ease,box-shadow 140ms ease,filter 140ms ease;
}
.photo-pick:hover,.paper-target:hover { filter:brightness(1.035); }
.polaroid:has(.photo-pick:active),.room:has(.paper-target:active),.obj:has(.paper-target:active) { box-shadow:1px 2px 3px #25130b66; }
.selection-bar {
  position:absolute;
  left:385px;
  top:605px;
  width:390px;
  min-height:119px;
  padding:14px 18px 12px;
  overflow:visible;
  border:0;
  background:var(--paper);
  color:var(--ink);
  box-shadow:2px 6px 8px #26140b66,0 20px 18px -18px #1d0d07;
  transform:rotate(-.7deg);
  z-index:8;
}
.selection-heading { height:30px; }
.selection-heading p { font-family:Georgia,"Times New Roman",serif; font-size:14px; }
#undo-mark { font:700 10px var(--mono); }
#mark-tools { gap:6px; margin-top:5px; }
#mark-tools button {
  min-height:44px;
  border:0;
  border-bottom:2px solid #8e7d5d;
  border-radius:0;
  background:#dfd1aa;
  font:700 10px var(--mono);
  letter-spacing:.03em;
}
#mark-tools button[aria-pressed=true] { background:var(--red); color:#fff7e8; border-color:#68101e; }
#board-message { color:var(--muted); font:11px/1.35 var(--mono); }
.playbar {
  position:absolute;
  left:400px;
  top:752px;
  width:360px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0;
  background:transparent;
  z-index:8;
}
.playbar button {
  min-width:0;
  min-height:46px;
  flex:1 1 0;
  padding:0 10px;
  border:0;
  border-radius:0;
  background:#eadcb8;
  color:var(--ink);
  font:700 11px var(--mono);
  box-shadow:1px 4px 5px #26140b66;
  transform:rotate(.8deg);
  clip-path:polygon(2% 0,96% 4%,100% 96%,5% 100%,0 10%);
}
.playbar button:nth-child(2) { transform:rotate(-1.1deg); }
.playbar button#accuse { background:var(--red); color:#fff8e8; transform:rotate(.3deg); }
.playbar button:hover,.playbar button:active { filter:brightness(1.08); transform:translateY(1px) rotate(0deg); }
.playbar button span { font-size:10px; }
.strings .yarn { filter:drop-shadow(1px 2px 1px #2a0d0a99); }
dialog {
  border:1px solid #c2aa73;
  border-radius:1px;
  background:#f2e7c8;
  box-shadow:7px 18px 45px #1c0c08aa;
  transform:rotate(-.25deg);
}
dialog::backdrop { background:#2b160caf; backdrop-filter:blur(2px) saturate(.75); }
.btn,dialog button:not(.dialog-close) { border-radius:0; background:#f8efda; border-color:#bfae86; }
@media(max-width:1160px),(max-height:820px) {
  .board-space:not(.overview) { margin:0; }
}
@media(max-width:420px) {
  dialog { padding:22px 18px; }
}
@media(prefers-color-scheme:dark) {
  :root {
    --felt:#5b3927;
    --felt-dark:#472a1c;
    --paper:#e2d4ae;
    --card:#f1e7ce;
    --ink:#2c241d;
    --muted:#655749;
    --line:#bbaa7f;
    --red:#95142a;
  }
  .casebar,.selection-bar,.playbar { background:transparent; }
  .casebar,.selection-bar { background:var(--paper); }
}
@media(prefers-reduced-motion:reduce) {
  .polaroid,.room,.obj,.casebar,.selection-bar,.board-nav button,.playbar button { transition:none; }
}
@media(forced-colors:active) {
  .casebar,.selection-bar { background:Canvas!important; color:CanvasText!important; border:1px solid CanvasText; }
  .tool,.board-nav button,.playbar button { forced-color-adjust:auto; background:ButtonFace!important; color:ButtonText!important; border:1px solid ButtonText; clip-path:none; }
  #clock-brief,#board-message,.selection-heading p { color:CanvasText!important; }
  .playbar button#accuse { background:ButtonFace!important; color:ButtonText!important; }
}
