/* Code and design by Haj Saeed Yakuza */
/* Global tokens */

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/vazirmatn/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'vazir';
  src: url('fonts/vazir/Vazir.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b1020;
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.6);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --accent: #2ee9a6;
  --accent-2: #7c5cff;
  --danger: #ff4d6d;
  --container: 1100px;
  --blur: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  /* font-family: Vazirmatn, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; */
  font-family: 'vazirmatn', 'vazir';
  background: radial-gradient(1200px 700px at 50% -10%, rgba(124, 92, 255, 0.2), transparent 60%),
    radial-gradient(900px 600px at 30% 10%, rgba(46, 233, 166, 0.14), transparent 60%), var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a.in-text{
  font-weight: bold;
  text-decoration: underline;
  color: var(--accent-2);
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  padding: 10px 12px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 10px;
  transform: translateY(-180%);
  transition: transform 180ms ease;
  z-index: 9999;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Header / navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.82), rgba(11, 16, 32, 0.4));
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 12px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
}

.nav-shell {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 19, 36, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.nav-toggle-lines {
  width: 18px;
  height: 12px;
  display: inline-block;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0 2px, transparent 2px 5px, rgba(255, 255, 255, 0.9) 5px 7px, transparent 7px 10px, rgba(255, 255, 255, 0.9) 10px 12px);
  border-radius: 2px;
}

.nav-link {
  position: relative;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.nav-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.nav-link.active {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.22), rgba(46, 233, 166, 0.12));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 16px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0), rgba(124, 92, 255, 0.9), rgba(46, 233, 166, 0.9), rgba(46, 233, 166, 0));
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-updates {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-updates:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.header-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(46, 233, 166, 0.12);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.9), rgba(46, 233, 166, 0.82));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(57, 51, 120, 0.25);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 20px 36px rgba(57, 51, 120, 0.32);
}

.header-mobile-tools {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 42px 0 28px;
}

.hero-frame {
  --hero-rotate-duration: 3600ms;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 238px;
  gap: 18px;
  align-items: stretch;
}

.hero-role-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.hero-role-card {
  position: relative;
  min-height: 124px;
  padding: 16px 18px 24px;
  display: grid;
  grid-template-columns: 58px 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  width: 100%;
  text-align: inherit;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, rgba(255, 153, 0, 0.18), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-role-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  opacity: 0.7;
  pointer-events: none;
}

.hero-role-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 10px;
  height: 26px;
  border-radius: 999px;
  opacity: 0;
  filter: blur(16px);
  transform: scaleX(0.72);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  z-index: 0;
}

.hero-role-card.is-active {
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(90deg, rgba(255, 153, 0, 0.32), rgba(255, 255, 255, 0.08));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.hero-role-card.is-pressing {
  animation: heroCardPulse 420ms ease;
}

.hero-role-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(90deg, rgba(255, 153, 0, 0.24), rgba(255, 255, 255, 0.05));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.hero-role-card:hover::after,
.hero-role-card.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero-role-column-right .hero-role-card {
  grid-template-columns: minmax(0, 1fr) 42px 58px;
  text-align: right;
  background: linear-gradient(270deg, rgba(124, 92, 255, 0.22), rgba(255, 255, 255, 0.02));
}

.hero-role-column-right .hero-role-card:hover {
  background: linear-gradient(270deg, rgba(124, 92, 255, 0.3), rgba(255, 255, 255, 0.05));
}

.hero-role-column-right .hero-role-card.is-active {
  background: linear-gradient(270deg, rgba(124, 92, 255, 0.42), rgba(255, 255, 255, 0.08));
}

.hero-role-card-accent {
  border-color: rgba(124, 92, 255, 0.28);
  background: linear-gradient(270deg, rgba(124, 92, 255, 0.44), rgba(66, 27, 112, 0.3));
}

.hero-role-thumb {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-role-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.18);
  filter: saturate(1.05) contrast(1.04);
  transition: transform 200ms ease, filter 200ms ease;
}

.hero-role-column-right .hero-role-thumb {
  order: 3;
}

.hero-role-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  position: relative;
  z-index: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hero-role-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
  justify-content: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-role-card:hover .hero-role-thumb,
.hero-role-card.is-active .hero-role-thumb {
  transform: translateY(-2px);
}

.hero-role-card:hover .hero-role-thumb img,
.hero-role-card.is-active .hero-role-thumb img {
  transform: scale(1.24);
  filter: saturate(1.15) contrast(1.08);
}

.hero-role-card:hover .hero-role-icon,
.hero-role-card.is-active .hero-role-icon {
  transform: translateY(-2px);
}

.hero-role-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.hero-role-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  min-height: 42px;
}

.hero-role-progress {
  position: absolute;
  inset-inline: 18px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-role-progress-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.92), rgba(46, 233, 166, 0.95));
  transform: scaleX(0);
  transform-origin: right center;
  opacity: 0;
}

.hero-role-card.is-progressing .hero-role-progress-bar {
  opacity: 1;
  animation: heroRoleProgress var(--hero-rotate-duration) linear forwards;
}

.hero-role-column-right .hero-role-progress-bar {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.92), rgba(124, 92, 255, 0.94));
}

.hero-role-card[data-hero-role="police"] {
  background: linear-gradient(90deg, rgba(33, 92, 185, 0.28), rgba(255, 255, 255, 0.03));
  border-color: rgba(67, 130, 231, 0.22);
}

.hero-role-card[data-hero-role="police"]::after {
  background: rgba(52, 122, 255, 0.36);
}

