/* Hockey Player VR - presentation website
   Fonts: Teko + Rajdhani (SIL OFL 1.1, self-hosted in assets/fonts) */

@font-face {
  font-family: "Teko";
  src: url("../assets/fonts/teko-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("../assets/fonts/rajdhani-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("../assets/fonts/rajdhani-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("../assets/fonts/rajdhani-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #040914;
  --bg-2: #07112a;
  --panel: rgba(12, 26, 58, 0.62);
  --line: rgba(120, 200, 255, 0.16);
  --text: #d7e4ff;
  --muted: #8ea3c9;
  --white: #ffffff;
  --ice: #6fe7ff;
  --ice-2: #b9f4ff;
  --blue: #2c6bff;
  --blue-2: #1a3fd0;
  --red: #ff2d4b;
  --red-2: #c3102c;
  --orange: #ff8a1e;
  --gold: #ffc53d;
  --discord: #5865f2;
  --facebook: #1877f2;
  --display: "Teko", "Arial Narrow", sans-serif;
  --body: "Rajdhani", "Segoe UI", sans-serif;
  --skew: -12deg;
  --radius: 4px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  /* clip, not hidden: no horizontal scrolling at all, and sticky children keep working */
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ice);
  text-decoration: none;
}

a:hover {
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

p {
  margin: 0 0 1em;
}

.sr-only {
  position: absolute;
  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: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ice);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Background texture for the whole page: faint rink lines + noise glow */
.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 10% 20%, rgba(44, 107, 255, 0.10), transparent 60%),
    radial-gradient(50rem 40rem at 90% 70%, rgba(255, 45, 75, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  --btn-glow: rgba(44, 107, 255, 0.55);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1.6em 0.55em;
  border: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--btn-bg);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), filter 0.25s, box-shadow 0.25s;
  filter: drop-shadow(0 8px 22px var(--btn-glow));
}

.btn .icon {
  font-size: 1.15em;
  transform: translateY(-0.06em);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.45) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.btn:hover {
  color: var(--white);
  transform: translateY(-3px);
  filter: drop-shadow(0 12px 28px var(--btn-glow)) brightness(1.1);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--steam {
  --btn-bg: linear-gradient(135deg, #1b2a44 0%, #0d1628 100%);
  --btn-glow: rgba(111, 231, 255, 0.28);
  box-shadow: inset 0 0 0 2px rgba(111, 231, 255, 0.5);
}

.btn--steam::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, rgba(111, 231, 255, 0.25), transparent 60%);
}

.btn--red {
  --btn-bg: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%);
  --btn-glow: rgba(255, 45, 75, 0.5);
}

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-glow: transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.btn--soon {
  --btn-bg: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 0 10px, rgba(255, 255, 255, 0.02) 10px 20px);
  --btn-glow: transparent;
  color: var(--muted);
  cursor: default;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.btn--soon:hover {
  color: var(--muted);
  transform: none;
  filter: none;
}

.btn--soon::after {
  display: none;
}

.btn__tag {
  display: inline-block;
  padding: 0.25em 0.5em 0.15em;
  margin-left: 0.2em;
  font-size: 0.62em;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--gold);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.btn--sm {
  font-size: 1.2rem;
  padding: 0.6em 1.3em 0.45em;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(4, 9, 20, 0.78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line), 0 10px 40px rgba(0, 0, 0, 0.35);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1400px, 100% - 40px);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.brand img {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 0 12px rgba(111, 231, 255, 0.35));
  transition: transform 0.4s var(--ease-out);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.brand span em {
  font-style: normal;
  color: var(--ice);
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a:not(.btn) {
  position: relative;
  display: block;
  padding: 10px 14px 6px;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--ice), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav a:not(.btn):hover,
.nav a[aria-current="page"] {
  color: var(--white);
}

.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav .btn {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 10px) 0 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -6%;
  z-index: -4;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(var(--hero-scale, 1.08));
  transition: transform 0.6s var(--ease-out);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.1) translateY(-1.5%); }
}

