/* =========================================================
   Bullapalooza - Festival marketing site
   Matches game UI style guide: festival red, cream, gold,
   charcoal, chunky buttons, bold display type.
   ========================================================= */

:root {
  /* Official-ish palette from UI style guide */
  --festival-red: #e11d3a;
  --festival-red-hot: #ff2d4a;
  --festival-red-deep: #a01028;
  --warm-cream: #faf6f0;
  --warm-cream-2: #f0e6d6;
  --charcoal: #1a1410;
  --charcoal-2: #241c16;
  --stone: #6b5d52;
  --terracotta: #c45c26;
  --gold: #f0b429;
  --gold-soft: #ffd56a;
  --moss: #3db86a;
  --cobalt: #2f6fed;
  --purple: #9b5de5;

  --player-red: #e11d3a;
  --player-blue: #2f6fed;
  --player-yellow: #f0b429;
  --player-green: #3db86a;
  --player-purple: #9b5de5;

  --white: #fffdf9;
  --ink: #1a1410;
  --muted: #7a6a5c;
  --line: rgba(26, 20, 16, 0.1);
  --line-light: rgba(255, 248, 240, 0.12);
  --shadow: 0 20px 50px rgba(12, 8, 5, 0.28);
  --shadow-chunky: 4px 6px 0 rgba(26, 20, 16, 0.18);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1140px;
  --font-display: "Bangers", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --header-h: 70px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  background: var(--warm-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  background: rgba(225, 29, 58, 0.25);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2.25rem, var(--max));
  margin-inline: auto;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  opacity: 0.028;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Wordmark */
.brand-wordmark,
.bw-red,
.bw-cream {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bw-red {
  color: var(--festival-red-hot);
  -webkit-text-stroke: 0;
  text-shadow:
    2px 2px 0 #1a1410,
    -1px -1px 0 #1a1410,
    1px -1px 0 #1a1410,
    -1px 1px 0 #1a1410;
}

.bw-cream {
  color: var(--warm-cream);
  text-shadow:
    2px 2px 0 #1a1410,
    -1px -1px 0 #1a1410,
    1px -1px 0 #1a1410,
    -1px 1px 0 #1a1410;
}

.outline-red {
  color: var(--festival-red);
  -webkit-text-stroke: 0;
}

.outline-gold {
  color: var(--gold);
}

.dim {
  color: rgba(255, 248, 240, 0.3);
  font-weight: 400;
}

/* Festival bunting */
.bunting {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 110;
  pointer-events: none;
  opacity: 0.95;
}

.bunting svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Stripe bars like festival awning */
.stripe-bar {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--festival-red),
    var(--festival-red) 14px,
    var(--warm-cream) 14px,
    var(--warm-cream) 28px
  );
  border-block: 3px solid var(--charcoal);
}

.stripe-bar.thin {
  height: 8px;
  border-width: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), top 0.3s var(--ease);
}

.site-header.scrolled {
  top: 0;
  background: rgba(26, 20, 16, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-bottom: 3px solid var(--festival-red);
}

.site-header.scrolled ~ .bunting,
body:has(.site-header.scrolled) .bunting {
  opacity: 0;
}

.header-inner {
  height: 100%;
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 2px var(--charcoal);
}

.brand .brand-wordmark {
  font-size: 1.55rem;
  display: flex;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: rgba(255, 248, 240, 0.85);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  background: rgba(255, 248, 240, 0.12);
}

.nav-cta {
  background: var(--festival-red) !important;
  color: var(--white) !important;
  margin-left: 0.4rem;
  padding: 0.55rem 1.15rem !important;
  border: 3px solid var(--charcoal) !important;
  border-radius: 12px !important;
  box-shadow: 3px 4px 0 var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem !important;
}

.nav-cta:hover {
  background: var(--festival-red-hot) !important;
  transform: translateY(-2px);
  box-shadow: 3px 6px 0 var(--charcoal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--warm-cream);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Buttons (game-like) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  font-weight: 900;
  font-size: 1rem;
  border-radius: 14px;
  border: 3px solid var(--charcoal);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.15s ease;
  box-shadow: 4px 5px 0 var(--charcoal);
}

.btn:hover {
  transform: translate(-1px, -2px);
  box-shadow: 5px 7px 0 var(--charcoal);
}

.btn:active {
  transform: translate(2px, 3px);
  box-shadow: 1px 1px 0 var(--charcoal);
}

.btn-play {
  background: linear-gradient(180deg, var(--festival-red-hot), var(--festival-red-deep));
  color: var(--white);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.btn-play:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(255, 248, 240, 0.12);
  color: var(--white);
  border-color: rgba(255, 248, 240, 0.45);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 248, 240, 0.2);
}

