﻿:root {
  --color-gold: #D4AF37;
  --color-gold-hover: #F2D26D;
  --color-dark: #0A0A0A;
  --color-light: #F5F5F5;
  --color-gray: #888888;
  --border-gold: 1px solid rgba(212, 175, 55, 0.3);
  --font-logo: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(240, 198, 130, 0.85) rgba(14, 19, 31, 0.7);
  scrollbar-width: thin;
  scroll-snap-type: none;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-light);
  /* overflow: hidden; -- removed to allow scrolling */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-snap-type: none;
}

/* Custom scrollbar (desktop) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.85), rgba(18, 24, 38, 0.85));
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(246, 211, 149, 0.95), rgba(200, 154, 86, 0.95));
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(246, 211, 149, 0.35);
  border: 2px solid rgba(12, 16, 26, 0.9);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 226, 170, 0.98), rgba(216, 165, 94, 0.98));
  box-shadow: 0 0 14px rgba(255, 226, 170, 0.45);
}

body .header,
body .main-content,
body .content-wrapper {
  transition: opacity 0.95s ease, transform 0.95s ease, filter 0.95s ease;
}

body.is-loading .header,
body.is-loading .main-content,
body.is-loading .content-wrapper {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  filter: blur(7px);
}

body.is-ready .header {
  animation: pageRevealHeader 0.85s ease forwards;
}

body.is-ready .main-content {
  animation: pageRevealMain 1.05s ease 0.08s forwards;
}

body.is-ready .content-wrapper {
  animation: pageRevealMain 1.05s ease 0.2s forwards;
}

/* Preloader */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(12, 16, 30, 0.96) 0%, rgba(5, 7, 14, 0.995) 100%);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  padding: 1rem;
}

.preloader-logo {
  width: min(460px, 80vw);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
}

.preloader-text {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  font-size: 0.8rem;
}

.preloader-dots {
  display: inline-flex;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.preloader-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4c36a, #9cc8ff);
  box-shadow: 0 0 12px rgba(158, 198, 255, 0.65);
  animation: preloaderDot 1s infinite ease-in-out;
}

.preloader-dots span:nth-child(2) { animation-delay: 0.18s; }
.preloader-dots span:nth-child(3) { animation-delay: 0.36s; }

/* Background */
.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('assets/images/hero-bg.png') no-repeat center center / cover;
  z-index: -3;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  animation: drift 18s infinite alternate ease-in-out;
  will-change: transform;
}

.page-background::before,
.page-background::after {
  display: none;
}

.page-background::before {
  display: none;
}

.page-background::after {
  display: none;
}

.page-fog {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
}

.page-fog::before,
.page-fog::after {
  content: '';
  position: absolute;
  width: 175%;
  height: 150%;
  left: -38%;
  top: -20%;
  background-repeat: no-repeat;
  filter: blur(42px);
  opacity: 0.42;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.page-fog::before {
  background-image:
    radial-gradient(22% 20% at 14% 28%, rgba(208, 232, 250, 0.42), rgba(208, 232, 250, 0)),
    radial-gradient(26% 22% at 42% 38%, rgba(192, 221, 245, 0.38), rgba(192, 221, 245, 0)),
    radial-gradient(30% 24% at 74% 34%, rgba(220, 239, 255, 0.4), rgba(220, 239, 255, 0)),
    radial-gradient(34% 26% at 52% 74%, rgba(186, 214, 238, 0.44), rgba(186, 214, 238, 0));
  animation: fogMoveA 28s ease-in-out infinite alternate;
}

.page-fog::after {
  background-image:
    radial-gradient(24% 22% at 10% 62%, rgba(196, 225, 249, 0.34), rgba(196, 225, 249, 0)),
    radial-gradient(28% 24% at 36% 76%, rgba(177, 208, 235, 0.4), rgba(177, 208, 235, 0)),
    radial-gradient(26% 22% at 66% 68%, rgba(210, 234, 252, 0.36), rgba(210, 234, 252, 0)),
    radial-gradient(24% 20% at 88% 76%, rgba(186, 218, 242, 0.34), rgba(186, 218, 242, 0));
  animation: fogMoveB 34s ease-in-out infinite alternate;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -12px, 0); }
}

@keyframes fogMoveA {
  0% { transform: translate3d(-4%, -1%, 0) scale(1.03); opacity: 0.28; }
  50% { transform: translate3d(3%, 1.5%, 0) scale(1.06); opacity: 0.42; }
  100% { transform: translate3d(7%, -1%, 0) scale(1.02); opacity: 0.3; }
}

@keyframes fogMoveB {
  0% { transform: translate3d(5%, 0.8%, 0) scale(1.02); opacity: 0.24; }
  50% { transform: translate3d(-2%, -1.4%, 0) scale(1.05); opacity: 0.4; }
  100% { transform: translate3d(-6%, 1.2%, 0) scale(1.03); opacity: 0.26; }
}

.page-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at center, rgba(8, 12, 22, 0.24) 0%, rgba(8, 11, 18, 0.72) 100%);
  z-index: -1;
}

/* Header & Top Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  padding: 0.95rem 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(9, 13, 21, 0.88), rgba(12, 16, 26, 0.76)),
    radial-gradient(circle at 50% -180%, rgba(138, 178, 231, 0.2), rgba(138, 178, 231, 0));
  border-bottom: 1px solid rgba(171, 197, 234, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-container {
  grid-column: 2;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.mobile-menu-toggle {
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 1.15rem;
  padding-left: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-links a {
  text-decoration: none;
  color: rgba(234, 242, 255, 0.92);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.55px;
  font-weight: 600;
  transition: transform 0.22s ease, color 0.22s ease, text-shadow 0.22s ease;
  position: relative;
  padding: 0.25rem 0.05rem;
  border: none;
  background: transparent;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  line-height: 1;
  white-space: nowrap;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: -6px -10px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 50%, rgba(244, 214, 155, 0.12), rgba(244, 214, 155, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(249, 221, 164, 0.95), transparent);
  transition: width 0.28s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffe3ad;
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(249, 221, 164, 0.42), 0 1px 3px rgba(0, 0, 0, 0.45);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-links a.active {
  transform: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  background: transparent !important;
  box-shadow: none !important;
}

.nav-links a.active::before {
  opacity: 0;
}

.header-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 0.55rem;
}

.btn-login {
  text-decoration: none;
  color: #150a02;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  border: 1px solid rgba(252, 226, 171, 0.98);
  padding: 0.72rem 1.72rem;
  border-radius: 999px;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, background 0.32s ease, color 0.32s ease, filter 0.32s ease;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 251, 238, 0.38), rgba(255, 251, 238, 0) 48%),
    linear-gradient(180deg, rgba(255, 250, 235, 0.34) 0%, rgba(255, 250, 235, 0.08) 16%, rgba(255, 250, 235, 0) 32%),
    linear-gradient(135deg, #ba8220 0%, #e1b654 28%, #f3d687 52%, #f9e7b6 76%, #fff3d4 100%);
  white-space: nowrap;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 236, 197, 0.08),
    0 0 22px rgba(244, 205, 116, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -10px 20px rgba(120, 65, 5, 0.12);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-login::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 248, 228, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 32%, rgba(255, 255, 255, 0) 52%);
  pointer-events: none;
  z-index: -1;
}

.btn-login:hover {
  border-color: #ffeec0;
  color: #100701;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 253, 243, 0.46), rgba(255, 253, 243, 0) 52%),
    linear-gradient(180deg, rgba(255, 252, 241, 0.4) 0%, rgba(255, 252, 241, 0.09) 16%, rgba(255, 252, 241, 0) 32%),
    linear-gradient(135deg, #c48d27 0%, #e8bf63 30%, #f7db94 54%, #fcecc0 78%, #fff7dd 100%);
  transform: translateY(-4px) scale(1.034);
  filter: saturate(1.03) brightness(1.02);
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.44),
    0 0 26px rgba(247, 217, 145, 0.34),
    0 0 0 1px rgba(255, 241, 208, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -12px 24px rgba(130, 74, 8, 0.12);
}

.btn-login::after {
  content: '';
  position: absolute;
  inset: -42% -18%;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
  transform: translateX(-135%) skewX(-16deg);
  transition: transform 0.72s ease;
  z-index: -1;
}

.btn-login:hover::after {
  transform: translateX(125%) skewX(-16deg);
}

/* Language selector */
.lang-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 214, 155, 0.75);
  background:
    linear-gradient(135deg, rgba(22, 30, 48, 0.9), rgba(12, 18, 30, 0.9));
  color: #f7ecd3;
  font-size: 0.66rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 214, 140, 0.85);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.36),
    0 0 12px rgba(255, 214, 140, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(10, 14, 23, 0.96);
  border: 1px solid rgba(174, 197, 229, 0.3);
  border-radius: 14px;
  padding: 0.5rem;
  display: none;
  z-index: 50;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(200, 168, 110, 0.18);
}

