/* 추리보드: 차가운 수사실의 물리적 증거 작업대 */
#board{
  --board-coal:#111310;
  --board-panel:#191b17;
  --board-surface:#30322b;
  --board-surface-dark:#282a25;
  --board-paper:#d8d0ba;
  --board-paper-muted:#c4bdab;
  --board-ink:#24231e;
  --board-text:#e4e0d6;
  --board-muted:#aaa69b;
  --board-line:#4c4a40;
  --board-accent:#d1a34a;
  --board-thread:#8f292c;
  background:var(--board-coal);
  color:var(--board-text);
  font-family:"Galmuri14",sans-serif;
}

#board .board-header{
  height:76px;
  padding:0 clamp(18px,2.4vw,34px);
  border-bottom:1px solid var(--board-line);
  background:var(--board-coal);
}
#board .board-header h2{
  margin:0;
  font-family:"Hahmlet Variable","Hahmlet",serif;
  font-size:28px;
  font-weight:760;
  letter-spacing:-.035em;
}
#board .board-header-copy{display:flex;align-items:baseline;gap:18px}
#board .board-header-copy p{margin:0;color:var(--board-muted);font-size:11px;line-height:1.5}
#board .board-header>div:last-child{align-items:center;gap:8px}
#board .text-btn{
  min-height:38px;
  padding:0 15px;
  border:1px solid #686356;
  border-radius:12px;
  background:transparent;
  color:var(--board-text);
  font-size:11px;
}
#board .text-btn:hover{border-color:var(--board-accent);background:#24241e;color:#f2d38d}
#board .close-btn{display:grid;place-items:center;width:42px;height:42px;color:#c7c2b7;font-size:27px}
#board .close-btn:hover{color:#fff}

#board .board-layout{height:calc(100vh - 76px);grid-template-columns:280px minmax(0,1fr)}
#board .board-layout>aside{
  padding:24px 18px 18px;
  border-right:1px solid var(--board-line);
  background:var(--board-panel);
}
#board .board-layout>aside h3{
  margin:0;
  font-family:"Hahmlet Variable","Hahmlet",serif;
  font-size:18px;
  font-weight:720;
}
#board .board-layout>aside>p{margin:9px 0 18px;color:var(--board-muted);font-size:10px;line-height:1.7;word-break:keep-all}

#board .board-source-tabs{
  display:flex;
  gap:20px;
  margin:0 0 14px;
  border-bottom:1px solid var(--board-line);
}
#board .board-source-tabs button{
  position:relative;
  width:auto;
  height:38px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#969287;
  font-size:10px;
}
#board .board-source-tabs button:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:transparent}
#board .board-source-tabs button:hover{background:transparent;color:var(--board-text)}
#board .board-source-tabs button.active{border:0;background:transparent;color:#f0d89f}
#board .board-source-tabs button.active:after{background:var(--board-accent)}

#board .board-source{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:calc(100vh - 250px);
  padding:0 5px 12px 0;
}
#board .board-source-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 18px;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:60px;
  aspect-ratio:auto;
  padding:6px 8px;
  overflow:hidden;
  border:1px solid transparent;
  border-radius:12px;
  background:#22241f;
  color:var(--board-text);
  text-align:left;
}
#board .board-source-card:after{content:"+";position:static;display:grid;place-items:center;border:0;color:#888478;font-size:17px}
#board .board-source-card:hover{border-color:#716b5b;background:#292b25;color:#fff}
#board .board-source-card:hover:after{color:var(--board-accent)}
#board .board-source-card:focus-visible,#board button:focus-visible,#board textarea:focus-visible{outline:2px solid var(--board-accent);outline-offset:2px}
#board .board-source-card img{
  width:48px;
  height:48px;
  border-radius:12px;
  background:#34362f;
  object-fit:contain;
  filter:none;
}
#board .board-source-card.profile img{object-fit:cover;object-position:top;filter:saturate(.68)}
#board .board-source-card span{min-width:0;font-size:10px;line-height:1.45;word-break:keep-all}
#board .board-empty{margin:14px 0;color:var(--board-muted);font-size:10px;line-height:1.6}

#board .board-canvas{
  position:relative;
  overflow:hidden;
  background:var(--board-surface);
  background-image:none;
  box-shadow:inset 18px 0 28px rgba(0,0,0,.14);
}
#board .board-canvas-hint{
  position:absolute;
  z-index:1;
  left:50%;
  top:47%;
  width:min(390px,70%);
  transform:translate(-50%,-50%);
  color:#b9b6aa;
  text-align:center;
  pointer-events:none;
}
#board .board-canvas-hint strong{display:block;font-family:"Hahmlet Variable","Hahmlet",serif;font-size:20px;font-weight:700;color:#d8d4ca}
#board .board-canvas-hint span{display:block;margin-top:10px;font-size:10px;line-height:1.7}
#board .board-canvas:has(.board-item) .board-canvas-hint{display:none}