.btn-arrow {
  font-size: 1.15em;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: calc(var(--header-h) + 3.5rem) 1.25rem 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  animation: kenburns 22s ease-in-out infinite alternate;
  filter: saturate(1.18) contrast(1.05);
}

@keyframes kenburns {
  from { transform: scale(1.08); }
  to { transform: scale(1.16) translate(-1%, -0.5%); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(26, 20, 16, 0.15), rgba(26, 20, 16, 0.78) 70%),
    linear-gradient(180deg, rgba(26, 20, 16, 0.5) 0%, transparent 40%, rgba(26, 20, 16, 0.92) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  border-radius: 2px;
  animation: fall linear infinite;
  opacity: 0.65;
}

@keyframes fall {
  0% { transform: translateY(-8vh) rotate(0); opacity: 0; }
  12% { opacity: 0.75; }
  100% { transform: translateY(110vh) rotate(640deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: heroIn 1s var(--ease) both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 248, 240, 0.2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--festival-red-hot);
  box-shadow: 0 0 0 0 rgba(255, 45, 74, 0.6);
  animation: pulse 1.7s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(255, 45, 74, 0); }
}

.hero-logo-wrap {
  margin: 0 auto 1.15rem;
  max-width: min(92vw, 620px);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid var(--charcoal);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.35);
}

.hero-logo {
  width: 100%;
  display: block;
}

.hero-tagline {
  margin: 0 auto 1.6rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
  color: rgba(255, 248, 240, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-tagline em {
  font-style: normal;
  font-weight: 900;
  color: var(--gold-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-stats {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  max-width: 500px;
}

.hero-stats li {
  padding: 0.8rem 0.4rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 248, 240, 0.14);
  backdrop-filter: blur(8px);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

.hero-stats span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 248, 240, 0.65);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 248, 240, 0.55);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: currentColor;
  animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {
  50% { opacity: 0.25; transform: translateY(8px); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--charcoal);
  overflow: hidden;
  padding: 0.9rem 0;
  border-block: 3px solid var(--festival-red);
}

.marquee-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  color: var(--warm-cream);
}

.marquee-track .dot {
  opacity: 0.85;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 5.75rem 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 2.75rem;
}

.section-head.light {
  color: var(--warm-cream);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--festival-red);
}

.eyebrow.gold {
  color: var(--gold);
}

.section-head h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
}

.section-head.light h2 {
  color: var(--warm-cream);
}

.lede {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 700;
}

.lede.light {
  color: rgba(255, 248, 240, 0.68);
}

/* ---------- Game ---------- */
.section-game {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(240, 180, 41, 0.08), transparent 50%),
    var(--warm-cream);
}

.feature-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 4px solid var(--charcoal);
  box-shadow: 8px 10px 0 rgba(26, 20, 16, 0.15);
  margin-bottom: 2rem;
  cursor: zoom-in;
  background: var(--charcoal);
  aspect-ratio: 16 / 9;
}

.feature-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.feature-frame:hover img {
  transform: scale(1.04);
}

.frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
  border: 4px solid var(--gold);
  pointer-events: none;
}

.frame-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.frame-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.frame-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.feature-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(12, 8, 5, 0.9));
  color: var(--warm-cream);
}

