
/* Collectible Halloween 2026; enabled only when the server-owned theme is selected. */
body.halloween-2026 {
  --halloween-orange:#ffab55;
  background:radial-gradient(ellipse at 70% 0%,#38142f 0%,transparent 58%),linear-gradient(155deg,#180a24,#100613 65%,#240f20) !important;
}
body.halloween-2026 #appShell,
body.halloween-2026 .app-shell { background:transparent !important; }
body.halloween-2026 .sidebar,
body.halloween-2026 .app-sidebar { border-color:#5b284a; }
body.halloween-2026 .primary-button { box-shadow:0 0 16px #ff8a2940; }
.halloween-sky { position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:1; }
.halloween-sky .halloween-shape { position:absolute;opacity:.23;filter:drop-shadow(0 0 20px #f7893a66);animation:halloween-float var(--halloween-speed,19s) ease-in-out infinite alternate;user-select:none; }
.halloween-sky .halloween-shape:nth-child(1){left:6%;top:17%;font-size:56px;--halloween-speed:15s}
.halloween-sky .halloween-shape:nth-child(2){left:82%;top:28%;font-size:65px;--halloween-speed:24s;animation-delay:-6s}
.halloween-sky .halloween-shape:nth-child(3){left:45%;top:73%;font-size:39px;--halloween-speed:20s;animation-delay:-13s}
.halloween-sky .halloween-shape:nth-child(4){left:93%;top:83%;font-size:37px;--halloween-speed:18s;animation-delay:-4s}
.halloween-sky .halloween-shape:nth-child(5){left:18%;top:88%;font-size:40px;--halloween-speed:21s;animation-delay:-7s}
.halloween-sky .halloween-shape:nth-child(6){left:63%;top:10%;font-size:32px;--halloween-speed:25s;animation-delay:-3s}
@keyframes halloween-float{0%{transform:translate3d(0,0,0) rotate(-9deg)}100%{transform:translate3d(14px,-56px,0) rotate(13deg)}}
.halloween-ghost-cursor{position:fixed;left:0;top:0;transform:translate3d(-100px,-100px,0);font-size:27px;filter:drop-shadow(0 0 8px #ffbb66);pointer-events:none;z-index:100002;user-select:none;transition:opacity .2s;opacity:0}
.halloween-ghost-cursor.active{opacity:.85}
.halloween-action{padding:14px 16px;border:1px solid #82524b;border-radius:12px;background:linear-gradient(130deg,#29122e,#180f1d);color:#ffe6ce;margin:12px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.halloween-action strong{display:block;color:#ffbb73}.halloween-action small{display:block;color:#c6adb8;margin-top:3px}
.halloween-action button{background:#a94e20;color:white;border:1px solid #f09a4b;border-radius:9px;padding:10px 12px;cursor:pointer}
.halloween-action button:disabled{opacity:.45;cursor:not-allowed}
.halloween-toast{position:fixed;right:20px;bottom:22px;z-index:100005;color:#fff1d7;background:#301b2e;border:1px solid #ff9c42;box-shadow:0 8px 36px #0008;border-radius:12px;padding:14px 20px;max-width:min(430px,90vw)}
.halloween-game-dialog{border:1px solid #47483b;border-radius:4px;background:#20231e;color:#ece8dc;padding:0;width:min(680px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;box-shadow:0 24px 100px #0009;color-scheme:dark}
.halloween-game-dialog::backdrop{background:#080b08d9;backdrop-filter:blur(6px)}
.halloween-game-content{padding:24px 28px 22px;font-family:system-ui,sans-serif}
.halloween-game-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:24px}
.halloween-game-edition{font:10px ui-monospace,monospace;letter-spacing:.12em;color:#a4a893}.halloween-game-edition span{margin:0 10px;color:#db8b53}
.halloween-game-content button{cursor:pointer;font:inherit;touch-action:manipulation}.halloween-game-content button:focus-visible{outline:2px solid #f5b97d;outline-offset:4px}
#halloween2026Close{width:36px;height:36px;padding:8px;border:1px solid #45493c;border-radius:50%;background:transparent;color:#bcbfac;display:grid;place-items:center}
#halloween2026Close:hover{background:#33392d;color:#fff}#halloween2026Close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.halloween-game-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.halloween-game-content h2{font-size:34px;line-height:1.1;letter-spacing:-1.3px;font-weight:650;margin:0;color:#f0e9dc}.halloween-game-content h2 span{display:block;margin-top:9px;color:#aaa995;letter-spacing:0;font-size:12px;font-weight:400}
.halloween-game-stats{display:flex;gap:25px}.halloween-game-stats>div{display:grid;gap:6px;min-width:60px}.halloween-game-stats>div>span{font:9px ui-monospace,monospace;letter-spacing:.08em;color:#a4a893}.halloween-game-stats strong{font:30px/1 ui-monospace,monospace;font-variant-numeric:tabular-nums;color:#f0e9dc}.halloween-game-stats strong span{font-size:16px;color:#999e89}
.halloween-game-clock{height:3px;background:#444937}.halloween-game-clock>span{display:block;height:100%;background:#df935b;transform-origin:left;transition:transform .1s linear}
.halloween-game-field{position:relative;height:310px;overflow:hidden;background-color:#151b15;background-image:radial-gradient(#39402e 1px,transparent 1px);background-size:22px 22px;border:1px solid #383f30;border-top:0}
.halloween-field-label{position:absolute;left:14px;top:14px;font:9px ui-monospace,monospace;letter-spacing:.13em;color:#7e866f;pointer-events:none}
.halloween-game-intro{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.halloween-game-intro[hidden]{display:none}
.halloween-game-art{width:96px;height:96px;margin-bottom:14px}.halloween-game-art svg{width:100%;height:100%}
.halloween-game-intro h3{font-size:19px;letter-spacing:-.4px;font-weight:550;margin:0;color:#e8e4d5}.halloween-game-intro p{font-size:12px;color:#9da38e;margin:8px 0 0}
.halloween-game-target{position:absolute;width:64px;height:64px;min-width:64px;min-height:64px;padding:2px!important;border:0!important;background:transparent!important;display:grid;place-items:center;transition:none;border-radius:10px}.halloween-game-target svg{width:60px;height:60px;pointer-events:none;filter:drop-shadow(0 5px 4px #0005)}.halloween-game-target:hover svg{transform:translateY(-2px)}
.halloween-game-legend{display:flex;align-items:center;gap:22px;padding:13px 0 18px;border-bottom:1px solid #414536;color:#a9ad99;font-size:11px}.halloween-game-legend>span{display:flex;align-items:center;gap:6px}.halloween-game-legend svg{width:22px;height:22px}.halloween-game-legend b{font:11px ui-monospace,monospace;color:#e6e1d2;margin-left:2px}.halloween-game-round{margin-left:auto;color:#808874;font:10px ui-monospace,monospace}
.halloween-game-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:18px}.halloween-game-result{margin:0;color:#a9ad99;font-size:12px;line-height:1.5}
#halloween2026Start{border:1px solid #e9a46a;border-radius:3px;padding:12px 20px;background:#e4a16b;color:#20231e;font-size:12px;font-weight:650;min-width:132px;white-space:nowrap}#halloween2026Start:hover{background:#f0b580}#halloween2026Start span{margin-left:22px}
@media(max-width:480px){.halloween-game-content{padding:16px}.halloween-game-header{padding-bottom:20px}.halloween-game-content h2{font-size:26px}.halloween-game-stats{gap:12px}.halloween-game-stats>div{min-width:48px}.halloween-game-stats strong{font-size:25px}.halloween-game-field{height:min(310px,40dvh)}.halloween-game-round{display:none!important}.halloween-game-legend{gap:18px}.halloween-game-result{max-width:145px;font-size:11px}#halloween2026Start{min-width:110px;padding:12px 14px}.halloween-game-edition{font-size:9px;letter-spacing:.06em}}
@media(prefers-reduced-motion:reduce){.halloween-game-clock>span{transition:none}.halloween-game-target:hover svg{transform:none}}
.admin-delete-account{display:block;margin:15px 0 0 auto;border:1px solid #ad4747;border-radius:9px;background:#39141d;color:#ffd4d4;padding:9px 12px;cursor:pointer}
.admin-delete-account:hover{background:#68202e}
.admin-delete-dialog{background:#181419;color:#f4f1f4;border:1px solid #ab5555;border-radius:14px;width:min(480px,94vw);padding:0}
.admin-delete-dialog::backdrop{background:#070509c9}
.admin-delete-dialog form{display:grid;gap:14px;padding:22px}
.admin-delete-dialog label{display:grid;gap:6px}
.admin-delete-dialog input{padding:11px;border-radius:8px;border:1px solid #786271;background:#161218;color:white;width:100%;box-sizing:border-box}
.admin-delete-dialog footer{display:flex;gap:12px;justify-content:flex-end}
.admin-delete-dialog button{padding:10px 15px;border:1px solid #777;border-radius:9px;background:#332f37;color:#fff;cursor:pointer}
.admin-delete-dialog button[type=submit]{background:#8b2936;border-color:#cb5667}
@media(hover:none),(pointer:coarse){.halloween-ghost-cursor{display:none!important}}
@media(prefers-reduced-motion:reduce){.halloween-sky .halloween-shape{animation:none!important}.halloween-ghost-cursor{display:none!important}}
body.reduce-motion .halloween-sky .halloween-shape{animation:none!important}
body.reduce-motion .halloween-ghost-cursor{display:none!important}

.halloween-game-target[hidden], .halloween-sky[hidden], .halloween-action[hidden] {display:none!important}
/* Override older effort styles restored by startup migrations. */
.chat-main.zordex-active .zordex-effort-button::before {content:none!important;display:none!important}
.chat-main.zordex-active .zordex-effort-button {padding-left:12px!important}

/* Haunted Night cursor controls are visible only to verified theme owners. */
.halloween-ghost-option[hidden],.halloween-ghost-setting[hidden]{display:none!important}
.halloween-ghost-option{margin-top:16px;padding:15px 16px;border:1px solid #67434b;border-radius:12px;background:linear-gradient(130deg,#241624,#18131d);color:#f6dcca;display:grid;gap:10px}
.halloween-ghost-option strong{font-size:.94rem;color:#ffbd7e}
.halloween-ghost-option small,.halloween-ghost-setting small{display:block;font-size:.77rem;color:#bfaeba;margin-top:4px;line-height:1.4}
.halloween-ghost-option label{display:flex;align-items:center;gap:9px;width:fit-content;cursor:pointer}
.halloween-ghost-option input,.halloween-ghost-setting input{width:18px;height:18px;flex:0 0 auto;accent-color:#ff9c42}
.halloween-ghost-option :focus-visible,.halloween-ghost-setting :focus-visible{outline:2px solid #ffb574;outline-offset:3px}
