@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');
:root{color-scheme:light;--ink:#463450;--muted:#837487;--paper:#f6eee5;--purple:#78618f;--bat:#a88bbd}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;background-image:radial-gradient(#ac8a6b16 .8px,transparent .8px);background-size:7px 7px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #dcd1dc;background:#fffaf3;border-radius:12px;padding:10px 14px;transition:background .2s,transform .2s}button:hover{background:#eee2ef;transform:translateY(-1px)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #7b538f;outline-offset:3px}header{max-width:1440px;margin:auto;padding:26px 48px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d7c9bc90}.brand{display:flex;align-items:center;gap:12px;font-size:28px;font-weight:800;letter-spacing:2px;color:var(--ink);text-decoration:none}.brand svg{width:44px;height:34px;color:var(--purple)}.brand span{font-size:12px;letter-spacing:2px;border-left:1px solid #cab9c9;padding-left:14px;font-weight:500}.header-right{display:flex;align-items:center;gap:22px}.event{font-size:10px;letter-spacing:2px;color:#a56445}.header-right button{font-size:12px;background:transparent}main{max-width:1360px;margin:36px auto 24px;padding:0 32px;display:grid;grid-template-columns:1fr 480px .87fr;gap:44px;align-items:center}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#9b735b}h1{font-family:Fraunces,Georgia,serif;font-size:clamp(42px,4.4vw,66px);line-height:1.05;font-weight:500;letter-spacing:-2px;margin:22px 0}h1 em{color:#9d6887;font-weight:500}.intro{font-size:14px;color:var(--muted);line-height:1.9}.illustration{height:245px;position:relative;isolation:isolate;margin-top:0}.moon{position:absolute;width:114px;height:114px;top:12px;left:55%;background:#f6d38b;border-radius:50%;box-shadow:0 0 0 12px #f6d38b22,0 0 0 26px #f6d38b15}.hero-bat{position:absolute;width:146px;height:110px;left:3%;top:6px;z-index:3;transform:rotate(-13deg);color:var(--bat);animation:bob 4s ease-in-out infinite}.wing{transform-box:fill-box;transform-origin:right center;animation:flap 1.8s ease-in-out infinite}.wing.right{transform-origin:left center}.boo{font-family:Fraunces,serif;font-style:italic;position:absolute;top:3px;left:47%;transform:rotate(15deg);color:#b18c9f}.roof{position:absolute;left:37%;bottom:115px;width:120px;height:87px;background:#796786;clip-path:polygon(50% 0,100% 100%,0 100%);z-index:2}.house{position:absolute;left:40%;bottom:15px;width:102px;height:108px;background:#b0a0b8;border:4px solid #796786;border-radius:0 0 7px 7px}.window{position:absolute;width:43px;height:43px;top:7px;left:26px;display:grid;grid-template-columns:1fr 1fr;gap:3px;background:#796786;border:4px solid #796786;border-radius:24px 24px 0 0;overflow:hidden}.window i{background:#ffe6a7}.door{position:absolute;width:29px;height:42px;bottom:0;left:32px;border-radius:20px 20px 0 0;background:#796786}.pump{position:absolute;bottom:6px;width:80px;height:73px;z-index:4}.p1{left:19%;transform:rotate(-7deg)}.p2{right:0;width:58px;transform:rotate(9deg)}.ground{position:absolute;bottom:3px;left:3%;width:95%;height:22px;background:#d8ccce;border-radius:50%;z-index:-1}.spark{position:absolute;color:#b78b51}.s1{left:7%;top:125px}.s2{right:0;top:50px;font-size:25px}.s3{left:44%;top:0;font-size:12px}.chapter{display:flex;align-items:center;gap:12px;margin-top:16px;border-top:1px solid #d7c9bc;padding-top:20px}.chapter>span{font-size:34px;color:#ae784f}.chapter small{font-size:8px;letter-spacing:1.7px;display:block;color:var(--muted);margin-bottom:6px}.chapter strong{font-size:12px;font-weight:500}.play-panel{background:#fffcf7;padding:24px;border:1px solid #e2d8d5;border-radius:25px;box-shadow:0 15px 45px #64424b0c,0 4px 0 #e7ddd8}.board-top{display:flex;align-items:center;justify-content:space-between}h2{font-family:Fraunces,Georgia,serif;font-weight:500;letter-spacing:-.7px}.board-top h2{font-size:27px;margin:6px 0 0}.board-top .eyebrow{font-size:8px}.round-button{font-size:12px;padding:9px 10px}.stats{display:flex;justify-content:space-between;margin:22px 2px 15px;font-size:12px;color:var(--muted)}#hearts{color:#bc6977;letter-spacing:5px;font-size:16px}#timer{font-variant-numeric:tabular-nums}.board-wrap{position:relative}#board{display:grid;grid-template-columns:repeat(var(--n,5),1fr);aspect-ratio:1;border:3px solid #6a5576;border-radius:12px;overflow:hidden;background:#6a5576;touch-action:manipulation}.cell{position:relative;min-width:0;border-radius:0;padding:0;border:0;border-right:1px solid #55426022;border-bottom:1px solid #55426022;background:var(--zone);display:grid;place-items:center;aspect-ratio:1;font-size:24px;box-shadow:none;color:#6e5578}.cell:hover{background:var(--zone);filter:brightness(1.045);transform:none}.cell.region-right{border-right:3px solid #6a5576}.cell.region-bottom{border-bottom:3px solid #6a5576}.cell svg{width:94%;height:94%;color:var(--bat);filter:drop-shadow(0 3px 0 #45314a19);animation:arrive .3s ease-out;overflow:visible}.cell .wing{animation:none}.cell:hover .wing{animation:flap .7s infinite}.cell .room-label{position:absolute;top:3px;left:5px;font-size:8px;font-weight:700;color:#49365080;pointer-events:none}.cell.marked:after{content:'×';font-size:25px;font-weight:400;opacity:.55}.cell.wrong{animation:shake .32s;background:#f3b2a8}.cell.hinted{box-shadow:inset 0 0 0 4px #fff8b5}#message{min-height:36px;text-align:center;font-size:11px;color:#88738b;line-height:1.5;margin:14px 0 7px}.mode-switch{display:flex;gap:5px;padding:5px;background:#f0e9ee;border-radius:13px}.mode-switch button{flex:1;border:0;background:transparent;font-size:12px;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px}.mode-switch button.active{background:#79618d;color:white;box-shadow:0 3px 6px #48334e18}.mode-switch svg{width:26px;height:20px;color:#dfc6e5}kbd{font-size:9px;opacity:.55;border:1px solid currentColor;padding:1px 3px;border-radius:3px}.tools{display:flex;justify-content:space-between;margin-top:13px;gap:5px}.tools button{border:0;background:transparent;padding:9px 6px;font-size:11px}.tools button span{background:#eee1cd;border-radius:6px;padding:2px 5px;margin-left:3px}.journal-head{display:flex;gap:8px;align-items:center}.journal-head>span{font-size:24px;color:#bd915c}.journal-head .eyebrow{font-size:8px;letter-spacing:1.3px}.journal h2{font-size:30px;line-height:1.16;margin:12px 0 26px}.rule{display:flex;gap:14px;margin:20px 0;align-items:flex-start}.rule>b{font-size:10px;background:#e8dfeb;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;flex-shrink:0;color:#8b6d9d}.rule p{margin:0}.rule strong{display:block;font-size:12px;font-weight:600}.rule p span{display:block;font-size:10px;color:var(--muted);margin-top:5px;line-height:1.4}.treat-card{margin-top:30px;border:1px solid #ddc5ac;background:#f5e8d4;border-radius:17px;padding:18px}.treat-top{display:flex;justify-content:space-between;align-items:center;font-size:12px}.treat-top strong{font-family:Fraunces,serif;font-size:26px;color:#a6663d}.treat-card p{font-size:11px;line-height:1.8;color:#9a7e68}.treat-card small{font-size:9px;color:#9a7e68}#costumes{display:flex;gap:8px;margin:12px 0}#costumes button{padding:4px;width:42px;height:38px;border-radius:9px;background:#fff7e9}#costumes button.selected{border:2px solid #87618b}#costumes svg{width:100%;height:100%}.tip{display:flex;gap:12px;margin-top:20px;align-items:center;color:#9c8998}.tip>span{font-size:27px}.tip p{font-size:11px;line-height:1.8}#help{border:0;background:none;font-size:10px;text-decoration:underline;color:#9c8998;padding:0}footer{max-width:1260px;margin:24px auto;padding:20px 20px 0;border-top:1px solid #d7c9bc80;display:flex;justify-content:space-between;font-size:8px;color:#a28f95;letter-spacing:1.5px}dialog{border:1px solid #d7c9d5;border-radius:25px;padding:38px;max-width:480px;width:calc(100% - 32px);background:#fffaf2;color:var(--ink);box-shadow:0 20px 90px #38213e30}dialog::backdrop{background:#49314f65;backdrop-filter:blur(5px)}.close{position:absolute;right:12px;top:12px;border:0;background:transparent;font-size:22px;padding:4px 10px}#modal-content{text-align:center}#modal-content h2{font-size:34px;margin:12px 0}#modal-content p{font-size:13px;color:var(--muted);line-height:1.8}.modal-bat{width:150px;height:110px;color:var(--bat)}.primary{background:#79618d!important;color:white!important;border:0;padding:13px 25px;margin-top:14px}.stars{color:#d59240;font-size:38px;letter-spacing:8px}.level-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin-top:24px}.level-grid button{font-size:13px;padding:12px 3px}.level-grid small{display:block;font-size:8px;color:#a37a43;margin-top:5px}.level-grid .current{border:2px solid #79618d}.mode-note{font-size:10px!important}#particles{position:absolute;inset:0;pointer-events:none;overflow:visible}.particle{position:absolute;font-size:24px;animation:floatup 1.2s ease-out forwards}.sprites{position:absolute}.win-glow{animation:glow 1s ease-in-out infinite alternate}@keyframes bob{50%{transform:translateY(-8px) rotate(-7deg)}}@keyframes flap{50%{transform:scaleY(.72) rotate(-5deg)}}@keyframes arrive{from{transform:scale(.3) translateY(-20px);opacity:0}to{transform:scale(1);opacity:1}}@keyframes shake{25%,75%{transform:translateX(-4px)}50%{transform:translateX(4px)}}@keyframes floatup{to{transform:translateY(-130px) rotate(35deg);opacity:0}}@keyframes glow{to{filter:drop-shadow(0 0 12px #efb667)}}
@media(min-width:1100px) and (max-height:800px){main{margin-top:22px;grid-template-columns:1fr 440px .87fr;gap:32px}.play-panel{padding:19px}header{padding:18px 44px}h1{font-size:52px}.illustration{height:210px}.journal h2{font-size:27px}.rule{margin:16px 0}footer{margin:14px auto}}
@media(max-width:1100px){main{grid-template-columns:1fr 460px;max-width:930px;gap:32px}.journal{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:15px;align-items:start}.journal-head,.journal h2,.tip{display:none}.rule{margin:10px 0}.treat-card{grid-column:1/-1;margin:0;display:flex;align-items:center;gap:24px}.treat-card p{margin:0}#costumes{margin:0}.treat-top{gap:18px}.treat-card small{margin-left:auto}#help{justify-self:start}}
@media(max-width:730px){header{padding:16px 20px}.brand{font-size:22px;gap:7px}.brand span,.event{display:none}.brand svg{width:34px}.header-right button{font-size:11px;padding:7px 9px}main{display:flex;flex-direction:column;padding:0 14px;margin:20px auto;gap:20px;max-width:500px}.story{width:100%;position:relative;padding:0 8px;min-height:115px}.story>.eyebrow{font-size:8px}h1{font-size:36px;line-height:1.05;letter-spacing:-1.3px;margin:10px 0 4px;width:65%}h1 br:nth-child(2){display:none}h1 em{white-space:nowrap}.intro,.chapter{display:none}.illustration{position:absolute;right:0;top:-14px;width:125px;height:140px;transform:scale(.8);transform-origin:right center}.illustration .house,.illustration .roof,.illustration .ground,.illustration .p2,.illustration .boo{display:none}.illustration .moon{width:75px;height:75px;left:25%}.hero-bat{width:130px;left:0;top:5px}.illustration .p1{width:60px;bottom:0;left:35%}.play-panel{width:100%;padding:19px 17px;border-radius:20px}.board-top h2{font-size:25px}.stats{margin:16px 2px 12px}#message{margin:12px 0 7px;min-height:32px}.journal{width:100%;display:block;padding:0 7px}.journal .rule{display:none}.treat-card{display:block;margin:0;padding:14px 18px;position:relative}.treat-top{justify-content:flex-start;gap:16px}.treat-card p{font-size:10px;margin:3px 0}.treat-card p br{display:none}#costumes{position:absolute;right:16px;top:18px;gap:5px}#costumes button{width:33px;height:32px}.treat-card small{font-size:9px}#help{margin:16px 0 0}footer{max-width:470px;margin:20px auto;display:block;text-align:center;line-height:2}footer span{display:block}kbd{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* All Hallows' Eve: mist, candlelight, and a slightly wicked cast. */
:root{--paper:#eee7e9;--ink:#3c2b47;--bat:#80608f}body{background-color:var(--paper);background-image:radial-gradient(ellipse at 0% 55%,#a18bb33d,transparent 48%),radial-gradient(ellipse at 100% 0%,#ecc78d45,transparent 45%)}.story>.eyebrow{color:#93633f}.illustration{height:270px}.moon{background:#efc378;box-shadow:0 0 25px #efc37870,0 0 0 14px #efc3781c}.hero-bat{width:160px;left:-2%;top:15px;color:var(--bat);filter:drop-shadow(0 8px 4px #39214618)}.house{background:#918099;border-color:#5b486c}.roof{background:#5b486c}.door{background:#392d46}.window{background:#5b486c;border-color:#5b486c;box-shadow:0 0 calc(6px + 16px * var(--lit,0)) #efb45c88}.window i{background:#eeb55f;animation:candle 4s ease-in-out infinite}.window i:nth-child(2){animation-delay:-1.4s}.pump{filter:drop-shadow(0 0 8px #ed9d3b44);animation:lantern 3s ease-in-out infinite alternate}.p2{animation-delay:-1s}.ghost{position:absolute;right:-6px;top:112px;width:37px;height:50px;background:#fffaf1d9;border-radius:48% 48% 0 0;clip-path:polygon(0 0,100% 0,100% 100%,75% 87%,50% 100%,25% 87%,0 100%);transform:rotate(12deg);animation:haunt 5s ease-in-out infinite;z-index:3;filter:drop-shadow(0 0 6px white)}.ghost i{position:absolute;width:5px;height:9px;top:17px;left:9px;background:#74657e;border-radius:50%}.ghost i:nth-child(2){left:23px}.ghost b{position:absolute;width:5px;height:7px;top:29px;left:17px;background:#74657e;border-radius:50%}.gravestone{position:absolute;left:4%;bottom:16px;width:40px;height:57px;background:#b3a5b6;border:3px solid #95859f;border-radius:22px 22px 0 0;transform:rotate(-13deg);font:12px Georgia,serif;padding-top:16px;text-align:center;color:#7a6687;z-index:2}.fence{position:absolute;bottom:22px;left:0;width:100%;height:35px;background:repeating-linear-gradient(90deg,transparent 0 13px,#8e7d9980 13px 16px,transparent 16px 23px);border-bottom:3px solid #8e7d9980;z-index:-1}.mist{position:absolute;bottom:0;left:0;width:100%;height:42px;background:linear-gradient(transparent,#eee7e9d9,transparent);filter:blur(5px);z-index:5;animation:mist 9s ease-in-out infinite;pointer-events:none}.web{position:absolute;right:-14px;top:-18px;width:85px;height:85px;color:#a594ad80;transform:rotate(90deg)}.chimney{position:absolute;right:1px;top:-46px;width:17px;height:40px;background:#72617e;z-index:0}.boo{color:#7d628d;top:-5px;left:42%;font-size:17px}.play-panel{box-shadow:0 15px 45px #50345b15,0 4px 0 #d9cddc}.journal h2{font-size:29px}.treat-card{background:#f0dfc7}.haunted-win .pump{filter:drop-shadow(0 0 15px #ffac36);animation:lantern .7s ease-in-out infinite alternate}.haunted-win .ghost{animation:haunt 1.5s ease-in-out infinite}.haunted-win .hero-bat .wing{animation-duration:.45s}body[data-chapter="1"] .house{background:#93a99c}body[data-chapter="1"] .moon{background:#d4e0a3}body[data-chapter="2"] .house{background:#a884a0}body[data-chapter="2"] .roof{background:#775377}body[data-chapter="3"] .house{background:#8994b0}body[data-chapter="3"] .moon{background:#ece0b3}@keyframes candle{0%,100%{opacity:1}37%{opacity:.65}40%{opacity:.9}43%{opacity:.7}65%{opacity:1}}@keyframes lantern{to{filter:drop-shadow(0 0 15px #f0a33b88)}}@keyframes haunt{50%{transform:translate(-16px,-15px) rotate(-12deg);opacity:.6}}@keyframes mist{50%{transform:translateX(-15px) scaleX(1.1);opacity:.5}}
@media(min-width:1100px) and (max-height:800px){.illustration{height:220px}}
@media(max-width:730px){.illustration{height:140px}.illustration .web{width:55px;right:-8px;top:-8px}.illustration .ghost{right:0;top:85px;width:27px;height:39px}.illustration .ghost i{left:5px;top:12px}.illustration .ghost i:nth-child(2){left:17px}.illustration .ghost b{left:12px;top:24px}.illustration .gravestone,.illustration .fence{display:none}.hero-bat{width:130px;top:5px}h1{font-size:34px}h1 br:nth-child(2){display:block}.story{min-height:135px}}
body{background-size:auto;background-repeat:no-repeat;background-attachment:fixed}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
[hidden]{display:none!important}#daily-open{background:#79618d;color:#fff;border-color:#79618d;font-weight:600}#daily-banner{background:#f0e4f4;border-radius:8px;padding:9px 12px;margin:13px 0 0;font-size:11px;color:#755184}.daily-rules{font-size:12px!important;text-align:left;background:#f2eaf2;border-radius:12px;padding:14px}#daily-name{display:flex;gap:8px;align-items:center;font-size:12px;margin:15px 0}#player-name{min-width:0;flex:1;width:80px;border:1px solid #d2bfd5;border-radius:8px;padding:10px;background:#fff;color:var(--ink);font:inherit}#name-status,#daily-empty,#daily-me{font-size:11px;line-height:1.7;color:var(--muted)}#adventure-back{margin-left:8px}.daily-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.daily-table th{font-size:10px;color:var(--muted);font-weight:500}.daily-table td,.daily-table th{padding:11px 6px;border-bottom:1px solid #e3d7e6}.daily-table td:nth-child(2){max-width:170px;overflow-wrap:anywhere}.daily-table .is-me{background:#f0e4f4}.daily-table-wrap{max-height:250px;overflow:auto;margin-top:18px}.daily-table thead{position:sticky;top:0;background:#fffaf2}#modal{max-height:90svh;overflow:auto}
@media(max-width:730px){.header-right{gap:6px}#daily-open{font-size:10px;padding:8px}header{padding:12px}.brand{font-size:18px}.brand svg{width:26px}}