.hero__beams {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__beams i {
  position: absolute;
  top: -10%;
  width: 46vw;
  height: 120%;
  background: conic-gradient(from 180deg at 50% 0%, transparent 168deg, rgba(185, 244, 255, 0.22) 180deg, transparent 192deg);
  filter: blur(6px);
  transform-origin: 50% 0;
  animation: beam 9s ease-in-out infinite alternate;
}

.hero__beams i:nth-child(1) { left: -6vw; animation-delay: -2s; }
.hero__beams i:nth-child(2) { left: 27vw; animation-duration: 11s; opacity: 0.7; }
.hero__beams i:nth-child(3) { right: -6vw; animation-delay: -5s; animation-direction: alternate-reverse; }

@keyframes beam {
  from { transform: rotate(-14deg); }
  to { transform: rotate(14deg); }
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 0%, rgba(4, 9, 20, 0.35) 55%, rgba(4, 9, 20, 0.85) 100%),
    linear-gradient(180deg, rgba(4, 9, 20, 0.55) 0%, transparent 25%, transparent 60%, var(--bg) 100%);
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 1100px;
  padding-inline: 24px;
}

.hero__logo {
  position: relative;
  width: clamp(130px, 17vh, 210px);
  margin: 0 auto 4px;
  animation: logo-drop 1.1s var(--ease-out) 0.15s both;
}

.hero__logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(111, 231, 255, 0.35));
  animation: logo-float 6s ease-in-out 1.3s infinite;
}

.hero__logo::after {
  /* light sweep across the chrome logo */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
  background-size: 250% 100%;
  -webkit-mask: url("../assets/img/logo.png") center / contain no-repeat;
  mask: url("../assets/img/logo.png") center / contain no-repeat;
  mix-blend-mode: overlay;
  animation: logo-shine 5s ease-in-out 1.6s infinite;
}

@keyframes logo-drop {
  0% { opacity: 0; transform: translateY(-60px) scale(1.4) rotate(-8deg); filter: blur(8px); }
  60% { opacity: 1; transform: translateY(6px) scale(0.97) rotate(1deg); filter: blur(0); }
  100% { opacity: 1; transform: none; }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes logo-shine {
  0%, 55% { background-position: 150% 0; }
  85%, 100% { background-position: -60% 0; }
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 18px 6px;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(90deg, rgba(255, 45, 75, 0.25), rgba(44, 107, 255, 0.25));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  animation: rise 0.8s var(--ease-out) 0.7s both;
}

.live-chip:hover {
  color: var(--white);
  background: linear-gradient(90deg, rgba(255, 45, 75, 0.4), rgba(44, 107, 255, 0.4));
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 45, 75, 0.7);
  animation: pulse 1.6s infinite;
  transform: translateY(-1px);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 45, 75, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(255, 45, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 75, 0); }
}

.hero__title {
  font-size: clamp(3.4rem, min(10vw, 12.5vh), 8.5rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0.005em;
  margin-bottom: 18px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

.hero__title .line {
  display: block;
}

.hero__title .accent,
.hero__title .accent .split-char {
  background: linear-gradient(180deg, #ffffff 10%, var(--ice-2) 45%, var(--ice) 78%, #4cc8ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title .accent {
  filter: drop-shadow(0 0 24px rgba(111, 231, 255, 0.45));
}

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) skewX(-14deg);
  animation: char-in 0.7s var(--ease-out) forwards;
  animation-delay: calc(0.9s + var(--i) * 0.035s);
}

@keyframes char-in {
  to { opacity: 1; transform: none; }
}

.hero__lead {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  font-weight: 600;
  color: #e6efff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  animation: rise 0.9s var(--ease-out) 1.5s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 18px;
  animation: rise 0.9s var(--ease-out) 1.7s both;
}

.hero__note {
  margin-top: 22px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 0.9s var(--ease-out) 1.9s both;
}

.hero__note strong {
  color: var(--gold);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* puck shot across the hero, with the in-game orange trail */
.hero__shot {
  position: absolute;
  left: 0;
  bottom: 17%;
  z-index: -1;
  width: 100%;
  height: 40px;
  pointer-events: none;
}

.hero__shot span {
  position: absolute;
  top: 0;
  left: -30%;
  width: 28%;
  height: 100%;
  animation: shot 7s cubic-bezier(0.55, 0.1, 0.3, 1) 2.4s infinite;
  opacity: 0;
}

.hero__shot span::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 100%;
  height: 4px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 138, 30, 0.15) 30%, rgba(255, 138, 30, 0.95));
  border-radius: 4px;
  filter: drop-shadow(0 0 8px rgba(255, 138, 30, 0.9));
}

