/* ICE RIOT — marketing site. Plain CSS, no build step. */

@font-face {
  font-family: "Anton";
  src: url("../fonts/Anton-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow SC";
  src: url("../fonts/BarlowSemiCondensed-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #050816;
  --navy: #0a1230;
  --navy-2: #101b44;
  --line: rgba(160, 210, 255, 0.14);
  --ice: #eaf6ff;
  --ice-2: #b9e4ff;
  --ice-blue: #3ab8ff;
  --ice-deep: #1a7fe0;
  --fire: #ff5a1f;
  --fire-2: #ff8a1a;
  --gold: #ffc93c;
  --red: #e3193b;
  --neon: #ff2bd6;
  --text: #dbe8ff;
  --muted: #8fa3c8;
  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: "Barlow SC", "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 14px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(16px, 1.05vw + 10px, 19px);
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ice-2); }
a:hover { color: #fff; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--gold);
  color: #111;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- shared type ---------- */

.display {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 6px 14px 6px 12px;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

.section {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
  transform: skewX(-6deg);
  transform-origin: left bottom;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.section-head.center .section-title { transform-origin: center bottom; }
.section-title .hot,
.section-title .cold {
  text-shadow: none;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35));
  padding-right: 0.06em;
}
.section-title .hot {
  background: linear-gradient(180deg, #ffe08a 0%, var(--fire-2) 45%, var(--fire) 75%, #e5361a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title .cold {
  background: linear-gradient(180deg, #fff 0%, var(--ice-2) 45%, var(--ice-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw + 0.6rem, 1.3rem);
  max-width: 64ch;
}
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */

.btn {
  --h: 64px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--h);
  padding: 0 30px;
  border: 0;
  border-radius: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.2vw + 0.7rem, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: transform 0.18s var(--ease-back), filter 0.18s;
  isolation: isolate;
  white-space: nowrap;
}
.btn svg { width: 26px; height: 26px; flex: none; }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible { outline: none; filter: drop-shadow(0 0 0 var(--gold)) drop-shadow(0 0 8px var(--gold)); }

.btn-fire {
  color: #fff;
  background: linear-gradient(180deg, #ffb13d 0%, var(--fire) 55%, #d9261a 100%);
  text-shadow: 0 2px 0 rgba(120, 20, 0, 0.6);
}
.btn-fire::after {
  /* sheen sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 3.6s ease-in-out infinite 1.2s;
  z-index: -1;
}
.btn-ice {
  color: #06203a;
  background: linear-gradient(180deg, #ffffff 0%, var(--ice-2) 55%, #7fc8ff 100%);
}
.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 2px rgba(185, 228, 255, 0.5);
}
.btn-sm { --h: 44px; padding: 0 20px; font-size: 1.05rem; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.btn-sm svg { width: 20px; height: 20px; }

@keyframes sheen {
  0%, 60% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.nav.scrolled {
  background: rgba(5, 8, 22, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.nav-logo {
  flex: none;
  display: block;
  width: 116px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.nav.scrolled .nav-logo { opacity: 1; transform: none; }
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto 0 8px;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  border-radius: 6px;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
}
.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.icon-btn svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}
.hero-bg {
  position: absolute;
  inset: -4% -4% 0;
  z-index: -3;
  background: url("../media/renders/arena_up.webp") center 30% / cover no-repeat;
  filter: saturate(1.15) brightness(0.62) contrast(1.08);
  transform: scale(1.06);
  animation: hero-drift 24s ease-in-out infinite alternate;
}
@media (max-width: 700px) {
  .hero-bg { background-image: url("../media/renders/arena_up-800.webp"); }
}
.hero::before {
  /* grade + vignette */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(10, 30, 80, 0) 0%, rgba(5, 8, 22, 0.55) 70%, rgba(5, 8, 22, 0.92) 100%),
    linear-gradient(180deg, rgba(5, 8, 22, 0.7) 0%, rgba(5, 8, 22, 0) 22%, rgba(5, 8, 22, 0) 55%, var(--night) 100%);
}
.hero-lights {
  position: absolute;
  inset: -20% -10% 20%;
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.75;
}
.hero-lights span {
  position: absolute;
  top: -10%;
  width: 46vw;
  height: 140%;
  transform-origin: 50% 0;
  filter: blur(18px);
}
.hero-lights span:nth-child(1) {
  left: 2%;
  background: conic-gradient(from 168deg at 50% 0, transparent 0deg, rgba(58, 184, 255, 0.55) 12deg, transparent 24deg);
  animation: sweep-l 9s ease-in-out infinite alternate;
}
.hero-lights span:nth-child(2) {
  right: 2%;
  background: conic-gradient(from 168deg at 50% 0, transparent 0deg, rgba(255, 43, 214, 0.42) 12deg, transparent 24deg);
  animation: sweep-r 11s ease-in-out infinite alternate;
}
.hero-lights span:nth-child(3) {
  left: 27%;
  background: conic-gradient(from 168deg at 50% 0, transparent 0deg, rgba(255, 138, 26, 0.38) 12deg, transparent 24deg);
  animation: sweep-c 13s ease-in-out infinite alternate;
}
@keyframes sweep-l { from { transform: rotate(-24deg); } to { transform: rotate(18deg); } }
@keyframes sweep-r { from { transform: rotate(22deg); } to { transform: rotate(-20deg); } }
@keyframes sweep-c { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
@keyframes hero-drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, 1%, 0); } }

#fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 84px;
  padding-bottom: 32px;
}

