/* Theme overrides stay scoped so the saved Space theme retains its original appearance. */
html[data-site-theme=halloween] {
  color-scheme: dark;
  --ink: #f3ece0;
  --muted: #b7b8b4;
  --paper: #080d10;
  --green: #e9a466;
  --green-deep: #efb983;
  --line: #bdc9cb29;
  --glass: #10191ee8;
  --halloween-accent: #efb983;
  --halloween-surface: #10181dee;
}
html[data-site-theme=halloween] body { background: #080d10; color: var(--ink); font-family: "Segoe UI",Arial,sans-serif; }
html[data-site-theme=halloween] body>main { position: relative; z-index: 1; }
html[data-site-theme=halloween] :is(.feedback-page,.crosshairs-page) { background: transparent; }
html[data-site-theme=halloween] .admin-page { background: #080d10; }
html[data-site-theme=halloween] body>main:has(.hero) { background: linear-gradient(180deg,transparent 0 90svh,#080d10f5 125svh); }
html[data-site-theme=halloween] .legal-content { padding: clamp(24px,5vw,56px); margin-block: 32px 64px; border: 1px solid var(--line); border-radius: 10px; background: #0b1319f5; }
html[data-site-theme=halloween] .manual-update { background: #0b1319ed; padding-inline: 28px; border-radius: 10px; }
html[data-site-theme=halloween] :is(h1,h2) { text-wrap: balance; }
html[data-site-theme=halloween] h1 { font-family: Georgia,"Times New Roman",serif; font-weight: 400; letter-spacing: -.045em; line-height: 1.04; text-shadow: 0 3px 22px #0009; }
html[data-site-theme=halloween] h1 em { color: var(--halloween-accent); }
html[data-site-theme=halloween] .hero::before,html[data-site-theme=halloween] .shooting-stars { display: none; }
html[data-site-theme=halloween] .hero { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(24px,4vw,64px); min-height: calc(100svh - 92px); padding-block: 70px 90px; }
html[data-site-theme=halloween] .hero-copy { min-width: 0; }
html[data-site-theme=halloween] .hero h1 { font-size: clamp(60px,6.5vw,100px); margin-block: 30px; }
html[data-site-theme=halloween] :is(button,input,select,textarea) { font-family: inherit; }
html[data-site-theme=halloween] :is(.eyebrow,.section-label) { color: var(--halloween-accent); }
html[data-site-theme=halloween] :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid #ffc58c; outline-offset: 4px; }
html[data-site-theme=halloween] .nav { border-color: var(--line); }
html[data-site-theme=halloween] .nav-links { color: #c2c7c6; }
html[data-site-theme=halloween] .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
html[data-site-theme=halloween] .brand-mark { border-radius: 7px; border: 1px solid #b98555; background: #182024; color: #f0b174; box-shadow: inset 0 1px #fff2; }
html[data-site-theme=halloween] :is(.button,.nav-cta) { border-radius: 7px; border-color: #d3a17050; min-height: 48px; }
html[data-site-theme=halloween] .button.primary { background: linear-gradient(#f0ba83,#d88e4e); color: #18130e; border-color: #f0ba83; box-shadow: inset 0 1px #fff5,0 5px 18px #0004; }
html[data-site-theme=halloween] .button.primary:hover { background: #ffd2a4; }
html[data-site-theme=halloween] :is(.button.quiet,.nav-cta) { background: #121b20e6; color: var(--ink); }
html[data-site-theme=halloween] :is(.button.quiet,.nav-cta):hover { background: #253037; }
html[data-site-theme=halloween] :is(.product-frame,.download-panel,.demo-panel,.feature-card,.game-card,.safety-card,.review-card,.review-grid>div,.release-card,.feedback-card,.crosshair-upload-card,.crosshair-upload-preview,.crosshair-card,.crosshair-steps span,.admin-metrics article,.admin-panel,.admin-menu,.admin-loading,.admin-error,.beatball-feature) {
  background: var(--halloween-surface); border-color: var(--line); border-radius: 12px; box-shadow: 0 18px 50px #0003,inset 0 1px #ffffff08; backdrop-filter: none;
}
html[data-site-theme=halloween] .product-frame { border-color: #a8b5b34d; padding: 10px; margin-right: 0; transform: none; min-width: 0; }
html[data-site-theme=halloween] .product-frame img { border-radius: 6px; width: 100%; height: auto; }
html[data-site-theme=halloween] .frame-top span { background: #adbbb55c; }
html[data-site-theme=halloween] .floating-note { border: 1px solid #bf8f5e66; border-radius: 6px; background: #201b16; color: #f1c394; right: 12px; bottom: 18px; }
html[data-site-theme=halloween] :is(.statement,.architecture,.legal-hero,.downloads-footer) { background: #0d161cf2; border-block: 1px solid var(--line); }
html[data-site-theme=halloween] :is(.demo-visual,.legal-callout,.game-note) { background: #151e22; }
html[data-site-theme=halloween] :is(.game-card-top b,.demo-presets button.active) { background: #242b2d; color: var(--halloween-accent); }
html[data-site-theme=halloween] .game-card-top b.logo-valorant { background: #e6e0d5; }
html[data-site-theme=halloween] :is(.demo-presets button,.demo-reset) { background: #172126; color: var(--ink); border-color: var(--line); }
html[data-site-theme=halloween] .demo-presets button.active { border-color: #e0a36c; }
html[data-site-theme=halloween] .demo-sliders input { accent-color: #e9a466; }
html[data-site-theme=halloween] :is(.update-notice,.admin-generated,.emergency-panel) { background: #31271a; border-color: #ba905840; }
html[data-site-theme=halloween] .emergency-panel.active { background: #47311a; }
html[data-site-theme=halloween] .emergency-panel.active button { background: #bd8b53; color: #100e0b; }
html[data-site-theme=halloween] :is(.feedback-form,.crosshair-upload-card,.admin-key-generator) :is(input,select,textarea) { background: #0a1116; color: var(--ink); border-color: #bac7c638; border-radius: 7px; }
html[data-site-theme=halloween] :is(.feedback-form,.crosshair-upload-card) :is(input,select,textarea):focus { background: #131d24; border-color: #e4b281; box-shadow: 0 0 0 3px #dfaa7320; }
html[data-site-theme=halloween] :is(.feedback-form,.crosshair-upload-card) ::placeholder { color: #879694; }
html[data-site-theme=halloween] .feedback-status.error p { background: #40221e; color: #ffb4a2; }
html[data-site-theme=halloween] .feedback-status.sent p { background: #1a302a; color: #c1dfc8; }
html[data-site-theme=halloween] .crosshair-card:hover { background: #1c282e; }
html[data-site-theme=halloween] :is(.admin-panel header button,.admin-crosshair-list button,.admin-generated button) { background: #202b30; color: var(--ink); }
html[data-site-theme=halloween] .admin-menu a:hover { background: #e9a466; color: #1c1510; }
html[data-site-theme=halloween] :is(.admin-key-generator button,.admin-key-list button) { background: #c68d55; color: #17110c; }
html[data-site-theme=halloween] :is(.admin-error,.admin-crosshair-list button,.admin-key-list button) { color: #ffb5a4; }
html[data-site-theme=halloween] .admin-key-list button { background: #281e1a; }
html[data-site-theme=halloween] .admin-key-list .unused { color: #adcfb0; }
html[data-site-theme=halloween] .admin-key-list .redeemed { color: #e3ba7a; }
html[data-site-theme=halloween] footer { background: #080e12e8; }

/* The arcade has a quieter foreground, with the same photographic setting. */
.halloween-eyebrow { display: none; }
html[data-site-theme=halloween] .arcade-body { --lime: #efb983; --muted: #b8c0be; --line: #c0b69d30; --panel: #10181dee; color: #f3ece0; }
html[data-site-theme=halloween] .arcade-body main { max-width: 1480px; padding: 28px clamp(20px,3vw,48px) 48px; }
html[data-site-theme=halloween] .arcade-body nav { min-height: 66px; background: #0c141bdf; border-color: #b4bcb833; border-radius: 8px; backdrop-filter: none; box-shadow: inset 0 1px #ffffff09; }
html[data-site-theme=halloween] .arcade-body nav .actions>a { color: #d1d5d0; font-size: 13px; padding: 10px 2px; }
html[data-site-theme=halloween] .arcade-body .brand { font-size: 23px; }
html[data-site-theme=halloween] .arcade-body .brand span { color: #efb983; }
html[data-site-theme=halloween] .arcade-body .brand::before { color: #d99e64; font-size: 22px; }
html[data-site-theme=halloween] .arcade-body main>header { min-height: 230px; padding-block: 26px 32px; }
html[data-site-theme=halloween] .arcade-body h1 { margin: 10px 0 12px; font-size: clamp(48px,5.8vw,76px); }
html[data-site-theme=halloween] .arcade-body main>header p { margin: 0; color: #bec6c7; font-size: 15px; }
html[data-site-theme=halloween] .arcade-body .halloween-eyebrow { display: block; color: #e8b17b; font: 600 10px/1.5 "Segoe UI",sans-serif; text-transform: uppercase; letter-spacing: .22em; }
html[data-site-theme=halloween] .arcade-body .orbit-dot { color: #e9a466; }
html[data-site-theme=halloween] .arcade-body button { background: #162027; color: #e5e8e2; border-radius: 7px; border-color: #bac3bb30; box-shadow: inset 0 1px #ffffff05; }
html[data-site-theme=halloween] .arcade-body button:hover { background: #233039; border-color: #c5a37c85; }
html[data-site-theme=halloween] .arcade-body :is(.primary,button[aria-pressed=true]) { background: linear-gradient(#efba85,#d99455); color: #1d1710; border-color: #e7b27c; box-shadow: inset 0 1px #fff4,0 3px 12px #0003; }
html[data-site-theme=halloween] .arcade-body .tabs { margin: 0 0 20px; padding: 6px; background: #0b1319e6; border-color: #d1b48c33; border-radius: 8px; gap: 5px; }
html[data-site-theme=halloween] .arcade-body .tabs button { background: transparent; border-color: transparent; font-size: 13px; }
html[data-site-theme=halloween] .arcade-body .tabs button[aria-pressed=true] { background: #e7ac72; color: #19130f; }
html[data-site-theme=halloween] .arcade-body .surface { background: #0b1217ed; border-color: #b6bdb72d; border-radius: 10px; padding: 24px; box-shadow: 0 15px 60px #0003; }
html[data-site-theme=halloween] .arcade-body .surface h2 { font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
html[data-site-theme=halloween] .arcade-body input { background: #070e14; color: #f3ece0; border-radius: 6px; border-color: #b4c2ba40; }
html[data-site-theme=halloween] .arcade-body input::placeholder { color: #8d9b9b; }
html[data-site-theme=halloween] .arcade-body select { background: #172128; color: #f3ece0; border-color: #b7c2bc40; }
html[data-site-theme=halloween] .arcade-body :is(.presence-badge,.community-card) { background: #131e24; border-color: #bec4bd2b; color: #c9d0c9; }
html[data-site-theme=halloween] .arcade-body .presence-dot { background: #b3c9b2; box-shadow: 0 0 0 3px #b3c9b214; }
html[data-site-theme=halloween] .arcade-body :is(.community-empty,.community-row span,.community-ranking span) { color: #b8c0be; }
html[data-site-theme=halloween] .arcade-body .community-game-ranking li::before { color: #e7ae76; }
html[data-site-theme=halloween] .arcade-body .catalog-controls label { font-size: 13px; color: #d0d5ce; }
html[data-site-theme=halloween] .arcade-body #game-count { font-size: 12px; color: #a9b3b1; }
html[data-site-theme=halloween] .arcade-body .catalog-grid { gap: 14px; margin-block: 22px; }
html[data-site-theme=halloween] .arcade-body .game-card { background: #141e24; border-radius: 7px; box-shadow: 0 4px 12px #0004; }
html[data-site-theme=halloween] .arcade-body .game-card img { background: #10191e; }
html[data-site-theme=halloween] .arcade-body .game-card strong { padding: 12px; font-size: 14px; line-height: 1.45; font-weight: 600; }
html[data-site-theme=halloween] .arcade-body .game-card:hover { transform: translateY(-2px); border-color: #deae7b9c; box-shadow: 0 8px 24px #0005; }
html[data-site-theme=halloween] .arcade-body .gate { background: #10191eef; border-color: #c2b49c4d; border-radius: 10px; }
html[data-site-theme=halloween] .arcade-body .gate label { color: #ced4ce; }
html[data-site-theme=halloween] .arcade-body :is(.player-box,.player-frame) { background: #080d11; }
html[data-site-theme=halloween] .arcade-body #player.player-immersive>header { background: #101a20; }

/* All scenery is fixed behind the page and excluded from pointer and keyboard input. */
#halloween-decor { display: none; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; user-select: none; contain: layout style paint; }
html[data-site-theme=halloween] #halloween-decor { display:block; }
html[data-site-theme=halloween] :is(body,.arcade-body)::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg,#040a0e42,#040a0e0a 75%),url("/halloween/moonlit-courtyard.webp") center/cover no-repeat; animation: none; will-change: auto; }
#halloween-decor::after { content: ""; position: absolute; inset: 30% -15% -20%; background: radial-gradient(ellipse at 25% 65%,#bacdd310,transparent 55%),radial-gradient(ellipse at 85% 80%,#b9cbd30d,transparent 50%); animation: halloween-mist 48s ease-in-out infinite alternate; }
#halloween-decor img { display: block; position: absolute; max-width: none; }
.halloween-ghost { width: clamp(64px,6vw,100px); opacity: .4; will-change: transform; }
.halloween-ghost-one { top: 23%; right: -130px; animation: halloween-peek-left 38s ease-in-out -8s infinite; }
.halloween-ghost-two { top: 58%; right: -130px; width: clamp(48px,4vw,68px); opacity: .22; animation: halloween-float-left 57s linear -31s infinite; }
.halloween-bat { position: absolute; width: 32px; height: 20px; opacity: .7; filter: brightness(.8); will-change: transform; }
.halloween-bat img { top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 48%; animation: halloween-bat-flap .72s ease-in-out infinite; }
.halloween-bat-one { top: 16%; left: -60px; animation: halloween-bat-right 32s linear -8s infinite; }
.halloween-bat-two { top: 28%; right: -60px; width: 24px; height: 14px; animation: halloween-bat-left 39s linear -19s infinite; }
.halloween-bat-two img { animation-duration: .84s; }
.halloween-bat-three { top: 39%; left: -60px; width: 19px; height: 11px; animation: halloween-bat-right 44s linear -29s infinite; }
.halloween-bat-three img { animation-duration: .95s; }
.halloween-spider { position: absolute; top: 0; width: 42px; height: 175px; transform-origin: 50% 0; animation: halloween-spider-sway 11s ease-in-out infinite; will-change: transform; }
.halloween-spider::before { content: ""; position: absolute; top: 0; left: 50%; height: 116px; border-left: 1px solid #d1d7d14d; }
.halloween-spider img { top: 112px; left: 0; width: 42px; opacity: .8; }
.halloween-spider-left { left: 1%; }
.halloween-spider-right { right: 2%; animation-delay: -5s; }
@keyframes halloween-mist { from { transform: translate3d(-2%,0,0); opacity: .4; } to { transform: translate3d(4%,-2%,0); opacity: .9; } }
@keyframes halloween-float-left { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(calc(-50vw - 110px),24px,0); } 100% { transform: translate3d(calc(-100vw - 220px),-8px,0); } }
@keyframes halloween-bat-right { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(calc(50vw + 60px),-12px,0); } 100% { transform: translate3d(calc(100vw + 120px),5px,0); } }
@keyframes halloween-bat-left { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(calc(-50vw - 60px),11px,0); } 100% { transform: translate3d(calc(-100vw - 120px),-5px,0); } }
@keyframes halloween-bat-flap { 0%,100% { transform: scaleY(.7); } 50% { transform: scaleY(1); } }
@keyframes halloween-peek-left { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(calc(-36vw - 80px),-14px,0); } }
@keyframes halloween-spider-sway { 0%,100% { transform: rotate(-5deg) translate3d(0,0,0); } 50% { transform: rotate(5deg) translate3d(0,12px,0); } }
.halloween-lite .halloween-ghost-two,.halloween-lite .halloween-bat-three,.halloween-lite .halloween-spider-right { display: none!important; }
.halloween-lite::after { animation: none!important; }
body.optimized-playing #halloween-decor :is(.halloween-ghost,.halloween-bat,.halloween-spider),body.optimized-playing #halloween-decor::after { display: none; }


@media(max-width:1000px) {
  html[data-site-theme=halloween] .hero { grid-template-columns: 1fr; gap: 36px; }
}
@media(max-width:700px) {
  html[data-site-theme=halloween] :is(body,.arcade-body)::before { background-image: linear-gradient(#040a0e25,#040a0e55),url("/halloween/moonlit-courtyard-mobile.webp"); background-position: center; }
  .halloween-ghost-two,.halloween-bat-two,.halloween-bat-three,.halloween-spider { display: none!important; }
  .halloween-ghost-one { width: 64px; opacity: .28; top: 22%; }
  html[data-site-theme=halloween] .arcade-body main { padding: 16px; }
  html[data-site-theme=halloween] .arcade-body nav { padding: 10px 14px; min-height: 62px; }
  html[data-site-theme=halloween] .arcade-body main>header { min-height: 210px; padding-block: 30px; }
  html[data-site-theme=halloween] .arcade-body h1 { font-size: clamp(44px,12vw,64px); }
  html[data-site-theme=halloween] .arcade-body .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding: 6px; }
  html[data-site-theme=halloween] .arcade-body .tabs button { flex: none; padding: 10px 14px; min-height: 44px; white-space: nowrap; }
  html[data-site-theme=halloween] .arcade-body .surface { padding: 18px; }
  html[data-site-theme=halloween] .arcade-body .catalog-grid { gap: 10px; }
  html[data-site-theme=halloween] .arcade-body .game-card strong { font-size: 13px; padding: 10px; overflow-wrap: anywhere; }
  html[data-site-theme=halloween] .arcade-body .catalog-controls label { min-width: 0; width: 100%; flex-basis: 100%; }
  html[data-site-theme=halloween] .arcade-body .catalog-controls { gap: 8px; }
  html[data-site-theme=halloween] .arcade-body #game-count { margin: 0; }
  html[data-site-theme=halloween] .hero h1 { font-size: clamp(54px,14vw,80px); }
  html[data-site-theme=halloween] .hero { padding-block: 50px 64px; }
  html[data-site-theme=halloween] :is(.downloads-hero,.feedback-intro,.crosshair-hero,.legal-hero) h1 { font-size: clamp(44px,12vw,60px); margin-block: 26px; }
  html[data-site-theme=halloween] :is(.downloads-hero,.crosshair-hero) { padding-block: 60px; }
  html[data-site-theme=halloween] .hero .eyebrow { font-size: 9px; line-height: 1.7; }
  html[data-site-theme=halloween] .product-frame { transform: none; }
}
@media(prefers-reduced-motion:reduce) {
  .halloween-ghost,.halloween-bat,.halloween-bat img,.halloween-spider,#halloween-decor::after { animation: none!important; will-change: auto; }
  .halloween-ghost-one { right: 9%; }
  .halloween-ghost-two { right: 5%; }
  .halloween-bat-one { left: 40%; }
  .halloween-bat-two { right: 27%; }
  .halloween-bat-three { left: 65%; }
  html[data-site-theme=halloween] * { scroll-behavior: auto; transition: none!important; }
}