.hero-role-card[data-hero-role="police"] .hero-role-icon,
.hero-role-card[data-hero-role="police"] .hero-role-thumb {
  border-color: rgba(76, 144, 246, 0.3);
}

.hero-role-card[data-hero-role="police"]:hover,
.hero-role-card[data-hero-role="police"].is-active {
  background: linear-gradient(90deg, rgba(33, 92, 185, 0.42), rgba(255, 255, 255, 0.06));
}

.hero-role-card[data-hero-role="medic"] {
  background: linear-gradient(90deg, rgba(20, 140, 96, 0.28), rgba(255, 255, 255, 0.03));
  border-color: rgba(42, 192, 132, 0.22);
}

.hero-role-card[data-hero-role="medic"]::after {
  background: rgba(35, 205, 146, 0.34);
}

.hero-role-card[data-hero-role="medic"] .hero-role-icon,
.hero-role-card[data-hero-role="medic"] .hero-role-thumb {
  border-color: rgba(45, 205, 145, 0.28);
}

.hero-role-card[data-hero-role="medic"]:hover,
.hero-role-card[data-hero-role="medic"].is-active {
  background: linear-gradient(90deg, rgba(20, 140, 96, 0.42), rgba(255, 255, 255, 0.06));
}

.hero-role-card[data-hero-role="soldier"] {
  background: linear-gradient(90deg, rgba(160, 114, 34, 0.28), rgba(255, 255, 255, 0.03));
  border-color: rgba(215, 170, 76, 0.22);
}

.hero-role-card[data-hero-role="soldier"]::after {
  background: rgba(231, 182, 78, 0.34);
}

.hero-role-card[data-hero-role="soldier"] .hero-role-icon,
.hero-role-card[data-hero-role="soldier"] .hero-role-thumb {
  border-color: rgba(230, 182, 78, 0.28);
}

.hero-role-card[data-hero-role="soldier"]:hover,
.hero-role-card[data-hero-role="soldier"].is-active {
  background: linear-gradient(90deg, rgba(160, 114, 34, 0.44), rgba(255, 255, 255, 0.06));
}

.hero-role-card[data-hero-role="bandit"] {
  background: linear-gradient(270deg, rgba(126, 31, 51, 0.3), rgba(255, 255, 255, 0.03));
  border-color: rgba(219, 79, 111, 0.22);
}

.hero-role-card[data-hero-role="bandit"]::after {
  background: rgba(224, 71, 110, 0.34);
}

.hero-role-card[data-hero-role="bandit"] .hero-role-icon,
.hero-role-card[data-hero-role="bandit"] .hero-role-thumb {
  border-color: rgba(222, 79, 118, 0.26);
}

.hero-role-card[data-hero-role="bandit"]:hover,
.hero-role-card[data-hero-role="bandit"].is-active {
  background: linear-gradient(270deg, rgba(126, 31, 51, 0.48), rgba(255, 255, 255, 0.06));
}

.hero-role-card[data-hero-role="farmer"] {
  background: linear-gradient(270deg, rgba(13, 110, 114, 0.28), rgba(255, 255, 255, 0.03));
  border-color: rgba(52, 202, 209, 0.22);
}

.hero-role-card[data-hero-role="farmer"]::after {
  background: rgba(46, 212, 220, 0.34);
}

.hero-role-card[data-hero-role="farmer"] .hero-role-icon,
.hero-role-card[data-hero-role="farmer"] .hero-role-thumb {
  border-color: rgba(65, 212, 216, 0.28);
}

.hero-role-card[data-hero-role="farmer"]:hover,
.hero-role-card[data-hero-role="farmer"].is-active {
  background: linear-gradient(270deg, rgba(13, 110, 114, 0.44), rgba(255, 255, 255, 0.06));
}

.hero-role-card[data-hero-role="bussinesman"] {
  background: linear-gradient(270deg, rgba(102, 48, 181, 0.34), rgba(54, 24, 96, 0.2));
  border-color: rgba(158, 97, 255, 0.24);
}

.hero-role-card[data-hero-role="bussinesman"]::after {
  background: rgba(145, 92, 255, 0.38);
}

.hero-role-card[data-hero-role="bussinesman"] .hero-role-icon,
.hero-role-card[data-hero-role="bussinesman"] .hero-role-thumb {
  border-color: rgba(166, 104, 255, 0.3);
}

.hero-role-card[data-hero-role="bussinesman"]:hover,
.hero-role-card[data-hero-role="bussinesman"].is-active {
  background: linear-gradient(270deg, rgba(112, 55, 195, 0.52), rgba(60, 29, 108, 0.28));
}

@keyframes heroCardPulse {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-6px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes heroRoleProgress {
  0% {
    transform: scaleX(0);
    opacity: 0.4;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes heroCharacterReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(84px) scale(0.76) rotateX(14deg);
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.34)) blur(10px) brightness(0.72);
  }
  58% {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px) scale(1.02) rotateX(-2deg);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7)) blur(0.6px) brightness(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotateX(0deg);
    filter: drop-shadow(0 24px 52px rgba(0, 0, 0, 0.66)) blur(0) brightness(1);
  }
}

@keyframes heroCharacterExit {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotateX(0deg);
    filter: drop-shadow(0 24px 52px rgba(0, 0, 0, 0.66)) blur(0) brightness(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-34px) scale(1.1) rotateX(-10deg);
    filter: drop-shadow(0 34px 64px rgba(0, 0, 0, 0.72)) blur(10px) brightness(1.12);
  }
}

@keyframes heroStageBloom {
  0% {
    opacity: 0.72;
    filter: saturate(1) brightness(1);
  }
  50% {
    opacity: 1;
    filter: saturate(1.18) brightness(1.08);
  }
  100% {
    opacity: 0.92;
    filter: saturate(1.04) brightness(1);
  }
}

