:root {
  --bg-0: #06080c;
  --bg-1: #0a0e14;
  --bg-2: #0d1218;
  --panel: #111821;
  --panel-2: #151e2a;
  --panel-3: #1a2533;
  --line: #1f2b3a;
  --line-2: #2a3a4f;
  --text: #e8eef5;
  --text-2: #bcc7d4;
  --muted: #8794a6;
  --faint: #75849a;
  --ice: #8fe3ff;
  --ice-2: #52c4ff;
  --ice-3: #2287d9;
  --ice-soft: rgba(143, 227, 255, 0.1);
  --ice-line: rgba(143, 227, 255, 0.28);
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --discord: #5865f2;
  --opal: #c9a2ff;
  --sapphire: #7b7aff;
  --emerald: #3ed35a;
  --ruby: #ff6060;
  --diamond: #4fd4ec;
  --onyx: #b9b9c4;
  --zenyte: #ff9c3c;
  --platinum: #cbdcee;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px rgba(143, 227, 255, 0.35), 0 10px 40px -12px rgba(82, 196, 255, 0.45);
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --header-h: 68px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-1);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--ice);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

h3,
h4 {
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

li + li {
  margin-top: 0.35em;
}

strong {
  color: var(--text);
  font-weight: 600;
}

code,
kbd,
.cmd {
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.45em;
  border-radius: 6px;
  background: rgba(143, 227, 255, 0.08);
  border: 1px solid rgba(143, 227, 255, 0.16);
  color: var(--ice);
  white-space: nowrap;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

::selection {
  background: rgba(82, 196, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ice);
  color: #04131d;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  color: #04131d;
}

[hidden] {
  display: none !important;
}

.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;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container.narrow {
  max-width: 860px;
}

.silver {
  background: linear-gradient(180deg, #ffffff 0%, #dfe7f0 38%, #9aa8ba 72%, #cfd9e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ice {
  color: var(--ice);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.center {
  text-align: center;
}

/* announcement bar */

.announce {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, #0b2235, #0f2d46 50%, #0b2235);
  border-bottom: 1px solid rgba(143, 227, 255, 0.18);
  color: var(--text);
  font-size: 0.88rem;
  text-align: center;
}

.announce[hidden] {
  display: none;
}

.announce a {
  display: block;
  padding: 8px 20px;
  color: var(--text);
}

.announce a:hover {
  color: #fff;
}

.announce .tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--ice);
  color: #04131d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* header */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  height: var(--header-h);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 10, 14, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(143, 227, 255, 0.09);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled::before,
.nav-open .site-header::before {
  background: rgba(7, 10, 14, 0.94);
  border-bottom-color: rgba(143, 227, 255, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
}

.brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px rgba(82, 196, 255, 0.35));
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand:hover {
  color: #fff;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li + li {
  margin: 0;
}

.main-nav li > a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 500;
}

.main-nav li > a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ice), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.main-nav li > a:hover {
  color: #fff;
  background: rgba(143, 227, 255, 0.06);
}

.main-nav li > a:hover::after {
  opacity: 0.6;
  transform: scaleX(1);
}

body[data-page="home"] .main-nav li > a[data-nav="home"],
body[data-page="play"] .main-nav li > a[data-nav="play"],
body[data-page="news"] .main-nav li > a[data-nav="news"],
body[data-page="hiscores"] .main-nav li > a[data-nav="hiscores"],
body[data-page="vote"] .main-nav li > a[data-nav="vote"],
body[data-page="store"] .main-nav li > a[data-nav="store"],
body[data-page="rules"] .main-nav li > a[data-nav="rules"] {
  color: #fff;
}

body[data-page="home"] .main-nav li > a[data-nav="home"]::after,
body[data-page="play"] .main-nav li > a[data-nav="play"]::after,
body[data-page="news"] .main-nav li > a[data-nav="news"]::after,
body[data-page="hiscores"] .main-nav li > a[data-nav="hiscores"]::after,
body[data-page="vote"] .main-nav li > a[data-nav="vote"]::after,
body[data-page="store"] .main-nav li > a[data-nav="store"]::after,
body[data-page="rules"] .main-nav li > a[data-nav="rules"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(17, 24, 33, 0.7);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  flex-shrink: 0;
}

[data-state="online"] .dot {
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2.2s infinite;
}

[data-state="offline"] .dot {
  background: var(--bad);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(17, 24, 33, 0.7);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .close-icon {
  display: none;
}

.nav-open .nav-toggle .open-icon {
  display: none;
}

.nav-open .nav-toggle .close-icon {
  display: block;
}

/* buttons */

.btn {
  --btn-bg: rgba(20, 29, 40, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--btn-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.2s ease;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn:hover {
  color: #fff;
  border-color: var(--ice-line);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  border: 0;
  background: linear-gradient(180deg, #b3efff 0%, #6fd3ff 42%, #2ea6ef 100%);
  color: #03121c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 30px -10px rgba(82, 196, 255, 0.8);
}

.btn-primary:hover {
  color: #03121c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 38px -8px rgba(82, 196, 255, 0.95);
}

.btn-discord {
  border: 0;
  background: linear-gradient(180deg, #6c78f6, #4752d9);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 26px -12px rgba(88, 101, 242, 0.9);
}

.btn-discord:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
}

.btn.btn-icon {
  width: 36px;
  padding: 0;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.nav-cta {
  display: none;
}

.btn-lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 1.05rem;
  border-radius: 13px;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.88rem;
  border-radius: 9px;
}

.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(600px, 94vh, 900px);
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 40px) 0 70px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.06);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.2%, -1%, 0);
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(6, 10, 16, 0.15), rgba(6, 10, 16, 0.65) 70%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.85) 0%, rgba(6, 8, 12, 0.25) 22%, rgba(6, 8, 12, 0.35) 60%, var(--bg-1) 100%);
}

