/* LEGION RUST — Mirage-style layout, red brand */
@import url("scrollbars.css");
@import url("header-user.css");
@import url("topup.css");
:root {
  --brand: #ff0308;
  --brand-light: #fc6466;
  --brand-hover: #d90206;
  --brand-gradient: linear-gradient(135deg, #ff0308 0%, #fc6466 100%);
  --brand-soft: rgba(255, 3, 8, 0.14);
  --brand-line: rgba(252, 100, 102, 0.45);
  --brand-glow: rgba(255, 3, 8, 0.28);
  --brand-dim: rgba(255, 3, 8, 0.08);

  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: #8a8a8a;

  --font: "Onest", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --wrap: min(1180px, calc(100% - 2.5rem));
  --header-h: 80px;
  --nav-pill: linear-gradient(180deg, rgba(72, 8, 10, 0.95) 0%, rgba(38, 4, 5, 0.98) 100%);
  --radius: 10px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brand);
  color: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.tabular {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* —— Header (Mirage-style) —— */
body.has-fixed-header {
  padding-top: var(--header-h);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  overflow: visible;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: center;
  padding: 0.35rem max(1.5rem, calc((100% - 1180px) / 2));
  background: transparent;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
  will-change: transform, opacity;
}

.header.is-hidden {
  transform: translateY(calc(-100% - 2px));
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
}

.header.is-raid-reveal {
  animation: headerRaidSlam 0.72s cubic-bezier(0.34, 1.35, 0.64, 1) both;
}

.header-surface {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1;
  pointer-events: none;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.35s ease;
}

.header.is-raid-reveal .header-surface {
  box-shadow:
    0 0 0 1px rgba(255, 120, 50, 0.2),
    0 8px 28px rgba(255, 60, 20, 0.18);
}

@keyframes headerRaidSlam {
  0% {
    transform: translateY(calc(-100% - 8px)) scale(1.02);
  }

  45% {
    transform: translateY(10px) scale(1);
  }

  62% {
    transform: translateY(-5px);
  }

  78% {
    transform: translateY(3px);
  }

  100% {
    transform: translateY(0);
  }
}

.header-raid-fx {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

.header > .header-logo,
.header > .header-nav,
.header > .header-actions {
  position: relative;
  z-index: 4;
}

.raid-flash {
  position: absolute;
  left: 50%;
  bottom: -42px;
  width: min(140vw, 920px);
  height: 160px;
  transform: translateX(-50%) scale(0.35);
  background:
    radial-gradient(ellipse 42% 55% at 50% 15%, rgba(255, 210, 120, 0.95) 0%, transparent 58%),
    radial-gradient(ellipse 55% 70% at 50% 25%, rgba(255, 90, 30, 0.85) 0%, rgba(255, 3, 8, 0.45) 42%, transparent 72%);
  opacity: 0;
  filter: blur(2px);
}

.raid-shockwave {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  border: 3px solid rgba(255, 160, 80, 0.9);
  box-shadow:
    0 0 20px rgba(255, 100, 40, 0.8),
    inset 0 0 12px rgba(255, 200, 120, 0.4);
  opacity: 0;
  transform: scale(0.2);
}

.raid-smoke {
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 50, 0.5) 0%, rgba(255, 60, 20, 0.2) 50%, transparent 72%);
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.4);
}

.raid-smoke--b {
  width: 160px;
  height: 100px;
  margin-left: -80px;
  filter: blur(14px);
  background: radial-gradient(circle, rgba(255, 100, 40, 0.45) 0%, transparent 68%);
}

.raid-smoke--c {
  width: 90px;
  height: 90px;
  margin-left: -45px;
  background: radial-gradient(circle, rgba(255, 80, 40, 0.35) 0%, transparent 65%);
  filter: blur(10px);
}