@keyframes heroStageCamera {
  0% {
    transform: translate3d(calc(var(--parallax-x) * 0.14), 0, 0) scaleY(1);
  }
  45% {
    transform: translate3d(calc(var(--parallax-x) * 0.16), -4px, 0) scaleY(1.06);
  }
  100% {
    transform: translate3d(calc(var(--parallax-x) * 0.14), 0, 0) scaleY(1);
  }
}

@keyframes heroGalleryZoom {
  0% {
    transform: translateX(-50%) translate3d(var(--parallax-x), calc(var(--parallax-y) * 0.55), 0) scale(1);
  }
  46% {
    transform: translateX(-50%) translate3d(calc(var(--parallax-x) * 1.04), calc(var(--parallax-y) * 0.64), 0) scale(1.04);
  }
  100% {
    transform: translateX(-50%) translate3d(var(--parallax-x), calc(var(--parallax-y) * 0.55), 0) scale(1);
  }
}

@keyframes heroLightBurst {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }
  42% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes heroContentLift {
  0% {
    opacity: 0.75;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroStageSweep {
  0% {
    opacity: 0;
    inset-inline-start: -18%;
  }
  16% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    inset-inline-start: 108%;
  }
}

@keyframes heroAmbientPulse {
  0% {
    opacity: 0.86;
    filter: saturate(1);
  }
  100% {
    opacity: 1;
    filter: saturate(1.08);
  }
}

@keyframes heroGroundGlow {
  0% {
    opacity: 0.56;
    transform: translate3d(calc(var(--parallax-x) * -0.24), 0, 0) scaleX(0.92);
  }
  50% {
    opacity: 0.86;
    transform: translate3d(calc(var(--parallax-x) * -0.2), 0, 0) scaleX(1.04);
  }
  100% {
    opacity: 0.62;
    transform: translate3d(calc(var(--parallax-x) * -0.24), 0, 0) scaleX(0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-role-card,
  .hero-role-thumb,
  .hero-role-thumb img,
  .hero-role-icon,
  .hero-stage-character,
  .hero-stage-gallery::after,
  .hero-stage-gallery::before,
  .hero-stage::before,
  .hero-stage::after,
  .hero-stage-visual::before,
  .hero-stage-side,
  .hero-stage-gallery,
  .hero-role-spotlight-fill {
    animation: none !important;
    transition: none !important;
  }
}

.hero-stage {
  --parallax-x: 0px;
  --parallax-y: 0px;
  --hero-accent: rgba(46, 233, 166, 0.9);
  position: relative;
  min-height: 620px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(6, 9, 18, 0.12), rgba(6, 9, 18, 0.68)),
    radial-gradient(circle at 50% 18%, rgba(255, 179, 71, 0.14), transparent 34%),
    radial-gradient(circle at 50% 38%, rgba(124, 92, 255, 0.14), transparent 42%),
    url('img/bg.svg') center/cover no-repeat,
    #080b14;
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.hero-stage:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

.hero-stage.is-switching {
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.6);
}

.hero-stage .pill-row {
  margin-bottom: 18px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 122, 0, 0.28), transparent 24%),
    linear-gradient(270deg, rgba(124, 92, 255, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
  transform: translate3d(calc(var(--parallax-x) * -0.35), calc(var(--parallax-y) * -0.2), 0);
  transition: transform 220ms ease-out, opacity 220ms ease-out;
  animation: heroAmbientPulse 8s ease-in-out infinite alternate;
}

.hero-stage.is-switching::before {
  animation: heroAmbientPulse 2.4s ease-in-out 1, heroStageBloom 640ms ease;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 12, 0.92));
  transform: translate3d(calc(var(--parallax-x) * 0.14), 0, 0);
  transition: transform 220ms ease-out;
}

.hero-stage.is-switching::after {
  animation: heroStageCamera 620ms cubic-bezier(0.18, 0.84, 0.26, 1);
}

.hero-stage-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-stage-visual::before {
  content: "";
  position: absolute;
  inset: -10% -14%;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 44%, var(--hero-accent), transparent 32%),
    radial-gradient(circle at 52% 36%, rgba(255, 255, 255, 0.18), transparent 24%);
  filter: blur(28px);
  transform: scale(0.88);
}

.hero-stage.is-switching .hero-stage-visual::before {
  animation: heroLightBurst 700ms cubic-bezier(0.16, 0.84, 0.24, 1);
}

.hero-stage-gallery {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 0;
  width: min(100%, 660px);
  height: calc(100% - 70px);
  transform: translateX(-50%) translate3d(var(--parallax-x), calc(var(--parallax-y) * 0.55), 0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  transition: transform 220ms ease-out;
}

.hero-stage.is-switching .hero-stage-gallery {
  animation: heroGalleryZoom 620ms cubic-bezier(0.18, 0.84, 0.26, 1);
}

.hero-stage-gallery::before {
  content: "";
  position: absolute;
  inset-inline: 18%;
  bottom: 18px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(13, 224, 160, 0.34), rgba(13, 224, 160, 0) 70%);
  filter: blur(6px);
  transform: translate3d(calc(var(--parallax-x) * -0.24), 0, 0);
  transition: transform 220ms ease-out, opacity 220ms ease-out;
  animation: heroGroundGlow 6s ease-in-out infinite;
}

.hero-stage-gallery::after {
  content: "";
  position: absolute;
  top: 4%;
  bottom: 10%;
  width: 140px;
  inset-inline-start: -18%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  filter: blur(10px);
  transform: skewX(-14deg);
  pointer-events: none;
}