.hero canvas.frost {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
}

.hero-logo {
  width: min(680px, 92%);
  margin: 0 auto 6px;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 28px rgba(82, 196, 255, 0.25));
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-title {
  margin: 0;
}

.hero-tag {
  max-width: 940px;
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.25;
  margin: 0 auto 14px;
  font-size: clamp(1.35rem, 2.7vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  animation: rise 1s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero .lead {
  max-width: 680px;
  margin: 0 auto 30px;
  color: #d3dce6;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
  animation: rise 1s 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero .btn-row {
  justify-content: center;
  animation: rise 1s 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.hero-stats {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  margin: 38px auto 0;
  border: 1px solid rgba(143, 227, 255, 0.16);
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: rise 1s 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  text-align: left;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
}

.hero-stat + .hero-stat {
  border-left: 1px solid rgba(143, 227, 255, 0.12);
}

.hero-stat .label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stat .value {
  display: block;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-stat .icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ice-soft);
  color: var(--ice);
  flex-shrink: 0;
}

.hero-stat .icon svg {
  width: 20px;
  height: 20px;
}

.hero-stat .icon.pixel img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
}

.launch-countdown {
  display: inline-flex;
  gap: 10px;
  margin: 0 auto 26px;
  animation: rise 1s 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.launch-countdown[hidden] {
  display: none;
}

.launch-countdown div {
  min-width: 74px;
  padding: 10px 8px;
  border: 1px solid rgba(143, 227, 255, 0.2);
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.65);
}

.launch-countdown strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.launch-countdown span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(188, 199, 212, 0.35);
  border-radius: 14px;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ice);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* page header (inner pages) */

.page-hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 64px) 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero .ph-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center 35%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.4;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(34, 135, 217, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.9) 0%, rgba(10, 14, 20, 0.7) 45%, var(--bg-1) 100%);
}

.page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.page-hero .lead {
  max-width: 720px;
  margin: 0;
  color: var(--text-2);
  font-size: 1.1rem;
}

.page-hero.center .lead {
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumb li + li {
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--faint);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--ice);
}

/* sections */

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

.section.tight {
  padding: clamp(44px, 6vw, 70px) 0;
}

.section.alt {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(34, 135, 217, 0.08), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 820px;
  margin: 0 auto clamp(34px, 5vw, 54px);
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ice);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice));
}

.eyebrow::after {
  transform: scaleX(-1);
}

.section-head.left .eyebrow::before {
  display: none;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.55rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.crystal-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
  margin: 18px auto 0;
}

.crystal-rule::before,
.crystal-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice-line));
}

.crystal-rule::after {
  transform: scaleX(-1);
}

.crystal-rule i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ice);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(143, 227, 255, 0.6);
}

