body {
  --editorial-serif: Georgia, "Times New Roman", serif;
  --cover-paper: #faf1e2;
  --cover-gold: #e8bc7b;
  --cover-line: #584137;
  background: #151312;
}
.site-header { border-color: #4b3930; background: #171413; }
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  color: var(--cover-paper);
  font: 700 clamp(1rem,2vw,1.4rem)/1 var(--editorial-serif);
  letter-spacing: .12em;
  white-space: nowrap;
}
.site-header .brand::before {
  content: "";
  width: 1.06em;
  height: 1.16em;
  background: url("/img/crimeset-door-icon.png") center / contain no-repeat;
}
.hero-stage, .archive, .play-guide { position: relative; isolation: isolate; overflow: hidden; }
.hero-stage { background: #171413; border-bottom: 1px solid var(--cover-line); }
.hero-stage::before, .archive::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-stage::before {
  background: linear-gradient(90deg,#151211fb 0%,#151211e8 30%,#1512117d 68%,#15121158 100%),
    linear-gradient(0deg,#151211 0%,transparent 50%);
}
.hero-backdrop, .archive-backdrop, .guide-backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-backdrop { object-position: 61% 53%; }
.hero {
  display: grid;
  grid-template-columns: minmax(0,1.14fr) minmax(0,1fr);
  width: min(1280px,calc(100% - 76px));
  align-items: center;
  gap: clamp(24px,4vw,61px);
  padding-block: clamp(54px,8vw,119px);
}
.hero-copy { position: relative; isolation: isolate; min-width: 0; }
.hero-kind {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #f1d3a9;
  font-size: .93rem;
  font-weight: 680;
  word-break: keep-all;
}
.hero-kind::before { content: ""; flex: none; width: 26px; height: 2px; background: #d46957; }
.hero h1 {
  margin: 18px 0 25px;
  color: var(--cover-paper);
  font: 400 clamp(2.3rem,6.95vw,7.1rem)/.96 var(--editorial-serif);
  letter-spacing: .028em;
  white-space: nowrap;
}
.hero-line {
  margin: 0;
  color: var(--cover-paper);
  font-size: clamp(1.55rem,3.1vw,2.88rem);
  font-weight: 780;
  line-height: 1.24;
  text-shadow: 0 2px 10px #14100c, 0 1px 3px #14100c;
  letter-spacing: -.045em;
  word-break: keep-all;
}
.hero-line em { position: relative; z-index: 0; display: inline-block; color: var(--cover-gold); font-style: normal; }
.hero-clue::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1.55em;
  aspect-ratio: 1;
  inset: -.44em auto auto -.18em;
  background: url("/img/crimeset-brass-lens.webp") center / contain no-repeat;
  transform: rotate(-17deg);
  opacity: .75;
  pointer-events: none;
}
.hero-pick::after {
  content: "";
  position: absolute;
  inset: auto -.06em -.07em;
  height: .12em;
  background: #c96854;
  clip-path: polygon(0 51%,17% 27%,67% 17%,96% 0,100% 57%,47% 80%,2% 100%);
  pointer-events: none;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 29px; }
.hero-actions .primary { gap: 12px; background: #a23d31; color: #fff8ec; }
.hero-actions .primary:hover { background: #b44b3d; }
.hero-actions .text-link { color: #f1dbc2; }
.hero-brief {
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(#dcc39a,#dcc39a) center / 89% 79% no-repeat;
  color: #2c2118;
  text-align: start;
}
.hero-ledger {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  mask-image: linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent),linear-gradient(0deg,transparent,#000 8%,#000 93%,transparent);
  mask-composite: intersect;
  border-radius: inherit;
  pointer-events: none;
}
.hero-pages {
  position: absolute;
  inset: 17% 11% 16% 11%;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  gap: 12%;
}
.hero-brief::after {
  content: "";
  position: absolute;
  inset: 10% 7% 10%;
  background: radial-gradient(circle at var(--light-x,50%) var(--light-y,50%),#fff1b42f, transparent 45%);
  opacity: 0;
  pointer-events: none;
}
.hero-case-photo {
  display: block;
  overflow: hidden;
  padding: 4px;
  aspect-ratio: 1.27;
  background: #f5e7c8;
  box-shadow: 1px 3px 8px #4f321e6b;
  transform: rotate(-3deg);
}
.hero-case-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-case-copy { display: grid; min-width: 0; justify-items: start; gap: clamp(3px,1cqw,8px); line-height: 1.32; }
.hero-case-status { color: #533d23; font-size: clamp(.71rem,2.5cqw,.87rem); font-weight: 690; }
.hero-case-copy strong { font-size: clamp(.98rem,4.05cqw,1.52rem); font-weight: 820; letter-spacing: -.04em; line-height: 1.18; word-break: keep-all; }
.hero-facts { color: #503821; font-size: clamp(.72rem,2.85cqw,.94rem); }
.hero-case-open { margin-top: 3px; color: #742e25; font-size: clamp(.79rem,2.85cqw,.97rem); font-weight: 800; text-underline-offset: .2em; }
.hero-case-open span { margin-inline-start: .15em; }
.hero-brief:is(:hover,:focus-visible) .hero-case-open { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  .hero-brief:hover::after { opacity: 1; }
}

.archive { background: #191615; }
.archive::before { background: linear-gradient(180deg,#231c1666 0,#1b1815 690px); }
.archive-backdrop { height: min(780px,100%); object-position: center 36%; }
.catalog { padding-block: clamp(45px,8vw,105px) clamp(35px,7vw,96px); }
.catalog-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: clamp(12px,2.6vw,30px); }
.catalog .section-head { margin: 0; }
.track-controls { display: flex; gap: 8px; }
.track-controls button { width: 45px; min-height: 44px; border: 1px solid #8d7258; border-radius: 3px; color: #fff0db; background: #2e241d; font-size: 1.3rem; line-height: 1; }
.track-controls button:hover:not([aria-disabled="true"]) { background: #4e3828; }
.track-controls button[aria-disabled="true"] { opacity: .48; cursor: default; }
.catalog .section-head a { text-decoration: underline; text-underline-offset: .22em; }
.catalog .section-head h2, .before-play h2 { letter-spacing: -.045em; }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 15px; }
.section-head h2, .dialog-copy h2 { margin: 0; font-size: clamp(1.6rem,3.2vw,2.4rem); line-height: 1.15; letter-spacing: -.055em; word-break: keep-all; }
.section-head p { margin: 0; color: #fff1dc; font-size: .96rem; }
.case-list {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px,30vw,340px);
  gap: clamp(15px,2.3vw,28px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 5px;
  scrollbar-color: #ae8c68 #30261e;
  padding: 6px 5px 14px;
}
.case-list:focus-visible { outline: 2px solid #edc493; outline-offset: 3px; }
.case { min-width: 0; scroll-snap-align: start; border-bottom: 1px solid #ae94744f; padding-bottom: 14px; }
.case-action {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  text-align: start;
  color: #f8eddf;
  background: transparent;
}
.case-stock { display: grid; grid-template-columns: minmax(0,1fr); height: 100%; align-content: start; gap: 13px; }
.dialog-record { color: var(--file-accent); font-size: .88rem; line-height: 1.35; font-weight: 800; word-break: keep-all; }
.case-frame, .dialog-print { min-width: 0; background: var(--photo-mat,#13120f); }
.case-frame { --frame-rounding: 2% 10% 2% 2% / 3% 10% 3% 3%; position: relative; display: block; overflow: hidden; border-radius: var(--frame-rounding); background: transparent; }
.case-thumb, .dialog-image { width: 100%; height: auto; object-fit: cover; }
.case-thumb {
  aspect-ratio: 16 / 10;
  filter: saturate(.85);
}

.dialog-image { aspect-ratio: 16 / 9; border-radius: 3px 13px 3px 3px; }
.case-label { position: relative; display: grid; justify-items: start; gap: 6px; min-width: 0; }
.case-number { color: #f2cb9a; font-size: .94rem; font-weight: 750; }
.case-title { display: block; }
.case-title strong { display: block; font-size: clamp(1.35rem,2.4vw,2.25rem); line-height: 1.13; letter-spacing: -.055em; word-break: keep-all; overflow-wrap: anywhere; }
.case-description { color: #e7d3bc; font-size: 1rem; font-weight: 620; }
.case-caption { margin-top: 6px; color: #f4cc9c; border-bottom: 1px solid #b88c60; font-weight: 700; }
.case-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--light-x,50%) var(--light-y,42%),#ffda9b38,transparent 70%);
  opacity: 0;
  pointer-events: none;
}
.case-action:focus-visible .case-frame::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .case-action:hover .case-frame::after { opacity: 1; }
  .case-action:hover .case-thumb { filter: brightness(1.1) saturate(1.04); }
}
.case-action:focus-visible .case-thumb { filter: brightness(1.13) saturate(1.03); }
.case-action:is(:hover,:focus-visible) .case-caption { color: #fff0d8; border-color: currentColor; }

.site-footer { background: #171413; border-top: 1px solid #61443a; color: #e5d2bd; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 16px; min-height: 69px; padding-block: 10px; font-size: .94rem; }
.footer-inner small { font-size: inherit; }
.footer-inner small span { font-family: var(--editorial-serif); letter-spacing: .13em; }
.footer-inner a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }

#case-dialog {
  color-scheme: only light;
  --file-ink: #291e14;
  --file-secondary: #573720;
  --file-accent: #743c24;
  --file-edge: #a68a61;
  --file-stock: linear-gradient(#fff4dfec,#fff4dfe6),url("/img/case-files/lodge-stock.webp") center / cover var(--paper);
  --photo-mat: #f7edd5;
  --file-radius: 5px 15px 15px 5px;
  max-height: calc(100dvh - 32px);
  width: min(900px,calc(100% - 26px));
  padding: 0;
  border: 0;
  border-radius: var(--file-radius);
  color: var(--file-ink);
  background: transparent;
  box-shadow: 0 19px 58px #000b;
  overscroll-behavior: contain;
}
#case-dialog::backdrop { background: #0d100ee0; }
.dialog-stock {
  position: relative;
  padding: clamp(16px,3.1vw,33px);
  border: 1px solid var(--file-edge);
  border-radius: var(--file-radius);
  background: var(--file-stock);
}
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.dialog-header form { flex-shrink: 0; }
.close { min-height: 44px; padding: 4px 9px; border: 1px solid var(--file-edge); border-radius: 3px; color: var(--file-ink); background: var(--photo-mat); font-weight: 690; }
.close span { margin-inline-start: 4px; font-size: 1.15em; }
.close:hover { text-decoration: underline; text-underline-offset: .18em; }
#case-dialog :focus-visible { outline-color: var(--file-accent); }
.dialog-spread { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(13px,3.5vw,32px); align-items: center; }
.dialog-copy { min-width: 0; }
.dialog-print {
  position: relative;
  padding: 8px 8px 12px;
  transform: rotate(-1.3deg);
  box-shadow: 1px 3px 8px #120d0870;
}
.dialog-clip { position: absolute; z-index: 1; top: -14px; right: 14px; width: 32px; height: auto; pointer-events: none; }
.dialog-info { margin: 10px 0 13px; color: var(--file-secondary); font-size: .95rem; font-weight: 680; }
.dialog-info span + span::before { content: "·"; display: inline-block; margin-inline: .45em; }
.dialog-brief { margin: 0; word-break: keep-all; line-height: 1.65; }
.dialog-play { margin-top: 17px; background: #503622; color: #fff5e1; }
.dialog-play:hover:not(:disabled) { background: #68462d; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  [data-depth] :is(.hero-backdrop,.archive-backdrop,.guide-backdrop) {
    scale: 1.09;
    translate: 0 var(--depth-offset,0px);
  }
  [data-enter].has-entered { animation: scroll-entry .52s cubic-bezier(.2,.65,.28,1) both; }
  :is(.case,.guide-list li).has-entered {
    --entry-delay: 0ms;
    animation: none;
  }
  :is(.case,.guide-list li):nth-child(2).has-entered { --entry-delay: 70ms; }
  :is(.case,.guide-list li):nth-child(3).has-entered { --entry-delay: 140ms; }
  :is(.case,.guide-list li):nth-child(4).has-entered { --entry-delay: 210ms; }
  .case.has-entered .case-frame, .guide-list li.has-entered .guide-photo {
    animation: photo-arrival .52s cubic-bezier(.2,.65,.28,1) var(--entry-delay) both;
  }
  .case.has-entered .case-label, .guide-list li.has-entered .guide-copy {
    animation: scroll-entry .4s ease-out calc(var(--entry-delay) + 100ms) both;
  }
  .case-thumb, .hero-backdrop {
    transition: transform .38s cubic-bezier(.2,.65,.28,1), filter .3s ease;
  }
  .case-frame::after { transition: opacity .24s ease; }
  .case-frame { transition: translate .33s ease, box-shadow .33s ease; }
  .case-action:focus-visible .case-frame { translate: 0 -3px; }
  .hero-copy { animation: hero-copy-arrival .58s ease-out both; }
  .hero-brief { animation: hero-copy-arrival .75s ease-out both; }
  .hero-brief::after { transition: opacity .3s ease; }
  .hero-case-photo { transition: transform .35s ease; }
  .hero-brief:is(:hover,:focus-visible) .hero-case-photo { transform: rotate(-1deg) translateY(-2px); }
  .cordon-cross.has-entered span:first-child { animation: tape-arrival-left .74s cubic-bezier(.21,.72,.3,1) both; }
  .cordon-cross.has-entered span:last-child { animation: tape-arrival-right .81s cubic-bezier(.21,.72,.3,1) .1s both; }
  .case-action:focus-visible .case-thumb { transform: scale(1.035); }
  @media (hover: hover) and (pointer: fine) {
    .case-action:hover .case-frame { translate: 0 -3px; box-shadow: 0 13px 22px #08060488; }
    .case-action:hover .case-thumb { transform: scale(1.035); }
  }
  dialog[open] { animation: file-entry .22s ease-out; }
  #case-dialog[open][data-open="ledger"] .dialog-stock { animation: ledger-unfold .43s cubic-bezier(.2,.65,.25,1) both; transform-origin: left center; }
  #case-dialog[open] .dialog-print { animation: file-print-arrival .46s cubic-bezier(.2,.65,.32,1) both; }
  #case-dialog[open] .dialog-stamp { animation: ink-press .43s cubic-bezier(.2,.65,.32,1) .22s both; }
}
@keyframes hero-copy-arrival {
  from { translate: 0 13px; }
  to { translate: 0 0; }
}
@keyframes ledger-unfold {
  from { transform: perspective(900px) rotateY(-12deg) translateX(-7px); }
  to { transform: perspective(900px) rotateY(0) translateX(0); }
}
@keyframes file-print-arrival {
  from { opacity: .45; transform: translate(-10px,10px) rotate(-4deg); }
  to { opacity: 1; transform: rotate(-1.3deg); }
}
@keyframes tape-arrival-left { from { clip-path: inset(0 96% 0 0); } to { clip-path: inset(0); } }
@keyframes tape-arrival-right { from { clip-path: inset(0 0 0 96%); } to { clip-path: inset(0); } }
@keyframes ink-press {
  0% { opacity: 0; transform: translate(6px,-18px) rotate(-15deg) scale(1.35); }
  48% { opacity: 1; transform: translate(0,1px) rotate(-8deg) scale(.94); }
  66% { transform: translate(0,-1px) rotate(-8deg) scale(1.035); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}
@keyframes file-entry {
  from { transform: translateY(7px); }
  to { transform: translateY(0); }
}
@keyframes photo-arrival {
  from { clip-path: inset(7% 0 0 round var(--frame-rounding,0px)); transform: translateY(12px); }
  to { clip-path: inset(0 round var(--frame-rounding,0px)); transform: translateY(0); }
}
@keyframes scroll-entry {
  from { opacity: .38; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 780px) {
  .hero { width: calc(100% - 36px); grid-template-columns: minmax(0,1fr); gap: 24px; padding-block: 41px 31px; }
  .hero h1 { font-size: clamp(2.3rem,11.1vw,5.55rem); margin-block: 17px 21px; }
  .hero-actions { margin-top: 20px; }
  .hero-brief { max-width: 540px; }
  .hero-stage::before { background: linear-gradient(180deg,#171413c9,#171413e8 62%,#171413); }
  .hero-backdrop { object-position: 74% 50%; }
  .dialog-spread { gap: 11px; }
}
@media (max-width: 440px) {
  .hero-pages { inset: 15% 10% 14%; gap: 10%; }
}
@media (max-width: 690px) {
  .catalog { padding-block: 30px 36px; }
  .section-head { margin-bottom: 10px; }
  .dialog-spread { grid-template-columns: minmax(0,1fr); }
  .dialog-print { margin-inline: 3px; }
}
.play-guide {
  --guide-ink: #faf1e2;
  padding-block: clamp(38px,6.3vw,88px);
  color: var(--guide-ink);
  background: #15120f;
}
.play-guide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,#0e0d0b75,#16120fe8 96%),linear-gradient(90deg,#0e0d0b2b,#100d0a12);
  pointer-events: none;
}
.guide-backdrop { object-position: center 56%; }
.play-guide > .wrap { width: min(1290px,calc(100% - 76px)); }
.guide-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; }
.play-guide h2 {
  margin: 0;
  color: var(--guide-ink);
  font-size: clamp(1.65rem,4vw,3.55rem);
  line-height: 1.08;
  letter-spacing: -.05em;
  word-break: keep-all;
}
.guide-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,minmax(min(245px,79vw),1fr));
  gap: clamp(12px,1.8vw,22px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  margin: clamp(20px,3.5vw,39px) -4px 0;
  padding: 4px 4px 12px;
  list-style: none;
  scrollbar-color: #a78352 #231c17;
}
.guide-list li {
  min-width: 0;
  border: 1px solid #5d4834;
  border-radius: 5px 18px 5px 5px;
  background: linear-gradient(151deg,#25201d,#1d1917 82%);
  scroll-snap-align: start;
}
.guide-photo {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 4px 17px 0 0;
  color: #fff5e7;
  background: #171512;
  text-align: start;
}
.guide-stage { display: grid; place-items: center; aspect-ratio: 16 / 10; background: #121211; }
.guide-frame { position: relative; display: block; width: var(--fit,100%); }
.guide-frame--brief { --fit: 98%; }
.guide-frame--role { --fit: 91%; }
.guide-frame img { display: block; width: 100%; height: auto; }
.guide-mark {
  position: absolute;
  inset: var(--y) auto auto var(--x);
  width: var(--w);
  height: var(--h);
  translate: -50% -50%;
  border: 2px solid #ffdb78;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #21150c, 0 0 12px #17110b70;
  pointer-events: none;
}
.guide-frame--role .guide-mark, .guide-frame--search .guide-mark:last-child { border-radius: 50%; }
@media (hover: hover) and (pointer: fine) {
  :is(.case-frame,.guide-stage) { cursor: url("/img/crimeset-lens-v2.png") 10 10, zoom-in; }
}
.guide-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  color: #ffe6bc;
  background: #29221a;
  font-size: clamp(.85rem,1.4vw,.98rem);
  font-weight: 730;
  word-break: keep-all;
}
.guide-zoom { font-size: 1.15em; }
.play-guide :focus-visible { outline: 2px solid #ffd38d; outline-offset: 2px; }
.guide-photo:focus-visible { outline-offset: -3px; }
.guide-photo:is(:hover,:focus-visible) .guide-action { background: #3d2c1d; color: #fff3db; }
.guide-copy {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: baseline;
  column-gap: 10px;
  padding: 13px 13px 16px;
}
.guide-step { color: #f4c582; font: 600 1.48rem/1 Georgia,serif; font-variant-numeric: lining-nums tabular-nums; }
.guide-copy h3 { margin: 0; color: var(--guide-ink); font-size: clamp(1.25rem,1.8vw,1.62rem); line-height: 1.2; letter-spacing: -.045em; word-break: keep-all; }
.guide-copy p { grid-column: 1 / -1; margin: 7px 0 0; color: #e7d7c4; font-size: .94rem; line-height: 1.55; word-break: keep-all; }
.guide-features {
  position: relative;
  margin-top: clamp(24px,4.4vw,52px);
  padding: clamp(14px,3vw,30px) clamp(16px,3.8vw,38px);
  border-top: 1px solid #aa764e;
  background: linear-gradient(108deg,#321e15f2,#191512f5);
}
.guide-features::before { content: ""; position: absolute; top: -2px; left: 0; width: 46px; height: 3px; background: #e48368; }
.guide-features h3 { margin: 0 0 16px; color: #fff0da; font-size: clamp(1.12rem,2.4vw,1.6rem); word-break: keep-all; }
.guide-features dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 28px; margin: 0; }
.guide-features dt { color: #f9cc8a; font-weight: 780; }
.guide-features dd { margin: 5px 0 0; color: #f3e2cd; font-size: .92rem; line-height: 1.55; word-break: keep-all; }
@media (max-width: 690px) {
  .guide-features dl { grid-template-columns: 1fr; }
}
#guide-dialog {
  width: min(940px,calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(10px,2vw,22px);
  border: 1px solid #947455;
  border-radius: 4px;
  color: #2e2118;
  background: #f4e7ce;
  box-shadow: 0 18px 45px #000a;
}
#guide-dialog::backdrop { background: #0b0e0be3; }
#guide-dialog .dialog-header { margin-bottom: 9px; }
#guide-dialog h2 { margin: 0; font-size: clamp(1.25rem,2vw,1.65rem); }
#guide-dialog .close { color: #302119; background: #fff3df; border-color: #9c7c61; }
#guide-dialog :focus-visible { outline-color: #8b4e2f; }
.guide-preview .guide-frame { width: 100%; margin-inline: auto; }
.guide-preview .guide-frame--role { max-width: 610px; }
.guide-preview .guide-mark { border-width: 3px; }
.guide-preview-action { margin: 10px 0 0; color: #4b301e; font-weight: 740; }
.cordon-cross { position: relative; height: clamp(48px,6.5vw,86px); overflow: hidden; background: #1b1916; }
.cordon-cross span { position: absolute; display: block; inset-inline: -28px; pointer-events: none; background: url("/img/crimeset-cordon.webp") center / auto 100% repeat-x; filter: saturate(.74) brightness(.9) drop-shadow(0 4px 4px #0c0906ac); }
.cordon-cross span:first-child { height: clamp(23px,3vw,38px); top: 22%; transform: rotate(1.7deg); opacity: .76; }
.cordon-cross span:last-child { height: clamp(23px,3vw,39px); bottom: 20%; transform: rotate(-1.8deg); background-position: 21% center; }
.before-play {
  padding-block: clamp(48px,7vw,94px);
  border-top: 1px solid #70584168;
  background: radial-gradient(ellipse at 22% 10%,#33261c,#1c1815 74%);
}
.before-play-layout { display: grid; grid-template-columns: minmax(200px,.7fr) minmax(0,1.3fr); gap: clamp(19px,6vw,86px); }
.before-play h2 { margin: 0; color: #fff4e2; font-size: clamp(2rem,3.9vw,3.45rem); line-height: 1.12; letter-spacing: -.055em; }
.before-play header p { margin-top: 10px; color: #e3cdb6; }
.play-questions { border-block-end: 1px solid #947b62; }
.play-questions details { border-block-start: 1px solid #947b62; }
.play-questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 9px 4px;
  list-style: none;
  cursor: pointer;
  color: #fff4e2;
  font-weight: 730;
  word-break: keep-all;
}
.play-questions summary::-webkit-details-marker { display: none; }
.play-questions summary::after { content: "+"; color: #eac192; font-size: 1.2rem; }
.play-questions details[open] summary::after { content: "−"; }
.play-questions summary:hover { color: #f6cea1; }
.play-questions summary:focus-visible { outline: 2px solid #f6cea1; outline-offset: 3px; }
.play-questions p { max-width: 56ch; margin: 0; padding: 0 4px 15px; color: #ebd8c4; word-break: keep-all; }
.play-questions a { display: inline-block; margin: 0 4px 14px; color: #f6cea1; text-decoration: underline; text-underline-offset: .22em; }

.case-stamp {
  --stamp-ink: #802d27;
  display: inline-block;
  padding: .18em .52em;
  color: var(--stamp-ink);
  border: 3px double currentColor;
  border-radius: 2px 3px 2px 1px;
  transform: rotate(-8deg);
  background: linear-gradient(#f3e3ccb3,#f3e3ccb3),url("/img/case-files/lodge-stock.webp") center / cover #ead6b8;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: .06em;
  white-space: nowrap;
}
.dialog-file-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; }
.dialog-stamp { position: relative; font-size: .8rem; }
.dialog-stamp::after { content: ""; position: absolute; inset: -3px; border: 1px solid currentColor; border-radius: 2px; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  #case-dialog[open] .dialog-stamp::after { animation: ink-impact .33s ease-out .43s both; }
}
@keyframes ink-impact {
  0% { opacity: .42; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.16,1.3); }
}
@media (max-width: 690px) {
  .before-play-layout { grid-template-columns: 1fr; }
  .before-play header p { margin-bottom: 0; }
}
@media (max-width: 540px) {
  .play-guide > .wrap { width: calc(100% - 36px); }
  .guide-list { grid-template-columns: repeat(4,minmax(78%,1fr)); }
  .case-list { grid-auto-columns: 82%; }
}
@media (max-width: 430px) {
  .header-inner nav a[href="#play-guide"] { display: none; }
}
@media (forced-colors: active) {
  .hero h1 { color: CanvasText; }
  .hero-clue::before, .hero-ledger, .guide-backdrop { display: none; }
  .hero-brief { border: 1px solid ButtonText; }
  .hero-case-copy { background: Canvas; }
  .guide-mark { border-color: Highlight; }
  .play-guide { background: Canvas; --guide-ink: CanvasText; }
  .play-guide::before { display: none; }
  .play-guide :is(.guide-step,.guide-copy p), .guide-photo .guide-zoom { color: CanvasText; }
  .guide-photo .guide-zoom { background: Canvas; }
}
