/* =========================================================
   SKITCH — Ultimate Football  |  Front-end (from Figma)
   Design artboard: 1440px. 1em inside sections = 10 design px.
   ========================================================= */

@font-face { font-family: "Bangers"; src: url("../fonts/Bangers-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/ClashDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #06060C;
  --bg-2: #0C0B16;
  --ink: #171727;
  --purple: #772EEC;
  --purple-2: #9358F3;
  --purple-light: #B283FF;
  --purple-lilac: #A974FF;
  --purple-deep: #280C55;
  --purple-dark: #4C1D98;
  --white-60: rgba(255, 255, 255, .6);
  --gold: #E3C27A;
  /* design unit: 10 design px. Fluid between 1024 and 1600 */
  --du: calc(100vw / 144);
  --header-h: 12.2em;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 1600px) { :root { --du: 11.111px; } }
/* < 1024px: the 360 mobile artboard scales with the viewport (1du = 10 design px), capped for tablets */
@media (max-width: 1023.98px) { :root { --du: min(calc(100vw / 36), 15px); } }


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 101; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: #fff;
  font-family: "Clash Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--du); line-height: 1.4; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
main, .site-footer { overflow-x: clip; }
.sec { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; font-weight: inherit; }
:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 1000; background: var(--purple); padding: .6rem 1rem; border-radius: 6px; font-size: 14px; }
.skip-link:focus { top: 1rem; }

/* film-grain texture used by the design ("Noise" effect) */
.grain::after, .noise::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: url("../img/noise.png"); background-size: 128px; opacity: .22; mix-blend-mode: overlay;
}

/* ---------- Section / stage system ---------- */
.sec { position: relative; font-size: var(--du); isolation: isolate; }
.stage { position: relative; width: calc(144 * var(--du)); height: calc(var(--sh) * var(--du)); margin: 0 auto; }
.a { position: absolute; left: calc(var(--x) * var(--du)); top: calc(var(--y) * var(--du)); width: calc(var(--w) * var(--du)); height: calc(var(--h) * var(--du)); transform-origin: 0 0; rotate: var(--r, 0deg); }
.tx { height: auto; margin: 0; }
.a-auto { width: auto; height: auto; }
.art { position: absolute; left: 50%; top: 0; width: calc(144 * var(--du)); translate: -50% 0; height: calc(var(--sh) * var(--du)); pointer-events: none; z-index: -1; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1600px) {
  .art-wide::before, .art-wide::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12em; z-index: 2; pointer-events: none; }
  .art-wide::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
  .art-wide::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
}

