.lore-section{max-width:1180px;margin:20px auto 70px;padding:38px 30px;border-top:1px solid #354455}.lore-section h2{font-size:clamp(28px,4vw,44px);line-height:1.2}.lore-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin:28px 0}.lore-grid article{background:#122130;border:1px solid #334b5a;padding:24px;border-radius:10px}.lore-grid h3{font-size:23px;color:#e8d4af}.lore-grid p,.lore-section>p{line-height:1.8;color:#c6d1d9}.archive-note{max-width:760px;margin:32px auto;padding:30px;border-left:2px solid #c4ac78;background:#142431}.archive-note p{line-height:1.9}.archive-note small{color:#a4b9c8}.trace-mark{display:block;min-width:44px;min-height:44px;border:1px solid #50616e;border-radius:50%;color:#b7b1a0;background:transparent;margin:18px 0 0 auto;font-size:22px;cursor:pointer}.trace-mark:hover,.trace-mark:focus-visible{color:#f4d18a;border-color:#f4d18a;box-shadow:0 0 14px #d2a96544}.trace-mark.collected{color:#81c9cd}.quest-journal{position:fixed;bottom:18px;right:18px;z-index:30;border:1px solid #a38d60;border-radius:24px;background:#102431;color:#f0ddb7;padding:12px 18px;box-shadow:0 6px 24px #0007;cursor:pointer}.quest-dialog{width:min(92vw,620px);max-height:85vh;overflow:auto;background:#102331;color:#e8e7dc;border:1px solid #b79e6f;border-radius:16px;padding:28px}.quest-dialog::backdrop{background:#020b14d9}.quest-top{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px;color:#adbfc9}.quest-close,.quest-options button{border:1px solid #59717e;color:#eef0e9;background:#1a3545;border-radius:8px;padding:12px 16px;cursor:pointer}.quest-dialog h2{font-size:32px;line-height:1.2;margin:24px 0}.quest-dialog p{line-height:1.8}.quest-options{display:grid;gap:10px;margin:20px 0}.quest-options button:hover,.quest-options button:focus-visible{border-color:#efd195;background:#244758}.quest-word{font-family:Georgia,serif;font-size:42px;color:#f0d29b}.quest-fragments{padding-left:24px;line-height:2.3}.quest-fragments strong{color:#f0d29b}.quest-dialog a{color:#eed5a7}.quest-dialog details{margin:22px 0}.quest-dialog summary{cursor:pointer}.quest-dialog [hidden],[hidden]{display:none!important}.archive-reading{max-width:760px;margin:auto;font-family:Georgia,serif;font-size:21px;line-height:1.9}.archive-reading h2{font-size:34px}.archive-gate{border:1px solid #587081;border-radius:16px;padding:30px;max-width:760px;margin:auto}.archive-gate input{display:block;width:100%;max-width:600px;background:#0c1923;color:white;border:1px solid #607787;padding:12px;margin:15px 0;font:inherit}.lore-section a{color:#ead2a0}.quest-status{min-height:28px}.site-only{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#84bec5}footer{padding-bottom:90px}@media(max-width:750px){.lore-grid{grid-template-columns:1fr}.lore-section{padding:28px 20px}.quest-dialog{padding:20px}.quest-journal{font-size:12px;bottom:12px;right:12px}.archive-note{padding:22px}}@media(prefers-reduced-motion:reduce){.trace-mark{transition:none}}
/* Four temples: quiet discovery marks, generous keyboard/touch targets. */
.temple-mark{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;color:#b7b1a0;cursor:pointer;vertical-align:middle}.temple-mark:hover,.temple-mark:focus-visible{color:#f4d18a;background:#e4bc7815;outline:2px solid #e4bc78;outline-offset:3px}.temple-mark.collected{color:#81c9cd}.temple-shape{display:inline-block;flex:none;vertical-align:middle;box-sizing:border-box;color:inherit}.shape-circle{width:22px;height:22px;border:2px solid currentColor;border-radius:50%}.shape-square{width:20px;height:20px;border:2px solid currentColor}.shape-rectangle{width:32px;height:13px;border:2px solid currentColor}.shape-triangle{width:0;height:0;border-left:11px solid transparent;border-right:11px solid transparent;border-bottom:19px solid currentColor}.hide-top{margin:-10px 0 14px;display:flex}.hide-bottom{margin:0}.hide-text{margin:-7px 1px;color:#9cafb2}.temple-image-art{position:relative}.temple-image-art img{display:block}.hide-image{position:absolute;right:15%;top:55%;z-index:1;color:#e8ce91;background:#0d253844;border-radius:4px}.temple-dialog{max-width:690px}.temple-dialog>.quest-top{position:sticky;top:-28px;background:#102331;padding:12px 0;z-index:1}.temple-dialog h3{font-size:26px;line-height:1.35;margin:24px 0 15px}.temple-dialog .temple-note{font-size:13px;color:#abbecb;line-height:1.6}.temple-choice,.temple-note-key{padding:14px 18px;min-height:48px;border:1px solid #59717e;background:#1a3545;color:#eef0e9;border-radius:8px;text-align:left}.temple-choice:hover,.temple-choice:focus-visible,.temple-note-key:hover,.temple-note-key:focus-visible{border-color:#efd195;background:#244758}.temple-choice:disabled{opacity:.5;cursor:default}.temple-score{padding:20px;background:#09202d;border-left:3px solid #d9bd83;color:#f1dcb0;font-family:Georgia,serif;font-size:23px}.temple-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.temple-note-key{text-align:center}.note-0{border-bottom:4px solid #679aaf}.note-1{border-bottom:4px solid #acbda1}.note-2{border-bottom:4px solid #dcbd78}.temple-path{color:#a8d9c9;line-height:1.8}.temple-dialog form{display:grid;gap:12px}.temple-dialog label{margin-top:14px;font-size:15px}.temple-dialog select{width:100%;background:#172f40;color:#f0ede4;padding:13px;border:1px solid #68818e;border-radius:6px;font:inherit}.temple-dialog input[type=range]{width:100%;min-height:44px;accent-color:#e4bc78}.temple-dialog output{font-size:24px;font-variant-numeric:tabular-nums;color:#e4bc78}.temple-dialog form .btn{margin-top:15px}.temple-ledger{display:grid;gap:12px}.temple-ledger-row{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:8px 16px;padding:15px;border:1px solid #48616f;border-radius:8px}.temple-ledger-row strong{grid-column:2;color:#b9dacf;font-size:13px}.temple-dialog .quest-word{font-size:30px}.temple-dialog :focus-visible{outline:2px solid #e4bc78;outline-offset:4px}@media(max-width:650px){.hero-foot .hide-bottom{display:inline-flex}.temple-keys{gap:6px}.temple-note-key{padding:12px 6px}.temple-dialog>.quest-top{top:-20px}.hide-image{right:12%;top:50%}}
/* Touch layout, dynamic viewport and safe areas. */
html:has(.temple-dialog[open]),body:has(.temple-dialog[open]){overflow:hidden;overscroll-behavior:none}
.temple-dialog{box-sizing:border-box;width:min(690px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));margin:auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-top:80px;-webkit-overflow-scrolling:touch;overflow-wrap:anywhere}
.temple-dialog>.quest-top{gap:12px;min-height:60px}.temple-dialog .quest-close{min-width:76px;min-height:48px;flex:none;font-size:16px}.temple-dialog button,.temple-dialog select{font-size:16px;line-height:1.45;min-height:48px;touch-action:manipulation}.temple-dialog summary{min-height:48px;padding:12px 0}.temple-dialog form,.quest-options,.temple-ledger-row,.temple-keys{min-width:0}.temple-dialog select{max-width:100%;min-width:0}.temple-dialog .btn{white-space:normal}.temple-dialog input[type=range]{box-sizing:border-box;min-width:0;margin:0;height:48px;touch-action:pan-y}.temple-dialog input[type=range]::-webkit-slider-thumb{min-width:26px;min-height:26px}.temple-dialog input[type=range]::-moz-range-thumb{width:26px;height:26px}.temple-fine-tune{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;gap:14px;align-items:center}.temple-fine-tune output{text-align:center;font-size:24px;white-space:nowrap}.temple-step{width:52px;min-height:52px;border:1px solid #8299a3;background:#1a3545;color:#f5dfb3;border-radius:10px;font-size:26px!important;line-height:1!important}.temple-step:active,.temple-note-key:active,.temple-choice:active{background:#33596a}.quest-journal{min-height:48px;bottom:max(12px,env(safe-area-inset-bottom,0px));right:max(12px,env(safe-area-inset-right,0px));max-width:calc(100vw - 24px);font-size:14px}.hero-foot .temple-mark .temple-shape{display:inline-block!important}.temple-dialog .quest-top span{min-width:0}
@media(max-width:480px){.temple-dialog{padding:16px;border-radius:12px}.temple-dialog>.quest-top{top:-16px}.temple-dialog h2{font-size:27px;margin:18px 0}.temple-dialog h3{font-size:23px}.temple-score{padding:14px;font-size:20px}.temple-ledger-row{padding:12px;gap:8px 10px;grid-template-columns:32px minmax(0,1fr)}.temple-dialog .quest-word{font-size:26px}.temple-note-key{font-size:16px;padding:12px 4px}.quest-dialog p{line-height:1.65}}
@media(max-height:500px){.temple-dialog{max-height:calc(100dvh - 12px);width:min(690px,calc(100% - 20px))}.temple-dialog h2{margin:12px 0}.temple-dialog>.quest-top{min-height:56px;padding:4px 0}}
.hidden-final-phrase{display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:12px 2px;margin:-12px 0;border:0;border-radius:2px;background:transparent;color:inherit;font:inherit;line-height:inherit;cursor:pointer;touch-action:manipulation;text-decoration:underline;text-decoration-style:dotted;text-decoration-color:#b1c2bf40;text-underline-offset:5px}.hidden-final-phrase:hover,.hidden-final-phrase:focus-visible{color:#f1d196;text-decoration-color:currentColor;outline:2px solid #d6ba7f;outline-offset:3px}.temple-question-progress{color:#d9c38b;letter-spacing:.05em}.temple-reward,.final-clues{padding:20px;border-left:2px solid #d6ba7f;background:#0a1b28}.final-clues p{font-size:15px}.thinkers-portrait{margin:30px 0 40px}.archive-reading .thinkers-portrait img{display:block;width:100%;height:auto;max-width:100%;margin:0;border:1px solid #7b725d;border-radius:8px}.thinkers-portrait figcaption{font:13px/1.6 system-ui,sans-serif;color:#b1c2cb;margin-top:12px}.temple-dialog .quest-options button:disabled{opacity:.65;cursor:default}@media(max-width:480px){.temple-reward,.final-clues{padding:14px}.hidden-final-phrase{padding:12px 0}.thinkers-portrait{margin:24px 0}}