.chip {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  border: 2px solid var(--charcoal);
}

.chip-red {
  background: var(--festival-red);
  color: white;
}

.feature-caption p {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pillar-card {
  padding: 1.4rem 1.2rem;
  border-radius: 18px;
  background: var(--white);
  border: 3px solid var(--charcoal);
  box-shadow: 4px 5px 0 rgba(26, 20, 16, 0.1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.pillar-card:hover {
  transform: translate(-2px, -4px);
  box-shadow: 6px 9px 0 rgba(26, 20, 16, 0.12);
}

.pillar-emoji {
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
}

.pillar-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
}

.pillar-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- Roles ---------- */
.section-roles {
  background:
    radial-gradient(ellipse 50% 40% at 0% 20%, rgba(225, 29, 58, 0.2), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 80%, rgba(155, 93, 229, 0.12), transparent 50%),
    var(--charcoal);
  color: var(--warm-cream);
  padding-top: 0;
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.role-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--charcoal-2);
  border: 3px solid rgba(255, 248, 240, 0.12);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.role-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 248, 240, 0.22);
}

.role-banner {
  background: var(--festival-red);
  color: white;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  padding: 0.55rem;
  border-bottom: 3px solid var(--charcoal);
}

.runners-banner {
  background: linear-gradient(90deg, #6d28d9, #9b5de5);
}

.role-art {
  aspect-ratio: 1;
  background: #0e0a08;
  overflow: hidden;
}

.role-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.role-card:hover .role-art img {
  transform: scale(1.06);
}

.role-body {
  padding: 1.4rem 1.35rem 1.5rem;
}

.role-body h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.05;
}

.role-body > p {
  margin: 0 0 1rem;
  color: rgba(255, 248, 240, 0.68);
  font-weight: 700;
  font-size: 0.98rem;
}

.ability-grid {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.ability-grid li {
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 248, 240, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 248, 240, 0.65);
  font-weight: 700;
}

.ability-grid span {
  display: block;
  color: var(--warm-cream);
  font-weight: 900;
  font-size: 0.88rem;
  margin-bottom: 0.1rem;
}

.win-box {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(240, 180, 41, 0.12);
  border: 2px solid rgba(240, 180, 41, 0.35);
}

.win-box strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 400;
}

.win-box span {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 248, 240, 0.8);
}

.win-runners {
  background: rgba(155, 93, 229, 0.12);
  border-color: rgba(155, 93, 229, 0.4);
}

.win-runners strong {
  color: #d8b4fe;
}

/* ---------- Cast ---------- */
.section-cast {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(225, 29, 58, 0.18), transparent 55%),
    #120e0b;
  color: var(--warm-cream);
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.cast-card {
  margin: 0;
  text-align: center;
  cursor: zoom-in;
  transition: transform 0.3s var(--ease);
}

.cast-card:hover {
  transform: translateY(-10px);
}

.cast-portrait {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 248, 240, 0.1);
  box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.35);
  background: #0a0807;
}

.cast-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.cast-card:hover .cast-portrait img {
  transform: scale(1.08);
}

.ring-red { border-color: var(--player-red); box-shadow: 4px 6px 0 rgba(225, 29, 58, 0.3); }
.ring-blue { border-color: var(--player-blue); box-shadow: 4px 6px 0 rgba(47, 111, 237, 0.3); }
.ring-yellow { border-color: var(--player-yellow); box-shadow: 4px 6px 0 rgba(240, 180, 41, 0.3); }
.ring-green { border-color: var(--player-green); box-shadow: 4px 6px 0 rgba(61, 184, 106, 0.3); }
.ring-purple { border-color: var(--player-purple); box-shadow: 4px 6px 0 rgba(155, 93, 229, 0.3); }
.cast-bull .cast-portrait { border-color: var(--festival-red-hot); box-shadow: 4px 6px 0 rgba(255, 45, 74, 0.35); }

.cast-card figcaption {
  padding: 0.8rem 0.2rem 0.15rem;
}

.player-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  color: var(--gold-soft);
}

