@font-face {
  font-family: "Saira";
  src: url("../assets/fonts/saira-latin.c560ad1d.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Saira";
  src: url("../assets/fonts/saira-italic-latin.4611121f.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.9d1e9576.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400 500;
  size-adjust: 106.5%;
  ascent-override: 91%;
  descent-override: 22.66%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 700;
  size-adjust: 101.65%;
  ascent-override: 95.3%;
  descent-override: 23.73%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Saira Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 700 800;
  size-adjust: 94.7%;
  ascent-override: 119.85%;
  descent-override: 46.36%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Saira Fallback";
  src: local("Arial Bold Italic"), local("Arial-BoldItalicMT");
  font-style: italic;
  font-weight: 700;
  size-adjust: 108.55%;
  ascent-override: 104.56%;
  descent-override: 40.44%;
  line-gap-override: 0%;
}

:root {
  --bg: #0b0c0e;
  --bg-1: #0f1113;
  --bg-2: #141619;
  --bg-3: #1a1d21;
  --bg-4: #22262b;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.11);
  --line-3: rgba(255, 255, 255, 0.18);
  --text: #eef1f4;
  --text-2: #a9b1ba;
  --text-3: #7a838d;

  --accent: #04a4fc;
  --accent-hover: #32b6ff;
  --accent-ink: #00121e;
  --accent-soft: rgba(4, 164, 252, 0.1);
  --accent-line: rgba(4, 164, 252, 0.5);
  --ban: #ff8f8f;

  --font-display: "Saira", "Saira Fallback", "Arial", sans-serif;
  --font-body: "Inter", "Inter Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --radius: 14px;
  --nav-h: 76px;
  --container: 1240px;
  --pad: clamp(18px, 4vw, 40px);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
/* headings and sections focused by script after a jump are not controls */
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* the page scrollbar is not drawn; the bar across the top fills as you scroll (wheel, touch and keys still scroll) */
html { scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.progress.is-on { opacity: 1; }
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  transition: transform 80ms linear;
}

.i {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.i-fill { fill: currentColor; stroke: none; }
/* the play mark of the YouTube icon, left as a hole unless the icon is in full colour */
.i-play { fill: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* game switching: only the active game's blocks are shown */
html[data-game="asa"] [data-for="ase"],
html[data-game="ase"] [data-for="asa"] { display: none !important; }

/* without js every game and cluster is listed in full */
html:not([data-game]) span[data-for="ase"],
.no-js .sw, .no-js .ctabs, .no-js .chips, .no-js .nav-burger { display: none !important; }
.no-js .cpanel[hidden], .no-js .rpanel[hidden] { display: block; }
.no-js .game-block + .game-block, .no-js .cpanel + .cpanel { margin-top: 56px; }
.no-js .rpanel + .rpanel { margin-top: 28px; }
.js .nojs-title {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.no-js .nojs-title { margin: 0 0 16px; font: 800 24px/1.1 var(--font-display); text-transform: uppercase; }
.no-js .nojs-title--sub { font-size: 18px; color: var(--accent); }

/* ---------- Tags (slanted, from the wordmark's lean) ---------- */

.tag {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6em;
  height: 22px;
  padding: 0 0.62em;
  font: 700 11px/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 4px;
  background: var(--bg-4);
  transform: skewX(-14deg);
}
.tag--accent { color: var(--accent-ink); }
.tag--accent::before { background: var(--accent); }
.tag--pvp { color: var(--accent-ink); }
.tag--pvp::before { background: var(--accent); }
.tag--pve { color: var(--accent); }
.tag--pve::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.tag--code { color: var(--text-2); }
.tag--code::before { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Buttons ---------- */

/* angular CTAs: square corners, the primary has its lower right corner cut on the logo's lean;
   on hover a fill wipes in from the left and the chevron steps forward */
.btn,
.nbtn,
.gate-go {
  --cut: 12px;
  --wipe: rgba(255, 255, 255, 0.1);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
  font: 700 14px/1 var(--font-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease, transform 0.2s ease;
}
.btn::before, .btn::after,
.nbtn::before, .nbtn::after,
.gate-go::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.btn::before, .nbtn::before, .gate-go::before {
  background: rgba(11, 12, 14, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.3s ease;
}
.btn::after, .nbtn::after {
  background: var(--wipe);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease-out);
}
.btn .i, .nbtn .i, .gate-go .i { width: 18px; height: 18px; }
.btn .chev, .nbtn .chev, .gate-go .chev {
  width: 15px; height: 15px;
  margin-right: -3px;
  stroke-width: 2.4;
  transition: transform 0.45s var(--ease-soft);
}
.btn:active, .nbtn:active { transform: translateY(1px); }

.btn--primary, .nbtn--fill { --wipe: #5ccbff; color: var(--accent-ink); }
.btn--primary::before, .btn--primary::after,
.nbtn--fill::before, .nbtn--fill::after {
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
.btn--primary::before, .nbtn--fill::before { background: var(--accent); box-shadow: none; }
.btn--ghost, .nbtn--line { --wipe: rgba(4, 164, 252, 0.16); }

/* hover only where a pointer can hover, so a tap on a phone does not leave the button lit */
.btn:focus-visible::after, .nbtn:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.btn:focus-visible .chev, .nbtn:focus-visible .chev { transform: translateX(4px); }
.btn--ghost:focus-visible::before, .nbtn--line:focus-visible::before { box-shadow: inset 0 0 0 1px rgba(4, 164, 252, 0.7); }
@media (hover: hover) {
  .btn:hover::after, .nbtn:hover::after { transform: scaleX(1); transform-origin: left center; }
  .btn:hover .chev, .nbtn:hover .chev { transform: translateX(4px); }
  .btn--ghost:hover::before, .nbtn--line:hover::before { box-shadow: inset 0 0 0 1px rgba(4, 164, 252, 0.7); }
}

.btn { height: 46px; padding: 0 24px; }
.btn--primary { padding-right: calc(24px + var(--cut) / 2); }
.btn--lg { --cut: 14px; height: 52px; padding: 0 28px; font-size: 15px; }
.btn--lg.btn--primary { padding-right: calc(28px + var(--cut) / 2); }
.btn--block { width: 100%; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.link .i { width: 15px; height: 15px; }
.link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Nav (floating island) ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: calc(12px + env(safe-area-inset-top)) 12px 0;
  pointer-events: none;
}
/* the logo in the middle: two equal sides, each keeping at least the width of what it holds */
.nav-island {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  max-width: 1200px;
  height: 60px;
  margin-inline: auto;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(22, 22, 24, 0.72);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}
.nav-side { display: flex; align-items: center; gap: 4px; }
.brand { display: block; border-radius: 8px; }
.brand img { width: auto; height: 54px; }
/* the links sit close to the logo on both sides: the switcher keeps the far left, the buttons the far right */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-side > .nav-links:last-child { margin-left: auto; }
.nav-links > a {
  position: relative;
  color: rgba(238, 241, 244, 0.86);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links > a:hover { color: var(--text); }
.nav-links > a.is-active { color: var(--accent); }
.nav-links > a.is-active::after,
.drop-btn.is-active .drop-label::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* the links are on the bar from 1024px; the switcher and the buttons keep their distance from them */
@media (min-width: 1024px) {
  .nav-island { column-gap: 32px; }
  .nav-side { gap: 24px; }
}
/* below 1200px the switcher shows its logo alone, so the four links fit left of the logo */
@media (min-width: 1024px) and (max-width: 1199px) {
  .sw-label { display: none; }
}
/* under 1100px the right side (Apply, News with its arrow, Store and the buttons) would push the logo off centre */
@media (min-width: 1024px) and (max-width: 1099px) {
  .nav-links { gap: 20px; }
  .nav-side { gap: 18px; }
}

/* compact nav buttons: same angular look, island sized */
.nbtn { --cut: 9px; height: 36px; padding: 0 16px; gap: 8px; font-size: 12.5px; }
.nbtn--fill { padding-right: calc(16px + var(--cut) / 2); }
.nbtn .chev { width: 13px; height: 13px; }
.nbtn .i:not(.chev) { width: 17px; height: 17px; }
.nav-discord { padding: 0 12px; font-variant-numeric: tabular-nums; }
.nav-burger {
  display: none;
  flex: none;
  width: 36px; height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  transition: background-color 0.2s ease;
}
.nav-burger:hover { background: rgba(255, 255, 255, 0.06); }
.nav-burger .i { width: 18px; height: 18px; }

/* glint that crosses the primary nav button, in its own layer so ::after stays free for the wipe */
.shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
.shine::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 55%;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.55) 50%, transparent 82%);
  transform: translateX(-110%) skewX(-18deg);
  animation: cta-shine 3s cubic-bezier(0.4, 0, 0.25, 1) infinite;
}
@keyframes cta-shine {
  0% { transform: translateX(-110%) skewX(-18deg); }
  70%, 100% { transform: translateX(220%) skewX(-18deg); }
}

/* ---------- Game switcher ---------- */

.sw { position: relative; flex: none; }
.sw-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.2s ease;
}
.sw-btn:hover, .sw-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.06); }
.sw-btn > .i { width: 12px; height: 12px; stroke-width: 2.4; opacity: 0.6; transition: transform 0.2s ease; }
.sw-btn[aria-expanded="true"] > .i { transform: rotate(180deg); }
.sw-label { min-width: 4.4em; text-align: left; }

/* game logos where the ASA/ASE tags used to be; the A emblem is wider, so it sits a little lower to match */
.sw-game, .menu-logo, .kicker-logo { display: block; width: auto; }
.sw-game { height: 30px; }
.sw-game--ase { height: 23px; }
.menu-logo { height: 26px; }
.menu-logo--ase { height: 20px; }
.kicker-logo { height: 44px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.kicker-logo--ase { height: 34px; }
.kicker-mark { display: block; width: auto; height: 26px; }
.kicker-mark--ase { height: 20px; }
/* opaque on purpose: a backdrop blur nested in the island's own cannot blur the page */
.sw-panel {
  position: absolute;
  top: calc(100% + 21px);
  left: -10px;
  width: 400px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #101012;
  box-shadow: 0 28px 64px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: none;
}
/* display:none while closed so the lazy game logos are only fetched on first open */
.sw.is-open .sw-panel {
  display: block;
  animation: panel-drop 0.25s ease both;
}
@keyframes panel-drop {
  from { opacity: 0; transform: translateY(-4px); }
}
.sw-head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font: 500 10px/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sw-list { display: grid; gap: 6px; margin: 0; padding: 8px; list-style: none; }
.sw-list:focus { outline: none; }
.sw-opt {
  display: grid;
  grid-template-columns: 10px 72px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.sw-opt:hover, .sw-opt.is-focus { border-color: rgba(4, 164, 252, 0.32); background: rgba(4, 164, 252, 0.06); }
.sw-dot {
  width: 10px; height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.sw-opt:hover .sw-dot, .sw-opt.is-focus .sw-dot { border-color: rgba(4, 164, 252, 0.6); background: rgba(4, 164, 252, 0.4); }
.sw-opt[aria-selected="true"] .sw-dot { border-color: var(--accent); background: var(--accent); }
.sw-logo { width: 72px; height: 44px; object-fit: contain; }
.sw-name { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.sw-meta { display: block; margin-top: 3px; color: var(--text-3); font-size: 12.5px; }
.sw-check { color: var(--accent); opacity: 0; }
.sw-check .i { width: 18px; height: 18px; }
.sw-opt[aria-selected="true"] .sw-check { opacity: 1; }

/* ---------- News list on the bar ---------- */

.drop { position: relative; }
.drop-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(238, 241, 244, 0.86);
  line-height: inherit;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.drop-btn:hover, .drop-btn[aria-expanded="true"] { color: var(--text); }
.drop-btn.is-active { color: var(--accent); }
.drop-btn > .i { width: 12px; height: 12px; stroke-width: 2.4; opacity: 0.6; transition: transform 0.2s ease; }
.drop-btn[aria-expanded="true"] > .i { transform: rotate(180deg); }
.drop-label { position: relative; }
/* the button sits in the middle of the 60px bar, so 50% + 35px hangs the panel 5px under the island, level with the game list */
.drop-panel {
  position: absolute;
  top: calc(50% + 35px);
  left: -16px;
  width: 300px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #101012;
  box-shadow: 0 28px 64px -18px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: none;
}
/* a bridge over the 24px gap, so the pointer can travel from the button to the list without closing it; it must not
   reach the button (a click there would land on the list), so the list only fades in instead of sliding up to it */
.drop-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 23px; }
.drop.is-open .drop-panel { display: block; animation: fade-in 0.2s ease both; }
.no-js .drop:hover .drop-panel, .no-js .drop:focus-within .drop-panel { display: block; }
.drop-panel .sw-head { border-radius: 12px 12px 0 0; }
.drop-list { display: grid; gap: 6px; margin: 0; padding: 8px; list-style: none; }
.drop-opt {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.drop-opt:hover, .drop-opt:focus-visible { border-color: rgba(4, 164, 252, 0.32); background: rgba(4, 164, 252, 0.06); }
.drop-opt:hover .sw-dot, .drop-opt:focus-visible .sw-dot { border-color: rgba(4, 164, 252, 0.6); background: rgba(4, 164, 252, 0.4); }
.drop-opt[aria-current="page"] .sw-dot { border-color: var(--accent); background: var(--accent); }
.drop-opt[aria-current="page"] .drop-name { color: var(--accent); }
.drop-name { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.drop-meta { display: block; margin-top: 3px; color: var(--text-3); font-size: 12.5px; line-height: 1.4; }
.drop-opt > .i { width: 15px; height: 15px; color: var(--text-3); transition: transform 0.2s ease, color 0.2s ease; }
.drop-opt:hover > .i, .drop-opt:focus-visible > .i { transform: translateX(3px); color: var(--accent); }

/* ---------- Mobile menu (second island) ---------- */

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0, 0, 0, 0.6);
  animation: fade-in 0.25s ease both;
}
.menu-backdrop[hidden] { display: none; }
.menu {
  position: fixed;
  z-index: 49;
  left: 12px;
  right: 12px;
  top: calc(80px + env(safe-area-inset-top));
  max-height: calc(100dvh - 96px - env(safe-area-inset-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 20px 24px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  animation: menu-up 0.35s var(--ease-out) both;
}
.menu[hidden] { display: none; }
@keyframes fade-in {
  from { opacity: 0; }
}
@keyframes menu-up {
  from { opacity: 0; transform: translateY(10px); }
}
.menu-links { display: grid; }
.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  text-decoration: none;
}
.menu-links a .i { width: 16px; height: 16px; color: var(--text-3); }
.menu-label {
  margin-top: 14px;
  color: var(--text-3);
  font: 500 10px/1.2 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.menu-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.menu-game {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.menu-game[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.menu-game:not([aria-pressed="true"]) .menu-logo { opacity: 0.6; filter: grayscale(0.6); }
.menu-links a[aria-current="page"] { color: var(--accent); }
.menu-foot { display: flex; gap: 8px; margin-top: 20px; }
.menu-foot .nbtn { flex: 1; }

/* ---------- Gateway (first visit) ---------- */

@property --split {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
@property --fill {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.gate { display: none; --split: 50%; }
html.gate-on body { overflow: hidden; }
html.gate-on .skip { display: none; }
html.gate-on:not(.gate-picked) .hero-img { background-image: none !important; }

html.gate-on .gate {
  --tilt: 9vh;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
  overflow: hidden;
  background: var(--bg);
  transition: --split 0.8s var(--ease-out), opacity 0.45s ease;
}
.gate:focus { outline: none; }
/* only the Enter buttons move the split; :where keeps these weaker than the exit states below */
.gate:where(:has(.gate-side--asa .gate-go:hover, .gate-side--asa .gate-go:focus-visible)) { --split: 63%; }
.gate:where(:has(.gate-side--ase .gate-go:hover, .gate-side--ase .gate-go:focus-visible)) { --split: 37%; }
/* narrower screens move it less, so the divider stays clear of the other button */
@media (max-width: 1199px) {
  .gate:where(:has(.gate-side--asa .gate-go:hover, .gate-side--asa .gate-go:focus-visible)) { --split: 60%; }
  .gate:where(:has(.gate-side--ase .gate-go:hover, .gate-side--ase .gate-go:focus-visible)) { --split: 40%; }
}
@media (max-width: 899px) {
  .gate:where(:has(.gate-side--asa .gate-go:hover, .gate-side--asa .gate-go:focus-visible)) { --split: 57%; }
  .gate:where(:has(.gate-side--ase .gate-go:hover, .gate-side--ase .gate-go:focus-visible)) { --split: 43%; }
}
.gate.is-leaving { pointer-events: none; }
.gate.is-leaving.pick-asa { --split: 125%; }
.gate.is-leaving.pick-ase { --split: -25%; }
.gate.is-gone { opacity: 0; }

.gate-side {
  position: absolute;
  inset: 0;
  color: var(--text);
}
.gate-side--ase { z-index: 1; }
.gate-side--asa {
  z-index: 2;
  clip-path: polygon(0 0, calc(var(--split) + var(--tilt)) 0, calc(var(--split) - var(--tilt)) 100%, 0 100%);
}
.gate-art { position: absolute; inset: 0; }
.gate-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
}
.gate-side--asa .gate-img { background-image: url("../assets/img/gate-asa-1920.webp"); background-position: 30% 35%; }
.gate-side--ase .gate-img { background-image: url("../assets/img/gate-ase-1920.webp"); background-position: 70% 35%; }
@media (max-width: 1400px) and (max-resolution: 1dppx), (max-width: 800px) {
  .gate-side--asa .gate-img { background-image: url("../assets/img/gate-asa-1280.webp"); }
  .gate-side--ase .gate-img { background-image: url("../assets/img/gate-ase-1280.webp"); }
}
/* phones get portrait crops of the same art */
@media (max-width: 760px) {
  .gate-side--asa .gate-img { background-image: url("../assets/img/gate-asa-m.webp"); background-position: 50% 30% !important; }
  .gate-side--ase .gate-img { background-image: url("../assets/img/gate-ase-m.webp"); background-position: 50% 30% !important; }
}
.gate-img--gray { filter: grayscale(1) brightness(0.74) contrast(1.06); }
.gate-img--color { opacity: 0; transition: opacity 0.6s ease; }
.gate-side:has(.gate-go:hover, .gate-go:focus-visible) .gate-img--color,
.gate-side.is-picked .gate-img--color { opacity: 1; }
/* dim layer: the side that is not being looked at steps back */
.gate-art::before,
.gate-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.gate-art::before { background: #000; opacity: 0; transition: opacity 0.6s ease; }
.gate-art::after {
  background:
    linear-gradient(180deg, rgba(11, 12, 14, 0.74) 0%, rgba(11, 12, 14, 0) 30%),
    linear-gradient(0deg, rgba(11, 12, 14, 0.85) 0%, rgba(11, 12, 14, 0) 52%);
}
.gate:has(.gate-side--asa .gate-go:hover, .gate-side--asa .gate-go:focus-visible) .gate-side--ase .gate-art::before,
.gate:has(.gate-side--ase .gate-go:hover, .gate-side--ase .gate-go:focus-visible) .gate-side--asa .gate-art::before { opacity: 0.38; }

.gate-info {
  position: absolute;
  z-index: 2;
  top: 56%;
  left: 25%;
  width: min(340px, 34vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}
/* the buttons stay put while the art moves under them, so a button never slides away from the cursor */
.gate-side--ase .gate-info { left: 75%; }
.gate:has(.gate-side--asa .gate-go:hover, .gate-side--asa .gate-go:focus-visible) .gate-side--ase :is(.gate-info, .gate-corner),
.gate:has(.gate-side--ase .gate-go:hover, .gate-side--ase .gate-go:focus-visible) .gate-side--asa :is(.gate-info, .gate-corner) { opacity: 0.55; }
.gate-meta { color: #c9d0d7; font-size: 14.5px; }
.gate-corner {
  position: absolute;
  z-index: 2;
  bottom: clamp(20px, 4.5vh, 48px);
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.6));
  transition: opacity 0.4s ease;
}
.gate-side--asa .gate-corner { left: clamp(20px, 3vw, 52px); height: clamp(96px, 15vh, 150px); }
.gate-side--ase .gate-corner { right: clamp(20px, 3vw, 52px); height: clamp(64px, 10vh, 104px); }
.gate-go { height: 46px; margin-top: 6px; padding: 0 24px; }
.gate-go::before {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}
/* the dark plate clears once the fill has passed the label */
.gate-go:hover::before,
.gate-go:focus-visible::before,
.gate-side.is-picked .gate-go::before {
  background: transparent;
  box-shadow: inset 0 0 0 1px transparent;
  transition-delay: 0.12s;
  transition-duration: 0.2s;
}
/* the fill carries a dark copy of the label, so text over the blue is dark and the rest stays light at every frame;
   it grows from the left and, on leave, retracts to the right */
.gate-go-fill {
  --fill: 0%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  padding: inherit;
  background: var(--accent);
  color: var(--accent-ink);
  pointer-events: none;
  clip-path: polygon(calc(100% - var(--fill)) 0, 100% 0, calc(100% - var(--cut)) 100%, calc(100% - var(--fill) - var(--cut)) 100%);
  transition: --fill 0.5s var(--ease-out);
}
.gate-go:hover .gate-go-fill,
.gate-go:focus-visible .gate-go-fill,
.gate-side.is-picked .gate-go-fill {
  --fill: 100%;
  clip-path: polygon(0 0, var(--fill) 0, calc(var(--fill) - var(--cut)) 100%, 0 100%);
}
.gate-go:hover .chev,
.gate-go:focus-visible .chev { transform: translateX(4px); }
.gate-go:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.gate-line {
  position: absolute;
  inset: 0;
  z-index: 3;
  /* an image rather than a colour: contrast checkers ignore clip-path and would read this whole layer as the title's background */
  background: linear-gradient(var(--accent), var(--accent));
  pointer-events: none;
  clip-path: polygon(calc(var(--split) + var(--tilt) - 1px) 0, calc(var(--split) + var(--tilt) + 1px) 0, calc(var(--split) - var(--tilt) + 1px) 100%, calc(var(--split) - var(--tilt) - 1px) 100%);
  --clear: calc(clamp(18px, 4vh, 40px) + clamp(62px, 9vh, 92px) + 10px + clamp(26px, 3vw, 40px));
  -webkit-mask-image: linear-gradient(180deg, transparent var(--clear), #000 calc(var(--clear) + 64px), #000 calc(100% - 96px), transparent calc(100% - 44px));
  mask-image: linear-gradient(180deg, transparent var(--clear), #000 calc(var(--clear) + 64px), #000 calc(100% - 96px), transparent calc(100% - 44px));
}
.gate-top {
  position: absolute;
  z-index: 4;
  top: clamp(18px, 4vh, 40px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.gate-badge { width: auto; height: clamp(62px, 9vh, 92px); }
.gate-title {
  font: 800 clamp(26px, 3vw, 40px)/1 var(--font-display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gate-title em { font-style: normal; color: var(--accent); }
.gate-note {
  position: absolute;
  z-index: 4;
  bottom: clamp(16px, 3.5vh, 32px);
  left: 50%;
  color: var(--text-2);
  font-size: 13.5px;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}
.gate.is-leaving .gate-info,
.gate.is-leaving .gate-top,
.gate.is-leaving .gate-note,
.gate.is-leaving .gate-line { opacity: 0; transition: opacity 0.3s ease; }

/* phones and portrait tablets: the two games stack, ASA on top */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1024px) {
  html.gate-on .gate { --tilt: 6vw; }
  .gate:where(:has(.gate-side--asa .gate-go:hover, .gate-side--asa .gate-go:focus-visible)) { --split: 52%; }
  .gate:where(:has(.gate-side--ase .gate-go:hover, .gate-side--ase .gate-go:focus-visible)) { --split: 48%; }
  .gate.is-leaving.pick-asa, .gate.is-leaving.pick-ase { --split: 50%; }
  .gate-side--asa {
    clip-path: polygon(0 0, 100% 0, 100% calc(var(--split) - var(--tilt)), 0 calc(var(--split) + var(--tilt)));
  }
  .gate-side--asa .gate-art { bottom: 45%; }
  .gate-side--ase .gate-art { top: 45%; }
  .gate-side--asa .gate-img { background-position: 30% 30%; }
  .gate-side--ase .gate-img { background-position: 72% 30%; }
  .gate-info { top: calc(25% + 7vh); left: 50%; width: min(300px, 84vw); gap: 10px; }
  .gate-side--ase .gate-info { top: calc(75% + 3vh); left: 50%; }
  .gate-meta { font-size: 13.5px; }
  .gate-go { height: 42px; padding: 0 20px; font-size: 13px; }
  .gate-side--asa .gate-corner { left: 16px; bottom: calc(100% - var(--split) - var(--tilt) + clamp(18px, 3.3vh, 28px)); height: clamp(48px, 9vh, 88px); }
  .gate-side--ase .gate-corner { right: 16px; bottom: calc(34px + env(safe-area-inset-bottom)); height: clamp(44px, 7vh, 64px); }
  .gate-line {
    clip-path: polygon(0 calc(var(--split) + var(--tilt) - 1px), 100% calc(var(--split) - var(--tilt) - 1px), 100% calc(var(--split) - var(--tilt) + 1px), 0 calc(var(--split) + var(--tilt) + 1px));
    -webkit-mask-image: none;
    mask-image: none;
  }
  .gate-top { top: calc(14px + env(safe-area-inset-top)); gap: 6px; }
  .gate-badge { height: 54px; }
  .gate-title { font-size: 24px; }
  .gate-note { bottom: calc(10px + env(safe-area-inset-bottom)); font-size: 12px; }
}

/* ---------- Hero ---------- */

.hero {
  --bar-h: 56px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(620px, 100svh);
  padding: calc(var(--nav-h) + 48px) 0 calc(var(--bar-h) + 76px);
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0; z-index: -1; background: var(--bg-1); }
.hero-img {
  position: absolute;
  inset: 0;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.5) contrast(1.04);
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
/* the gateway's art, same files and breakpoints as the gateway, so after the pick the hero is already loaded */
.hero-img--asa { --art: url("../assets/img/gate-asa-1920.webp"); background-position: 30% 35%; }
.hero-img--ase { --art: url("../assets/img/gate-ase-1920.webp"); background-position: 70% 35%; }
@media (max-width: 1400px) and (max-resolution: 1dppx), (max-width: 800px) {
  .hero-img--asa { --art: url("../assets/img/gate-asa-1280.webp"); }
  .hero-img--ase { --art: url("../assets/img/gate-ase-1280.webp"); }
}
@media (max-width: 760px) {
  .hero-img--asa { --art: url("../assets/img/gate-asa-m.webp"); background-position: 50% 30%; }
  .hero-img--ase { --art: url("../assets/img/gate-ase-m.webp"); background-position: 50% 30%; }
}
html[data-game="asa"] .hero-img--asa,
html[data-game="ase"] .hero-img--ase,
html.art-ready .hero-img { background-image: var(--art); }
html[data-game="asa"] .hero-img--asa,
html[data-game="ase"] .hero-img--ase { opacity: 1; }
html:not([data-game]) .hero-img--asa { background-image: var(--art); opacity: 1; }
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 62% at 50% 46%, rgba(11, 12, 14, 0.6) 0%, rgba(11, 12, 14, 0.28) 100%),
    linear-gradient(180deg, rgba(11, 12, 14, 0.72) 0%, rgba(11, 12, 14, 0) 24%, rgba(11, 12, 14, 0) 64%, rgba(11, 12, 14, 0.92) 100%),
    rgba(30, 33, 37, 0.38);
}
/* faint diagonal hatch over the art, on the wordmark's lean */
.hero-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 7px);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-title {
  font: 800 clamp(44px, 6.1vw, 92px)/0.93 var(--font-display);
  letter-spacing: -0.018em;
  text-transform: uppercase;
}
.hero-line { display: block; }
.hero-title em, .sec-title em { font-style: normal; color: var(--accent); }
.hero-logo {
  display: block;
  width: auto;
  height: clamp(118px, 20vh, 204px);
  margin-top: clamp(18px, 2.8vh, 32px);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5));
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(20px, 3vh, 32px);
}
/* "enter" cue: a down arrow that keeps bobbing, takes you to the servers */
.hero-enter {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-h) + 14px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  color: rgba(238, 241, 244, 0.55);
  font: 700 10.5px/1 var(--font-body);
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateX(-50%);
  transition: color 0.25s ease;
}
.hero-enter:hover, .hero-enter:focus-visible { color: var(--text); }
.hero-enter .i {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
  color: var(--accent);
  animation: enter-bob 1.9s ease-in-out infinite;
}
@keyframes enter-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
.hero-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.62);
}
.hero-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: var(--bar-h);
}
/* partners in their own colours */
.hero-powered { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.hero-powered-label {
  color: rgba(238, 241, 244, 0.42);
  font: 700 10px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pw { display: block; opacity: 0.86; transition: opacity 0.3s ease; }
.pw:hover, .pw:focus-visible { opacity: 1; }
.pw img { display: block; width: auto; }
.pw--ark img { height: 32px; }
.pw--tebex img { height: 20px; }
.pw--battleye img { height: 22px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.hero-stat { display: flex; align-items: baseline; gap: 7px; }
.hero-stat dt {
  color: var(--text);
  font: 800 15px/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.hero-stat dd {
  margin: 0;
  color: rgba(238, 241, 244, 0.42);
  font: 700 10px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Section pages (servers, rules, settings, commands) ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--nav-h) + clamp(52px, 6.5vw, 92px)) 0 clamp(36px, 4vw, 56px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-art { position: absolute; inset: 0; z-index: -1; background: var(--bg-1); }
.page-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 12, 14, 0.86) 0%, rgba(11, 12, 14, 0.38) 34%, rgba(11, 12, 14, 0.5) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 12, 14, 0.7) 0%, rgba(11, 12, 14, 0) 70%),
    rgba(30, 33, 37, 0.45);
}
.page-img {
  position: absolute;
  inset: 0;
  background-position: center 42%;
  background-size: cover;
  filter: saturate(0.45) contrast(1.05);
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
/* the gateway's art too, in the gateway's files */
.page-img--asa { --art: url("../assets/img/gate-asa-1920.webp"); background-position: 30% 30%; }
.page-img--ase { --art: url("../assets/img/gate-ase-1920.webp"); background-position: 70% 0%; }
@media (max-width: 1400px) and (max-resolution: 1dppx), (max-width: 800px) {
  .page-img--asa { --art: url("../assets/img/gate-asa-1280.webp"); }
  .page-img--ase { --art: url("../assets/img/gate-ase-1280.webp"); }
}
@media (max-width: 760px) {
  .page-img--asa { --art: url("../assets/img/gate-asa-m.webp"); background-position: 50% 30%; }
  .page-img--ase { --art: url("../assets/img/gate-ase-m.webp"); background-position: 50% 30%; }
}
html[data-game="asa"] .page-img--asa,
html[data-game="ase"] .page-img--ase,
html.art-ready .page-img { background-image: var(--art); }
html[data-game="asa"] .page-img--asa,
html[data-game="ase"] .page-img--ase { opacity: 1; }
html:not([data-game]) .page-img--asa { background-image: var(--art); opacity: 1; }
html.gate-on:not(.gate-picked) .page-img { background-image: none !important; }
.page-hero-inner { display: flex; flex-direction: column; align-items: flex-start; }
.page-title {
  font: 800 clamp(40px, 5.4vw, 74px)/0.98 var(--font-display);
  letter-spacing: -0.012em;
  text-transform: uppercase;
}
.page-title em { font-style: normal; color: var(--accent); }
.page-lead {
  max-width: 36em;
  margin-top: 16px;
  color: #c5ccd3;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
}
.section.page-body { padding-top: clamp(28px, 3.4vw, 44px); }
/* the 404 page: the way back, under the page head */
.not-found { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .not-found .btn { flex: 1 1 100%; justify-content: center; } }
html.is-swapping .page-hero-inner [data-for] { animation: swap-in 0.55s var(--ease-out) both; }

.cluster-more { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; padding-inline: 4px; }

/* settings page */
.set-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 20px clamp(24px, 4vw, 48px);
  margin-bottom: 14px;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-1);
}
.set-head .cluster-intro { margin-bottom: 0; }
.set-grid {
  columns: 3 260px;
  column-gap: 32px;
  padding: 6px clamp(20px, 2.4vw, 30px) 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-1);
}

/* commands page */
.cmd-group {
  margin-bottom: 14px;
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-1);
}
.cmd-title {
  margin-bottom: 4px;
  color: var(--accent);
  font: 700 12.5px/1.3 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cmd-intro { margin: 8px 0 2px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.cmd-list { margin: 0; padding: 0; list-style: none; }
.cmd {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.cmd:last-child { border-bottom: 0; padding-bottom: 4px; }
.cmd-head { display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: 8px; }
.cmd-code {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text);
  font: 500 13.5px/1.45 var(--font-mono);
  overflow-wrap: anywhere;
}
.cmd-code .ph { color: var(--accent); }
.key {
  min-width: 32px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-4);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--line-3);
  color: var(--text);
  font: 700 12.5px/1.45 var(--font-mono);
  text-align: center;
}
.cmd-or { color: var(--text-3); font-size: 12.5px; }
.cmd-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.cmd-body .cmd-note { margin-top: 5px; color: var(--text-3); font-size: 13.5px; }
.cmd-foot {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--bg-1);
}
.notice p { max-width: 40em; color: var(--text-2); font-size: 16px; line-height: 1.55; }

@media (max-width: 900px) {
  .set-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cmd { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(76px, 9vw, 120px); }
.servers { padding-top: clamp(72px, 7vw, 96px); }
.sec-head { margin-bottom: clamp(26px, 3.4vw, 40px); }
.sec-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: end;
  gap: 18px clamp(28px, 5vw, 72px);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sec-title {
  font: 800 clamp(32px, 4.1vw, 54px)/1 var(--font-display);
  letter-spacing: -0.008em;
  text-transform: uppercase;
}
.sec-lead {
  max-width: 35.3em;
  color: var(--text-2);
  font-size: clamp(15.5px, 1.25vw, 17px);
  line-height: 1.6;
}
.game-block[data-for] { animation: none; }
html.is-swapping .game-block, html.is-swapping .hero-inner [data-for] {
  animation: swap-in 0.55s var(--ease-out) both;
}
@keyframes swap-in {
  from { opacity: 0; transform: translateY(10px); }
}

/* ---------- Cluster tabs ---------- */

.ctabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.ctabs::-webkit-scrollbar { display: none; }
.ctab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 0;
  min-width: 150px;
  min-height: clamp(108px, 9.4vw, 130px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 5px;
  padding: 14px 18px 15px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color 0.25s ease;
}
/* the art stays gray and dim until hovered or picked, like the gateway */
.ctab-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.62);
  transform: scale(1.02);
  transition: filter 0.5s ease, transform 0.8s var(--ease-out);
}
.ctab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 12, 14, 0.8) 0%, rgba(11, 12, 14, 0.36) 62%, rgba(11, 12, 14, 0.1) 100%),
    linear-gradient(0deg, rgba(11, 12, 14, 0.62) 0%, rgba(11, 12, 14, 0) 72%);
}
.ctab:hover { border-color: var(--line-2); }
.ctab:hover .ctab-art { filter: grayscale(0.4) brightness(0.78); transform: scale(1.05); }
.ctab[aria-selected="true"] { border-color: rgba(255, 255, 255, 0.34); }
.ctab[aria-selected="true"] .ctab-art { filter: none; transform: scale(1.05); }
.ctab-name {
  font: italic 700 clamp(22px, 2.3vw, 32px)/0.95 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: rgba(238, 241, 244, 0.8);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
  transition: color 0.25s ease;
}
.ctab:hover .ctab-name, .ctab[aria-selected="true"] .ctab-name { color: #fff; }
.ctab-meta { color: rgba(238, 241, 244, 0.72); font-size: 13px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.ctab-maps {
  margin-top: 3px;
  color: rgba(238, 241, 244, 0.64);
  font-size: 12.5px;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
/* rules page: taller banners that also list the maps */
.picks { margin-bottom: clamp(24px, 3vw, 36px); }
.picks .ctab { min-height: clamp(150px, 13vw, 176px); }
.cpanel[hidden], .rpanel[hidden] { display: none; }
.js .cpanel:not([hidden]), .js .rpanel:not([hidden]) { animation: panel-in 0.45s var(--ease-out) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* ---------- Servers ---------- */

.cluster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
.cluster-info, .srv-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.cluster-info {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: start;
  gap: 26px clamp(28px, 4vw, 60px);
  padding: clamp(20px, 2.4vw, 30px);
}
.cluster-main .stats { margin-bottom: 0; }
.cluster-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.3;
}
.cluster-title {
  font: 800 clamp(24px, 2.3vw, 31px)/1.04 var(--font-display);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cluster-intro { color: var(--text-2); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 22px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.stat { padding: 12px 14px 13px; background: var(--bg-2); }
.stat dt {
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat dd {
  margin-top: 4px;
  font: 700 23px/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.join { display: grid; gap: 14px; }
.join-title {
  font: 700 15px/1.2 var(--font-body);
  letter-spacing: 0.01em;
}
.join ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 8px; }
.join li {
  position: relative;
  padding-left: 34px;
  counter-increment: step;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.5;
}
.join li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -1px;
  width: 23px; height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--text);
  font: 700 12px/1 var(--font-display);
}
.join-branch {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(4, 164, 252, 0.24);
}
.join-branch-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 600; font-size: 14.5px; }
.join-branch-title .i { color: var(--accent); }
.join-branch li::before { background: rgba(4, 164, 252, 0.16); border-color: rgba(4, 164, 252, 0.3); }
.join-note { color: var(--text-3); font-size: 13.5px; }

.srv-card { overflow: hidden; }
.srv-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.srv-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: var(--text-2); font-size: 14px; }
.srv-total {
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.srv-count strong { font: 700 20px/1 var(--font-display); color: var(--text); margin-right: 2px; }
.srv-hint { color: var(--text-3); font-size: 13px; text-align: right; }
/* one server per row, like a server browser: status, map, search name or IP, load, players, copy */
.srv-list { margin: 0; padding: 4px 8px 8px; list-style: none; }
.srv {
  display: grid;
  grid-template-columns: 8px minmax(190px, 0.9fr) minmax(0, 1.5fr) auto auto;
  grid-template-areas: "dot map val load copy";
  align-items: center;
  gap: 8px 18px;
  padding: 13px 12px;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}
.srv + .srv { box-shadow: 0 -1px 0 var(--line); }
.srv:hover { background: rgba(255, 255, 255, 0.025); }
/* the dot only shows once there is live data for the row: blue when listed, gray when not */
.srv-dot { grid-area: dot; width: 8px; height: 8px; border-radius: 50%; background: var(--line-3); visibility: hidden; }
.srv.is-up .srv-dot, .srv.is-off .srv-dot { visibility: visible; }
.srv.is-up .srv-dot { background: var(--accent); }
.srv-map { grid-area: map; display: flex; align-items: center; gap: 10px; min-width: 0; }
.srv-name { font-weight: 700; font-size: 15px; white-space: nowrap; }
.srv-prem {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
a.srv-prem:hover { background: var(--accent-soft); }
.ctab-live {
  position: absolute;
  top: 11px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.66);
  color: var(--text);
  font: 600 12px/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.srv-val {
  grid-area: val;
  min-width: 0;
  overflow: hidden;
  color: var(--text-3);
  font: 500 13px/1.45 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.srv-card--ip .srv-val { color: var(--text-2); }
/* load bar and players/max, filled from the live status */
.srv-load { grid-area: load; display: flex; align-items: center; gap: 12px; }
.srv-load[hidden] { display: none; }
.srv-bar { width: 96px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.srv-bar i { display: block; width: var(--fill, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b6db8, var(--accent)); transition: width 0.6s var(--ease-out); }
.srv-num { min-width: 64px; color: var(--text-3); font: 600 14px/1 var(--font-body); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.srv-num b { color: var(--text); font-weight: 700; }
.srv-copy {
  grid-area: copy;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 124px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  background: rgba(4, 164, 252, 0.1);
  box-shadow: inset 0 0 0 1px rgba(4, 164, 252, 0.38);
  color: var(--text);
  font: 700 12px/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.srv-copy:hover { background: rgba(4, 164, 252, 0.2); box-shadow: inset 0 0 0 1px rgba(4, 164, 252, 0.7); }
.srv-copy .i { width: 15px; height: 15px; }
.srv-copy .copy-done, .srv-copy-done { display: none; }
.srv-copy.is-done > .i:first-child, .srv-copy.is-done .srv-copy-label { display: none; }
.srv-copy.is-done .copy-done { display: inline-flex; color: var(--accent); }
.srv-copy.is-done .srv-copy-done { display: inline; }

.settings {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-1);
}
.settings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 14px;
}
.settings summary::-webkit-details-marker { display: none; }
.settings summary .i { color: var(--text-2); transition: transform 0.35s var(--ease-out); }
.settings[open] summary .i { transform: rotate(180deg); }
.settings summary:hover { background: rgba(255, 255, 255, 0.02); }
.settings-body {
  columns: 3 250px;
  column-gap: 32px;
  padding: 8px 20px 4px;
  border-top: 1px solid var(--line);
}
.set-group { break-inside: avoid; padding: 14px 0 18px; }
.set-title {
  margin-bottom: 8px;
  color: var(--accent);
  font: 700 12px/1.3 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.set-group ul { margin: 0; padding: 0; list-style: none; }
.set-group li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
}
.set-group li:last-child { border-bottom: 0; }
.set-group p { margin-top: 8px; font-size: 14px; }
.set-sub { margin: 12px 0 2px; color: var(--text) !important; font-weight: 600; font-size: 13.5px !important; }
.set-title + .set-sub { margin-top: 2px; }

/* ---------- Why ---------- */

.why { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%); border-top: 1px solid var(--line); }
.why-head { max-width: 46rem; margin: 0 auto clamp(34px, 4.2vw, 54px); text-align: center; }
.why-head .kicker { justify-content: center; }
.why-head .sec-lead { margin: 18px auto 0; }
.why-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--line);
}
.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 3.2vw, 42px) clamp(18px, 2.6vw, 38px);
  text-align: center;
}
.why-item + .why-item { border-left: 1px solid var(--line); }
.why-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
}
.why-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 0 0 10px;
  font: 700 21px/1.1 var(--font-display);
  text-transform: uppercase;
}
.why-num { color: var(--text-3); font: italic 700 13px/1 var(--font-display); }
.why-item p { max-width: 30em; color: var(--text-2); font-size: 15.5px; }
@media (max-width: 899px) {
  .why-list { grid-template-columns: minmax(0, 1fr); }
  .why-item + .why-item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Rules ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip[aria-selected="true"] { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.36); color: var(--text); }
.chip-n {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.chip[aria-selected="true"] .chip-n { background: rgba(255, 255, 255, 0.12); }
.rule-grid { columns: 2 400px; column-gap: 14px; }
.rule {
  break-inside: avoid;
  margin-bottom: 14px;
  padding: 18px 20px 19px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.rule-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  font: 600 16px/1.4 var(--font-body);
}
.rule-head .tag { flex: none; margin-top: 0; min-width: 3.3em; }
.rule-body { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.rule-body > :last-child { margin-bottom: 0; }
.rule-body p { margin-bottom: 8px; }
.rule-body ul { margin: 0 0 10px; padding-left: 18px; }
.rule-body li { margin: 3px 0; }
.rule-body li::marker, .conduct li::marker { color: var(--accent); }
.rule-sub { margin-top: 12px; color: var(--text); font-weight: 600; }
.pen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 2px !important; }
.pen + ul { margin-top: 10px; }
.pen-step {
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.pen-step--ban { color: var(--ban); border-color: rgba(255, 120, 120, 0.32); background: rgba(255, 120, 120, 0.07); }
.pen-arrow { display: inline-grid; color: var(--text-3); }
.pen-arrow .i { width: 14px; height: 14px; transform: rotate(-90deg); }
.conduct {
  max-width: 860px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
}
.conduct p { margin-bottom: 10px; }
.conduct > :last-child { margin-bottom: 0; }
.conduct ul { margin: 0 0 12px; padding-left: 18px; }

/* ---------- Apply ---------- */

.apply-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(26px, 4.4vw, 60px);
  border-radius: 22px;
  background: linear-gradient(135deg, #16191d 0%, #101215 60%);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
/* the SquirtleArk logo closes the card at the bottom right, under the list */
.apply-logo {
  display: block;
  width: clamp(120px, 12vw, 170px);
  height: auto;
  margin: 24px 0 0 auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}
.apply-head .sec-lead { margin-top: 18px; }
.apply-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.apply-game { color: var(--text-3); font-size: 14px; max-width: 34ch; }
.apply-game strong { color: var(--text-2); font-weight: 600; }
.apply-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.apply-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.apply-item h3 {
  margin-bottom: 6px;
  font: 700 18px/1.15 var(--font-display);
  text-transform: uppercase;
}
.apply-item p { color: var(--text-2); font-size: 15px; }

/* ---------- Store (landing) ---------- */
/* centred head, three packages on a stage, a ladder of steps, then the button to the store page */

.store { border-top: 1px solid var(--line); }
.store-head { max-width: 46rem; margin: 0 auto clamp(30px, 4vw, 48px); text-align: center; }
.store-head .kicker { justify-content: center; }
.store-head .sec-lead { margin: 18px auto 0; }

/* prices, here and on the store page; the page swaps in the visitor's own price (prices.js) */
.price { font-variant-numeric: tabular-nums; }
.off {
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  color: var(--text);
  font: 700 12px/1 var(--font-display);
  letter-spacing: 0.04em;
}
.off[hidden] { display: none; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.product { display: flex; }
.product[hidden] { display: none; }

/* labels and end dates set in the Tebex dashboard */
.pk-flag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 11.5px/1.2 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pk-flag--gold { background: #f5c542; color: #1d1604; }
.pk-flag--purple { background: #9b6bff; color: #fff; }
.pk-flag--pink { background: #ff6fb1; color: #2a0717; }
.pk-flag--green { background: #3ccf7a; color: #04170c; }
.pk-flag--red { background: #ff5a5a; color: #2b0505; }
.pk-flag--white { background: #f2f4f7; color: #111317; }
.product-stage > .pk-flag, .sp-media > .pk-flag { position: absolute; top: 12px; left: 12px; z-index: 1; max-width: calc(100% - 24px); }
.pk-ends { margin-left: 10px; color: var(--accent); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pk-ends[hidden] { display: none; }
.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.25s ease;
}
.product-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-stage {
  position: relative;
  aspect-ratio: 1 / 0.8;
  background: radial-gradient(80% 75% at 50% 42%, #262a30 0%, #181b1f 62%, #141619 100%);
  overflow: hidden;
}
/* the site's hatch along the foot of the stage */
.product-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 35%, #000 100%);
}
/* float on translate and grow on scale, so the two never fight over transform */
.product-stage img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.5));
  animation: product-float 5s ease-in-out infinite;
  transition: scale 0.8s var(--ease-out);
}
.product:nth-child(2) .product-stage img { animation-delay: -1.7s; }
.product:nth-child(3) .product-stage img { animation-delay: -3.4s; }
@keyframes product-float {
  50% { translate: 0 -8px; }
}
.product-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.product-cat { color: var(--text-3); font: 600 11.5px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.product-name { flex: 1; font: 700 clamp(19px, 1.6vw, 22px)/1.12 var(--font-display); text-transform: uppercase; }
.product-price { display: flex; align-items: center; gap: 10px; margin-top: 4px; font: 800 22px/1 var(--font-display); }

.ladder { margin-top: clamp(36px, 4.6vw, 56px); text-align: center; }
.ladder-label { margin-bottom: 14px; color: var(--text-3); font: 600 12px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; }
.ladder-steps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; }
.ladder-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 6px 18px 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text);
  font: 700 15px/1 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.45s var(--ease-out);
}
.ladder-step img { flex: none; width: 40px; height: 40px; object-fit: contain; }
/* the top step stands out */
.ladder-step--top { border-color: rgba(4, 164, 252, 0.55); background: rgba(4, 164, 252, 0.1); }
.ladder-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ladder-arrow { display: grid; color: var(--accent); }
.ladder-arrow .i { width: 20px; height: 20px; stroke-width: 2.4; }
.store-cta { margin-top: clamp(32px, 4vw, 44px); text-align: center; }
.store-note { margin-top: 18px; color: var(--text-3); font-size: 14px; text-align: center; }
@media (hover: hover) {
  .product-card:hover { transform: translateY(-4px); border-color: var(--line-3); }
  .product-card:hover .product-stage img { scale: 1.05; }
  .ladder-step:hover { transform: translateY(-2px); border-color: var(--line-3); }
  .ladder-step--top:hover { border-color: rgba(4, 164, 252, 0.85); }
}

/* ---------- Community ---------- */

.community {
  position: relative;
  isolation: isolate;
  padding-block: clamp(96px, 12vw, 168px);
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
}
.community-art { position: absolute; inset: 0; z-index: -1; background: var(--bg-1); }
.community-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 12, 14, 0.3) 30%, rgba(11, 12, 14, 0.3) 70%, var(--bg) 100%),
    rgba(30, 33, 37, 0.6);
}
.community-img {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(0.45) contrast(1.05);
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.community-img--asa { --art: url("../assets/img/band-asa-1600.webp"); }
.community-img--ase { --art: url("../assets/img/band-ase-1600.webp"); }
@media (max-width: 800px) {
  .community-img--asa { --art: url("../assets/img/band-asa-800.webp"); }
  .community-img--ase { --art: url("../assets/img/band-ase-800.webp"); }
}
html.band-ready .community-img { background-image: var(--art); }
html[data-game="asa"] .community-img--asa,
html[data-game="ase"] .community-img--ase { opacity: 1; }
.community-inner { display: flex; flex-direction: column; align-items: center; }
.community-inner .kicker { justify-content: center; }
.community-inner .sec-title { max-width: 18ch; }
.community-inner .sec-lead { margin-top: 18px; color: #c2c9d0; }
.community-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* ---------- Footer ---------- */

.footer {
  padding: 64px 0 28px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand img { width: 208px; }
.footer-brand p { max-width: 36ch; margin-top: 16px; color: var(--text-3); font-size: 14px; }
.footer-col h3 { margin-bottom: 14px; font: 600 14px/1.3 var(--font-body); color: var(--text); }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-connect .i { width: 16px; height: 16px; color: var(--text-2); }
/* Discord and YouTube in their own colours */
.footer-discord .i { color: #5865f2; }
.footer-youtube .i { color: #f00; }
.footer-youtube .i-play { fill: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}
.footer-bottom p { max-width: 80ch; }
.sig {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.sig-label { color: var(--text-3); font-size: 13px; }
.sig-svg {
  width: auto;
  height: 28px;
  fill: currentColor;
  transform: rotate(-7deg);
  transition: color 0.25s ease, transform 0.3s var(--ease-soft);
}
.sig:hover { color: #fff; }
.sig:hover .sig-svg { transform: rotate(-7deg) scale(1.06); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: #1c2025;
  border: 1px solid var(--line-3);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.4s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--accent); font-weight: 600; }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .reveal-d1.in { transition-delay: 0.08s; }
.js .reveal-d2.in { transition-delay: 0.16s; }
.js .reveal-d3.in { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .nav { padding-inline: 20px; }
}
/* without the links the island is as wide as twice its fuller side, so the logo stays in the middle */
@media (min-width: 640px) and (max-width: 1023px) {
  .nav-island { width: fit-content; }
}
@media (min-width: 768px) {
  .nav { padding-top: calc(16px + env(safe-area-inset-top)); }
  .menu { top: calc(84px + env(safe-area-inset-top)); left: 0; right: 0; width: min(640px, calc(100% - 40px)); margin-inline: auto; }
}
/* the links move to the menu; the switcher, now after the menu button, opens its panel under the island's edge */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .sw { position: static; }
  .sw-panel { top: calc(100% + 10px); left: -1px; }
}
@media (max-width: 767px) {
  :root { --nav-h: 72px; }
}
@media (max-width: 639px) {
  .nav-discord { display: none; }
  .sw-panel { width: calc(100% + 2px); }
}

@media (max-width: 1023px) {
  .cluster { grid-template-columns: minmax(0, 1fr); }
  .cluster-info { grid-template-columns: minmax(0, 1fr); }
  .srv {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    grid-template-areas: "dot map num" ". val val" ". bar copy";
    gap: 6px 12px;
    padding: 12px 10px;
  }
  .srv-load { display: contents; }
  .srv-bar { grid-area: bar; width: auto; }
  .srv-num { grid-area: num; min-width: 0; }
  .srv-val { white-space: normal; overflow-wrap: anywhere; }
  .sec-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .apply-card { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .hero { min-height: 0; padding: calc(var(--nav-h) + 62px) 0 0; }
  .hero-enter { display: none !important; }
  .hero-bar { position: relative; margin-top: 44px; background: rgba(11, 12, 14, 0.5); }
  .hero-bar-inner { flex-direction: column; align-items: stretch; gap: 20px; min-height: 0; padding-block: 18px 20px; }
  .hero-powered { justify-content: center; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; width: 100%; }
  .hero-stat { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-stat dt { font-size: 22px; }
  .ctabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; overflow: visible; }
  .ctab { min-width: 0; min-height: 84px; padding: 12px 16px 13px; }
  .picks .ctab { min-height: 118px; }
  .ctab-name { font-size: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srv-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .srv-hint { text-align: left; }
  .rule-grid { columns: 1; }
  .product-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .ladder-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; margin-inline: auto; }
  .ladder-arrow { display: none; }
  .store-cta .btn { width: 100%; max-width: 420px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 459px) {
  .sw-label { display: none; }
}

@media (max-width: 400px) {
  .hero-cta .btn { width: 100%; }
  .hero-cta { width: 100%; }
}

@media (max-width: 374px) {
  .nav-island { column-gap: 8px; }
  .sw-btn { padding-inline: 8px; }
  .nav-right .nbtn--fill { padding-inline: 12px 14px; letter-spacing: 0.04em; }
  .nav-right .nbtn--fill .chev { display: none; }
}

@media (max-width: 340px) {
  .nav-island { padding-inline: 6px; }
  .brand img { height: 47px; }
  .nav-right .nbtn--fill { padding-inline: 10px 13px; font-size: 12px; letter-spacing: 0.03em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