/* ---------- Typography (Figma text styles) ---------- */
.t-display, .t-purple, .t-white, .t-silver { font-family: "Bangers", "Impact", sans-serif; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: uppercase; }
/* Section Heading: purple gradient + glow + inner light stroke */
.t-purple {
  color: #8A47F2;
  background: var(--tg, linear-gradient(103deg, #B283FF 0%, #772EEC 76%, #B283FF 100%));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .1em transparent;
  filter: drop-shadow(0 0 calc(.6 * var(--du)) #772EEC) drop-shadow(0 0 calc(4 * var(--du)) rgba(119, 46, 236, .55));
  paint-order: stroke fill;
}
.t-purple .ink, .t-white .ink { position: relative; }
/* subtle inner highlight stroke like Figma's 1px inside gradient stroke */
.t-purple { -webkit-text-stroke: calc(.05 * var(--du)) rgba(255, 255, 255, .22); }
/* White Bangers labels: striped white fill + long diagonal shadow */
.t-white {
  color: #fff;
  background: var(--tw, repeating-linear-gradient(110deg, #fff 0 9%, rgba(255,255,255,.82) 9% 16%));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(calc(-.4 * var(--du)) calc(.4 * var(--du)) calc(.7 * var(--du)) rgba(0,0,0,.55)) drop-shadow(calc(-1.6 * var(--du)) calc(1.6 * var(--du)) calc(1.4 * var(--du)) rgba(0,0,0,.4));
}
.t-white--sm { filter: drop-shadow(-.2em .2em .35em rgba(0,0,0,.5)) drop-shadow(-.8em .8em 1em rgba(0,0,0,.3)); }
.t-silver {
  background: linear-gradient(180deg, #FBFAFB 0%, #A7A5A1 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(-.4rem .4rem .7rem rgba(0,0,0,.55)) drop-shadow(-1.6rem 1.6rem 1.4rem rgba(0,0,0,.4));
}
.t-body { font-family: "Clash Display", sans-serif; font-weight: 400; font-size: 1.8em; line-height: 1.5556; color: #fff; }
.t-center { text-align: center; }
.fs { font-size: calc(var(--fs) * var(--du)); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 100; font-size: var(--du); transition: background .35s ease, backdrop-filter .35s ease, translate .35s ease; }
.site-header__inner { position: relative; width: 144em; height: 12.2em; margin: 0 auto; }
.site-header.is-scrolled { background: linear-gradient(180deg, rgba(6,6,12,.92), rgba(6,6,12,.55)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.is-scrolled .site-header__inner { height: 9.4em; }
.site-header.is-hidden { translate: 0 -100%; }
.site-logo { position: absolute; left: 5.6em; top: 1.5em; width: 14.6em; transition: top .35s ease, scale .35s ease; }
.site-logo img { width: 100%; height: auto; }
.site-header.is-scrolled .site-logo { top: .1em; scale: .9; }
.main-nav { position: absolute; left: 43.3em; top: 3em; width: 57.5em; height: 6.2em; background: url("../img/nav-bar.svg") center / 100% 100% no-repeat; transition: top .35s ease; }
.site-header.is-scrolled .main-nav { top: 1.6em; }
.main-nav ul { display: flex; align-items: center; justify-content: center; gap: 2.4em; height: 100%; padding-bottom: .2em; }
.main-nav a { position: relative; display: block; font-size: 1.4em; line-height: 1.5714; color: var(--white-60); transition: color .2s ease; padding: .4em 0; }
.main-nav a:hover { color: #fff; }
.main-nav a[aria-current="page"] { font-weight: 700; font-size: 1.6em; color: #fff; line-height: 1.625; }
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: .05em; width: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--purple-light), transparent); translate: -50% 0; transition: width .3s var(--ease-out); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }

.menu-toggle, .mobile-menu { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --glow: drop-shadow(0 0 .6em rgba(119,46,236,.13)) drop-shadow(0 0 1.6em rgba(119,46,236,.36)) drop-shadow(0 0 3em rgba(119,46,236,.24));
  display: inline-flex; align-items: center; justify-content: center; isolation: isolate; overflow: hidden;
  width: calc(var(--bw, 21.9) * var(--du)); height: calc(var(--bh, 5.4) * var(--du)); font-size: var(--du);
  font-weight: 700; color: #fff; white-space: nowrap; filter: var(--glow);
  background: var(--btn-bg, url("../img/btn-download.svg")) center / 100% 100% no-repeat;
  transition: filter .3s ease, transform .3s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.btn__label, .btn:not(:has(.btn__label)) { font-size: 1.8em; line-height: 1.5556; }
.btn__label { position: relative; z-index: 2; }
.btn::before { /* light sweep */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%);
  translate: -120% 0; transition: translate .8s var(--ease-out);
}
.btn::after { /* rolling ball on hover (Figma hover variant) */
  content: ""; position: absolute; z-index: 1; width: 1.6em; height: 1.6em; left: -2em; bottom: .7em;
  background: url("../img/ball.webp") center / contain no-repeat; opacity: 0;
}
.btn:hover, .btn:focus-visible { filter: var(--glow) brightness(1.12) drop-shadow(0 0 2em rgba(178,131,255,.35)); }
.btn:hover::before, .btn:focus-visible::before { translate: 120% 0; }
.btn:hover::after, .btn:focus-visible::after { animation: ball-roll 1.25s var(--ease-out) forwards; }
.btn:active { transform: scale(.97); }
@keyframes ball-roll {
  0% { left: -2em; opacity: 1; rotate: 0deg; }
  70% { opacity: 1; }
  100% { left: calc(100% + .5em); opacity: 0; rotate: 540deg; }
}
.btn--dark { --glow: drop-shadow(0 0 0 transparent); --btn-bg: url("../img/btn-dark.svg"); }
.btn--dark:hover, .btn--dark:focus-visible { --btn-bg: url("../img/btn-dark-hover.svg"); filter: drop-shadow(0 0 .6em rgba(119,46,236,.25)) drop-shadow(0 0 2.4em rgba(119,46,236,.4)); }
.btn--caps .btn__label { text-transform: uppercase; }

/* Play Now button (component BTN: Default -> Hover) */
.btn-play { display: block; font-size: var(--du); width: 26.5em; height: 6.2em; isolation: isolate; color: #fff; -webkit-tap-highlight-color: transparent; }
.btn-play__bg { position: absolute; inset: 0; background: url("../img/btn-play.svg") center / 100% 100% no-repeat; transition: opacity .5s ease; z-index: -2; }
.btn-play__bg::after { content: ""; position: absolute; inset: 0; background: url("../img/btn-play-hover.svg") center / 100% 100% no-repeat; opacity: 0; transition: opacity .55s var(--ease-out); }
.btn-play--purple .btn-play__bg::after, .btn-play:hover .btn-play__bg::after, .btn-play:focus-visible .btn-play__bg::after { opacity: 1; }
.btn-play--purple, .btn-play:hover, .btn-play:focus-visible { filter: drop-shadow(0 0 .6em rgba(119,46,236,.13)) drop-shadow(0 0 1.6em rgba(119,46,236,.36)) drop-shadow(0 0 4em rgba(119,46,236,.24)); }
.btn-play__label { position: absolute; left: 3em; top: 1.7em; font-weight: 700; font-size: 1.8em; line-height: 1.5556; left: 1.6667em; top: .9444em; white-space: nowrap; }
.btn-play__platforms { position: absolute; left: 13.9em; top: 2.3em; width: 9.5em; height: 1.6em; }
.btn-play__ball { position: absolute; inset: .3em; overflow: hidden; clip-path: polygon(2.2% 0, 97.8% 0, 100% 15%, 100% 85%, 97.8% 100%, 2.2% 100%, 0 85%, 0 15%); z-index: -1; pointer-events: none; }
.btn-play__ball::before { content: ""; position: absolute; width: 8.1em; height: 8.1em; left: -10em; top: 3em; background: url("../img/ball.webp") center / contain no-repeat; rotate: -47deg; transition: left 1.25s var(--ease-spring), rotate 1.25s var(--ease-spring); filter: drop-shadow(.1em .1em 0 #000) drop-shadow(.2em .2em 0 #000); }
.btn-play:hover .btn-play__ball::before, .btn-play:focus-visible .btn-play__ball::before { left: 24.9em; rotate: 313deg; }
.btn-play:active { transform: scale(.98); }

.btn:not(.a):not(.btn--download), .btn-play:not(.a) { position: relative; }
.site-header .btn--download { position: absolute; left: calc(116.7 * var(--du)); top: calc(3.4 * var(--du)); --bw: 18.3; --bh: 5.4; transition: top .35s ease, filter .3s ease; }
.site-header.is-scrolled .site-header__inner > .btn--download { top: calc(1.8 * var(--du)); }

/* ---------- Divider ---------- */
.divider { position: absolute; left: calc(var(--x, -1.8) * 1em); width: 147.5em; height: 6.8em; background: url("../img/divider.svg") center / 100% 100% no-repeat; pointer-events: none; z-index: 3; }
.divider--flip { scale: -1 -1; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; height: calc(68 * var(--du)); }
.site-footer__bg { width: 100%; height: 100%; object-fit: cover; }
.site-footer__logo img { width: 100%; height: 100%; }
.site-footer__logo { transition: transform .4s var(--ease-spring); }
.site-footer__logo:hover { transform: scale(1.05) rotate(-2deg); }
.socials { display: flex; gap: calc(1.2 * var(--du)); }
.socials a { display: block; width: calc(4.6 * var(--du)); height: calc(4.6 * var(--du)); transition: transform .3s var(--ease-spring), filter .3s ease; }
.socials a:hover, .socials a:focus-visible { transform: translateY(-.4em) rotate(-6deg) scale(1.08); filter: drop-shadow(0 .6em 1em rgba(119,46,236,.6)); }
.socials img { width: 100%; height: 100%; }
.footer-nav ul { display: flex; gap: calc(2.4 * var(--du)); justify-content: center; }
.footer-nav a { font-size: calc(1.6 * var(--du)); line-height: 1.625; color: var(--white-60); transition: color .2s; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: #fff; }
.footer-nav a[aria-current="page"] { font-weight: 700; }
.site-footer__copy .copy-link { color: inherit; -webkit-text-fill-color: inherit; transition: opacity .2s; }
.site-footer__copy .copy-link:hover { opacity: .8; }

/* ---------- Reveal on scroll (content is visible at rest; JS plays the entrance just before it enters) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(6,6,12,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; font-size: var(--du); }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog { position: relative; width: min(100%, 96em); scale: .94; transition: scale .4s var(--ease-spring); }
.modal.is-open .modal__dialog { scale: 1; }
.modal__close { position: absolute; right: -1em; top: -5.2em; width: 4.4em; height: 4.4em; border-radius: 50%; background: rgba(119,46,236,.25); border: 1px solid rgba(178,131,255,.5); display: grid; place-items: center; font-size: 1em; }
.modal__close::before, .modal__close::after { content: ""; position: absolute; width: 1.8em; height: 2px; background: #fff; rotate: 45deg; }
.modal__close::after { rotate: -45deg; }
.modal__media { position: relative; aspect-ratio: 16 / 9; border-radius: 1.2em; overflow: hidden; border: 1px solid rgba(178,131,255,.4); box-shadow: 0 0 6em rgba(119,46,236,.45); background: #000; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__msg { position: absolute; inset: auto 0 0 0; padding: 3em; background: linear-gradient(0deg, rgba(6,6,12,.9), transparent); text-align: center; }
.modal__msg strong { display: block; font-family: "Bangers", sans-serif; font-weight: 400; font-size: 4.4em; line-height: 1; }
.modal__msg span { font-size: 1.6em; color: rgba(255,255,255,.75); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; translate: -50% 150%; background: linear-gradient(90deg, #280C55, #4C1D98); border: 1px solid rgba(178,131,255,.6); color: #fff; padding: 14px 22px; border-radius: 10px; font-size: 15px; box-shadow: 0 10px 40px rgba(119,46,236,.45); transition: translate .45s var(--ease-spring); max-width: calc(100vw - 32px); }
.toast.is-show { translate: -50% 0; }

/* composition blocks (desktop: transparent wrappers) */
.comp-scroll, .cta-row, .stadium-bar { display: contents; }
.comp { pointer-events: none; }
.comp > *, .comp a, .comp button, .comp [role="button"], .comp li { pointer-events: auto; }
.comp > img.pc, .comp > .tx { pointer-events: none; }
.a.pc { max-width: none; }
.sec[id] { scroll-margin-top: calc(12.2 * var(--du)); }
.nav-arrow, .comp > img.nav-arrow, [role="button"] { pointer-events: auto !important; cursor: pointer; }
.m-only { display: none !important; }

/* =========================================================
   MOBILE / TABLET  (< 1024px)
   ========================================================= */



/* =========================================================
   HOME
   ========================================================= */
.s-hero { min-height: calc(93 * var(--du)); }
.hero-play > * { font-size: var(--du); }
.hero-char { transform-origin: 50% 100%; z-index: 2; filter: drop-shadow(0 1.2em 1.8em rgba(0,0,0,.45)); }
.hero-shadow { transform-origin: 50% 50%; z-index: 1; }
.hero-ball { z-index: 3; scale: 0; filter: drop-shadow(0 .6em .8em rgba(0,0,0,.5)); }
.hero-cta-play, .hero-cta-explore { z-index: 4; }
.hero-title { z-index: 2; }

.swap-in { animation: swap-in .5s var(--ease-out); }
@keyframes swap-in { from { opacity: 0; translate: 0 .35em; } to { opacity: 1; translate: 0 0; } }

/* Inside Skitch */
.stat-num span { display: inline; }
.s-inside .t-white.score-n, .s-inside .score-vs { pointer-events: none; }

/* Game modes */
.mode-card { z-index: 1; transition: translate .5s var(--ease-out), z-index 0s; }
.mode-card__link { position: absolute; inset: 0; display: block; outline-offset: -4px; }
.mode-card__art { transition: filter .4s ease; }
.mode-card__title, .mode-card__sub { transition: translate .4s var(--ease-out), filter .4s; }
.mode-card:hover, .mode-card:focus-within { z-index: 3; }
.mode-card:hover .mode-card__art, .mode-card:focus-within .mode-card__art { filter: drop-shadow(0 0 1.2em rgba(119,46,236,.75)) drop-shadow(0 0 3.2em rgba(119,46,236,.45)) brightness(1.08); }
.mode-card:not(.is-featured):hover, .mode-card:not(.is-featured):focus-within { translate: 0 -1.6em !important; }
.mode-card.is-featured .mode-card__art { filter: drop-shadow(0 0 1em rgba(119,46,236,.55)); }
.mode-card:hover .mode-card__title { translate: 0 -.3em; }

/* Choose your player */
.choose-big { z-index: 2; }
.choose-big__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; visibility: hidden; filter: drop-shadow(0 2em 3em rgba(0,0,0,.55)); transform: translateX(5%) scale(.96); transition: opacity .3s ease, transform .46s cubic-bezier(.22,1,.36,1), visibility 0s .46s; }
.choose-big__img.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .choose-big__img, .pcard { transition: none !important; } }
.s-choose { overflow: hidden; }
.pcards { z-index: 3; }
.pcard { position: absolute; bottom: 0; left: 0; width: calc(17 * var(--du)); height: calc(22.9 * var(--du)); transform: translate3d(calc(var(--l, 0) * var(--du)),0,0); transform-origin: left bottom; transition: translate .35s var(--ease-out); font-size: var(--du); }
.pcard.is-active { width: calc(19.4 * var(--du)); height: calc(31.8 * var(--du)); }
.pcard__btn { position: absolute; inset: 0; display: block; width: 100%; height: 100%; text-align: left; }
.pcard__frame { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; background: url("../img/card-frame.svg") center / 100% 100% no-repeat; transition: filter .3s; }
.pcard.is-active .pcard__frame { background-image: url("../img/card-frame-active.svg"); }
.pcard__photo { position: absolute; left: .2em; bottom: .3em; width: 16.5em; height: 22.4em; object-fit: cover; transition: opacity .35s; }
.pcard__photo--active { left: .3em; bottom: .2em; width: 18.8em; height: 31.6em; opacity: 0; }
.pcard.is-active .pcard__photo--active { opacity: 1; }
.pcard.is-active .pcard__photo:not(.pcard__photo--active) { opacity: 0; }
.pcard__rating { position: absolute; right: calc(1.7 * var(--du)); top: calc(1.2 * var(--du)); font-size: calc(2.8 * var(--du)); line-height: 1.07; }
.pcard.is-active .pcard__rating { right: calc(1.9 * var(--du)); top: calc(7.1 * var(--du)); }
.pcard__name { position: absolute; left: 0; right: 0; bottom: calc(4.9 * var(--du)); text-align: center; font-size: calc(2 * var(--du)); line-height: 1.05; white-space: nowrap; }
.pcard.is-active .pcard__name { bottom: calc(5.6 * var(--du)); }
.pcard__stats { position: absolute; left: 2.1em; right: 2.1em; bottom: 1.1em; display: flex; justify-content: space-between; }
.pcard.is-active .pcard__stats { left: 2.4em; right: 2.4em; bottom: 1.2em; }
.pcard__stats span { display: flex; flex-direction: column; align-items: center; width: 2.4em; }
.pcard__stats small { font-size: 1em; line-height: 1.6; color: var(--white-60); }
.pcard__stats b { font-size: 1.4em; line-height: 1.5714; font-weight: 700; }
.pcard:not(.is-active):hover .pcard__frame, .pcard__btn:focus-visible .pcard__frame { filter: drop-shadow(0 0 .8em rgba(119,46,236,.8)); }
.pcard:not(.is-active):hover { translate: 0 -.8em; }
.nav-arrow { cursor: pointer; transition: filter .25s, transform .25s var(--ease-spring); }
.nav-arrow:hover, .nav-arrow:focus-visible { filter: drop-shadow(0 0 .8em rgba(119,46,236,.9)) brightness(1.25); transform: scale(1.06); }
.nav-arrow:active { transform: scale(.94); }
.carousel-nav { z-index: 4; }

/* Gameplay */
.video-hit { z-index: 2; cursor: pointer; border-radius: 1em; transition: box-shadow .35s ease, background .35s; clip-path: polygon(2% 0, 98% 0, 100% 5%, 100% 95%, 98% 100%, 2% 100%, 0 95%, 0 5%); }
.video-hit:hover, .video-hit:focus-visible { background: radial-gradient(60% 60% at 50% 50%, rgba(119,46,236,.18), transparent 70%); }
.video-time { z-index: 3; pointer-events: none; animation: pulse 2.4s ease-in-out infinite; }
.video-hit:hover ~ .video-time { animation-duration: .9s; }
@keyframes pulse { 0%,100% { scale: 1; opacity: .92; } 50% { scale: 1.06; opacity: 1; } }

/* Stadiums */
.stadium-big { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 36%, #000 67%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 36%, #000 67%, transparent 100%); }
.stadium-big img { position: absolute; left: 0; top: 0; width: 100%; height: calc(70.4 * var(--du)); object-fit: cover; opacity: 0; transition: opacity .7s ease, scale 1.2s var(--ease-out); scale: 1.04; }
.stadium-big img.is-active { opacity: 1; scale: 1; }
.stadium-name { z-index: 5; }
.stadium-thumbs { display: flex; align-items: flex-end; gap: calc(1.2 * var(--du)); z-index: 3; }
.stadium-thumbs li { flex: 0 0 auto; }
.stadium-thumb { display: block; position: relative; width: calc(17.1 * var(--du)); height: calc(11.9 * var(--du)); padding: 0; transition: width .45s var(--ease-out), height .45s var(--ease-out), filter .3s, translate .3s var(--ease-out); }
.stadium-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stadium-thumb.is-active { width: calc(29.9 * var(--du)); height: calc(16.8 * var(--du)); padding: 1px; background: linear-gradient(120deg, #B283FF 9%, #772EEC 70%, #B283FF 91%); box-shadow: 0 0 calc(1.2 * var(--du)) rgba(119,46,236,.6), 0 0 calc(4 * var(--du)) rgba(119,46,236,.35); }
.stadium-thumb:not(.is-active):hover { translate: 0 calc(-.6 * var(--du)); filter: brightness(1.15) drop-shadow(0 0 .8em rgba(119,46,236,.7)); }

/* Special abilities */
.ability-art { z-index: 1; }
.ability-art__item { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.ability-art__item.is-active { opacity: 1; }
.ability-art__item img { width: 100%; height: 100%; }
.ability-art__bg { position: absolute; inset: 0; }
.ability-art__icon { position: absolute; left: 50%; top: 50%; width: 44% !important; height: auto !important; translate: -50% -50%; filter: drop-shadow(0 2em 2.4em rgba(0,0,0,.55)); }
.ability-art__item { transform: scale(.96); transition: opacity .45s ease, transform .6s cubic-bezier(.34,1.56,.64,1); }
.ability-art__item.is-active { transform: none; }
@keyframes float { 0%,100% { translate: -50% -55%; rotate: -4deg; } 50% { translate: -50% -62%; rotate: 4deg; } }
.ability-name, .ability-desc { z-index: 2; }
.ability-tile { z-index: 2; }
.ability-tile.is-center { z-index: 3; }
.ability-picker .nav-arrow { z-index: 4; }
.ability-tile button { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; transition: transform .35s var(--ease-spring), filter .3s; }
.ability-tile__frame { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s ease; pointer-events: none; }
.ability-tile__frame--c, .ability-tile.is-center .ability-tile__frame--n { opacity: 0; }
.ability-tile.is-center .ability-tile__frame--c { opacity: 1; }
.ability-tile .ability-tile__icon { position: absolute; left: var(--nx); top: var(--ny); width: var(--nw); height: var(--nh); transition: left .45s ease, top .45s ease, width .45s ease, height .45s ease; }
.ability-tile.is-center .ability-tile__icon { left: var(--cx); top: var(--cy); width: var(--cw); height: var(--ch); }
.ability-tile button:hover, .ability-tile button:focus-visible { transform: scale(1.07); filter: drop-shadow(0 0 1em rgba(119,46,236,.8)); }
.ability-tile.is-active button { filter: drop-shadow(0 0 1.2em rgba(119,46,236,.9)) brightness(1.1); }
.ability-tile__icon { pointer-events: none; }
.ability-tile__icon.pop { animation: pop .55s var(--ease-spring); }
@keyframes pop { 0% { scale: .5; opacity: .2; } 100% { scale: 1; opacity: 1; } }

/* Bundles */
.tabs { z-index: 3; }
.bcards { position: absolute; left: calc(8 * var(--du)); top: calc(35 * var(--du)); width: calc(128 * var(--du)); display: grid; grid-template-columns: repeat(4, calc(30.2 * var(--du))); gap: calc(2.5 * var(--du)) calc(2.4 * var(--du)); z-index: 2; }
.bcard { font-size: var(--du); position: relative; height: calc(36.1 * var(--du)); }
.bcard--wide { grid-column: span 2; }
.bcard[hidden] { display: none; }
.bcard__link { display: block; position: absolute; inset: 0; }
.bcard__in { position: absolute; left: -.8em; top: -.8em; width: calc(var(--bw) * 1em); height: calc(var(--bh) * 1em); transition: translate .4s var(--ease-out), filter .35s; }
.bcard__link:hover .bcard__in, .bcard__link:focus-visible .bcard__in { translate: 0 -1em; filter: drop-shadow(0 0 1.2em rgba(119,46,236,.7)) drop-shadow(0 1.8em 2.4em rgba(0,0,0,.5)); }
.bcard__ball { animation: spin 6s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.s-bundles.is-filtered .bcard--wide { grid-column: span 2; }

/* Ready */
.s-ready .btn-play { z-index: 3; }
.btn-play__hit { position: absolute; left: 35.9em; top: -4em; width: 6.6em; height: 6.6em; background: url("../img/ball.webp") center / contain no-repeat; opacity: 0; pointer-events: none; filter: drop-shadow(.1em .1em 0 #000) drop-shadow(.2em .2em 0 #000); z-index: 5; }
.btn-play.is-hit { filter: drop-shadow(0 0 .8em rgba(178,131,255,.9)) drop-shadow(0 0 2.4em rgba(119,46,236,.8)) brightness(1.2); }


/* ---------- Mobile reflow of section stages ---------- */



/* ghost numerals (10% fill + light inner stroke) */
.t-ghost { font-family: "Bangers", "Impact", sans-serif; font-weight: 400; line-height: 1; text-transform: uppercase; color: rgba(251,250,251,.1); -webkit-text-fill-color: rgba(251,250,251,.1); -webkit-text-stroke: max(1px, .012em) rgba(255,255,255,.55); }
/* generic gradient Bangers text (fill taken from the Figma paint) */
.t-grad { font-family: "Bangers", "Impact", sans-serif; font-weight: 400; line-height: 1; text-transform: uppercase; background: var(--tg); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(-.4rem .4rem .7rem rgba(0,0,0,.55)) drop-shadow(-1.2rem 1.2rem 1.4rem rgba(0,0,0,.35)); }


/* =========================================================
   CHARACTERS
   ========================================================= */
.char-art { z-index: 1; }
/* Character art and glows span neighbouring sections in the Figma compositions.
   Keep their background bands behind the entire page's foreground artwork. */
.page-characters main { isolation:isolate; }
.page-characters main .sec { isolation:auto; }
/* The added roster row reuses a non-adjacent Figma band; blend its background joins. */
.page-characters .dv [data-extra-character] > .art { mask-image:linear-gradient(transparent, #000 calc(18 * var(--du)), #000 calc(100% - 18 * var(--du)), transparent); }
.page-characters .dv .sec:has(+ [data-extra-character]) > .art { mask-image:linear-gradient(#000 calc(100% - 18 * var(--du)), transparent); }
.page-characters .dv [data-extra-character] + .sec > .art { mask-image:linear-gradient(transparent, #000 calc(18 * var(--du))); }
.char-art__img { transition: scale .6s var(--ease-out), filter .6s; transform-origin: 50% 60%; }
.char-art:hover .char-art__img { scale: 1.02; filter: drop-shadow(0 0 2.4em rgba(227,194,122,.35)); }
.roster-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s ease, translate .6s var(--ease-out); translate: 0 1.5em; }
.roster-big img.is-active { opacity: 1; translate: 0 0; }
.roster-tiles { position: static; }
.roster-tile button { position: absolute; inset: 0; width: 100%; height: 100%; background: url("../img/tile-frame.svg") center / 100% 100% no-repeat; transition: transform .3s var(--ease-spring), filter .3s; }
.roster-tile.is-active button { background-image: url("../img/tile-frame-on.svg"); filter: drop-shadow(0 0 .8em rgba(119,46,236,.8)); }
.roster-tile img { position: absolute; left: 3.1%; top: 3.1%; width: 93.8%; height: 93.8%; object-fit: cover; }
.roster-tile button:hover, .roster-tile button:focus-visible { transform: translateY(-.5em) scale(1.06); filter: drop-shadow(0 0 1em rgba(119,46,236,.9)); }


.btn--exact { display: block; }
.btn--exact .btn__t { z-index: 2; pointer-events: none; }

/* =========================================================
   ABOUT
   ========================================================= */
[hidden] { display: none !important; }
.btn--exact.jump { cursor: pointer; }
.btn-trailer:hover { filter: var(--glow) brightness(1.15); }
.float-slow { animation: float-y 7s ease-in-out infinite; }
@keyframes float-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.4em; } }
.orb-float { animation: orb 5s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes orb { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -1.2em; rotate: 8deg; } }
.inside-panels { display: contents; }
.inside-panel { pointer-events: none; }
.inside-panel button, .inside-panel [role="button"] { pointer-events: auto; }
.inside-tile { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: polygon(8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%, 0 8%); transition: box-shadow .25s, background .25s; }
.inside-tile:hover { background: rgba(178,131,255,.12); box-shadow: inset 0 0 0 2px rgba(178,131,255,.7); }
.inside-tile.is-active { box-shadow: inset 0 0 0 3px #B283FF, inset 0 0 2.4em rgba(119,46,236,.65); }
.std-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.std-view img.is-active { opacity: 1; }
.acc { display: flex; flex-direction: column; gap: calc(1.6 * var(--du)); height: auto !important; z-index: 2; }
.acc-item { position: relative; isolation: isolate; }
.acc-item::before, .acc-item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--acc-closed, url("../img/acc-closed.svg")) center / 100% 100% no-repeat; transition: opacity .35s ease; }
.acc-item::after { background-image: var(--acc-open, url("../img/acc-open.svg")); opacity: 0; }
.acc-item.is-open::after { opacity: 1; }
.acc-item.is-open::before { opacity: 0; }
.acc-head { display: flex; align-items: center; gap: calc(1.2 * var(--du)); width: 100%; min-height: calc(6.7 * var(--du)); padding: calc(.8 * var(--du)) calc(1.8 * var(--du)) calc(.8 * var(--du)) calc(.8 * var(--du)); text-align: left; }
.acc-item.is-open .acc-head { padding: calc(1.8 * var(--du)) calc(1.8 * var(--du)) 0; }
.acc-num { font-size: calc(var(--acc-num, 4.8) * var(--du)); line-height: 1.06; transition: font-size .3s; }
.acc-title { flex: 1; font-size: calc(var(--acc-title, 3.2) * var(--du)); line-height: 1.06; transition: font-size .3s; }
.acc-item.is-open .acc-title { font-size: calc(var(--acc-title-open, 3.8) * var(--du)); }
.acc-chev { width: calc(2.6 * var(--du)); height: calc(1.6 * var(--du)); background: var(--acc-chev, url("../img/acc-chevron.svg")) center / contain no-repeat; transition: rotate .35s var(--ease-out); rotate: var(--acc-rot-closed, 0deg); opacity: .7; }
.acc-item.is-open .acc-chev { rotate: var(--acc-rot-open, 90deg); opacity: 1; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { padding: calc(.8 * var(--du)) calc(1.8 * var(--du)) calc(1.8 * var(--du)); font-size: calc(var(--acc-text, 2.4) * var(--du)); line-height: 1.5833; color: rgba(255,255,255,.6); }
.acc-head:hover .acc-title { -webkit-text-fill-color: #fff; }
.fair-art { pointer-events: none; }
.fair-panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; translate: 1.5em 0; transition: opacity .35s ease, translate .4s var(--ease-out), visibility 0s .4s; }
.fair-panel.is-active { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.fair-original { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .fair-panel { transition: none; translate: none; } }


/* selectable tile groups */
.tg { display: contents; }
.tg-btn { position: absolute; inset: 0; width: 100%; height: 100%; background: center / 100% 100% no-repeat; transition: transform .3s var(--ease-spring), filter .3s; }
.tg-ic { pointer-events: none; }
.tg-btn:hover, .tg-btn:focus-visible { transform: translateY(-.4em) scale(1.05); filter: drop-shadow(0 0 1em rgba(119,46,236,.85)); }
.tg-item.is-active .tg-btn { filter: drop-shadow(0 0 1.1em rgba(119,46,236,.75)); }
.tg-item.is-active .tg-ic { animation: pop .5s var(--ease-spring); }

/* =========================================================
   ABILITIES
   ========================================================= */
.abil-nav { display: contents; }
.abil-label { z-index: 3; background: url("../img/abil-label.svg") center / 100% 100% no-repeat; display: grid; place-items: center; transition: left .5s var(--ease-out), top .5s var(--ease-out); pointer-events: none; }
.abil-label span { font-size: calc(2.4 * var(--du)); line-height: 1.1; white-space: nowrap; }
.abil-ball { z-index: 4; animation: spin 4s linear infinite; pointer-events: none; transition: left .5s var(--ease-out); }
.gadget-big { animation: float-y 6s ease-in-out infinite; }
.gadget-row, .custom-items, .custom-skins { display: contents; }
.tg-gadget .tg-item[hidden] { display: none !important; }
/* Energy core scroll scene */
.s-energy .energy-scene { display: contents; }
.ec-l { z-index: 2; transform-origin: 50% 50%; will-change: opacity, translate, scale; pointer-events: none; }
.ec-s8 { z-index: 3; }
.ec-text { z-index: 3; transform-origin: 50% 50%; }
@media (min-width: 1024px) {
  .s-energy.is-scrolly { height: calc(var(--sh) * var(--du) + 200vh); }
  .s-energy.is-scrolly > .stage { position: sticky; top: max(0px, calc(50vh - var(--sh) * var(--du) / 2)); }
  .s-energy.is-scrolly > .art { position: sticky; top: max(0px, calc(50vh - var(--sh) * var(--du) / 2)); margin-bottom: calc(var(--sh) * var(--du) * -1); height: calc(var(--sh) * var(--du)); left: auto; translate: none; margin-left: auto; margin-right: auto; }
}
.arena-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.arena-big img.is-active { opacity: 1; }
.arena-big { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.arena-sel { z-index: 2; }
.arena-sel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s; }
.arena-sel img.is-active { opacity: 1; }
.arena-thumbs { display: contents; }
.arena-thumb { position:absolute; inset:0; width:100%; height:100%; transform-origin:center; transition:transform .3s var(--ease-spring),filter .3s; }
.arena-thumb img { width: 100%; height: 100%; object-fit: cover; }
.arena-thumbs > li:has(.arena-thumb:hover), .arena-thumbs > li:has(.arena-thumb:focus-visible) { z-index:3; }
.arena-thumb:hover, .arena-thumb:focus-visible { transform:scale(1.42); filter:brightness(1.08) drop-shadow(0 0 .8em rgba(119,46,236,.8)); }
.arena-thumbs:has(.arena-thumb:hover) .arena-thumb:focus-visible:not(:hover) { transform:none; filter:none; }
.vs-pulse { animation: vs 2.6s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes vs { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
.lvl-cards { display: contents; }
.lvl-card > button { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .4s var(--ease-out), filter .4s; }
.lvl-card > button:hover, .lvl-card > button:focus-visible { transform: translateY(-1.2em); }
.lvl-card.is-active > button { filter: drop-shadow(0 0 1.6em rgba(227,194,122,.55)); }
.lvl-card .tx { pointer-events: none; }
.custom-center img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; transition: opacity .4s ease, translate .5s var(--ease-spring); translate: 0 2em; }
.custom-center img.is-active { opacity: 1; translate: 0 0; }
.custom-center { z-index: 2; pointer-events: none; }
.custom-center__character { position: absolute; left: 50%; bottom: 5.0766%; width: 68.6275%; height: 93.7739%; transform: translateX(-50%); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.custom-center__character.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.custom-character-art { display: block; width: 100%; height: 100%; }
.tg-skins .custom-skin-icon { position: absolute; inset: 3%; width: 94%; height: 94%; object-fit: cover; object-position: center; }
@media (prefers-reduced-motion: reduce) { .custom-center__character { transition: none; } }
.custom-item-label { pointer-events: none; }


/* =========================================================
   CONTACT
   ========================================================= */
.lets-talk { z-index: 1; }
.sitter { z-index: 2; transform-origin: 50% 100%; animation: sway 5s ease-in-out infinite; }
.sitter--2 { animation-delay: -1.6s; } .sitter--3 { animation-delay: -3.1s; }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: -1.5deg; } }
.contact-card { z-index: 2; display: block; cursor: pointer; transition: translate .35s var(--ease-out), filter .35s; text-align: left; }
.contact-card__bg { position: absolute; left: calc(-2.4 * var(--du)); top: calc(-2.4 * var(--du)); width: calc(100% + 4.8 * var(--du)); height: calc(100% + 4.8 * var(--du)); max-width: none; pointer-events: none; }
.contact-card .tx { pointer-events: none; }
.contact-card:not(:disabled):hover, .contact-card:focus-visible { translate: 0 -1em; filter: drop-shadow(0 0 1.4em rgba(119,46,236,.7)); }
.contact-card:disabled { cursor: default; }
.contact-card.is-copied { filter: drop-shadow(0 0 1.6em rgba(110,231,183,.7)); }
.contact-form { display: contents; }
.field { z-index: 2; background: url("../img/field.svg") center / 100% 100% no-repeat; transition: filter .25s; }
.field--textarea { background-image: url("../img/field-tall.svg"); }
.field:focus-within { background-image: url("../img/field-on.svg"); filter: drop-shadow(0 0 1em rgba(119,46,236,.45)); }
.field--textarea:focus-within { background-image: url("../img/field-tall-on.svg"); }
.field.is-invalid { filter: drop-shadow(0 0 .6em rgba(255,92,92,.9)); }
.field input, .field select, .field textarea { position: absolute; left: calc(1.2 * var(--du)); right: calc(1.2 * var(--du)); top: calc(3 * var(--du)); bottom: calc(.8 * var(--du)); width: auto; background: transparent; border: 0; outline: 0; color: #fff; font: 400 calc(1.4 * var(--du)) / 1.57 "Clash Display", sans-serif; padding: 0; resize: none; -webkit-appearance: none; appearance: none; }
.field textarea { top: calc(3.6 * var(--du)); }
.field select { cursor: pointer; padding-right: 3em; }
.field select option { background: #171727; color: #fff; }
.field select:invalid { color: rgba(255,255,255,.4); }
.field ::placeholder { color: rgba(255,255,255,.4); }
.field__chev { position: absolute; right: calc(1.4 * var(--du)); top: calc(4 * var(--du)); width: calc(1.8 * var(--du)); height: calc(1.1 * var(--du)); background: url("../img/field-chev.svg") center / contain no-repeat; rotate: 90deg; pointer-events: none; }
.field__label { pointer-events: none; }
.form-status { font-size: calc(1.6 * var(--du)); color: #6EE7B7; white-space: nowrap; }
.acc-faq { --acc-rot-open: -90deg; --acc-rot-closed: 90deg; }


/* =========================================================
   TERMS
   ========================================================= */
.terms-article { height: auto; display: flex; flex-direction: column; gap: calc(2.4 * var(--du)); z-index: 2; }
.terms-block h2 { font-size: calc(3.8 * var(--du)); line-height: 1.05; margin-bottom: calc(1.2 * var(--du)); }
.terms-block p, .terms-block li { font-size: calc(1.8 * var(--du)); line-height: 1.5556; color: #fff; }
.terms-block p + p, .terms-block ul + p, .terms-block p + ul { margin-top: calc(2.8 * var(--du)); }
.terms-block ul { padding-left: calc(2.8 * var(--du)); list-style: disc; }
.terms-block li::marker { color: rgba(255,255,255,.8); }


/* =========================================================
   SINGLE CHARACTER
   ========================================================= */
.char-hero-img { z-index: 2; animation: float-y 6s ease-in-out infinite; transform-origin: 50% 100%; }
.gal-bg img, .gal-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease, scale .8s var(--ease-out); scale: 1.04; }
.gal-bg img.is-active, .gal-main img.is-active { opacity: 1; scale: 1; }
/* Echo uses raw gallery art; restore the Figma backdrop's 12% fill and alpha mask. */
.gal-bg--echo {
  opacity: .12;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, transparent 100%);
}
.gal-main { z-index: 2; overflow: hidden; cursor: grab; }
.gal-main, .gal-thumb { touch-action: pan-y; user-select: none; }
.gal-main:active { cursor: grabbing; }
.gal-thumbs { display: contents; }
.gal-thumb { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .3s var(--ease-spring), filter .3s; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb:hover, .gal-thumb:focus-visible { transform: translateY(-.6em); filter: brightness(1.15) drop-shadow(0 0 1em rgba(119,46,236,.8)); }
.bcards--row { position: absolute; left: calc(8 * var(--du)); top: calc(30.7 * var(--du)); grid-template-columns: repeat(4, calc(30.2 * var(--du))); }
.rest-center { z-index: 2; pointer-events: none; }
.rest-center img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s ease, translate .6s var(--ease-spring); translate: 0 2em; }
.rest-center img.is-active { opacity: 1; translate: 0 0; }
.rest-tiles { display: contents; }

.t-strong { font-weight: 600; font-size: 1.1em; }
.grp { z-index: 2; }
.grp .tx { pointer-events: none; }



.pcard__photo, .pcard__rating, .pcard__name, .pcard__stats, .pcard__frame { pointer-events: none; }
.pcard:not(.is-active) .pcard__photo--active { visibility: hidden; }
.pcard__btn { overflow: visible; }
.pcards { pointer-events: none; }
.pcard { pointer-events: auto; }
.carousel-nav { z-index: 5 !important; }

/* performance: animations only run while their section is on screen */
.sec.is-off *, .sec.is-off { animation-play-state: paused !important; }
.video-time { will-change: transform; }
.hero-char, .hero-ball, .hero-shadow, .orb-float, .float-slow, .char-hero-img, .gadget-big { will-change: transform; }


/* =========================================================
   DESKTOP (1440 artboard, >= 1024px)  /  MOBILE (360 artboard, < 1024px)
   ========================================================= */
@media (max-width: 1023.98px) { .dv { display: none !important; } }
@media (min-width: 1024px) { .mv { display: none !important; } }
.sec--m .stage, .stage--m, .m-stage { position: relative; width: calc(36 * var(--du)); margin: 0 auto; }
.sec--m .stage, .stage--m { height: calc(var(--sh) * var(--du)); overflow-x: clip; }
.sec--m .art { width: calc(36 * var(--du)); }
.sec--m .art img { object-fit: fill; }
.sec--m .a.tx { z-index: 2; }

/* mobile header (Figma 2907:4453) */
.m-header { position: relative; }
.m-header__stage { height: calc(9.6 * var(--du)); }
.m-logo img { width: 100%; height: 100%; }
.m-menu-btn { z-index: 3; }
@media (max-width: 1023.98px) {
  .site-header.is-scrolled { background: rgba(6,6,12,.96); }
  .m-header__stage, .site-header.is-scrolled .m-header__stage { display:flex; align-items:center; justify-content:space-between; width:min(100%,540px); height:80px; padding:12px 16px; }
  .site-header .m-logo { position:relative; inset:auto; width:88px; height:40px; translate:none; }
  .site-header .m-menu-btn { position:relative; inset:auto; display:grid; place-items:center; width:116px; height:46px; translate:none; }
  .site-header .m-menu-btn .btn__t { position:static; width:auto; font-size:14px; line-height:1; }
}
/* mobile menu (Figma 2907:4857) */
.m-menu { position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; }
.m-menu[hidden] { display: block !important; }
.m-menu__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s ease; }
.m-menu__stage { height: 100%; padding-top: env(safe-area-inset-top, 0px); }
.m-menu__panel { opacity: 0; transform: translateY(calc(-2 * var(--du))) scaleY(.92); transform-origin: 50% 0; transition: opacity .3s ease, transform .45s var(--ease-out); }
.m-menu__bar { opacity: 0; transition: opacity .2s ease; z-index: 3; }
.m-menu__link { opacity: 0; translate: 0 calc(1.2 * var(--du)); transition: opacity .35s ease, translate .45s var(--ease-out); transition-delay: calc(var(--i) * 45ms + 90ms); z-index: 2; font-weight: 400 !important; color: rgba(255,255,255,.6) !important; }
.m-menu__link:hover { color: #fff !important; }
.m-menu__link[aria-current="page"] { font-weight: 700 !important; color: #fff !important; }
.m-menu__dl { opacity: 0; transition: opacity .35s ease .3s; z-index: 2; }
body.menu-open { overflow: hidden; }
.menu-open .m-menu { visibility: visible; pointer-events: auto; }
.menu-open .m-menu__overlay, .menu-open .m-menu__panel, .menu-open .m-menu__bar, .menu-open .m-menu__link, .menu-open .m-menu__dl { opacity: 1; }
.menu-open .m-menu__panel { transform: none; }
.menu-open .m-menu__link { translate: 0 0; }
.menu-open .m-menu-btn { opacity: 0; }

/* mobile footer (Figma 2880:3004) */
.site-footer--m { height: auto; overflow: clip; }
.m-socials li a, .m-socials img { display: block; width: 100%; height: 100%; }
.m-socials li a { transition: transform .3s var(--ease-spring), filter .3s ease; }
.m-socials li a:hover { transform: translateY(-.3em) rotate(-6deg) scale(1.08); filter: drop-shadow(0 .4em .8em rgba(119,46,236,.6)); }
.m-fnav a { transition: color .2s; }
.m-fnav a[aria-current="page"] { font-weight: 700 !important; color: #fff !important; }

/* mobile interactive layers */
.m-hscroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; font-size: var(--du); z-index: 2; overscroll-behavior-x: contain; }
.m-hscroll::-webkit-scrollbar { display: none; }
.m-hscroll__track { position: relative; width: calc(var(--tw) * var(--du)); height: 100%; }
.m-hit { z-index: 3; background: transparent; border-radius: calc(.8 * var(--du)); -webkit-tap-highlight-color: transparent; }
.m-hit:focus-visible { outline: 2px solid var(--purple-light); }
.m-layer { z-index: 1; pointer-events: none; }
.m-layer > .m-li { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.m-layer > .m-li.is-active { opacity: 1; }
.m-layer--contain > .m-li { object-fit: contain; object-position: 50% 100%; }
.m-li--gen { display: block; }
.m-li--gen .m-li__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-li--gen .m-li__icon { position: absolute; left: 50%; top: 50%; width: 46%; translate: -50% -55%; filter: drop-shadow(0 .6em 1.2em rgba(0,0,0,.6)); }
.m-opt { display: contents; }
.m-opt > .pc { transition: transform .35s var(--ease-spring), filter .35s ease; }
.m-cards .m-opt.is-active > .pc { filter: drop-shadow(0 0 calc(1.2 * var(--du)) rgba(119,46,236,.75)); }
.m-cards .m-opt:not(.is-active):hover > .pc, .m-cards .m-opt:not(.is-active):focus-visible > .pc { transform: translateY(calc(-.6 * var(--du))); }
.m-thumb.is-active > .pc { filter: brightness(1.15) drop-shadow(0 0 calc(.8 * var(--du)) rgba(178,131,255,.8)); }
.m-sel { z-index: 2; }
.m-sel .m-li { border-radius: calc(.4 * var(--du)); }
.m-sel__frame { z-index: 1; pointer-events: none; }
[data-character-gallery] .m-thumbs { overflow-x: hidden; touch-action: pan-y; user-select: none; cursor: grab; }
[data-character-gallery] .m-thumbs:active { cursor: grabbing; }
[data-character-gallery] .m-sel { overflow: hidden; }
[data-character-gallery] .m-thumb img { object-fit: cover; }
[data-stadium-gallery] .m-thumbs { overflow: clip; touch-action: pan-y; user-select: none; cursor: grab; }
[data-stadium-gallery] .m-thumbs .m-hscroll__track { transform: translateX(calc(-1 * var(--start) * var(--du))); }
[data-stadium-gallery] .m-thumbs:active { cursor: grabbing; }
[data-stadium-gallery] .m-thumb img { object-fit: cover; }
[data-stadium-gallery] .m-layer > .m-li { visibility: hidden; transition: none; }
[data-stadium-gallery] .m-layer > .m-li.is-active { visibility: visible; }
.m-hit--tile { border-radius: calc(1 * var(--du)); }
.m-hit--tile.is-active { box-shadow: 0 0 0 2px rgba(178,131,255,.0); }
.m-veil { z-index: 3; background: rgba(6,6,12,0); transition: background .35s ease; border-radius: calc(.6 * var(--du)); }
.m-veil.is-dim { background: rgba(6,6,12,.72); }
.m-tabs { z-index: 4; }
.sec--m [data-prev], .sec--m [data-next] { z-index: 4; }
/* mobile accordion on exact shapes */
.m-acc { z-index: 3; font-size: var(--du); }
.m-acc__item { position: absolute; left: 0; width: 100%; top: calc(var(--top) * var(--du)); height: calc(var(--h) * var(--du)); transition: top .45s var(--ease-out), height .45s var(--ease-out); }
.m-acc__bg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s ease; }
.m-acc__bg--open { opacity: 0; }
.m-acc__item.is-open .m-acc__bg--open { opacity: 1; }
.m-acc__item.is-open .m-acc__bg--closed { opacity: 0; }
.m-acc__head { position: absolute; inset: 0; width: 100%; height: calc(6.7 * var(--du)); text-align: left; -webkit-tap-highlight-color: transparent; }
.m-acc__item.is-open .m-acc__head { height: calc(7 * var(--du)); cursor: default; }
.m-acc__o, .m-acc__c, .m-acc__chev { transition: opacity .3s ease; }
.m-acc__o, .m-acc__chev { opacity: 0; }
.m-acc__item.is-open .m-acc__o, .m-acc__item.is-open .m-acc__chev { opacity: 1; }
.m-acc__item.is-open .m-acc__c { opacity: 0; }
.m-acc__panel { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.m-acc__item.is-open .m-acc__panel { opacity: 1; transition-delay: .15s; }
/* mobile contact form: real controls over the designed fields */
.m-form { display: contents; }
.m-fieldwrap { display: contents; }
.m-form .m-field { left:calc(var(--x) * var(--du)); top:calc(var(--y) * var(--du)); width:calc(var(--w) * var(--du)); height:calc(var(--h) * var(--du)); right:auto; bottom:auto; z-index:3; background:transparent; border:0; outline:0; color:#fff; font-family:"Clash Display",system-ui,sans-serif; font-size:calc(var(--fs) * var(--du)); padding:calc(.9 * var(--du)) calc(1 * var(--du)) 0 calc(var(--pl) * var(--du)); line-height:1.4; -webkit-appearance:none; appearance:none; border-radius:calc(.6 * var(--du)); }
.m-field::placeholder { color: rgba(255,255,255,.5); opacity: 1; }
.m-field:focus { box-shadow: 0 0 0 1px rgba(178,131,255,.8), 0 0 calc(1.6 * var(--du)) rgba(119,46,236,.45); }
select.m-field { color: rgba(255,255,255,.5); cursor: pointer; }
select.m-field:valid { color: #fff; }
select.m-field option { color: #000; }
.m-form .m-field--area { resize: none; padding-top: calc(1.2 * var(--du)); }
.m-fieldwrap.is-invalid .m-field { box-shadow: 0 0 0 1px #ff6b8a, 0 0 calc(1.2 * var(--du)) rgba(255,80,120,.4); }
/* Mobile controls must remain usable on narrow screens and in landscape. */
@media (max-width: 1023.98px) {
  .sec--m { scroll-margin-top: calc(88px + env(safe-area-inset-top, 0px)); }
  body.menu-open .site-header { translate: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .m-menu { height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  .m-menu__stage { min-height: calc(57 * var(--du)); }
  .m-menu__overlay { position: fixed; }
  .m-menu__link { min-height: 44px; display: flex; align-items: center; }
  .m-form .m-field { font-size: max(16px, calc(var(--fs) * var(--du))); scroll-margin-block: calc(9 * var(--du)); }
  .m-faq .m-acc__o .tx:last-child { top: calc(1.4 * var(--du)); font-size: calc(2.1 * var(--du)); line-height: 1.15; white-space: normal; }
  .m-faq .m-acc__panel p { width: calc(29.2 * var(--du)); }
  .m-fair .m-acc__o .tx:last-child { top: calc(2.2 * var(--du)); font-size: calc(2.1 * var(--du)); line-height: 1.2; }
  .m-fair-art { overflow: hidden; }
  .m-fair-art .fair-original { position: absolute; left: 12.5%; width: auto; max-width: none; height: 100%; }
  .m-custom .custom-center__character { width: 86%; height: 100%; bottom: 0; }
  .m-custom .custom-category-icon { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
  .m-custom .tg-ic--item { object-fit: contain; padding: 8%; }
  .m-custom .custom-center img.custom-center__item { left: 15%; width: 70%; bottom: 12%; }
}
@media (max-width: 1023.98px) and (max-height: 500px) and (orientation: landscape) {
  .m-menu { padding: 12px; }
  .m-menu__stage { width: min(100%, 560px); min-height: 0; height: auto; padding: 12px; border: 1px solid var(--purple-light); border-radius: 8px; background: linear-gradient(145deg, #22103c, #0c0b16); }
  .m-menu__panel { display: none; }
  .m-menu__bar, .m-menu__dl { position: relative; inset: auto; display: grid; place-items: center; height: 48px; width: 100%; }
  .m-menu__bar .btn__t, .m-menu__dl .btn__t { position: static; width: auto; font-size: 18px; line-height: 1.3; }
  .m-menu__nav { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 12px; }
  .m-menu__link { position: static; width: auto; justify-content: center; font-size: 16px !important; line-height: 1.3 !important; text-align: center; white-space: normal; }
  .m-menu__dl { width: 240px; margin-inline: auto; }
}
.m-card-hit { border-radius: calc(1.4 * var(--du)); }
.m-card-hit:active { background: rgba(178,131,255,.08); }
.m-panel { z-index: 3; opacity: 0; pointer-events: none; transition: opacity .45s ease; overflow: hidden; border-radius: calc(.8 * var(--du)); }
.m-panel.is-active { opacity: 1; pointer-events: auto; }
.m-panel > img:not(.roster-grid-logo) { width: 100%; height: 100%; object-fit: cover; }

/* Inside Skitch: player cards toggled by the notification icons (X closes, ! opens) */
.inside-grp { position: absolute; inset: 0; pointer-events: none; transition: opacity .35s ease, transform .5s cubic-bezier(.2,.9,.3,1.25), visibility 0s; }
.inside-grp:not(.is-open) { opacity: 0; visibility: hidden; transform: scale(.85); transition: opacity .25s ease, transform .3s ease, visibility 0s .3s; }
.inside-ic { background: none; border: 0; padding: 0; cursor: pointer; z-index: 3; transition: transform .2s; }
.inside-ic:hover, .inside-ic:focus-visible { transform: scale(1.15); }
.inside-ic:focus-visible { outline: 2px solid #B283FF; outline-offset: 2px; }
.inside-ic__i { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .2s, transform .3s; }
.inside-ic .inside-ic__i--x { opacity: 0; transform: rotate(-90deg); }
.inside-ic.is-open .inside-ic__i--x { opacity: 1; transform: none; }
.inside-ic.is-open .inside-ic__i--b { opacity: 0; transform: rotate(90deg); }
.inside-ic:not(.is-open) .inside-ic__i--b { animation: inside-ping 1.8s ease-in-out infinite; }
@keyframes inside-ping { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .inside-ic__i--b { animation: none !important; } }

/* Gradient-filled Bangers text (background-clip:text): italic overhangs and tall glyphs reach outside the line box,
   where no background is painted — that showed as cut digit tops and a hollow outline after the last letter.
   Pad the painted box and pull it back with negative margins so the text stays exactly where it was. */
.t-purple, .t-white, .t-silver, .t-grad { padding: .22em .32em; margin: -.22em -.32em; }
.a.tx.t-purple, .a.tx.t-white, .a.tx.t-silver, .a.tx.t-grad { width: calc(var(--w) * var(--du) + .64em); transform-origin: .32em .22em; }
/* swapped texts (selected stadium / arena / ability names) size to their content instead of the designed box */
.a.tx.tx--fit { width: max-content; max-width: none; }
.a.tx.tx--fitc { left: calc((var(--x) + var(--w) / 2) * var(--du)); translate: -50% 0; }
.a.tx.tx--fitr { left: auto; right: calc(100% - (var(--x) + var(--w)) * var(--du)); }
.a.tx.tx--fitc { margin-left: 0; margin-right: 0; }
/* social icons: the svg carries the full soft glow (120px margin around a 46px icon) so it never ends in a square edge */
.socials a, .m-socials li a { position: relative; }
.socials img, .m-socials img { position: absolute; left: -260.87%; top: -260.87%; width: 621.74% !important; height: 621.74% !important; max-width: none; pointer-events: none; }
.s-char-row .btn { z-index: 3; }
/* logos: svg with a wide margin so the soft glow fades out (no square edge); the link keeps the designed box */
.site-logo, .site-footer__logo, .m-logo { display: block; }
.site-logo { position: absolute; }
img.glow-img { position: absolute; left: var(--gl); top: var(--gt); width: var(--gw) !important; height: var(--gh) !important; max-width: none; pointer-events: none; }
.site-logo { height: 9.2em; }
.s-stadiums .stage > .tx { z-index: 4; }
.terms-block h2.t-white { margin: -.22em -.32em calc(1.2 * var(--du) - .22em); }
/* names with a width budget: start at the designed left edge and shrink (--k) when longer than the space */
.a.tx.tx--fitl { text-align: left !important; }
.a.tx.tx--fit.fs { font-size: calc(var(--fs) * var(--du) * var(--k, 1)); }

/* Abilities hero strip: tiles re-flow when the big slot moves */
.tg-hero .tg-item { transition: left .45s cubic-bezier(.22,1,.36,1), top .45s cubic-bezier(.22,1,.36,1), width .45s cubic-bezier(.22,1,.36,1), height .45s cubic-bezier(.22,1,.36,1); }
.tg-hero .tg-item .tg-btn { transition: transform .3s var(--ease-spring), filter .3s, background-image 0s; }
.tg-hero .tg-item .tg-ic { position: absolute; }
.abil-ball { transition: left .45s cubic-bezier(.22,1,.36,1); }
@media (prefers-reduced-motion: reduce) { .tg-hero .tg-item { transition: none; } }

/* Chaos Power-Ups artwork: cutout + the design's two screen-blended blur copies */
.gadget-big__item { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(.92) rotate(-4deg); transition: opacity .35s ease, transform .5s ease, visibility 0s .5s; pointer-events: none; }
.gadget-big__item.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .4s ease, transform .7s cubic-bezier(.34,1.56,.64,1), visibility 0s; }
.gadget-big__item img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.gadget-big__glow1 { filter: blur(calc(1.2 * var(--du))); mix-blend-mode: screen; }
.gadget-big__glow2 { filter: blur(calc(10 * var(--du))); opacity: .49; mix-blend-mode: screen; translate: 0 calc(var(--gdy, 0) * var(--du)); }
.gadget-big--m .gadget-big__glow1 { filter: blur(calc(.48 * var(--du))); }
.gadget-big--m .gadget-big__glow2 { filter: blur(calc(4 * var(--du))); translate: none; }
.gadget-big--m { animation: none; }

/* Document-backed consumable catalog, using the existing Figma tile frames. */
.gadget-art { pointer-events: none; }
.gadget-art img { position:absolute; inset:0; width: 100%; height: 100%; object-fit: contain; }
.gadget-picker { display: flex; justify-content: flex-start; gap: calc(1.2 * var(--du)); }
.gadget-card { flex: 0 0 calc(19.3 * var(--du)); width: calc(19.3 * var(--du)); height: calc(19.3 * var(--du)); border: 0; padding: calc(.5 * var(--du)); background: url('../img/tg-gadget-f.svg') center / 100% 100% no-repeat; cursor: pointer; transition: filter .2s, transform .2s; }
.gadget-card.is-active { background-image: url('../img/tg-gadget-fa.svg'); }
.gadget-card img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.gadget-card:hover { filter: brightness(1.18); transform: translateY(calc(-.3 * var(--du))); }
.gadget-card:focus-visible { outline: 3px solid #d8c2ff; outline-offset: 3px; }
[data-gadgets] [data-f="desc"] { width: calc(120 * var(--du)); white-space: normal !important; max-width: none; line-height: 1.4; }
.sec--m[data-gadgets] [data-f="desc"] { width: calc(32 * var(--du)); font-size: calc(1.4 * var(--du)); line-height: 1.45; }
.sec--m[data-gadgets] .gadget-tabs { translate: 0 calc(1.6 * var(--du)); }
.gadget-picker--mobile { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; padding: 0 calc(2.2 * var(--du)); gap: calc(1 * var(--du)); scrollbar-width: thin; scrollbar-color: #8654cf transparent; overscroll-behavior-x: contain; }
.gadget-picker--mobile .gadget-card { flex-basis: calc(14.5 * var(--du)); width: calc(14.5 * var(--du)); height: calc(14.5 * var(--du)); }
@media (prefers-reduced-motion: reduce) { .gadget-card { transition: none; } }

/* Shared Nitro arena, with transparent foreground gadgets extending beyond the Figma frame. */
.home-gadget-art { z-index:1; }
.home-gadget-art::before { content:""; position:absolute; inset:0; background:url('../img/ability-shared-background.png') center/cover; filter:blur(calc(.3 * var(--du))); mask:url('../img/ability-mask.svg') center/100% 100% no-repeat; }
.sec--m .home-gadget-art::before { filter:blur(calc(.1 * var(--du))); }
.home-gadget-art img { position:absolute; width:var(--item-w); height:var(--item-h); left:var(--item-x); top:var(--item-y); max-width:none; filter:drop-shadow(0 calc(1.2 * var(--du)) calc(1.8 * var(--du)) #06060c80); }
.home-gadget-tile-icon { position:absolute; inset:8%; width:84%; height:84%; object-fit:contain; pointer-events:none; }
[data-home-gadgets] .ability-desc { width:calc(77 * var(--du)); white-space:normal !important; max-width:none; }
.home-gadget-mobile-nav { display:flex; align-items:center; justify-content:space-between; font-family:Bangers,sans-serif; font-size:calc(2 * var(--du)); color:#b283ff; }
.home-gadget-mobile-nav button { width:calc(4.4 * var(--du)); height:calc(4.4 * var(--du)); }
.home-gadget-mobile-nav button img { width:100%; height:100%; }
.sec--m[data-home-gadgets] [data-f="desc"] { width:calc(30 * var(--du)); white-space:normal !important; }

/* Make It Yours: centre piece per category */
.custom-center img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.custom-center img.custom-center__item { inset: auto; left: 30%; bottom: 24%; width: 40%; height: auto; opacity: 0; transform: translateY(2em) scale(.8); transition: opacity .35s ease, transform .55s cubic-bezier(.34,1.56,.64,1), filter .35s ease; filter: none; }
.custom-center img.custom-center__item.is-active { opacity: 1; transform: none; animation: float-y 4s ease-in-out .6s infinite; }
.tg-skins .tg-ic.tg-ic--item { object-fit: contain; transition: filter .3s ease; }

/* Character names retain the Figma slots; only long copy scales to fit. */
.character-clean-art { object-fit:contain; pointer-events:none; max-width:none; }
.character-source-art { pointer-events:none; }
.s-char-play .btn, .s-m-character-3 .btn { z-index:3; }
.a.tx.tx--static { font-size:calc(var(--fs) * var(--du) * var(--k,1)); }
@media(max-width:1023.98px) {
 .s-m-character-1 h1.tx--static { left:50%; translate:-50% 0; margin-left:0; }
}

/* Echo artwork v2 — preserve the supplied silhouettes and original frame layers. */
.echo-art { object-fit:contain; }
.echo-art--story-fallback { -webkit-mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 85%,transparent); mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 85%,transparent); }
.echo-art--m-story-fallback { -webkit-mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 83%,transparent); mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 83%,transparent); }
.echo-feature-scene { z-index:1; pointer-events:none; }
.echo-feature-character { object-fit:contain; object-position:center bottom; z-index:2; }
[data-extra-character] .btn { z-index:3; }

/* Supplied character portraits, shared by the three requested roster views. */
.roster-choices { display:contents; list-style:none; margin:0; padding:0; }
.roster-choice-slot { z-index:4; }
.roster-choice { display:block; position:absolute; inset:0; width:100%; height:100%; padding:0; border:0; background:url('../img/tile-frame.svg') center/100% 100% no-repeat; cursor:pointer; transition:filter .2s ease,transform .2s ease; }
.roster-choice.is-active { background-image:url('../img/tile-frame-on.svg'); filter:drop-shadow(0 0 .8em #772eec80); }
.roster-choice:hover { transform:translateY(-.2em); }
.roster-choice:focus-visible { outline:2px solid #b283ff; outline-offset:3px; }
.roster-choice .roster-crop { display:block; position:absolute; inset:4%; width:92%; height:92%; overflow:hidden; object-fit:contain; pointer-events:none; clip-path:polygon(5% 0,100% 0,100% 95%,95% 100%,0 100%,0 5%); }
.roster-figures { z-index:2; pointer-events:none; }
.roster-figure { display:none; position:absolute; inset:0; }
.roster-figure.is-active { display:block; }
.roster-figure > .roster-crop { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; overflow:hidden; }
.roster-figure--cutout { -webkit-mask-image:linear-gradient(#000 94%,transparent); mask-image:linear-gradient(#000 94%,transparent); }
.roster-crop--bust { -webkit-mask-image:linear-gradient(#000 68%,transparent 100%); mask-image:linear-gradient(#000 68%,transparent 100%); }
[data-roster-link][aria-disabled="true"] { cursor:default; }
.roster-grid-logo { pointer-events:none; }
.roster-mobile-panel > .roster-grid-logo { object-fit:contain; }
.roster-mobile-panel { overflow:visible; }

/* Phone scenes keep the full artwork within the viewport. */
.m-hero-stadium { object-fit:cover; object-position:center; opacity:.72; pointer-events:none; z-index:0; -webkit-mask-image:linear-gradient(transparent,#000 20%,#000 72%,transparent); mask-image:linear-gradient(transparent,#000 20%,#000 72%,transparent); }
.m-energy { height:240svh; min-height:1100px; overflow:visible; }
.m-energy > .art { height:100%; }
.m-energy__stage { position:sticky; top:calc(88px + env(safe-area-inset-top,0px)); display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; gap:8px; width:min(100%,540px); height:calc(100svh - 104px - env(safe-area-inset-top,0px)); min-height:390px; max-height:760px; margin-inline:auto; padding:8px 16px 16px; text-align:center; }
.m-energy__stage h2 { font-size:clamp(40px,12vw,64px); line-height:1.05; }
.m-energy__tagline { font-size:clamp(18px,5vw,25px); line-height:1.15; }
.m-energy__scene { position:relative; min-height:0; width:100%; max-width:400px; max-height:420px; align-self:center; height:100%; justify-self:center; }
.m-energy__phase { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; transform-origin:center; will-change:opacity,rotate; }
.m-energy__phase:first-child { opacity:1; }
.m-energy__description { max-width:360px; justify-self:center; font-size:14px; line-height:1.55; }
@media (prefers-reduced-motion:reduce), (max-height:500px) and (orientation:landscape) {
  .m-energy { height:auto; min-height:0; }
  .m-energy__stage { position:relative; top:auto; height:auto; min-height:0; padding-block:28px; }
  .m-energy__scene { height:300px; }
}

/* Detail-page roster: swap the environment with the foreground selection. */
.roster-backgrounds { z-index:0; pointer-events:none; overflow:hidden; -webkit-mask-image:radial-gradient(ellipse at 50% 42%,#000 25%,transparent 72%); mask-image:radial-gradient(ellipse at 50% 42%,#000 25%,transparent 72%); }
.roster-background { display:none; position:absolute; inset:0; background:radial-gradient(ellipse at 46% 38%,var(--roster-primary),transparent 65%),radial-gradient(ellipse at 65% 68%,var(--roster-secondary),transparent 60%); opacity:.65; }
.roster-background.is-active { display:block; }
.roster-background__scene { width:100%; height:100%; object-fit:cover; object-position:center; opacity:.6; }
.s-char-rest .tx, .s-char-rest [data-roster-link], .s-m-character-6 .tx, .s-m-character-6 [data-roster-link] { z-index:3; }
.s-char-rest .roster-figures--rest { -webkit-mask-image:linear-gradient(#000 70%,transparent 89%); mask-image:linear-gradient(#000 70%,transparent 89%); }

/* Echo feature-foot placement: upright foreground follows the inner frame edge. */
.echo-feature-character-clip { z-index:2; pointer-events:none; }
.echo-feature-character-clip > .echo-feature-character { display:block; width:100%; height:100%; max-width:none; }
