/* Mountain study presentation. Gameplay layout and accessibility primitives live in styles.css. */
:root{--serif:"Cormorant Garamond",Georgia,serif;--cream:#f1e4c7;--paper:#fff6df;--ink:#243b2b;--muted:#4f5942;--line:#ab9161}
body{background:#261b12 url('./assets/mountain-study.webp') center top/cover fixed no-repeat;color:var(--ink)}
body::before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 30%,#190e0570 100%);pointer-events:none}
.site-header{background:#17251bd9;border-bottom:1px solid #b69656a0;box-shadow:0 3px 10px #0006}
.header-inner{min-height:58px;max-width:1220px}.brand-mark{width:34px;height:34px;background:#101c14}.brand-mark svg{width:30px;height:30px}.brand strong{font-family:Georgia,serif;font-size:13px;letter-spacing:.08em}.brand small{font-size:7px;margin-top:3px}.site-link{min-height:38px;display:flex;align-items:center;border:0;color:#f4e0b7}
.hero{background:transparent;min-height:280px;overflow:hidden;border-bottom:4px solid #624223;box-shadow:0 3px 0 #b28d4d,0 8px 20px #0008}
.hero::before{background:url('./assets/mountain-study.webp') center 22%/cover no-repeat;transform:none}
.hero::after{background:radial-gradient(ellipse at 50% 47%,#fff0cced 0%,#fae8c5c9 22%,#f8e8c15c 43%,transparent 66%)}
.hero-content{padding:27px 0 25px;position:relative;color:#223723;text-shadow:0 1px 7px #fff4d9;max-width:750px}
.hero .eyebrow{font-family:Georgia,serif;font-size:10px;letter-spacing:.16em;color:#3f4b32;margin-bottom:6px}.hero-rule{display:none}
.hero h1{font:600 clamp(48px,5.6vw,76px)/.84 var(--serif);letter-spacing:-.025em;text-transform:uppercase;margin:0 0 13px;text-shadow:0 2px 3px #fff5dc}
.hero h1 em{color:#223723}.hero-subtitle{font:17px/1.4 Georgia,serif;margin:0}.hero-subtitle::after{content:"—  ✦  —";display:block;font-size:14px;letter-spacing:.15em;color:#385235;margin-top:9px}
.hero-note,.hero .gold,.hero-details,.hero-caption{display:none}
.wrap{width:min(1150px,calc(100% - 64px))}
.library-body,.play{position:relative;background:#f0e1bc url('./assets/forest-paper.webp') center/100% 100% no-repeat;border:10px solid #634222;border-radius:15px;outline:1px solid #ae8b4d;box-shadow:0 0 0 3px #281b11,0 0 0 5px #8c693b,0 20px 50px #0009,inset 0 0 0 2px #b9995d,inset 0 0 35px #8b542c55}
.library-body::before,.play::before{content:"";position:absolute;inset:7px;border:1px solid #a17d4380;border-radius:4px;pointer-events:none}
.library-body{margin-top:32px;padding:29px 30px 22px;margin-bottom:40px}
.collection-heading{justify-content:center;text-align:center;margin-bottom:17px;position:relative}.collection-heading .eyebrow{display:none}.collection-heading h2{font:700 35px/1.1 var(--serif);text-transform:uppercase;letter-spacing:.025em;color:#283c2b}.collection-heading p:not(.eyebrow){font:italic 13px Georgia,serif;color:#4a5139;margin:8px 0}.collection-count{position:absolute;right:0;top:0;font-size:10px;max-width:100px;white-space:normal;text-align:right;border:0;color:#4d553d}
.library-controls{gap:15px;padding:0 0 17px;border-bottom:1px solid #a58b5c88;margin-bottom:20px;flex-direction:row;align-items:center}.filters{gap:6px}.filters button{border:0;background:none;padding:8px 14px;min-height:37px;color:#33442e;font-size:11px;border-radius:20px}.filters button[aria-pressed=true]{background:linear-gradient(#33543a,#173424);color:#fff0cc;box-shadow:inset 0 0 0 1px #b5a06c,0 2px 3px #684c2933}.search{background:#fff4d5b8;border-color:#a28b5f;box-shadow:inset 0 1px 3px #73532b2b}.search input{min-height:35px;font-size:11px;color:#263d2c}.search input::placeholder{color:#555b45}.search span{color:#45543a}
.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.puzzle-card{display:block;padding:0;min-height:0;border:3px solid #8a6738;border-radius:9px;background:linear-gradient(115deg,#f8edcf,#e9d5a9);box-shadow:0 3px 0 #4c341e,0 5px 12px #4b321b66,inset 0 0 0 1px #ecd7a8;overflow:hidden;isolation:isolate}
.puzzle-card::before{inset:3px;border:1px solid #e5c9989c;border-radius:4px;z-index:1}.puzzle-card::after{display:none}.puzzle-card:hover{transform:translateY(-3px);border-color:#b38e4f;box-shadow:0 3px 0 #4c341e,0 9px 18px #422b1d80}.puzzle-card.complete{border-color:#50704b}
.card-art{display:block;width:100%;aspect-ratio:2.4;background-image:url('./assets/puzzle-paintings.webp');background-size:300% 400%;background-repeat:no-repeat;border-bottom:2px solid #8d6f3c;box-shadow:inset 0 0 10px #39271244;position:relative}
.card-art::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 65%,#21190c55)}
.card-top{position:absolute;left:10px;top:9px;right:10px;margin:0;z-index:2;align-items:start}.card-number{display:grid;place-items:center;background:#193a29;color:#f5e6b9;border:1px solid #d3b97d;box-shadow:0 1px 4px #0008;width:29px;height:29px;border-radius:50%;font:600 12px Georgia,serif}.card-category{background:#1a3023e6;color:#f9ebce;padding:4px 7px;border-radius:3px;font-size:8px;letter-spacing:.06em}
.card-content{display:flex;flex-direction:column;padding:13px 15px 12px;min-height:155px}.card-title{font:700 23px/1.04 var(--serif);margin-bottom:5px;max-width:none;color:#263b28}.card-description{font:12px/1.4 Georgia,serif;color:#4c5239;margin:3px 0 9px;min-height:34px}.card-reference{font:11px Georgia,serif;color:#3d4d32;padding:0;margin-top:auto}.card-meta{font-size:9px;color:#4d543a;margin-top:4px}.card-bottom{font-size:10px;padding-top:9px;margin-top:9px;border-color:#b9a16b;gap:6px}.card-status{font-size:9px;color:#4c553d}.mini-progress{left:0;height:3px;background:transparent}.mini-progress span{background:#507549}.puzzle-card.complete .card-status{color:#234c2d;font-weight:700}
.continue-card{padding:18px 22px;margin-bottom:22px;border:2px solid #b6975d;background:linear-gradient(105deg,#163425,#3c583a);box-shadow:0 3px 8px #53331c44}.continue-card strong{font:600 25px var(--serif)}.continue-card small{color:#ead5a7}.continue-card span{color:#fcf0d5}.continue-card b{color:#fff0bf}
.library-note{margin:24px 0 0;padding:14px 0 0;border-color:#b5a07577;gap:15px}.library-note p{font:16px/1.6 Georgia,serif;margin:0}.library-note small{color:#455039;font-size:10px}.library-note>span{color:#624c2e;font-size:27px}
.is-playing .hero{min-height:180px}.is-playing .hero-content{padding:18px 0 15px}.is-playing .hero h1{font-size:52px}.is-playing .hero-subtitle{font-size:13px}.is-playing .hero-subtitle::after{margin-top:5px;font-size:11px}
.play{margin-top:28px;margin-bottom:42px;padding:18px 25px 22px}
.play-nav{margin:0 0 9px;position:relative;z-index:1}.play-nav .text-button{background:linear-gradient(#2e5136,#173728);color:#fff0ce;border:1px solid #9b8150;border-radius:4px;padding:7px 12px;font-size:10px;min-height:36px;box-shadow:0 2px 3px #4c321b55}.play-heading{justify-content:center;text-align:center;position:relative;padding:0 155px 16px;margin-bottom:14px;border-bottom:1px solid #9c815955}.play-heading h1{font:700 39px/1.05 var(--serif);margin-bottom:5px;color:#253725}.play-heading .eyebrow{font-size:9px;letter-spacing:.07em;color:#4c563b;margin-bottom:7px}.play-heading p:not(.eyebrow){font:12px Georgia,serif;color:#3b4b32}.progress-box{position:absolute;right:0;bottom:19px;min-width:125px;text-align:right}.progress-box strong{font:18px Georgia,serif}.progress-box span{font-size:9px;color:#455039}progress{background:#b6a47b}progress::-webkit-progress-bar{background:#b6a47b}progress::-webkit-progress-value{background:#416b40}progress::-moz-progress-bar{background:#416b40}
.play-layout{grid-template-columns:minmax(0,1.14fr) minmax(300px,.86fr);gap:24px;position:relative;z-index:1}
.board-panel{border:0;border-radius:0;background:none;padding:0;box-shadow:none}.panel-heading{color:#4e573c;font-size:8px;letter-spacing:.09em;margin-bottom:9px}.panel-heading span:last-child{color:#455039;font-size:9px}
.board-frame{background:#e9dbb8 url('./assets/forest-paper.webp') center/100% 100%;border:1px solid #9e895d;border-radius:4px;padding:27px;box-shadow:inset 0 0 20px #78532c3b,0 3px 6px #68482730}
.board-frame #grid{background:transparent;border:0;gap:0;box-shadow:none}.void{background:transparent;opacity:1}.cell{background:#fff5ddee;border:1px solid #728061;box-shadow:1px 2px 3px #503b2744;color:#1a3827;overflow:visible}.cell-letter{font-family:Georgia,serif;font-size:clamp(14px,3.9cqw,25px);font-weight:600}.cell-number{color:#3b4a30}.cell.word{background:#d4dfbd}.cell.active{background:#dcc17a;box-shadow:inset 0 0 0 2px #78602d,0 0 8px #c09d5266}.cell:focus-visible{box-shadow:inset 0 0 0 3px #755820}.cell.checked{box-shadow:inset 0 -3px #56783d}.cell.error{box-shadow:inset 0 -3px #92503a;color:#773c24}
.board-note{color:#4d573f;font-size:10px;margin:9px 0 12px}.tools{gap:9px}.tools .button{background:linear-gradient(#31563b,#173c2a);border:1px solid #a8894e;color:#fff0c9;min-height:39px;font:600 12px Georgia,serif;box-shadow:0 3px 4px #50341f44,inset 0 0 0 1px #ffffff0d}.tools .button:hover{background:#3c6041;color:#fff4cf}
.input-dock{margin-top:17px;background:#f6e9c9;border:1px solid #a28b5b;box-shadow:inset 0 0 16px #9d713529,0 3px 7px #5f42232b}.current-clue{border-left:3px solid #816c3e;padding:12px 16px;min-height:105px}.clue-navigation{margin-bottom:3px}.clue-navigation button{color:#2a4e32}.clue-navigation #answer-length{color:#49533b}.current-clue #current-text{color:#263b2a;font:17px/1.4 Georgia,serif}.current-clue #current-reference{color:#4d553b}.keyboard{background:#e5d5af;border-color:#ae9765}.key{background:linear-gradient(#fff8e1,#f0dfb5);border-color:#9a8a5d;color:#21442d;box-shadow:0 1px 2px #4f391d22}.key:hover{background:#d6dfb7}.save-row{color:#405038}.save-row .text-button{color:#405038}
.clues-panel{border:1px solid #9c8557;border-radius:5px;background:#f8edcfe8;box-shadow:inset 0 0 20px #9a6d3a24,0 3px 7px #4a331b22}.clues-heading{background:transparent;border-color:#ac945c77;padding:15px 18px 13px}.clues-heading .eyebrow{display:none}.clues-heading h2{font:600 28px/1 var(--serif);text-align:center;color:#2c412e}.clues-heading p:last-child{color:#4a553c;text-align:center;font-size:10px}.clue-columns{padding:14px 12px;max-height:615px}.clue-columns h3{padding:9px 13px;margin-bottom:7px;border:1px solid #9a844f;border-radius:4px;background:linear-gradient(#31563b,#1c3f2b);color:#fff1cc;font:600 15px Georgia,serif;text-transform:none;letter-spacing:0}.clue-item{padding:9px 7px;color:#293f2c;font:13px/1.45 Georgia,serif;border-radius:2px;grid-template-columns:20px 1fr 12px;gap:6px}.clue-item small{color:#4e563c;font:10px/1.4 var(--sans);margin-top:4px}.clue-item .num{color:#514929}.clue-item.selected{background:#e4cf91;border:1px solid #b39b5c}.clue-item:hover{background:#e9dcba}.clue-item .done{color:#355a30}.clues-foot{background:#eaddb9;color:#465039;border-color:#b39c66;font-size:11px;padding:12px 18px}
.storage-warning{background:#f4dfad;color:#403f22;border-color:#9a783e}.empty{background:#f5e8c8;color:#263a28}.empty p{color:#46513c}
footer.wrap{color:#fff0ce;background:#18271bde;border:1px solid #b8954c66;border-radius:5px;padding:16px 20px;max-width:1150px;margin-bottom:20px;box-shadow:0 4px 20px #0006}footer a{color:#fff2cb}
dialog{background:#f4e7c8;border:5px solid #735333;outline:1px solid #c6a46a;border-radius:9px;box-shadow:inset 0 0 25px #9f713938,0 25px 80px #0009}dialog h2{font:700 32px var(--serif)}dialog .eyebrow{color:#5b5332}.modal-symbol{color:#786031}.close{color:#3f5038}.button.gold{background:linear-gradient(#32553a,#193a29);color:#fff0c9;border-color:#9d8450}.button.gold:hover{background:#3b5d3e}.toast{background:#193d2c;color:#fff3d2;border-color:#c0a167}
@media(min-width:1500px){.wrap{width:min(1240px,calc(100% - 100px))}.cards{gap:24px}.hero{min-height:310px}.hero-content{padding:34px 0}.play-layout{gap:30px}}
@media(max-width:1000px){.wrap{width:calc(100% - 46px)}.library-body{padding:24px 24px 20px}.collection-heading h2{font-size:30px}.collection-count{position:static;max-width:none;text-align:center}.collection-heading{flex-direction:column;align-items:center;gap:6px}.library-controls{flex-wrap:wrap;gap:10px}.search{margin-left:auto}.cards{gap:15px}.card-content{padding:11px 12px;min-height:160px}.card-title{font-size:21px}.card-description{font-size:11px}.card-category{display:none}.play{padding:16px 19px 20px}.play-layout{gap:19px;grid-template-columns:minmax(0,1fr) minmax(285px,.85fr)}.board-frame{padding:20px}.play-heading{padding-inline:130px}.play-heading h1{font-size:32px}.progress-box{min-width:110px}}
@media(max-width:760px){.wrap{width:calc(100% - 28px)}.header-inner{min-height:54px}.brand strong{font-size:10px}.brand small{font-size:6px}.site-link{font-size:9px;max-width:110px;line-height:1.4}.hero{min-height:235px}.hero-content{padding:29px 0 26px}.hero h1{font-size:58px}.hero-subtitle{font-size:14px}.hero::before{background-position:center 18%;background-size:auto 160%}.hero::after{background:radial-gradient(ellipse,#f8e7c4e8, #f8e7c4b8 34%,transparent 78%)}.library-body{margin-top:22px;border-width:7px;padding:24px 20px 18px;border-radius:10px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.card-title{font-size:23px}.card-art{aspect-ratio:2}.card-content{min-height:152px}.collection-heading h2{font-size:31px}.collection-heading p:not(.eyebrow){max-width:none}.collection-count{margin:0}.filters{gap:3px;flex:1}.filters button{font-size:10px;padding:8px 10px;min-height:35px}.search{width:100%;margin:0}.search input{width:100%}.library-controls{gap:9px;margin-bottom:18px}.library-note small{font-size:9px}.is-playing .hero{min-height:130px}.is-playing .hero-content{padding:13px 0}.is-playing .hero h1{font-size:39px}.is-playing .hero .eyebrow{font-size:8px}.is-playing .hero-subtitle{font-size:11px}.is-playing .hero-subtitle::after{display:none}.play{margin-top:20px;border-width:7px;padding:12px 14px 18px}.play-layout{grid-template-columns:1fr;gap:19px}.play-heading{padding:0 0 14px;display:flex;flex-direction:column;gap:10px;margin-bottom:10px}.play-heading h1{font-size:34px}.play-heading .eyebrow{font-size:8px}.progress-box{position:static;display:flex;align-items:center;gap:12px;min-width:0;width:100%;max-width:340px;flex-wrap:wrap;justify-content:center}.progress-box strong{font-size:16px}.progress-box span{font-size:9px;margin:0}progress{width:100%;height:4px}.board-frame{padding:22px}.game-left{max-width:580px}.input-dock{position:fixed;z-index:10;bottom:0;left:0;right:0;margin:0;border-radius:8px 8px 0 0;box-shadow:0 -5px 22px #2f241b55;border-top:2px solid #8b7547}.current-clue{padding:7px 14px 9px;min-height:94px}.current-clue #current-text{font-size:15px}.keyboard{padding:7px 5px 8px}.key{min-height:42px}.clue-columns{max-height:none}.clues-panel{background:#f8edcf}.clue-columns section+section{margin-top:0}.save-row{font-size:9px}.board-note{font-size:9px}.panel-heading{font-size:8px}.library-note{gap:9px}.library-note p{font-size:14px}footer.wrap{padding:14px 10px;margin-bottom:15px}.is-playing{padding-bottom:var(--dock-height,270px)}}
@media(max-width:480px){.wrap{width:calc(100% - 20px)}.brand-mark{width:29px;height:29px}.brand-mark svg{width:26px}.hero{min-height:218px}.hero h1{font-size:49px}.hero-content{padding:29px 0 25px}.hero .eyebrow{font-size:8px}.hero-subtitle{font-size:12px}.library-body{padding:19px 10px 16px;border-width:6px;margin-top:17px}.collection-heading h2{font-size:28px}.collection-heading p:not(.eyebrow){font-size:11px;max-width:250px}.collection-count{font-size:9px}.cards{gap:12px}.puzzle-card{border-width:2px;border-radius:6px}.card-art{aspect-ratio:1.85}.card-top{top:6px;left:6px}.card-number{width:23px;height:23px;font-size:10px}.card-content{padding:9px 9px 10px;min-height:120px}.card-title{font-size:20px;line-height:1.02;margin-bottom:7px}.card-description{display:none}.card-reference{font-size:10px;line-height:1.3}.card-meta{font-size:8px;line-height:1.4;margin-top:4px}.card-bottom{font-size:9px;flex-wrap:wrap;gap:3px;padding-top:7px;margin-top:7px}.card-status{font-size:8px}.filters button{padding:8px 9px;font-size:9px}.filters{justify-content:center}.library-note p{font-size:12px}.library-note small{font-size:9px;line-height:1.4}.continue-card{padding:13px;gap:9px}.continue-card strong{font-size:22px}.continue-card span{font-size:10px}.continue-card b{font-size:10px}.play{padding:11px 8px 16px;border-width:5px}.play-nav .text-button{font-size:9px;padding:6px 9px}.play-heading h1{font-size:29px}.board-frame{padding:11px}.cell-letter{font-size:clamp(13px,4cqw,21px)}.cell-number{font-size:clamp(7px,1.9cqw,9px)}.play-layout{gap:14px}.clue-columns{grid-template-columns:1fr}.clue-columns section+section{margin-top:16px}.current-clue #current-text{font-size:14px}.tools .button{font-size:11px;min-height:40px}.board-note{font-size:8px}.panel-heading span:last-child{font-size:8px}.is-playing .hero{min-height:117px}.is-playing .hero h1{font-size:35px}.is-playing .hero-content{padding:12px 0}.is-playing .hero-subtitle{font-size:10px}dialog{border-width:4px}}
@media(max-width:350px){.wrap{width:calc(100% - 14px)}.card-title{font-size:18px}.card-content{padding:8px;min-height:125px}.cards{gap:9px}.library-body{padding-inline:8px}.play{padding-inline:6px}.board-frame{padding:7px}.cell-letter{font-size:12px}.cell-number{font-size:6px}.collection-heading h2{font-size:26px}.filters button{padding-inline:7px;font-size:8px}}
@media(max-height:500px) and (max-width:1000px) and (orientation:landscape){.input-dock{position:static;margin-top:14px}.is-playing{padding-bottom:0}.is-playing .hero{min-height:100px}.is-playing .hero h1{font-size:33px}.is-playing .hero-content{padding:10px 0}.key{min-height:36px}}
/* Keep the illustrated desk behind the journal; the window appears only in the masthead. */
body{background-size:max(100vw,300vh) auto;background-position:center bottom}
.library-body,.play{background-image:linear-gradient(#f3e5c69c,#f3e5c69c),url('./assets/forest-paper.webp')}
.library-note{background:#f1e4c7e8;border-radius:4px;padding:12px}.save-row{background:#f1e4c7e8;padding:0 8px;border-radius:4px}.panel-heading{background:#f1e4c7df;padding:4px 6px;border-radius:3px}
@media(min-width:761px){.board-frame #grid{max-width:460px;margin-inline:auto}}
@media(max-width:760px){.is-playing .hero{min-height:78px}.is-playing .hero-content{padding:12px 0}.is-playing .hero h1{font-size:32px;margin:0}.is-playing .hero .eyebrow,.is-playing .hero-subtitle{display:none}}
@media(max-width:480px){.collection-heading{display:flex;flex-direction:column;align-items:center;gap:7px;margin-bottom:12px}.collection-heading h2{font-size:24px}.collection-heading p:not(.eyebrow){display:none}.collection-count{display:block;padding:0}.library-controls{padding-bottom:12px;margin-bottom:15px;gap:7px}.library-body .search{align-self:auto}.hero-subtitle::after{content:'—  ✦  —'}}

.library-body,.play{background-size:auto,100% auto;background-position:center,center bottom;background-repeat:no-repeat}
@media(max-width:760px){.is-playing .hero::before{background-size:cover;background-position:center 25%}}
/* Quiet soundtrack controls, kept in the journal toolbar rather than over cells. */
.music-controls{display:flex;align-items:center;gap:0;flex-shrink:0;color:#233d29;font-family:var(--sans);position:relative}
.music-controls .music-toggle,.music-volume>summary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:1px solid #947545;background:linear-gradient(#fff3d5,#e9d5a9);color:#233d29;box-shadow:inset 0 1px #fff9;font-size:11px;line-height:1.2;padding:8px 11px;cursor:pointer}
.music-controls .music-toggle{border-radius:5px 0 0 5px;min-width:80px}
.music-icon{font-size:19px;line-height:1;position:relative}.music-toggle[aria-pressed=false] .music-icon::after{content:'';position:absolute;width:22px;height:2px;background:currentColor;left:-3px;top:9px;transform:rotate(-45deg)}.music-volume{position:relative}
.music-volume>summary{width:44px;border-left:0;border-radius:0 5px 5px 0;list-style:none}
.music-volume>summary::-webkit-details-marker{display:none}.music-volume svg{width:19px;height:19px}
.music-volume>summary:focus-visible{outline:3px solid #a5792d;outline-offset:3px}
.music-controls .music-toggle:hover,.music-volume>summary:hover{background:#f9e8bd}
.music-popover{position:absolute;top:calc(100% + 8px);right:0;z-index:20;width:220px;padding:16px;background:#fbefcf;border:1px solid #8c7042;border-radius:7px;box-shadow:0 7px 22px #21190e44;text-align:left}
.music-popover strong{display:block;font:600 20px Georgia,serif;margin-bottom:10px}
.music-popover label{display:flex;justify-content:space-between;font-size:12px}
.music-popover input{display:block;width:100%;min-height:44px;margin:0;accent-color:#31563b;cursor:pointer}
.music-popover small{display:block;font-size:11px;line-height:1.5;color:#45503a}
.library-controls>.music-controls{order:3}.play-nav{gap:10px;flex-wrap:wrap}
@media(max-width:760px){.library-controls>.music-controls{margin-left:auto}.play-nav{gap:6px;flex-wrap:nowrap}.play-nav .music-label{display:none}.play-nav .music-toggle{min-width:44px;padding:8px}.play-nav .music-popover{left:50%;right:auto;transform:translateX(-50%)}.library-controls .music-popover{right:0}}