.raid-debris {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 5px;
  height: 5px;
  margin-left: -2px;
  border-radius: 1px;
  background: linear-gradient(135deg, #ffb347 0%, #ff4500 50%, #8b2500 100%);
  box-shadow: 0 0 6px rgba(255, 120, 40, 0.9);
  opacity: 0;
}

.header.is-raid-reveal .raid-flash {
  animation: raidFlashBurst 0.75s ease-out both;
}

.header.is-raid-reveal .raid-shockwave {
  animation: raidShockwave 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.header.is-raid-reveal .raid-smoke {
  animation: raidSmokePuff 0.95s ease-out both;
}

.header.is-raid-reveal .raid-smoke--b {
  animation: raidSmokePuff 1.05s ease-out 0.04s both;
}

.header.is-raid-reveal .raid-smoke--c {
  animation: raidSmokePuffHot 0.85s ease-out 0.02s both;
}

.header.is-raid-reveal .raid-debris {
  animation: raidDebrisFly 0.85s cubic-bezier(0.15, 0.9, 0.35, 1) both;
}

.header.is-raid-reveal .raid-debris:nth-child(6) {
  animation-delay: 0.02s;
  --raid-tx: -86px;
  --raid-ty: -18px;
}

.header.is-raid-reveal .raid-debris:nth-child(7) {
  animation-delay: 0.05s;
  --raid-tx: -82px;
  --raid-ty: -74px;
}

.header.is-raid-reveal .raid-debris:nth-child(8) {
  animation-delay: 0.03s;
  --raid-tx: -20px;
  --raid-ty: -92px;
}

.header.is-raid-reveal .raid-debris:nth-child(9) {
  animation-delay: 0.06s;
  --raid-tx: 34px;
  --raid-ty: -90px;
}

.header.is-raid-reveal .raid-debris:nth-child(10) {
  animation-delay: 0.04s;
  --raid-tx: 78px;
  --raid-ty: -68px;
}

.header.is-raid-reveal .raid-debris:nth-child(11) {
  animation-delay: 0.07s;
  --raid-tx: 82px;
  --raid-ty: -28px;
}

.header.is-raid-reveal .raid-debris:nth-child(12) {
  animation-delay: 0.05s;
  --raid-tx: -58px;
  --raid-ty: -58px;
  width: 3px;
  height: 7px;
}

.header.is-raid-reveal .raid-debris:nth-child(13) {
  animation-delay: 0.08s;
  --raid-tx: 48px;
  --raid-ty: -52px;
  width: 4px;
  height: 3px;
}

.header.is-raid-reveal .raid-debris:nth-child(14) {
  animation-delay: 0.04s;
  --raid-tx: -42px;
  --raid-ty: -112px;
  width: 6px;
  height: 4px;
}

.header.is-raid-reveal .raid-debris:nth-child(15) {
  animation-delay: 0.06s;
  --raid-tx: 68px;
  --raid-ty: -98px;
}

@keyframes raidFlashBurst {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.25);
  }

  12% {
    opacity: 1;
    transform: translateX(-50%) scale(0.85);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.65);
  }
}

@keyframes raidShockwave {
  0% {
    opacity: 0.95;
    transform: scale(0.15);
    border-width: 4px;
  }

  100% {
    opacity: 0;
    transform: scale(14);
    border-width: 1px;
  }
}

@keyframes raidSmokePuff {
  0% {
    opacity: 0;
    transform: scale(0.35) translateY(0);
  }

  25% {
    opacity: 0.45;
  }

  100% {
    opacity: 0;
    transform: scale(1.6) translateY(20px);
  }
}

@keyframes raidSmokePuffHot {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }

  20% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: scale(1.8) translateY(18px);
  }
}

@keyframes raidDebrisFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--raid-tx, 60px), var(--raid-ty, -70px)) rotate(200deg) scale(0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .header.is-hidden {
    transition: none;
  }

  .header.is-raid-reveal {
    animation: none;
  }

  .header.is-raid-reveal .raid-flash,
  .header.is-raid-reveal .raid-shockwave,
  .header.is-raid-reveal .raid-smoke,
  .header.is-raid-reveal .raid-debris,
  .header.is-raid-reveal .raid-bottom-blast,
  .header.is-raid-reveal .raid-firefall {
    animation: none !important;
  }
}

.header-logo {
  justify-self: start;
  align-self: center;
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0;
}