.hero__shot span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 22px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #3a3f4a, #050608 70%);
  box-shadow: 0 0 14px rgba(255, 138, 30, 0.8);
}

@keyframes shot {
  0% { transform: translate(0, 0) rotate(-4deg); opacity: 0; }
  4% { opacity: 1; }
  22% { transform: translate(135vw, -6vh) rotate(-4deg); opacity: 1; }
  23%, 100% { transform: translate(135vw, -6vh) rotate(-4deg); opacity: 0; }
}

.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  width: max-content;
  margin-inline: auto;
  bottom: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: rise 1s var(--ease-out) 2.2s both;
}

.scroll-cue__track {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  position: relative;
}

.scroll-cue__track::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 10px;
  height: 5px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--white);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(18px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Ticker ---------- */

.ticker {
  position: relative;
  z-index: 2;
  margin: -46px -5vw 0;
  transform: rotate(-2deg);
  padding: 6px 0;
}

.ticker__row {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  user-select: none;
}

.ticker__row--a {
  background: linear-gradient(90deg, var(--blue-2), var(--blue));
  box-shadow: 0 10px 40px rgba(44, 107, 255, 0.35);
}

.ticker__row--b {
  background: linear-gradient(90deg, var(--red), var(--red-2));
  transform: rotate(3deg) translateY(-8px);
  opacity: 0.92;
  box-shadow: 0 10px 40px rgba(255, 45, 75, 0.3);
}

.ticker__track {
  display: flex;
  flex: none;
  gap: 0;
  padding: 10px 0 4px;
  animation: marquee 40s linear infinite;
}

.ticker__row--b .ticker__track {
  animation-direction: reverse;
  animation-duration: 46s;
}

.ticker__track span {
  display: inline-flex;
  align-items: center;
}

.ticker__track span::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 28px;
  background: var(--white);
  transform: rotate(45deg) translateY(-3px);
  opacity: 0.8;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(70px, 8vw, 110px) 0;
}

.section-head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--center {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ice);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: skewX(var(--skew));
}

.section-title {
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  font-weight: 700;
}

.section-title .outline {
  background: linear-gradient(90deg, var(--ice) 0%, #8fb3ff 40%, var(--ice-2) 60%, var(--ice) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(111, 231, 255, 0.35));
  animation: gradient-move 6s linear infinite;
}

.section-sub {
  max-width: 680px;
  margin-top: 18px;
  font-size: 1.2rem;
  color: var(--muted);
}

.section-head--center .section-sub {
  margin-inline: auto;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--left {
  transform: translateX(-60px);
}

.reveal--right {
  transform: translateX(60px);
}

.reveal--zoom {
  transform: scale(0.92);
}

/* HUD frame: corner brackets around media */
.hud {
  position: relative;
  padding: 10px;
}

.hud::before,
.hud::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border: 3px solid var(--ice);
  pointer-events: none;
  z-index: 2;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out);
}

.hud::before {
  left: 0;
  top: 0;
  border-right: 0;
  border-bottom: 0;
}

.hud::after {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
  border-color: var(--red);
}

.hud:hover::before,
.hud:hover::after {
  width: 70px;
  height: 70px;
}

/* ---------- Update 0.5.0 ---------- */

.update {
  overflow: hidden;
}

.update__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.version-big {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(6rem, 15vw, 12.5rem);
  font-weight: 700;
  line-height: 0.8;
  color: transparent;
  margin: 4px 0 10px;
}

.version-big::before,
.version-big::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 0;
}

.version-big::before {
  color: var(--white);
  clip-path: inset(0 0 50% 0);
  animation: glitch-a 4.5s steps(1) infinite;
  text-shadow: -3px 0 var(--red);
}