.hero-stage.is-switching .hero-stage-gallery::after {
  animation: heroStageSweep 560ms ease;
}

.hero-stage-character {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 0;
  width: min(100%, 560px);
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%) translateY(28px) scale(0.9) rotateX(6deg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 360ms ease, transform 540ms cubic-bezier(0.2, 0.72, 0.2, 1), filter 540ms cubic-bezier(0.2, 0.72, 0.2, 1);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.62));
  will-change: transform, opacity, filter;
}

.hero-stage-character.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1) rotateX(0deg);
}

.hero-stage-character.is-entering {
  visibility: visible;
  opacity: 0;
  transform: translateX(-50%) translateY(68px) scale(0.8) rotateX(10deg);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4)) blur(7px) brightness(0.86);
}

.hero-stage-character.is-active.is-entering {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1) rotateX(0deg);
  filter: drop-shadow(0 24px 52px rgba(0, 0, 0, 0.66)) blur(0) brightness(1);
  animation: heroCharacterReveal 780ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.hero-stage-character.is-leaving {
  visibility: visible;
  opacity: 0;
  transform: translateX(-50%) translateY(-18px) scale(1.08) rotateX(-7deg);
  filter: drop-shadow(0 30px 58px rgba(0, 0, 0, 0.7)) blur(8px) brightness(1.08);
  animation: heroCharacterExit 560ms cubic-bezier(0.62, 0.02, 0.34, 1) both;
}

.hero-stage-head {
  display: none;
  position: absolute;
  top: 18px;
  inset-inline-start: 50%;
  width: 76px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 38px 38px 28px 28px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(120, 44, 82, 0.9), rgba(46, 21, 36, 0.96));
}

.hero-stage-head::before {
  display: none;
  content: "";
  position: absolute;
  inset: -12px 8px auto;
  height: 34px;
  border-radius: 24px 24px 12px 12px;
  background: linear-gradient(180deg, rgba(34, 20, 28, 0.96), rgba(15, 10, 14, 0.9));
}

.hero-stage-body {
  display: none;
  position: absolute;
  inset-inline-start: 50%;
  bottom: 0;
  width: 210px;
  height: 320px;
  transform: translateX(-50%);
  border-radius: 110px 110px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 22%),
    linear-gradient(180deg, rgba(42, 71, 128, 0.98), rgba(19, 31, 56, 0.98));
}

.hero-stage-body::before,
.hero-stage-body::after {
  display: none;
  content: "";
  position: absolute;
  top: 52px;
  width: 88px;
  height: 204px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(17, 32, 62, 0.96), rgba(10, 18, 34, 0.98));
}

.hero-stage-body::before {
  inset-inline-start: -20px;
  transform: rotate(9deg);
}

.hero-stage-body::after {
  inset-inline-end: -20px;
  transform: rotate(-9deg);
}

.hero-stage-tie {
  display: none;
  position: absolute;
  inset-inline-start: 50%;
  top: 128px;
  width: 34px;
  height: 170px;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 12%, 78% 100%, 22% 100%, 0 12%);
  background: linear-gradient(180deg, rgba(245, 245, 255, 0.92), rgba(130, 143, 171, 0.75));
  box-shadow: 0 0 0 12px rgba(234, 238, 247, 0.08);
}

.hero-stage-side {
  position: absolute;
  bottom: 74px;
  width: 170px;
  height: 330px;
  border-radius: 60px 60px 14px 14px;
  opacity: 0.38;
  filter: blur(0.5px);
  background: linear-gradient(180deg, rgba(91, 65, 52, 0.72), rgba(24, 19, 19, 0.92));
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}

.hero-stage-side::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: -54px;
  width: 70px;
  height: 82px;
  transform: translateX(-50%);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(78, 48, 38, 0.9), rgba(45, 29, 24, 0.94));
}

.hero-stage-side-left {
  inset-inline-start: 14%;
  transform: translate3d(calc(var(--parallax-x) * -0.55), calc(var(--parallax-y) * 0.18), 0);
}

.hero-stage-side-right {
  inset-inline-end: 14%;
  transform: translate3d(calc(var(--parallax-x) * 0.55), calc(var(--parallax-y) * 0.18), 0);
}

.hero-stage-content {
  position: relative;
  z-index: 3;
  max-width: 620px;
  margin: 0 auto;
  padding: 38px 28px 124px;
  text-align: center;
}

.hero-stage-content.is-animating .hero-brand,
.hero-stage-content.is-animating .hero-title,
.hero-stage-content.is-animating .hero-desc,
.hero-stage-content.is-animating .hero-role-spotlight,
.hero-stage-content.is-animating .hero-main-actions {
  animation: heroContentLift 420ms ease;
}

.hero-role-spotlight {
  display: grid;
  gap: 8px;
  width: min(100%, 320px);
  margin: 18px auto 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(9, 14, 28, 0.74), rgba(9, 14, 28, 0.5));
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-role-spotlight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.hero-role-spotlight-label {
  letter-spacing: 0.04em;
}

.hero-role-spotlight-counter {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.86);
}

.hero-role-spotlight-name {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.hero-role-spotlight-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.hero-role-spotlight-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), var(--hero-accent), rgba(255, 255, 255, 0.96));
  transform: scaleX(0);
  transform-origin: right center;
  opacity: 0;
}

.hero-stage.is-progressing .hero-role-spotlight-fill {
  opacity: 1;
  animation: heroRoleProgress var(--hero-rotate-duration) linear forwards;
}

.hero-brand {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
}

