/* Rave-or-Treat: Monsters (slug: rave-or-treat) — Halloween eve.
   A street at night. Sky colours stay deep violet so candy colours (pumpkin, candy pink,
   slime green, grape) can be loud on top of them; copy is always cream on dark. */

body.event-theme-treat {
  --tr-night: #0d0618;
  --tr-cream: #fff6e6;
  --tr-muted: #c9b9dc;
  --tr-pumpkin: #ff7a1a;
  --tr-candy: #ff4eb8;
  --tr-slime: #a7d91d;
  --tr-grape: #7b4dff;
  --tr-moon: #ffe9b0;
  background: var(--tr-night);
  color: var(--tr-cream);
  overflow-x: hidden;
}
body.event-theme-treat .archive-header { position: sticky; top: 0; z-index: 40; background: rgba(13,6,24,.78); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,122,26,.35); }
body.event-theme-treat main { position: relative; z-index: 1; }
body.event-theme-treat > main > *:not(.tr-sky) { position: relative; z-index: 1; }
body.event-theme-treat .site-footer { position: relative; z-index: 1; }

/* ---------- The sky (fixed behind everything) ---------- */
.tr-sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at 80% 12%, rgba(255,233,176,.16), transparent 38%), linear-gradient(180deg, #08031a 0%, #1a0a33 50%, #2c0f35 82%, #160717 100%); }
.tr-sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tr-moon { position: absolute; top: 9%; right: 8%; width: clamp(90px, 13vw, 170px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffbe8, var(--tr-moon) 55%, #e8c36d);
  box-shadow: 0 0 60px 18px rgba(255,233,176,.35), 0 0 180px 60px rgba(255,160,60,.16); animation: tr-moon 9s ease-in-out infinite; }
.tr-moon i { position: absolute; border-radius: 50%; background: rgba(200,160,80,.35); }
.tr-moon i:nth-child(1) { width: 22%; height: 22%; left: 54%; top: 24%; }
.tr-moon i:nth-child(2) { width: 14%; height: 14%; left: 28%; top: 58%; }
.tr-moon i:nth-child(3) { width: 10%; height: 10%; left: 62%; top: 66%; }
.tr-cloud { position: absolute; top: var(--y); left: 0; width: calc(420px * var(--s)); height: calc(70px * var(--s)); border-radius: 50%;
  background: rgba(60,30,90,.55); filter: blur(14px); animation: tr-cloud 90s linear infinite; animation-delay: var(--d); }
.tr-fog { position: absolute; left: -20%; right: -20%; bottom: -8%; height: 34%; filter: blur(30px); opacity: .55;
  background: radial-gradient(ellipse at 20% 70%, rgba(167,150,210,.5), transparent 55%), radial-gradient(ellipse at 70% 80%, rgba(140,110,190,.45), transparent 55%);
  animation: tr-fog 26s ease-in-out infinite alternate; }
.tr-fog.is-front { height: 22%; opacity: .4; animation-duration: 18s; animation-direction: alternate-reverse; }

@keyframes tr-moon { 50% { transform: translateY(-8px); } }
@keyframes tr-cloud { from { transform: translateX(-40vw); } to { transform: translateX(120vw); } }
@keyframes tr-fog { to { transform: translateX(8%); } }

/* ---------- Hero ---------- */
.tr-hero { --fx: 50%; --fy: 40%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  /* Full-bleed so the dark and its flashlight reach both edges; the content stays 1280px wide. */
  min-height: calc(100svh - 90px); padding: clamp(28px, 5vw, 70px) max(clamp(16px, 4vw, 54px), calc((100% - 1280px) / 2)); overflow: hidden; }
.tr-lurkers { position: absolute; inset: 0; pointer-events: none; }
.tr-lurker { position: absolute; z-index: 1; filter: drop-shadow(0 0 18px rgba(0,0,0,.6)); animation: tr-lurk 5s ease-in-out infinite; }
.tr-lurker.is-left { left: -1%; bottom: 6%; width: clamp(90px, 13vw, 170px); rotate: 14deg; }
.tr-lurker.is-right { right: 1%; top: 36%; width: clamp(70px, 9vw, 120px); rotate: -16deg; animation-delay: -2s; }
.tr-lurker.is-low { left: 44%; bottom: -46px; width: clamp(90px, 11vw, 150px); animation-delay: -3.4s; }
/* The dark. A hole of light follows the pointer; the monsters underneath only show inside it. */
.tr-dark { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at var(--fx) var(--fy), rgba(255,236,190,.07) 0, transparent 110px, rgba(8,3,18,.6) 190px, rgba(8,3,18,.88) 330px); }
.tr-eyes { position: absolute; z-index: 3; left: var(--x); top: var(--y); display: flex; gap: 7px; transition: transform .12s; }
.tr-eyes i { position: relative; width: 15px; height: 10px; border-radius: 50%; background: #ffe36e; box-shadow: 0 0 12px 3px rgba(255,210,60,.6); transition: transform .12s; }
.tr-eyes i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 7px; border-radius: 50%; background: #1a0400;
  transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px))); }