.version-big::after {
  color: var(--white);
  clip-path: inset(50% 0 0 0);
  animation: glitch-b 4.5s steps(1) infinite;
  text-shadow: 3px 0 var(--blue);
}

@keyframes glitch-a {
  0%, 86%, 100% { transform: none; }
  88% { transform: translate(-6px, -2px); clip-path: inset(10% 0 60% 0); }
  91% { transform: translate(5px, 1px); clip-path: inset(30% 0 40% 0); }
  94% { transform: translate(-2px, 0); clip-path: inset(0 0 50% 0); }
}

@keyframes glitch-b {
  0%, 86%, 100% { transform: none; }
  89% { transform: translate(6px, 2px); clip-path: inset(60% 0 10% 0); }
  92% { transform: translate(-4px, -1px); clip-path: inset(45% 0 30% 0); }
  95% { transform: translate(2px, 0); clip-path: inset(50% 0 0 0); }
}

.update__subtitle {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 10px;
}

.release-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-date .icon {
  color: var(--ice);
  font-size: 1.2em;
}

.check-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 16px 10px;
  background: linear-gradient(90deg, rgba(44, 107, 255, 0.12), transparent 80%);
  border-left: 3px solid var(--ice);
  font-weight: 600;
  color: #e3ecff;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.check-list li:hover {
  transform: translateX(8px);
  background: linear-gradient(90deg, rgba(44, 107, 255, 0.24), transparent 85%);
}

.check-list .icon {
  font-size: 1.5rem;
  color: var(--ice);
  margin-top: -2px;
}

.soon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 5px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255, 197, 61, 0.45);
  background: rgba(255, 197, 61, 0.08);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.update__media {
  position: relative;
}

.update__media .hud img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.update__media .media-stack {
  position: absolute;
  width: 46%;
  right: -4%;
  bottom: -14%;
  border: 3px solid var(--bg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: rotate(3deg);
  transition: transform 0.5s var(--ease-out);
}

.update__media:hover .media-stack {
  transform: rotate(0deg) translateY(-8px);
}

.update__media .media-stack img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.badge-new {
  position: absolute;
  top: -18px;
  left: -14px;
  z-index: 3;
  padding: 10px 18px 6px;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 10px 30px rgba(255, 45, 75, 0.5);
  animation: badge 2.4s ease-in-out infinite;
}

@keyframes badge {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(-4deg) scale(1.08); }
}

/* ---------- Features ---------- */

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  --mx: 50%;
  --my: 50%;
  position: relative;
  min-height: 330px;
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--panel);
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease-out);
}

.feature::before {
  /* rotating neon border */
  content: "";
  position: absolute;
  inset: -60%;
  z-index: -3;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--ice) 80%, var(--blue) 88%, transparent 96%);
  animation: spin 6s linear infinite;
  opacity: 0;
  transition: opacity 0.4s;
}

.feature::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -2;
  background: linear-gradient(180deg, rgba(7, 17, 42, 0.2), rgba(7, 17, 42, 0.95) 62%), var(--bg-2);
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
}

.feature:hover::before {
  opacity: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.feature__img {
  position: absolute;
  inset: 2px 2px 40% 2px;
  z-index: -1;
  overflow: hidden;
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent);
  mask: linear-gradient(180deg, #000 30%, transparent);
}

.feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.05);
  transition: transform 0.8s var(--ease-out), opacity 0.5s;
}

.feature:hover .feature__img img {
  transform: scale(1.15);
  opacity: 0.8;
}

