/* November 2026: the home hero's stage of worlds, chaptered reels of real footage and the panels built on them.
   Loaded by the home page, the FateMMO page (its attack forms section) and the Media page (its reels), after
   bezhig.css; no other page loads it. */

/* ---- The hero's stage: five worlds, each playing its own game ---- */
.bz-hero--stage { padding: clamp(26px, 4vw, 58px) 0 clamp(44px, 6vw, 88px); }
.bz-hero--stage .bz-hero__inner { gap: 20px clamp(32px, 4vw, 64px); align-items: end; }
.bz-hero--stage h1 { font-size: clamp(3.25rem, 1.3rem + 5.6vw, 6.75rem); }
.bz-hero--stage .bz-kicker { margin-bottom: 20px; }
.bz-hero--stage .bz-hero__side { padding-bottom: 12px; }
.bz-hero--stage .bz-hero__deck { font-size: clamp(1rem, 0.94rem + 0.32vw, 1.1875rem); line-height: 1.6; }
.bz-hero--stage .bz-actions { margin-top: 22px; }
.bz-hero--stage .bz-fan { padding: 34px clamp(0px, 1.6vw, 22px) 16px; gap: clamp(10px, 1.2vw, 17px); }

.bz-hero--stage .bz-card { --card-accent: #f0a83c; border-radius: 22px; }
.bz-hero--stage .bz-card.is-uf { --card-accent: #ff5a4a; }
.bz-hero--stage .bz-card.is-fm { --card-accent: #f4d991; }
.bz-hero--stage .bz-card.is-ci { --card-accent: #e9c877; }
.bz-hero--stage .bz-card.is-sr { --card-accent: #6fe0d2; }
.bz-hero--stage .bz-card.is-ln { --card-accent: #fbf6ec; }
.bz-hero--stage .bz-card.is-fm > video { object-position: 50% 50%; }

/* Each card carries a slate across its top naming what its clip is showing; the title sits on a shade that only
   starts past the middle, so the footage owns everything between. */
.bz-hero--stage .bz-card__shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.72) 68%, rgba(0, 0, 0, 0.95) 86%, #000 100%);
}

.bz-card__now {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 13px 9px;
  border-bottom: 1px solid color-mix(in srgb, var(--card-accent) 36%, transparent);
  background: #0b0807;
  color: rgba(255, 250, 244, 0.97);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.bz-card__now::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 0.36em;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 10px var(--card-accent);
  animation: bz-now-pulse 1.8s ease-in-out infinite;
}

/* The words fill the slate's width as one block, and the script swaps the whole element when they change: Safari
   otherwise leaves the end of a longer caption painted beside a shorter one. */
.bz-card__now b { display: block; flex: 1 1 auto; min-width: 0; font-weight: inherit; transition: opacity 0.18s; }
.bz-card__now.is-turning b { opacity: 0; }

@keyframes bz-now-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.bz-hero--stage .bz-card:hover,
.bz-hero--stage .bz-card:focus-visible {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--card-accent) 70%, transparent), 0 36px 80px rgba(0, 0, 0, 0.65), 0 0 90px var(--card-glow, transparent);
}

.bz-hero__note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--bz-faint);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

/* ---- Reels: real footage with its chapters named ---- */
.bz-reel { --reel-accent: var(--bz-amber); margin: 0; min-width: 0; scroll-margin-block: calc(var(--bz-header-h) + 12px) 18px; }
.bz-reel__cap { margin-top: 16px; }

.bz-reel__now {
  display: grid;
  gap: 3px;
  margin: 0 0 10px;
  color: var(--world-text, var(--bz-text));
  font-size: 0.9375rem;
  line-height: 1.35;
}

.bz-reel__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--reel-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bz-reel__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: bz-now-pulse 1.8s ease-in-out infinite;
}