.hero-logo {
  position: relative;
  width: min(880px, 92vw, max(320px, calc((100svh - 540px) * 2)));
  aspect-ratio: 2 / 1;
  margin: 0 auto;
  animation: logo-slam 0.9s var(--ease-out) both 0.15s;
}
.hero-logo img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 60px rgba(58, 184, 255, 0.35));
  animation: logo-float 6s ease-in-out infinite 1.2s;
}
.hero-logo::after {
  /* glint that follows the logo's own alpha */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: url("../media/logo-800.webp") center / contain no-repeat;
  mask: url("../media/logo-800.webp") center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 48%, transparent 58%) 0 0 / 300% 100% no-repeat;
  background-position: 120% 0;
  animation: glint 5.5s ease-in-out infinite 1.4s, logo-float 6s ease-in-out infinite 1.2s;
  mix-blend-mode: overlay;
}
@keyframes logo-slam {
  0% { opacity: 0; transform: scale(1.5) rotate(-3deg); filter: blur(12px); }
  55% { opacity: 1; transform: scale(0.96) rotate(0.5deg); filter: blur(0); }
  70% { transform: scale(1.02) translate(-4px, 2px); }
  82% { transform: scale(0.995) translate(3px, -2px); }
  100% { transform: none; }
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes glint {
  0%, 55% { background-position: 120% 0; }
  80%, 100% { background-position: -20% 0; }
}

.hero-tag {
  max-width: 34ch;
  margin: clamp(4px, 1.4vw, 18px) auto 0;
  font-size: clamp(1.1rem, 1.6vw + 0.6rem, 1.6rem);
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
  animation: rise 0.8s var(--ease-out) both 0.7s;
}
.hero-tag strong { color: var(--gold); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 18px;
  margin-top: clamp(24px, 3vw, 36px);
  animation: rise 0.8s var(--ease-out) both 0.85s;
}
.hero-ctas .btn { --h: 70px; min-width: 290px; }

.cta-note {
  min-height: 1.6em;
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
  animation: rise 0.8s var(--ease-out) both 1s;
}
.gpu-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
}
.gpu-chip i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted);
}
.gpu-chip[data-state="ok"] i { background: #3dff9a; box-shadow: 0 0 10px #3dff9a; }
.gpu-chip[data-state="no"] i { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.gpu-chip button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ice-2);
  text-decoration: underline;
  cursor: pointer;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ice-2);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: rise 0.8s var(--ease-out) both 1.1s;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--fire-2);
}

/* LED ribbon board */
.ribbon {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #04060f;
  border-top: 2px solid #1d2a55;
  border-bottom: 2px solid #1d2a55;
  box-shadow: 0 0 40px rgba(255, 138, 26, 0.12), inset 0 0 18px rgba(0, 0, 0, 0.9);
}
.ribbon::after {
  /* LED dot mask */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, transparent 0.9px, rgba(4, 6, 15, 0.82) 1.3px) 0 0 / 4px 4px;
}
.ribbon-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ribbon-track span {
  flex: none;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 28px 10px 0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ribbon-track b { font-weight: 400; color: var(--gold); text-shadow: 0 0 12px rgba(255, 201, 60, 0.8); }
.ribbon-track em { font-style: normal; color: var(--ice-blue); text-shadow: 0 0 12px rgba(58, 184, 255, 0.8); }
.ribbon-track u { text-decoration: none; color: var(--fire); text-shadow: 0 0 12px rgba(255, 90, 31, 0.8); }
.ribbon-track s { text-decoration: none; color: var(--neon); text-shadow: 0 0 12px rgba(255, 43, 214, 0.8); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- jumbotron stats ---------- */

.stats {
  position: relative;
  padding: clamp(48px, 7vw, 84px) 0 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 2px;
  list-style: none;
  background: linear-gradient(90deg, #1b2a5c, #2c3f80, #1b2a5c);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.stat-grid li {
  position: relative;
  padding: 22px 12px 18px;
  text-align: center;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 0.8px, transparent 1.2px) 0 0 / 5px 5px,
    linear-gradient(180deg, #0b1129, #070b1c);
}
.stat-grid li:first-child { border-radius: 12px 0 0 12px; }
.stat-grid li:last-child { border-radius: 0 12px 12px 0; }
.stat-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 201, 60, 0.55);
  font-variant-numeric: tabular-nums;
}
.stat-grid li:nth-child(even) .stat-num { color: var(--ice-blue); text-shadow: 0 0 18px rgba(58, 184, 255, 0.6); }
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid li:first-child, .stat-grid li:last-child { border-radius: 0; }
}