/* cards & grids */

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.12rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card.hover {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card.hover:hover {
  transform: translateY(-4px);
  border-color: var(--ice-line);
  box-shadow: var(--shadow), var(--glow);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border: 1px solid rgba(143, 227, 255, 0.22);
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, rgba(143, 227, 255, 0.22), rgba(143, 227, 255, 0.05));
  color: var(--ice);
}

.icon-badge svg {
  width: 23px;
  height: 23px;
}

.pillars .card {
  padding: 26px 24px;
}

.pillars p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* feature (image) cards */

.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature.wide {
  grid-column: span 3;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--ice-line);
  box-shadow: var(--shadow), var(--glow);
}

.feature .media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1016;
}

.feature .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature:hover .media img {
  transform: scale(1.06);
}

.feature .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 24, 33, 0.95));
}

.feature .tag {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
}

.feature .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 4px 22px 22px;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.feature p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.feature .facts li {
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(10, 14, 20, 0.6);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(143, 227, 255, 0.3);
  background: rgba(6, 12, 20, 0.78);
  color: var(--ice);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tag.new {
  border-color: rgba(74, 222, 128, 0.4);
  color: #86efac;
}

.tag.custom {
  border-color: rgba(201, 162, 255, 0.45);
  color: #dcc6ff;
}

.tag.blood {
  border-color: rgba(255, 96, 96, 0.45);
  color: #ffb0b0;
}

.tag.gold {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fcd98a;
}

/* split (image + text) */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.split.reverse > :first-child {
  order: 2;
}

.split .frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: var(--shadow), 0 0 0 6px rgba(143, 227, 255, 0.03);
}

.split .frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.split h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.check-list {
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ice);
  background: rgba(143, 227, 255, 0.18);
  transform: rotate(45deg);
}

/* live events */

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.event {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}

.event .ev-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #0c1219;
  color: var(--ice);
  flex-shrink: 0;
}

.event .ev-icon img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.event .ev-icon svg {
  width: 22px;
  height: 22px;
}

.event h3 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.event .ev-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.event .ev-state .dot {
  width: 7px;
  height: 7px;
}

.event[data-state="active"] {
  border-color: rgba(74, 222, 128, 0.35);
  background: linear-gradient(180deg, rgba(20, 46, 34, 0.55), var(--panel));
}

.event[data-state="active"] .dot {
  background: var(--ok);
  animation: pulse 2.2s infinite;
}

.event[data-state="scheduled"] .dot,
.event[data-state="counting"] .dot,
.event[data-state="starting"] .dot {
  background: var(--warn);
}

.event .ev-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.progress {
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: #0a0f15;
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ice-3), var(--ice));
  transition: width 0.8s ease;
}

.data-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--faint);
  font-size: 0.84rem;
  text-align: center;
}

/* news cards */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  color: inherit;
  transform: translateY(-4px);
  border-color: var(--ice-line);
  box-shadow: var(--shadow), var(--glow);
}

.news-card .media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b1016;
}

.news-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.news-card:hover .media img {
  transform: scale(1.05);
}

.news-card .media .tag {
  position: absolute;
  left: 14px;
  top: 14px;
}

.news-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.news-card time,
.meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.news-card h3 {
  margin: 6px 0 8px;
  font-size: 1.2rem;
}

.news-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--ice);
  font-size: 0.9rem;
  font-weight: 650;
}

.read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.news-card:hover .read-more svg,
a.read-more:hover svg {
  transform: translateX(4px);
}

.news-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.news-card.featured .media {
  flex: 1.25;
  aspect-ratio: auto;
  min-height: 320px;
}

.news-card.featured .body {
  flex: 1;
  justify-content: center;
  padding: 34px;
}

.news-card.featured h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

/* gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1016;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
}

.gallery button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.gallery button:hover img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.gallery button .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 11px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 12, 0.92));
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
}

.gallery button:hover {
  border-color: var(--ice-line);
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 5, 8, 0.94);
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(3, 5, 8, 0.8);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: 1fr auto;
}

.lightbox figure {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 60px 70px 10px;
  min-height: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px #000;
}

.lightbox figcaption {
  padding: 8px 20px 26px;
  color: var(--text-2);
  text-align: center;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(17, 24, 33, 0.85);
  color: var(--text);
  cursor: pointer;
}

.lb-btn:hover {
  border-color: var(--ice-line);
  color: #fff;
}

.lb-btn svg {
  width: 22px;
  height: 22px;
}

.lb-close {
  top: 14px;
  right: 14px;
}

.lb-prev {
  left: 14px;
  top: 50%;
  margin-top: -24px;
}

.lb-next {
  right: 14px;
  top: 50%;
  margin-top: -24px;
}

/* CTA band */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(70px, 10vw, 120px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/hero/band-1600.webp") center 40% / cover no-repeat;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(6, 10, 16, 0.35), rgba(6, 10, 16, 0.85)),
    linear-gradient(180deg, var(--bg-1), rgba(6, 8, 12, 0.3) 30%, rgba(6, 8, 12, 0.5) 70%, var(--bg-0));
}