#board .board-item{
  z-index:2;
  min-height:112px;
  padding:22px 16px 16px;
  border:0;
  border-radius:12px;
  background:var(--board-paper);
  color:var(--board-ink);
  box-shadow:0 7px 13px rgba(0,0,0,.28);
  transition:width .16s ease,min-height .16s ease,box-shadow .15s ease;
}
#board .board-item.record{display:grid;grid-template-columns:minmax(70px,34%) 1fr;gap:12px;align-items:start;background:var(--board-paper)}
#board .board-item.record.item{background:#d5c89e}
#board .board-item.record.profile{display:block;width:176px!important;min-height:0;padding:14px 14px 25px;background:#cbc6b9;transform:rotate(-1deg)}
#board .board-item figure{height:84px;margin:0;border:0;border-radius:12px;background:#bbb4a3;overflow:hidden}
#board .board-item figure img{filter:none}
#board .board-item.record.profile figure{border-radius:12px;background:#afa99d}
#board .board-record-copy small{color:#6f634c;font-size:8px;letter-spacing:0}
#board .board-item h4{margin:5px 0 7px;font-family:"Hahmlet Variable","Hahmlet",serif;font-size:15px;font-weight:730;line-height:1.3;letter-spacing:-.02em}
#board .board-item p{font-size:10px;line-height:1.6;color:#49463e}
#board .board-item.note{width:160px;min-width:160px;padding:25px 15px 14px;background:#d5c060}
#board .board-item.note textarea{color:#29271d;font-family:"Galmuri14",sans-serif;font-size:10px}
#board .board-item.dragging{z-index:5;box-shadow:0 12px 20px rgba(0,0,0,.34)}

#board .board-item .pin{
  width:17px;
  height:17px;
  border:3px solid #5d171a;
  border-radius:50%;
  background:#a42b2e;
  box-shadow:0 2px 3px rgba(0,0,0,.45);
}
#board .board-item .pin:after{background:#756c59}
#board .board-item .pin:hover,#board .board-item .pin.connecting{outline:3px solid rgba(209,163,74,.5);box-shadow:0 2px 3px rgba(0,0,0,.45)}
#board .board-thread .thread-fiber{stroke:var(--board-thread);filter:none}
#board .board-thread .thread-highlight{stroke:#c85b59}
#board .board-thread circle{fill:#a42b2e;filter:none}

@media(max-width:900px){
  #board .board-layout{grid-template-columns:220px minmax(0,1fr)}
  #board .board-header-copy p{display:none}
  #board .board-layout>aside{padding:18px 12px}
  #board .board-source-card{grid-template-columns:42px minmax(0,1fr) 14px;gap:8px}
  #board .board-source-card img{width:42px;height:42px}
}
@media(max-width:640px){
  #board .board-header{height:66px}
  #board .board-header h2{font-size:22px}
  #board .board-layout{height:calc(100vh - 66px);grid-template-columns:170px minmax(0,1fr)}
  #board .board-layout>aside>p{display:none}
  #board .board-source-tabs{gap:12px}
  #board .board-source-card{grid-template-columns:38px minmax(0,1fr);min-height:52px}
  #board .board-source-card img{width:38px;height:38px}
  #board .board-source-card:after{display:none}
}

/* 사용자 피드백: 승인된 기존 폰트, 각진 종이 틀, 전신 누끼를 우선한다. */
#board,#board *{font-family:"Continuity Galmuri UI",sans-serif}
#board :is(.text-btn,.board-source-card,.board-source-card img,.board-item,.board-item figure,.board-item.record.profile figure){border-radius:0}
#board .board-source-card.profile img{object-fit:contain;object-position:center bottom;filter:none}
#board .board-item.record.profile{width:176px!important;min-height:0;padding:14px 14px 12px;border-radius:0;background:#cbc6b9}
#board .board-item.record.profile figure{height:190px;border-radius:0;background:#afa99d}
#board .board-item.record.profile figure img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:none}
#board .board-profile-name{display:block;margin-top:8px;color:#29271f;font-size:12px;font-weight:400;text-align:center}
#board .board-item.record.evidence-only{display:block;width:170px!important;min-height:0;padding:18px 10px 8px;background:transparent;box-shadow:none}
#board .board-item.record.evidence-only:before{display:none}
#board .board-item.record.evidence-only figure{width:150px;height:118px;margin:0;border:0;background:transparent}
#board .board-item.record.evidence-only figure img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 7px rgba(0,0,0,.52))}
#board .board-item.record.evidence-only .pin{top:4px}
#board .board-evidence-name{display:block;width:max-content;max-width:150px;margin:5px auto 0;padding:5px 8px;background:#cbc4af;color:#25241f;font-size:11px;font-weight:400;line-height:1.35;text-align:center;word-break:keep-all;box-shadow:0 3px 7px rgba(0,0,0,.24)}
#board .board-item h4{font-family:"Continuity Galmuri UI",sans-serif;font-size:14px;font-weight:400;letter-spacing:0}
#board .board-item .pin{border-radius:50%}