.lang-selector.open .lang-menu {
  display: grid;
  gap: 0.25rem;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  color: #e9f1ff;
  text-decoration: none;
  font-size: 0.7rem;
  background: rgba(18, 25, 40, 0.55);
  border: 1px solid rgba(174, 197, 229, 0.2);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.lang-item:hover {
  background: rgba(255, 214, 140, 0.12);
  border-color: rgba(255, 214, 140, 0.38);
  color: #ffe6b8;
  transform: translateX(2px);
}

.flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
  font-size: 12px;
  line-height: 12px;
}

.flag-ru {
  background: url('./assets/flag-ru-clean.webp') center / cover no-repeat;
  border: none;
  box-shadow: none;
}

.flag-ua {
  background: linear-gradient(
    180deg,
    #1e67ff 0%,
    #1e67ff 50%,
    #ffd24a 50%,
    #ffd24a 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.flag-en {
  background: url('./assets/flag-us.webp') center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Main Content Area */
.main-content {
  position: relative;
  width: 100vw;
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* Hero Section */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 980px;
  transform: translateY(-3%);
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.hero-logo {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.74))
    drop-shadow(0 0 20px rgba(185, 215, 255, 0.22));
  transform-origin: 50% 58%;
  animation:
    fadeInDown 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards,
    logoImagePulse 4.8s ease-in-out 0.9s infinite,
    logoImageTilt 6.4s ease-in-out 0.9s infinite;
}

.hero-logo-wrap {
  position: relative;
  display: block;
  width: min(500px, 80vw);
  margin: 0 auto 1.35rem;
  overflow: visible;
  border-radius: 0;
}

.hero-logo-wrap::after {
  display: none !important;
}

.hero-logo-wrap::before {
  display: none !important;
}

.hero-text {
  margin-bottom: 3rem;
  animation: fadeIn 2s 0.5s ease forwards;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-logo);
  font-size: 3rem;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 6px;
  text-shadow: 0 4px 15px rgba(0,0,0,1);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-cta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1.5s 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
}

/* Buttons */
.btn-primary, .btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
  overflow: hidden;
  transition: var(--transition-fast);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #c79a22, #dfbb5b);
  color: #000;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  border: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6);
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -60% -30%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 236, 191, 0.5), rgba(255, 236, 191, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(10, 10, 10, 0.4);
  color: #FFF;
  border: 1px solid var(--color-gold);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.2), 0 10px 20px rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}

.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(210, 230, 255, 0.2), rgba(255, 255, 255, 0));
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.btn-secondary:hover::after {
  transform: translateX(120%);
}

/* Status Bar */
.status-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100% - 30px));
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(11, 16, 27, 0.74), rgba(7, 11, 19, 0.76)),
    radial-gradient(circle at 18% 0%, rgba(213, 174, 96, 0.18), rgba(213, 174, 96, 0) 32%),
    radial-gradient(circle at 84% 100%, rgba(88, 118, 255, 0.12), rgba(88, 118, 255, 0) 28%);
  border: 1px solid rgba(199, 167, 111, 0.44);
  border-radius: 22px;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 241, 208, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  animation: fadeIn 1.7s 1s ease forwards;
  opacity: 0;
}

.status-bar::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(234, 205, 148, 0.11);
  border-radius: 18px;
  pointer-events: none;
}

.status-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.status-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  z-index: 1;
}

.status-item + .status-item {
  border-left: 1px solid rgba(212, 179, 121, 0.16);
}

.status-label {
  font-size: 0.6rem;
  color: #d7b885;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.45rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.48);
}

.status-value {
  font-family: var(--font-logo);
  color: #f9de9d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  white-space: nowrap;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.55);
}

.status-number {
  font-size: 1.42rem;
  line-height: 1;
  color: #fff0c9;
  letter-spacing: 0.02em;
}

.status-value span.text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.status-value .text-online {
  color: #cdebd3;
}

.status-value .text-offline {
  color: #ffb8b8;
}

.chronicle-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(212, 175, 55, 0.09);
  color: #fff0c6;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.status-divider {
  display: none;
}

.status-state {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.status-state--online {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.95);
  animation: statusPulseOnline 1.9s infinite;
}

.status-state--offline {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.75);
  animation: statusPulseOffline 2.1s infinite;
}

.pulse-green {
  display: none;
}