.tag-red { color: #ff6b7a; }
.tag-blue { color: #7eb0ff; }
.tag-yellow { color: #ffd56a; }
.tag-green { color: #6ee7a0; }
.tag-purple { color: #d4a5ff; }
.tag-bull { color: var(--festival-red-hot); }

.cast-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  margin-bottom: 0.1rem;
}

.cast-card em {
  font-style: normal;
  font-size: 0.84rem;
  color: rgba(255, 248, 240, 0.55);
  font-weight: 700;
}

.lineup {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid rgba(255, 248, 240, 0.1);
  cursor: zoom-in;
  background: #0a0807;
  box-shadow: var(--shadow);
}

.lineup img {
  width: 100%;
  transition: transform 0.55s var(--ease);
}

.lineup:hover img {
  transform: scale(1.02);
}

.lineup figcaption {
  padding: 0.9rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 248, 240, 0.55);
}

/* ---------- World ---------- */
.section-world {
  background: var(--warm-cream);
  padding-top: 0;
}

.world-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.world-copy h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}

.world-copy .lede {
  margin-bottom: 1.5rem;
}

.world-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.world-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.8rem;
  border-radius: 14px;
  background: var(--white);
  border: 3px solid var(--charcoal);
  box-shadow: 3px 4px 0 rgba(26, 20, 16, 0.08);
}

.wl-icon {
  font-size: 1.25rem;
  line-height: 1.2;
}

.world-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--ink);
}

.world-list span {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 700;
}

.world-map {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid var(--charcoal);
  box-shadow: 8px 10px 0 rgba(26, 20, 16, 0.12);
  cursor: zoom-in;
  position: relative;
  background: var(--charcoal);
}

.world-map img {
  width: 100%;
  transition: transform 0.5s var(--ease);
}

.world-map:hover img {
  transform: scale(1.03);
}

.world-map figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(12, 8, 5, 0.88));
  color: var(--warm-cream);
  font-weight: 800;
}

.world-map figcaption strong {
  color: var(--gold-soft);
}

.world-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.world-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--charcoal);
  box-shadow: 4px 5px 0 rgba(26, 20, 16, 0.1);
  cursor: zoom-in;
  position: relative;
  background: var(--charcoal);
}

.world-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.world-card:hover img {
  transform: scale(1.06);
}

.world-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.3rem 0.9rem 0.75rem;
  background: linear-gradient(transparent, rgba(12, 8, 5, 0.9));
  color: var(--warm-cream);
  font-weight: 900;
  font-size: 0.92rem;
}

/* ---------- Flow ---------- */
.section-flow {
  background: var(--warm-cream-2);
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.flow li {
  padding: 1.5rem 1.2rem;
  border-radius: 18px;
  background: var(--white);
  border: 3px solid var(--charcoal);
  box-shadow: 4px 5px 0 rgba(26, 20, 16, 0.1);
  transition: transform 0.25s var(--ease);
}

.flow li:hover {
  transform: translateY(-5px);
}

.flow-step {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--festival-red);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.65rem;
  font-weight: 400;
}

.flow h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 400;
}

.flow p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- Gallery ---------- */
.section-gallery {
  background: var(--warm-cream);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, 17vw);
  gap: 0.85rem;
}

.g-card {
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  border: 3px solid var(--charcoal);
  box-shadow: 4px 5px 0 rgba(26, 20, 16, 0.1);
  background: var(--charcoal);
}

.g-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.g-card:hover img {
  transform: scale(1.07);
}

.g-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.9rem 0.75rem;
  background: linear-gradient(transparent, rgba(12, 8, 5, 0.9));
  color: var(--warm-cream);
}

.g-card figcaption span {
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.15rem;
}

.g-card figcaption strong {
  font-size: 1rem;
  font-weight: 900;
}

.g-hero {
  grid-column: span 2;
  grid-row: span 2;
}

.g-wide {
  grid-column: span 2;
}