.cta-band h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.cta-band p {
  max-width: 620px;
  margin: 0 auto 28px;
  color: #d3dce6;
  font-size: 1.08rem;
}

.cta-band .btn-row {
  justify-content: center;
}

/* prose (articles, rules) */

.prose {
  color: var(--text-2);
  font-size: 1.03rem;
}

.prose h2 {
  margin: 2.4em 0 0.7em;
  padding-top: 0.2em;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.8em 0 0.6em;
  color: var(--text);
  font-size: 1.18rem;
}

.prose ul {
  padding-left: 0;
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ice);
  transform: rotate(45deg);
}

.prose ul ul {
  margin: 0.35em 0 0;
}

.prose ul ul li::before {
  border-color: var(--faint);
}

.prose figure {
  margin: 1.8em 0;
}

.prose figure img {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 12px;
}

.prose figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.callout {
  display: flex;
  gap: 14px;
  margin: 1.6em 0;
  padding: 16px 18px;
  border: 1px solid rgba(143, 227, 255, 0.24);
  border-left: 3px solid var(--ice);
  border-radius: 10px;
  background: rgba(143, 227, 255, 0.05);
  color: var(--text-2);
}

.callout.warn {
  border-color: rgba(251, 191, 36, 0.3);
  border-left-color: var(--warn);
  background: rgba(251, 191, 36, 0.05);
}

.callout svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--ice);
}

.callout.warn svg {
  color: var(--warn);
}

.callout p:last-child {
  margin: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 1.4em 0;
}

.stat-row div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.stat-row strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.stat-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* article layout */

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
}

.toc-wrap {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.toc {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.9rem;
}

.toc summary {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc:not([open]) summary {
  margin: 0;
}

.toc:not([open]) summary::after {
  content: " +";
  color: var(--ice);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--text-2);
  line-height: 1.4;
}

.toc a:hover,
.toc a.active {
  background: rgba(143, 227, 255, 0.07);
  color: var(--ice);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta svg {
  width: 16px;
  height: 16px;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}

.article-nav a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
}

.article-nav a:hover {
  border-color: var(--ice-line);
}

.article-nav span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.article-nav .next {
  text-align: right;
}

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0;
  padding: 24px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border: 1px solid var(--ice-line);
  border-radius: 50%;
  background: var(--ice-soft);
  color: var(--ice);
  font-family: var(--font-display);
  font-weight: 700;
}

.steps h3 {
  font-size: 1.04rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* download */

.download-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(135deg, #142030, #0f1620 60%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(143, 227, 255, 0.05);
}

.download-card .main {
  padding: clamp(28px, 4vw, 44px);
}

.download-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.download-card .art {
  position: relative;
  min-height: 300px;
  background: url("../img/hero/login-765.webp") center / cover no-repeat;
}

.download-card .art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #111a25 0%, rgba(17, 26, 37, 0.1) 40%, rgba(10, 14, 20, 0.2));
}

.download-card .art img {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 70%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
}

.dl-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text-2);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.platform:hover {
  color: var(--text-2);
  border-color: var(--ice-line);
  transform: translateY(-2px);
}

