/* Seasonal layer: the original puzzle geometry and interaction stay shared. */
:root{--bg:#100e12;--ink:#f1e8dc;--muted:#b5a79e;--accent:#e7a365;--line:#e7a36526;background:var(--bg)}
body{position:relative;isolation:isolate;overflow-x:clip;background:radial-gradient(ellipse at 50% 48%,#753c242b,transparent 57%),radial-gradient(ellipse at 50% 0%,#38283f45,transparent 42%),var(--bg)}
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.2;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.22' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
.masthead{position:relative;z-index:1;flex-direction:row;justify-content:flex-start;max-width:1440px;margin:0 auto;padding:20px 42px;border-bottom-color:var(--line);gap:15px}
.monogram-badge{width:58px;height:58px;background:#dfbf96;box-shadow:0 0 32px #e79b5620;border:1px solid #f8cca647}
.monogram{width:52px;height:52px}.brand{color:#d8c8b9;font-size:10px;letter-spacing:.23em}
.edition{margin-left:auto;color:var(--accent);font-size:10px;letter-spacing:.16em;border:1px solid var(--line);padding:9px 13px;border-radius:2px;background:#100e1280}
.intro{position:relative;padding:52px 20px 18px}.intro .eyebrow{font-size:10px;letter-spacing:.28em;margin-bottom:18px}
h1{font-size:clamp(42px,5vw,74px);line-height:1.08;max-width:960px;text-shadow:0 3px 24px #0009;margin-bottom:22px}
h1 em{color:var(--accent);font-size:.85em}.intro-copy{font-size:14px;line-height:1.8;color:var(--muted);margin:0}
.puzzle-section{position:relative;margin-top:22px}.game-meta{gap:20px}.progress-label{font-size:10px;letter-spacing:.16em}.progress i{width:6px;height:6px;background:#e7a36525}.progress i.filled{box-shadow:0 0 9px #e7a36880}
.board-frame{fill:#191217c9;stroke:#d79a6580;stroke-width:1;stroke-dasharray:3 6;filter:drop-shadow(0 0 15px #d56b2720)}.slot{stroke:#c98a5733}.board-copy{fill:#c8a891;font-size:10px;letter-spacing:1.7px}
.piece{filter:drop-shadow(0 7px 8px #000a)}.piece .edge{stroke:#e9bf8759}.piece:focus-visible .edge,.piece.selected .edge{stroke:#ffcc92}.complete .board-frame{stroke:var(--accent);filter:drop-shadow(0 0 24px #d56b2740)}
.game-hint{color:var(--muted);font-size:11px;text-align:center;margin:0 20px;line-height:1.7}.reveal{padding-top:38px}.reveal .eyebrow{color:var(--accent)}
.haunted-scene{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1}.scene-defs{position:absolute;width:0;height:0}.web{position:absolute;top:0;width:230px;height:230px;color:#c4b3a7;opacity:.22}.web-left{left:0}.web-right{right:0;transform:scaleX(-1)}
.hanging-spider{position:absolute;top:0;right:7%;width:44px;height:260px;color:#ad8b73;transform-origin:top;animation:spider-sway 9s ease-in-out infinite}.hanging-spider::before{content:"";position:absolute;width:1px;background:#b99a7855;height:218px;left:50%;top:0}.hanging-spider svg{position:absolute;bottom:0;width:44px;height:55px}
.moon{position:absolute;top:158px;right:15%;width:92px;height:92px;border-radius:50%;background:radial-gradient(circle at 32% 40%,#d6baa0 0%,#b19c8b 45%,#827578 90%);box-shadow:0 0 60px #ddab7a17,inset -15px -8px 25px #3c303b80;opacity:.4}
.flying-witch{position:absolute;right:13%;top:172px;width:114px;height:76px;color:#09080b;transform:rotate(-14deg);animation:witch-drift 12s ease-in-out infinite}
.skeleton{position:absolute;width:105px;height:263px;color:#b29a83;opacity:.32;top:171px}.skeleton-left{left:7%;transform:rotate(13deg)}.skeleton-right{right:4%;top:324px;transform:rotate(-16deg);opacity:.2}
.haunted-footer{position:relative;text-align:center;padding:84px 20px 30px;margin-top:14px;overflow:hidden;min-height:200px}.haunted-footer::before{content:"";position:absolute;inset:30px -10% 0;background:radial-gradient(ellipse at 50% 100%,#87908a17,transparent 65%);pointer-events:none;animation:mist 14s ease-in-out infinite alternate}
.haunted-footer p{position:relative;font-family:Georgia,serif;font-style:italic;font-size:18px;color:#c3a78e;margin:22px 0 0}.haunted-footer p span{display:block;font-family:'DM Sans',sans-serif;font-style:normal;font-size:10px;letter-spacing:.12em;color:#94857c;margin-top:10px}
.graveyard{position:absolute;inset:0;pointer-events:none;color:#635f5e;opacity:.7}.gravestone{position:absolute;bottom:-22px;width:68px;height:123px;border:1px solid #9c877d36;border-radius:32px 32px 0 0;background:linear-gradient(120deg,#343035,#19171e)}.gravestone::before,.gravestone::after{content:"";position:absolute;background:#a4968940;left:50%;top:28px;transform:translateX(-50%);width:2px;height:31px}.gravestone::after{width:23px;height:2px;top:38px}.grave-one{left:14%;transform:rotate(-9deg)}.grave-two{right:13%;transform:rotate(13deg);height:98px;width:58px}
.prop-axe{position:absolute;left:8%;bottom:-17px;width:75px;height:135px;transform:rotate(-28deg);color:#9d8a7a}.undead-hand{position:absolute;right:23%;bottom:-20px;width:87px;height:100px;color:#586456;transform:rotate(-16deg)}.prop-dagger{position:absolute;right:7%;bottom:-24px;height:110px;width:37px;transform:rotate(24deg)}
@keyframes spider-sway{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
@keyframes witch-drift{0%,100%{transform:translate(0,0) rotate(-14deg)}50%{transform:translate(-12px,-7px) rotate(-10deg)}}
@keyframes mist{from{transform:translateX(-3%);opacity:.5}to{transform:translateX(3%);opacity:1}}
@media(min-width:1500px){.intro{padding-top:60px}.skeleton-left{left:12%}.skeleton-right{right:10%}}
@media(max-width:800px){.skeleton{left:2%;width:67px;opacity:.18}.skeleton-right{left:auto;right:1%}.moon{right:8%;width:65px;height:65px;top:135px;opacity:.24}.flying-witch{right:5%;top:145px;width:85px}.hanging-spider{right:3%;height:215px;opacity:.6}.hanging-spider::before{height:173px}}
@media(max-width:600px){.masthead{margin:0 18px;padding:16px 0;gap:10px}.monogram-badge{width:42px;height:42px}.monogram{width:38px;height:38px}.brand{font-size:8px;letter-spacing:.12em}.edition{font-size:7px;letter-spacing:.08em;padding:7px 8px}.intro{padding:40px 24px 16px}.intro .eyebrow{font-size:8px;letter-spacing:.15em;margin-bottom:16px}h1{font-size:clamp(34px,8.5vw,50px);margin-bottom:18px}h1 em{font-size:.88em}.intro-copy{font-size:12px;line-height:1.8}.web{width:145px;height:145px;opacity:.16}.skeleton{top:190px;width:47px;height:120px;left:-11px;opacity:.15}.skeleton-right{top:310px;left:auto;right:-8px}.moon{top:92px;right:5%;width:47px;height:47px}.flying-witch{top:105px;width:60px;height:40px;right:3%}.hanging-spider{width:28px;right:2%;height:210px;opacity:.4}.hanging-spider svg{width:28px;height:35px}.hanging-spider::before{height:182px}.game-meta{gap:11px}.progress-label{font-size:9px;letter-spacing:.1em}.progress{gap:4px}.progress i{width:5px;height:5px}.puzzle-section{margin-top:12px}.game-hint{font-size:10px;max-width:280px;margin:0 auto}.haunted-footer{padding-top:70px;min-height:180px}.haunted-footer p{font-size:16px}.grave-one{left:4%;width:43px;height:84px}.grave-two{right:3%;height:73px;width:40px}.prop-axe{left:-7px;width:54px;height:95px;bottom:0}.undead-hand{right:13%;width:57px;height:67px;bottom:-7px}.prop-dagger{right:-7px;width:25px;height:83px}.haunted-footer p span{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* The next chapter shares this origin and uses a server-issued HttpOnly cookie. */
.access-panel{max-width:610px;margin:35px auto 0;border:1px solid #b69a6360;background:#171116;padding:26px;text-align:left;color:#e7d8bd}
.access-panel label{display:block;font-size:14px;margin-bottom:12px}
.access-fields{display:flex;gap:10px}
.access-fields input{min-width:0;flex:1;border:1px solid #b69a6377;background:#100e12;color:#e7d8bd;font:18px monospace;padding:12px;min-height:48px}
.access-fields button,.access-panel>a{background:#e7d8bd;color:#211a18;border:0;font:700 12px/1.5 Arial,sans-serif;padding:14px 18px;text-decoration:none;min-height:48px}
.access-panel>a{display:inline-block}
.access-panel [hidden]{display:none!important}
#access-status{font-size:13px;line-height:1.8;margin-top:18px}
.access-granted{border-color:#b69a63;box-shadow:0 0 60px #b69a6322}
@media(max-width:600px){.access-panel{padding:20px}.access-fields{flex-direction:column}.access-fields button{min-height:48px}}
