.clue-object{position:relative;width:min(100%,350px);margin:3px auto 10px}
#sheet .clue-image{position:relative;display:block;line-height:0;width:100%;padding:0;background:transparent;border:0;border-radius:3px;overflow:hidden;box-shadow:0 4px 9px #0005;cursor:zoom-in}
.clue-image img{display:block;width:100%;height:auto}
.lens-mark{position:absolute;right:9px;bottom:9px;width:27px;height:27px;border-radius:50%;background:#252629ae}
.lens-mark::before,.lens-mark::after{position:absolute;content:''}
.lens-mark::before{border:1.6px solid white;border-radius:50%;width:9px;height:9px;left:6px;top:6px}
.lens-mark::after{width:7px;height:1.5px;background:#fff;left:15px;top:18px;transform:rotate(45deg)}
#sheet .clue-reading{margin:7px 0}
#sheet .clue-reading summary{font-size:13px}
#sheet .photo-flip{display:block;width:100%;margin-top:4px}
.trace-view[open]{width:min(96vw,740px);max-height:96dvh;margin:auto;padding:0;border:1px solid #fff5;border-radius:8px;background:#303235ee;color:white;box-shadow:0 10px 50px #0008}
.trace-view::backdrop{background:#101213b5}
.trace-field{display:flex;justify-content:safe center;overflow:auto;max-height:calc(94dvh - 58px);overscroll-behavior:contain}
.trace-field img{display:block;flex:none;width:min(100%,calc(94dvh - 58px));height:auto;align-self:flex-start}
.trace-field.zoom{display:block}
.trace-field.zoom img{width:max(680px,135%);max-width:none}
.trace-bar{display:flex;align-items:center;gap:6px;padding:4px 8px;font:14px var(--story)}
.trace-bar span{flex:1}.trace-bar button{padding:5px 10px;background:#ffffff10;color:white;border:1px solid #ffffff55}
.notebook .right-ink .clue-object{width:95%;transform:rotate(-1deg);margin:8px auto 15px}
.notebook .right-ink .clue-object:after{content:'';position:absolute;pointer-events:none;top:-4px;left:38%;width:24%;height:9px;background:#bfceb4a6;transform:rotate(4deg)}
#sheet .right-ink .clue-reading summary{font:14px var(--pencil);color:#3a5056}
#sheet .right-ink .clue-reading p{font:17px/1.5 var(--pencil);color:#314653}
.spine-row{display:flex;justify-content:center;align-items:flex-end;gap:5px;padding:13px 12px 4px;border-bottom:9px ridge #6d4a35;background:linear-gradient(0deg,#32261f,#332c2533)}
#sheet .spine-row button{height:99px;flex:0 1 52px;padding:4px;display:grid;place-content:center;border-radius:4px 5px 0 0;background:linear-gradient(90deg,#ffffff22,transparent 12%,#0003 17%,transparent 22%),var(--cloth);border:1px solid #141815;box-shadow:inset 0 8px 0 -6px #e5d6ad,inset 0 -9px 0 -7px #e5d6ad}
.spine-row img,.bookline img{width:32px;height:32px;object-fit:contain}
#sheet .spine-row button:disabled{opacity:.68;transform:translateY(-8px)}
.bookline span{min-height:35px;display:grid;place-items:center}
#sheet .tape .tape-piece{display:flex;align-items:center;justify-content:space-between;gap:7px;color:#372f27;background:linear-gradient(to right,#ddd9c9 0 24%,#4e352d 25% 74%,#ddd9c9 75%);border-radius:2px;height:37px;min-width:138px;padding:0 7px}
.tape-piece b{font:17px var(--pencil);color:#fff}.cut-marks{width:24px;height:24px;display:flex;gap:2px;justify-content:center}.cut-marks i{display:block;width:2px;height:16px;background:#4d4037;transform:rotate(5deg)}
#sheet .signals{border:3px ridge #a89d82;border-radius:8px;background:linear-gradient(115deg,#353c39,#4b4941);padding:8px}
#sheet:not(.notebook) .signals button{position:relative;justify-self:center;width:35px;height:35px;min-height:35px;padding:0;border-radius:50%;border:4px ridge #a69c84;background:radial-gradient(at 37% 30%,#80836b,#41493f 50%,#292e2c);color:transparent}
#sheet:not(.notebook) .signals button[aria-pressed=true]{background:radial-gradient(at 37% 30%,#fffcde,#efc96a 54%,#957438);box-shadow:0 0 9px #ffde8170}
#sheet .plate{position:relative;background:linear-gradient(135deg,#a59562,#6f603c);padding:11px;gap:0;border:2px outset #b0a17c}
#sheet:not(.notebook) .plate span{background:transparent;color:transparent}
#sheet:not(.notebook) .plate .lit{color:#392f23;background:#f4dfac;box-shadow:inset 1px 2px 4px #5d482e;border-radius:50%;font:25px var(--pencil)}
.plate:after{content:'';position:absolute;width:13px;height:13px;background:#303233;clip-path:polygon(0 0,100% 0,0 100%);left:-2px;top:-2px}
.plate[data-corner="0"]:after{top:auto;bottom:-2px;transform:rotate(-90deg)}.plate[data-corner="2"]:after{left:auto;right:-2px;transform:rotate(90deg)}.plate[data-corner="3"]:after{left:auto;top:auto;right:-2px;bottom:-2px;transform:rotate(180deg)}
@media(max-height:610px){#sheet:not(.notebook) .clue-object{width:min(100%,240px)}}