.platform.current {
  border-color: rgba(143, 227, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(143, 227, 255, 0.15) inset;
}

.platform svg {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  color: var(--ice);
}

.platform strong {
  font-size: 1rem;
}

.platform span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

thead th {
  position: sticky;
  top: 0;
  background: #0f1620;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgba(143, 227, 255, 0.03);
}

td.num,
th.num {
  text-align: right;
}

.cmd-table {
  table-layout: fixed;
}

.cmd-table th:first-child,
.cmd-table td:first-child {
  width: 270px;
}

.cmd-table td:first-child code {
  display: inline-block;
  margin: 2px 4px 2px 0;
}

@media (max-width: 680px) {
  .cmd-table th:first-child,
  .cmd-table td:first-child {
    width: 46%;
  }
}

/* hiscores */

.hs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.hs-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.hs-side h2 {
  margin: 10px 10px 8px;
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hs-side ul {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.hs-side li + li {
  margin: 0;
}

.hs-side button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.hs-side button svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.hs-side button:hover {
  background: rgba(143, 227, 255, 0.05);
  color: #fff;
}

.hs-side button[aria-current="true"] {
  background: rgba(143, 227, 255, 0.1);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--ice);
}

.hs-side button[aria-current="true"] svg {
  color: var(--ice);
}

.hs-select {
  display: none;
}

.hs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.hs-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.hs-head h2 svg {
  width: 30px;
  height: 30px;
  color: var(--ice);
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.source-badge[data-source="live"] .dot {
  background: var(--ok);
}

.source-badge[data-source="sample"] {
  border-color: rgba(251, 191, 36, 0.4);
  color: #fcd98a;
}

.source-badge[data-source="sample"] .dot {
  background: var(--warn);
}

.search {
  position: relative;
  flex: 1;
  max-width: 340px;
  min-width: 220px;
}

.search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--muted);
  pointer-events: none;
}

input[type="search"],
input[type="text"],
select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #0c1219;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.search input {
  padding-left: 40px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--ice-line);
  box-shadow: 0 0 0 3px rgba(143, 227, 255, 0.12);
}

.hs-table td.rank {
  width: 84px;
  color: var(--muted);
  font-weight: 700;
}

.hs-table .player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.hs-table .player button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.hs-table .player button:hover {
  color: var(--ice);
}

.hs-table tr.podium-1 td.rank {
  color: #ffe08a;
}

.hs-table tr.podium-2 td.rank {
  color: #dfe7f0;
}

.hs-table tr.podium-3 td.rank {
  color: #f0b48a;
}

.medal {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.82rem;
}

.podium-1 .medal {
  background: radial-gradient(circle at 35% 30%, #fff1b8, #d4a017);
  color: #2b1d00;
}

.podium-2 .medal {
  background: radial-gradient(circle at 35% 30%, #ffffff, #9aa8ba);
  color: #10161e;
}

.podium-3 .medal {
  background: radial-gradient(circle at 35% 30%, #ffd2b0, #b9692f);
  color: #2b1300;
}

.mode-badge {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mode-badge.iron {
  border-color: rgba(185, 185, 196, 0.45);
  color: #d6d6de;
}

.mode-badge.hc {
  border-color: rgba(255, 96, 96, 0.45);
  color: #ffb0b0;
}

.mode-badge.uim {
  border-color: rgba(201, 162, 255, 0.45);
  color: #dcc6ff;
}

.mode-badge.gim {
  border-color: rgba(79, 212, 236, 0.45);
  color: #a9ecf7;
}

.mode-badge.rogue {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fcd98a;
}

mark {
  background: rgba(143, 227, 255, 0.22);
  color: #fff;
  border-radius: 3px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.pager .btn-row {
  gap: 8px;
}

.empty {
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
}

.player-card {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--ice-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 38, 56, 0.55), var(--panel));
}

.player-card[hidden] {
  display: none;
}

.player-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.player-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.pc-grid button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(10, 14, 20, 0.6);
  color: var(--text-2);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
}

.pc-grid button:hover {
  border-color: var(--ice-line);
}

.pc-grid svg {
  width: 18px;
  height: 18px;
  color: var(--ice);
  flex-shrink: 0;
}

.pc-grid b {
  display: block;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.pc-grid small {
  color: var(--muted);
}

/* store */

.ranks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rank-card {
  --gem: var(--ice);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rank-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gem), transparent);
}

.rank-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gem) 22%, transparent), transparent 70%);
  pointer-events: none;
}

.rank-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gem) 45%, transparent);
  box-shadow: var(--shadow), 0 14px 44px -18px color-mix(in srgb, var(--gem) 70%, transparent);
}

.rank-card .gem {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--gem) 55%, transparent));
}