.feature__glare {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(111, 231, 255, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature:hover .feature__glare {
  opacity: 1;
}

.feature__num {
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  font-size: 1.9rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 10px 30px rgba(44, 107, 255, 0.4);
  transition: transform 0.4s var(--ease-out);
}

.feature:nth-child(even) .feature__icon {
  background: linear-gradient(135deg, var(--red), var(--red-2));
}

.feature:hover .feature__icon {
  transform: translateY(-4px) rotate(-6deg);
}

.feature h3 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Stats band ---------- */

.stats {
  position: relative;
  padding: 60px 0;
  background:
    linear-gradient(90deg, rgba(44, 107, 255, 0.18), rgba(255, 45, 75, 0.18)),
    var(--bg-2);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.stats::before {
  /* moving ice scratches */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 60px, rgba(255, 255, 255, 0.025) 60px 62px);
  animation: slide 20s linear infinite;
}

@keyframes slide {
  to { background-position: 600px 0; }
}

.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}

.stat__value {
  font-family: var(--display);
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--white);
  text-shadow: 0 0 30px rgba(111, 231, 255, 0.4);
}

.stat__value small {
  font-size: 0.45em;
  color: var(--ice);
  margin-left: 4px;
}

.stat__label {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Match day ---------- */

.match__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.scoreboard {
  position: relative;
  padding: 22px;
  background: linear-gradient(180deg, #0b1124, #050914);
  border: 2px solid #1b2a4f;
  box-shadow:
    0 0 0 6px #0a0f1e,
    0 0 0 8px #1b2a4f,
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(44, 107, 255, 0.15);
  overflow: hidden;
}

.scoreboard::before {
  /* LED dot matrix */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.4px);
  background-size: 6px 6px;
  pointer-events: none;
}

.scoreboard__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.scoreboard__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
}

.scoreboard__main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.sb-team {
  text-align: center;
}

.sb-team__name {
  display: block;
  padding: 6px 0 2px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: 0.15em;
  color: var(--white);
}

.sb-team--home .sb-team__name {
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.sb-team--away .sb-team__name {
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.sb-score {
  display: block;
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;
  padding-top: 10px;
}

.sb-team--home .sb-score {
  color: #8db4ff;
  text-shadow: 0 0 24px rgba(44, 107, 255, 0.9);
}

.sb-team--away .sb-score {
  color: #ff8fa0;
  text-shadow: 0 0 24px rgba(255, 45, 75, 0.9);
}

.sb-score.is-bump {
  animation: bump 0.6s var(--ease-out);
}

@keyframes bump {
  0% { transform: scale(1); }
  30% { transform: scale(1.35); filter: brightness(1.8); }
  100% { transform: scale(1); }
}

.sb-mid {
  text-align: center;
}

.sb-period {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.sb-clock {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  color: #ffd76a;
  text-shadow: 0 0 20px rgba(255, 197, 61, 0.7);
  font-variant-numeric: tabular-nums;
  min-width: 3.2ch;
  padding-top: 6px;
}

.sb-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--text);
}

.sb-stats span:nth-child(2) {
  color: var(--muted);
}

.sb-goal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(5rem, 13vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  pointer-events: none;
  opacity: 0;
}

.sb-goal::before {
  /* starburst like the in-game goal projection */
  content: "";
  position: absolute;
  width: 140%;
  aspect-ratio: 1;
  background: repeating-conic-gradient(var(--goal-color, var(--red)) 0 10deg, transparent 10deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 55%);
  mask: radial-gradient(circle, #000 0 18%, transparent 55%);
  animation: spin 6s linear infinite;
  z-index: -1;
}

.sb-goal.is-on {
  animation: goal 2.2s var(--ease-out);
}

@keyframes goal {
  0% { opacity: 0; transform: scale(0.4) rotate(-10deg); }
  15% { opacity: 1; transform: scale(1.1) rotate(-6deg); }
  25% { transform: scale(1) rotate(-6deg); }
  80% { opacity: 1; transform: scale(1) rotate(-6deg); }
  100% { opacity: 0; transform: scale(1.3) rotate(-6deg); }
}

.match__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}

.match__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  color: #dfe9ff;
  line-height: 1.35;
}

.match__list .icon {
  font-size: 1.4rem;
  color: var(--red);
  margin-top: 1px;
}

.match__list span small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ---------- Gallery ---------- */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 15vw, 220px);
  grid-auto-flow: dense;
  gap: 12px;
}

