[data-theme="halloween"]{--paper:#17131c;--paper2:#211a28;--paper-glass:rgba(23,19,28,.92);--input:#251d2b;--ink:#f6eadb;--muted:#b9a9b5;--line:#493a50;--card:#211a28;--sun:#e57a24;--sun2:#f2b45f;--green:#92a35f;--green2:#263326;--gold:#dca14c;--gray:#897c8b;--dark:#0d0b10;--dark2:#2b1630;--danger:#d45b4f;--table:#312138;--focus:rgba(229,122,36,.34);--shadow:0 18px 48px rgba(0,0,0,.38);--shadow-soft:0 8px 20px rgba(0,0,0,.26);--medal1:#e8b159;--medal2:#a9a1ac;--medal3:#b9754e;color-scheme:dark}

html[data-theme="halloween"]{--cream:#f6eadb;--brass:#b57b45;--midnight-card:linear-gradient(145deg,#302337,#1e1726);--midnight-border:#785780;--midnight-muted:#d0becf;background:#0e0b11}
[data-theme="halloween"] body{position:relative;isolation:isolate;background:radial-gradient(circle at 82% 2%,rgba(244,190,108,.12) 0 7rem,transparent 7.2rem),radial-gradient(circle at 11% 19%,rgba(111,65,125,.18),transparent 23rem),repeating-linear-gradient(107deg,rgba(255,255,255,.012) 0 1px,transparent 1px 6px),linear-gradient(180deg,#100d13 0%,#17131c 38%,#130f17 100%)}
[data-theme="halloween"] body::before{content:"";position:fixed;z-index:-1;width:15rem;height:15rem;border-radius:50%;right:-4.8rem;top:-5.2rem;background:radial-gradient(circle at 35% 35%,#ffe4ad 0 7%,#f4bd69 8% 43%,#d97929 44% 47%,rgba(229,122,36,.18) 48% 57%,transparent 58%);filter:drop-shadow(0 0 42px rgba(229,122,36,.16));opacity:.84;pointer-events:none}
[data-theme="halloween"] .sunrise-bar{background:linear-gradient(90deg,#351339 0%,#e57a24 34%,#f2b45f 50%,#e57a24 66%,#351339 100%);box-shadow:0 0 18px rgba(229,122,36,.24)}
[data-theme="halloween"] .sun-mark{color:#f2b45f;text-shadow:0 0 18px rgba(242,180,95,.38);transform:rotate(-12deg)}
[data-theme="halloween"] .briefing{position:relative;background:radial-gradient(circle at 88% 18%,rgba(229,122,36,.14),transparent 12rem),linear-gradient(135deg,#24172a,#17131c 62%,#1f151e);border-color:#523b57;box-shadow:0 24px 60px rgba(0,0,0,.32)}
[data-theme="halloween"] .briefing::after{content:"MIDNIGHT EDITION";position:absolute;right:1.15rem;top:.9rem;bottom:auto;transform:none;font-size:.58rem;font-weight:900;letter-spacing:.18em;color:#f2b45f}

[data-theme="halloween"] .game-card,[data-theme="halloween"] .start-card,[data-theme="halloween"] .ritual-card,[data-theme="halloween"] .stat,[data-theme="halloween"] .leader-row,[data-theme="halloween"] .archive-row{background:linear-gradient(145deg,rgba(42,32,48,.96),rgba(29,23,34,.96));border-color:#4a394f;box-shadow:0 12px 28px rgba(0,0,0,.22)}
[data-theme="halloween"] .game-card:hover{border-color:rgba(229,122,36,.68);box-shadow:0 18px 38px rgba(0,0,0,.32),0 0 0 1px rgba(229,122,36,.12)}
[data-theme="halloween"] .game-card .number,[data-theme="halloween"] .game-label,[data-theme="halloween"] .date-kicker,[data-theme="halloween"] .kicker{color:#e9a457}
[data-theme="halloween"] .primary-button{background:linear-gradient(180deg,#ef8a31,#d7661e);border-color:#ffad60;color:#160d09;box-shadow:0 8px 22px rgba(229,122,36,.24)}
[data-theme="halloween"] .secondary-button,[data-theme="halloween"] .round-button,[data-theme="halloween"] .round{background:#2a2030;border-color:#55415b;color:#f4e6d5}
[data-theme="halloween"] input,[data-theme="halloween"] .text-input{background:#1a151e;border-color:#514057;color:#f7eadb}
[data-theme="halloween"] .keyboard button,[data-theme="halloween"] .key{background:#2a2030;border-color:#514057;color:#f7eadb}
[data-theme="halloween"] .pack-preview{background:radial-gradient(circle at 86% 15%,rgba(229,122,36,.22),transparent 10rem),linear-gradient(135deg,#0f0b12,#29152d 62%,#171017);border:1px solid #54385b}
[data-theme="halloween"] dialog{background:#211a28;border:1px solid #59455f}
[data-theme="halloween"] dialog::backdrop{background:rgba(5,3,7,.82)}
[data-theme="halloween"] footer{border-color:#493a50}
[data-theme="halloween"] .theme-choice{background:#211a28;border-color:#493a50}
.theme-preview.halloween i:nth-child(1){background:#17131c}.theme-preview.halloween i:nth-child(2){background:#2b1630}.theme-preview.halloween i:nth-child(3){background:#e57a24}.theme-preview.halloween i:nth-child(4){background:#92a35f}.theme-preview.halloween i:nth-child(5){background:#f2b45f}

/* Approved original boards, with seasonal artwork at the same coordinates. */
[data-theme="halloween"] body.letter-typesetter-active #letter.letter-typesetter{background-image:url('/halloween-2026/letter.webp')!important}
[data-theme="halloween"] #groups.case-file{background-image:url('/halloween-2026/groups.webp')!important}
[data-theme="halloween"] #trail.trail-cartographer{background-image:url('/halloween-2026/trail.webp')!important}
[data-theme="halloween"] .deepcut-archive-scene:not(:first-child)>img{filter:sepia(.16) hue-rotate(325deg) saturate(.9)}
[data-theme="halloween"] .lastcall-table{background:linear-gradient(145deg,#2d1e34,#1e1727);border-color:#71517b;box-shadow:0 12px 32px #09060d80}
[data-theme="halloween"] .lastcall-option{background:#3b2b43;border-color:#785c81;color:#fff0df;font-size:16px}
[data-theme="halloween"] .lastcall-option:hover:not(:disabled){border-color:#f2b45f;background:#4b3352}
[data-theme="halloween"] .lastcall-option.reveal-safe{background:#293a28;border-color:#96b47a;color:#e9f5d6}
[data-theme="halloween"] .lastcall-option.reveal-fake,[data-theme="halloween"] .lastcall-option.bust{background:#49242e;color:#ffdbdf;border-color:#bc777d}
[data-theme="halloween"] .lastcall-risk-note{color:#dcc8d9}
[data-theme="halloween"] .briefing{background-image:linear-gradient(90deg,#1d1526ed,#1d1526d9 62%,#1d152688),url('/halloween-2026/banner.webp');background-size:cover;background-position:center}

/* The production homepage has its own palette. Override its card selectors,
   including their text and controls, rather than only changing theme tokens. */
html[data-theme="halloween"] .home-production .scene{
  background-image:linear-gradient(#100a1870,#100a18d9),url('/halloween-2026/deepcut.webp');
  filter:none;
}
html[data-theme="halloween"] .home-production .scene::after{
  background:radial-gradient(circle at 50% 23%,#e57a241c,transparent 23rem);
  box-shadow:inset 0 0 110px #0e0914;
}
html[data-theme="halloween"] .home-production .sun-mark{
  background:radial-gradient(circle,#f8c47f 0 28%,#b35d29 30% 34%,#32203b 36%);
  border-color:#dc9853;box-shadow:0 0 0 3px #211627,0 6px 14px #000;
}
html[data-theme="halloween"] .home-production :is(.rail,.run-progress,.ledger,.streak,.retention-run-strip){
  background:linear-gradient(145deg,#21182de8,#130e1ded);
  border-color:#ad7847;box-shadow:0 0 0 2px #180f20,0 8px 22px #0005;
}
html[data-theme="halloween"] .home-production .case-board{
  background:linear-gradient(#6e3d5d22,#1b1329ed),repeating-linear-gradient(45deg,#291d34 0 8px,#24182f 8px 16px);
  border-color:#ad7847;box-shadow:0 0 0 3px #170f20,0 18px 36px #0006,inset 0 0 0 1px #db9b59;
}
html[data-theme="halloween"] .home-production .rail .tab{color:#d0becf}
html[data-theme="halloween"] .home-production .rail .tab.active{
  background:linear-gradient(#58344c,#35223c);border-color:#ecaa61;color:#fff0d7;
}
html[data-theme="halloween"] .home-production :is(.brief-copy p,.run-progress>span,.board-heading>small){color:var(--midnight-muted)}
html[data-theme="halloween"] .home-production .progress-track i{background:#281c31;border-color:#70517b}
html[data-theme="halloween"] .home-production .retention-segments i:not(.done){background:#3c2949;border-color:#785780}
html[data-theme="halloween"] .home-production .retention-next{background:linear-gradient(#58344c,#35223c);border-color:#bd874f;color:#fff0df}
html[data-theme="halloween"] .home-production :is(.ledger>div,.board-heading){border-color:#b07b4a66}
html[data-theme="halloween"] .home-production .ledger .total{background:#e57a241c}

html[data-theme="halloween"] .home-production #today :is(.game-card,.ritual-card,.about-blurb),
html[data-theme="halloween"] .home-production #leaders :is(.leader-setup,.leader-row,.leaderboards-v2-note),
html[data-theme="halloween"] .home-production #archive :is(.archive-row,.pack-preview,.archive-theme-choice),
html[data-theme="halloween"] .home-production #unlimited :is(.start-card,.pack-preview,.game-card){
  background:var(--midnight-card);border-color:var(--midnight-border);color:#f6eadb;
  box-shadow:0 0 0 2px #180f20,0 8px 22px #0005,inset 0 0 0 1px #e9bb8b12;
}
html[data-theme="halloween"] .home-production #today .game-card:hover,
html[data-theme="halloween"] .home-production #archive .archive-theme-choice:hover{
  border-color:#f2b45f;filter:brightness(1.08);
}
html[data-theme="halloween"] .home-production #today .game-icon{
  background:linear-gradient(#3c2849,#20162b);border-color:#c08a55;
  box-shadow:0 0 0 2px #160f1e,inset 0 0 10px #0005;color:#f4bf75;
}
html[data-theme="halloween"] .home-production #today .copy small{color:#edb472}
html[data-theme="halloween"] .home-production #today .copy em{color:var(--midnight-muted)}
html[data-theme="halloween"] .home-production #today .number{color:#efbf791a}
html[data-theme="halloween"] .home-production #today .game-card .game-status{
  background:linear-gradient(#563249,#2b1b36)!important;
  color:#ffd18d!important;border-color:#bd874f!important;
}
html[data-theme="halloween"] .home-production #today .game-card .game-status.done{
  background:linear-gradient(#384832,#223324)!important;
  color:#daedc0!important;border-color:#97ae78!important;
}
html[data-theme="halloween"] .home-production #today :is(.ritual-card p,.about-blurb p),
html[data-theme="halloween"] .home-production :is(#leaders,#archive,#unlimited) .panel-head p,
html[data-theme="halloween"] .home-production :is(#archive,#unlimited) .pack-preview p,
html[data-theme="halloween"] .home-production #leaders :is(.leader-setup label,.leader-sub),
html[data-theme="halloween"] .home-production #archive :is(.archive-row small,.archive-theme-choice small,.archive-history-heading p){color:var(--midnight-muted)}
html[data-theme="halloween"] .home-production #leaders :is(.leader-name,.leader-score),
html[data-theme="halloween"] .home-production #archive .archive-theme-choice strong{color:#fff0df}
html[data-theme="halloween"] .home-production #leaders .leader-rank{color:#f6eadb}
html[data-theme="halloween"] .home-production #leaders .leader-row:nth-child(-n+3) .leader-rank{color:#211325}
html[data-theme="halloween"] .home-production #leaders .leader-auto-note{
  color:#e8eddb;background:#303d2e;border-color:#819567;
}
html[data-theme="halloween"] .home-production #leaders .leader-auto-note strong{color:#eff6e1}
html[data-theme="halloween"] .home-production :is(#leaders,#archive,#unlimited) :is(.secondary-button,.leader-toggle){
  color:#f6eadb;background:linear-gradient(#3a2944,#281d33);border-color:#88668f;
}
html[data-theme="halloween"] .home-production #leaders .leader-toggle.active{
  background:linear-gradient(#684034,#452532);border-color:#efa960;color:#ffe6bd;
}
html[data-theme="halloween"] .home-production :is(#leaders,#archive,#unlimited) .text-input{
  color:#fff0df;background:#19121f;border-color:#88668f;
}
html[data-theme="halloween"] .home-production #archive .archive-badge{
  color:#e1efce;background:#34402f;
}
html[data-theme="halloween"] .home-production #archive .archive-theme-choice.selected{
  border-color:#f2b45f;box-shadow:0 0 0 3px #e57a2459,0 5px 14px #0004;
}
html[data-theme="halloween"] .home-production .archive-pack-item{
  background:#160f20a8;border-color:#785780;
}
/* The bonus-game promotion has authoritative light styles of its own. */
html[data-theme="halloween"] .home-production .tileworks-pack-preview{
  background:var(--midnight-card)!important;color:#f6eadb!important;border-color:var(--midnight-border);
}
html[data-theme="halloween"] .home-production .tileworks-pack-preview h3{color:#fff0df!important}
html[data-theme="halloween"] .home-production .tileworks-pack-preview .game-label{color:#edb472!important}
html[data-theme="halloween"] .home-production .tileworks-pack-preview p{color:var(--midnight-muted)!important}
html[data-theme="halloween"] .home-production .tileworks-pack-preview .secondary-button.inverted{
  background:linear-gradient(#3a2944,#281d33)!important;color:#f6eadb!important;
  border-color:#88668f!important;box-shadow:0 5px 14px #0004!important;
}
html[data-theme="halloween"] .home-production #today .game-guide-links a{
  color:#f1be80;border-color:#785780;background:#251b31;
}
html[data-theme="halloween"] .home-production footer{color:#c1aebc}
html[data-theme="halloween"] .home-production footer a{color:#f0bd7d}

/* Floating game cards and result dialogs use the same palette. Keep the
   original answer tiles and green/yellow/red gameplay feedback intact. */
html[data-theme="halloween"] :is(dialog,.theme-choice,.lastcall-table,.lastcall-help){color:#f6eadb}
html[data-theme="halloween"] :is(.empty-state,.morning-report,.morning-report-dialog){background:var(--midnight-card);color:#f6eadb;border-color:var(--midnight-border)}
html[data-theme="halloween"] :is(.daily-score-detail,.daily-score-reminder p,.daily-leaderboard-placement){color:var(--midnight-muted)}
html[data-theme="halloween"] .lastcall-option.picked-safe{background:#293a28;border-color:#96b47a;color:#e9f5d6}
html[data-theme="halloween"] .theme-choice.selected{border-color:#f2b45f;box-shadow:inset 0 0 0 1px #f2b45f,var(--shadow-soft)}
html[data-theme="halloween"][data-game-mode="unlimited"] :is(.unlimited-play-bar,.unlimited-page-status){
  background:#21182d;color:#f6eadb;border-color:#ad7847;
}
html[data-theme="halloween"].deepcut-immersive :is(#deepCutIntro,#deepCutDone,.deepcut-stats .stat),
html[data-theme="halloween"].deepcut-immersive #deepcut.panel.active #deepCutPlay .deepcut-prompt-card,
html[data-theme="halloween"].steps-immersive .steps-rooftops-stats .stat{
  background:linear-gradient(145deg,#302337ed,#1e1726f5);border-color:#785780;
}
html[data-theme="halloween"].deepcut-immersive #deepCutIntro .primary-button{
  background:linear-gradient(#ef8a31,#d7661e);color:#160d09;border-color:#ffad60;
}
html[data-theme="halloween"][data-game-page="lastcall"] #lastcall .panel-head p,
html[data-theme="halloween"] .lastcall-message{color:var(--midnight-muted)}
@media(prefers-reduced-motion:reduce){[data-theme="halloween"] *{scroll-behavior:auto!important}}