.pill-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 26, 0.5);
  color: var(--text);
  font-size: 13px;
  backdrop-filter: blur(12px);
}

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

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.pill.online .pill-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 233, 166, 0.18);
}
.pill.offline .pill-dot {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.16);
}

.hero-title {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.7px;
}

.hero-accent {
  display: block;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 16px auto 0;
  color: var(--muted);
  max-width: 54ch;
  font-size: 15px;
}

.hero-main-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-main-btn {
  min-width: 150px;
  min-height: 52px;
  border-radius: 16px;
  font-weight: 800;
}

.hero-main-btn-dark {
  background: rgba(0, 0, 0, 0.44);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-main-btn-dark:hover {
  background: rgba(0, 0, 0, 0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  user-select: none;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn:active {
  transform: translateY(0);
}
.btn.primary {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.85), rgba(46, 233, 166, 0.72));
  border-color: rgba(255, 255, 255, 0.22);
}
.btn.primary:hover {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.92), rgba(46, 233, 166, 0.8));
}
.btn.secondary {
  background: rgba(46, 233, 166, 0.12);
  border-color: rgba(46, 233, 166, 0.22);
}
.btn.ghost {
  background: transparent;
}
.btn.small {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.hero-stage-bar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%);
  width: calc(100% - 44px);
  max-width: 620px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.hero-join-btn,
.hero-live-chip {
  min-height: 58px;
  border-radius: 16px;
}

.hero-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1.15;
  padding: 0 22px;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(90deg, rgba(9, 113, 79, 0.98), rgba(16, 166, 113, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 120ms ease, filter 120ms ease;
}

.hero-join-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.hero-live-chip {
  flex: 1;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.hero-live-chip-action {
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.hero-live-chip-action:hover {
  transform: translateY(-1px);
  background: rgba(124, 92, 255, 0.16);
}

.hero-live-value {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.hero-live-label {
  font-size: 13px;
  color: var(--muted);
}

.hero-status-panel {
  margin-top: 18px;
}

.glass-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
  overflow: hidden;
}

.glass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.server-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.server-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.server-badge.online .server-badge-dot {
  background: var(--accent);
}

.server-sum {
  text-align: left;
}
.server-sum-number {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.4px;
}
.server-sum-label {
  font-size: 12px;
  color: var(--muted);
}

.server-list {
  padding: 10px 12px 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.server-list.is-single {
  grid-template-columns: 1fr;
  padding: 16px 18px 12px;
}

.server-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  height: 100%;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.server-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.12) 48%, transparent 70%);
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
}

.server-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.server-row:hover::before {
  opacity: 1;
  animation: serverCardSweep 900ms ease;
}

.server-row.is-featured {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 430px;
  margin: 0 auto;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border-color: rgba(101, 132, 255, 0.24);
  background:
    radial-gradient(circle at 16% 50%, rgba(72, 124, 255, 0.16), transparent 34%),
    radial-gradient(circle at 84% 24%, rgba(46, 233, 166, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(17, 25, 52, 0.92), rgba(12, 18, 34, 0.94));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.server-row.is-featured::after {
  content: "";
  position: absolute;
  inset: auto -12% -36px;
  height: 90px;
  background: radial-gradient(circle, rgba(83, 145, 255, 0.28), rgba(83, 145, 255, 0) 68%);
  filter: blur(12px);
  pointer-events: none;
}

.server-row.is-featured:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(101, 132, 255, 0.32);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
}

.server-left {
  min-width: 0;
}

.server-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(109, 155, 255, 0.22);
  background: rgba(109, 155, 255, 0.12);
  color: rgba(214, 228, 255, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.server-feature-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #62a4ff;
  box-shadow: 0 0 0 6px rgba(98, 164, 255, 0.12);
}

.server-title {
  font-weight: 800;
  letter-spacing: -0.2px;
}

.server-row.is-featured .server-title {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.server-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.server-row.is-featured .server-sub {
  margin-top: 8px;
  font-size: 15px;
  color: rgba(234, 239, 255, 0.72);
}

.server-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  justify-content: space-between;
}

.server-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.server-row.is-featured .server-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.dot.online {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(46, 233, 166, 0.45);
  animation: serverDotPulse 1.8s ease-out infinite;
}
.dot.offline {
  background: var(--danger);
}

.server-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 120ms ease, transform 120ms ease;
}
.server-row.is-featured .icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.icon-btn:active {
  transform: translateY(0);
}

@keyframes serverDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 233, 166, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(46, 233, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 233, 166, 0);
  }
}

@keyframes serverCardSweep {
  0% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(140%);
  }
}

.glass-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.text-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 2px;
  transition: border-color 120ms ease, color 120ms ease;
}
.text-link:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.orb {
  position: absolute;
  filter: blur(28px);
  opacity: 0.6;
}
.orb-a {
  width: 520px;
  height: 520px;
  top: -220px;
  inset-inline-start: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.55), transparent 60%);
}
.orb-b {
  width: 620px;
  height: 620px;
  bottom: -300px;
  inset-inline-end: -200px;
  background: radial-gradient(circle at 40% 40%, rgba(46, 233, 166, 0.35), transparent 60%);
}

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 25%, black 0 52%, transparent 72%);
}

/* Shared sections */
.section {
  padding: 56px 0;
}
.section.alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head {
  margin-bottom: 20px;
  max-width: 70ch;
}
.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  max-width: none;
}

.section-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.4px;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.grid-3-dlgames{
  margin-bottom: 20px;
}

.feature-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(46, 233, 166, 0.12));
  display: grid;
  place-items: center;
  font-weight: 900;
}