.shot {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.shot--wide {
  grid-column: span 2;
}

.shot--big {
  grid-column: span 2;
  grid-row: span 2;
}

.shot picture,
.shot img {
  width: 100%;
  height: 100%;
}

.shot img {
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.5s;
  filter: saturate(0.9);
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(4, 9, 20, 0.85));
  opacity: 0.7;
  transition: opacity 0.4s;
}

.shot__label {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transform: translateY(8px);
  opacity: 0.85;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}

.shot__label .icon {
  font-size: 1rem;
  color: var(--ice);
}

.shot:hover img {
  transform: scale(1.08);
  filter: saturate(1.15);
}

.shot:hover .shot__label {
  transform: none;
  opacity: 1;
}

.shot:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(2, 5, 12, 0.94);
  color: var(--white);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(2, 5, 12, 0.6);
  backdrop-filter: blur(6px);
}

.lightbox[open] {
  display: grid;
  place-items: center;
  animation: fade 0.3s ease;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__figure {
  margin: 0;
  max-width: min(92vw, 1600px);
  text-align: center;
}

.lightbox__figure img {
  max-height: 82vh;
  width: auto;
  margin-inline: auto;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  animation: lb-in 0.45s var(--ease-out);
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

.lightbox__figure figcaption {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox__figure figcaption span {
  color: var(--muted);
  margin-left: 10px;
}

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.25s;
}

.lightbox__btn:hover {
  background: var(--blue);
}

.lightbox__btn--close {
  top: 20px;
  right: 24px;
}

.lightbox__btn--prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__btn--next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Locker ---------- */

.locker__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.locker__media {
  position: relative;
}

.locker__media {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease-out);
}

.locker__frame img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
}

.locker__media::before {
  content: "";
  position: absolute;
  inset: 10% -10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 197, 61, 0.25), transparent);
  filter: blur(30px);
  animation: glow-breathe 5s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0 30px;
}

.tier {
  padding: 16px 14px 12px;
  text-align: center;
  background: var(--panel);
  border-top: 3px solid var(--tier, var(--ice));
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.tier:hover {
  transform: translateY(-6px);
  background: rgba(20, 40, 85, 0.8);
}

.tier strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
}

.tier span {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.no-p2w {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 10px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(90deg, rgba(48, 214, 120, 0.2), transparent);
  border-left: 3px solid #30d678;
}

.no-p2w .icon {
  color: #30d678;
  font-size: 1.3em;
  transform: translateY(-2px);
}

/* ---------- Platforms ---------- */

.platforms {
  overflow: hidden;
}

.platforms::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/img/background.webp") center / cover no-repeat;
  opacity: 0.22;
  -webkit-mask: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}

.platforms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.platform {
  --accent: var(--blue);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 34px 30px 30px;
  color: var(--text);
  background: linear-gradient(160deg, rgba(20, 38, 80, 0.85), rgba(6, 13, 30, 0.95));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}

.platform::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  top: -110px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent), transparent);
  opacity: 0.35;
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
}

a.platform:hover {
  color: var(--text);
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 50px color-mix(in srgb, var(--accent) 35%, transparent);
}

a.platform:hover::before {
  transform: scale(1.5);
  opacity: 0.55;
}

.platform--steam {
  --accent: #66c0f4;
}

.platform--quest {
  --accent: var(--gold);
}

.platform__logo {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: auto;
  font-size: 2.6rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.platform__store {
  margin-top: 36px;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.platform h3 {
  font-size: 3rem;
  margin: 4px 0 10px;
}

.platform p {
  color: var(--muted);
  margin-bottom: 24px;
}

.platform__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.platform__cta .icon {
  transition: transform 0.35s var(--ease-out);
}

a.platform:hover .platform__cta .icon {
  transform: translateX(8px);
}

.platform--quest {
  cursor: default;
}

.platform--quest .platform__logo,
.platform--quest h3,
.platform--quest .platform__store {
  opacity: 0.75;
}

.ribbon {
  position: absolute;
  top: 34px;
  right: -56px;
  width: 230px;
  padding: 8px 0 4px;
  text-align: center;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  transform: rotate(40deg);
  box-shadow: 0 6px 20px rgba(255, 197, 61, 0.4);
}

.soon-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.soon-bar i {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.soon-bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: loading 1.8s ease-in-out infinite;
}

@keyframes loading {
  from { transform: translateX(-100%); }
  to { transform: translateX(260%); }
}

/* ---------- Community ---------- */

.community__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.social {
  --accent: var(--discord);
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 34px 34px 30px;
  color: var(--white);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 40%, transparent), rgba(6, 13, 30, 0.9) 70%);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}

