@font-face{font-family:Alegreya;src:url("alegreya.259008703e72.ttf") format('truetype');font-style:normal;font-weight:400 900;font-display:swap}
@font-face{font-family:Alegreya;src:url("alegreya-italic.2e58806da439.ttf") format('truetype');font-style:italic;font-weight:400 900;font-display:swap}
#puzzles-detective-study{color-scheme:light;font-family:Alegreya,Georgia,serif}
#puzzles-detective-study .app{min-height:100vh;border-radius:0;padding-bottom:10px}
#puzzles-detective-study .nav a{text-decoration:none;font-size:18px;color:var(--ink)}
#puzzles-detective-study .brand{text-decoration:none}
#puzzles-detective-study h1,#puzzles-detective-study h2,#puzzles-detective-study h3{font-family:Alegreya,Georgia,serif}
#puzzles-detective-study .condition{font-family:Alegreya,Georgia,serif;font-size:23px;line-height:1.55;overflow-wrap:anywhere}
#puzzles-detective-study .paper .condition p:last-child{margin-bottom:0}
#puzzles-detective-study .puzzle-head{display:flex;align-items:center;flex-wrap:wrap;margin-bottom:24px}
#puzzles-detective-study .word{cursor:pointer;font-family:inherit}
#puzzles-detective-study .action{display:inline-block;text-decoration:none;cursor:pointer;font-family:inherit;font-size:18px;margin-top:8px}
#puzzles-detective-study .plain{cursor:pointer}
#puzzles-detective-study .response:empty{display:none}
#puzzles-detective-study .hint-line{display:flex;flex-wrap:wrap;gap:15px}
#puzzles-detective-study .chapter{text-decoration:none;display:flex;flex-direction:column;justify-content:space-between;gap:15px;min-height:150px}
#puzzles-detective-study .gallery-heading{display:flex;align-items:center;gap:16px;padding:0 4px}
#puzzles-detective-study .gallery-heading>.between{flex:1;min-width:0;gap:12px;flex-wrap:wrap}
#puzzles-detective-study .gallery-controls{display:flex;gap:8px;flex-shrink:0}
#puzzles-detective-study .gallery-arrow{width:42px;height:42px;display:grid;place-items:center;padding:0;border:1px solid #998565;border-radius:50%;color:#59472f;background:linear-gradient(145deg,#fff4d7,#c5ac7e 52%,#eedcba);box-shadow:inset 0 1px 1px #fff9e5,0 2px 3px #59472f25;cursor:pointer;transition:box-shadow .18s,opacity .18s}
#puzzles-detective-study .gallery-arrow svg{width:22px;height:22px}
#puzzles-detective-study .gallery-arrow:hover:enabled{box-shadow:inset 0 1px 1px #fff9e5,0 2px 7px #59472f55}
#puzzles-detective-study .gallery-arrow:disabled{opacity:.35;cursor:default;box-shadow:inset 0 1px 1px #fff9e5}
#puzzles-detective-study .gallery-arrow:focus-visible,#puzzles-detective-study .gallery-tray:focus-visible{outline:2px solid var(--sage);outline-offset:4px}
#puzzles-detective-study .gallery-viewport{position:relative;min-width:0}
#puzzles-detective-study .gallery-viewport:before,#puzzles-detective-study .gallery-viewport:after{content:'';position:absolute;top:12px;bottom:19px;width:22px;z-index:2;pointer-events:none;opacity:0;transition:opacity .2s}
#puzzles-detective-study .gallery-viewport:before{left:0;background:linear-gradient(90deg,var(--desk),transparent)}
#puzzles-detective-study .gallery-viewport:after{right:0;background:linear-gradient(-90deg,var(--desk),transparent)}
#puzzles-detective-study .gallery-has-older .gallery-viewport:before,#puzzles-detective-study .gallery-has-newer .gallery-viewport:after{opacity:1}
#puzzles-detective-study .gallery-tray{display:flex;gap:18px;overflow-x:auto;overflow-y:hidden;overflow-anchor:none;max-height:none;padding:24px 12px 26px;scroll-padding-inline:12px;scrollbar-width:thin;scrollbar-color:#9c8867 #d8c8a6;touch-action:pan-x pan-y pinch-zoom;border-bottom:1px solid var(--edge)}
#puzzles-detective-study .gallery-tray::-webkit-scrollbar{height:7px}
#puzzles-detective-study .gallery-tray::-webkit-scrollbar-track{background:#d8c8a6;border-radius:8px}
#puzzles-detective-study .gallery-tray::-webkit-scrollbar-thumb{background:#9c8867;border-radius:8px;border:1px solid #d8c8a6}
#puzzles-detective-study .gallery-tray>.chapter{flex:0 0 165px;min-width:0;transform:rotate(var(--chapter-angle,-2deg));scroll-margin-inline:14px}
#puzzles-detective-study .gallery-tray>.chapter:hover{transform:translateY(-5px) rotate(0deg)}
#puzzles-detective-study .gallery-tray>.chapter:focus-visible{outline:2px solid var(--sage);outline-offset:5px}
#puzzles-detective-study .gallery-tray:after{display:none}
#puzzles-detective-study .gallery-tray>.chapter.chapter-current{border:6px solid transparent;border-radius:7px;outline:0;transform:translateY(-5px);background:linear-gradient(#fff5df,#f3e7c9) padding-box,linear-gradient(135deg,#604b2e 0%,#e7d5a3 8%,#a48c56 17%,#fff0c0 27%,#b3975c 40%,#705b37 53%,#d9c28a 68%,#ffefbd 79%,#8f7548 92%,#58462e 100%) border-box;box-shadow:inset 0 0 0 1px #8b7045,inset 0 0 0 3px #fff9e680,0 0 0 1px #695334,2px 8px 11px #59472f40}
#puzzles-detective-study .gallery-tray>.chapter.chapter-current:before{content:'';position:absolute;inset:-4px;pointer-events:none;background:radial-gradient(circle at 3px 3px,#fff4c9 0 1px,#806b43 1.5px 2.5px,transparent 3px),radial-gradient(circle at calc(100% - 3px) 3px,#fff4c9 0 1px,#806b43 1.5px 2.5px,transparent 3px),radial-gradient(circle at 3px calc(100% - 3px),#fff4c9 0 1px,#806b43 1.5px 2.5px,transparent 3px),radial-gradient(circle at calc(100% - 3px) calc(100% - 3px),#fff4c9 0 1px,#806b43 1.5px 2.5px,transparent 3px)}
#puzzles-detective-study .gallery-tray>.chapter.chapter-current:hover{transform:translateY(-7px);box-shadow:inset 0 0 0 1px #8b7045,inset 0 0 0 3px #fff9e680,0 0 0 1px #695334,2px 10px 14px #59472f50}
#puzzles-detective-study .gallery-tray>.chapter.chapter-current:focus-visible{outline:2px solid var(--sage);outline-offset:5px}
#puzzles-detective-study .gallery-tray>.chapter-future{opacity:.65;border-left-color:var(--edge);box-shadow:2px 3px 4px var(--shadow)}
#puzzles-detective-study .gallery-notice{margin:10px 4px 0;color:var(--outer-ink);font-size:16px}
#puzzles-detective-study .gallery-notice .plain{color:inherit;text-decoration:underline;text-underline-offset:3px}
@media(prefers-reduced-motion:reduce){#puzzles-detective-study .gallery-tray>.chapter,#puzzles-detective-study .gallery-arrow,#puzzles-detective-study .gallery-viewport:before,#puzzles-detective-study .gallery-viewport:after{transition:none}}
#puzzles-detective-study .chapter-stamp{display:block;align-self:center;padding:3px 7px;color:#2e694c;border:2px solid currentColor;outline:1px solid currentColor;outline-offset:2px;transform:rotate(-8deg);font-size:17px;font-weight:700;text-transform:uppercase;letter-spacing:.045em;opacity:.8;mix-blend-mode:multiply;margin:9px 0 2px}
#puzzles-detective-study .difficulty-tooltip{position:absolute;right:0;top:calc(100% + 8px);width:205px;padding:10px 12px;border:1px solid #c5c3ab;background:#fbfaf0;box-shadow:2px 4px 10px #3f4c3826;border-radius:5px;font:14px/1.4 'Segoe UI',sans-serif;white-space:normal;transform:rotate(-4deg);z-index:8;visibility:hidden;opacity:0;pointer-events:none}
#puzzles-detective-study .difficulty:hover .difficulty-tooltip,#puzzles-detective-study .difficulty:focus .difficulty-tooltip{visibility:visible;opacity:1}
#puzzles-detective-study .difficulty:focus-visible{outline:2px solid #4d7055;outline-offset:2px}
#puzzles-detective-study .stamp-text-block{display:block}
#puzzles-detective-study .coin-guidance{position:fixed;left:50%;bottom:20px;z-index:20;width:max-content;max-width:calc(100vw - 32px);margin:0;padding:10px 17px;background:#f1e8b8;border:1px solid #d2c58e;box-shadow:1px 3px 6px #63552a33;transform:translateX(-50%) rotate(-1deg);font-size:17px;line-height:1.4;text-align:center;pointer-events:none}
#puzzles-detective-study .chapter-future{opacity:.6;background:linear-gradient(120deg,#dbe1d7,#eee9db);filter:blur(.25px);text-align:center;justify-content:center}
#puzzles-detective-study .chapter-future svg{align-self:center}
#puzzles-detective-study .chapter-title{font-weight:400;overflow-wrap:anywhere}
#puzzles-detective-study .chapter-number,#puzzles-detective-study .chapter-status{font-size:14px;color:var(--soft)}
#puzzles-detective-study .rank-card .card-tab{cursor:pointer}
#puzzles-detective-study .rank-card.is-back table{visibility:hidden}
#puzzles-detective-study .rank-card td[colspan]{text-align:left;padding:25px 5px}
#puzzles-detective-study .vole-wrap{display:flex;justify-content:flex-start;min-height:130px;margin-top:8px}
#puzzles-detective-study .vole{width:140px;height:auto;object-fit:contain}
#puzzles-detective-study dialog.case-dialog{border:1px solid #c6c7af;border-radius:5px;background:#faf9ef;color:#3f4235;max-width:min(480px,calc(100vw - 24px));width:480px;max-height:85vh;padding:34px 28px 24px;box-shadow:8px 12px 40px #39322244;overflow:auto;font-family:inherit}
#puzzles-detective-study dialog::backdrop{background:#35403455;backdrop-filter:blur(2px)}
#puzzles-detective-study dialog h2{margin-bottom:18px}
#puzzles-detective-study dialog .response{font-size:18px}
#puzzles-detective-study .collection-row{display:flex;justify-content:space-between;gap:15px;padding:16px 0;border-bottom:1px dashed var(--edge)}
#puzzles-detective-study .preferences{margin-top:30px;border-top:1px dashed var(--edge);padding-top:24px}
#puzzles-detective-study .preferences h2{margin-bottom:20px}
#puzzles-detective-study .checkline{display:flex;align-items:center;gap:10px;margin:18px 0}
#puzzles-detective-study .checkline input{width:20px;height:20px}
#puzzles-detective-study .archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#puzzles-detective-study .archive-item{min-width:0;overflow-wrap:anywhere;border:1px solid var(--edge);padding:20px;background:#eee8d5;box-shadow:2px 3px 0 #c8c7b2;border-radius:2px 8px 2px 2px}
#puzzles-detective-study .season-picker{display:flex;flex-wrap:wrap;gap:8px;margin:25px 0}
#puzzles-detective-study .folder-label{border:1px solid var(--edge);border-radius:8px 8px 2px 2px;padding:8px 12px;background:#e2e8d8;text-decoration:none}
#puzzles-detective-study .folder-label[aria-current]{background:#efe1bb}
#puzzles-detective-study .notices{padding:15px 20px;background:#eee8d5;border-radius:4px}
#puzzles-detective-study .list-pager{display:flex;gap:20px;justify-content:space-between;padding-top:20px;flex-wrap:wrap}
#puzzles-detective-study .review-item{padding:20px 0;border-bottom:1px dashed var(--edge)}
#puzzles-detective-study input,#puzzles-detective-study textarea{font-size:20px}
#puzzles-detective-study .answer-row{align-items:start}
#puzzles-detective-study .answer-row .action{margin-top:0}
@media(max-width:700px){#puzzles-detective-study .top{padding:24px 0 15px}#puzzles-detective-study .hero{padding-left:0;min-height:120px}#puzzles-detective-study .hero h1{font-size:30px}#puzzles-detective-study .hero img{width:160px;max-width:30%}#puzzles-detective-study .paper{padding-left:23px;padding-right:23px}#puzzles-detective-study .gallery-tray{grid-template-columns:repeat(3,minmax(0,1fr))}#puzzles-detective-study .condition{font-size:21px}}
@media(max-width:400px){#puzzles-detective-study .app{padding-left:10px;padding-right:10px}#puzzles-detective-study .paper{padding-left:17px;padding-right:17px}#puzzles-detective-study .answer-row{flex-wrap:wrap}#puzzles-detective-study .answer-row input{flex-basis:100%}#puzzles-detective-study .gallery-tray{grid-template-columns:repeat(2,minmax(0,1fr))}#puzzles-detective-study .archive-grid{grid-template-columns:1fr}#puzzles-detective-study .condition{font-size:20px}#puzzles-detective-study .nav{gap:16px}#puzzles-detective-study .nav a{font-size:17px}#puzzles-detective-study .vole{width:110px}}
#puzzles-detective-study .workshop-nav{display:flex;flex-wrap:wrap;gap:8px 18px;margin-bottom:24px;border-bottom:1px dashed var(--edge);padding-bottom:18px}
#puzzles-detective-study .workshop-nav a{color:var(--ink);text-decoration:none;border-bottom:1px solid #bcbba2}
#puzzles-detective-study .editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}
#puzzles-detective-study .editor-grid>div{min-width:0}
#puzzles-detective-study form label{display:block;margin:14px 0 8px}
#puzzles-detective-study .editor-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
#puzzles-detective-study .editor-toolbar button{min-width:32px;min-height:32px;background:#e8e6d5;border:1px solid #babda4;border-radius:3px;box-shadow:1px 2px 0 #b5b59d;font:inherit;cursor:pointer;padding:4px 9px}
#puzzles-detective-study textarea{display:block;width:100%;max-width:100%;box-sizing:border-box;padding:14px;resize:vertical;border:1px solid var(--edge);background:#fffdf4;color:var(--ink);font-family:Alegreya,Georgia,serif;line-height:1.5}
#puzzles-detective-study select{max-width:100%;width:100%;box-sizing:border-box;background:#f8f4e7;border:1px solid var(--edge);padding:10px;font:inherit;color:var(--ink)}
#puzzles-detective-study .editor-actions,#puzzles-detective-study .search-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:22px 0}
#puzzles-detective-study .search-row input,#puzzles-detective-study .search-row select{flex:1;min-width:120px;width:auto}
#puzzles-detective-study .editor-hint{border-top:1px dashed var(--edge);padding:16px 0}
#puzzles-detective-study .errorlist{padding-left:20px;color:#914d37}
#puzzles-detective-study .preview-dialog{width:700px;max-width:min(700px,calc(100vw - 24px))}
#puzzles-detective-study .preview-tabs{display:flex;gap:12px;margin-bottom:20px}
#puzzles-detective-study .condition img{max-width:100%;height:auto;border-radius:3px}
#puzzles-detective-study #season-results{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
@media(max-width:600px){#puzzles-detective-study .editor-grid{grid-template-columns:1fr}#puzzles-detective-study .workshop-nav{gap:10px 14px}#puzzles-detective-study .collection-row input{min-width:0}#puzzles-detective-study .editor-actions{align-items:stretch;flex-direction:column}}

#puzzles-detective-study .nav .nav-current{font-size:18px;color:var(--ink);border-bottom:2px solid #bba26c;padding-bottom:3px;font-weight:600;cursor:default}
#puzzles-detective-study .workshop-nav [aria-current]{font-weight:600;color:var(--ink);border-bottom:2px solid #bba26c}
#puzzles-detective-study .wordle-stack{position:relative;display:inline-block;max-width:100%}
#puzzles-detective-study .wordle{position:relative;display:flex;align-items:center;justify-content:center;background:none;padding:0 30px 0 15px}
#puzzles-detective-study .wordle::before{content:'';position:absolute;inset:0;background:var(--bookmark-art) center/100% 100% no-repeat;transform:scaleX(-1);z-index:-1}
#puzzles-detective-study .wordle>span{position:relative}
#puzzles-detective-study .wordle-solved{position:absolute;left:4px;top:2px;color:#f3f3df;transform:rotate(1deg);pointer-events:none;filter:drop-shadow(0 2px 2px #263c2c66)}
#puzzles-detective-study .wordle-solved::before{filter:hue-rotate(65deg) saturate(.6) brightness(.48)}
@font-face{font-family:MarckScript;src:url("marck-script.8213f9f79159.ttf") format('truetype');font-style:normal;font-weight:400;font-display:swap}
#puzzles-detective-study .solve-counter{display:flex;flex-direction:column;align-items:center;gap:7px}
#puzzles-detective-study .counter-caption{font-size:18px;color:#676c59;line-height:1.2;max-width:230px;text-align:center}
#puzzles-detective-study .counter-housing{display:flex;gap:3px;padding:9px 11px;border:1px solid #665e4a;border-radius:5px;background:linear-gradient(#5e5a50,#272922 50%,#484a40);box-shadow:inset 0 1px 1px #b9b6a5,0 3px 0 #a29a7c,2px 5px 7px #44392540}
#puzzles-detective-study .counter-mechanism{display:flex;align-items:center;gap:3px}
#puzzles-detective-study .counter-controls{display:flex;flex-direction:column;align-items:center;gap:1px;margin:0}
#puzzles-detective-study .counter-crank,#puzzles-detective-study .counter-reset{position:relative;display:grid;place-items:center;flex-shrink:0;width:36px;margin:0;padding:0;border:0;background:none;color:#61503a;cursor:pointer}
#puzzles-detective-study .counter-crank{height:37px}
#puzzles-detective-study .counter-crank::before{content:'';position:absolute;left:-4px;top:10px;width:21px;height:6px;border:1px solid #766346;border-radius:3px;background:linear-gradient(#d4c29a,#826e4e);box-shadow:0 1px 2px #44392540}
#puzzles-detective-study .crank-arm{position:relative;display:block;width:7px;height:27px;border:1px solid #766346;border-radius:4px;background:linear-gradient(90deg,#826e4e,#d4c29a 48%,#8e7956);box-shadow:1px 2px 2px #44392540;transform:rotate(-35deg);transform-origin:50% 5px;transition:transform .18s}
#puzzles-detective-study .crank-arm::before{content:'';position:absolute;top:-2px;left:-3px;width:11px;height:11px;border:1px solid #66573e;border-radius:50%;background:radial-gradient(circle at 35% 30%,#e7d7ad,#99835b 65%,#5b503a)}
#puzzles-detective-study .crank-knob{position:absolute;left:-3px;bottom:-3px;width:12px;height:15px;border:1px solid #413a2b;border-radius:5px;background:linear-gradient(90deg,#514a38,#897e60 48%,#494331);box-shadow:1px 2px 2px #44392540}
#puzzles-detective-study .counter-crank:active .crank-arm,#puzzles-detective-study .counter-controls[data-counter-action=increment][aria-busy] .counter-crank .crank-arm{transform:rotate(35deg)}
#puzzles-detective-study .counter-reset{height:28px}
#puzzles-detective-study .counter-reset svg{width:23px;height:23px;padding:3px;border:1px solid #8e7956;border-radius:50%;background:linear-gradient(145deg,#e8dab7,#ad9670 58%,#d4c19c);box-shadow:inset 0 1px 0 #fff5d6,0 1px 2px #44392540}
#puzzles-detective-study .counter-reset:active svg{box-shadow:inset 0 1px 3px #44392570}
#puzzles-detective-study .counter-crank:focus-visible,#puzzles-detective-study .counter-reset:focus-visible{outline:2px solid var(--sage);outline-offset:2px;border-radius:4px}
#puzzles-detective-study .counter-controls button:disabled{cursor:wait;opacity:.65}
#puzzles-detective-study .counter-notice{max-width:230px;margin:3px 0 0;padding:0;border:0;background:none;font-size:14px;line-height:1.2;text-align:center}
#puzzles-detective-study .counter-notice.is-success{position:absolute;width:1px;height:1px;max-width:none;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(prefers-reduced-motion:reduce){#puzzles-detective-study .crank-arm{transition:none}}
#puzzles-detective-study .counter-digit{position:relative;display:block;min-width:31px;height:43px;text-align:center;font:35px/43px Georgia,serif;color:#f6edcd;text-shadow:0 1px 2px #070906;border-radius:2px;background:linear-gradient(#414239 0%,#2c2e25 49%,#171b16 50%,#35392e 52%,#34372d 100%);box-shadow:inset 0 1px 0 #6f7060,inset 0 -1px 0 #141911,0 0 1px #070b06}
#puzzles-detective-study .counter-digit::after{content:'';position:absolute;left:-1px;right:-1px;top:50%;height:1px;background:#171a14;box-shadow:0 1px 0 #90917a33}
#puzzles-detective-study .counter-digit::before{content:'';position:absolute;inset:19px -1px auto;height:5px;border-left:2px solid #9c9782;border-right:2px solid #9c9782}
#puzzles-detective-study .counter-digit.is-changing{animation:counter-flap .38s ease-out;transform-origin:50% 50%}
@keyframes counter-flap{0%{transform:perspective(150px) rotateX(-65deg);filter:brightness(.5)}100%{transform:perspective(150px) rotateX(0);filter:brightness(1)}}
#puzzles-detective-study .hint-drawer{position:relative;isolation:isolate;width:min(680px,100%);margin:28px auto 0;padding:14px 22px 24px;border:solid transparent;border-width:24px 20px 38px;box-shadow:none;background:none;border-radius:0}
#puzzles-detective-study .hint-drawer::before{content:'';position:absolute;inset:-24px -20px -38px;border:solid transparent;border-width:24px 20px 38px;border-image:url("hint-drawer-v2.18923828dfee.webp") 90 65 105 65 fill stretch;filter:saturate(.35) brightness(1.28) drop-shadow(1px 3px 3px #48372520);opacity:.72;z-index:-1;pointer-events:none}
#puzzles-detective-study .hint-drawer h2{font-size:20px;color:#555344;text-shadow:none;text-align:center;margin:0 0 16px}
#puzzles-detective-study .hint-drawer-contents{position:relative;display:flex;flex-direction:column;gap:18px;min-width:0;padding:4px 8px 28px}
#puzzles-detective-study .hint-envelope-stack{position:relative;isolation:isolate;align-self:center;width:min(270px,92%);height:calc(145px + (var(--stack-size) - 1)*26px);margin:0 0 5px}
#puzzles-detective-study .hint-envelope{position:relative;display:block;width:310px;max-width:100%;height:155px;padding:0;border:0;border-radius:0;background:url("hint-envelope-v2.b3ffe7a7d63e.webp") center/100% 100% no-repeat;box-shadow:none;cursor:pointer;filter:drop-shadow(2px 5px 3px #32221470);clip-path:none;isolation:auto}
#puzzles-detective-study .hint-envelope::before,#puzzles-detective-study .hint-envelope::after{display:none}
#puzzles-detective-study .hint-envelope span{position:absolute;top:77%;left:0;width:100%;padding:0;margin:0;background:none;font:27px/1 MarckScript,cursive;color:#445b62;text-align:center;transform:translateY(-50%)}
#puzzles-detective-study .hint-envelope-stack>.hint-envelope{position:absolute;left:calc(var(--envelope-layer)*8px);top:calc(var(--envelope-layer)*26px);width:calc(100% - 16px);height:auto;aspect-ratio:2/1;z-index:calc(10 - var(--envelope-layer));transform:rotate(-3deg);transition:transform .18s}
#puzzles-detective-study .hint-envelope-stack>.hint-envelope:disabled{transform:rotate(5deg);cursor:default;opacity:1}
#puzzles-detective-study .hint-envelope:not(:disabled):hover{transform:rotate(-3deg) translateY(-5px)}
#puzzles-detective-study .hint-envelope.envelope-pink{filter:hue-rotate(145deg) saturate(.7) brightness(1.05) drop-shadow(2px 5px 3px #32221470)}
#puzzles-detective-study .hint-letter{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:start;gap:14px;min-width:0;padding:5px 0}
#puzzles-detective-study .hint-envelope.crumpled{width:96px;height:100px;margin-top:8px;transform:rotate(-11deg);background-image:url("hint-crumpled-v3.34ebedcd1ca7.webp");background-size:contain;clip-path:none;filter:drop-shadow(1px 3px 2px #32221435)}
#puzzles-detective-study .hint-envelope.crumpled.envelope-pink{filter:hue-rotate(145deg) saturate(.7) brightness(1.05) drop-shadow(1px 3px 2px #32221435)}
#puzzles-detective-study .hint-note{min-width:0;padding:16px 20px;background:linear-gradient(108deg,#e9ddbf,#fffdf1 9%,#fcf7e6 90%,#e9dfc8);border:1px solid #c5bb9a;box-shadow:1px 2px 3px #271b1525;transform:rotate(.5deg);font-size:20px;overflow-wrap:anywhere}
#puzzles-detective-study .hint-note p:last-child{margin-bottom:0}
#puzzles-detective-study .rodent-guest{position:relative;display:inline-flex;align-items:end;outline-offset:5px}
#puzzles-detective-study .rodent-guest .vole{width:150px;height:115px}
#puzzles-detective-study .rodent-name{position:absolute;bottom:100%;left:0;visibility:hidden;opacity:0;white-space:nowrap;background:#faf7e7;border:1px solid #bfb69b;box-shadow:2px 3px 8px #5d533e2b;padding:8px 12px;border-radius:3px 7px 3px 3px;font-size:17px;color:#515842;transition:opacity .15s;pointer-events:none}
#puzzles-detective-study .rodent-guest:hover .rodent-name,#puzzles-detective-study .rodent-guest:focus .rodent-name{visibility:visible;opacity:1}
#puzzles-detective-study .collection-stats{display:flex;gap:36px;flex-wrap:wrap;padding-bottom:24px;border-bottom:1px dashed var(--edge)}
#puzzles-detective-study .collection-stats>div{display:flex;flex-direction:column;gap:4px;max-width:220px}
#puzzles-detective-study .collection-stats strong{font-size:35px}
#puzzles-detective-study .collection-stats span{font-size:18px;color:var(--soft)}
#puzzles-detective-study .hero .profile-name{font-size:23px;margin:12px 0 0;color:var(--soft)}
@media(max-width:650px){#puzzles-detective-study .nav{flex-wrap:wrap}#puzzles-detective-study .solve-counter{order:-1;flex-basis:100%;margin-bottom:15px}#puzzles-detective-study .hint-drawer{padding:10px 8px 20px;border-width:20px 14px 30px;margin-top:24px}#puzzles-detective-study .hint-drawer::before{inset:-20px -14px -30px;border-width:20px 14px 30px}#puzzles-detective-study .hint-drawer h2{font-size:19px}#puzzles-detective-study .hint-envelope-stack{height:calc(min(270px,100vw - 96px)/2 + (var(--stack-size) - 1)*26px + 10px)}#puzzles-detective-study .hint-letter.is-open{grid-template-columns:minmax(0,1fr);gap:4px}#puzzles-detective-study .hint-envelope.crumpled{width:82px;height:76px;justify-self:start;margin:0 0 5px 4px}#puzzles-detective-study .hint-note{padding:14px;font-size:20px}#puzzles-detective-study .wordle{padding:0 27px 0 12px}#puzzles-detective-study .collection-stats{gap:24px}#puzzles-detective-study .collection-stats>div{max-width:140px}}
@media(prefers-reduced-motion:reduce){#puzzles-detective-study .counter-digit.is-changing{animation:none}#puzzles-detective-study .hint-envelope-stack>.hint-envelope{transition:none}}

#puzzles-detective-study .condition-wrap{position:relative}
#puzzles-detective-study .condition-wrap.is-investigated{min-height:265px}
#puzzles-detective-study .investigated-stamp{position:absolute;left:var(--stamp-x,50%);top:var(--stamp-y,50%);width:min(640px,94%);padding:15px 12px;border:4px solid #2e694c;outline:1px solid #2e694c;outline-offset:5px;border-radius:3px;color:#2e694c;text-align:center;font:bold clamp(24px,4vw,39px)/1.12 Alegreya,Georgia,serif;letter-spacing:.04em;text-transform:uppercase;transform:translate(-50%,-50%) rotate(var(--stamp-angle,-5deg));opacity:.78;mix-blend-mode:multiply;pointer-events:none;z-index:2;mask-image:repeating-linear-gradient(172deg,#000 0 13px,#000b 13px 14px,#000 14px 29px)}
#puzzles-detective-study .investigated-stamp.stamp-new{animation:stamp-down .4s ease-out}
#puzzles-detective-study .investigated-stamp span{display:block}
#puzzles-detective-study .investigated-stamp span+span{font-size:.8em;letter-spacing:.055em;margin-top:4px}
@keyframes stamp-down{0%{opacity:0;scale:1.3}70%{opacity:.9;scale:.98}100%{opacity:.78;scale:1}}
#puzzles-detective-study .reward-layer{position:absolute;inset:0;pointer-events:none;z-index:3}
#puzzles-detective-study .reward-coin,#puzzles-detective-study .coin-preview{width:112px;height:112px;border:0;background-color:transparent;background-position:center;background-size:contain;background-repeat:no-repeat;padding:0;color:#634311;font-family:Alegreya,Georgia,serif;filter:drop-shadow(2px 4px 3px #47351f45);text-shadow:0 1px 0 #fff1b6;isolation:isolate}
#puzzles-detective-study .reward-coin{position:absolute;left:var(--coin-x);top:var(--coin-y);transform:translate(-50%,-50%) rotate(var(--coin-angle));pointer-events:auto;cursor:pointer;transition:filter .12s}
#puzzles-detective-study .reward-coin:hover{filter:drop-shadow(2px 6px 4px #47351f60) brightness(1.06)}
#puzzles-detective-study .reward-coin:focus-visible{outline:3px solid #365a42;outline-offset:4px;border-radius:50%}
#puzzles-detective-study .reward-coin:disabled{cursor:wait}
#puzzles-detective-study .reward-coin span,#puzzles-detective-study .coin-preview span{position:absolute;left:0;right:0;text-align:center;line-height:1}
#puzzles-detective-study .coin-denomination{top:34%;font-size:39px;font-weight:700}
#puzzles-detective-study .coin-unit{top:66%;font-size:14px}
#puzzles-detective-study .coin-season{top:80%;font-size:11px;white-space:nowrap}
#puzzles-detective-study .coin-preview{position:relative;display:block;width:180px;height:180px;margin:20px auto}
#puzzles-detective-study .coin-preview .coin-denomination{font-size:64px}
#puzzles-detective-study .coin-preview .coin-unit{font-size:21px}
#puzzles-detective-study .coin-preview .coin-season{font-size:17px}
#puzzles-detective-study .season-coin-editor{margin:22px 0 30px;padding-bottom:25px;border-bottom:1px dashed var(--edge)}
#puzzles-detective-study .pending-rewards{margin:26px 0;padding:20px;background:#ede6ca;border:1px solid #c8bc94;border-radius:4px 12px 4px 4px}
#puzzles-detective-study .pending-rewards h2{margin-bottom:10px}
#puzzles-detective-study .pending-rewards strong{font-size:18px;font-weight:500;white-space:nowrap}
@media(max-width:650px){#puzzles-detective-study .reward-coin{width:86px;height:86px}#puzzles-detective-study .reward-coin .coin-denomination{font-size:29px}#puzzles-detective-study .reward-coin .coin-unit{font-size:11px}#puzzles-detective-study .reward-coin .coin-season{font-size:9px}#puzzles-detective-study .investigated-stamp{width:88%;font-size:26px;padding:12px 6px;border-width:3px;outline-offset:3px}#puzzles-detective-study .pending-rewards .collection-row{flex-wrap:wrap}#puzzles-detective-study .condition-wrap.is-investigated{min-height:300px}}
@media(prefers-reduced-motion:reduce){#puzzles-detective-study .investigated-stamp.stamp-new{animation:none}#puzzles-detective-study .reward-coin{transition:none}}

/* Typed creation date belongs to the Wordle sticker, not to the answer area. */
#puzzles-detective-study .puzzle-origin{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;max-width:100%;flex:0 1 270px}
#puzzles-detective-study .puzzle-created{display:block;max-width:100%;color:#575b48;font:600 16px/1.5 "Courier New",Courier,monospace;letter-spacing:-.025em;text-shadow:.35px .2px 0 #575b483d;transform:rotate(-.6deg);transform-origin:left center;mix-blend-mode:multiply}
@media(max-width:650px){#puzzles-detective-study .puzzle-origin{flex-basis:245px;gap:8px}#puzzles-detective-study .puzzle-created{font-size:14px}}

#puzzles-detective-study .recheck-action{display:inline-flex;margin:10px 0 0;padding:9px 15px;font-size:18px;cursor:pointer}

/* A field guide at the top of the desk, with readable numbered steps. */
#puzzles-detective-study .nav{align-items:center;flex-wrap:wrap}
#puzzles-detective-study .nav .rules-trigger{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 14px 6px 10px;background:linear-gradient(135deg,#f3e7bc,#e6d7a5);border:1px solid #b5a171;border-radius:3px 10px 3px 3px;box-shadow:1px 3px 0 #bfb38d,2px 4px 6px #6653331a;color:#4c5540;font:600 18px Alegreya,Georgia,serif;cursor:pointer;transition:background .15s,box-shadow .15s}
#puzzles-detective-study .nav .rules-trigger:hover{background:#f6edcf;box-shadow:1px 3px 0 #bfb38d,2px 5px 8px #66533333}
#puzzles-detective-study .rules-trigger-icon{display:grid;place-items:center;width:23px;height:23px;border:1px solid #8b8b64;border-radius:50%;font-size:18px;font-style:italic}
#puzzles-detective-study dialog.rules-dialog{width:760px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:0;transform:none;border-radius:4px 15px 4px 5px}
#puzzles-detective-study .rules-heading{position:sticky;top:0;z-index:1;padding:28px 60px 15px 36px;background:#faf9ef;border-bottom:1px solid #dedcc6}
#puzzles-detective-study .rules-heading h2{margin:0;font-size:32px}
#puzzles-detective-study .rules-heading .dialog-close{top:20px;right:14px;width:44px;height:44px}
#puzzles-detective-study .rules-content{padding:12px 36px 30px;font-size:20px;line-height:1.5;overflow-wrap:anywhere}
#puzzles-detective-study .rules-intro{color:#69725a}
#puzzles-detective-study .rules-steps{counter-reset:research-step;list-style:none;padding:0;margin:24px 0}
#puzzles-detective-study .rules-steps>li{position:relative;counter-increment:research-step;padding:0 0 20px 49px;margin:0 0 22px;border-bottom:1px dashed #d6d4bc}
#puzzles-detective-study .rules-steps>li::before{content:counter(research-step);position:absolute;left:0;top:0;display:grid;place-items:center;width:32px;height:32px;border:1px solid #abb797;border-radius:50%;background:#e7ead9;color:#52694b;font-size:21px}
#puzzles-detective-study .rules-steps h3{font-size:24px;font-weight:600;line-height:1.3}
#puzzles-detective-study .rules-steps p{margin:10px 0 0}
#puzzles-detective-study .rules-steps .rules-example{padding:10px 14px;background:#f0eddc;border-left:2px solid #bca778;font-size:18px;color:#676b55}
/* A separate raised selector leaves breathing room before the cards. */
#puzzles-detective-study .archive-season-filter{margin:8px 0 30px;padding:3px 0 22px;border-bottom:1px dashed #cbcbb4}
#puzzles-detective-study .season-filter-button{display:inline-flex;align-items:center;justify-content:space-between;gap:35px;min-width:220px;max-width:100%;padding:10px 17px;background:linear-gradient(125deg,#edf0df,#dce3cc);border:1px solid #a8b596;border-radius:5px 11px 5px 5px;box-shadow:1px 3px 0 #bdc5ac;color:#475c43;cursor:pointer;text-align:left;transition:background .15s,box-shadow .15s}
#puzzles-detective-study .season-filter-button:hover{background:#f1f4e4;box-shadow:1px 3px 0 #bdc5ac,2px 5px 8px #5c6b4930}
#puzzles-detective-study .season-filter-button:active{transform:translateY(1px);box-shadow:1px 2px 0 #bdc5ac}
#puzzles-detective-study .season-filter-button small{display:block;font-size:15px;color:#6f7c62}
#puzzles-detective-study .season-filter-button strong{display:block;font-size:23px;font-weight:500;line-height:1.25}
#puzzles-detective-study .season-filter-button svg{flex-shrink:0}
@media(max-width:650px){#puzzles-detective-study .nav{flex-wrap:wrap;gap:12px 16px}#puzzles-detective-study .nav .rules-trigger{font-size:17px}#puzzles-detective-study .rules-heading{padding:24px 54px 14px 20px}#puzzles-detective-study .rules-heading h2{font-size:27px}#puzzles-detective-study .rules-content{padding:10px 20px 24px;font-size:18px}#puzzles-detective-study .rules-steps>li{padding-left:39px}#puzzles-detective-study .rules-steps h3{font-size:21px}#puzzles-detective-study .rules-steps .rules-example{font-size:17px;padding:9px}#puzzles-detective-study .rules-steps>li::before{width:28px;height:28px;font-size:19px}#puzzles-detective-study .season-filter-button{min-width:0;width:100%}}

/* Achievement sharing stays below the puzzle, and opens only on request. */
#puzzles-detective-study .share-success{position:relative;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:20px 25px;margin:24px 8px 32px;background:linear-gradient(120deg,#f8f0db,#ede7d4);border:1px solid #cabc9f;border-radius:3px 11px 4px 5px;box-shadow:2px 4px 0 #d4c8af;transform:rotate(-.3deg)}
#puzzles-detective-study .share-success:before{content:'';position:absolute;width:50px;height:17px;top:-8px;left:25px;background:#bec7a882;transform:rotate(-5deg)}
#puzzles-detective-study .share-success h2{font-size:26px;font-weight:500;margin:0 0 3px;color:#4f6148}
#puzzles-detective-study .share-success p{font-size:18px;margin:0;color:#776b55}
#puzzles-detective-study .share-success .action{margin:0;flex-shrink:0}
#puzzles-detective-study dialog.share-dialog{position:fixed;inset:0;margin:auto;width:540px;max-width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 32px);transform:none}
#puzzles-detective-study .share-word-choice{display:flex;justify-content:center;align-items:baseline;gap:9px;font-size:25px;margin:-2px 0 16px}
#puzzles-detective-study .share-word-choice select{appearance:auto;font:inherit;color:#496344;background:#f4efde;border:0;border-bottom:1px dashed #8c9b7b;padding:4px 8px;border-radius:3px;cursor:pointer;max-width:100%}
#puzzles-detective-study .share-preview{background:#ebe3ce;border:1px solid #d7c8ab;min-height:80px;max-width:380px;margin:0 auto;box-shadow:2px 3px 8px #57432b18}
#puzzles-detective-study .share-preview img{display:block;width:100%;height:auto}
#puzzles-detective-study .share-preview p{font-size:18px;text-align:center;padding:15px}
#puzzles-detective-study .share-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;margin-top:12px}
#puzzles-detective-study .share-actions button{max-width:100%;white-space:normal}
#puzzles-detective-study .share-actions .plain{font-size:17px;padding:8px 3px;text-decoration:underline;text-underline-offset:4px}
#puzzles-detective-study .share-dialog .response{font-size:17px}
#puzzles-detective-study .share-dialog textarea{font:16px/1.5 Alegreya,Georgia,serif;min-height:110px}
#puzzles-detective-study .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:650px){#puzzles-detective-study .share-success{flex-direction:column;align-items:flex-start;gap:14px;padding:18px;margin-left:0;margin-right:0}#puzzles-detective-study .share-success h2{font-size:24px}#puzzles-detective-study dialog.share-dialog{padding:26px 16px 18px}#puzzles-detective-study .share-word-choice{font-size:23px}#puzzles-detective-study .share-actions{gap:6px}#puzzles-detective-study .share-actions .action{width:100%}}

/* The author-only doorway is guarded by a bear, without a clipboard or rodent. */
#puzzles-detective-study .author-guard{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 12px 20px;min-height:540px}
#puzzles-detective-study .author-guard h1{font-size:34px;max-width:650px;margin:0 0 15px;line-height:1.2}
#puzzles-detective-study .author-guard p{font-size:23px;margin:0 0 24px;color:#65705b}
#puzzles-detective-study .guard-bear{display:block;width:min(420px,90%);height:auto;object-fit:contain;margin:0 auto}
@media(max-width:650px){#puzzles-detective-study .author-guard{min-height:460px;padding:36px 4px 18px}#puzzles-detective-study .author-guard h1{font-size:29px}#puzzles-detective-study .author-guard p{font-size:21px;margin-bottom:20px}#puzzles-detective-study .guard-bear{width:min(350px,95%)}}

/* Native player dialog must stay inside the viewport, even with a long history. */
#puzzles-detective-study dialog#player-card{position:fixed;inset:0;margin:auto;width:480px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:54px 26px 24px;transform:none;overscroll-behavior:contain}
#puzzles-detective-study #player-card .dialog-close{width:40px;height:40px;top:10px;right:8px}
#puzzles-detective-study .player-content h2{margin:3px 0 20px;overflow-wrap:anywhere}
#puzzles-detective-study .player-score{padding:16px 0;border-top:1px dashed var(--edge)}
#puzzles-detective-study .player-score h3{margin:0 0 10px;font-size:23px;font-weight:500}
#puzzles-detective-study .player-stats{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);grid-template-rows:auto minmax(56px,auto);gap:4px 16px;margin:0}
#puzzles-detective-study .player-stats>div{display:grid;grid-template-rows:subgrid;grid-row:span 2;min-width:0}
#puzzles-detective-study .player-stats dt{font-size:16px;line-height:1.25;color:var(--soft)}
#puzzles-detective-study .player-stats dd{min-height:56px;margin:0;display:flex;align-items:center;gap:12px;font-size:32px;line-height:1.15;overflow-wrap:anywhere}
#puzzles-detective-study .player-unranked{font-size:18px;line-height:1.25}
#puzzles-detective-study .player-points-value{min-width:0}
#puzzles-detective-study .coin-preview.player-coin{flex:none;width:64px;height:64px;margin:-4px 0}
#puzzles-detective-study .coin-preview.player-coin .coin-denomination{font-size:23px}
#puzzles-detective-study .coin-preview.player-coin .coin-unit{font-size:8px}
#puzzles-detective-study .coin-preview.player-coin .coin-season{font-size:6px}
#puzzles-detective-study .player-history{width:100%;margin-top:12px;border-collapse:collapse;table-layout:fixed;font-size:18px}
#puzzles-detective-study .player-history caption{text-align:left;margin:0 0 8px;font-size:20px;font-weight:500}
#puzzles-detective-study .player-history th,#puzzles-detective-study .player-history td{padding:9px 0;border-bottom:1px dashed var(--edge);text-align:right;line-height:1.3;font-weight:400}
#puzzles-detective-study .player-history thead th{font-size:15px;color:var(--soft)}
#puzzles-detective-study .player-history th:first-child{width:46%;text-align:left}
#puzzles-detective-study .player-history tbody th{font-size:inherit}
#puzzles-detective-study .player-history td{font-variant-numeric:tabular-nums}
#puzzles-detective-study .player-content .list-pager{font-size:17px;gap:12px;padding-top:16px}
@media(max-width:400px){#puzzles-detective-study dialog#player-card{padding:54px 18px 18px}#puzzles-detective-study .player-content h2{font-size:27px;margin-bottom:16px}#puzzles-detective-study .player-score{padding:14px 0}#puzzles-detective-study .player-stats{column-gap:12px}#puzzles-detective-study .player-stats dd{gap:8px;font-size:30px}#puzzles-detective-study .player-unranked{font-size:17px}#puzzles-detective-study .player-history{font-size:17px}}