.feature-title {
  margin: 12px 0 0;
  font-size: 18px;
}

.feature-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

.feature-list {
  margin: 12px 0 0;
  padding: 0 18px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}
.feature-list li {
  margin: 6px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.step {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.step-index {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.24);
  font-weight: 900;
}

.step-title {
  margin: 12px 0 0;
  font-size: 16px;
}

.step-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.video-card {
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px;
}

.video-title {
  margin: 0;
  font-size: 18px;
}
.video-desc {
  margin: 10px 0 0;
  color: var(--muted);
}
.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.video-frame {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(400px 200px at 30% 20%, rgba(46, 233, 166, 0.14), transparent 60%),
    radial-gradient(400px 240px at 70% 30%, rgba(124, 92, 255, 0.16), transparent 60%), rgba(0, 0, 0, 0.2);
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.video-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  padding: 14px;
}

.play {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  margin: 0 auto 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}
.play::after {
  content: "";
  position: absolute;
  inset-inline-start: 25px;
  top: 18px;
  border-style: solid;
  border-width: 13px 0 13px 20px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.84);
}

.video-note {
  font-size: 13px;
  color: var(--muted);
}

.news-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.news-meta {
  font-size: 12px;
  color: var(--muted);
}

.news-title {
  margin: 10px 0 0;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.news-desc {
  margin: 10px 0 0;
  color: var(--muted);
}

.updates-shell {
  position: relative;
}

.updates-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 170, 66, 0.12), transparent 20%),
    radial-gradient(circle at 88% 14%, rgba(124, 92, 255, 0.12), transparent 22%);
  pointer-events: none;
}

.updates-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.updates-hero-copy,
.updates-hero-panel,
.updates-board {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 16, 31, 0.72);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.updates-hero-copy::before,
.updates-hero-panel::before,
.updates-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 52%);
  pointer-events: none;
}

.updates-hero-copy {
  padding: 30px;
}

.updates-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.updates-topline-version {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.84);
}

.updates-title {
  margin: 20px 0 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.updates-lead {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.95;
  font-size: 15px;
}

.updates-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.updates-tag,
.updates-pill,
.updates-board-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.updates-pill.is-active {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.25), rgba(46, 233, 166, 0.18));
  border-color: rgba(46, 233, 166, 0.26);
}

.updates-hero-panel {
  padding: 24px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 166, 47, 0.18), transparent 26%),
    radial-gradient(circle at 80% 16%, rgba(124, 92, 255, 0.18), transparent 30%),
    rgba(11, 16, 31, 0.76);
}

.updates-kicker {
  font-size: 12px;
  color: var(--muted);
}

.updates-version {
  margin-top: 10px;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.updates-panel-desc {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.updates-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.updates-mini-stat {
  padding: 14px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.updates-mini-stat strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.updates-mini-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.updates-release-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.updates-release-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.updates-release-row span {
  color: var(--muted);
  font-size: 12px;
}

.updates-release-row strong {
  font-size: 13px;
}

.updates-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.updates-release-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.update-release-card,
.update-compact-card,
.updates-detail-card,
.update-timeline-body {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.update-release-card {
  padding: 24px;
}

.update-release-card.is-featured {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 166, 47, 0.16), transparent 20%),
    radial-gradient(circle at 84% 14%, rgba(124, 92, 255, 0.18), transparent 26%),
    rgba(255, 255, 255, 0.04);
}

.update-release-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.update-release-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(46, 233, 166, 0.12);
  color: #6bf4c5;
  font-size: 12px;
  font-weight: 800;
}

.update-release-title {
  margin: 14px 0 0;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.update-release-date {
  color: var(--muted);
  font-size: 13px;
}

.update-release-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-top: 20px;
}

.update-release-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
}

.updates-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.updates-checks span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.update-release-changes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.update-change-box {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 28, 0.6);
}

.update-change-title {
  font-size: 16px;
  font-weight: 800;
}

.update-change-list,
.update-compact-list,
.updates-detail-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.update-change-list li,
.update-compact-list li,
.updates-detail-list li {
  position: relative;
  padding-inline-start: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.update-change-list li::before,
.update-compact-list li::before,
.updates-detail-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #2ee9a6);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.4);
}

.updates-card-grid,
.updates-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.update-compact-card,
.updates-detail-card {
  padding: 22px;
}

.update-compact-meta,
.updates-detail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
}

.update-compact-title {
  margin: 16px 0 0;
  font-size: 20px;
}

.update-compact-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.updates-board {
  padding: 24px;
}

.updates-board-grid {
  margin-top: 18px;
}

.updates-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.updates-detail-head strong {
  font-size: 18px;
}

.updates-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.updates-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  inset-inline-start: 17px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 166, 47, 0.62), rgba(124, 92, 255, 0.68), rgba(46, 233, 166, 0.48));
  opacity: 0.75;
}

.update-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.update-timeline-dot {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 166, 47, 0.95), rgba(124, 92, 255, 0.88));
  box-shadow: 0 0 0 10px rgba(124, 92, 255, 0.08);
}

.update-timeline-body {
  padding: 20px;
}

.update-timeline-meta {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.update-timeline-title {
  margin: 8px 0 0;
  font-size: 19px;
}

.update-timeline-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.patch-page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.patch-bubble {
  position: absolute;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.22;
}

.patch-bubble-a {
  inset-inline-start: -120px;
  top: 120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 0, 153, 0.36), transparent 68%);
  animation: heroAmbientPulse 14s ease-in-out infinite;
}