/* ---------- trailer ---------- */

.trailer-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 2px #1d2a55, 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(58, 184, 255, 0.15);
}
.trailer-frame video { width: 100%; aspect-ratio: 16 / 9; }

/* ---------- features ---------- */

.features { overflow: hidden; }
.features::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(255, 90, 31, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 60%, rgba(58, 184, 255, 0.1), transparent 70%);
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.sig-card {
  --accent: var(--fire);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 300px;
  padding: 28px 28px 28px 30px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 90% at 85% 50%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    linear-gradient(160deg, #111c45 0%, #0a1130 100%);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.35);
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.sig-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 50px color-mix(in srgb, var(--accent) 22%, transparent);
}
.sig-card h3 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: #fff;
  transform: skewX(-6deg);
  transform-origin: left;
}
.sig-card h3 span { display: block; color: var(--accent); }
.sig-card p { margin: 14px 0 0; color: var(--muted); font-size: 1rem; }
.sig-card .tagline {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.sig-card.c-fire { --accent: #ff6a1f; }
.sig-card.c-ice { --accent: #3ab8ff; }
.sig-card.c-red { --accent: #ff3355; }
.sig-card.c-gold { --accent: #ffc93c; }

/* flipbook: a 6-frame render strip, stepped with transform */
.flip {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 300 / 340;
  justify-self: center;
  overflow: hidden;
  border-radius: 12px;
  background: #8a8f99;
  box-shadow: 0 0 0 3px #0a1130, 0 0 0 5px color-mix(in srgb, var(--accent, #3ab8ff) 70%, transparent), 0 16px 40px rgba(0, 0, 0, 0.5);
}
.flip img {
  width: 600%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform-origin: 0 46%;
  transform: translateX(8.3333%) scale(var(--z, 1.32)) translateX(-8.3333%);
  animation: flip-steps var(--dur, 1.1s) steps(6) infinite;
  filter: contrast(1.06) saturate(1.15);
}
.flip::after {
  /* CRT scanlines */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
}
@keyframes flip-steps {
  from { transform: translateX(8.3333%) scale(var(--z, 1.32)) translateX(-8.3333%); }
  to { transform: translateX(8.3333%) scale(var(--z, 1.32)) translateX(-108.3333%); }
}
.flip-label {
  position: absolute;
  left: 8px; bottom: 8px;
  z-index: 2;
  padding: 2px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5, 8, 22, 0.78);
  border-radius: 4px;
}
.flip-label::before { content: "● "; color: #ff3355; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* card gags */
.gag { position: absolute; pointer-events: none; z-index: 3; }
.gag-ambulance {
  top: 14px;
  left: 0;
  width: 92px;
  transform: translateX(-120px);
}
.sig-card:hover .gag-ambulance,
.sig-card:focus-within .gag-ambulance { animation: ambulance 1.8s linear both; }
@keyframes ambulance {
  to { transform: translateX(calc(100cqi + 20px)); }
}
.sig-card { container-type: inline-size; }
.gag-ambulance .siren { animation: siren 0.25s steps(2) infinite; }
@keyframes siren { 50% { fill: #3ab8ff; } }

.gag-hats { inset: 0; overflow: hidden; }
.gag-hats i {
  position: absolute;
  top: -40px;
  width: 30px;
  height: 22px;
  opacity: 0;
  background: var(--c, #ffc93c);
  border-radius: 14px 14px 3px 3px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.25);
}
.gag-hats i::after {
  content: "";
  position: absolute;
  left: -6px; right: -12px; bottom: -3px;
  height: 6px;
  border-radius: 4px;
  background: inherit;
  filter: brightness(0.8);
}
.sig-card:hover .gag-hats i,
.sig-card:focus-within .gag-hats i { animation: hat-rain var(--t, 1.6s) var(--d, 0s) ease-in both; }
@keyframes hat-rain {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 1; transform: translateY(380px) rotate(var(--r, 200deg)); }
}

.gag-flames {
  inset: auto 0 0 0;
  height: 60%;
  z-index: -1;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 18% 60% at 20% 100%, #ffb13d, transparent 70%),
    radial-gradient(ellipse 14% 80% at 45% 100%, #ff5a1f, transparent 70%),
    radial-gradient(ellipse 20% 70% at 70% 100%, #ff8a1a, transparent 70%),
    radial-gradient(ellipse 12% 50% at 90% 100%, #ffd36b, transparent 70%);
  filter: blur(8px);
  transform-origin: bottom;
  animation: flicker 0.9s ease-in-out infinite alternate;
  transition: opacity 0.4s;
}
.sig-card:hover .gag-flames { opacity: 0.8; }
@keyframes flicker {
  0% { transform: scaleY(0.9) skewX(-2deg); }
  50% { transform: scaleY(1.08) skewX(2deg); }
  100% { transform: scaleY(0.95) skewX(-1deg); }
}

.gag-meter {
  position: absolute;
  left: 30px; right: 50%;
  bottom: 22px;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.gag-meter::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, #ffc93c, #ff5a1f, #ff1f3d);
  border-radius: inherit;
  transition: width 1.4s var(--ease-out);
}
.sig-card:hover .gag-meter::after,
.sig-card:focus-within .gag-meter::after { width: 100%; animation: meter-boil 0.18s 1.3s linear infinite; }
@keyframes meter-boil { 50% { filter: brightness(1.6); } }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.f-card {
  --accent: var(--ice-blue);
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 16px;
  background: linear-gradient(170deg, #0f1940, #0a1130);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s;
}
.f-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 18px 40px rgba(0, 0, 0, 0.4);
}
.f-card .ico {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.f-card .ico svg { width: 28px; height: 28px; }
.f-card h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.01em;
}
.f-card p { margin: 10px 0 0; font-size: 0.97rem; color: var(--muted); }
.f-card.wide { grid-column: span 2; }
.f-card.a-fire { --accent: var(--fire-2); }
.f-card.a-gold { --accent: var(--gold); }
.f-card.a-neon { --accent: var(--neon); }
.f-card.a-green { --accent: #3dff9a; }
.f-card.a-red { --accent: #ff3355; }

.pips { display: flex; gap: 6px; margin-top: 14px; }
.pips i {
  flex: 1;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, #3dff9a, #ffc93c, #ff5a1f, #ff1f3d) 0 0 / 500% 100%;
}
.pips i:nth-child(2) { background-position: 25% 0; }
.pips i:nth-child(3) { background-position: 50% 0; }
.pips i:nth-child(4) { background-position: 75% 0; }
.pips i:nth-child(5) { background-position: 100% 0; }

.cam-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.cam-list li {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice-2);
  background: rgba(58, 184, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(58, 184, 255, 0.25);
}

@media (max-width: 1060px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .signature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .f-card.wide { grid-column: auto; }
  .sig-card { grid-template-columns: 1fr; padding: 24px 20px 28px; }
  .sig-card .flip { max-width: 220px; order: -1; margin-bottom: 8px; }
  .gag-meter { right: 20px; left: 20px; bottom: 12px; }
}

/* ---------- modes ---------- */

.modes { background: linear-gradient(180deg, transparent, rgba(16, 27, 68, 0.45) 30%, rgba(16, 27, 68, 0.45) 70%, transparent); }
.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mode {
  position: relative;
  padding: 26px 22px;
  border-radius: 16px;
  background: #0b1333;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.mode .num {
  position: absolute;
  right: 12px; top: -10px;
  font-family: var(--display);
  font-size: 6rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
}
.mode h3 { font-family: var(--display); font-size: 1.7rem; text-transform: uppercase; color: #fff; }
.mode .who { margin: 4px 0 10px; color: var(--gold); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.mode p { margin: 0; font-size: 0.97rem; color: var(--muted); }

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 28px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.rule-col { padding: 30px 30px 26px; }
.rule-col.arcade { background: linear-gradient(135deg, rgba(255, 90, 31, 0.18), rgba(255, 90, 31, 0.03)); }
.rule-col.pro { background: linear-gradient(225deg, rgba(58, 184, 255, 0.18), rgba(58, 184, 255, 0.03)); }
.rule-col h3 { font-family: var(--display); font-size: 2.2rem; text-transform: uppercase; color: #fff; transform: skewX(-6deg); }
.rule-col.arcade h3 span { color: var(--fire-2); }
.rule-col.pro h3 span { color: var(--ice-blue); }
.rule-col ul { margin: 14px 0 0; padding: 0; list-style: none; }
.rule-col li { position: relative; padding: 6px 0 6px 28px; color: var(--text); }
.rule-col li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.75em;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: currentColor;
  -webkit-mask: var(--mk) center / contain no-repeat;
  mask: var(--mk) center / contain no-repeat;
}
.rule-col li.yes::before { color: #3dff9a; --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E"); }
.rule-col li.no::before { color: #ff5a6e; --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E"); }
.rule-col li.no { color: var(--muted); }

@media (max-width: 1000px) { .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .mode-grid, .rules { grid-template-columns: 1fr; }
  .rule-col { padding: 24px 20px; }
}

/* ---------- research ---------- */

.research {
  position: relative;
  overflow: hidden;
}
.research::before {
  /* faint rink markings */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  -webkit-mask: radial-gradient(ellipse 60% 50% at 50% 55%, #000 30%, transparent 75%);
  mask: radial-gradient(ellipse 60% 50% at 50% 55%, #000 30%, transparent 75%);
  background:
    radial-gradient(circle at 50% 55%, transparent 159px, rgba(58, 184, 255, 0.18) 160px, rgba(58, 184, 255, 0.18) 162px, transparent 163px),
    linear-gradient(90deg, transparent calc(50% - 2px), rgba(227, 25, 59, 0.22) calc(50% - 2px), rgba(227, 25, 59, 0.22) calc(50% + 2px), transparent calc(50% + 2px));
}
.scout {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: scout;
}
.scout li {
  counter-increment: scout;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1130;
  box-shadow: inset 0 0 0 1px var(--line);
}
.scout li::before {
  content: counter(scout, decimal-leading-zero);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--gold);
  background: rgba(255, 201, 60, 0.07);
  border-right: 1px solid var(--line);
}
.scout .then, .scout .now { padding: 20px 24px; }
.scout .then { color: var(--muted); }
.scout .now { background: linear-gradient(90deg, rgba(58, 184, 255, 0.08), transparent); border-left: 1px dashed rgba(58, 184, 255, 0.3); }
.scout h4 {
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scout .then h4 { color: #8fa3c8; }
.scout .now h4 { color: var(--ice-blue); }
.scout p { margin: 0; font-size: 1rem; }
.scout .now p { color: var(--text); }
.scout li.fix .now { background: linear-gradient(90deg, rgba(61, 255, 154, 0.1), transparent); border-left-color: rgba(61, 255, 154, 0.4); }
.scout li.fix .now h4 { color: #3dff9a; }
@media (max-width: 760px) {
  .scout li { grid-template-columns: 1fr; }
  .scout li::before { justify-content: start; padding: 10px 20px; border-right: 0; border-bottom: 1px solid var(--line); font-size: 1.4rem; }
  .scout .then, .scout .now { padding: 16px 20px; }
  .scout .now { border-left: 0; border-top: 1px dashed rgba(58, 184, 255, 0.3); }
}

/* ---------- teams ---------- */

.teams { overflow: hidden; }
.rafters {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 26px);
  margin: -20px 0 clamp(40px, 5vw, 64px);
  padding: 0;
  list-style: none;
  position: relative;
}
.rafters::before {
  content: "";
  position: absolute;
  left: -50vw; right: -50vw; top: 0;
  height: 6px;
  background: linear-gradient(180deg, #2a3466, #10173a);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.rafters li {
  width: clamp(34px, 7vw, 92px);
  padding-top: 4px;
  transform-origin: 50% 0;
  animation: banner-sway 5s ease-in-out infinite alternate;
}
.rafters li:nth-child(odd) { animation-duration: 6.2s; animation-direction: alternate-reverse; }
.rafters li:nth-child(3n) { animation-duration: 4.4s; }
.rafters img { width: 100%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); }
@keyframes banner-sway { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.team {
  --c1: #333; --c2: #666;
  position: relative;
  perspective: 900px;
}
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 22px 18px 22px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(170deg, #0f1940, #0a1130);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s var(--ease-out), box-shadow 0.35s;
  outline: none;
  isolation: isolate;
}
.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--c2) 55%, transparent), transparent 60%),
    linear-gradient(160deg, var(--c1), color-mix(in srgb, var(--c1) 40%, #050816));
  opacity: 0;
  transition: opacity 0.35s;
}
.team-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--c1) 0 50%, var(--c2) 50% 100%);
}
.team-card:hover::before, .team-card:focus-visible::before, .team-card.on::before { opacity: 1; }
.team-card:hover, .team-card:focus-visible, .team-card.on {
  box-shadow: inset 0 0 0 2px var(--c2), 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 40px color-mix(in srgb, var(--c2) 35%, transparent);
}
.team-card img {
  width: 82%;
  aspect-ratio: 1;
  transform: translateZ(40px);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s var(--ease-back);
}
.team-card:hover img, .team-card:focus-visible img, .team-card.on img { transform: translateZ(60px) scale(1.08) rotate(-3deg); }
.team-city {
  margin-top: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.team-name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}
.team-id {
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--c2);
  opacity: 0.85;
}
.team-card:hover .team-city, .team-card:focus-visible .team-city, .team-card.on .team-city { color: #fff; }
.swatches { display: flex; gap: 6px; margin-top: 10px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }

.team.t-NAR { --c1: #0e8f8c; --c2: #1fd1c3; }
.team.t-INF { --c1: #b0122a; --c2: #ff7a1a; }
.team.t-YET { --c1: #2b6fae; --c2: #bfe8ff; }
.team.t-HAM { --c1: #17171b; --c2: #f2b51c; }
.team.t-BRW { --c1: #1f6b35; --c2: #e6b82e; }
.team.t-VIP { --c1: #5a1fa8; --c2: #ff2bb4; }
.team.t-GRZ { --c1: #6b4024; --c2: #ff8a1a; }
.team.t-COM { --c1: #1d46c9; --c2: #ff3341; }

@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 420px) {
  .team-card { padding: 18px 10px; }
  .team-city { font-size: 0.64rem; letter-spacing: 0.14em; }
}

/* ---------- controls ---------- */

.controls { background: linear-gradient(180deg, transparent, rgba(16, 27, 68, 0.5) 20%, rgba(16, 27, 68, 0.5) 80%, transparent); }

.ctl-table-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: #0a1130;
  box-shadow: inset 0 0 0 1px var(--line);
}
.ctl-table {
  width: 100%;
  border-collapse: collapse;
}
.ctl-table th, .ctl-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ctl-table thead th {
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.ctl-table thead th .p-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  border-radius: 4px;
  color: #fff;
  font-family: var(--display);
  letter-spacing: 0.06em;
}
.p1 { background: #e3193b; }
.p2 { background: #1a7fe0; }
.pad { background: #6a3df0; }
.ctl-table tbody th {
  font-weight: 600;
  color: #fff;
}
.ctl-table tbody th small { display: block; color: var(--muted); font-size: 0.82rem; }
.ctl-table tbody tr:last-child th, .ctl-table tbody tr:last-child td { border-bottom: 0; }
.ctl-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

kbd, .kbd {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  margin: 2px 2px;
  border-radius: 7px;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(180deg, #2a3770, #1a2350);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 0 1px #34458a;
}
.btn-pad {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  margin: 2px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1rem;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--b) 70%, #fff), var(--b) 60%, color-mix(in srgb, var(--b) 60%, #000));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.btn-pad.a { --b: #2fb84e; }
.btn-pad.b { --b: #e3293b; }
.btn-pad.x { --b: #2a72e6; }
.btn-pad.y { --b: #e6b21f; }
.btn-pad.pill { width: auto; padding: 0 12px; border-radius: 10px; --b: #3b4672; font-size: 0.86rem; letter-spacing: 0.06em; }
.cluster { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 3px; }
.cluster kbd { margin: 0; }
.cluster kbd:first-child { grid-column: 2; grid-row: 1; }
.cluster kbd:not(:first-child) { grid-row: 2; }
.kbd-arrows kbd { font-family: var(--body); font-size: 1.05rem; }
.or { color: var(--muted); font-size: 0.85rem; margin: 0 4px; }

@media (max-width: 760px) {
  .ctl-table thead { display: none; }
  .ctl-table, .ctl-table tbody { display: block; width: 100%; }
  .ctl-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 10px;
    padding: 14px 14px;
    border-bottom: 1px solid var(--line);
  }
  .ctl-table tbody tr:last-child { border-bottom: 0; }
  .ctl-table th, .ctl-table td { display: block; padding: 0; border: 0; }
  .ctl-table tbody th { grid-column: 1 / -1; margin-bottom: 4px; font-size: 1.1rem; }
  .ctl-table td { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 0; }
  .ctl-table td::before {
    content: attr(data-label);
    flex: 0 0 100%;
    margin-bottom: 2px;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .ctl-table kbd { min-width: 30px; height: 30px; padding: 0 7px; font-size: 0.9rem; }
  .ctl-table .btn-pad { width: 30px; height: 30px; }
  .ctl-table .btn-pad.pill { width: auto; padding: 0 9px; font-size: 0.8rem; }
  .ctl-table .or { margin: 0 3px; font-size: 0.75rem; }
}

.moves-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px 24px;
  margin: clamp(48px, 6vw, 72px) 0 20px;
}
.moves-head h3 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  transform: skewX(-6deg);
  transform-origin: left;
}
.moves-head h3 span { color: var(--fire-2); }
.moves-head.fight h3 span { color: #ff3355; }
.moves-head p { margin: 0; color: var(--muted); max-width: 46ch; }

.move-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.move {
  --accent: var(--fire-2);
  padding: 12px 12px 16px;
  border-radius: 16px;
  background: #0b1333;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.move:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 18px 40px rgba(0, 0, 0, 0.45); }
.move .flip { max-width: none; border-radius: 10px; }
.move h4 {
  margin: 14px 2px 6px;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}
.move .combo { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0 0 6px; }
.move .combo .plus { color: var(--accent); font-family: var(--display); margin: 0 3px; }
.move .combo .kbd { height: 26px; min-width: 0; padding: 0 8px; font-size: 0.82rem; border-radius: 5px; }
.move p { margin: 0 2px; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.move.fight { --accent: #ff3355; }

@media (max-width: 1100px) { .move-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .move-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .move h4 { font-size: 1.15rem; } }

/* cheats */
.cheats {
  position: relative;
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(26px, 4vw, 44px);
  border-radius: 20px;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 20% 0%, rgba(255, 43, 214, 0.25), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(58, 184, 255, 0.2), transparent 60%),
    #0a0b22;
  box-shadow: inset 0 0 0 2px rgba(255, 43, 214, 0.35), 0 0 60px rgba(255, 43, 214, 0.12);
}
.cheats-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; }
.cheats h3 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  text-transform: uppercase;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 43, 214, 0.7);
}
.cheats h3 span { color: var(--neon); }
.cheats-head p { margin: 0; max-width: 48ch; color: #c9b6e6; }
.cheat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.cheat {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 43, 214, 0.3);
  transition: box-shadow 0.3s, background 0.3s;
}
.cheat code {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 43, 214, 0.9);
}
.cheat code b { font-weight: 400; color: var(--neon); }
.cheat span { display: block; margin-top: 4px; font-size: 0.92rem; color: #c9b6e6; }
.cheat.lit {
  background: rgba(255, 43, 214, 0.18);
  box-shadow: inset 0 0 0 2px var(--neon), 0 0 30px rgba(255, 43, 214, 0.45);
}
.cheat.lit::after {
  content: "ACTIVE";
  position: absolute;
  top: 10px; right: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: #3dff9a;
}
@media (max-width: 860px) { .cheat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .cheat-grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery-grid li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid li:nth-child(6) { grid-column: span 2; }
.gallery-grid li:nth-child(6) .shot { aspect-ratio: auto; }
.shot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0b1333;
  box-shadow: inset 0 0 0 1px var(--line);
  aspect-ratio: 16 / 9;
}
.gallery-grid li:first-child .shot { aspect-ratio: auto; }
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 8, 22, 0.85));
  pointer-events: none;
}
.shot figcaption, .shot .cap {
  position: absolute;
  left: 14px; bottom: 10px; right: 14px;
  z-index: 2;
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: left;
}
.gallery-grid li:first-child .cap { font-size: 1.6rem; left: 22px; bottom: 16px; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.06); filter: brightness(1.08); }
.shot .wip {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice-2);
  background: rgba(5, 8, 22, 0.7);
  opacity: 0.85;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid li:nth-child(6) { grid-column: auto; }
  .gallery-grid li:nth-child(6) .shot { aspect-ratio: 16 / 9; }
  .gallery-grid li:last-child { grid-column: span 2; }
  .gallery-grid li:last-child .shot { aspect-ratio: 32 / 9; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid li:first-child, .gallery-grid li:last-child { grid-column: auto; grid-row: auto; }
  .gallery-grid li:first-child .shot, .gallery-grid li:last-child .shot { aspect-ratio: 16 / 9; }
}

.lightbox {
  width: min(1400px, 96vw);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #000;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}
.lightbox::backdrop { background: rgba(3, 5, 14, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 84vh; object-fit: contain; background: #000; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #0a1130; }
.lightbox-bar p { margin: 0; font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.04em; }
.lightbox-bar .nav-btns { display: flex; gap: 8px; }

/* ---------- tech ---------- */

.tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.tech-visual { position: sticky; top: 120px; margin-top: 120px; }
.pipeline {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.pipeline li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0b1333;
  box-shadow: inset 0 0 0 1px var(--line);
}
.pipeline .step {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 1.2rem;
  color: #0a1130;
  background: linear-gradient(180deg, #fff, var(--ice-2));
}
.pipeline li:nth-child(2) .step { background: linear-gradient(180deg, #ffe08a, var(--fire-2)); }
.pipeline li:nth-child(3) .step { background: linear-gradient(180deg, #ffd0f4, var(--neon)); }
.pipeline li:nth-child(4) .step { background: linear-gradient(180deg, #c8ffe2, #3dff9a); }
.pipeline h3 { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; color: #fff; line-height: 1.1; }
.pipeline p { margin: 4px 0 0; font-size: 0.95rem; color: var(--muted); }
.pipeline code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; color: var(--ice-2); }

.tech-visual { position: relative; }
.tech-visual .main {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px rgba(0, 0, 0, 0.55);
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
}
.tech-visual .main img { width: 100%; }
.tech-visual .inset {
  position: absolute;
  width: 44%;
  right: -4%; bottom: -14%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 3px #0a1130, 0 0 0 5px var(--fire-2), 0 30px 60px rgba(0, 0, 0, 0.6);
  transform: rotate(3deg);
}
.term {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #03050d;
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.7;
  color: #a8c6ff;
  overflow-x: auto;
  white-space: pre;
}
.term .c { color: #56688f; }
.term .p { color: #3dff9a; }
@media (max-width: 900px) {
  .tech-grid { grid-template-columns: minmax(0, 1fr); }
  .tech-visual { position: relative; top: 0; margin: 0 4% 40px; }
}

/* ---------- final CTA ---------- */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../media/renders/arena_corner-800.webp") center / cover no-repeat;
  filter: brightness(0.35) saturate(1.2) blur(2px);
  transform: scale(1.05);
}
.final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 90, 31, 0.28), transparent 60%), linear-gradient(180deg, var(--night), transparent 30%, transparent 70%, var(--night));
}
.final .section-title { font-size: clamp(3rem, 9vw, 7.5rem); }
.final .hero-ctas { animation: none; }

/* ---------- footer ---------- */

.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: #03050d;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
.footer img.flogo { width: 180px; margin-bottom: 14px; }
.footer h2 {
  margin-bottom: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { padding: 3px 0; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .fine {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.6;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- dialog (no WebGPU) ---------- */

.modal {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--text);
  background: linear-gradient(170deg, #121d4a, #0a1130);
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0, 0, 0, 0.7);
}
.modal::backdrop { background: rgba(3, 5, 14, 0.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-body { padding: 30px 28px 26px; }
.modal h2 { font-family: var(--display); font-size: 2.1rem; text-transform: uppercase; color: #fff; line-height: 1; margin-bottom: 12px; }
.modal p { color: var(--muted); }
.modal .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.modal .row .btn { flex: 1 1 200px; }
.modal-x {
  position: absolute;
  top: 12px; right: 12px;
}

/* ---------- toast (cheats) ---------- */

.toast {
  position: fixed;
  left: 50%;
  top: 90px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 11, 34, 0.92);
  box-shadow: inset 0 0 0 2px var(--neon), 0 0 40px rgba(255, 43, 214, 0.5);
  text-shadow: 0 0 14px var(--neon);
  transform: translate(-50%, -20px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease-back);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* cheat effects */
body.cheat-bighead .hero-logo { width: min(1100px, 98vw); }
body.cheat-bighead .team-card img { transform: translateZ(60px) scale(1.35); }
body.cheat-tiny .team-card img { transform: scale(0.55); }
body.cheat-tiny .hero-logo { width: min(420px, 70vw); }
.hero-logo { transition: width 0.6s var(--ease-back); }
body.cheat-allstar .team-card::before { opacity: 0.55; }
body.cheat-allstar .stat-num { color: #fff !important; text-shadow: 0 0 20px var(--gold), 0 0 40px var(--gold) !important; }
body.cheat-frenzy { animation: shake 0.4s linear 3; }
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translate(-6px, 3px) rotate(-0.4deg); }
  40% { transform: translate(5px, -4px) rotate(0.4deg); }
  60% { transform: translate(-4px, -2px); }
  80% { transform: translate(4px, 3px); }
}

/* ---------- reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 420px; }
  .hero-ctas .btn { min-width: 0; width: 100%; --h: 62px; }
  .hero-meta { gap: 6px 16px; font-size: 0.74rem; }
  .nav-actions .btn-sm span.long { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .ribbon-track { animation: none; }
  .flip img { animation: none; transform: translateX(8.3333%) scale(var(--z, 1.32)) translateX(-58.3333%); }
  .js .reveal { opacity: 1; transform: none; }
  #fx { display: none; }
}
