/* Sidequest Halloween Edition — all event visuals stay local and silent. */
html:not(.halloween) .halloween-only { display: none !important; }
html:not(.halloween) .halloween-find { display: none !important; }
html.halloween .xmas-hide { display: none !important; }
html.halloween .site-home {
  --halloween-orange: #ff8a38;
  --halloween-gold: #ffd16a;
  --halloween-ink: #100d12;
  background: #0b0a0e;
}
html.halloween .topline { background: linear-gradient(90deg,#301521,#0b0a0e 42%,#17100c); }
html.halloween .topline b, html.halloween .topline-star { color: #ff9b51; }
html.halloween .site-header { color: #f2e9df; background: #100e13; border-color: #322631; }
html.halloween .main-nav a:hover { color: #ff9a4b; }
html.halloween .brand-mark { background: #ff8a38; color: #1a1010; }
html.halloween .hero { color: #f5ede4; }
html.halloween .hero h1 em { background: linear-gradient(100deg,#ff7244,#ffcb69 55%,#e7ff9d); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.halloween .hero .eyebrow-dot { background: #ff8a38; box-shadow: 0 0 12px #ff8a38; }
html.halloween .hero-intro { color: #bdafb0; }
html.halloween .hero-note { color: #e3cdbb; }
html.halloween .hero-note a { color: #ffae62; }
html.halloween .hero-footnote { color: #91848a; }
html.halloween .hero-pulse { background: #ff8a38; box-shadow: 0 0 0 5px #ff8a3822,0 0 15px #ff8a38; }
html.halloween .hero-art { border-color: #4a2a32; background: radial-gradient(ellipse at 50% 100%,#62311e 0,#1a111a 46%,#0b0a10 80%); }
html.halloween .hero-art::after { content: ""; position: absolute; inset: auto 0 0; height: 24%; background: linear-gradient(0deg,#120b10,transparent); pointer-events: none; }
html.halloween .visual-grid { opacity: .2; }
html.halloween .visual-scan { opacity: .15; }
html.halloween .planet-halo { background: #f77c3725; }
html.halloween .planet-svg { filter: hue-rotate(268deg) saturate(.78) brightness(.86); }
html.halloween .telemetry { border-color: #794a38; background: #130e13d9; }
html.halloween .telemetry-a b, html.halloween .telemetry-b b { color: #ffc16f; }
html.halloween .visual-caption { color: #f6bf83; }
html.halloween .stats-strip { color: #f1e4d8; border-color: #352630; }
html.halloween .stats-strip .stat strong { color: #ffab5e; }
html.halloween .strip-label { color: #c4a8a1; }
html.halloween .journey-section { background: #100d13; color: #eee4db; }
html.halloween .journey-copy h2, html.halloween .journey-top strong { color: #f5ede4; }
html.halloween .journey-copy h2 em { color: #ff9d52; }
html.halloween .journey-copy>p:not(.eyebrow), html.halloween .journey-top span { color: #b7a6a3; }
html.halloween .journey-top b { color: #ffb167; }
html.halloween .journey-track { background: #352932; }
html.halloween .journey-track i { background: linear-gradient(90deg,#ff7c37,#ffd16a); }
html.halloween .badge-chip { background: #201820; border-color: #3e2d38; color: #a998a0; }
html.halloween .badge-chip.unlocked { color: #ffd1a5; background: #38211b; border-color: #95552f; }
html.halloween .mission-section { background: #0d0b10; }
html.halloween .section-heading h2 em, html.halloween .toolkit-heading h2 em { color: #ff9d52; }
html.halloween .mission-card { background: linear-gradient(150deg,#1a141c,#100e13 75%); border-color: #352530; }
html.halloween .mission-card:hover { border-color: #bf6b39; box-shadow: 0 20px 55px #0009; }
html.halloween .difficulty i { background: #ff9147; box-shadow: 0 0 8px #ff914788; }
html.halloween .skill-tag { color: #ffbd7b; }
html.halloween .skill-coral { color: #ff907a; }
html.halloween .skill-blue { color: #9ccbdc; }
html.halloween .toolkit-section, html.halloween .how-section { background: #100d13; }
html.halloween .tool-card { background: linear-gradient(145deg,#1d1720,#131117); border-color: #3c2d37; }
html.halloween .range-label input { accent-color: #ff9d52; }
html.halloween .range-label span { color: #ffbb71; }
html.halloween .play-section { background: radial-gradient(ellipse at 12% 0%,#ff9b4b45,transparent 43%),linear-gradient(135deg,#311c23,#18131b 58%,#24170e); color: #fff0df; }
html.halloween .play-heading .eyebrow { color: #ffca8f; }
html.halloween .play-heading h2, html.halloween .play-heading h2 em { color: #fff0df; }
html.halloween .play-heading>p:last-child { color: #c9b5ad; }
html.halloween .game-panel { border-color: #593b3b; }
html.halloween .game-aside { background: linear-gradient(180deg,#26171c,#141118); }
html.halloween .game-logo { background: #ff8a38; color: #171014; }
html.halloween .founder-hunt { color: #21191b; }
html.halloween .credits-section { background: radial-gradient(ellipse at 80% 10%,#59301e66,transparent 42%),linear-gradient(145deg,#171118,#0a090d 65%); }
html.halloween .credits-title h2 em { color: #ff9b52; }
html.halloween .site-footer { background: #09080b; border-color: #30222c; }
html.halloween .footer-bottom { border-color: #30222c; }

/* Entry atmosphere */
.halloween-pumpkin-rain { position: fixed; z-index: 20; inset: 0 0 auto; height: 100vh; overflow: hidden; pointer-events: none; }
.halloween-pumpkin-rain span { position: absolute; left: var(--fall-x); top: -48px; color: #ff963c; font-size: var(--fall-size); opacity: .62; filter: drop-shadow(0 0 13px #ff7a243c); animation: halloween-fall var(--fall-duration) linear var(--fall-delay) both; }
@keyframes halloween-fall { 0% { transform: translate3d(-5vw,-8vh,0) rotate(0); opacity: 0; } 8% { opacity: .7; } 92% { opacity: .52; } 100% { transform: translate3d(6vw,112vh,0) rotate(250deg); opacity: 0; } }

/* Seasonal event and mission gate */
.halloween-event { position: relative; overflow: hidden; padding: 84px 0 76px; color: #f4e9e0; background: radial-gradient(ellipse at 8% 0%,#813f2c44,transparent 38%),linear-gradient(140deg,#171018,#0c0a0f 70%); border-block: 1px solid #472d31; }
.halloween-event::before { content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none; background-image: radial-gradient(#ffd49a 1px,transparent 1.5px); background-size: 79px 73px; mask-image: linear-gradient(90deg,transparent,#000 20%,#000 80%,transparent); }
.halloween-event .wrap { position: relative; }
.halloween-event-top { display: grid; grid-template-columns: 1fr minmax(250px,.62fr); gap: 50px; align-items: end; margin-bottom: 38px; }
.halloween-event-top .eyebrow, .halloween-label { color: #ffac6a; font: 8px var(--mono); letter-spacing: .14em; }
.halloween-event-top h2 { margin: 0; color: #f9eee1; font: 600 clamp(38px,6vw,72px)/.98 var(--display); letter-spacing: -.075em; }
.halloween-event-top h2 em { color: #ff8d45; font-style: normal; }
.halloween-event-top>p { margin: 0 0 4px; max-width: 440px; color: #c1abad; font-size: 12px; line-height: 1.8; }
.halloween-statusbar { display: grid; grid-template-columns: auto minmax(100px,1fr) auto; gap: 20px; align-items: center; margin: 0 0 18px; color: #bfadb0; font: 8px var(--mono); letter-spacing: .09em; }
.halloween-statusbar b { color: #ffbd7b; }
.halloween-progress { display: block; height: 4px; overflow: hidden; background: #382a31; }
.halloween-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#ff753d,#ffd373); transition: width .5s ease; }
.halloween-mission-pips { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); gap: 7px; margin: -5px 0 20px; }
.halloween-mission-pips span { display: grid; place-items: center; height: 28px; color: #8b7882; background: linear-gradient(145deg,#211820,#151018); border: 1px solid #3c2b36; font: 8px var(--mono); transition: color .3s,border-color .3s,background .3s,transform .3s; }
.halloween-mission-pips span.complete { color: #26160f; background: linear-gradient(135deg,#ffc268,#ff813f); border-color: #ffc268; box-shadow: 0 0 16px #ff9c423a; transform: translateY(-2px); }
.halloween-event-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(250px,.75fr); gap: 14px; }
.halloween-quest-card, .halloween-collectibles { min-width: 0; overflow: hidden; border: 1px solid #50363a; background: #151118; }
.halloween-quest-card.trail-complete { border-color: #c98545; box-shadow: inset 0 0 42px #ff993015; }
.halloween-quest-card.is-unlocked { border-color: #f69b51; box-shadow: 0 0 34px #f58a3e26,inset 0 0 50px #ff9c4010; }
.halloween-quest-card.is-unlocked .halloween-quest-art::before { content: "✦ TRAIL OPEN ✦"; position: absolute; z-index: 4; top: 17px; left: 17px; padding: 8px 10px; color: #29150c; background: linear-gradient(90deg,#ffbd67,#ff8141); box-shadow: 0 4px 18px #ff833d65; font: 8px var(--mono); letter-spacing: .1em; animation: trail-sign-glow 1.5s ease-in-out infinite alternate; }
.halloween-quest-card.just-unlocked { animation: unlock-arrive .8s cubic-bezier(.2,.8,.25,1.2) both; }
@keyframes unlock-arrive { 0%{transform:scale(.97);filter:brightness(.7)} 70%{transform:scale(1.012);filter:brightness(1.3)} 100%{transform:scale(1);filter:brightness(1)} }
@keyframes trail-sign-glow { to { box-shadow: 0 0 26px #ff984ca0; transform: translateY(-2px); } }
.halloween-quest-card { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(0,1fr); }
.halloween-quest-art { position: relative; min-height: 290px; overflow: hidden; background: radial-gradient(ellipse at 65% 23%,#663829,#22151b 48%,#0d0d12 78%); }
.halloween-quest-art::after { content: ""; position: absolute; inset: 60% -10% -4%; background: linear-gradient(0deg,#0a090c,#211219 60%,transparent); clip-path: polygon(0 45%,22% 18%,37% 42%,61% 10%,82% 38%,100% 5%,100% 100%,0 100%); }
.halloween-moon { position: absolute; top: 22px; right: 30px; width: 68px; height: 68px; border-radius: 50%; background: #ffd98c; box-shadow: 0 0 38px #ffb2517c; }
.halloween-tree { position: absolute; z-index: 1; bottom: 36px; color: #0a090c; font: 220px/.65 Georgia,serif; transform: scaleX(.74); }
.tree-left { left: -34px; }.tree-mid { right: -48px; bottom: 63px; font-size: 270px; }
.halloween-eyes { position: absolute; z-index: 2; top: 47%; left: 49%; color: #ffb953; font-size: 9px; letter-spacing: 10px; text-shadow: 0 0 15px #ff8f31; animation: eyes-glow 3s ease-in-out infinite; }
@keyframes eyes-glow { 0%,75%,100%{opacity:.18} 80%,90%{opacity:1} }
.halloween-pumpkin { position: absolute; z-index: 2; right: 22%; bottom: 18px; font-size: 48px; filter: drop-shadow(0 0 16px #ff762c88); animation: pumpkin-bob 4s ease-in-out infinite; }
@keyframes pumpkin-bob { 0%,100%{transform:translateY(0) rotate(-4deg)} 50%{transform:translateY(-6px) rotate(4deg)} }
.halloween-quest-copy { align-self: center; padding: clamp(20px,3vw,36px); }
.halloween-quest-copy h3 { margin: 12px 0 10px; color: #fff3e8; font: 600 clamp(23px,3vw,34px)/1.05 var(--display); letter-spacing: -.055em; }
.halloween-quest-copy>p:not(.halloween-feedback) { max-width: 430px; color: #b8a9aa; font-size: 11px; line-height: 1.75; }
.halloween-quest-copy .button { min-height: 43px; margin-top: 12px; font-size: 9px; }
.halloween-quest-copy .button:disabled { color: #ada0a3; background: #28212a; border-color: #453641; cursor: not-allowed; }
.halloween-collectibles { padding: 23px; background: linear-gradient(155deg,#20161b,#141117); }
.halloween-collectibles-head { display: flex; justify-content: space-between; gap: 9px; color: #a9999f; font: 7px var(--mono); letter-spacing: .1em; }
.halloween-collectibles-head b { color: #ffbd7b; }
.halloween-collectibles h3 { margin: 25px 0 7px; color: #fbede0; font: 600 24px/1 var(--display); letter-spacing: -.055em; }
.halloween-collectibles>p { margin: 0 0 15px; color: #b4a3a6; font-size: 10px; line-height: 1.7; }
.collectible-slots { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.collectible-slots>span { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 5px 9px; color: #796c74; background: #120f15; border: 1px solid #3b2b36; font-size: 20px; filter: grayscale(1); opacity: .64; }
.collectible-slots>span small { color: #a3959d; font: 6px var(--mono); letter-spacing: .04em; }
.collectible-slots>span .collectible-state { color: #7d7279; font: 5px var(--mono); }
.collectible-slots>span.found { color: #ffc27b; filter: none; opacity: 1; border-color: #9e633a; box-shadow: inset 0 0 22px #ff984113; }
.collectible-slots>span.found .collectible-state { color: #ffc27b; }
.next-drop { margin-top: 19px; padding-top: 15px; border-top: 1px solid #3a2b35; }
.next-drop>span { color: #9d8c96; font: 6px var(--mono); letter-spacing: .1em; }
.next-drop>div { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0 6px; color: #e3d7d9; font-size: 9px; }
.next-drop small { color: #92868d; font-size: 8px; }
.halloween-event-foot { margin: 17px 0 0; color: #80717b; font: 6px var(--mono); letter-spacing: .11em; text-align: right; }

.halloween-find { position: absolute; z-index: 6; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #ffb66155; border-radius: 50%; background: #1d1215d9; color: white; font-size: 19px; cursor: pointer; box-shadow: 0 0 20px #ff913922; transition: transform .2s,opacity .2s,box-shadow .2s; }
.halloween-find:hover, .halloween-find:focus-visible { transform: scale(1.14) rotate(-8deg); box-shadow: 0 0 25px #ff9b47aa; outline: 2px solid #ffc06e; outline-offset: 3px; }
.halloween-find-pumpkin { top: 47%; right: 18px; }
.halloween-find-hat { right: 13px; bottom: 11px; width: 31px; height: 31px; font-size: 16px; }
html.halloween .toolkit-section > .wrap { position: relative; }
.halloween-find-ball { position: absolute; top: 104px; right: 0; width: 31px; height: 31px; font-size: 16px; }
.halloween-find.collectible-found { visibility: hidden; pointer-events: none; }
.halloween-find.collectible-pop { animation: collectible-pop .45s ease both; }
@keyframes collectible-pop { 50%{transform:scale(1.5)} }

.halloween-choice-list { display: grid; gap: 7px; margin-top: 19px; }
.halloween-choice { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 8px 12px; text-align: left; color: #f2e6dd; background: #20171e; border: 1px solid #49353c; cursor: pointer; font: 10px var(--sans); }
.halloween-choice:hover:not(:disabled) { border-color: #ff9b52; background: #2e1e20; }
.halloween-choice>span { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; color: #ffb56a; background: #3a2428; font: 8px var(--mono); }
.halloween-choice>b { margin-left: auto; color: #ffad65; }
.halloween-choice:disabled { opacity: .52; cursor: default; }
.halloween-feedback { min-height: 20px; color: #ffca8b !important; }
.halloween-next { min-height: 41px; margin-top: 4px !important; }

/* Silent, skippable responsive animated scenes */
body.halloween-scene-open { overflow: hidden; }
.halloween-cinema, .halloween-thanks { position: fixed; z-index: 10020; inset: 0; display: grid; place-items: center; overflow: hidden; padding: 20px; color: #fff4e9; background: #05050a; }
.halloween-cinema { isolation: isolate; }
.cinema-frame { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 51% 15%,#39243b,#15101c 44%,#08080d 82%); transform: scale(1); }
.cinema-intro .cinema-frame { animation: woods-camera-drift 6.9s ease both; }
@keyframes woods-camera-drift { to { transform: scale(1.1); } }
.scene-starfield { position: absolute; inset: 0; opacity: .54; background-image: radial-gradient(#ffeacb 1px,transparent 1.5px),radial-gradient(#ffad68 1px,transparent 1.5px); background-size: 79px 83px,131px 107px; background-position: 12px 8px,44px 21px; }
.scene-moon { position: absolute; top: 8%; right: 15%; width: clamp(58px,9vw,125px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 37% 34%,#fff5d9,#d5a98c 64%,#765a6c); box-shadow: 0 0 85px #e8ac815c,0 0 170px #cc987c25; }
.scene-woods { position: absolute; display: flex; align-items: end; justify-content: space-around; pointer-events: none; }
.scene-woods i { position: relative; display: block; width: clamp(112px,19vw,260px); height: 78vh; background: linear-gradient(90deg,#06070a,#14101a 52%,#07070a); clip-path: polygon(50% 0,65% 20%,58% 20%,79% 43%,67% 43%,93% 72%,61% 72%,61% 100%,37% 100%,37% 72%,7% 72%,33% 43%,21% 43%,42% 20%,35% 20%); filter: drop-shadow(0 0 20px #030307); }
.woods-far { inset: 15% -7% -3%; opacity: .7; transform: scale(.82); }
.woods-far i:nth-child(2n) { transform: scale(.7) translateY(14%); }
.woods-near { z-index: 3; inset: 20% -16% -7%; justify-content: space-between; }
.woods-near i { width: clamp(150px,27vw,400px); height: 90vh; }
.woods-near i:nth-child(2n) { transform: scale(.77); }
.scene-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(0deg,#07070a,#131016 45%,transparent); clip-path: polygon(0 29%,18% 8%,31% 23%,46% 5%,64% 26%,82% 4%,100% 23%,100% 100%,0 100%); }
.scene-trail { position: absolute; z-index: 1; left: 50%; bottom: -11%; width: 68vw; height: 74vh; transform: translateX(-50%); background: linear-gradient(180deg,#da8b4d20,#d7a15a1e 48%,#d78b3d50); clip-path: polygon(48% 0,53% 0,100% 100%,0 100%); filter: blur(9px); }
.scene-fog { position: absolute; z-index: 4; left: -15%; width: 130%; height: 14%; border-radius: 50%; background: #b3a8bd20; filter: blur(28px); animation: fog-drift 11s ease-in-out infinite alternate; }
.fog-a { bottom: 27%; }.fog-b { bottom: 41%; animation-delay: -6s; opacity: .58; }
@keyframes fog-drift { to { transform: translateX(11%); } }
.scene-warning { position: absolute; z-index: 5; left: 22%; bottom: 24%; padding: 9px 13px; color: #331b12; background: linear-gradient(145deg,#d8b985,#96744d); border: 2px solid #5a432f; box-shadow: 0 8px 24px #0009; font: 700 10px var(--mono); letter-spacing: .11em; transform: rotate(-5deg); }
.sign-b { left: auto; right: 19%; bottom: 14%; background: #d4bf98; transform: rotate(4deg); }
.scene-watcher { position: absolute; z-index: 4; right: 20%; top: 32%; width: 48px; height: 104px; border-radius: 44% 44% 10% 10%; background: #07080d; opacity: 0; filter: drop-shadow(0 0 24px #ffb14b35); }
.scene-watcher::before { content: ""; position: absolute; left: 7px; top: -29px; width: 34px; height: 39px; border-radius: 50% 50% 38% 38%; background: #07080d; }
.scene-watcher i { position: absolute; z-index: 1; left: 14px; top: -12px; width: 5px; height: 4px; border-radius: 50%; background: #ffd078; box-shadow: 0 0 13px 4px #ffac48; }
.scene-watcher i:nth-child(2) { left: 29px; }
.scene-opening .scene-watcher { animation: watcher-blink 6.9s ease both; }
@keyframes watcher-blink { 0%,32%{opacity:0} 43%,54%{opacity:1} 61%,68%{opacity:0} 77%,91%{opacity:.95} 100%{opacity:.2} }
.scene-runner { position: absolute; z-index: 5; left: 48%; bottom: 11%; width: 24px; height: 74px; border-radius: 46% 46% 10% 10%; background: linear-gradient(#d4a17d 0 22%,#a56450 22% 46%,#1f1719 46%); transform: scale(.65); transform-origin: bottom; filter: drop-shadow(0 6px 13px #000); }
.scene-runner::before { content: ""; position: absolute; top: -22px; left: 3px; width: 18px; height: 20px; border-radius: 50%; background: #d6a180; }
.scene-runner i,.scene-runner b { position: absolute; top: 34px; width: 8px; height: 48px; background: #201719; transform: rotate(5deg); transform-origin: top; }
.scene-runner i { left: 3px; }.scene-runner b { right: 2px; transform: rotate(-9deg); }
.cinema-chase .scene-warning { opacity: 0; transition: opacity .6s; }
.cinema-chase.scene-wakes .scene-warning { opacity: 1; }
.scene-sentinel { position: absolute; z-index: 6; left: 55%; bottom: 27%; width: clamp(78px,12vw,155px); height: clamp(135px,25vh,250px); opacity: 0; transform: translateY(30px) scale(.8); transition: opacity 1s,transform 1s; filter: drop-shadow(0 15px 24px #000a); }
.scene-sentinel::before { content: ""; position: absolute; top: 0; left: 9%; width: 82%; height: 39%; background: linear-gradient(135deg,#415d53,#172320 73%); clip-path: polygon(13% 0,87% 0,100% 24%,91% 100%,9% 100%,0 24%); border: 1px solid #69877a; }
.scene-sentinel::after { content: ""; position: absolute; top: 35%; left: 0; width: 100%; height: 65%; background: linear-gradient(100deg,#263a34,#3e5a4a 52%,#15221f); clip-path: polygon(22% 0,78% 0,100% 20%,86% 100%,14% 100%,0 20%); }
.scene-sentinel i { position: absolute; z-index: 1; top: 17%; left: 31%; width: 9px; height: 7px; background: #73e5c6; box-shadow: 28px 0 #73e5c6,0 0 18px 5px #41b69d,28px 0 18px 5px #41b69d; }
.scene-sentinel b { position: absolute; z-index: 2; top: -13%; left: 16%; width: 22%; height: 21%; background: #39554b; clip-path: polygon(50% 0,100% 100%,0 100%); transform: rotate(-12deg); }
.scene-sentinel span { position: absolute; z-index: 2; top: 52%; left: -14%; width: 127%; height: 12%; background: #293d35; transform: rotate(-8deg); }
.cinema-chase.scene-wakes .scene-sentinel { opacity: 1; transform: translateY(0) scale(1); }
.cinema-chase.scene-chases .scene-sentinel { transform: translate(-92vw,17vh) scale(2.7); transition: transform 3s cubic-bezier(.4,0,.8,.4); }
.cinema-chase.scene-chases .scene-runner { animation: runner-flee 1s ease-in-out infinite alternate; }
@keyframes runner-flee { to { transform: translateX(23px) scale(.69) skewX(8deg); } }
.scene-zzz { position: absolute; z-index: 7; left: 50%; bottom: 21%; color: #ffe1a6; font: 700 20px var(--display); opacity: 0; transform: translateY(9px); }
.cinema-chase.scene-sleeps .scene-runner { transform: rotate(78deg) translate(-57px,20px) scale(.58); transition: transform 1s ease; }
.cinema-chase.scene-sleeps .scene-zzz { opacity: 1; transform: translate(38px,-34px); transition: all 1s ease; }
.cinema-chase.scene-sleeps .cinema-frame { animation: dream-fade 2s ease-in-out forwards; }
@keyframes dream-fade { to { filter: brightness(.4); transform: scale(1.04); } }
.cinema-chase.scene-camera-in .cinema-frame { animation: finale-camera 10.3s ease-in-out both; }
@keyframes finale-camera { 0%{transform:scale(1)} 42%{transform:scale(1.06)} 78%{transform:scale(1.16)} 100%{transform:scale(1.12)} }
.scene-finale { isolation: isolate; }
.scene-finale .scene-runner { z-index: 5; }
.scene-finale .scene-sentinel { z-index: 6; }
.cinema-frame::after { content: ""; position: absolute; z-index: 8; inset: 0; pointer-events: none; background: linear-gradient(180deg,#07070b55,transparent 24%,transparent 64%,#07070bd9),radial-gradient(ellipse at center,transparent 38%,#05050a8c); }
.cinema-overlay-copy { position: relative; z-index: 8; width: min(720px,92vw); margin-top: 43vh; padding: 18px 20px 16px; text-align: center; background: linear-gradient(180deg,#09080b00,#09080bd9 24%,#09080bd9); animation: cinema-copy-in 1.1s ease both; }
@keyframes cinema-copy-in { from{opacity:0;transform:translateY(15px)} to{opacity:1;transform:translateY(0)} }
.cinema-kicker { color: #ffb169; font: 8px var(--mono); letter-spacing: .19em; }
.cinema-overlay-copy h2 { margin: 9px 0 7px; color: #fff3e8; font: 600 clamp(30px,5vw,62px)/1 var(--display); letter-spacing: -.065em; text-shadow: 0 3px 25px #000; }
.cinema-overlay-copy p { margin: 0 auto; max-width: 520px; color: #dac9c0; font-size: 12px; line-height: 1.6; text-shadow: 0 2px 10px #000; }
.cinema-skip { position: absolute; z-index: 9; top: max(18px,env(safe-area-inset-top)); right: max(20px,env(safe-area-inset-right)); min-height: 43px; padding: 0 15px; color: #fff2e3; background: #17121bd9; border: 1px solid #d69b716b; cursor: pointer; font: 9px var(--mono); }
.cinema-skip:hover,.cinema-skip:focus-visible { border-color: #ffb361; outline: 2px solid #ffb361; outline-offset: 3px; }
.cinema-silent { position: absolute; z-index: 8; left: 20px; bottom: 17px; color: #ab9ca1; font: 6px var(--mono); letter-spacing: .12em; }
.halloween-thanks { background: radial-gradient(ellipse at 50% 15%,#41251f,#100c13 65%,#06060a); }
.thanks-card { width: min(590px,100%); padding: clamp(26px,6vw,56px); text-align: center; border: 1px solid #815033; background: linear-gradient(145deg,#21151b,#111016); box-shadow: 0 30px 100px #000b; animation: cinema-copy-in .6s ease both; }
.thanks-pumpkin { display: inline-block; font-size: 50px; filter: drop-shadow(0 0 24px #ff902e88); }
.thanks-card h2 { margin: 13px 0; color: #fff1e4; font: 600 clamp(32px,5vw,53px)/1 var(--display); letter-spacing: -.06em; }
.thanks-card h2 em { color: #ff9e55; font-style: normal; }
.thanks-card>p:not(.halloween-label) { color: #c8b6b4; font-size: 12px; line-height: 1.7; }
.thanks-card .button { margin-top: 15px; min-height: 47px; }

@media (max-width: 760px) {
  .halloween-event { padding: 61px 0; }
  .halloween-event-top { grid-template-columns: 1fr; gap: 14px; margin-bottom: 25px; }
  .halloween-event-grid { grid-template-columns: 1fr; }
  .halloween-quest-card { grid-template-columns: 1fr; }
  .halloween-quest-art { min-height: 210px; }
  .halloween-tree { font-size: 180px; }
  .halloween-pumpkin { bottom: 14px; }
  .halloween-collectibles { padding: 19px; }
  .halloween-find-pumpkin { right: 10px; }
  .halloween-find-ball { margin-top: -43px; }
  .halloween-find-ball { top: 112px; right: 1px; margin: 0; }
}
@media (max-width: 480px) {
  .halloween-statusbar { grid-template-columns: 1fr auto; gap: 8px; font-size: 6px; }
  .halloween-progress { grid-column: 1/-1; grid-row: 2; }
  .halloween-event-top h2 { font-size: 42px; }
  .halloween-quest-copy { padding: 21px; }
  .halloween-event-foot { text-align: left; line-height: 1.7; }
  .halloween-cinema { padding: 12px; }
  .cinema-overlay-copy { margin-top: 48vh; padding-inline: 8px; }
  .cinema-overlay-copy p { font-size: 10px; }
  .cinema-silent { left: 12px; bottom: 9px; font-size: 5px; }
  .scene-warning { left: 8%; bottom: 22%; font-size: 7px; }
  .sign-b { left: auto; right: 5%; bottom: 12%; }
  .scene-sentinel { left: 58%; bottom: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .halloween-pumpkin-rain { display: none; }
  .halloween-eyes,.halloween-pumpkin,.cinema-overlay-copy,.halloween-thanks .thanks-card,.cinema-intro .cinema-frame,.scene-opening .scene-watcher,.cinema-chase.scene-camera-in .cinema-frame { animation: none !important; }
  .halloween-progress i { transition: none; }
}

/* 108-piece seasonal field guide and the always-moving event ticker */
.halloween-launchbar { position: sticky; z-index: 1000; top: 0; overflow: hidden; color: #f7e7d5; background: #100d12f5; border-bottom: 1px solid #68402f; box-shadow: 0 8px 30px #0005; backdrop-filter: blur(16px); }
.halloween-launchbar[hidden] { display: none !important; }
.halloween-launchbar-top { display: flex; min-height: 43px; align-items: center; justify-content: center; gap: clamp(10px,2vw,25px); padding: 7px 18px; }
.launchbar-brand,.launchbar-ending { color: #d5c5bd; font: 700 7px var(--mono,monospace); letter-spacing: .12em; white-space: nowrap; }
.launchbar-brand i { color: #ffad62; font-style: normal; }
.launchbar-brand b { margin-left: 5px; padding: 4px 5px; color: #ffbf7f; border: 1px solid #ffb36746; font-size: 6px; }
.launchbar-ending { color: #ffbc7c; }
.launchbar-countdown { display: flex; align-items: baseline; gap: 4px; color: #fff4e6; font: 600 13px var(--display,Arial,sans-serif); font-variant-numeric: tabular-nums; }
.launchbar-countdown b { min-width: 20px; text-align: center; }
.launchbar-countdown small { color: #a89491; font: 6px var(--mono,monospace); }
.halloween-launchbar-top>a { padding: 7px 10px; color: #24150f; background: linear-gradient(110deg,#ffc46f,#ff8e48); font: 700 7px var(--mono,monospace); text-decoration: none; white-space: nowrap; }
.halloween-launchbar-top>a:hover,.halloween-launchbar-top>a:focus-visible { filter: brightness(1.12); outline: 2px solid #ffd08a; outline-offset: 2px; }
.drop-ticker-viewport { overflow: hidden; border-top: 1px solid #ffffff0c; background: #171119; mask-image: linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent); }
.halloween-launchbar .drop-ticker-viewport { background: #0d0b10; }
.drop-ticker-track { display: flex; width: max-content; animation: halloween-drop-scroll var(--drop-duration,150s) linear infinite; will-change: transform; }
.drop-ticker-set { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; min-height: 27px; padding-right: 18px; }
.drop-ticker-item { color: #d8c1b6; font: 7px var(--mono,monospace); letter-spacing: .04em; white-space: nowrap; }
.drop-ticker-set>i { color: #ff9a4e; font-size: 9px; font-style: normal; }
@keyframes halloween-drop-scroll { to { transform: translateX(-50%); } }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.halloween-drop-archive { margin-top: 19px; border: 1px solid #50363a; background: linear-gradient(140deg,#1a141b,#100d12); }
.halloween-drop-archive>summary { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 20px; color: #f5e9df; cursor: pointer; list-style: none; }
.halloween-drop-archive>summary::-webkit-details-marker { display: none; }
.halloween-drop-archive>summary>span { color: #c7b2ad; font: 700 8px var(--mono,monospace); letter-spacing: .1em; }
.halloween-drop-archive>summary>span b { margin-right: 7px; color: #ffb36c; font: 600 25px var(--display,Arial,sans-serif); letter-spacing: -.06em; vertical-align: -3px; }
.halloween-drop-archive>summary>strong { color: #ffbd80; font: 700 8px var(--mono,monospace); letter-spacing: .04em; }
.halloween-drop-archive>summary>strong i { display: inline-block; margin-left: 8px; font-size: 14px; font-style: normal; transition: transform .2s; }
.halloween-drop-archive[open]>summary>strong i { transform: rotate(45deg); }
.halloween-drop-archive>summary:hover,.halloween-drop-archive>summary:focus-visible { background: #ffffff08; outline: 2px solid #ffaf654a; outline-offset: -3px; }
.drop-archive-tools { display: grid; grid-template-columns: minmax(180px,1.2fr) minmax(180px,1fr) auto; gap: 10px; align-items: end; padding: 14px 18px; border-top: 1px solid #50363a; }
.drop-archive-tools label { display: grid; gap: 6px; color: #a99699; font: 7px var(--mono,monospace); letter-spacing: .1em; }
.drop-archive-tools input,.drop-archive-tools select { width: 100%; min-height: 38px; padding: 0 10px; color: #f3e4dc; background: #0e0b10; border: 1px solid #49333a; font: 10px var(--sans,Arial,sans-serif); letter-spacing: 0; outline: none; }
.drop-archive-tools input:focus,.drop-archive-tools select:focus { border-color: #ffad68; box-shadow: 0 0 0 2px #ff9a4222; }
.drop-archive-tools>span { padding: 0 0 10px; color: #ffb877; font: 7px var(--mono,monospace); white-space: nowrap; }
.drop-archive-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; padding: 0 18px 18px; }
.drop-archive-card { min-width: 0; padding: 13px; background: linear-gradient(145deg,#21171c,#151117); border: 1px solid #3c2c34; }
.drop-archive-number { color: #a18d95; font: 6px var(--mono,monospace); letter-spacing: .08em; }
.drop-archive-card h4 { margin: 10px 0 5px; color: #f5e9df; font: 600 16px/1.1 var(--display,Arial,sans-serif); letter-spacing: -.04em; }
.drop-archive-card>small { color: #ffb575; font: 6px var(--mono,monospace); letter-spacing: .08em; text-transform: uppercase; }
.drop-archive-card p { margin: 9px 0 0; color: #a99a9c; font-size: 9px; line-height: 1.6; }
@media (max-width: 760px) {
  .halloween-launchbar-top { flex-wrap: wrap; gap: 7px 13px; padding: 8px 12px; }
  .launchbar-brand { flex: 1 1 auto; }
  .launchbar-ending { margin-left: auto; }
  .drop-archive-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .drop-archive-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .drop-archive-tools>span { grid-column: 1/-1; }
}
@media (max-width: 520px) {
  .halloween-launchbar-top { gap: 7px 10px; }
  .launchbar-brand { font-size: 6px; }
  .launchbar-ending { font-size: 6px; }
  .launchbar-countdown { gap: 2px; font-size: 12px; }
  .launchbar-countdown b { min-width: 17px; }
  .halloween-launchbar-top>a { padding: 6px 7px; font-size: 6px; }
  .drop-ticker-item { font-size: 6px; }
  .drop-ticker-set { gap: 12px; min-height: 24px; padding-right: 12px; }
  .halloween-drop-archive>summary { align-items: flex-start; flex-direction: column; gap: 7px; padding: 13px; }
  .drop-archive-tools { grid-template-columns: 1fr; padding: 12px; }
  .drop-archive-tools>span { grid-column: auto; }
  .drop-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 0 12px 12px; }
  .drop-archive-card { padding: 10px; }
  .drop-archive-card h4 { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .drop-ticker-track { animation: none; transform: none; }
  .drop-ticker-viewport { overflow-x: auto; mask-image: none; }
}