.patch-bubble-b {
  inset-inline-end: -120px;
  top: 240px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.3), transparent 70%);
  animation: heroAmbientPulse 17s ease-in-out infinite reverse;
}

.patch-bubble-c {
  left: 28%;
  bottom: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(89, 102, 243, 0.22), transparent 72%);
  animation: heroAmbientPulse 20s ease-in-out infinite;
}

.patch-page {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 72px;
  display: flex;
  flex-direction: column-reverse;
  gap: 28px;
}

.patch-sidebar,
.patch-card,
.patch-loading {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.34);
}

.patch-sidebar {
  padding: 8px 0 0;
}

.patch-sidebar-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 8px;
}

.patch-sidebar-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #78f2ff;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.18);
}

.patch-sidebar-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.patch-sidebar-list {
  display: grid;
  gap: 12px;
}

.patch-history-item {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  text-align: right;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.patch-history-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 0, 153, 0.36);
  transform: translateY(-3px);
}

.patch-history-item.is-active {
  background: rgba(255, 0, 153, 0.1);
  border-color: rgba(255, 0, 153, 0.5);
  box-shadow: 0 0 20px rgba(255, 0, 153, 0.18);
}

.patch-history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.patch-history-version {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #bcc5ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.patch-history-item.is-active .patch-history-version {
  background: #ff0099;
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 0, 153, 0.45);
}

.patch-history-date {
  color: rgba(168, 175, 255, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.patch-history-title {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.patch-load-more {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(168, 175, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition: background 220ms ease, color 220ms ease;
}

.patch-load-more:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.patch-loading {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.patch-loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 0, 153, 0.2);
  border-top-color: #ff0099;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.patch-loading p {
  margin: 0;
  color: rgba(168, 175, 255, 0.64);
  font-size: 14px;
}

.patch-card {
  overflow: hidden;
}

.patch-cover {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 24px;
  margin: 8px;
}

.patch-cover img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  transition: transform 700ms ease;
}

.patch-card:hover .patch-cover img {
  transform: scale(1.04);
}

.patch-cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 15, 45, 0.12), rgba(12, 15, 45, 0.96)),
    radial-gradient(circle at 30% 22%, rgba(255, 0, 153, 0.16), transparent 30%),
    radial-gradient(circle at 76% 18%, rgba(0, 240, 255, 0.16), transparent 26%);
}

.patch-cover-meta {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 108px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.patch-badge,
.patch-release-date {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.patch-badge {
  background: #ff0099;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 0, 153, 0.46);
}

.patch-release-date {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.patch-cover-title {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 34px;
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.patch-card-body {
  padding: 10px 32px 36px;
}

.patch-intro {
  margin: 0 0 42px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 2;
  max-width: 920px;
}

.patch-section + .patch-section {
  margin-top: 58px;
}

.patch-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.patch-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}

.patch-section-icon-blue {
  color: #7ce8ff;
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.22);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.16);
}

.patch-section-icon-pink {
  color: #ff70c3;
  background: rgba(255, 0, 153, 0.14);
  border: 1px solid rgba(255, 0, 153, 0.22);
  box-shadow: 0 0 16px rgba(255, 0, 153, 0.16);
}

.patch-section-icon-purple {
  color: #b6a4ff;
  background: rgba(89, 102, 243, 0.14);
  border: 1px solid rgba(89, 102, 243, 0.22);
  box-shadow: 0 0 16px rgba(89, 102, 243, 0.16);
}

.patch-section-title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.patch-feature-list {
  display: grid;
  gap: 20px;
}

.patch-feature-card,
.patch-fix-card,
.patch-balance-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.patch-feature-card {
  padding: 24px;
  border-radius: 28px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.patch-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.patch-feature-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.patch-feature-desc {
  margin: 0;
  color: rgba(168, 175, 255, 0.72);
  font-size: 14px;
  line-height: 2.05;
}

.patch-fix-card {
  padding: 26px;
  border-radius: 28px;
  display: grid;
  gap: 14px;
}

.patch-fix-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(168, 175, 255, 0.84);
  line-height: 1.95;
}

.patch-fix-dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 0, 153, 0.85) 0 38%, transparent 42%),
    rgba(255, 0, 153, 0.12);
  box-shadow: 0 0 14px rgba(255, 0, 153, 0.34);
}

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

.patch-balance-card {
  min-height: 152px;
  padding: 26px 18px;
  border-radius: 28px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.patch-balance-card strong {
  display: block;
  color: #7c5cff;
  font-size: 34px;
  font-weight: 900;
}

.patch-balance-card span {
  display: block;
  margin-top: 10px;
  color: rgba(168, 175, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cta {
  padding: 34px 0 48px;
}

.cta-inner {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(46, 233, 166, 0.1));
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-title {
  margin: 0;
  font-size: 22px;
}
.cta-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0 28px;
  background: rgba(0, 0, 0, 0.12);
}

.footer-inner {
  display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    justify-items: center;
}

.footer-brand{
  text-align: center;
}

.footer-meta{
  text-align: center;
}

.footer-name {
  font-weight: 900;
  letter-spacing: -0.2px;
}
.footer-desc {
  color: var(--muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.footer-link {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}
.footer-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}


.footer-small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}

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

/* Modals and feedback */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(640px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 20, 36, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.context-alert-card {
  width: min(560px, 100%);
  padding: 34px 26px 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 84, 84, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(34, 14, 22, 0.96), rgba(16, 20, 36, 0.96));
  border-color: rgba(255, 120, 120, 0.24);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 120, 120, 0.1);
}

.context-alert-close {
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.context-alert-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.04);
}