.rank-card h3 {
  margin: 0;
  color: var(--gem);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.rank-card .price {
  margin: 2px 0 14px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.rank-card .price small {
  color: var(--muted);
  font-weight: 500;
}

.rank-card .headline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.rank-card .headline div {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8, 12, 18, 0.55);
}

.rank-card .headline b {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.rank-card .headline span {
  color: var(--muted);
  font-size: 0.72rem;
}

.rank-card ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.rank-card li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  line-height: 1.45;
}

.rank-card li::before {
  content: "+";
  position: absolute;
  left: 2px;
  color: var(--gem);
  font-weight: 800;
}

.rank-card .inherit {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
  color: var(--faint);
  font-size: 0.78rem;
}

.rank-opal {
  --gem: var(--opal);
}

.rank-sapphire {
  --gem: var(--sapphire);
}

.rank-emerald {
  --gem: var(--emerald);
}

.rank-ruby {
  --gem: var(--ruby);
}

.rank-diamond {
  --gem: var(--diamond);
}

.rank-onyx {
  --gem: var(--onyx);
}

.rank-zenyte {
  --gem: var(--zenyte);
}

.rank-platinum {
  --gem: var(--platinum);
}

.compare {
  font-size: 0.88rem;
}

.compare th,
.compare td {
  padding: 10px 9px;
}

.compare th:first-child,
.compare td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 190px;
  padding-left: 16px;
  background: #0f1620;
  color: var(--text);
  font-weight: 600;
  text-align: left;
  white-space: normal;
}

.compare thead th:first-child {
  z-index: 2;
}

.compare td {
  text-align: center;
  white-space: nowrap;
}

.compare thead th {
  text-align: center;
}

.compare thead th img {
  width: 26px;
  height: 26px;
  margin: 0 auto 4px;
  image-rendering: pixelated;
}

.compare .yes {
  color: var(--ok);
  font-weight: 700;
}

.compare .no {
  color: var(--faint);
}

.bond-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.bond-row li {
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 10px;
  background: rgba(20, 46, 34, 0.35);
  color: #bbf7d0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* vote */

.vote-sites {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.vote-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--text);
  font-weight: 650;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

a.vote-site:hover {
  color: #fff;
  border-color: var(--ice-line);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.vote-site .num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ice-soft);
  color: var(--ice);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.vote-site .label {
  flex: 1;
}

.vote-site small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.vote-site.soon {
  opacity: 0.7;
}

.vote-site svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.reward-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reward-list li {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.reward-list .icon-badge {
  margin: 0;
  flex-shrink: 0;
}

.reward-list h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.reward-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* rules */

.rules-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rules-list > li {
  position: relative;
  margin: 0;
  padding: 22px 22px 20px 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  counter-increment: rule;
}

.rules-list > li::before {
  content: counter(rule);
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ice-line);
  border-radius: 11px;
  background: var(--ice-soft);
  color: var(--ice);
  font-family: var(--font-display);
  font-weight: 700;
}

.rules-list h2 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.rules-list p,
.rules-list ul {
  margin: 0 0 0.6em;
  color: var(--text-2);
  font-size: 0.97rem;
}

.rules-list p:last-child,
.rules-list ul:last-child {
  margin-bottom: 0;
}

.rules-list .note {
  color: #fcd98a;
}

/* FAQ */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color 0.25s ease;
}

.faq details[open] {
  border-color: var(--ice-line);
}

.faq summary {
  position: relative;
  padding: 18px 56px 18px 20px;
  color: var(--text);
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--ice);
  border-bottom: 2px solid var(--ice);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  margin-top: -3px;
  transform: rotate(-135deg);
}

.faq .answer {
  padding: 0 20px 18px;
  color: var(--text-2);
}

.faq .answer p:last-child {
  margin: 0;
}

/* footer */

.site-footer {
  position: relative;
  padding: 64px 0 30px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(34, 135, 217, 0.07), transparent 70%),
    var(--bg-0);
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 40px;
}

.footer-brand img {
  width: 190px;
  margin: -14px 0 10px -10px;
}

.footer-brand p {
  max-width: 340px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ice);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text-2);
}

.socials a:hover {
  border-color: var(--ice-line);
  color: #fff;
}

.socials a[hidden] {
  display: none;
}

