.detective-main {
  --forest: #234e43;
  --mint-ink: #295546;
  --plaster: #fffcf2;
  --line: #cccec1;
  max-width: 1120px;
  padding-block-end: 4rem;
}
.detective-page .brand-link { color: inherit; font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.detective-page .brand-mark { display: inline-grid; place-items: center; background: #ed685c; color: white; width: 1.8rem; height: 1.8rem; border-radius: 9px; }
.case-heading, .result-bar, .round-badge, .progress-pips { display: flex; align-items: center; gap: 0.65rem; }
.case-heading { justify-content: space-between; flex-wrap: wrap; margin: 1.4rem 0 2.35rem; }
.case-heading h1 { color: var(--forest); text-wrap: balance; margin: 0 0 0.5rem; }
.case-heading p { margin: 0; max-width: 50ch; }
.round-badge { background: #f1f2de; color: var(--mint-ink); padding: 0.6rem 0.95rem; border: 1px solid #dce0bd; border-radius: 2rem; font-size: 0.88rem; }
.round-badge strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress-pips { gap: 0.25rem; }
.progress-pips i { height: 0.47rem; width: 0.47rem; border-radius: 50%; border: 1.5px solid #75987f; }
.progress-pips .filled { background: #438467; border-color: #438467; }
.case-board { display: grid; grid-template-columns: minmax(190px, 0.8fr) minmax(0, 2fr); gap: clamp(1rem, 3vw, 2.65rem); align-items: start; }
.clue-file { position: relative; isolation: isolate; border: 2px solid #cfa951; border-radius: 0 16px 16px 16px; background: #ffedaf; color: #4f4326; padding: clamp(0.8rem, 2.3vw, 1.6rem); box-shadow: 0 4px 0 #e2c675; }
.clue-file::before { content: ''; position: absolute; inset-inline-start: -2px; top: -0.82rem; width: 38%; height: 0.85rem; background: #ffedaf; border: 2px solid #cfa951; border-bottom: 0; border-radius: 0.75rem 0.75rem 0 0; z-index: -1; }
.clue-file h2 { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.85rem; font-size: 1.13rem; line-height: 1.22; }
.clue-file h2 svg { flex: none; }
.clue-portrait { position: relative; display: grid; place-items: center; background-color: #fffdf3; background-image: radial-gradient(#dcdcc6 1px, transparent 1px); background-size: 12px 12px; border: 6px solid white; border-bottom-width: 12px; box-shadow: 0 1px 4px #6e5d393d; transform: rotate(-2deg); border-radius: 3px; }
.clue-portrait::before { content: ''; position: absolute; top: -0.55rem; width: 30%; height: 0.95rem; transform: rotate(-3deg); background: #a5cfb4b5; }
.clue-portrait svg { display: block; width: 88%; max-height: 16rem; }
.case-board .monster-markings { filter: brightness(.70) saturate(1.25); }
.clue-traits { margin: 1rem 0 0; font-size: 0.92rem; }
.clue-traits > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; column-gap: 0.45rem; padding: 0.4rem 0; border-top: 1px dashed #bc9d59; }
.clue-traits dt { font-weight: 600; }
.clue-traits dd { margin: 0; display: flex; align-items: center; gap: 0.4rem; font-weight: 800; }
#eye-sample, #mark-sample { display: inline-flex; }
#eye-sample svg { width: 13px; height: 13px; }
#mark-sample svg { width: 19px; height: 16px; }
.suspects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(0.45rem, 1.4vw, 1rem); }
.suspect-card { display: grid; place-items: center; position: relative; width: 100%; min-width: 0; aspect-ratio: 1.08; padding: min(3%, 0.5rem); appearance: none; border: 2px solid var(--line); border-radius: clamp(10px, 1.5vw, 18px); background: var(--plaster); color: var(--forest); box-shadow: 0 3px 0 #dadccf; cursor: pointer; }
.suspect-card svg { display: block; width: 86%; height: 94%; max-height: 13rem; pointer-events: none; }
.suspect-number { position: absolute; inset-inline-start: 0.48rem; top: 0.4rem; min-width: 1.45em; line-height: 1.45; text-align: center; border-radius: 50%; color: #385e50; background: #e6ead8; font-size: 0.78rem; }
.suspect-card:focus-visible, .case-action:focus-visible { outline: 3px solid #325aab; outline-offset: 3px; }
@media (hover: hover) {
  .suspect-card:not([aria-disabled]):hover { border-color: #6d927e; background: #f3f7e9; box-shadow: 0 3px 0 #a7bd9e; }
}
.suspect-card[aria-disabled] { cursor: default; }
.suspect-card.is-miss { opacity: 0.57; border-style: dashed; box-shadow: none; }
.suspect-card.is-found { border-color: #367757; background: #dff2d9; box-shadow: 0 3px 0 #7eaa82; }
.suspect-card.is-miss::after, .suspect-card.is-found::after { position: absolute; inset-inline-end: 0.4rem; top: 0.3rem; font: bold 1.2rem/1.2 system-ui,sans-serif; }
.suspect-card.is-miss::after { content: '×'; color: #7d322e; }
.suspect-card.is-found::after { content: '✓'; color: #276847; }
.result-bar { flex-wrap: wrap; min-height: 4.25rem; padding: 0.75rem 0; justify-content: space-between; }
#feedback { font-weight: 750; margin: 0; color: var(--forest); }
.case-action { min-height: 44px; background: var(--forest); color: white; padding: 0.55rem 1.05rem; border: 0; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.case-action[hidden] { display: none; }
@media (max-width: 660px) {
  .case-heading { margin: 0.9rem 0 1.8rem; }
  .case-board { grid-template-columns: minmax(0,1fr); }
  .clue-file { display: grid; grid-template-columns: minmax(76px, 30%) minmax(0,1fr); column-gap: 1rem; align-items: center; padding: 0.7rem 0.9rem; }
  .clue-portrait { grid-area: 1 / 1 / 3 / 2; border-width: 3px 3px 6px; }
  .clue-portrait svg { width: 95%; max-height: 8rem; }
  .clue-file h2 { grid-area: 1 / 2; margin-bottom: 0.25rem; }
  .clue-traits { grid-area: 2 / 2; margin: 0; }
  .clue-traits > div { padding: 0.18rem 0; }
}
@media (max-width: 370px) {
  .suspect-number { inset-inline-start: 0.2rem; top: 0.15rem; font-size: 0.68rem; }
}