.tr-eyes.is-big i { width: 22px; height: 14px; background: #ff4e4e; box-shadow: 0 0 16px 4px rgba(255,60,60,.6); }
.tr-eyes.is-blinking i { transform: scaleY(.08); }

.tr-hero-copy { position: relative; z-index: 4; min-width: 0; }
.tr-neon { margin: 0 0 10px; font: 400 clamp(26px, 4vw, 48px)/1 'Creepster', 'Manrope', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.tr-neon span { color: #ffd2a8; text-shadow: 0 0 6px var(--tr-pumpkin), 0 0 18px var(--tr-pumpkin), 0 0 42px #ff4a00; animation: tr-flicker 6s infinite; }
.tr-neon span:last-child { animation-delay: -2.7s; }
.tr-neon b { color: #e8ffc0; font-weight: 400; text-shadow: 0 0 6px var(--tr-slime), 0 0 20px var(--tr-slime); animation: tr-flicker 4.3s infinite -1s; }
@keyframes tr-flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .25; } }
.tr-kicker { margin: 0; color: var(--tr-candy); font: 500 12px 'DM Mono', monospace; letter-spacing: .18em; text-transform: uppercase; }
.tr-title { display: grid; margin: 8px 0 18px; line-height: .86; }
.tr-title-top { color: var(--tr-pumpkin); font: 400 clamp(34px, 5vw, 64px)/1 'Creepster', 'Manrope', sans-serif; letter-spacing: .03em; text-shadow: 3px 3px 0 #3a0d00; }
.tr-title-main { display: flex; flex-wrap: wrap; font: 400 clamp(68px, 10.5vw, 158px)/.9 'Creepster', 'Manrope', sans-serif; letter-spacing: .01em; }
.tr-title-main i { display: inline-block; font-style: normal; color: var(--tr-slime);
  text-shadow: 0 0 22px rgba(167,217,29,.45), 5px 5px 0 #2a0a3d, 9px 9px 0 rgba(123,77,255,.55);
  animation: tr-wobble 2.8s ease-in-out infinite; animation-delay: calc(var(--l) * -.23s); }
.tr-title-main i:nth-child(even) { color: #c5f04a; }
@keyframes tr-wobble { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.tr-lede { max-width: 560px; margin: 0 0 22px; color: var(--tr-cream); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; text-shadow: 0 2px 10px #000; }

.tr-vitals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 620px; margin: 0 0 22px; padding: 0; list-style: none; }
.tr-vitals li { display: grid; gap: 3px; padding: 12px 14px; border: 1px dashed rgba(255,122,26,.55); border-radius: 14px; background: rgba(13,6,24,.72); backdrop-filter: blur(4px); }
.tr-vitals b { color: var(--tr-pumpkin); font: 500 10px 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.tr-vitals strong { font: 800 clamp(15px, 1.6vw, 19px)/1.2 'Manrope', sans-serif; }
.tr-vitals small { color: var(--tr-muted); font: 11px/1.4 'DM Mono', monospace; }
.tr-vitals small:empty { display: none; }
.tr-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.tr-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 2px solid var(--tr-pumpkin); border-radius: 999px;
  color: var(--tr-cream); font: 800 14px 'Manrope', sans-serif; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; transition: transform .2s, box-shadow .2s, background .2s; }
.tr-cta.is-main { background: var(--tr-pumpkin); color: #1e0800; box-shadow: 0 0 26px rgba(255,122,26,.55); }
.tr-cta:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 8px 30px rgba(255,122,26,.6); }
.tr-cta:focus-visible { outline: 3px solid var(--tr-slime); outline-offset: 3px; }
.tr-flash-hint { margin: 16px 0 0; color: rgba(255,233,176,.65); font: 11px 'DM Mono', monospace; letter-spacing: .08em; }

.tr-flyer { --rx: 0deg; --ry: 0deg; position: relative; z-index: 4; justify-self: center; width: min(100%, 440px); margin: 0; padding: 12px 12px 0; border-radius: 6px;
  background: var(--tr-cream); box-shadow: 0 0 0 3px #1e0800, 18px 18px 0 var(--tr-candy), 0 0 80px rgba(255,122,26,.45);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(-3deg); transition: transform .25s ease-out; animation: tr-bob 6s ease-in-out infinite; }
.tr-flyer video, .tr-flyer img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: #000; }
.tr-flyer figcaption { padding: 8px 0 10px; color: #2a0a3d; font: 400 32px/1 'Creepster', 'Manrope', sans-serif; text-align: center; letter-spacing: .1em; }
.tr-tape { position: absolute; top: -16px; left: 50%; width: 110px; height: 30px; translate: -50% 0; rotate: 4deg; background: rgba(255,233,176,.55); box-shadow: 0 2px 4px rgba(0,0,0,.2); }
@keyframes tr-bob { 50% { translate: 0 -12px; } }
@keyframes tr-lurk { 50% { translate: 0 -10px; } }

/* ---------- Shared section frame ---------- */
.tr-section { max-width: 1180px; margin: 0 auto clamp(40px, 6vw, 80px); padding: clamp(22px, 4vw, 44px); border: 1px solid rgba(255,255,255,.12); border-radius: 26px;
  background: linear-gradient(160deg, rgba(36,16,58,.86), rgba(16,7,28,.9)); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.tr-section h2 { margin: 6px 0 12px; font: 400 clamp(38px, 5.6vw, 72px)/.95 'Creepster', 'Manrope', sans-serif; letter-spacing: .02em; color: var(--tr-cream); }
.tr-label { margin: 0; color: var(--tr-pumpkin); font: 500 11px 'DM Mono', monospace; letter-spacing: .16em; text-transform: uppercase; }
.tr-hint { margin: 0; color: var(--tr-muted); font-size: 14px; }

/* ---------- Midnight ---------- */
.tr-midnight { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(20px, 4vw, 48px); border-color: rgba(255,122,26,.4); }
.tr-midnight[hidden] { display: none; }
.tr-clock { width: clamp(120px, 16vw, 190px); filter: drop-shadow(0 0 24px rgba(255,122,26,.45)); }
.tr-clock-face { fill: #1a0a2a; stroke: var(--tr-pumpkin); stroke-width: 4; }
.tr-clock-tick { stroke: var(--tr-moon); stroke-width: 2.5; stroke-linecap: round; }
.tr-clock-hour { stroke: var(--tr-cream); stroke-width: 6; stroke-linecap: round; }
.tr-clock-minute { stroke: var(--tr-cream); stroke-width: 4; stroke-linecap: round; }
.tr-clock-second { stroke: var(--tr-candy); stroke-width: 2; stroke-linecap: round; }
.tr-clock-pin { fill: var(--tr-pumpkin); }
.tr-countdown { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin: 4px 0 10px; }
.tr-countdown span { display: inline-flex; align-items: baseline; gap: 5px; color: var(--tr-muted); font: 11px 'DM Mono', monospace; text-transform: uppercase; }
.tr-countdown b { color: var(--tr-slime); font: 500 clamp(30px, 4vw, 46px)/1 'DM Mono', monospace; letter-spacing: -.04em; }
.tr-countdown em { color: var(--tr-pumpkin); font: italic 600 14px 'Manrope', sans-serif; }
.tr-midnight-note { margin: 0; color: var(--tr-muted); font-size: 14px; line-height: 1.6; }
.tr-midnight.is-late .tr-countdown { color: #ff6b6b; font: 800 20px 'Manrope', sans-serif; }

/* ---------- Monster Street ---------- */
.tr-street { border-color: rgba(167,217,29,.35); padding-bottom: clamp(28px, 4vw, 46px);
  background: linear-gradient(180deg, rgba(20,9,38,.9) 0%, rgba(20,9,38,.9) 82%, #241632 82%, #241632 86%, #120a1c 86%); }
.tr-street-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.tr-bag { display: grid; grid-template-columns: 56px auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 16px 10px 12px; border: 1px dashed rgba(255,122,26,.5); border-radius: 16px; background: rgba(13,6,24,.6); }
.tr-bag svg { grid-row: span 2; width: 56px; overflow: visible; }
.tr-bag-handle { fill: none; stroke: var(--tr-pumpkin); stroke-width: 4; }
.tr-bag-body { fill: #3a1606; stroke: var(--tr-pumpkin); stroke-width: 3; }
.tr-bag-fill { fill: var(--tr-pumpkin); transition: height .5s, y .5s; }
.tr-bag-face { fill: #1e0800; stroke: #1e0800; stroke-width: 2.4; stroke-linejoin: round; }
.tr-bag p { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.tr-bag strong { color: var(--tr-slime); font: 500 30px/1 'DM Mono', monospace; }
.tr-bag p span { color: var(--tr-muted); font: 11px 'DM Mono', monospace; }
.tr-bag.is-bouncing svg { animation: tr-bag 0.5s cubic-bezier(.3,1.6,.5,1); }
@keyframes tr-bag { 40% { transform: scale(1.18) rotate(-6deg); } }
.tr-sound { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--tr-muted); font: 11px 'DM Mono', monospace; text-decoration: underline; cursor: pointer; }
.tr-sound[aria-pressed="false"] { opacity: .65; }
.tr-sound:focus-visible { outline: 2px solid var(--tr-slime); outline-offset: 2px; }

.tr-houses { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: clamp(14px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.tr-house { position: relative; display: grid; justify-items: center; padding-top: 56px; animation: tr-house-in .7s both; animation-delay: calc(var(--i) * .12s); }
@keyframes tr-house-in { from { opacity: 0; transform: translateY(24px); } }
.tr-roof { position: absolute; top: 0; left: -6%; right: -6%; height: 64px; clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(170deg, color-mix(in srgb, var(--m) 34%, #2a1240) 0 9px, color-mix(in srgb, var(--m) 22%, #1b0d29) 9px 12px); filter: drop-shadow(0 -2px 8px color-mix(in srgb, var(--m) 40%, transparent)); }
.tr-attic { position: absolute; top: 28px; left: 50%; z-index: 1; width: 26px; height: 26px; translate: -50% 0; border-radius: 50%; background: color-mix(in srgb, var(--m) 70%, #ffe9b0);
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--m) 60%, transparent); animation: tr-window 3.6s infinite; animation-delay: calc(var(--i) * -.7s); }
.tr-attic i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, #120819 45% 55%, transparent 55%), linear-gradient(0deg, transparent 45%, #120819 45% 55%, transparent 55%); border-radius: 50%; }
@keyframes tr-window { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 50% { opacity: .35; } 53% { opacity: 1; } }
.tr-porch { position: relative; display: grid; justify-items: center; width: 100%; padding: 18px 0 0; border-radius: 0 0 6px 6px;
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--m) 16%, #1f1030) 0 13px, color-mix(in srgb, var(--m) 10%, #170b25) 13px 15px); }
.tr-lamp { position: absolute; top: 26px; right: 12%; width: 12px; height: 18px; border-radius: 3px 3px 6px 6px; background: #ffd27a; box-shadow: 0 0 22px 8px rgba(255,190,90,.5); animation: tr-flicker 7s infinite; animation-delay: calc(var(--i) * -1.3s); }
.tr-doorway { position: relative; width: 62%; aspect-ratio: 3 / 5; perspective: 700px; border-radius: 40px 40px 0 0; overflow: visible;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--m) 40%, #2a0e00), #0a0410 70%); box-shadow: inset 0 0 20px #000, 0 0 0 5px #120819; }
.tr-inside { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: 40px 40px 0 0; }
.tr-monster { width: 78%; transform: scale(.35) translateY(30%); opacity: 0; transition: transform .45s cubic-bezier(.3,1.7,.5,1) .15s, opacity .2s .15s; }
.tr-m-body { fill: var(--m); }
.tr-m-horn { fill: color-mix(in srgb, var(--m) 60%, #000); }
.tr-m-eye circle:first-child { fill: #fff; }
.tr-m-pupil { fill: #14051f; }
.tr-m-mouth { fill: #2a0614; }
.tr-m-teeth { fill: #fff; }
.tr-inside-note { position: absolute; top: 10%; left: 50%; translate: -50% 0; color: var(--tr-cream); font: 400 28px/1 'Creepster', sans-serif; text-shadow: 0 0 10px #000, 2px 2px 0 #000; opacity: 0; transform: translateY(10px); transition: .3s .35s; }
.tr-house.is-open .tr-monster { opacity: 1; transform: scale(1) translateY(10%); }
.tr-house.is-open .tr-inside-note { opacity: 1; transform: none; }
.tr-house.is-trick .tr-monster { transform: scale(1.45) translateY(-2%); }
.tr-house.is-trick .tr-inside-note { color: #ff5a5a; font-size: 34px; }
.tr-house.is-open .tr-doorway { background: radial-gradient(circle at 50% 60%, #ffcf7a, color-mix(in srgb, var(--m) 50%, #3a1400) 60%, #120610); }

.tr-door { position: absolute; inset: 0; z-index: 2; display: block; padding: 0; border: 0; border-radius: 40px 40px 0 0; cursor: pointer; transform-origin: left center;
  background: linear-gradient(90deg, #4a1d0c, #6b2c12 40%, #5a240f); box-shadow: inset 0 0 0 4px #2c0f05, inset 0 0 18px rgba(0,0,0,.6);
  transition: transform .7s cubic-bezier(.5,.05,.2,1); }
.tr-door:hover { filter: brightness(1.15); }
.tr-door:focus-visible { outline: 3px solid var(--tr-slime); outline-offset: 5px; }
.tr-house.is-open .tr-door { transform: rotateY(-105deg); filter: brightness(.7); }
.tr-house.is-knocking .tr-door { animation: tr-knock .52s; }
@keyframes tr-knock { 10%, 42%, 74% { transform: translateX(-3px) rotate(-1deg); } 26%, 58%, 90% { transform: translateX(3px) rotate(1deg); } }
.tr-door-number { position: absolute; top: 14%; left: 50%; translate: -50% 0; padding: 3px 9px; border-radius: 4px; background: #d7a84b; color: #2c0f05; font: 600 13px 'DM Mono', monospace; white-space: nowrap; box-shadow: 0 2px 0 #2c0f05; }
.tr-knocker { position: absolute; top: 34%; left: 50%; width: 22px; height: 22px; translate: -50% 0; border: 4px solid #d7a84b; border-radius: 50%; box-shadow: 0 2px 0 #2c0f05; }
.tr-door-panels { position: absolute; left: 16%; right: 16%; top: 54%; bottom: 8%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tr-door-panels i { border: 3px solid #3c1608; border-radius: 4px; }
.tr-door::after { content: ""; position: absolute; right: 12%; top: 58%; width: 8px; height: 8px; border-radius: 50%; background: #d7a84b; }
.tr-step { width: 78%; height: 12px; background: #3a2a44; border-radius: 2px; box-shadow: 0 4px 0 #1c1326; }
.tr-plaque { display: grid; justify-items: center; gap: 2px; margin: 14px 0 0; text-align: center; }
.tr-plaque a, .tr-plaque span { color: var(--tr-cream); font: 800 clamp(16px, 1.7vw, 20px)/1.15 'Manrope', sans-serif; text-decoration: none; }
.tr-plaque a b { color: var(--m); }
.tr-plaque a:hover { color: var(--m); }
.tr-plaque small { color: var(--m); font: 500 12px 'DM Mono', monospace; letter-spacing: .08em; }
.tr-knock-result { min-height: 24px; margin: 26px 0 0; color: var(--tr-moon); font: 600 15px/1.5 'Manrope', sans-serif; text-align: center; }

.tr-candy-bit { position: fixed; z-index: 60; width: 14px; height: 9px; border-radius: 50%; background: var(--c); pointer-events: none; box-shadow: 0 0 8px var(--c); }
.tr-candy-bit::before, .tr-candy-bit::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 4px solid transparent; translate: 0 -50%; }
.tr-candy-bit::before { right: 100%; border-right-color: var(--c); }
.tr-candy-bit::after { left: 100%; border-left-color: var(--c); }
body.tr-shake main { animation: tr-shake .45s; }
@keyframes tr-shake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(6px, -3px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }

/* ---------- What's waiting ---------- */
.tr-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.tr-cards li { display: grid; align-content: start; gap: 8px; padding: 20px; border-top: 4px solid var(--c); border-radius: 16px; background: rgba(255,255,255,.04); transition: transform .25s, background .25s; }
.tr-cards li:hover { transform: translateY(-6px) rotate(-1deg); background: color-mix(in srgb, var(--c) 12%, transparent); }
.tr-card-icon { font-size: 34px; line-height: 1; animation: tr-lurk 4s ease-in-out infinite; }
.tr-cards li:nth-child(2) .tr-card-icon { animation-delay: -1s; }
.tr-cards li:nth-child(3) .tr-card-icon { animation-delay: -2s; }
.tr-cards li:nth-child(4) .tr-card-icon { animation-delay: -3s; }
.tr-cards strong { color: var(--c); font: 800 18px/1.2 'Manrope', sans-serif; }
.tr-cards p { margin: 0; color: var(--tr-muted); font-size: 14px; line-height: 1.55; }
.tr-description { max-width: 760px; margin: 22px 0 0; color: var(--tr-cream); font-size: 16px; line-height: 1.7; }

/* ---------- Trunk-or-treat ---------- */
.tr-trunk-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 54px); border-color: rgba(255,78,184,.4); }
.tr-trunk-copy p:not(.tr-label) { color: var(--tr-muted); font-size: 16px; line-height: 1.65; }
.tr-car { position: relative; width: 100%; max-width: 560px; justify-self: center; padding-top: 70px; }
.tr-trunk-lid { position: absolute; top: 0; left: 4%; right: 4%; height: 84px; transform-origin: bottom center; transform: perspective(600px) rotateX(38deg);
  border-radius: 26px 26px 8px 8px; background: linear-gradient(180deg, #5b2390, #3d1466); box-shadow: inset 0 -10px 0 #2a0c47, 0 -6px 30px rgba(123,77,255,.35); }
.tr-lights { position: absolute; left: 6%; right: 6%; bottom: 8px; display: flex; justify-content: space-between; }
.tr-lights i { width: 12px; height: 16px; border-radius: 50% 50% 45% 45%; background: var(--tr-pumpkin); box-shadow: 0 0 12px 3px rgba(255,122,26,.7); animation: tr-bulb 1.8s infinite; animation-delay: calc(var(--b) * -.2s); }
.tr-lights i:nth-child(3n+1) { background: var(--tr-slime); box-shadow: 0 0 12px 3px rgba(167,217,29,.7); }
.tr-lights i:nth-child(3n+2) { background: var(--tr-candy); box-shadow: 0 0 12px 3px rgba(255,78,184,.7); }
@keyframes tr-bulb { 50% { opacity: .35; } }
.tr-trunk { position: relative; z-index: 1; padding: 18px; border: 14px solid #4b1a7a; border-top-width: 10px; border-radius: 0 0 12px 12px;
  background: radial-gradient(circle at 50% 0, rgba(255,210,122,.22), transparent 60%), #160a22; box-shadow: inset 0 14px 30px rgba(0,0,0,.7); }
.tr-trunk .event-rsvp { max-width: none; margin: 0; padding: 0; border: 0; background: none; backdrop-filter: none; }
.tr-trunk .event-rsvp .ticket-button { background: var(--tr-pumpkin); color: #1e0800; }
.tr-bumper { display: flex; justify-content: space-between; align-items: center; height: 46px; margin: 0 -2%; padding: 0 18px; border-radius: 6px 6px 16px 16px; background: linear-gradient(180deg, #3d1466, #250b40); }
.tr-taillight { width: 70px; height: 20px; border-radius: 4px; background: #ff2a2a; box-shadow: 0 0 18px 4px rgba(255,42,42,.6); animation: tr-brake 3s infinite; }
.tr-plate { padding: 4px 10px; border: 2px solid #1a0a2a; border-radius: 4px; background: var(--tr-cream); color: #1a0a2a; font: 600 12px 'DM Mono', monospace; letter-spacing: .08em; }
@keyframes tr-brake { 0%, 80%, 100% { opacity: .75; } 85%, 95% { opacity: 1; filter: brightness(1.4); } }
.tr-trunk:has(.is-done) ~ .tr-bumper .tr-taillight { animation: tr-bulb .5s 6; }

.tr-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: 1180px; margin: 0 auto 40px; padding: 18px clamp(16px, 3vw, 30px);
  border-top: 1px dashed rgba(255,122,26,.4); color: var(--tr-muted); font: 11px 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .tr-hero { grid-template-columns: 1fr; min-height: 0; }
  .tr-flyer { width: min(88%, 380px); margin-top: 10px; }
  .tr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-trunk-section { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tr-vitals { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tr-vitals li { padding: 10px; }
  .tr-midnight { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tr-countdown { justify-content: center; }
  .tr-houses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-cards { grid-template-columns: 1fr; }
  .tr-section { margin-left: 10px; margin-right: 10px; border-radius: 18px; }
  .tr-taillight { width: 44px; }
  .tr-lurker.is-low { display: none; }
}

/* ---------- Motion off: the site's pause control, or the system setting ---------- */
html[data-bs-motion="paused"] body.event-theme-treat *, html[data-bs-motion="paused"] body.event-theme-treat *::before, html[data-bs-motion="paused"] body.event-theme-treat *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  body.event-theme-treat *, body.event-theme-treat *::before, body.event-theme-treat *::after { animation: none !important; transition-duration: .01ms !important; }
}
