/* Brighter Halloween palette, keeping the purple / orange / green scheme. */
html{color-scheme:dark}body{background:radial-gradient(ellipse at 0 0,#78349d 0,transparent 50%),radial-gradient(ellipse at 100% 25%,#9a445a 0,transparent 43%),radial-gradient(ellipse at 80% 100%,#1b625b 0,transparent 55%),#221936;background-attachment:fixed;color:#faf1ff}.event-tag{color:#ffd08b}.brand{color:#fff3ff}.intro{color:#e1c9ee}.event-progress{background:linear-gradient(110deg,#a75de52b,#ff9c4820)}.event-track{background:#15102a99}#eventFill{background:linear-gradient(90deg,#a36cff,#ff66c4 32%,#ffae3c 67%,#c6fa69)}.progress-caption{color:#dbc4e8}.panel{background:#382349;box-shadow:0 15px 45px #16082933}.tabs{background:linear-gradient(105deg,#613887,#884b55)}.tab{color:#ead4f6}.tab.active,.content{background:#3c2b54}.heading h2{color:#fff3ff}.desc{color:#decae9}.pill{color:#ffe5b3;background:#945eaa38}.block{background:#291d3e}.letter{background:#f7ebd9}.letter input{color:#3c2455}.letter.solved-cell{background:#c5eca0}.letter.solved-cell input{color:#204d2e}.clue{color:#f2e2fc!important}.clue.solved-clue{color:#ccf59e!important}.clues h3{color:#ffca76}.word{color:#f4e8ff}.searchcell{background:#5b4175;color:#fff1ff}.searchcell.found{background:linear-gradient(130deg,#c7ec86,#80dbc1);color:#163c2b}.searchcell.selected{background:#ffb751;color:#352048}.primary{background:linear-gradient(110deg,#ff9c45,#ffd078);color:#341b39;box-shadow:0 5px 18px #f8a23b20}.secondary{background:#68458a;color:#f8e9ff}.aside{background:linear-gradient(145deg,#c5eeae 0%,#efe6a1 50%,#ffc18b 100%);box-shadow:0 12px 35px #16102a22}.aside .ticket-top{background:#fff9}.aside .progress div{background:linear-gradient(90deg,#9950e2,#ff9851,#78bc5c)}.note{background:#fff7}.footer{color:#c7b0dc}.status{color:#ffe0aa}.win{background:radial-gradient(ellipse at top,#72458c,transparent 70%),linear-gradient(145deg,#442857,#2d2342)}.win h2{color:#ffd590}.code{background:#ffffff15;color:#e4ffab}
/* Always-visible entrance and expressive idle actions. */
.puzzle-scroll{min-width:0;max-width:100%;align-self:start;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#8960a9 transparent;border-radius:7px}
.puzzle-board{padding-top:88px;min-width:0}.witch-cat{filter:drop-shadow(0 1px 2px #d1a5ff66)}.cat-window{will-change:transform}.cat-stage .cat-eyes{animation:cat-blink 3.8s linear infinite}.cat-stage .cat-tail{animation-duration:3s}.cat-stage .cat-hat{animation-duration:3.5s}.cat-toggle{display:none!important}.cat-groom-paw{opacity:0;transform:translate(4px,19px);transition:opacity 350ms ease,transform 650ms cubic-bezier(.22,1,.36,1)}.cat-tongue{opacity:0;transform-origin:64px 70px}.cat-bug{opacity:0;pointer-events:none;transition:opacity .4s}.cat-stage[data-activity=watch] .cat-bug{opacity:1;animation:cat-bug-flight 5.6s ease-in-out infinite}.cat-stage[data-activity=watch] .cat-pupils{animation:cat-bug-gaze 5.6s ease-in-out infinite}.cat-stage[data-activity=watch] .cat-head{animation:cat-track-head 5.6s ease-in-out infinite}.cat-stage[data-activity=groom] .cat-groom-paw{opacity:1;transform:translate(0,0)}.cat-stage[data-activity=groom] .cat-tongue{opacity:1;animation:cat-lick .8s ease-in-out infinite}.cat-stage[data-activity=groom] .cat-head{animation:cat-groom-nod .8s ease-in-out infinite}.cat-stage[data-activity=groom] .cat-pupils{animation:none;transform:translateY(2px)}.cat-stage[data-activity=groom] .cat-eyes{animation:cat-groom-blink 2.4s ease-in-out infinite}
@keyframes cat-lick{0%,15%,100%{transform:scaleY(.05);opacity:0}40%,65%{transform:scaleY(1);opacity:1}}
@keyframes cat-groom-nod{0%,100%{transform:rotate(4deg) translateY(0)}50%{transform:rotate(8deg) translateY(3px)}}
@keyframes cat-groom-blink{0%,70%,100%{transform:scaleY(.7)}85%{transform:scaleY(.08)}}
@keyframes cat-bug-flight{0%,100%{transform:translate(0,8px)}25%{transform:translate(32px,-12px)}50%{transform:translate(67px,8px)}75%{transform:translate(40px,31px)}}
@keyframes cat-bug-gaze{0%,100%{transform:translate(-3px,-2px)}25%{transform:translate(0,-4px)}50%{transform:translate(3px,-2px)}75%{transform:translate(1px,2px)}}
@keyframes cat-track-head{0%,100%{transform:rotate(-5deg)}25%{transform:rotate(-2deg) translateY(-1px)}50%{transform:rotate(6deg)}75%{transform:rotate(3deg) translateY(1px)}}
/* Responsive controls, safe areas, and native phone keyboards. */
input,button,a{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}.letter input{font-size:18px;caret-color:#69358b}.tabs .tab,.primary,.secondary{min-height:44px}.modal{padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow-y:auto}.win{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;-webkit-overflow-scrolling:touch}.content,.panel,.layout,.puzzle-layout{min-width:0}.main{padding-bottom:max(25px,env(safe-area-inset-bottom))}
@media(max-width:850px){.puzzle-layout{grid-template-columns:1fr}.clues{display:grid;grid-template-columns:1fr 1fr;gap:10px 22px}.layout{grid-template-columns:1fr}.aside{margin-top:0}.puzzle-scroll{width:100%}.puzzle-board{padding-top:88px}.clue{min-height:40px;margin-bottom:8px}.aside h2 br{display:none}}
@media(max-width:560px){body{background-attachment:scroll}.site-header{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}.header-copy .brand{font-size:clamp(21px,6vw,26px)}.header-copy .intro{font-size:12px}.main{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.content{padding:18px 10px}.heading{align-items:flex-start}.heading h2{font-size:21px}.desc{font-size:12px;line-height:1.6}.puzzle-layout{gap:18px;margin-top:12px}.puzzle-board{min-width:336px;padding-top:72px}.grid{gap:2px}.letter input{font-size:16px;padding-top:6px;border-radius:5px}.searchcell{font-size:16px;min-height:26px}.num{font-size:8px;line-height:10px;top:0;left:2px}.clues{gap:8px 14px}.clue{font-size:13px;line-height:1.6;min-height:44px}.clues h3{font-size:12px}.word{font-size:13px;line-height:2}.actions{gap:8px;flex-wrap:wrap}.primary,.secondary{font-size:12px;min-height:44px;padding:12px 16px}.event-progress{padding:14px 15px}.event-track{height:14px}.progress-caption{line-height:1.5}.aside{padding:24px}.aside p{font-size:13px;line-height:1.7}.aside .small{font-size:12px}.ticket-top{padding:12px 16px}.footer{font-size:9px;line-height:1.7}.win{width:100%;padding:28px 20px}.win h2{font-size:32px}.code{font-size:22px;letter-spacing:2px}}

@media(max-width:560px){.puzzle-scroll[data-overflow=true]::after{content:'Swipe sideways to see every column.';display:block;position:sticky;left:0;color:#d6bee5;font:11px/1.5 Arial,sans-serif;padding:9px 0 2px;max-width:100%;white-space:normal}}

/* Reduced motion softens the companion instead of freezing it. */
.cat-stage[data-gentle=true] .cat-tail{animation-duration:7s}
.cat-stage[data-gentle=true] .cat-hat{animation:none}
.cat-stage[data-gentle=true] .cat-eyes{animation-duration:6s}
.cat-stage[data-gentle=true][data-activity=watch] .cat-bug,.cat-stage[data-gentle=true][data-activity=watch] .cat-pupils,.cat-stage[data-gentle=true][data-activity=watch] .cat-head{animation-duration:8s}
.cat-stage[data-gentle=true][data-activity=groom] .cat-tongue,.cat-stage[data-gentle=true][data-activity=groom] .cat-head{animation-duration:1.2s}

.aside.entry-instructions h2{font:600 26px/1.2 Georgia,serif;letter-spacing:-.5px;margin:0 0 20px}.entry-instructions ol{padding-left:20px;margin:0;color:#36533a;font:14px/1.6 Arial,sans-serif}.entry-instructions li{padding-left:3px;margin-bottom:14px}.entry-instructions li:last-child{margin-bottom:0}.entry-instructions .progress{margin-top:24px}.entry-instructions p.entry-details{font-size:12px;line-height:1.6;margin:20px 0 0}.entry-instructions .small{font-size:11px}@media(max-width:560px){.aside.entry-instructions h2{font-size:26px}.entry-instructions ol{font-size:14px}.entry-instructions p.entry-details{font-size:13px}}

/* Expanded 2026 event and direct community links. */
.brand{margin:0;font-size:clamp(25px,3.1vw,35px);line-height:1.2;max-width:900px;text-wrap:balance}
.community-links{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px}
.community-links a{display:inline-flex;gap:7px;align-items:center;min-height:38px;color:#ffd28e;font:600 13px/1.4 Arial,sans-serif;text-decoration:none}
.community-links a:hover,.footer a:hover{text-decoration:underline;text-underline-offset:4px}
.entry-details a{color:#304f36;font-weight:700;text-underline-offset:3px}.footer a{color:inherit;text-decoration:none}
.panel[data-puzzle=search] .puzzle-layout{grid-template-columns:minmax(0,1fr);gap:22px}
.panel[data-puzzle=search] .clues{display:block}.word-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px}
.word-list h3{grid-column:1/-1;margin:0 0 6px}.word-list .word{font:12px/1.5 Arial,sans-serif;letter-spacing:.2px;margin:0;padding:7px 0;overflow-wrap:anywhere}
.panel[data-puzzle=search] .grid{gap:2px}.panel[data-puzzle=search] .searchcell{min-height:0;font:600 clamp(13px,1.2vw,17px)/1 monospace}
@media(max-width:850px){.word-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){header.site-header{align-items:flex-start}.header-copy .brand{font-size:clamp(22px,5.6vw,28px);line-height:1.2}.community-links{gap:4px 15px;margin-top:8px}.community-links a{font-size:12px;min-height:40px}.panel[data-puzzle=search] .puzzle-board{min-width:414px}.panel[data-puzzle=search] .searchcell{font-size:14px}.word-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 14px}.word-list .word{font-size:12px;line-height:1.5}.heading .pill{white-space:nowrap;flex-shrink:0}.footer{display:flex;flex-direction:column;gap:6px}.footer a{min-height:36px;display:inline-flex;align-items:center}}

/* Prominent community button, with a comfortable touch target. */
.footer{align-items:center;margin-top:28px;gap:22px}
.footer .community-cta{display:inline-flex;align-items:center;justify-content:space-between;gap:18px;min-height:64px;max-width:100%;padding:16px 22px;border-radius:20px;background:linear-gradient(115deg,#c8f092 0%,#ffcf82 58%,#ffab79 100%);color:#34233f;font:700 16px/1.4 Arial,sans-serif;letter-spacing:0;text-decoration:none;box-shadow:0 8px 25px #170c3438,0 0 24px #ffb46c19;transition:transform 200ms ease,box-shadow 200ms ease}
.community-cta .cta-arrow{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#fff6;font-size:21px;line-height:1}
.footer .community-cta:hover{transform:translateY(-2px);text-decoration:none;box-shadow:0 12px 30px #170c344d,0 0 28px #ffb46c30}
.footer .community-cta:focus-visible{outline:3px solid #d6ff9e;outline-offset:5px}
@media(max-width:560px){.footer{align-items:stretch;gap:16px}.footer .community-cta{width:100%;padding:16px 18px;font-size:15px;gap:12px}.footer>span{text-align:center}}
@media(prefers-reduced-motion:reduce){.footer .community-cta{transition:none}.footer .community-cta:hover{transform:none}}