.header-logo:hover .logo-name {
  color: #fff;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.logo-row,
.logo-mirror-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.logo-name,
.logo-mirror-inner {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}

.logo-suffix,
.logo-mirror-suffix {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--brand-light);
  text-transform: uppercase;
}

.logo-mirror {
  display: block;
  width: 100%;
  height: 1.1rem;
  margin-top: 0.14rem;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
}

.logo-mirror-row {
  transform: scaleY(-1);
  margin-top: calc(-1.875rem - 0.05rem);
  opacity: 0.38;
}

.logo-mirror-inner,
.logo-mirror-suffix {
  color: var(--brand-light);
}

.header-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.1rem 0.75rem;
  justify-self: center;
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.15rem;
  flex-wrap: nowrap;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav a {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.55rem 0.35rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.header-nav a:hover {
  color: #fff;
}

.header-nav a.nav-active {
  color: var(--brand-light);
  padding: 0.6rem 1.2rem;
  background: var(--nav-pill);
  box-shadow: inset 0 1px 0 rgba(252, 100, 102, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  justify-self: end;
  grid-column: 3;
  flex-shrink: 0;
  position: relative;
  z-index: 6;
  padding-left: 0.35rem;
  background: linear-gradient(90deg, transparent 0%, rgba(12, 12, 13, 0.92) 18%);
}

.lang-switch {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  font: inherit;
  font-size: 0.75rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 120;
  min-width: 140px;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #141414;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.8125rem;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.lang-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 960px) {
  .header-nav {
    display: flex;
  }
}

/* Узкий desktop: только иконки в меню — не наезжает на переключатель языка */
@media (min-width: 960px) and (max-width: 1240px) {
  .header-nav {
    gap: 0.1rem 0.35rem;
    justify-content: flex-end;
    padding-right: 0.25rem;
  }

  .header-nav a {
    padding: 0.45rem 0.3rem;
    font-size: 0;
  }

  .header-nav a.nav-active {
    padding: 0.45rem 0.55rem;
  }

  .header-nav a > span:not(.nav-ico) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .header-nav a.nav-cup .nav-ico .icon {
    color: #f0b429;
  }
}

@media (min-width: 1241px) {
  .header-nav {
    justify-content: center;
  }
}

@media (max-width: 959px) {
  .header {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: none;
  }

  .header-actions {
    grid-column: 2;
  }

  .logo-name,
  .logo-mirror-inner {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
  }

  .logo-suffix,
  .logo-mirror-suffix {
    font-size: 0.6875rem;
  }

  .logo-mirror {
    height: 0.9rem;
  }

  .logo-mirror-row {
    margin-top: calc(-1.5rem - 0.05rem);
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-fill {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 4px 28px var(--brand-glow);
}

.btn-fill:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 36px var(--brand-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.btn-steam {
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4c430 0%, #e5a820 100%);
  color: #141414;
  box-shadow: 0 2px 14px rgba(229, 168, 32, 0.25);
  text-decoration: none;
}

.btn-steam:hover {
  background: linear-gradient(180deg, #ffd04a 0%, #f0b428 100%);
  box-shadow: 0 4px 22px rgba(229, 168, 32, 0.35);
  filter: none;
  color: #141414;
}

.btn-steam-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.btn-big {
  padding: 0.95rem 1.65rem;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-play-wrap {
  display: inline-flex;
  line-height: 0;
}

.btn-play {
  font-size: 0.65rem;
  opacity: 0.95;
}

.btn.copied {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

.is-placeholder {
  opacity: 0.45;
  pointer-events: none;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
}

.hero-watermark {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 3, 8, 0.12);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
}

.hero-dots {
  position: absolute;
  right: 8%;
  top: 18%;
  width: min(42vw, 420px);
  height: min(55vh, 520px);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 75%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 2;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated) center / cover no-repeat;
  z-index: 0;
}

.hero.has-photo .hero-media {
  opacity: 0.22;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.72) 42%, rgba(10, 10, 10, 0.4) 72%, transparent 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.7) 0%, transparent 30%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
  min-height: inherit;
}

@media (min-width: 960px) {
  .hero-inner {
    padding-top: 3.5rem;
  }
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  line-height: 1.05;
}

.hero-title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.75rem, 8.5vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-title span:first-child {
  color: var(--text);
}

.hero-title span:last-child {
  color: var(--text);
}

.hero-desc {
  margin: 0 0 2rem;
  max-width: 48ch;
  font-size: clamp(1.125rem, 2.2vw, 1.4375rem);
  font-weight: 500;
  color: #b0b0b0;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-actions .btn-big {
  padding: 1.05rem 1.9rem;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-strip-item {
  padding: 1.1rem 1.35rem;
  min-width: 175px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-strip-item .label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.hero-strip-item .value {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
}

.value-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-family: var(--mono);
  color: var(--brand-light);
  cursor: pointer;
}

.value-link:hover {
  text-decoration: underline;
}

/* Cutout figures (PNG без фона + растр снизу) */
.cutout {
  position: relative;
}

.cutout.is-empty {
  display: none !important;
}

.cutout-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}

.cutout-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
}

.cutout-glow {
  position: absolute;
  inset: 5% 0 18% 10%;
  background: radial-gradient(ellipse 70% 60% at 55% 55%, var(--brand-glow), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.cutout-img-wrap {
  position: relative;
  z-index: 1;
}

.hero-figure {
  position: absolute;
  right: max(-2.5rem, calc((100% - 1280px) / 2 - 4.5rem));
  bottom: 0;
  width: min(58vw, 760px);
  height: calc(100% - 0.5rem);
  z-index: 2;
  pointer-events: none;
}

.hero-figure .cutout-img-wrap {
  justify-content: flex-end;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-figure .cutout-img-wrap img {
  max-width: 108%;
  max-height: 108%;
  object-position: 62% bottom;
  transform: translateX(9%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.85) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0, 0, 0, 0.85) 82%, transparent 100%);
}

@media (min-width: 960px) {
  .hero-inner {
    max-width: var(--wrap);
    grid-template-columns: minmax(0, 640px) 1fr;
  }

  .hero-copy {
    max-width: 640px;
  }
}

@media (max-width: 959px) {
  .hero-figure {
    position: relative;
    right: auto;
    width: 100%;
    max-width: 520px;
    height: min(58vh, 520px);
    margin: -0.5rem auto 0;
  }

  .hero-figure .cutout-img-wrap {
    justify-content: center;
  }

  .hero-figure .cutout-img-wrap img {
    transform: translateX(6%);
    object-position: 58% bottom;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-scroll:hover {
  color: var(--brand-light);
}

.hero-scroll svg {
  opacity: 0.55;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* —— Servers —— */
.servers-section {
  position: relative;
  padding: 4rem 0 5rem;
  background: rgba(10, 10, 10, 0.78);
  border-top: 1px solid var(--line);
}

.servers-tag {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-light);
}

.servers-headline {
  margin: 0 0 2rem;
  max-width: 28ch;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.servers-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.wipe-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}

.wipe-filters-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-right: 0.25rem;
}

.wipe-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.wipe-chip input {
  accent-color: var(--brand);
}

.wipe-chip:has(input:checked) {
  color: var(--text);
}

.servers-online {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.servers-online strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.servers-online strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand-glow);
  vertical-align: middle;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.servers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .servers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .servers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.server-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.server-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.server-card.is-featured {
  border-color: var(--brand-line);
  box-shadow: 0 0 0 1px var(--brand-dim);
}

.server-card.is-hidden {
  display: none;
}

.server-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.server-card-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 4px;
}

.server-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.server-card-meta {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.server-card-online {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-light);
  white-space: nowrap;
}

.server-card-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.server-card-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brand-gradient);
  border-radius: 4px;
  transition: width 0.45s ease;
}

.server-card-connect {
  display: flex;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.server-card-connect code {
  flex: 1;
  padding: 0.7rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: #9a9a9a;
  word-break: break-all;
  align-self: center;
}

.btn-icon-copy {
  flex-shrink: 0;
  width: 44px;
  border: none;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}

.btn-icon-copy:hover {
  color: var(--brand-light);
  background: var(--brand-soft);
}

.btn-play-card {
  width: 100%;
  gap: 0.45rem;
  padding: 0.85rem;
  background: rgba(255, 3, 8, 0.12);
  border: 1px solid var(--brand-line);
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
}

.btn-play-card:hover {
  background: var(--brand-soft);
  border-color: var(--brand-light);
}

.empty-servers {
  grid-column: 1 / -1;
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

/* —— Features —— */
.features-section {
  padding: 5rem 0;
  background: rgba(10, 10, 10, 0.78);
}

.features-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.features-title-white,
.features-title-accent,
.faq-title-white,
.faq-title-accent {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.features-title-accent,
.faq-title-accent {
  color: var(--brand);
  margin-top: 0.15rem;
}

.features-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .feature-card:nth-child(1) {
    grid-column: 1 / 3;
  }
  .feature-card:nth-child(2) {
    grid-column: 3 / 5;
  }
  .feature-card:nth-child(3) {
    grid-column: 5 / 7;
  }
  .feature-card:nth-child(4) {
    grid-column: 2 / 4;
  }
  .feature-card:nth-child(5) {
    grid-column: 4 / 6;
  }
}

.feature-card {
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: var(--brand-line);
  background: var(--bg-card-hover);
}

.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--brand);
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

/* —— Support —— */
.support-section {
  position: relative;
  padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5rem);
  background: rgba(17, 17, 17, 0.74);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.support-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: end;
}

.support-visual {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.support-visual-glow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(110%, 680px);
  height: 88%;
  transform: translateX(-48%);
  background: radial-gradient(ellipse 78% 72% at 50% 88%, rgba(255, 60, 25, 0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

.support-visual .cutout-img-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  background: transparent;
  -webkit-mask-image: none;
  mask-image: none;
}

.support-visual .cutout-img-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 18%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.92) 0%, transparent 100%);
}

.support-visual .cutout-img-wrap img {
  display: block;
  width: min(100%, 820px);
  height: auto;
  max-height: min(72vh, 640px);
  margin: 0 auto 0 0;
  object-fit: contain;
  object-position: right bottom;
  transform: none;
  mix-blend-mode: darken;
  filter: contrast(1.05) saturate(1.06) drop-shadow(0 12px 36px rgba(0, 0, 0, 0.5));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
}

@media (min-width: 900px) {
  .support-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(2rem, 3vw, 3rem);
    align-items: center;
  }

  .support-visual {
    min-height: 420px;
    justify-content: flex-end;
    margin-top: -0.25rem;
  }

  .support-visual-glow {
    left: 52%;
    width: min(72%, 560px);
    height: 85%;
  }

  .support-visual .cutout-img-wrap {
    margin: 0;
    justify-content: flex-end;
    width: 100%;
  }

  .support-visual .cutout-img-wrap img {
    width: min(108%, 900px);
    max-width: 900px;
    max-height: min(68vh, 600px);
    margin-left: auto;
    margin-right: -4%;
    object-position: right bottom;
  }

  .support-copy {
    padding: 0 0 0 0.75rem;
    max-width: 38ch;
  }
}

@media (max-width: 899px) {
  .support-visual {
    min-height: 280px;
  }

  .support-visual .cutout-img-wrap img {
    width: 100%;
    max-width: 100%;
    max-height: min(50vh, 400px);
    margin: 0 auto;
    object-position: center bottom;
  }
}

.support-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
}

.support-badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 4px;
}

.support-text p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 48ch;
}

.support-text p:last-child {
  margin-bottom: 0;
}

.support-text em,
.support-text strong {
  font-style: normal;
  color: var(--brand-light);
  font-weight: 600;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— FAQ —— */
.faq-section {
  padding: 5rem 0 4rem;
  background: rgba(10, 10, 10, 0.78);
}

.faq-head {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}

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

.faq-item[open] summary {
  background: var(--brand-dim);
}

.faq-answer {
  padding: 0 1.35rem 1.15rem;
}

.faq-answer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* —— Marquee —— */
.marquee {
  overflow: hidden;
  background: var(--brand);
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  flex-shrink: 0;
  padding-right: 2rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* —— Footer —— */
.footer {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0 3rem;
  background: #0a0a0a;
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-light);
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .hero-watermark {
    font-size: 4.5rem;
  }
}