@keyframes statusPulseOnline {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.42); }
  70% { box-shadow: 0 0 0 11px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes statusPulseOffline {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.32); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes preloaderDot {
  0%, 80%, 100% { transform: translateY(0) scale(1); opacity: 0.65; }
  40% { transform: translateY(-8px) scale(1.06); opacity: 1; }
}

@keyframes preloaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pageRevealHeader {
  from { opacity: 0; transform: translateY(-18px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes pageRevealMain {
  from { opacity: 0; transform: translateY(22px) scale(0.99); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Responsive */
@media (max-width: 900px) {
  html, body {
    scroll-snap-type: none;
  }
  .header {
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    padding: 0.48rem 0.55rem;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0.44rem;
  }
  .nav-container {
    width: 100%;
    position: relative;
    display: block;
  }
  .mobile-menu-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.66rem;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #f1f5ff;
    background: linear-gradient(180deg, rgba(18, 25, 40, 0.86), rgba(14, 19, 31, 0.86));
    border: 1px solid rgba(181, 206, 238, 0.3);
    border-radius: 10px;
    padding: 0.56rem 0.62rem;
    cursor: pointer;
  }
  .mobile-menu-toggle::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(239, 214, 166, 0.92);
    border-bottom: 2px solid rgba(239, 214, 166, 0.92);
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
  }
  .header.menu-open .mobile-menu-toggle::after {
    transform: rotate(-135deg) translateY(-1px);
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.45rem;
    border-radius: 12px;
    border: 1px solid rgba(174, 197, 229, 0.3);
    background: linear-gradient(180deg, rgba(11, 17, 29, 0.94), rgba(8, 13, 22, 0.94));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    z-index: 9;
    overflow: visible;
  }
  .header.menu-open .nav-links {
    display: flex;
  }
  .nav-links a {
    font-size: 0.6rem;
    letter-spacing: 0.9px;
    padding: 0.52rem 0.35rem;
    text-align: center;
    border: 1px solid rgba(174, 197, 229, 0.24);
    border-radius: 10px;
    background: rgba(15, 21, 33, 0.58);
    transform: none;
  }
  .nav-links a::after {
    display: none;
  }
  .header-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .btn-login {
    width: 100%;
    max-width: none;
    text-align: center;
    font-size: 0.62rem;
    letter-spacing: 1px;
    padding: 0.52rem 0.7rem;
  }
  .main-content {
    min-height: auto;
    height: auto;
    padding-top: 186px;
    padding-bottom: 20px;
  }
  .hero {
    transform: none;
    padding: 1rem 12px 0;
  }
  .hero-logo {
    width: min(82vw, 420px);
    margin-bottom: 0.95rem;
  }
  .hero-title {
    font-size: 1.62rem;
    letter-spacing: 2.6px;
  }
  .hero-subtitle {
    font-size: 0.74rem;
    letter-spacing: 2px;
  }
  .hero-text {
    margin-bottom: 1.15rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    max-width: 340px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 0.92rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 1.2px;
  }
  .status-bar {
    position: relative;
    left: auto;
    transform: none;
    bottom: auto;
    width: calc(100% - 16px);
    max-width: 440px;
    flex-direction: column;
    gap: 4px;
    padding: 7px 8px;
    margin: 0.95rem auto 0;
    border-radius: 14px;
  }
  .status-item {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 8px 4px;
  }
  .status-item + .status-item {
    border-left: none;
    border-top: 1px solid rgba(162, 196, 236, 0.24);
    padding-top: 7px;
  }
  .status-label {
    font-size: 0.54rem;
    margin-bottom: 0.2rem;
  }
  
  .status-number {
    font-size: 1.14rem;
  }
  .chronicle-pill {
    font-size: 0.78rem;
    min-height: 30px;
    padding: 0.26rem 0.72rem;
  }
  .status-divider { display: none; }
  .info-section {
    padding: 3.4rem 7%;
  }
  .section-title {
    font-size: 1.72rem;
    letter-spacing: 2px;
  }
  .section-content {
    font-size: 0.98rem;
  }
  .download-card {
    min-width: 0;
    width: 100%;
    padding: 1.8rem 1.2rem;
  }
  .stats-preview {
    gap: 1.1rem;
  }
  .stat-box {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .mobile-menu-toggle {
    font-size: 0.61rem;
    padding: 0.5rem 0.56rem;
  }
  .nav-links a {
    font-size: 0.56rem;
    padding: 0.46rem 0.26rem;
  }
  .btn-login {
    font-size: 0.58rem;
  }
  .main-content {
    padding-top: 222px;
  }
  .hero-title {
    font-size: 1.34rem;
    letter-spacing: 1.8px;
  }
  .hero-subtitle {
    font-size: 0.66rem;
    letter-spacing: 1.4px;
  }
  .hero-logo {
    width: min(84vw, 360px);
  }
  .section-title {
    font-size: 1.5rem;
  }
}

/* Scrollable Content Sections */
.content-wrapper {
  background: transparent;
  position: relative;
  z-index: 15;
  padding-top: 0;
}

.info-section {
  padding: 6rem 10%;
  border-bottom: 1px solid rgba(255,255,255,0.025);
  background: transparent;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.section-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-logo);
  color: var(--color-gold);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
}

.section-content {
  color: var(--color-light);
  line-height: 1.8;
  font-size: 1.1rem;
}

.section-content p {
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  text-align: left;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-block {
    padding: 0.95rem 1rem;
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  .about-block p {
    font-size: 0.88rem;
  }
  .about-block li {
    font-size: 0.86rem;
  }
  .about-block > *:not(h3) {
    grid-column: auto !important;
  }
  .about-block h3 {
    margin-bottom: 0.55rem;
  }
  .about-cols {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }
}

.about-block {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 0.95rem 1.15rem;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 1.05rem;
  align-items: start;
  position: relative;
  overflow: hidden;
  animation: aboutBreath 6.2s ease-in-out infinite;
}

.about-block h3 {
  font-family: var(--font-logo);
  color: var(--color-gold);
  font-size: 0.98rem;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 0.35rem;
}

.about-block h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 2px;
  background: linear-gradient(90deg, rgba(242, 210, 109, 0.9), rgba(242, 210, 109, 0));
}

/* removed glow patch to avoid light squares */

.about-block > *:not(h3) {
  grid-column: 2;
}

.about-block p {
  color: var(--color-light);
  line-height: 1.35;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

/* subtle block animation */
.about-block {
  transition: transform 0.25s ease;
  will-change: transform;
}

.about-block:hover {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

@keyframes aboutBreath {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.about-block ul,
.about-block ol {
  padding-left: 0.95rem;
  margin-bottom: 0.45rem;
}

.about-block li {
  margin-bottom: 0.22rem;
  font-size: 0.88rem;
}

.about-lead {
  font-size: 0.9rem;
  color: #e8dcc7;
}

.about-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
}

/* News Section */
#news {
  position: relative;
}

#news .section-container {
  position: relative;
  padding: clamp(2rem, 3vw, 2.8rem);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.012) 100%),
    rgba(8, 10, 16, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

#news .section-container::before {
  content: '';
  position: absolute;
  inset: -18% auto auto -8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 42%, transparent 72%);
  filter: blur(14px);
  pointer-events: none;
}

#news .section-container::after {
  content: '';
  position: absolute;
  inset: auto -10% -30% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 123, 255, 0.08) 0%, transparent 68%);
  filter: blur(16px);
  pointer-events: none;
}

#news .section-title {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

#news .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 140px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.24), rgba(255, 226, 153, 0.95), rgba(212, 175, 55, 0.24), transparent);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.18);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.news-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.012) 100%),
    rgba(5, 7, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem;
  border-radius: 20px;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    filter 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform, box-shadow;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0) 0%, rgba(255, 232, 170, 0.95) 35%, rgba(212, 175, 55, 1) 70%, rgba(212, 175, 55, 0) 100%);
  transform: scaleX(0.18);
  transform-origin: left;
  opacity: 0.35;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.news-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  border: 1px solid rgba(255, 228, 162, 0.0);
  opacity: 0;
  transition: opacity 0.35s ease, border-color 0.35s ease;
  pointer-events: none;
}

.news-card:hover,
.news-card:focus-within {
  transform: translate3d(0, -18px, 0) scale(1.03);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(9, 12, 18, 0.86);
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow:
    0 34px 72px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.025);
  filter: saturate(1.03) brightness(1.03);
}

.news-card:hover::before,
.news-card:focus-within::before {
  transform: scaleX(1);
  opacity: 1;
  animation: newsShimmerLine 1.85s linear infinite;
}

.news-card:hover::after,
.news-card:focus-within::after {
  opacity: 1;
  border-color: rgba(255, 228, 162, 0.12);
}

.news-date {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  color: #f4d991;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.news-card h3 {
  font-family: var(--font-logo);
  color: #fff;
  font-size: 1.34rem;
  margin-bottom: 0.95rem;
  line-height: 1.24;
}

.news-card p {
  color: #b9becb;
  font-size: 0.95rem;
  line-height: 1.76;
  margin-bottom: 1.6rem;
}

.news-link {
  color: var(--color-gold);
  text-decoration: none;
  font-size: 0.88rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.4px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: color 0.28s ease, transform 0.28s ease;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.news-link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.28s ease;
}

.news-card:hover .news-link,
.news-card:focus-within .news-link,
.news-link:hover {
  color: #fff;
}

