/* ==========================================================================
   ZeroPvP motion v8 (2026-10-28), the shared half: word rise, block rise and the giant close.
   Script: assets/js/motion8.js. Everything here is visible without JS; only html.r8-on (set by the
   script when motion is welcome) hides what is about to rise.
   ========================================================================== */

/* the smooth wheel moves the page itself; the browser's own smooth scrolling must not fight it */
html[data-glide] { scroll-behavior: auto !important; }

/* word by word, out of a mask */
.r8-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.r8-w > span { display: inline-block; }
html.r8-on [data-r8-words] .r8-w > span { transform: translate3d(0, 105%, 0); }
html.r8-on [data-r8-words].r8-in .r8-w > span {
  transform: none;
  transition: transform 900ms cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--wi, 0) * 70ms);
}

/* a block that rises once */
html.r8-on [data-r8] { opacity: 0; transform: translate3d(0, 28px, 0); }
html.r8-on [data-r8].r8-in {
  opacity: 1; transform: none;
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--r8d, 0ms);
}

/* ---------- the close: the logo at the top of every footer ---------- */
.zp8-giant {
  position: relative; width: min(100% - 2 * var(--gutter), 1000px); margin: 0 auto; padding: 64px 0 18px;
  user-select: none; pointer-events: none;
}
.zp8-giant img { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.7)); }
.zp8-giant-sheen {
  position: absolute; left: 0; right: 0; top: 64px; bottom: 18px;
  -webkit-mask: var(--logo) center / 100% 100% no-repeat; mask: var(--logo) center / 100% 100% no-repeat;
  background: linear-gradient(102deg, transparent 38%, rgba(255, 255, 255, 0.6) 48%, rgba(255, 255, 255, 0.12) 53%, transparent 60%) 140% 0 / 300% 100% no-repeat;
  opacity: 0;
}
html.r8-on .zp8-giant img { opacity: 0; transform: translate3d(0, 48px, 0) scale(0.96); }
html.r8-on .zp8-giant.r8-in img { opacity: 1; transform: none; transition: opacity 600ms ease, transform 1100ms cubic-bezier(0.19, 1, 0.22, 1); }
html.r8-on .zp8-giant.r8-in .zp8-giant-sheen { animation: zp8-sweep 1300ms cubic-bezier(0.45, 0, 0.2, 1) 500ms both; }
@keyframes zp8-sweep { 0% { background-position: 140% 0; opacity: 1; } 100% { background-position: -40% 0; opacity: 1; } }
@media (max-width: 559px) { .zp8-giant { padding-top: 40px; } .zp8-giant-sheen { top: 40px; } }
/* ==========================================================================
   The v8 look on every other page (2026-10-28, owner: "match all the other pages, that feel").
   Same treatment as the front page: a lit page head with an item icon kicker and a big pixel
   title that rises word by word, stats in the game's dark slots, aside cards in the tooltip
   colours, kit icons in lit slots, soft section edges. Data and layouts stay each page's own.
   ========================================================================== */
:root { --k8-tip: rgba(16, 0, 16, 0.94); --k8-tip-hi: #5000ff; --k8-tip-lo: #28007f; --k8-band: #0f0e14; }

/* the page head: one neutral light from above, a soft fade into the page, no hard rule */
.page-hero::before {
  background:
    radial-gradient(55% 80% at 30% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    linear-gradient(180deg, #0a0b0f 30%, var(--k8-band) 75%, var(--mc-page, #0c0d11)) !important;
  border-bottom: 0 !important;
}
.page-hero { padding-bottom: 40px; }
@media (min-width: 980px) { .page-hero { padding: 72px 0 56px; } }
.page-hero h1 {
  font-size: var(--mc-s5, 54px) !important; line-height: 1.08 !important; text-transform: none !important;
  text-shadow: var(--mc-shadow) !important; color: #fff; max-width: 20ch; text-wrap: balance; font-weight: 400;
}
@media (max-width: 899px) { .page-hero h1 { font-size: var(--mc-s4, 45px) !important; } }
@media (max-width: 559px) { .page-hero h1 { font-size: var(--mc-s3, 36px) !important; } }
.page-hero > p, .ph-main > p, .page-hero .hero-sub { font-size: var(--mc-s1, 18px); line-height: 1.6; color: #a9a5b6; max-width: 60ch; }

/* the kicker: the game's item for the page, lavender text, no pill */
.eyebrow-pill.k8, .zp-kicker.k8 {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 0; background: none; border: 0; box-shadow: none;
  font-family: var(--mc-font); font-size: var(--mc-s1, 18px); text-transform: none; color: var(--accent, #beacfe);
  text-shadow: var(--mc-shadow);
}
.eyebrow-pill.k8 > .dot, .eyebrow-pill.k8 > .zp-dot { display: none; }
.eyebrow-pill.k8 > img.k8-ico, .zp-kicker.k8 > img.k8-ico {
  width: 24px; height: 24px; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.6));
}
.zp-kicker.k8::before { display: none; }

/* stats in the game's dark slots (every page's .zp-stats) */
main .zp-stats, .page-hero .zp-stats { gap: 12px; border: 0 !important; background: none !important; box-shadow: none !important; }
main .zp-stats > .zp-stat, .page-hero .zp-stats > .zp-stat {
  border: 8px solid transparent; border-image: var(--mc-gui-dark) 4 fill / 8px / 0 stretch;
  background: none; box-shadow: none; padding: 14px 16px 16px;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
main .zp-stats > .zp-stat:hover, .page-hero .zp-stats > .zp-stat:hover { transform: translateY(-3px); border-image-source: var(--mc-gui-hover); }
main .zp-stats .zp-stat-v, .page-hero .zp-stats .zp-stat-v { color: #fff; text-shadow: var(--mc-shadow); }

/* the head's side card in the game's tooltip colours */
.page-hero .ph-aside.zp-card {
  border: 2px solid transparent !important; border-image: none !important;
  background: linear-gradient(var(--k8-tip), var(--k8-tip)) padding-box, linear-gradient(var(--k8-tip-hi), var(--k8-tip-lo)) border-box !important;
  box-shadow: 0 0 0 2px var(--k8-tip), 0 24px 40px -24px rgba(0, 0, 0, 0.9) !important;
}

/* kit icons stand in a lit slot */
.zp-kit-ico, .kp-ico {
  background: radial-gradient(70% 60% at 50% 25%, rgba(255, 255, 255, 0.1), transparent 70%), #0b0a0f !important;
  box-shadow: inset 3px 3px 0 #000, inset -3px -3px 0 #2c2a35 !important;
  border-image: none !important; border-color: transparent !important;
}
.zp-kit-ico img, .kp-ico img { image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.45)); }

/* section titles: the front page's size and shadow, word rise from motion8.js */
main .zp-sec-head h2 { font-size: var(--mc-s4, 45px); line-height: 1.1; text-shadow: var(--mc-shadow); text-transform: none; font-weight: 400; text-wrap: balance; }
@media (max-width: 559px) { main .zp-sec-head h2 { font-size: var(--mc-s3, 36px); } }

/* bands: soft edges into the page instead of hard lines */
main .zp-band, main .zp-deep {
  background: linear-gradient(var(--mc-page, #0c0d11), var(--k8-band) 80px, var(--k8-band) calc(100% - 80px), var(--mc-page, #0c0d11)) !important;
  border-block: 0 !important;
}

/* the big logo replaces the small one in the footer's top row */
.zp-foot:has(> .zp8-giant) .zp-foot-logo { display: none; }