/* ---------- CTA ---------- */
.section-cta {
  padding-top: 0;
  padding-bottom: 4.5rem;
  background: var(--warm-cream);
}

.cta-panel {
  position: relative;
  width: min(100% - 2.25rem, var(--max));
  margin-inline: auto;
  border-radius: 28px;
  overflow: hidden;
  border: 4px solid var(--charcoal);
  box-shadow: 8px 12px 0 rgba(26, 20, 16, 0.15);
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--warm-cream);
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.32) saturate(1.15);
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(225, 29, 58, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(12, 8, 5, 0.5), rgba(12, 8, 5, 0.82));
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding: 3.25rem 1.5rem;
  max-width: 520px;
}

.cta-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.cta-copy {
  margin: 0 0 1.6rem;
  color: rgba(255, 248, 240, 0.78);
  font-weight: 700;
  font-size: 1.05rem;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.field {
  position: relative;
  flex: 1 1 230px;
  max-width: 300px;
}

.field input[type="email"] {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: 14px;
  border: 3px solid var(--charcoal);
  background: rgba(255, 253, 249, 0.95);
  color: var(--ink);
  font-weight: 800;
  outline: none;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.25);
}

.field input[type="email"]::placeholder {
  color: var(--stone);
  font-weight: 700;
}

.field input[type="email"]:focus {
  border-color: var(--gold);
  box-shadow: 3px 4px 0 rgba(240, 180, 41, 0.4);
}

.field input.invalid {
  border-color: var(--festival-red-hot);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.waitlist-form.is-loading .btn {
  opacity: 0.75;
  pointer-events: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0.4rem 0 0;
  font-weight: 800;
  font-size: 0.95rem;
}

.form-status.is-success { color: #6ee7a0; }
.form-status.is-error { color: #fca5a5; }
.form-status.is-info { color: var(--gold-soft); }

.waitlist-count {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 248, 240, 0.65);
}

.waitlist-count strong {
  color: var(--gold-soft);
}

.fine-print {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(255, 248, 240, 0.45);
}

.fine-print a {
  color: rgba(255, 248, 240, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 248, 240, 0.65);
  padding: 0 0 2.25rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 2rem;
  align-items: center;
  padding-top: 2.25rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.footer-brand img {
  border-radius: 50%;
  border: 3px solid var(--gold);
}

.footer-brand .brand-wordmark {
  font-size: 1.4rem;
  display: flex;
}

.footer-brand p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 248, 240, 0.45);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: center;
}

.footer-nav a {
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(255, 248, 240, 0.65);
}

.footer-nav a:hover {
  color: var(--gold-soft);
}

.footer-meta {
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-meta p {
  margin: 0.2rem 0;
}

.footer-meta a:hover {
  color: var(--gold-soft);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 7, 5, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}

.lightbox[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-figure {
  margin: 0;
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  border: 3px solid var(--charcoal);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-figure figcaption {
  color: rgba(255, 248, 240, 0.75);
  font-weight: 800;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: var(--warm-cream);
  border: 3px solid var(--charcoal);
  color: var(--ink);
  cursor: pointer;
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 3px 4px 0 var(--charcoal);
  transition: transform 0.15s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  transform: translateY(-2px);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pillars,
  .flow {
    grid-template-columns: 1fr 1fr;
  }

  .cast-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(140px, 28vw);
  }

  .g-hero {
    grid-row: span 1;
  }
}

@media (max-width: 900px) {
  .roles-grid,
  .world-split,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
  }

  .world-list {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(18, 12, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 1;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    font-size: 1.35rem;
    padding: 0.75rem 1.5rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .bunting {
    height: 28px;
  }

  .site-header {
    top: 22px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero-stats,
  .pillars,
  .cast-grid,
  .world-cards,
  .flow,
  .ability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .g-hero,
  .g-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .brand .brand-wordmark {
    font-size: 1.25rem;
  }

  .waitlist-form {
    flex-direction: column;
    align-items: stretch;
  }

  .field {
    max-width: none;
  }

  .lightbox-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