.social--facebook {
  --accent: var(--facebook);
}

.social:hover {
  color: var(--white);
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 60px color-mix(in srgb, var(--accent) 40%, transparent);
}

.social__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  font-size: 3rem;
  background: var(--accent);
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  transition: transform 0.45s var(--ease-out);
}

.social:hover .social__icon {
  transform: rotate(-8deg) scale(1.08);
}

.social__big {
  position: absolute;
  right: -30px;
  bottom: -50px;
  z-index: -1;
  font-size: 15rem;
  opacity: 0.08;
  transform: rotate(-12deg);
  transition: transform 0.8s var(--ease-out), opacity 0.6s;
}

.social:hover .social__big {
  transform: rotate(0deg) scale(1.1);
  opacity: 0.14;
}

.social h3 {
  font-size: 2.6rem;
}

.social p {
  margin: 6px 0 0;
  color: #c9d6f2;
}

/* ---------- Final CTA ---------- */

.final {
  text-align: center;
  overflow: hidden;
}

.final__title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.final__title span {
  display: inline-block;
  background: linear-gradient(90deg, var(--ice), var(--white) 25%, var(--red) 50%, var(--white) 75%, var(--ice));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-move 6s linear infinite;
}

@keyframes gradient-move {
  to { background-position: 300% 0; }
}

.final .hero__cta {
  animation: none;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding: 70px 0 34px;
  background: #02060f;
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--ice), var(--red));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer__brand img {
  width: 120px;
  height: auto;
  margin-bottom: 14px;
}

.footer__brand p {
  max-width: 340px;
  color: var(--muted);
  font-size: 1rem;
}

.site-footer h4 {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  color: var(--white);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer ul a,
.site-footer ul span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.25s, transform 0.25s;
}

.site-footer ul a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.site-footer ul .icon {
  font-size: 1.1rem;
}

.footer__soon {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__bottom a {
  color: var(--muted);
}

.footer__bottom a:hover {
  color: var(--white);
}

/* ---------- Sub pages (changelog, privacy) ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 70px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 9, 20, 0.5), rgba(4, 9, 20, 0.6) 50%, var(--bg));
}

.page-hero__logo {
  width: 130px;
  margin: 0 auto 14px;
  animation: logo-drop 1s var(--ease-out) both;
}

.page-hero h1 {
  font-size: clamp(3.4rem, 9vw, 7rem);
  font-weight: 700;
  animation: rise 0.8s var(--ease-out) 0.3s both;
}

.page-hero p {
  margin: 10px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.2rem;
  animation: rise 0.8s var(--ease-out) 0.45s both;
}

/* Changelog timeline */
.timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--ice) 15%, var(--blue) 60%, transparent);
}

.release {
  position: relative;
  padding-left: 76px;
  margin-bottom: 34px;
}

.release__node {
  position: absolute;
  left: 9px;
  top: 22px;
  width: 30px;
  height: 30px;
  background: var(--bg);
  border: 3px solid var(--ice);
  transform: rotate(45deg);
  box-shadow: 0 0 18px rgba(111, 231, 255, 0.6);
}

.release--major .release__node {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 45, 75, 0.6);
  animation: node-pulse 2s infinite;
}

@keyframes node-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 45, 75, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(255, 45, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 75, 0); }
}

.release__card {
  padding: 26px 30px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.release__card:hover {
  transform: translateX(8px);
  border-color: rgba(111, 231, 255, 0.4);
}

.release--major .release__card {
  background: linear-gradient(135deg, rgba(255, 45, 75, 0.16), rgba(44, 107, 255, 0.16)), var(--panel);
  border-color: rgba(255, 45, 75, 0.45);
}

.release__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 12px;
}