.context-alert-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 99, 99, 0.28), rgba(255, 62, 62, 0.16));
  border: 1px solid rgba(255, 123, 123, 0.26);
  box-shadow: 0 0 24px rgba(255, 92, 92, 0.24);
  color: #ffd6d6;
  font-size: 44px;
  font-weight: 900;
}

.context-alert-kicker {
  color: #ff9a9a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.context-alert-title {
  margin: 10px 0 0;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.context-alert-text {
  margin: 14px auto 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.9;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  padding: 16px;
}

.connect-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.connect-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.connect-title {
  font-weight: 800;
}
.connect-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.toast[hidden] {
  display: none;
}
.toast {
  position: fixed;
  bottom: 18px;
  inset-inline-start: 18px;
  z-index: 3000;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 20, 36, 0.92);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-frame {
    grid-template-columns: 1fr;
  }
  .hero-role-column {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero-role-card {
    flex: 1 1 220px;
  }
  .hero-stage {
    order: -1;
  }
  .hero-stage-content {
    max-width: 700px;
  }
  .hero-stage-gallery {
    width: min(100%, 540px);
  }
  .server-list {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .video-card {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 10px;
  }
  .header-inner {
    gap: 10px;
  }
  .brand {
    padding: 9px 10px;
  }
  .brand-text {
    display: none;
  }
  .nav-shell {
    flex: 0 1 auto;
    justify-content: flex-end;
  }
  .header-tools {
    display: none;
  }
  .header-mobile-tools .header-updates {
    width: 100%;
  }
  .hero {
    padding-top: 26px;
  }
  .hero-role-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-role-card {
    min-height: 78px;
  }
  .hero-role-thumb {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
  .hero-stage {
    min-height: 520px;
  }
  .hero-stage-content {
    padding: 28px 18px 168px;
  }
  .hero-stage-gallery {
    width: min(100%, 420px);
    height: calc(100% - 110px);
  }
  .hero-stage-character {
    width: min(100%, 400px);
  }
  .hero-stage-side {
    display: none;
  }
  .hero-title {
    font-size: clamp(28px, 8vw, 42px);
  }
  .hero-stage-bar {
    inset-inline: 12px;
    width: auto;
    transform: none;
    inset-inline-start: 12px;
    flex-direction: column;
  }
  .hero-join-btn,
  .hero-live-chip {
    width: 100%;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-menu {
    position: absolute;
    top: 64px;
    inset-inline-end: 20px;
    width: min(340px, calc(100vw - 40px));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(16, 20, 36, 0.92);
    backdrop-filter: blur(var(--blur));
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: var(--shadow);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-link {
    padding: 12px 12px;
  }
  .header-mobile-tools {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .header-mobile-tools .header-status,
  .header-mobile-tools .header-cta,
  .header-mobile-tools .header-updates {
    width: 100%;
  }
  .section-head.row {
    flex-direction: column;
    align-items: stretch;
  }
  .glass-top,
  .glass-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .patch-page {
    width: min(100% - 24px, 1280px);
    padding-top: 108px;
    gap: 18px;
  }
  .patch-card-body {
    padding: 10px 18px 24px;
  }
  .patch-cover {
    min-height: 270px;
  }
  .patch-cover img {
    min-height: 270px;
  }
  .patch-cover-meta,
  .patch-cover-title {
    left: 18px;
    right: 18px;
  }
  .patch-cover-meta {
    bottom: 92px;
  }
  .patch-cover-title {
    bottom: 24px;
    font-size: clamp(28px, 8vw, 42px);
  }
  .patch-intro {
    font-size: 15px;
    line-height: 1.95;
    margin-bottom: 28px;
  }
  .patch-section + .patch-section {
    margin-top: 36px;
  }
  .patch-section-head {
    gap: 12px;
    margin-bottom: 18px;
  }
  .patch-section-title {
    font-size: 22px;
  }
  .patch-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
  }
  .patch-feature-card,
  .patch-fix-card,
  .patch-balance-card,
  .patch-history-item {
    border-radius: 22px;
  }
  .patch-balance-grid {
    grid-template-columns: 1fr;
  }
  .updates-hero,
  .update-release-grid,
  .update-release-changes,
  .updates-card-grid,
  .updates-board-grid {
    grid-template-columns: 1fr;
  }
  .updates-mini-stats {
    grid-template-columns: 1fr;
  }
  .update-release-head,
  .updates-detail-head {
    flex-direction: column;
    align-items: stretch;
  }
  .updates-pills,
  .updates-tags,
  .updates-checks {
    gap: 8px;
  }
  .updates-hero-copy,
  .updates-hero-panel,
  .updates-board,
  .update-release-card,
  .update-compact-card,
  .updates-detail-card,
  .update-timeline-body {
    padding: 18px;
    border-radius: 22px;
  }
  .server-list.is-single {
    padding-inline: 12px;
  }
  .server-row.is-featured {
    max-width: none;
    grid-template-columns: 1fr;
  }
  .server-row.is-featured .server-right {
    align-items: stretch;
  }
  .server-row.is-featured .server-status {
    justify-content: center;
  }
  .server-row.is-featured .server-actions {
    justify-content: stretch;
  }
  .server-row.is-featured .icon-btn {
    flex: 1 1 0;
  }
  .steps {

@media (min-width: 1024px) {
  .patch-page {
    flex-direction: row;
    align-items: flex-start;
  }
  .patch-sidebar {
    position: sticky;
    top: 112px;
    width: 320px;
    flex: 0 0 320px;
  }
  .patch-main {
    min-width: 0;
    flex: 1 1 auto;
  }
}
  .steps {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-meta {
    text-align: right;
  }
}
}
