/* the results' note that the night's score is already on the leaderboard */
#resScore .synced { font-size: 12px; font-weight: 800; color: #9fd3a0; letter-spacing: .02em; line-height: 1.4; animation: fadeIn .5s; }

/* the rokurokubi: one picture cut in three (head, neck, body). The neck slice lies under the other two and
   stretches between them, so the head rises while the body stays where it is. No transition: it just changes. */
#neck { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; opacity: 0; pointer-events: none; transform-origin: 50% 100%; filter: brightness(.95) contrast(1.05); }
#neck i { position: absolute; left: 0; width: 100%; display: block; background-repeat: no-repeat; }
#neck i.nh, #neck i.nb { z-index: 1; }
#neck.in { animation: vin .7s cubic-bezier(.2,.8,.3,1) forwards; }
#neck.here { opacity: 1; animation: breathe 4.2s ease-in-out infinite; }
#neck.outL { animation: voutL .9s ease-in forwards; }
#neck.outR { animation: voutR .9s ease-in forwards; }
#visitor.ghost { visibility: hidden; }

/* the clue review after each visitor: a verdict, the clues found, the tells missed (one line each) */
#review { cursor: pointer; }
#rvPanel { top: 132px; gap: 6px; padding: 6px 10px 8px; }
#rvVerdict { text-align: center; font-size: 30px; font-weight: 900; letter-spacing: .06em; text-shadow: 0 3px 0 #000, 0 0 16px rgba(0,0,0,.8); animation: slam .45s cubic-bezier(.3,1.6,.5,1) both; }
#rvVerdict.ok { color: #8ff08a; }
#rvVerdict.ng { color: #ff6f62; }
#rvVerdict .mk { display: inline-block; margin-right: 8px; }
#rvWho { text-align: center; font-size: 14px; font-weight: 800; color: #d9cdb6; text-shadow: 0 2px 0 #000; white-space: normal; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rvSec { margin-top: 6px; font-size: 13px; font-weight: 900; letter-spacing: .04em; text-shadow: 0 2px 0 #000; border-bottom: 1px solid rgba(242,180,90,.3); padding-bottom: 2px; }
.rvSec.used { color: #9fd3a0; }
.rvSec.miss { color: #ffb08a; }
.rvList { display: flex; flex-direction: column; gap: 3px; }
.rvRow { display: flex; align-items: center; gap: 7px; font-size: 14px; line-height: 21px; text-shadow: 0 1px 2px #000; animation: fadeIn .3s both; }
.rvRow img { width: 18px; height: 18px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 1px #000); }
.rvRow .ic { width: 18px; flex: none; text-align: center; font-weight: 900; color: var(--amber); }
.rvRow .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvRow.good .ic { color: #8ff08a; }
.rvRow.dim .t { color: #b8ad98; }
#bRvNext { margin-top: 8px; }
#review { z-index: 52; }

/* the results list: a 破綻回顧 button on every visitor's row; many visitors scroll inside the panel */
#resRows { overflow-y: auto; padding: 6px 2px 2px; overscroll-behavior: contain; scrollbar-width: none; }
#resRows::-webkit-scrollbar { display: none; }
/* compact rows, so a whole night fits without scrolling: thumb, name, human/imposter · let in/refused, ✓/✗ */
#results .panel { gap: 6px; }
#resRows { gap: 6px; }
#resScore { line-height: 1.3; }
.rrow { flex: none; position: relative; min-height: 50px; padding: 4px 6px; gap: 10px; }
#resRows.withRv .rrow { padding-right: 76px; }
.rrow .rname { font-size: 15px; line-height: 1.25; }
.rrow .rsub { font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow .rmark { font-size: 24px; width: 24px; }
/* the thumbnail frames the face: portraits zoom in a little toward the head */
.rrow .rthumb img:not(.sq) { transform: scale(1.3); transform-origin: 50% 8%; }
.rrow .rnew { font-size: 12px; line-height: 14px; top: -6px; padding: 0 4px; z-index: 2; pointer-events: none; }
/* the review button covers its row; only the small chip on the right is drawn */
.rvBtn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding: 0 6px; margin: 0; border: 0; border-radius: 8px;
  background: transparent; font: inherit; color: inherit; cursor: pointer; transition: background .15s, box-shadow .15s; }
.rvBtn .chip { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 58px; height: 30px; padding: 0 8px; border-radius: 8px;
  border: 2px solid #f2b45a; background: linear-gradient(#5a4428, #2e2214); color: #ffe7b8; font-size: 13px; font-weight: 900; line-height: 1;
  text-shadow: 0 1px 0 #000, 0 0 3px #000; box-shadow: inset 0 1px 0 rgba(255,230,180,.35), 0 2px 0 #000; opacity: .35; transition: opacity .25s, transform .1s, filter .15s; }
.rvBtn .chip img { width: 18px; height: 18px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 1px #000); }
.rvBtn .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#resRows.rvReady .rvBtn .chip { opacity: 1; animation: pop .25s; }
.rvBtn:disabled { cursor: default; }
.rvBtn.focus, #resRows.rvReady .rvBtn:hover { background: rgba(242,180,90,.12); box-shadow: inset 0 0 0 2px rgba(242,180,90,.85); }
.rvBtn.focus .chip, #resRows.rvReady .rvBtn:hover .chip { filter: brightness(1.3); transform: scale(1.06); }
.rvBtn.pressed .chip, .rvBtn:active .chip { transform: scale(.92); }

/* a file's page covers the grid of files: the grid steps out of the way while it is open */
#codex:has(#cxDetail:not(.hidden)) > .panel { visibility: hidden; }