.release__version {
  font-size: 3rem;
  font-weight: 700;
}

.release__date {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.release__tag {
  padding: 5px 12px 3px;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.release__title {
  font-size: 1.9rem;
  color: var(--ice-2);
  margin-bottom: 12px;
}

.release ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.release li {
  position: relative;
  padding-left: 24px;
  color: #d8e3fb;
  font-weight: 600;
}

.release li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 9px;
  height: 9px;
  background: var(--ice);
  transform: rotate(45deg);
}

.release--major li::before {
  background: var(--red);
}

.release li strong {
  color: var(--white);
}

/* Legal document */
.legal {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 50px;
  align-items: start;
  padding-bottom: 90px;
}

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.legal__toc h2 {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.legal__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  counter-reset: toc;
}

.legal__toc a {
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s, border-color 0.2s;
}

.legal__toc a:hover,
.legal__toc a.is-active {
  color: var(--white);
  border-color: var(--ice);
}

.legal__doc {
  padding: 40px clamp(22px, 4vw, 54px);
  background: rgba(8, 18, 42, 0.7);
  border: 1px solid var(--line);
  font-size: 1.08rem;
  color: #cfdbf3;
  line-height: 1.65;
}

.legal__doc h2 {
  font-size: 2.8rem;
  margin: 10px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--blue), var(--red)) 1;
}

.legal__doc h2:not(:first-child) {
  margin-top: 60px;
}

.legal__doc h3 {
  font-size: 1.8rem;
  margin: 34px 0 10px;
  color: var(--ice-2);
}

.legal__doc b {
  color: var(--white);
}

.legal__updated {
  display: inline-block;
  margin-bottom: 26px;
  padding: 6px 14px 4px;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255, 197, 61, 0.4);
}

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  color: var(--white);
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  filter: brightness(1.2);
}

/* Scroll progress bar */
.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 101;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--ice), var(--red));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .features__grid,
  .platforms__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform--quest {
    grid-column: span 2;
    min-height: 280px;
  }

  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 36px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    padding: 18px 24px 28px;
    background: rgba(4, 9, 20, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s var(--ease-out), visibility 0.3s;
  }

  .nav-open .nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-open .site-header {
    background: rgba(4, 9, 20, 0.97);
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a:not(.btn) {
    font-size: 1.6rem;
    padding: 10px 4px 6px;
  }

  .nav a:not(.btn)::after {
    left: 4px;
    right: auto;
    width: 60px;
  }

  .nav .btn {
    margin: 14px 0 0;
    justify-content: center;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .update__grid,
  .match__grid,
  .locker__grid {
    grid-template-columns: 1fr;
  }

  .update__media {
    margin-bottom: 60px;
  }

  .match__grid .scoreboard-wrap {
    order: 2;
  }

  .legal {
    grid-template-columns: 1fr;
  }

  .legal__toc {
    position: static;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 1.05rem;
  }

  .container {
    width: min(1240px, 100% - 32px);
  }

  .features__grid,
  .platforms__grid,
  .community__grid {
    grid-template-columns: 1fr;
  }

  .platform--quest {
    grid-column: auto;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__grid .stat:last-child {
    grid-column: span 2;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }

  .shot--big {
    grid-row: span 2;
  }

  .match__list {
    grid-template-columns: 1fr;
  }

  .tiers {
    grid-template-columns: 1fr;
  }

  .social {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__cta .btn {
    width: min(100%, 340px);
    justify-content: center;
    font-size: 1.3rem;
  }

  .scroll-cue {
    display: none;
  }

  .brand span {
    font-size: 1.35rem;
  }

  .timeline::before {
    left: 14px;
  }

  .release {
    padding-left: 48px;
  }

  .release__node {
    left: 3px;
    width: 26px;
    height: 26px;
  }

  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: auto;
    bottom: 24px;
    transform: none;
  }
}

/* ---------- Reduced motion ---------- */

@media (max-height: 760px) {
  .scroll-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .split-char {
    opacity: 1;
    transform: none;
  }

  .hero__shot {
    display: none;
  }
}

.legal__toc a.toc-major {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--white);
}