.news-card:hover .news-link::after,
.news-card:focus-within .news-link::after,
.news-link:hover::after {
  transform: translateX(4px);
}

@keyframes newsShimmerLine {
  0% { filter: brightness(0.96); }
  50% { filter: brightness(1.26); }
  100% { filter: brightness(0.96); }
}

/* Community Section */
.community-section {
  position: relative;
  overflow: hidden;
}

.community-section::before {
  content: '';
  position: absolute;
  inset: 4% 8% auto;
  height: 280px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.18), transparent 42%),
    radial-gradient(circle at 78% 42%, rgba(62, 142, 255, 0.16), transparent 38%);
  filter: blur(30px);
  opacity: 0.85;
  pointer-events: none;
}

.community-heading {
  max-width: 760px;
  margin: 0 auto 2.8rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.community-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.42rem 1rem;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(9, 11, 18, 0.62);
  color: rgba(246, 218, 150, 0.94);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.community-kicker::before,
.community-kicker::after {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.75), transparent);
}

.community-intro {
  max-width: 660px;
  margin: 0 auto;
  color: #b8bdca;
  line-height: 1.8;
  text-align: center;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  position: relative;
  z-index: 1;
}

.community-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 2rem;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(7, 10, 16, 0.8) 0%, rgba(7, 10, 16, 0.66) 30%, rgba(7, 10, 16, 0.22) 58%, rgba(7, 10, 16, 0.28) 100%),
    linear-gradient(180deg, rgba(255, 224, 146, 0.1) 0%, rgba(255, 224, 146, 0.04) 22%, rgba(8, 10, 16, 0.22) 100%),
    url('./assets/community-castle-clean.jpg') 78% center / cover no-repeat;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: translateY(0) scale(1);
  transform-origin: center bottom;
  will-change: transform, box-shadow, filter;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

.community-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 28%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.03) 0%, rgba(8, 10, 16, 0.18) 60%, rgba(8, 10, 16, 0.32) 100%),
    linear-gradient(90deg, rgba(5, 6, 12, 0.62) 0%, rgba(5, 6, 12, 0.5) 30%, rgba(5, 6, 12, 0.1) 70%, rgba(5, 6, 12, 0.24) 100%);
  z-index: -2;
}

.community-card::after {
  content: '';
  position: absolute;
  top: -92px;
  right: -78px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  z-index: -1;
  animation: communityOrbFloat 8s ease-in-out infinite;
}

.community-card:hover,
.community-card:focus-within {
  transform: translate3d(0, -18px, 0) scale(1.03);
  border-color: rgba(212, 175, 55, 0.32);
  box-shadow:
    0 34px 76px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  filter: saturate(1.04) brightness(1.03);
}

.community-card:hover::before,
.community-card:focus-within::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), transparent 28%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.02) 0%, rgba(8, 10, 16, 0.14) 60%, rgba(8, 10, 16, 0.28) 100%),
    linear-gradient(90deg, rgba(5, 6, 12, 0.56) 0%, rgba(5, 6, 12, 0.44) 30%, rgba(5, 6, 12, 0.06) 70%, rgba(5, 6, 12, 0.18) 100%);
  animation: communityCardInnerShift 2.8s ease-in-out infinite;
}

.community-card__frame {
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 217, 149, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.community-card:hover .community-card__frame,
.community-card:focus-within .community-card__frame {
  animation: communityCardFrameShake 2.35s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.community-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.45rem;
}

.community-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(7, 8, 14, 0.65);
  color: var(--color-light);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-tag {
  color: #c7b387;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.community-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 1.35rem;
  border-radius: 20px;
  font-family: var(--font-logo);
  font-size: 1.85rem;
  color: #fff7d3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.26);
}

.community-card:hover .community-mark,
.community-card:focus-within .community-mark {
  animation: communityMarkFloat 2.15s ease-in-out infinite;
}

.community-mark svg {
  width: 31px;
  height: 31px;
  display: block;
}

.community-copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.community-copy h3 {
  font-family: var(--font-logo);
  font-size: 1.7rem;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
}

.community-copy p {
  color: #d6dae4;
  line-height: 1.75;
  margin-bottom: 1.35rem;
  max-width: 28rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.community-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.community-list li {
  position: relative;
  padding-left: 1.35rem;
  color: #eef1f7;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.community-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
}

.community-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}

.community-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f6fb;
}

.community-flag--discord {
  border-color: rgba(122, 149, 255, 0.32);
  background: rgba(75, 95, 196, 0.14);
}

.community-flag--telegram {
  border-color: rgba(65, 203, 255, 0.32);
  background: rgba(17, 121, 199, 0.14);
}

.community-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: auto;
  align-self: flex-start;
  min-width: 220px;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease, filter 0.3s ease;
}

.community-button::after {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 235, 0.24);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 58%),
    rgba(10, 12, 20, 0.18)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M5.25 12.75L12.75 5.25' stroke='%23FFF5D1' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M7.1 5.25H12.75V10.9' stroke='%23FFF5D1' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.community-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.community-button:hover::after {
  transform: translate(2px, -2px) scale(1.06);
  border-color: rgba(255, 236, 187, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.24);
}

.community-card--discord::after {
  background: radial-gradient(circle, rgba(94, 123, 255, 0.34) 0%, rgba(94, 123, 255, 0.08) 46%, transparent 72%);
}

.community-card--discord .community-mark {
  background: linear-gradient(145deg, rgba(94, 123, 255, 0.9), rgba(46, 68, 164, 0.7));
}

.community-button--discord {
  color: #fff8eb;
  border: 1px solid rgba(255, 215, 143, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 230, 178, 0.18), rgba(255, 230, 178, 0) 38%),
    linear-gradient(135deg, rgba(118, 136, 255, 0.92), rgba(61, 72, 147, 0.92));
  box-shadow:
    0 16px 36px rgba(36, 56, 140, 0.3),
    inset 0 1px 0 rgba(255, 243, 212, 0.18);
}

.community-button--discord:hover {
  box-shadow: 0 22px 42px rgba(36, 56, 140, 0.45);
}

.community-card--telegram::after {
  background: radial-gradient(circle, rgba(42, 192, 255, 0.32) 0%, rgba(42, 192, 255, 0.08) 46%, transparent 72%);
}

.community-card--telegram .community-mark {
  background: linear-gradient(145deg, rgba(45, 193, 255, 0.92), rgba(13, 116, 192, 0.72));
}

.community-button--telegram {
  color: #fff8eb;
  border: 1px solid rgba(255, 215, 143, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 230, 178, 0.18), rgba(255, 230, 178, 0) 38%),
    linear-gradient(135deg, rgba(47, 186, 245, 0.96), rgba(15, 118, 190, 0.92));
  box-shadow:
    0 16px 36px rgba(10, 96, 155, 0.3),
    inset 0 1px 0 rgba(255, 243, 212, 0.18);
}

.community-button--telegram:hover {
  box-shadow: 0 22px 42px rgba(10, 96, 155, 0.44);
}

.community-card--discord {
  background-position: 74% center;
}

.community-card--telegram {
  background-position: 76% center;
}

body.is-ready .community-card {
  animation: communityCardReveal 0.7s ease both;
}

body.is-ready .community-card:nth-child(2) {
  animation-delay: 0.12s;
}

@media (max-width: 900px) {
  .community-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .community-card {
    min-height: 0;
    padding: 1.5rem;
    border-radius: 24px;
  }

  .community-copy h3 {
    font-size: 1.45rem;
  }

  .community-button {
    width: 100%;
    min-width: 0;
    align-self: stretch;
  }

  .community-button::after {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    background-size: 11px 11px;
  }

  .footer-socials {
    gap: 0.7rem;
  }
}

