/* Heroes VS Villains (slug: heroes-vs-villains) — built from the Oct 10 flyer.
   The flyer is a stand-off: acid-green HEROES arched over the top, VILLAINS across the
   bottom, a fisheye porthole onto a subway corridor between them, heroes massed left and
   villains massed right, the brain logo dead centre and the date in a red slab.
   The page keeps that axis — cool on the left, hot on the right, green as the shared
   neon — and lets you pick a side, which warms or cools the whole room. */

body.event-theme-heroes {
  --hv-green: #9ee83a;      /* the flyer's title glow */
  --hv-hero: #35d0ff;       /* left of the tunnel */
  --hv-villain: #ff3b4d;    /* right of the tunnel */
  --hv-badge: #ef4423;      /* the 10/10 slab */
  --hv-black: #040705;
  --hv-paper: #eef6e6;
  --hv-side: var(--hv-green);   /* re-pointed when a side is chosen */
  background: var(--hv-black);
  color: var(--hv-paper);
}
body.event-theme-heroes.side-heroes { --hv-side: var(--hv-hero); }
body.event-theme-heroes.side-villains { --hv-side: var(--hv-villain); }
body.event-theme-heroes .archive-header { position: sticky; top: 0; z-index: 40; background: rgba(4,7,5,.78); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(158,232,58,.18); }
body.event-theme-heroes main { position: relative; z-index: 1; }
body.event-theme-heroes footer.site-footer, body.event-theme-heroes .site-footer { position: relative; z-index: 1; background: rgba(4,7,5,.92); }
/* The corridor stays fixed; everything else stacks above it. */
body.event-theme-heroes > main > *:not(.hv-tunnel) { position: relative; z-index: 1; }

.hv-tunnel { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hv-tunnel canvas { display: block; width: 100%; height: 100%; }
/* Comic halftone over the whole field — static, so it costs nothing per frame. */
.hv-tunnel::before { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(0,0,0,.85) 1px, transparent 1.6px);
  background-size: 5px 5px; }
/* The flyer frames everything in a porthole, and the copy needs a calm centre to sit on. */
.hv-tunnel::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 40% at 50% 42%, rgba(4,7,5,.82), rgba(4,7,5,.3) 60%, transparent 78%),
    radial-gradient(circle at 50% 44%, transparent 38%, rgba(4,7,5,.5) 66%, rgba(4,7,5,.95) 92%); }

/* ---------- Hero ---------- */
.hv-hero { position: relative; display: grid; justify-items: center; max-width: 1180px; margin: 0 auto;
  padding: clamp(24px, 5vw, 62px) clamp(16px, 4vw, 54px) clamp(20px, 4vw, 46px); text-align: center; }

/* HEROES / VS / VILLAINS, stacked exactly as the flyer stacks them. */
.hv-title { margin: 0; display: grid; justify-items: center; gap: clamp(2px, .6vw, 8px); line-height: .9; }
.hv-title span { display: block; font-family: Fredoka, Manrope, sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 13vw, 138px); letter-spacing: .01em; color: #f4ffe2;
  text-shadow: 0 0 5px #eaffb9, 0 0 16px var(--hv-green), 0 0 42px rgba(158,232,58,.85), 0 0 88px rgba(158,232,58,.45); }