.bz-reel__now strong { color: #fff; font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }

.bz-reel__bar { display: none; gap: 4px; }
.bz-reel.is-live .bz-reel__bar { display: flex; }

.bz-reel__bar button {
  position: relative;
  flex: var(--w, 1) 1 0;
  min-width: 12px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bz-reel__bar button i {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  transition: height 0.18s, margin 0.18s, background-color 0.18s;
}

.bz-reel__bar button i::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(var(--fill, 0));
  border-radius: inherit;
  background: var(--reel-accent);
}

.bz-reel__bar button:hover i,
.bz-reel__bar button:focus-visible i { height: 8px; margin-top: -4px; background: rgba(255, 255, 255, 0.34); }
.bz-reel__bar button:focus-visible { outline: 2px solid var(--reel-accent); outline-offset: 2px; border-radius: 6px; }
.bz-reel__note { margin: 10px 0 0; color: var(--bz-faint); font-size: 0.8125rem; line-height: 1.55; }
.bz-reel__note a { color: inherit; text-decoration-color: currentColor; }
.bz-reel__note a:hover { color: #fff; }

/* A reel on a phone */
.bz-reel--phone { width: 100%; max-width: 300px; }
.bz-reel--phone .bz-phone { max-width: none; }

/* A reel in a window (no device around it) */
.bz-reel__frame { position: relative; overflow: hidden; border-radius: 18px; background: #050506; }
.bz-reel__frame > video,
.bz-reel__frame > .clip-still { display: block; width: 100%; height: auto; object-fit: cover; }

/* ---- Undead Forever ---- */
.bz-world.is-uf .bz-reel { --reel-accent: #ff6a5a; }
.bz-world.is-uf .bz-world__media { align-items: flex-start; }
.bz-world.is-uf .bz-phone--back { margin-top: 26px; }

/* ---- FateMMO: the stage under the title art ---- */
.bz-fm-stage {
  --world-text: #e9e4d6;
  position: relative;
  z-index: 1;
  margin-top: -1px;
  padding: clamp(8px, 2vw, 24px) 0 clamp(64px, 8vw, 110px);
  background: #071019;
}

.bz-fm-stage .bz-reel { --reel-accent: #f4d991; }
/* the same stage as a section of the FateMMO page, under that page's own section head */
.bz-fm-stage--page { margin-top: 0; padding-bottom: clamp(72px, 9vw, 128px); background: none; }
.bz-fm-stage--page .fm-note { margin-top: 22px; }
.bz-fm-stage__head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.bz-fm-stage__head .bz-eyebrow { justify-content: center; color: #d7ae58; }
.bz-fm-stage__head .bz-eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }

.bz-fm-stage__head h3 {
  margin-bottom: 14px;
  color: #f4eedf;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

.bz-fm-stage__head h3 span { color: #f4d991; }
.bz-fm-stage__head p:not(.bz-eyebrow) { margin: 0 auto; max-width: 640px; color: #c9c5b8; font-size: 1.0625rem; line-height: 1.65; }

.bz-fm-stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 34px);
  align-items: start;
}

.bz-reel--cinema .bz-reel__frame {
  border: 1px solid rgba(215, 174, 88, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 100px rgba(215, 174, 88, 0.12);
}

.bz-reel--cinema video,
.bz-reel--cinema .clip-still { aspect-ratio: 16 / 9; }

/* A phone held sideways, as FateMMO is played */
.bz-lphone {
  padding: 7px;
  border-radius: 28px;
  background: linear-gradient(150deg, #3b4a66, #0a1420 46%, #26344e);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 26px 60px rgba(0, 0, 0, 0.55), 0 0 90px rgba(120, 160, 230, 0.12);
}

.bz-lphone > video,
.bz-lphone > .clip-still {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 442;
  border-radius: 21px;
  object-fit: cover;
  background: #050b12;
}

.bz-fm-stage__side { display: grid; gap: 18px; }
.bz-fm-stage__side .bz-reel__now strong { font-size: 1rem; }

.bz-forms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: clamp(26px, 3.4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.bz-form {
  --form: 215, 174, 88;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--form), 0.34);
  border-radius: 16px;
  background: rgba(7, 16, 25, 0.75);
}

.bz-form.is-mage { --form: 140, 150, 255; }
.bz-form.is-archer { --form: 120, 214, 150; }
.bz-form.is-warrior { --form: 240, 120, 100; }

.bz-form__stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 26% at 50% 78%, rgba(var(--form), 0.3), transparent 70%),
    radial-gradient(ellipse 80% 90% at 50% 40%, rgba(var(--form), 0.2), transparent 72%),
    linear-gradient(180deg, #0b1522, #060c14);
}

.bz-form__stage img {
  width: 92%;
  max-width: 380px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}

.bz-form__body { padding: 14px 16px 16px; color: #d6d2c6; font-size: 0.875rem; line-height: 1.5; }

.bz-form__body strong {
  display: block;
  margin-bottom: 4px;
  color: #f4d991;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.bz-form__body strong span { color: rgb(var(--form)); }
.bz-fm-stage__foot { margin: 22px 0 0; text-align: center; }

/* ---- Crown Infinity: the living town ---- */
.bz-world.is-ci .bz-reel { --reel-accent: #e9c877; width: 100%; max-width: 470px; }

.bz-reel--window .bz-reel__frame {
  border: 1px solid rgba(233, 200, 119, 0.55);
  border-radius: 20px;
  box-shadow: 0 0 0 6px rgba(7, 14, 24, 0.9), 0 0 0 7px rgba(233, 200, 119, 0.22), 0 34px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(226, 189, 106, 0.16);
}

.bz-reel--window video,
.bz-reel--window .clip-still { aspect-ratio: 4 / 5; }

.bz-world.is-ci .bz-towns { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }

/* ---- The Media page's reels ---- */
.bz-reels h3 { margin: 0 0 16px; }
.bz-reels__wide { max-width: 900px; margin: 0 auto clamp(40px, 5vw, 64px); }
.bz-reels__wide.is-fm .bz-reel { --reel-accent: #f4d991; }
.bz-reels__pair { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(28px, 5vw, 72px); }
.bz-reels__pair > div { min-width: 0; }
.bz-reels__pair .is-uf { flex: 0 1 300px; --phone-glow: rgba(232, 73, 63, 0.22); }
.bz-reels__pair .is-uf .bz-reel { --reel-accent: #ff6a5a; }
.bz-reels__pair .is-uf .bz-phone { background: linear-gradient(150deg, #5a1712, #160606 46%, #3d0f0b); }
.bz-reels__pair .is-ci { flex: 0 1 440px; }
.bz-reels__pair .is-ci .bz-reel { --reel-accent: #e9c877; }

/* ---- Small screens ---- */
@media (max-width: 1100px) {
  .bz-hero--stage .bz-hero__side { padding-bottom: 0; }
}

@media (max-width: 900px) {
  .bz-fm-stage__grid { grid-template-columns: minmax(0, 1fr); }
  .bz-fm-stage__side { max-width: 560px; margin-inline: auto; width: 100%; }
  .bz-world.is-uf .bz-world__media { justify-content: center; }
  .bz-world.is-ci .bz-reel { margin-inline: auto; }
}

@media (max-width: 800px) {
  .bz-hero--stage .bz-fan { padding-top: 10px; }
  .bz-hero--stage .bz-fan > li { flex: 0 0 62%; max-width: 268px; }
  .bz-hero__note { text-align: left; }
  .bz-forms { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .bz-world.is-ci .bz-towns { gap: 5px; }
  .bz-world.is-ci .bz-towns figcaption { font-size: 0.5625rem; letter-spacing: 0.03em; padding: 14px 2px 6px; }
  .bz-reel__bar button { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .bz-card__now::before, .bz-reel__tag::before { animation: none; }
  .bz-card__now b, .bz-reel__bar button i { transition: none; }
}