@media (max-width: 560px) {
  .community-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .community-kicker::before,
  .community-kicker::after {
    width: 14px;
  }

  .community-intro {
    font-size: 0.92rem;
  }

  .community-card__top {
    align-items: flex-start;
  }

  .community-tag {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .community-mark {
    width: 56px;
    height: 56px;
    font-size: 1.55rem;
    border-radius: 18px;
  }

  .community-copy h3 {
    font-size: 1.28rem;
  }

  .community-list li {
    font-size: 0.92rem;
  }

  .community-flags {
    gap: 0.5rem;
  }

  .community-flag {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .footer-social {
    width: 100%;
    justify-content: center;
  }
}

@keyframes communityCardReveal {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes communityOrbFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-10px, 10px, 0) scale(1.08);
  }
}

@keyframes communityCardFrameShake {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  18% {
    transform: translate3d(0.6px, -0.8px, 0) rotate(-0.16deg);
  }
  36% {
    transform: translate3d(-0.7px, 0.45px, 0) rotate(0.12deg);
  }
  58% {
    transform: translate3d(0.45px, -0.18px, 0) rotate(-0.08deg);
  }
  80% {
    transform: translate3d(-0.35px, 0.32px, 0) rotate(0.05deg);
  }
}

@keyframes communityCardInnerShift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.5px, -1px, 0) scale(1.005);
  }
}

@keyframes communityMarkFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Features List */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.features-list li {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-left: 3px solid var(--color-gold);
  border-radius: 14px;
}

/* Download Cards */
.files-section-shell {
  position: relative;
  padding: clamp(2rem, 3vw, 2.85rem);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026) 0%, rgba(255, 255, 255, 0.012) 100%),
    rgba(8, 10, 16, 0.58);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}

.files-section-shell::before {
  content: '';
  position: absolute;
  inset: -22% auto auto -8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.13) 0%, rgba(212, 175, 55, 0.04) 44%, transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}

.files-section-shell::after {
  content: '';
  position: absolute;
  inset: auto -8% -34% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 118, 255, 0.08) 0%, transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.files-heading {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.files-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(212, 175, 55, 0.08);
  color: #f0d38f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.files-heading .section-title {
  position: relative;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.files-heading .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 146px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.22), rgba(255,226,153,0.95), rgba(212,175,55,0.22), transparent);
  box-shadow: 0 0 18px rgba(212,175,55,0.18);
}

.files-intro {
  max-width: 680px;
  margin: 0 auto;
  color: #b8beca;
  font-size: 0.98rem;
  line-height: 1.8;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.7rem;
  position: relative;
  z-index: 1;
}

.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 2rem 1.8rem 1.9rem;
  text-align: center;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.012) 100%),
    rgba(5, 7, 12, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.03);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    filter 0.35s ease;
  transform: translate3d(0,0,0) scale(1);
  will-change: transform, box-shadow;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(212,175,55,0) 0%, rgba(255,232,170,0.95) 35%, rgba(212,175,55,1) 70%, rgba(212,175,55,0) 100%);
  transform: scaleX(0.18);
  transform-origin: left;
  opacity: 0.35;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.download-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  border: 1px solid rgba(255,228,162,0);
  opacity: 0;
  transition: opacity 0.35s ease, border-color 0.35s ease;
  pointer-events: none;
}

.download-card:hover,
.download-card:focus-within {
  transform: translate3d(0, -18px, 0) scale(1.03);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.02) 100%),
    rgba(9, 12, 18, 0.86);
  border-color: rgba(212,175,55,0.28);
  box-shadow:
    0 34px 72px rgba(0,0,0,0.46),
    0 0 0 1px rgba(255,255,255,0.025);
  filter: saturate(1.03) brightness(1.03);
}

.download-card:hover::before,
.download-card:focus-within::before {
  transform: scaleX(1);
  opacity: 1;
  animation: downloadShimmerLine 1.85s linear infinite;
}

.download-card:hover::after,
.download-card:focus-within::after {
  opacity: 1;
  border-color: rgba(255,228,162,0.12);
}

.download-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.72rem;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.14);
  background: rgba(212,175,55,0.08);
  color: #f0d38f;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.download-card__icon {
  position: relative;
  width: 74px;
  height: 74px;
  margin-bottom: 1.35rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,248,230,0.22), rgba(255,248,230,0) 38%),
    linear-gradient(145deg, rgba(38,50,86,0.94), rgba(14,20,34,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-card__icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-card__icon--client svg {
  stroke: #f4d58d;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 10px rgba(244, 213, 141, 0.18));
}

.download-card__icon--patch svg {
  stroke: #f2d8a1;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px rgba(242, 216, 161, 0.18));
}

.download-card h3 {
  font-family: var(--font-logo);
  color: #fff;
  font-size: 1.42rem;
  margin-bottom: 0.9rem;
  line-height: 1.28;
}

.download-card p {
  font-size: 0.95rem;
  color: #b9becb;
  line-height: 1.76;
  margin-bottom: 1.75rem;
}

.download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 220px;
  min-height: 50px;
  margin-top: auto;
  padding: 0.92rem 1.45rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
  position: relative;
  overflow: hidden;
}

.download-action::after {
  content: '→';
  transition: transform 0.28s ease;
}

.download-action:hover::after,
.download-card:hover .download-action::after {
  transform: translateX(4px);
}

.download-action--primary {
  color: #150a02;
  border: 1px solid rgba(252,226,171,0.98);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,251,238,0.36), rgba(255,251,238,0) 48%),
    linear-gradient(180deg, rgba(255,250,235,0.34) 0%, rgba(255,250,235,0.08) 16%, rgba(255,250,235,0) 32%),
    linear-gradient(135deg, #ba8220 0%, #e1b654 28%, #f3d687 52%, #f9e7b6 76%, #fff3d4 100%);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.32),
    0 0 18px rgba(244,205,116,0.18),
    inset 0 1px 0 rgba(255,255,255,0.58);
}