.hv-title .hv-vs { font-size: clamp(22px, 5.4vw, 58px); color: var(--hv-green);
  text-shadow: 0 0 6px #eaffb9, 0 0 22px var(--hv-green), 0 0 54px rgba(158,232,58,.6); }

/* The date slab, straight off the flyer. */
.hv-badge { display: inline-block; margin: clamp(14px, 2.6vw, 24px) 0 0; padding: 7px 20px; border-radius: 9px;
  background: var(--hv-badge); color: #fff; font: 700 clamp(17px, 3vw, 27px) Fredoka, Manrope, sans-serif; letter-spacing: .04em;
  box-shadow: 0 10px 30px rgba(239,68,35,.4); }

.hv-lede { max-width: 560px; margin: clamp(16px, 2.8vw, 26px) auto 0; color: rgba(238,246,230,.76);
  font: 400 clamp(14px, 1.5vw, 17px)/1.7 Manrope, sans-serif; }

.hv-vitals { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(14px, 3vw, 34px); margin: clamp(18px, 3vw, 28px) 0 0; padding: 0; list-style: none; }
.hv-vitals li { display: grid; gap: 3px; }
.hv-vitals b { color: rgba(238,246,230,.45); font: 400 9px 'Share Tech Mono', monospace; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; }
.hv-vitals strong { color: var(--hv-green); font: 600 clamp(14px, 2vw, 18px) Manrope, sans-serif; }
.hv-vitals .hv-door { color: rgba(238,246,230,.7); font-size: clamp(11px, 1.5vw, 13px); font-weight: 500; }

/* ---------- Pick a side ---------- */
/* Costumes are the whole premise of this night, so the prize gets its own line above the
   side-picker rather than a sentence buried in the write-up. It borrows the title glow. */
.hv-prize { display: inline-flex; align-items: center; gap: 9px; margin: clamp(20px, 3.4vw, 30px) auto 0;
  padding: 10px 20px; border: 1px solid color-mix(in srgb, var(--hv-green) 48%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--hv-green) 9%, transparent); color: var(--hv-paper);
  font: 600 clamp(13px, 1.7vw, 16px) Manrope, sans-serif; }
.hv-prize b { color: var(--hv-green); font-size: 1.05em; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hv-prize { animation: hv-in .6s cubic-bezier(.16,1,.3,1) both; animation-delay: .25s; }
}
.hv-pick { display: grid; justify-items: center; gap: 12px; margin: clamp(22px, 4vw, 38px) 0 0; }
.hv-pick > p { margin: 0; color: rgba(238,246,230,.55); font: 400 10px 'Share Tech Mono', monospace; letter-spacing: .28em; text-transform: uppercase; }
.hv-pick-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hv-side-button { min-width: 150px; padding: 14px 26px; border: 2px solid currentColor; border-radius: 999px; background: transparent;
  cursor: pointer; font: 700 13px Fredoka, Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  transition: background .25s, color .25s, box-shadow .25s, transform .2s; }
