/* =========================================================
   사건파일 목록(cases.html) · 사건 상세(case-01~04.html)
   ========================================================= */

/* ---------- 목록 ---------- */
.board { min-height: calc(100vh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 32px; position: relative; overflow: hidden; }
.board-title { background: var(--ink); border: 4px solid var(--gray); padding: 16px 48px; margin-bottom: 64px; text-align: center; animation: riseIn .6s .2s both; }
.board-title h1 { font: 700 clamp(24px, 3.5vw, 36px) var(--mono); letter-spacing: .3em; color: var(--paper-2); text-shadow: 2px 2px 4px rgba(0,0,0,.8); }
.board-title span { display: inline-block; margin-top: 12px; background: var(--gray); color: #fff; padding: 4px 16px; font-size: 13px; letter-spacing: .2em; }

.polaroids { display: flex; align-items: flex-end; justify-content: center; gap: 32px; width: 100%; max-width: 1800px; }
.polaroid { position: relative; display: block; width: 100%; max-width: 350px; animation: riseIn .5s both; transition: transform .3s; }
.polaroid:nth-child(1) { animation-delay: .1s; } .polaroid:nth-child(2) { animation-delay: .2s; }
.polaroid:nth-child(3) { animation-delay: .3s; } .polaroid:nth-child(4) { animation-delay: .4s; }
.polaroid:hover { transform: translateY(-10px) scale(1.05); }
.polaroid .pin { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; z-index: 4;
  background: radial-gradient(circle at 35% 35%, #e35, var(--red) 40%, var(--red-dark)); border: 2px solid rgba(42,42,42,.4); box-shadow: 0 3px 12px rgba(196,30,58,.8); }
.polaroid .frame { position: relative; background: #fefefe; border: 12px solid #fefefe; border-bottom-width: 50px; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,.9); }
.polaroid:hover .frame { box-shadow: 0 20px 50px rgba(0,0,0,.9), 0 0 20px rgba(255,255,255,.7); }
.polaroid .shot { aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink-2); }
.polaroid .shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.9) contrast(1.4) sepia(.25) brightness(.85); }
.polaroid .chapter { position: absolute; top: 20px; left: 20px; background: rgba(10,10,10,.8); border: 2px solid var(--ink-2); padding: 8px 20px; font: 700 30px var(--mono); color: #fff; }
.polaroid .stamp { position: absolute; top: 20px; right: 20px; border: 4px solid var(--red); padding: 8px 16px; font: 700 18px var(--mono); letter-spacing: .2em; color: var(--red);
  transform: scale(0) rotate(-15deg); transition: transform .35s cubic-bezier(.34,1.56,.64,1) .1s; }
.polaroid:hover .stamp { transform: scale(1) rotate(15deg); }
.polaroid .memo { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; font: 700 15px var(--serif-ko); color: var(--ink-2); }

.board-foot { margin-top: 64px; display: flex; align-items: center; gap: 32px; animation: riseIn .6s .4s both; }
.board-foot .hint { background: var(--ink); border: 2px solid var(--gray); padding: 12px 32px; font: 14px var(--mono); letter-spacing: .1em; color: var(--paper-2); }
.board-foot .secret { background: var(--red); border: 4px solid var(--ink); padding: 12px 24px; font: 700 14px var(--mono); letter-spacing: .2em; color: #fff; }

@media (max-width: 1023px) { .polaroids { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 56px 32px; } }
@media (max-width: 640px) {
  .board { padding: 32px 16px; }
  .board-title { padding: 12px 24px; margin-bottom: 40px; }
  .polaroids { grid-template-columns: 1fr; }
  .polaroid { max-width: 280px; }
  .polaroid .chapter { top: 12px; left: 12px; font-size: 24px; padding: 4px 12px; }
  .polaroid .stamp { top: 12px; right: 12px; border-width: 2px; font-size: 16px; }
  .board-foot { flex-direction: column; gap: 16px; margin-top: 56px; }
}

/* ---------- 상세 ---------- */
.dossier-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(26,26,26,.8); backdrop-filter: blur(4px); border-bottom: 2px solid var(--gray); padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; }
.dossier-bar a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font: 14px var(--mono); letter-spacing: .1em; color: var(--paper-2); transition: .2s; }
.dossier-bar a:hover { color: #fff; background: rgba(51,51,51,.3); }
.dossier-bar svg { width: 16px; height: 16px; }
.dossier-bar .scoop { font: 700 12px var(--serif-ko); color: #aaa; letter-spacing: .2em; }

.dossier-stage { min-height: 100vh; padding: 128px 32px 48px; position: relative; overflow: hidden; background: linear-gradient(#1a1a1a, #0a0a0a); }
.dossier { position: relative; max-width: 1200px; margin: 0 auto; background: #fff; border: 8px solid var(--ink-2); box-shadow: 0 30px 80px rgba(0,0,0,.9), inset 0 0 80px rgba(0,0,0,.2); min-height: 800px; overflow: hidden;
  animation: dossierIn 1.2s cubic-bezier(.43,.13,.23,.96) both; }
@keyframes dossierIn { from { opacity: 0; transform: scale(1.1) rotate(1deg); } }
.dossier::before { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .2; pointer-events: none; }
.dossier-head { position: relative; background: var(--ink); border-bottom: 4px solid var(--ink-2); padding: 12px 32px; text-align: center; }
.dossier-head h1 { font: 700 30px var(--mono); letter-spacing: .3em; color: #fff; text-shadow: 2px 2px 4px rgba(0,0,0,.5); }
.dossier-head div { font-size: 12px; letter-spacing: .2em; color: #aaa; margin-top: 4px; }
.dossier-foot { position: relative; background: var(--ink); border-top: 4px solid #fff; padding: 12px 32px; text-align: center; font: 12px var(--mono); letter-spacing: .2em; color: #aaa; }

.dossier-grid { position: relative; display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 24px; padding: 32px; font-family: var(--mono); color: var(--ink); }
.dossier-grid > * { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.col-l { animation: slideL .8s .3s both; } .col-c { animation: riseIn .8s .4s both; } .col-r { animation: slideR .8s .6s both; }
.box { border: 2px solid var(--ink-2); background: #fff; padding: 16px; }
.box.gray { background: var(--paper-3); }
.box.thick { border-width: 4px; }

.suspect { position: relative; border: 4px solid var(--ink-2); padding: 12px; background: #fff; }
.suspect .pic { border: 2px solid var(--gray); cursor: zoom-in; }
.suspect .pic img { width: 100%; height: auto; filter: grayscale(1) contrast(1.3) brightness(.9); }
.suspect .id { background: #f0f0f0; border-top: 2px solid var(--gray); padding: 4px 8px; text-align: center; font-size: 12px; letter-spacing: .05em; }
.suspect .arrow { position: absolute; top: 50%; transform: translateY(-50%); color: var(--gray-2); transition: color .2s, transform .2s; z-index: 2; }
.suspect .arrow:hover { color: var(--ink); transform: translateY(-50%) scale(1.2); }
.suspect .arrow.prev { left: -8px; } .suspect .arrow.next { right: -8px; }
.suspect .arrow svg { width: 32px; height: 32px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; background: var(--gray-2); transition: .2s; }
.dots button.on { width: 24px; background: var(--ink); }

.evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.evidence figure { margin: 0; border: 2px solid var(--ink-2); background: #fff; padding: 8px; cursor: zoom-in; }
.evidence img { width: 100%; height: 96px; object-fit: cover; border: 1px solid var(--gray); filter: grayscale(1) contrast(1.2); }
.evidence figcaption { font-size: 9px; text-align: center; margin-top: 4px; }

.btn-dark { position: relative; display: block; width: 100%; overflow: hidden; background: var(--ink-2); border: 4px solid var(--ink); padding: 12px; text-align: center; font: 700 14px var(--mono); letter-spacing: .2em; color: #fff; transition: transform .2s; }
.btn-dark::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.btn-dark span { position: relative; }
.btn-dark:hover { transform: scale(1.02); }
.btn-dark:hover::before { transform: scaleX(1); }
.btn-dark.big { background: var(--ink); border-color: var(--ink-2); padding: 16px; font-size: 16px; }

.danger { border: 4px solid var(--ink-2); background: #fff; padding: 16px; text-align: center; transform: rotate(-3deg); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.danger .mark { color: var(--red); font-size: 48px; line-height: 1; margin-bottom: 8px; }
.danger .lbl { font-weight: 700; font-size: 14px; letter-spacing: .1em; }
.danger .lvl { font-weight: 700; font-size: 24px; margin-top: 4px; }
.danger .en { color: var(--gray); font-size: 12px; margin-top: 8px; }

.classif { font-size: 12px; color: var(--gray); letter-spacing: .15em; }
.case-no { font-weight: 700; font-size: 20px; margin-top: 4px; }
.small { font-size: 12px; margin-top: 4px; }
.small.muted { color: var(--gray); }
.report { background: var(--paper-3); border: 2px solid var(--ink-2); padding: 24px; }
.report h2 { font: 700 20px var(--mono); border-bottom: 2px solid var(--ink-2); padding-bottom: 8px; margin-bottom: 12px; }
.report h3 { font: 700 14px var(--mono); color: var(--ink); }
.report p { font-size: 14px; line-height: 1.65; color: var(--ink-2); text-align: justify; margin-bottom: 12px; }
.report hr { border: 0; border-top: 1px solid var(--gray); margin: 12px 0; }
.warn { background: var(--red); border: 2px solid var(--ink-2); padding: 12px; margin-top: 16px; text-align: center; color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .1em; line-height: 1.6; }

.list-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.ev-list { list-style: none; margin: 0; padding: 0; font-size: 12px; line-height: 1.6; }
.ev-list li:last-child { color: var(--gray); }
.created { text-align: center; }
.created .k { color: var(--gray); font-size: 12px; letter-spacing: .2em; margin-bottom: 8px; }
.created .d { font-weight: 700; font-size: 24px; }
.created .t { color: var(--gray-2); font-size: 12px; margin-top: 4px; }
.clear .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; margin-bottom: 8px; }
.clear div { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.clear i { width: 12px; height: 12px; background: var(--ink); }
.clear div + div i { background: var(--gray); } .clear div + div { color: var(--gray); }
.memo-box .k { font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--ink-2); padding-bottom: 4px; margin-bottom: 8px; }
.memo-box p { font-size: 10px; line-height: 1.6; color: var(--ink-2); margin-bottom: 8px; }
.memo-box p.sign { color: var(--gray); font-weight: 700; }
.memo-box p.split { border-top: 1px solid var(--ink-2); padding-top: 8px; }
.contact { font-size: 9px; color: var(--gray); line-height: 1.6; }
.contact .ink { color: var(--ink); } .contact .red { color: var(--red); font-weight: 700; margin-top: 8px; }
.file-no { text-align: center; padding: 12px; }
.file-no .k { font-size: 9px; color: var(--gray-2); margin-bottom: 4px; }
.file-no .v { font-weight: 700; font-size: 18px; letter-spacing: .1em; }

.zoom-img { max-width: 90vw; max-height: 90vh; object-fit: contain; filter: grayscale(1) contrast(1.3) brightness(.9); }

@media (max-width: 1023px) { .dossier-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .dossier-bar { padding: 8px 16px; }
  .dossier-bar .scoop { display: none; }
  .dossier-stage { padding: 96px 12px 32px; }
  .dossier { border-width: 4px; }
  .dossier-head { padding: 8px 16px; }
  .dossier-head h1 { font-size: 20px; letter-spacing: .2em; }
  .dossier-grid { padding: 16px; }
  .report { padding: 16px; }
}