.download-action--secondary {
  color: #edf2ff;
  border: 1px solid rgba(179,197,255,0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%),
    linear-gradient(135deg, rgba(37,48,78,0.96), rgba(16,21,36,0.96));
  box-shadow:
    0 14px 30px rgba(0,0,0,0.28),
    0 0 18px rgba(91,121,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.download-action:hover {
  text-decoration: none;
}

.download-card:hover .download-action--primary,
.download-action--primary:hover {
  color: #100701;
  box-shadow:
    0 18px 34px rgba(0,0,0,0.42),
    0 0 20px rgba(246,214,133,0.32),
    inset 0 1px 0 rgba(255,255,255,0.68);
}

.download-card:hover .download-action--secondary,
.download-action--secondary:hover {
  color: #ffffff;
  border-color: rgba(212,175,55,0.22);
  box-shadow:
    0 18px 34px rgba(0,0,0,0.4),
    0 0 20px rgba(96,123,255,0.18),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

@keyframes downloadShimmerLine {
  0% { filter: brightness(0.96); }
  50% { filter: brightness(1.26); }
  100% { filter: brightness(0.96); }
}

/* Stats Preview */
.stats-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.3rem;
  margin-top: 2rem;
  align-items: stretch;
}

.stat-box {
  background:
    radial-gradient(120% 180% at 50% 0%, rgba(214, 175, 86, 0.1) 0%, rgba(214, 175, 86, 0) 55%),
    linear-gradient(180deg, rgba(12, 18, 30, 0.88), rgba(8, 12, 21, 0.9));
  padding: 1.25rem 1.15rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow:
    0 14px 30px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.stat-box h4 {
  color: #f1d18a;
  margin-bottom: 0.9rem;
  font-family: var(--font-logo);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  padding-bottom: 0.55rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.96rem;
}

.stat-box span {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  font-size: 0.95rem;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list li {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0.42rem 0.48rem;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: background-color 0.18s ease;
}

.rank-list li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.rank-list li:hover {
  background: rgba(242, 210, 109, 0.08);
}

.rank-pos {
  --rank-border: rgba(242, 210, 109, 0.24);
  --rank-gloss: rgba(255, 255, 255, 0.2);
  color: #f1d18a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  min-width: 42px;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  border-radius: 999px;
  background: rgba(242, 210, 109, 0.12);
  border: none;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
}

.rank-pos::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px var(--rank-border),
    inset 0 1px 0 var(--rank-gloss);
}

.rank-list li:nth-child(1) .rank-pos {
  color: #2f1a00;
  background: linear-gradient(180deg, #ffe39a, #d9a72d);
  --rank-border: rgba(255, 220, 126, 0.95);
  --rank-gloss: rgba(255, 245, 196, 0.78);
  box-shadow: none;
}

.rank-list li:nth-child(2) .rank-pos {
  color: #1f2732;
  background: linear-gradient(180deg, #f2f7ff, #a8b7ca);
  --rank-border: rgba(217, 229, 243, 0.95);
  --rank-gloss: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.rank-list li:nth-child(3) .rank-pos {
  color: #2b1203;
  background: linear-gradient(180deg, #e8b789, #a46438);
  --rank-border: rgba(230, 178, 134, 0.95);
  --rank-gloss: rgba(255, 226, 200, 0.62);
  box-shadow: none;
}

.rank-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rank-name {
  color: #e6edf9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.44rem;
}

.rank-crest-wrap {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  line-height: 0;
  font-size: 0;
  transform: translateY(0);
  white-space: nowrap;
}

.rank-crest-wrap > * {
  margin: 0 !important;
  padding: 0 !important;
}

.rank-crest-wrap br {
  display: none !important;
}

.rank-crest-wrap img {
  width: auto;
  height: auto;
  max-width: 16px;
  max-height: 12px;
  display: block !important;
  border-radius: 0;
  flex: 0 0 auto;
  box-shadow: none;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

.rank-clan {
  margin-top: 0.15rem;
  color: #9fb0c8;
  font-size: 0.74rem;
  line-height: 1.1;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  column-gap: 4px !important;
  row-gap: 0 !important;
  min-width: 0;
  white-space: nowrap !important;
}

.rank-clan-text {
  display: inline-block !important;
  order: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.rank-crest-clan {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  order: 1;
}

.rank-name::before {
  display: none;
  content: '';
  width: 1.52rem;
  height: 1.34rem;
  line-height: 1;
  flex: 0 0 auto;
  border: none;
  box-shadow: none;
  transform: translateY(1px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: none;
  -webkit-text-stroke: 0;
}

.rank-list li:nth-child(1) .rank-name::before {
  display: inline-block;
  background-image: url('crown-premium.png?v=2');
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.rank-list li:nth-child(2) .rank-name::before {
  display: inline-block;
  background-image: url('crown-premium.png?v=2');
  filter: grayscale(0.95) saturate(0.2) brightness(1.22) contrast(0.94) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.rank-list li:nth-child(3) .rank-name::before {
  display: inline-block;
  background-image: url('crown-premium.png?v=2');
  filter: sepia(0.82) saturate(1.45) hue-rotate(-14deg) brightness(0.95) contrast(1.07) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.rank-val {
  color: #ffffff;
  font-weight: 700;
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.rank-empty {
  color: var(--color-gray);
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 0.9rem 0.6rem;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem;
  background: rgba(5, 5, 5, 0.75);
  color: var(--color-gray);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  color: #eef3fb;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(17, 21, 31, 0.94), rgba(8, 10, 16, 0.92));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-social:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.footer-social__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-social__text {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-social--discord .footer-social__icon,
.footer-social--discord {
  color: #aebeff;
}

.footer-social--telegram .footer-social__icon,
.footer-social--telegram {
  color: #9fe6ff;
}

/* Final Responsive Overrides */
@media (max-width: 900px) {
  .content-wrapper {
    padding-top: 0;
  }
  .info-section {
    padding: 3.4rem 7%;
  }
  .section-title {
    font-size: 1.72rem;
    letter-spacing: 2px;
  }
  .section-content {
    font-size: 0.98rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .news-card {
    padding: 1.3rem;
  }
  .features-list {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .download-cards {
    gap: 1rem;
  }
  .download-card {
    min-width: 0;
    width: 100%;
    padding: 1.8rem 1.2rem;
  }
  .stats-preview {
    gap: 1.1rem;
  }
  .stat-box {
    width: 100%;
    min-width: 0;
  }
  .footer {
    padding: 1.8rem 1rem;
  }
}

@media (max-width: 560px) {
  .info-section {
    padding: 3rem 5.5%;
  }
  .section-title {
    font-size: 1.46rem;
  }
  .section-content {
    font-size: 0.92rem;
  }
}

@keyframes logoLocalGlint {
  0%, 72%, 100% {
    left: -38%;
    opacity: 0;
  }
  78% {
    opacity: 0.52;
  }
  92% {
    left: 112%;
    opacity: 0.52;
  }
  100% {
    left: 112%;
    opacity: 0;
  }
}

@keyframes logoSoftPulse {
  0%, 100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.62;
  }
}

@keyframes logoImagePulse {
  0%, 100% {
    filter:
      drop-shadow(0 10px 28px rgba(0, 0, 0, 0.74))
      drop-shadow(0 0 14px rgba(185, 215, 255, 0.14));
  }
  50% {
    filter:
      drop-shadow(0 14px 34px rgba(0, 0, 0, 0.82))
      drop-shadow(0 0 34px rgba(227, 192, 122, 0.48))
      brightness(1.12);
  }
}

@keyframes logoImageTilt {
  0%, 100% {
    transform: perspective(900px) rotateY(0deg) rotateX(0deg) scale(1);
  }
  25% {
    transform: perspective(900px) rotateY(2.2deg) rotateX(0.9deg) scale(1.025);
  }
  75% {
    transform: perspective(900px) rotateY(-2.2deg) rotateX(-0.9deg) scale(1.025);
  }
}

/* Final Mobile+Logo Overrides */
@media (max-width: 900px) {
  .header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.42rem 0.5rem;
    padding: 0.5rem 0.56rem;
  }
  .nav-container {
    grid-column: 1;
    justify-self: start;
    width: auto;
    max-width: none;
    position: relative;
  }
  .header-right {
    grid-column: 2;
    justify-self: end;
    width: auto;
    display: flex;
    justify-content: flex-end;
  }
  .mobile-menu-toggle {
    width: auto;
    min-width: 104px;
    border-radius: 11px;
    padding: 0.52rem 0.72rem;
    font-size: 0.65rem;
    line-height: 1;
  }
  .nav-links {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: min(340px, calc(100vw - 20px));
    border-radius: 14px;
    padding: 0.46rem;
    gap: 0.33rem;
    z-index: 30;
  }
  .header.menu-open .nav-links {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 0.35rem;
  }
  .nav-links a {
    border-radius: 11px;
  }
  .nav-links a.active {
    background: rgba(15, 21, 33, 0.58) !important;
    border-color: rgba(174, 197, 229, 0.24) !important;
  }
  .main-content {
    padding-top: 154px;
    padding-bottom: 24px;
  }
  .header.menu-open ~ .main-content {
    padding-top: 232px;
  }
  .hero {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 12px 0;
  }
  .hero-logo-wrap {
    width: min(88vw, 420px);
    margin: 0 auto 0.9rem;
    border-radius: 0;
  }
  .hero-logo-wrap::after {
    display: none !important;
  }
  .hero-logo-wrap::before {
    display: none !important;
  }
  .hero-logo {
    width: 100%;
    margin-bottom: 0;
  }
  .hero-text {
    margin-bottom: 0.95rem;
  }
  .hero-title {
    font-size: 1.52rem;
    letter-spacing: 2px;
  }
  .hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 1.6px;
  }
  .hero-cta {
    width: 100%;
    max-width: 360px;
    gap: 0.55rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }
  .btn-login {
    width: auto;
    min-width: 122px;
    max-width: none;
    padding: 0.54rem 0.74rem;
    font-size: 0.62rem;
    line-height: 1;
  }
}

@media (max-width: 560px) {
  html, body {
    scroll-snap-type: none;
  }
  .header {
    padding: 0.52rem 0.5rem;
  }
  .mobile-menu-toggle {
    min-width: 96px;
    font-size: 0.6rem;
    padding: 0.5rem 0.62rem;
  }
  .btn-login {
    min-width: 114px;
    font-size: 0.56rem;
    padding: 0.52rem 0.62rem;
  }
  .main-content {
    padding-top: 150px;
  }
  .header.menu-open ~ .main-content {
    padding-top: 248px;
  }
  .hero-logo-wrap {
    width: min(90vw, 360px);
    border-radius: 0;
  }
  .hero-title {
    font-size: 1.3rem;
    letter-spacing: 1.4px;
  }
  .hero-subtitle {
    font-size: 0.63rem;
    letter-spacing: 1.1px;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.58rem;
    letter-spacing: 0.3px;
    padding: 0.72rem 0.65rem;
    white-space: normal;
    line-height: 1.2;
  }

  .download-card .btn-primary,
  .download-card .btn-secondary {
    min-height: 42px;
  }
}


/* Top menu: no forced yellow active item */
.nav-links a:hover {
  color: #ffe3ad;
  transform: none !important;
  text-shadow: 0 0 8px rgba(249, 221, 164, 0.28), 0 1px 3px rgba(0, 0, 0, 0.45);
}

.nav-links a.active,
.nav-links a.active:hover,
.nav-links a.active:focus {
  color: rgba(234, 242, 255, 0.92) !important;
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
}

.nav-links a.active::after,
.nav-links a.active:hover::after {
  width: 0 !important;
}

.nav-links a.active::before,
.nav-links a.active:hover::before {
  opacity: 0 !important;
}

/* Logo animation: clean image motion, no external glow */
.hero-logo {
  animation:
    fadeInDown 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards,
    logoDriftClean 5.8s ease-in-out 0.9s infinite !important;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.72)) !important;
}

@keyframes logoDriftClean {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
    filter:
      drop-shadow(0 10px 24px rgba(0, 0, 0, 0.72))
      contrast(1)
      saturate(1);
  }
  35% {
    transform: translateY(-3px) scale(1.015) rotate(0.35deg);
    filter:
      drop-shadow(0 12px 26px rgba(0, 0, 0, 0.74))
      contrast(1.06)
      saturate(1.06);
  }
  70% {
    transform: translateY(2px) scale(0.995) rotate(-0.35deg);
    filter:
      drop-shadow(0 10px 22px rgba(0, 0, 0, 0.7))
      contrast(1.02)
      saturate(1.03);
  }
}

/* Mobile header/menu stability */
@media (max-width: 900px) {
  .header {
    overflow: visible !important;
  }

  .nav-container {
    position: relative !important;
    z-index: 40;
  }

  .header .nav-links {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    width: min(270px, calc(100vw - 20px)) !important;
    max-height: min(58vh, 360px);
    overflow-y: auto;
    display: none !important;
    gap: 0.34rem !important;
    padding: 0.5rem !important;
    border-radius: 13px !important;
    border: 1px solid rgba(174, 197, 229, 0.28) !important;
    background: linear-gradient(180deg, rgba(11, 17, 29, 0.96), rgba(8, 13, 22, 0.96)) !important;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.46) !important;
  }

  .header.menu-open .nav-links {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 0 !important;
  }

  .header .nav-links a {
    padding: 0.58rem 0.44rem !important;
    line-height: 1.1 !important;
    font-size: 0.62rem !important;
    letter-spacing: 1px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(174, 197, 229, 0.24) !important;
    background: rgba(15, 21, 33, 0.58) !important;
  }

  .header.menu-open ~ .main-content {
    padding-top: 154px !important;
  }
}

@media (max-width: 560px) {
  .header .nav-links {
    width: min(250px, calc(100vw - 16px)) !important;
  }

  .header.menu-open ~ .main-content {
    padding-top: 150px !important;
  }
}


/* PC top menu hover: calm, no jump */
.nav-links a,
.nav-links a:hover,
.nav-links a:focus,
.nav-links a:active {
  transform: none !important;
}

.nav-links a {
  transition: color 0.18s ease, text-shadow 0.18s ease, opacity 0.18s ease !important;
}

.nav-links a::before {
  display: none !important;
}

.nav-links a::after {
  height: 1px !important;
  bottom: -4px !important;
  background: linear-gradient(90deg, transparent, rgba(249, 221, 164, 0.85), transparent) !important;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #f7ddb0 !important;
  text-shadow: 0 0 6px rgba(249, 221, 164, 0.22), 0 1px 2px rgba(0, 0, 0, 0.45) !important;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100% !important;
}

/* Keep active item neutral */
.nav-links a.active,
.nav-links a.active:hover,
.nav-links a.active:focus {
  color: rgba(234, 242, 255, 0.92) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
}

.nav-links a.active::after,
.nav-links a.active:hover::after,
.nav-links a.active:focus::after {
  width: 0 !important;
}

/* Mobile: items must not overlap */
@media (max-width: 900px) {
  .header .nav-links {
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    row-gap: 6px !important;
    column-gap: 0 !important;
    white-space: normal !important;
  }

  .header.menu-open .nav-links {
    display: flex !important;
  }

  .header .nav-links li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .header .nav-links li + li {
    margin-top: 0 !important;
  }

  .header .nav-links a {
    display: block !important;
    width: 100% !important;
    min-height: 36px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 560px) {
  .header .nav-links a {
    min-height: 34px !important;
    font-size: 0.61rem !important;
    letter-spacing: 0.9px !important;
    padding: 0.56rem 0.42rem !important;
  }
}


/* Prevent accidental drag/select in top interface block */
.header,
.header * {
  -webkit-user-select: none;
  user-select: none;
}

.header a,
.mobile-menu-toggle {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Desktop-only active nav animation (without yellow block) */
@media (min-width: 901px) {
  .nav-links a.active {
    color: #f6ddb1 !important;
    animation: navActivePulse 2.2s ease-in-out infinite;
  }

  .nav-links a.active::after {
    width: 72% !important;
    opacity: 0.9;
    animation: navActiveLine 2.2s ease-in-out infinite;
  }
}

@keyframes navActivePulse {
  0%, 100% {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 4px rgba(246, 221, 177, 0.18);
  }
  50% {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 9px rgba(246, 221, 177, 0.34);
  }
}

@keyframes navActiveLine {
  0%, 100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

@media (min-width: 901px) {
  .nav-links a.active,
  .nav-links a.active:hover,
  .nav-links a.active:focus {
    color: rgba(234, 242, 255, 0.92) !important;
    animation: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
  }

  .nav-links a.active::after,
  .nav-links a.active:hover::after,
  .nav-links a.active:focus::after {
    width: 0 !important;
    opacity: 0 !important;
    animation: none !important;
  }

  .nav-links a {
    overflow: hidden;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    color: #ffe6b8 !important;
    text-shadow:
      0 0 10px rgba(248, 218, 160, 0.34),
      0 1px 2px rgba(0, 0, 0, 0.45) !important;
    animation: none !important;
    background: linear-gradient(180deg, rgba(255, 214, 140, 0.16), rgba(255, 214, 140, 0.06)) !important;
    box-shadow: 0 0 14px rgba(255, 214, 140, 0.22), inset 0 0 12px rgba(255, 214, 140, 0.08);
    border-radius: 999px;
  }

  .nav-links a:hover::after,
  .nav-links a:focus::after {
    width: 100% !important;
    opacity: 1 !important;
    height: 2px !important;
  }
}

/* smooth hover transitions (no snap-in) */
.nav-links a,
.nav-links a::after {
  transition:
    color 0.22s ease,
    text-shadow 0.22s ease,
    opacity 0.22s ease,
    width 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
  will-change: color, text-shadow, opacity, width, box-shadow, background;
}

/* Logo hover animation in CTA style (sheen sweep on image) */
.hero-logo-wrap {
  position: relative;
}

.hero-logo-wrap::after {
  display: block !important;
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -46%;
  width: 42%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 233, 186, 0.26) 52%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  opacity: 0;
  transform: skewX(-16deg);
}

.hero-logo-wrap:hover::after {
  opacity: 1;
  animation: logoCtaSweep 0.85s ease forwards;
}

.hero-logo-wrap:hover .hero-logo {
  filter:
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.74))
    brightness(1.06)
    contrast(1.05) !important;
  transform: translateY(-1px) scale(1.012) !important;
  transition: filter 0.24s ease, transform 0.24s ease;
}

@keyframes logoCtaSweep {
  0% {
    left: -46%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    left: 112%;
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero-logo-wrap::after {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .nav-links a.active {
    color: #e9f1ff !important;
    animation: navActiveSoft 1.9s ease-in-out infinite !important;
  }

  .nav-links a.active::after {
    width: 78% !important;
    opacity: 0.9 !important;
    background: linear-gradient(90deg, transparent, rgba(178, 211, 255, 0.95), transparent) !important;
    animation: navActiveSoftLine 1.9s ease-in-out infinite !important;
  }

  /* Active item must also animate on hover like others */
  .nav-links a.active:hover,
  .nav-links a.active:focus {
    color: #ffe6b8 !important;
    animation: navHoverPulse 0.52s ease-out 1 !important;
    text-shadow:
      0 0 10px rgba(248, 218, 160, 0.34),
      0 1px 2px rgba(0, 0, 0, 0.45) !important;
    background: linear-gradient(180deg, rgba(255, 214, 140, 0.16), rgba(255, 214, 140, 0.06)) !important;
    box-shadow: 0 0 14px rgba(255, 214, 140, 0.22), inset 0 0 12px rgba(255, 214, 140, 0.08);
    border-radius: 999px;
  }

  .nav-links a.active:hover::after,
  .nav-links a.active:focus::after {
    width: 100% !important;
    opacity: 1 !important;
    height: 2px !important;
    animation: none !important;
  }
}

@keyframes navActiveSoft {
  0%, 100% {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 5px rgba(174, 205, 248, 0.18);
  }
  50% {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 10px rgba(174, 205, 248, 0.38);
  }
}

@keyframes navActiveSoftLine {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Replace mask sheen: hover animation only on logo image */
.hero-logo-wrap::after {
  display: none !important;
}

.hero-logo-wrap::before {
  display: none !important;
}

.hero-logo {
  transition: filter 0.26s ease, transform 0.26s ease;
}

.hero-logo-wrap:hover .hero-logo,
.hero-logo-wrap:focus-within .hero-logo {
  transform: translateY(-1px) scale(1.018) !important;
  filter:
    drop-shadow(0 12px 30px rgba(0, 0, 0, 0.74))
    brightness(1.08)
    saturate(1.08)
    contrast(1.06) !important;
}

@media (max-width: 900px) {
  .hero-logo-wrap::before {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .nav-links a.active:hover,
  .nav-links a.active:focus {
    color: #ffe6b8 !important;
    text-shadow:
      0 0 10px rgba(248, 218, 160, 0.34),
      0 1px 2px rgba(0, 0, 0, 0.45) !important;
    animation: navHoverPulse 0.52s ease-out 1 !important;
  }
}

.hero-logo-wrap:hover .hero-logo,
.hero-logo-wrap:focus-within .hero-logo,
.hero-logo:hover,
.hero-logo:focus {
  transform: none !important;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.72))
    brightness(1.06)
    contrast(1.05) !important;
  animation-play-state: running !important;
}

.hero-logo {
  transform: none !important;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.72))
    brightness(1.06)
    contrast(1.05) !important;
  animation: fadeInDown 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* Mobile layout hard reset (prevents overlaps) */
@media (max-width: 900px) {
  .header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.6rem 0.7rem !important;
    z-index: 999;
  }

  .nav-container {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  .mobile-menu-toggle {
    justify-self: start;
    width: auto !important;
    min-width: 104px !important;
  }

  .header-right {
    justify-self: end;
    width: auto !important;
    gap: 0.5rem;
  }

  .header .nav-links {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: calc(100% - 16px) !important;
    max-width: 420px !important;
    margin: 8px auto 0 !important;
    padding: 10px !important;
    display: none !important;
    flex-direction: column !important;
    gap: 6px !important;
    background: rgba(10, 14, 22, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45) !important;
    z-index: 1000;
  }

  .header.menu-open .nav-links {
    display: flex !important;
  }

  .header .nav-links li {
    width: 100% !important;
  }

  .header .nav-links a {
    width: 100% !important;
    text-align: center !important;
    padding: 0.62rem 0.6rem !important;
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
  }

  .header.menu-open ~ .main-content {
    padding-top: 260px !important;
  }
}

@media (max-width: 560px) {
  .mobile-menu-toggle {
    min-width: 94px !important;
    font-size: 0.6rem !important;
  }

  .header .nav-links {
    width: calc(100% - 12px) !important;
    max-width: 360px !important;
  }

  .header .nav-links a {
    font-size: 0.64rem !important;
    padding: 0.58rem 0.5rem !important;
  }

  .header.menu-open ~ .main-content {
    padding-top: 240px !important;
  }

  .rank-name {
    gap: 0.34rem;
  }

  .rank-name::before {
    width: 1.32rem;
    height: 1.16rem;
  }
}

/* Final hard override for About blocks on mobile/tablet */
@media (max-width: 1200px) {
  .about-grid {
    grid-template-columns: 1fr !important;
  }

  .about-block {
    display: block !important;
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    overflow: visible !important;
  }

  .about-block > *:not(h3) {
    grid-column: auto !important;
  }

  .about-block h3,
  .about-block p,
  .about-block ul,
  .about-block ol,
  .about-block li {
    max-width: 100% !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}


@media (max-width: 768px) {
  #news .section-container {
    padding: 1.5rem 1.15rem;
    border-radius: 22px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .news-card {
    padding: 1.35rem;
    border-radius: 18px;
  }

  .news-card:hover,
  .news-card:focus-within {
    transform: translate3d(0, -10px, 0) scale(1.015);
  }
}