.hv-side-button[data-hv-side="heroes"] { color: var(--hv-hero); }
.hv-side-button[data-hv-side="villains"] { color: var(--hv-villain); }
.hv-side-button:hover { transform: translateY(-2px); }
.hv-side-button[aria-pressed="true"][data-hv-side="heroes"] { background: var(--hv-hero); color: #041318; box-shadow: 0 0 40px rgba(53,208,255,.5); }
.hv-side-button[aria-pressed="true"][data-hv-side="villains"] { background: var(--hv-villain); color: #1a0406; box-shadow: 0 0 40px rgba(255,59,77,.5); }
.hv-pick-note { min-height: 18px; margin: 0; color: var(--hv-side); font: 400 12px 'Share Tech Mono', monospace; letter-spacing: .08em; transition: color .3s; }

.hv-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(18px, 3vw, 28px); padding: 15px 30px;
  border: 2px solid var(--hv-side); border-radius: 999px; color: var(--hv-side); text-decoration: none;
  font: 700 12px 'Share Tech Mono', monospace; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 0 26px color-mix(in srgb, var(--hv-side) 26%, transparent); transition: background .25s, color .25s, box-shadow .25s, border-color .3s; }
.hv-cta:hover { background: var(--hv-side); color: var(--hv-black); }

/* ---------- Sections ---------- */
.hv-section { max-width: 1080px; margin: clamp(34px, 6vw, 84px) auto; padding: 0 clamp(18px, 5vw, 60px); }
.hv-label { margin: 0; color: var(--hv-side); font: 400 11px 'Share Tech Mono', monospace; letter-spacing: .3em; text-transform: uppercase; transition: color .3s; }
.hv-section h2 { margin: 5px 0 18px; font: 700 clamp(26px, 4.4vw, 48px) Fredoka, Manrope, sans-serif; text-transform: uppercase; color: var(--hv-paper);
  text-shadow: 0 0 24px rgba(158,232,58,.3); }
.hv-note p { margin: 0; color: rgba(238,246,230,.8); font: 400 clamp(15px, 1.6vw, 17px)/1.8 Manrope, sans-serif; }

/* ---------- The bill: two rosters facing each other down the corridor ---------- */
.hv-rosters { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: clamp(12px, 3vw, 40px); }
.hv-roster { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
/* Each side masses against the centre line the way the flyer crowds them, so the names
   shrink to their content instead of stretching to the far edge of the column. */
.hv-roster-heroes .hv-roster { justify-items: end; }
.hv-roster-villains .hv-roster { justify-items: start; }
.hv-roster-title { margin: 0 0 12px; font: 700 clamp(15px, 2.2vw, 22px) Fredoka, Manrope, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.hv-roster-heroes .hv-roster-title { color: var(--hv-hero); text-align: right; }
.hv-roster-villains .hv-roster-title { color: var(--hv-villain); }
.hv-roster-heroes { text-align: right; }
/* The divider is the corridor's centre line, where the flyer puts the logo. */
.hv-divide { display: grid; justify-items: center; gap: 8px; align-self: stretch; }
.hv-divide span { width: 2px; flex: 1; min-height: 40px; background: linear-gradient(var(--hv-hero), var(--hv-green), var(--hv-villain)); opacity: .5; }
.hv-divide b { color: var(--hv-green); font: 700 13px Fredoka, Manrope, sans-serif; letter-spacing: .1em; }
.hv-fighter { padding: 11px 15px; border: 1px solid rgba(238,246,230,.14); border-radius: 10px; background: rgba(10,16,11,.6);
  animation: hv-in .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 80ms); transition: border-color .25s, transform .25s, background .25s; }
@keyframes hv-in { from { opacity: 0; transform: translateY(16px); } }
.hv-roster-heroes .hv-fighter:hover { border-color: var(--hv-hero); transform: translateX(-5px); }
.hv-roster-villains .hv-fighter:hover { border-color: var(--hv-villain); transform: translateX(5px); }
.hv-fighter a, .hv-fighter > span:not(.hv-time) { color: var(--hv-paper); font: 600 clamp(14px, 1.9vw, 19px) Manrope, sans-serif; text-decoration: none; }
/* The set slot, quieter than the name and on its own line so a long name never collides with
   it. Heroes read right-aligned, so their time sits under the name on the same edge. */
.hv-time { display: block; margin-top: 3px; color: rgba(238,246,230,.52);
  font: 400 12px 'Share Tech Mono', monospace; letter-spacing: .08em; }
.hv-roster-heroes .hv-time { color: color-mix(in srgb, var(--hv-hero) 62%, rgba(238,246,230,.6)); }
.hv-roster-villains .hv-time { color: color-mix(in srgb, var(--hv-villain) 62%, rgba(238,246,230,.6)); }
.hv-fighter a { display: inline-block; padding: 3px 1px; }
.hv-fighter a b { margin-left: .3em; font-size: .72em; font-weight: 400; }
.hv-roster-heroes .hv-fighter a b { color: var(--hv-hero); }
.hv-roster-villains .hv-fighter a b { color: var(--hv-villain); }
.hv-fighter.is-tba { border-style: dashed; }
.hv-fighter.is-tba > span:not(.hv-time) { color: rgba(238,246,230,.38); }
.hv-hint { margin: 0 0 14px; color: rgba(238,246,230,.5); font: 400 12px 'Share Tech Mono', monospace; letter-spacing: .1em; }
.hv-hint b { color: var(--hv-green); font-weight: 400; }

/* ---------- Flyer ---------- */
.hv-flyer { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 3vw, 32px); }
.hv-flyer img, .hv-flyer video { flex: 0 1 460px; min-width: 0; }
.hv-flyer video { display: block; width: min(100%, 460px); aspect-ratio: 4 / 5; height: auto; object-fit: cover; background: #000; border: 1px solid rgba(158,232,58,.3); border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0,0,0,.7), 0 0 56px rgba(158,232,58,.12); }
.hv-flyer img { display: block; width: min(100%, 460px); height: auto; border: 1px solid rgba(158,232,58,.3); border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0,0,0,.7), 0 0 56px rgba(158,232,58,.12); }

/* ---------- Booth ---------- */
.hv-booth { max-width: 640px; margin: clamp(34px, 7vw, 92px) auto; padding: clamp(24px, 4vw, 40px);
  border: 2px solid color-mix(in srgb, var(--hv-side) 40%, transparent); border-radius: 18px;
  background: linear-gradient(165deg, rgba(14,22,16,.92), rgba(4,8,5,.95)); box-shadow: 0 40px 96px rgba(0,0,0,.62); transition: border-color .3s; }
.hv-console { display: grid; gap: 15px; }
.hv-readout { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 9px; background: #060c07;
  box-shadow: inset 0 0 0 1px rgba(158,232,58,.2), inset 0 8px 20px rgba(0,0,0,.6); }
.hv-readout small, .hv-total small { color: rgba(158,232,58,.6); font: 400 10px 'Share Tech Mono', monospace; letter-spacing: .2em; text-transform: uppercase; }
.hv-readout strong { margin-left: auto; color: var(--hv-green); font: 400 clamp(25px, 3vw, 34px) 'Share Tech Mono', monospace; text-shadow: 0 0 16px rgba(158,232,58,.45); }
.hv-total { display: flex; align-items: baseline; gap: 12px; padding: 10px 16px; border-radius: 9px; background: rgba(158,232,58,.09); }
.hv-total[hidden] { display: none; }
.hv-total strong { margin-left: auto; color: var(--hv-green); font: 400 24px 'Share Tech Mono', monospace; }
.hv-level label { display: block; margin-bottom: 8px; color: rgba(238,246,230,.55); font: 400 10px 'Share Tech Mono', monospace; letter-spacing: .24em; text-transform: uppercase; }
.hv-level-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hv-step { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid color-mix(in srgb, var(--hv-side) 45%, transparent); border-radius: 50%;
  background: #0d150e; color: var(--hv-side); cursor: pointer; font: 700 20px Manrope, sans-serif; transition: box-shadow .2s, transform .15s, color .3s; }
.hv-step:hover { box-shadow: 0 0 22px color-mix(in srgb, var(--hv-side) 40%, transparent); }
.hv-step:active { transform: scale(.93); }
.hv-level-row select { min-height: 44px; padding: 0 12px; border: 1px solid rgba(158,232,58,.35); border-radius: 9px; background: #0d150e; color: var(--hv-paper); font: 600 16px Manrope, sans-serif; }
.hv-buy { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 0 24px;
  border: 0; border-radius: 999px; background: linear-gradient(120deg, var(--hv-hero), var(--hv-green) 50%, var(--hv-villain));
  color: #05130a; cursor: pointer; font: 700 14px Fredoka, Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(158,232,58,.24); transition: transform .2s, box-shadow .2s; }
.hv-buy:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 20px 56px rgba(158,232,58,.4); }
.hv-buy:disabled { background: rgba(255,255,255,.1); color: rgba(238,246,230,.6); cursor: not-allowed; box-shadow: none; }
.hv-booth-note { margin: 0; color: rgba(238,246,230,.6); font: 400 13px/1.6 Manrope, sans-serif; }
.hv-checkout-message { min-height: 20px; margin: 0; color: var(--hv-side); font: 400 13px 'Share Tech Mono', monospace; }

.hv-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; max-width: 1080px; margin: 0 auto;
  padding: 24px clamp(18px, 5vw, 60px) 56px; border-top: 1px solid rgba(158,232,58,.2); color: rgba(238,246,230,.5);
  font: 400 11px 'Share Tech Mono', monospace; letter-spacing: .2em; text-transform: uppercase; }

@media (max-width: 720px) {
  /* The face-off can't hold three columns on a phone, so the rosters stack and each
     keeps its own side's alignment rather than both going flush left. */
  .hv-rosters { grid-template-columns: 1fr; gap: 22px; }
  .hv-roster-heroes, .hv-roster-heroes .hv-roster-title { text-align: left; }
  .hv-roster-heroes .hv-roster { justify-items: start; }
  .hv-divide { grid-auto-flow: column; justify-items: stretch; align-items: center; gap: 12px; }
  .hv-divide span { width: auto; height: 2px; min-height: 0; flex: 1; }
  .hv-roster-heroes .hv-fighter:hover { transform: translateX(5px); }
  .hv-section, .hv-hero { padding-inline: 18px; }
  .hv-booth { margin-inline: 14px; padding: 22px 18px; }
  .hv-side-button { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.event-theme-heroes *, body.event-theme-heroes *::before, body.event-theme-heroes *::after { animation: none !important; transition: none !important; }
}
