/* Real text over the town keeps the sign sharp and its link accessible. */
.agency-sign{position:absolute;left:68%;top:92%;z-index:3;transform:translate(-50%,-50%) rotate(-2deg);width:24%;padding:10px 12px;background:#f8e5bd;color:#3d493d;border:3px solid #8b6240;border-radius:7px;box-shadow:0 3px 0 #5d422b,0 6px 13px #20344055;text-align:center;line-height:1.35;text-decoration:none;outline-offset:6px;font-family:Georgia,'Times New Roman',serif}.agency-sign:after{content:'';position:absolute;top:100%;left:calc(50% - 5px);height:20px;width:10px;background:#805937;border:1px solid #5d422b;z-index:-1}.agency-sign strong{display:block;font-size:clamp(13px,1.3vw,18px)}.agency-sign>span{display:block;font-size:clamp(10px,1.05vw,14px);margin-top:4px}.agency-sign:hover,.agency-sign:focus-visible{background:#fff1cf;box-shadow:0 0 0 5px #fff4bf66,0 5px 15px #20344066}.clue-note{display:flex;align-items:flex-start;gap:20px;border:1px solid #c6ad7855;border-radius:8px;background:#f6dfaa0a;padding:22px 25px;margin-top:24px;margin-bottom:30px}.clue-symbol{color:#f4d497;font-size:35px;line-height:1}.clue-note h3{font-size:24px;color:#f7e7c8}.clue-note p{font-size:13px;line-height:1.8;margin:10px 0 0;color:#dce4e5}.clue-note a{text-underline-offset:3px;color:#f3d9ab}.clue-note p.clue-extra{font-size:12px;color:#b9cbd1}.craft-card{display:flex;gap:19px;align-items:center;margin:10px 0 25px;padding:19px;border:1px solid #d8c9aa;border-radius:8px;background:#fffaf0}.craft-card>img{width:100px;height:124px;object-fit:contain;flex:0 0 100px;background:white}.craft-card .eyebrow{font-size:9px;letter-spacing:1.1px;margin-bottom:8px}.craft-card h3{font-size:23px}.craft-card p:not(.eyebrow){font-size:12px;line-height:1.65;margin:10px 0}.craft-card .button{font-size:11px;min-height:40px;padding:9px 11px;gap:7px}.chapter-signature{font-size:11px;line-height:1.8;color:#66736c;padding-top:15px;border-top:1px solid var(--line);margin:20px 0 15px}.chapter-signature a{text-underline-offset:3px}.chapter-actions{display:flex;align-items:center;gap:15px;margin:0 0 20px;flex-wrap:wrap}.chapter-actions .button{font-size:12px}.chapter-actions>span{font-size:10px;color:var(--muted)}#print-story{display:none}
@media(max-width:600px){.clue-note{padding:19px 17px;gap:12px}.clue-note h3{font-size:22px}.clue-note p{font-size:12px}.clue-symbol{font-size:24px}.agency-sign{padding:8px 9px}.agency-sign strong{font-size:12px}.agency-sign>span{font-size:10px}.craft-card{align-items:flex-start;gap:12px;padding:14px}.craft-card>img{width:76px;height:103px;flex-basis:76px}.craft-card h3{font-size:21px}.craft-card .button{font-size:10px}.chapter-actions{align-items:flex-start;flex-direction:column;gap:8px}.chapter-signature{font-size:10px}}
@page{size:A4 portrait;margin:15mm}
@media print{
 body.printing-chapter{background:white!important;color:#111!important;font:11pt/1.52 Georgia,'Times New Roman',serif!important;overflow:visible!important}
 body.printing-chapter>*:not(#print-story){display:none!important}
 body.printing-chapter #print-story{display:block!important;position:static!important;width:auto!important;margin:0!important;padding:0!important}
 #print-story h1{font:normal 23pt/1.2 Georgia,'Times New Roman',serif;letter-spacing:0;margin:0 0 6mm;color:#111}
 #print-story .print-date{font:8pt/1.5 Arial,sans-serif;letter-spacing:1pt;margin:0 0 4mm}
 #print-story>p{margin:0 0 3mm}
 #print-story .print-art{float:right;width:45mm;max-height:66mm;object-fit:contain;margin:0 0 5mm 6mm}
 #print-story .print-task{clear:both;border:1pt solid #888;padding:4mm;margin:5mm 0;break-inside:avoid}
 #print-story .print-task h2{font:700 11pt/1.3 Arial,sans-serif;letter-spacing:0;margin:0 0 2mm}
 #print-story .print-task p{font:10pt/1.5 Arial,sans-serif;margin:0}
 #print-story .print-clue{font:9.5pt/1.5 Arial,sans-serif;break-inside:avoid}
 #print-story .print-signature{clear:both;font:9pt/1.5 Arial,sans-serif;border-top:.6pt solid #888;padding-top:4mm;margin-top:5mm;break-inside:avoid}
 #print-story img{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

.paper-notebook{display:flex;align-items:center;gap:30px;border:1px solid #ddd3bd;background:#fffaf0;border-radius:10px;padding:25px;max-width:850px;margin:0 auto 40px}.paper-notebook img{width:210px;height:140px;object-fit:contain;background:white;flex-shrink:0}.paper-notebook h3{font-size:27px}.paper-notebook p{font-size:13px;color:var(--muted);line-height:1.75}.paper-notebook .button{font-size:12px}.storage-warning{background:#fff0d3;border:1px solid #dbbf85;border-radius:5px;padding:15px;text-align:center;font-size:13px}@media(max-width:600px){.paper-notebook{flex-direction:column;text-align:center;gap:18px;padding:20px}.paper-notebook img{width:240px;height:160px}}

/* Review keeps every day visible without changing the live calendar. */
.preview-open .hotspot .number{opacity:1;transform:scale(.85)}
.preview-open .hotspot:hover .number,.preview-open .hotspot:focus-visible .number{transform:scale(1)}

/* The farewell illustration is revealed only after a correct submitted solution. */
.ending-art{margin:22px 0 0}.ending-art img{display:block;width:100%;height:auto;border-radius:8px;box-shadow:0 5px 24px #42331d12}
#solution-message{scroll-margin-top:28px}#solution-message.solution-error{color:#973d30;font-weight:700}

/* A slightly wider reward, keeping the original picture proportions. */
#ending{max-width:800px}
.ending-zoom-button{margin-top:14px;background:#fffaf0;min-height:44px}
#ending-image{cursor:zoom-in}
#ending-image-dialog{width:min(1280px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:10px;overflow:hidden;background:#faf6ee;color:#203c48}
.ending-image-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px}
.ending-image-header h2{font-size:24px;letter-spacing:0;line-height:1.3}
#close-ending-image{display:grid;place-items:center;width:42px;height:42px;flex:none;border:1px solid #d8d8ca;border-radius:50%;background:#fffdf7;color:#203c48;font:28px/1 Arial,sans-serif}
#large-ending-image{display:block;width:100%;height:auto;max-height:calc(100dvh - 110px);object-fit:contain}
@media(max-width:600px){.ending-image-header{padding:10px 12px;gap:8px}.ending-image-header h2{font-size:18px}#close-ending-image{width:38px;height:38px}.ending-zoom-button{font-size:12px}}
