.incident-desk {
  width: min(100%, max(46rem, calc((95dvh - 13.5rem) * 1.777)));
  aspect-ratio: 1672 / 941; margin-top: .65rem;
}
.incident-desk > img { aspect-ratio: 1672 / 941; }
.incident-targets { position: absolute; inset: 0; }
.incident-evidence { box-shadow: none; }
.incident-evidence:hover { box-shadow: inset 0 0 1rem #ffd28b54; }
.incident-desk-label {
  position: absolute; left: 6%; right: 6%; color: #2a1c13; text-align: center;
  font: bold 1.62cqw/1.12 Georgia, serif; pointer-events: none;
}
.incident-gunluk { --x: 3.8; --y: 1.5; --w: 18.2; --h: 34.6; }
.incident-gunluk .incident-desk-label { top: 23%; left: 28%; right: 18%; font-size: 1.55cqw; }
.incident-harita { --x: 24.2; --y: 3.7; --w: 25.8; --h: 29.6; }
.incident-harita .incident-desk-label {
  top: 8%; color: #253c5a; background: #f4e0b9e8; inset-inline: 23%; border-radius: .15em;
}
.incident-usb { --x: 52.7; --y: .4; --w: 19.4; --h: 34.1; }
.incident-usb .incident-desk-label {
  top: 60.4%; font: 700 .79cqw/1.1 system-ui, sans-serif;
  left: 42%; right: 23%; transform: rotate(-11deg); white-space: nowrap;
}
.incident-laptop { --x: 75.5; --y: 2.25; --w: 22.6; --h: 31.2; }
.incident-laptop .incident-desk-label { top: 8%; background: #092d4add; color: #d8f0ff; inset-inline: 23%; }
.incident-kamera { --x: 2.9; --y: 37.4; --w: 20.8; --h: 29.2; }
.incident-kamera .incident-desk-label { top: 13%; color: #dbeaff; background: #092639dc; inset-inline: 19%; }
.incident-siparis { --x: 27.7; --y: 36.5; --w: 21; --h: 28.1; }
.incident-siparis .incident-desk-label { top: 9%; inset-inline: 6%; }
.incident-tahta { --x: 53.55; --y: 36.9; --w: 17.3; --h: 28.35; }
.incident-tahta .incident-desk-label { top: 20%; color: #10385f; font-size: 1.35cqw; }
.incident-pano { --x: 76.4; --y: 39.15; --w: 21; --h: 24.2; }
.incident-pano .incident-desk-label { bottom: 14%; color: #ffe5e8; font-size: 1.26cqw; }
.incident-seda, .incident-emre, .incident-derya, .incident-nihat, .incident-ayse, .incident-firma, .incident-teknik {
  --y: 67.9; --h: 30.4; --w: 13.35;
}
.incident-seda { --x: .6; }
.incident-emre { --x: 15.35; }
.incident-derya { --x: 29.6; }
.incident-nihat { --x: 44; }
.incident-ayse { --x: 58; }
.incident-firma { --x: 72.2; --w: 13.1; }
.incident-teknik { --x: 86.1; --w: 13.35; }
.incident-targets button:nth-child(n+9) .incident-desk-label {
  bottom: 8.5%; font: bold italic 1.23cqw/1.1 'Segoe Print', 'Comic Sans MS', cursive;
}
.incident-crop { width: 100%; aspect-ratio: calc(1672 * var(--w)) / calc(941 * var(--h)); }
.incident-paper, .incident-terminal {
  border-radius: .55rem; padding: clamp(.7rem, 2vw, 1.15rem); line-height: 1.48;
}
.incident-paper { background: #f1e1bc; color: #342319; }
.incident-terminal { margin-block: .7rem; background: #0f293a; color: #e7f3ff; border: 1px solid #52768d; }
.incident-paper > :first-child, .incident-terminal > :first-child { margin-top: 0; }
.incident-paper > :last-child, .incident-terminal > :last-child { margin-bottom: 0; }
.incident-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .45rem; }
.incident-task button:disabled { cursor: default; opacity: .58; }
.incident-map-layout {
  position: relative; overflow: hidden; border: 1px solid #a88354; border-radius: .6rem;
  aspect-ratio: 1672 / 941;
}
.incident-map-layout > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.incident-map-areas { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
#evidence-drawer .incident-map-area {
  padding: .4rem .25rem; display: grid; justify-items: center; align-items: end; align-content: end;
  color: #fff1d0; border: 1px solid transparent; border-radius: 0; font-size: clamp(.48rem, 1.6vw, .9rem);
  background: linear-gradient(transparent 73%, #352315eb 100%); text-shadow: 0 1px 2px #000;
}
#evidence-drawer .incident-map-area:hover, #evidence-drawer .incident-map-area:focus-visible {
  background: linear-gradient(#faca751e 68%, #352315eb 100%); outline-offset: -4px; border-color: #f6d18d;
}
.incident-map-list { display: none; }
.incident-room-art {
  width: min(100%, 35rem); aspect-ratio: 1.18; margin-inline: auto;
  background: url('assets/dosya-5-okul-haritasi.webp') no-repeat;
  background-size: 300% 200%; background-position: calc(50% * var(--room-col)) calc(100% * var(--room-row));
  border: 1px solid #bc9761; border-radius: .55rem;
}
.incident-detectives { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: .5rem; }
.incident-detectives span { display: flex; align-items: center; gap: .3rem; font-size: .85rem; }
.incident-detectives .detective-avatar { width: 2.5rem; }
.incident-camera-image {
  width: min(100%, 28rem); aspect-ratio: 1; position: relative; overflow: hidden; margin-inline: auto;
  background: url('assets/dosya-5-kamera.webp') 0 center / 300% 100% no-repeat;
  border: 1px solid #6b92a6; border-radius: .35rem;
}
.incident-camera-image.frame-1 { background-position: 50% center; }
.incident-camera-image.frame-2 { background-position: 100% center; }
.incident-camera-shot { width: min(100%, 28rem); margin-inline: auto; overflow: hidden; border-radius: .35rem; }
.incident-camera-zoom .incident-camera-image { transform: scale(1.35); }
.incident-notebook .notebook-page { color: #342319; }
.incident-notebook h3 { margin-top: 0; }
.incident-room-clues { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .55rem; margin: .7rem 0; }
.incident-room-clues details[open] { grid-column: 1 / -1; }
.incident-room-clues summary { cursor: pointer; font-weight: 700; padding-block: .3rem; }
.incident-gift-clues details[open]:nth-child(-n+3) { grid-column: auto; }
.incident-gift-clues details:nth-child(-n+3) {
  border: 1px solid #b6843b;
  background: linear-gradient(150deg, #fff0c4, #e3b66b);
  box-shadow: inset 0 0 0 2px #fff0c4aa;
}
.incident-question-form fieldset { margin: .6rem 0; border: 1px solid currentColor; border-radius: .4rem; }
.incident-question-form legend { padding-inline: .3rem; font-weight: 700; }
.incident-question-form label { display: flex; gap: .5rem; align-items: center; padding: .3rem; cursor: pointer; }
.incident-question-form p:empty, .incident-terminal p:empty { display: none; }
.incident-link-question { margin-block: .75rem; }
.incident-link-question h4 { margin-bottom: .25rem; }
.incident-link-question legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.incident-milestone { margin: .6rem 0; padding: .2rem .8rem; background: #142b2b; border-inline-start: 3px solid #d7a762; border-radius: .35rem; }
.incident-milestone p { margin: .4rem 0; }
@media (max-width: 700px) {
  .incident-notebook { grid-template-columns: 1fr; }
}
.incident-terminal .recovery-cards { margin-top: .65rem; }
.incident-chain { margin-bottom: .55rem; }
.incident-ending { text-align: center; margin-bottom: .75rem; }
.incident-pursuit {
  display: grid; width: min(100%, 24rem); margin: auto; overflow: hidden;
  border: 1px solid #a87d5b; border-radius: .5rem;
}
.incident-pursuit > div {
  grid-area: 1 / 1; aspect-ratio: 1; background: url('assets/dosya-5-final-kareleri.webp') left center / 200% 100% no-repeat;
}
.incident-pursuit > div:nth-child(2) { background-position: right center; opacity: 0; animation: incident-cut .8s 1.4s both; }
.incident-printer { position: relative; min-width: min(100%, 15rem); max-width: 16rem; margin: 1rem auto; overflow: hidden; }
.incident-printer-top {
  position: relative; z-index: 1; color: #e3ecdf; background: linear-gradient(#4f5554, #1d2829); padding: .6rem;
  border-bottom: 5px solid #080e13; border-radius: .5rem .5rem .2rem .2rem; font: 700 .82rem/1.3 system-ui, sans-serif;
}
.incident-wanted {
  margin: 0 .6rem; padding: .6rem .8rem; border: 1px solid #a48356; box-shadow: 0 .35rem .65rem #0006;
  background: #f0d5a5; color: #48191c; animation: incident-print 1.15s 2.1s both;
}
.incident-wanted h3 { letter-spacing: .12em; margin: 0 0 .45rem; }
.incident-wanted .incident-camera-image { width: min(70%, 8rem); margin-bottom: .5rem; filter: sepia(.48); }
.incident-wanted p { margin: .2rem 0; }
@keyframes incident-cut { to { opacity: 1; } }
@keyframes incident-print { from { transform: translateY(-95%); opacity: .55; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 720px) {
  .incident-desk { width: 100%; }
  .incident-reader .incident-crop { width: min(100%, 20rem); }
  .incident-map-list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none;
    margin: .6rem 0; padding: 0; gap: .45rem;
  }
  .incident-map-list button { width: 100%; min-height: 44px; font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  .incident-pursuit > div:nth-child(2), .incident-wanted { opacity: 1; animation: none; }
}