.socials svg {
  width: 19px;
  height: 19px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

/* reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* 404 */

.notfound {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 120px 20px 60px;
  text-align: center;
}

.notfound h1 {
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
}

/* responsive */

@media (max-width: 1140px) {
  .main-nav li > a {
    padding: 8px 9px;
    font-size: 0.9rem;
  }

  .header-actions .status-pill .long {
    display: none;
  }

  .ranks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1000px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-top, var(--header-h));
    bottom: 0;
    z-index: 49;
    padding: 18px 20px 40px;
    overflow-y: auto;
    background: rgba(6, 9, 13, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav li > a {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    font-size: 1.05rem;
  }

  .main-nav li > a::after {
    display: none;
  }

  .nav-cta {
    display: grid;
    gap: 10px;
    margin-top: 20px;
  }

  .nav-cta .btn {
    width: 100%;
  }

  body[data-page="home"] .main-nav li > a[data-nav="home"],
  body[data-page="play"] .main-nav li > a[data-nav="play"],
  body[data-page="news"] .main-nav li > a[data-nav="news"],
  body[data-page="hiscores"] .main-nav li > a[data-nav="hiscores"],
  body[data-page="vote"] .main-nav li > a[data-nav="vote"],
  body[data-page="store"] .main-nav li > a[data-nav="store"],
  body[data-page="rules"] .main-nav li > a[data-nav="rules"] {
    border-color: var(--ice-line);
    color: var(--ice);
  }

  .header-actions {
    margin-left: auto;
  }

  .nav-open {
    overflow: hidden;
  }

  .grid-4,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .events-grid,
  .news-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature,
  .feature.wide {
    grid-column: span 1;
  }

  .split,
  .download-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .split.reverse > :first-child {
    order: 0;
  }

  .download-card .art {
    min-height: 220px;
    order: -1;
  }

  .platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .toc-wrap {
    position: static;
  }

  .hs-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hs-side {
    display: none;
  }

  .hs-select {
    display: block;
    margin-bottom: 16px;
  }

  .news-card.featured {
    flex-direction: column;
  }

  .news-card.featured .media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .news-card.featured .body {
    padding: 22px;
  }

  .reward-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15.5px;
  }

  .container {
    padding-inline: 16px;
  }

  .header-actions .btn {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: calc(var(--header-h) + 36px) 0 64px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 380px;
  }

  .hero-stat + .hero-stat {
    border-left: 0;
    border-top: 1px solid rgba(143, 227, 255, 0.12);
  }

  .scroll-cue {
    display: none;
  }

  .hero .btn-row .btn,
  .cta-band .btn-row .btn {
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .events-grid,
  .news-grid,
  .gallery,
  .features,
  .ranks-grid,
  .platforms {
    grid-template-columns: 1fr;
  }

  .launch-countdown div {
    min-width: 62px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .rules-list > li {
    padding: 70px 18px 18px;
  }

  .rules-list > li::before {
    left: 18px;
    top: 18px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav .next {
    text-align: left;
  }

  .lightbox figure {
    padding: 64px 10px 10px;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 14px;
    margin-top: 0;
  }

  th,
  td {
    padding: 10px 12px;
  }

  .search {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* teaser */

.teaser-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 96, 96, 0.18);
  border-radius: 18px;
  background: #000;
  box-shadow: 0 30px 90px -30px rgba(255, 70, 40, 0.35), var(--shadow);
}

.teaser-frame img {
  width: 100%;
}

.steps.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 680px) {
  .steps.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .cta-band::before {
    background-image: url("../img/hero/band-900.webp");
  }
}

.gallery.double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery.single {
  grid-template-columns: 1fr;
}

.prose .gallery {
  margin: 1.2em 0 0.4em;
}

@media (max-width: 680px) {
  .gallery.double {
    grid-template-columns: 1fr;
  }
}

.xp-short {
  display: none;
}

@media (max-width: 560px) {
  .hs-table .xp-full {
    display: none;
  }

  .hs-table .xp-short {
    display: inline;
  }

  .hs-table td.rank {
    width: 56px;
  }

  .hs-table .player {
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .hs-table th,
  .hs-table td {
    padding: 10px 10px;
  }

  .source-badge {
    font-size: 0.76rem;
  }
}

/* coming soon */

.hero-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 16px;
  border: 1px solid var(--ice-line);
  border-radius: 999px;
  background: rgba(10, 18, 28, 0.6);
  color: #cfe6ff;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.btn[aria-disabled="true"],
.btn[aria-disabled="true"]:hover {
  pointer-events: none;
  box-shadow: none;
  filter: saturate(0.6);
}

.soon-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.nav-soon,
.footer-soon {
  cursor: not-allowed;
  opacity: 0.55;
}

.main-nav .nav-soon {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
}
