/* board.css — investigation screen */
.bd-root { overflow: hidden; }
.bd-mast { position: absolute; left: 0; top: 0; width: 396px; height: 100px; }
.bd-mast > * { position: absolute; }
.bd-gauge { left: 8px; top: 4px; width: 112px; height: 44px; display: flex; align-items: center; gap: 4px; padding: 0 6px; font-family: inherit; color: var(--ink); background: rgba(232,224,204,.7); border: 1px solid var(--rule); cursor: pointer; overflow: hidden; }
.bd-drop { width: 12px; height: 16px; background: var(--slate); border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; transform: rotate(0); clip-path: polygon(50% 0, 100% 62%, 85% 100%, 15% 100%, 0 62%); flex: none; }
.bd-gl { display: flex; flex-direction: column; line-height: 1.1; font-size: 12px; text-align: left; flex: 1; }
.bd-gl b { font-size: 15px; }
.bd-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(61,66,71,.2); }
.bd-bar i { display: block; height: 100%; background: #6f7f8c; transition: width .4s; }
.bd-gauge.hot { color: var(--crimson); border-color: var(--crimson); }
.bd-gauge.hot .bd-bar i { background: var(--crimson); }
.bd-gauge.hot .bd-drop { background: var(--crimson); }
.bd-title { left: 128px; width: 200px; top: 2px; height: 48px; display: flex; align-items: baseline; justify-content: center; gap: 4px; white-space: nowrap; }
.bd-name { font-size: 28px; font-weight: 900; letter-spacing: .04em; line-height: 48px; }
.bd-ear { font-size: 12px; font-weight: 700; color: var(--crimson); border: 1px solid var(--crimson); padding: 0 3px; align-self: center; line-height: 1.3; }
.bd-rule { left: 8px; right: 8px; top: 52px; }
.bd-date { left: 8px; top: 58px; max-width: 255px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.bd-chips { left: 8px; top: 76px; display: flex; gap: 6px; }
.bd-chip { font-size: 12px; font-weight: 700; padding: 2px 6px; border: 1px solid var(--rule); background: rgba(232,224,204,.6); white-space: nowrap; }
.bd-gold { right: 58px; top: 62px; height: 32px; min-width: 44px; display: flex; align-items: center; gap: 4px; padding: 0 6px; font-family: inherit; font-size: 14px; color: var(--ink); background: rgba(232,224,204,.7); border: 1px solid var(--rule); cursor: pointer; }
.bd-gold img { width: 22px; height: 22px; object-fit: contain; }
.bd-hint { right: 8px; top: 56px; width: 44px; height: 44px; padding: 3px; background: rgba(232,224,204,.7); border: 1px solid var(--rule); cursor: pointer; }
.bd-hint img { width: 100%; height: 100%; object-fit: contain; }
.bd-badge { position: absolute; right: -5px; top: -5px; min-width: 18px; height: 18px; padding: 0 3px; font-size: 12px; font-weight: 900; line-height: 18px; color: #f7eedb; background: var(--crimson); text-align: center; }

.bd-tabs { position: absolute; left: 8px; right: 8px; top: 102px; height: 46px; display: flex; gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bd-tab { flex: 1; min-height: 44px; font-family: inherit; font-size: 17px; font-weight: 900; letter-spacing: .12em; color: var(--ink); background: transparent; border: 0; border-left: 1px solid var(--rule); cursor: pointer; transition: background .15s, color .15s; }
.bd-tab:first-child { border-left: 0; }
.bd-tab.on { background: var(--ink); color: var(--paper); }
.bd-tab.locked { opacity: .4; }
.bd-content { position: absolute; left: 0; top: 150px; width: 396px; height: 554px; overflow: hidden; }

.damp { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .8s;
  background: radial-gradient(ellipse 90px 70px at 12% 30%, rgba(90,80,60,.55), transparent 70%), radial-gradient(ellipse 120px 90px at 88% 55%, rgba(80,76,66,.5), transparent 70%),
    radial-gradient(ellipse 100px 80px at 30% 88%, rgba(70,68,60,.5), transparent 70%), radial-gradient(ellipse 80px 60px at 75% 12%, rgba(95,85,65,.45), transparent 70%); }

.bd-center { text-align: center; }
.bd-hl22 { font-size: 22px; margin: 6px 0; }
.bd-hl24 { font-size: 24px; }
.bd-hl18 { font-size: 18px; }
.bd-note { padding: 30px 16px; text-align: center; font-style: italic; color: var(--ink-soft); font-size: 15px; }

/* scene */
.bd-scenes, .bd-sub { display: flex; gap: 6px; padding: 4px 8px 4px; height: 48px; }
.bd-sbtn { flex: 1; min-height: 44px; font-family: inherit; font-size: 15px; font-weight: 800; color: var(--ink); background: rgba(232,224,204,.5); border: 1px solid var(--rule); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.bd-sbtn small { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.bd-sbtn.on { background: var(--ink); color: var(--paper); } .bd-sbtn.on small { color: var(--paper-dark); }
.bd-pic { position: relative; width: 396px; height: 396px; background: #222; overflow: hidden; }
.bd-pic > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.45) 100%); }
.bd-hs { position: absolute; transform: translate(-50%,-50%); padding: 0; background: transparent; border: 0; cursor: pointer; animation: bd-pop .3s ease-out both; }
.bd-hs-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.6)); position: relative; }
.bd-ring { position: absolute; inset: -4px; border: 1px solid rgba(240,232,210,.9); border-radius: 50%; animation: bd-pulse 2.2s ease-in-out infinite; pointer-events: none; }
.bd-mag { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -9px 0 0 -9px; border: 2px solid #f0e8d2; border-radius: 50%; }
.bd-mag::after { content: ""; position: absolute; left: 11px; top: 11px; width: 7px; height: 2px; background: #f0e8d2; transform: rotate(45deg); transform-origin: 0 0; }
.bd-hs.cat .bd-hs-img { animation: bd-breathe 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bd-pulse { 0%,100% { transform: scale(.92); opacity: .35; } 50% { transform: scale(1.12); opacity: .95; } }
@keyframes bd-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05, .96); } }
@keyframes bd-pop { from { transform: translate(-50%,-50%) scale(.5); opacity: 0; } to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
.bd-caption { padding: 4px 12px 0; }
.bd-cap-row { display: flex; justify-content: space-between; align-items: center; min-height: 36px; font-size: 14px; border-top: 3px double var(--rule); margin-top: 3px; padding-top: 4px; }

/* modals */
.bd-clip-modal { display: flex; flex-direction: column; align-items: stretch; }
.bd-clip-pic { width: 150px; height: 150px; margin: 4px auto; padding: 8px; background: #f2ecda; transform: rotate(-2deg); box-shadow: 0 3px 8px rgba(0,0,0,.35); filter: grayscale(.6); clip-path: polygon(0 2%, 4% 0, 30% 1%, 60% 0, 96% 1%, 100% 4%, 99% 40%, 100% 96%, 94% 100%, 50% 99%, 6% 100%, 0 95%); }
.bd-clip-pic img { width: 100%; height: 100%; object-fit: contain; }
.bd-desc { min-height: 70px; font-size: 15px; text-align: left; }
.bd-wheels { display: flex; justify-content: center; gap: 8px; margin: 10px 0; }
.bd-wheel { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bd-wheel .btn { min-width: 52px; min-height: 46px; padding: 0; font-size: 18px; }
.bd-num { width: 52px; height: 60px; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; color: #3a2a10; background: linear-gradient(180deg, #a98a4a, #e0c378 50%, #a98a4a); border: 2px solid #5b4521; box-shadow: inset 0 0 8px rgba(0,0,0,.4); }
.bd-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 300px; overflow-y: auto; scrollbar-width: none; padding: 2px; }
.bd-tiles::-webkit-scrollbar, .bd-sts::-webkit-scrollbar, .bd-clipbody::-webkit-scrollbar, .bd-choose::-webkit-scrollbar { display: none; }
.bd-tile, .bd-gc { min-height: 88px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: #f2ecda; border: 1px solid var(--rule); padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; line-height: 1.2; }
.bd-tile-pic { width: 100%; height: 70px; } .bd-tile-pic img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.5); }
.bd-quote { font-size: 13px; font-style: italic; padding: 4px 8px; margin-bottom: 8px; border-left: 3px solid var(--crimson); color: var(--ink-soft); }
.modal-back.sheet .bd-sheet { width: 396px; max-height: 560px; }

.bd-board { position: relative; height: 230px; background: #1d1a17; background-image: var(--noise); overflow: hidden; }
.bd-cl { position: absolute; top: 28px; width: 150px; min-height: 120px; padding: 10px; background: #ece4cf; color: var(--ink); font-size: 14px; line-height: 1.45; box-shadow: 0 4px 10px rgba(0,0,0,.6); clip-path: polygon(0 2%, 5% 0, 40% 1%, 98% 0, 100% 40%, 99% 98%, 60% 100%, 3% 99%, 0 60%); opacity: 0; }
.bd-cl-st { left: 24px; max-height: 190px; overflow: hidden; }
.bd-cl-clue { right: 24px; top: 40px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 13px; }
.bd-cl-pic { width: 100px; height: 90px; } .bd-cl-pic img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.6); }
.bd-blotch { position: absolute; left: 50%; top: 50%; width: 200px; height: 140px; margin: -70px 0 0 -100px; background: radial-gradient(ellipse, rgba(120,125,130,.75), transparent 70%); animation: bd-spread .6s ease-out both; pointer-events: none; }
@keyframes bd-spread { from { transform: scale(.1); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bd-reveal { min-height: 66px; margin-top: 8px; font-size: 14px; text-align: left; }
.bd-extra { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.bd-gain { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; } .bd-gain img { width: 22px; height: 22px; }
.bd-chip.nc { display: inline-flex; align-items: center; gap: 4px; } .bd-chip.nc img { width: 22px; height: 22px; object-fit: contain; }

/* people */
.bd-people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; }
.bd-card { position: relative; font-family: inherit; color: var(--ink); text-align: left; background: #f1ead6; border: 1px solid var(--rule); padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; animation: bd-rise .28s ease-out both; box-shadow: 1px 2px 0 rgba(0,0,0,.25); }
.bd-card:nth-child(2) { animation-delay: .04s; } .bd-card:nth-child(3) { animation-delay: .08s; } .bd-card:nth-child(4) { animation-delay: .12s; }
.bd-card.sel { outline: 3px solid var(--crimson); }
.bd-card-pic { width: 100%; height: 150px; } .bd-card-pic img { object-position: top; }
.bd-card-name { font-size: 18px; font-weight: 900; }
.bd-tally { font-size: 13px; font-weight: 900; color: var(--crimson); }
.bd-newtag { position: absolute; right: 4px; top: 4px; z-index: 2; font-size: 12px; font-weight: 900; padding: 1px 5px; color: #f7eedb; background: var(--crimson); }
@keyframes bd-rise { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.bd-drow { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; }
.bd-back { min-width: 44px; padding: 0; font-size: 22px; }
.bd-dtop { display: flex; gap: 10px; height: 210px; padding: 5px 8px; }
.bd-pframe { width: 154px; height: 204px; flex: none; border: 1px solid var(--rule); background: rgba(201,190,163,.4); padding: 1px; }
.bd-dinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.bd-bio { font-size: 13px; line-height: 1.5; color: var(--ink); }
.bd-sechead { margin: 2px 8px 0; height: 28px; border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 900; letter-spacing: .3em; line-height: 24px; text-align: center; }
.bd-sts { height: 262px; overflow-y: auto; scrollbar-width: none; padding: 6px 8px 24px; display: flex; flex-direction: column; gap: 8px; }
.bd-st { position: relative; text-align: left; font-family: inherit; color: var(--ink); background: #f1ead6; border: 1px solid var(--rule); border-left: 4px solid var(--ink); padding: 20px 10px 8px 34px; min-height: 52px; cursor: pointer; animation: bd-rise .25s ease-out both; flex: none; }
.bd-st::before { content: "「"; position: absolute; left: 6px; top: -4px; font-size: 34px; font-weight: 900; color: var(--slate); line-height: 1.2; }
.bd-q { font-size: 15px; line-height: 1.5; }
.bd-st.broken { opacity: .55; cursor: default; border-left-color: var(--crimson); }
.bd-strike { position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: var(--crimson); transform: rotate(-1.5deg); }
.bd-lie { position: absolute; right: 8px; bottom: 4px; padding: 0 6px; font-size: 14px; font-weight: 900; color: var(--crimson-bright); border: 2px double var(--crimson-bright); transform: rotate(-8deg); letter-spacing: .1em; background: rgba(232,224,204,.7); }
.bd-lie.sm { right: 6px; bottom: 6px; font-size: 12px; }
.bd-st.hi { animation: bd-hi 1.4s ease-out; }
@keyframes bd-hi { 0% { background: #e8c9a0; transform: scale(1.03); } 100% { background: #f1ead6; transform: none; } }

/* clips */
.bd-clipbody { height: 498px; overflow-y: auto; scrollbar-width: none; padding: 8px 12px 24px; }
.bd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bd-gc { min-height: 108px; box-shadow: 1px 3px 4px rgba(0,0,0,.3); animation: bd-rise .25s ease-out both; clip-path: polygon(0 1%, 8% 0, 50% 1%, 100% 0, 99% 50%, 100% 99%, 60% 100%, 0 99%, 1% 50%); }
.bd-gc .bd-tile-pic { height: 74px; }
.bd-slot { min-height: 108px; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; color: var(--paper-dark); border: 2px dashed #a89c80; }
.bd-pin { position: relative; margin-bottom: 12px; padding: 10px 12px 14px; background: #f1ead6; border: 1px solid var(--rule); box-shadow: 1px 3px 4px rgba(0,0,0,.3); transform: rotate(-.6deg); }
.bd-pin:nth-child(even) { transform: rotate(.7deg); }
.bd-pin::before { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--crimson); box-shadow: 1px 2px 2px rgba(0,0,0,.4); }
.bd-pin-q { font-size: 14px; font-weight: 800; line-height: 1.45; padding-top: 4px; }
.bd-pin-r { font-size: 13px; line-height: 1.5; margin-top: 4px; padding-right: 44px; color: var(--ink-soft); }

/* headline */
.bd-hk { padding: 8px 12px 4px; font-size: 13px; }
.bd-slotbtn { display: block; width: calc(100% - 24px); margin: 8px 12px 0; min-height: 76px; padding: 6px 12px; text-align: left; font-family: inherit; color: var(--ink); background: #f1ead6; border: 1px solid var(--rule); border-bottom: 4px double var(--rule); cursor: pointer; }
.bd-slot-row { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.bd-slot-val { font-size: 16px; font-weight: 800; line-height: 1.4; flex: 1; }
.bd-slot-val.empty { color: var(--paper-dark); font-size: 22px; letter-spacing: .1em; }
.bd-mini { width: 40px; height: 48px; flex: none; } .bd-mini img { object-position: top; }
.bd-hk + .rule-double { margin: 0 12px; }
.bd-warn { margin: 4px 24px; text-align: center; font-size: 13px; font-style: italic; color: var(--crimson); }
.bd-center.small { margin-top: 10px; }
.bd-print { display: flex; width: calc(100% - 24px); margin: 10px 12px 0; min-height: 52px; font-size: 20px; }

.bd-choose { max-height: 440px; overflow-y: auto; scrollbar-width: none; }
.bd-choose .bd-people { padding: 4px; } .bd-choose .bd-card-pic { height: 110px; }
.bd-opts { display: flex; flex-direction: column; gap: 8px; padding: 2px; }
.bd-opt { min-height: 52px; padding: 8px 12px; text-align: left; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink); background: #f1ead6; border: 1px solid var(--rule); cursor: pointer; }
.bd-opt.sel { background: var(--ink); color: var(--paper); }
.bd-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.bd-stack .btn, .bd-wide { width: 100%; }
.bd-dryitem { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; font-size: 16px; } .bd-dryitem img { width: 48px; height: 48px; object-fit: contain; }
