/*           MILLER FAMILY | DEL PERRO RP             */
:root {
  --red: #ff2a2a;
  --dark: #0a0a0a;
  --glass: rgba(255, 255, 255, 0.05);
}

/* ====================== 1. RESET & BASE ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important; /* Скрываем системный курсор — используем прицел */
}

html { scroll-behavior: smooth; }

body {
  position: relative;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  background: #050505;
  color: white;
}

/* ====================== 1.5. CUSTOM CURSOR ====================== */

/* ── Курсор-прицел ── */
.cursor-outer {
  position: fixed;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 2147483647;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor-inner {
  display: none; /* не используется в прицеле */
}

/* Линии прицела */
.ch-line {
  position: absolute;
  background: rgba(255, 42, 42, 0.85);
  border-radius: 1px;
  transition: width 0.15s ease, height 0.15s ease;
}
.ch-top    { width: 1px; height: 10px; top: 0;    left: 50%; transform: translateX(-50%); }
.ch-bottom { width: 1px; height: 10px; bottom: 0; left: 50%; transform: translateX(-50%); }
.ch-left   { height: 1px; width: 10px; left: 0;   top: 50%;  transform: translateY(-50%); }
.ch-right  { height: 1px; width: 10px; right: 0;  top: 50%;  transform: translateY(-50%); }
.ch-center {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 42, 42, 0.9);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease;
}

/* Hover — линии сжимаются к центру */
.cursor-outer.cursor-hover .ch-top    { height: 6px; }
.cursor-outer.cursor-hover .ch-bottom { height: 6px; }
.cursor-outer.cursor-hover .ch-left   { width: 6px; }
.cursor-outer.cursor-hover .ch-right  { width: 6px; }
.cursor-outer.cursor-hover .ch-center { width: 5px; height: 5px; }

/* Click */
.cursor-outer.cursor-click { transform: translate(-50%, -50%) scale(0.75); }

/* ====================== 1.6. CUSTOM SCROLLBAR ====================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-left: 1px solid rgba(255,255,255,0.03);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff2a2a, #8a0000);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255, 42, 42, 0.5);
  border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4444, #cc0000);
  box-shadow: 0 0 14px rgba(255, 42, 42, 0.8);
}

html {
  scrollbar-width: thin;
  scrollbar-color: #ff2a2a #0a0a0a;
}

/* ====================== 2. BACKGROUND & EFFECTS ====================== */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(rgba(0,0,0,0.82), rgba(0,0,0,0.94)),
              url("../images/background.png") center/cover no-repeat fixed;
}

.cursor-glow {
  position: fixed;
  width: 420px; 
  height: 420px;
  background: radial-gradient(circle, rgba(255, 42, 42, 0.15) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -2;
  opacity: 0.7;
}

/* ====================== 3. LOADER ====================== */
#loader {
  position: fixed;
  inset: 0;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: all 0.8s ease;
}

.loader-text {
  font-size: 78px;
  font-weight: 900;
  letter-spacing: 12px;
  color: var(--red);
  text-transform: uppercase;
  animation: loaderPulse 1.4s infinite alternate;
  text-shadow: 0 0 30px rgba(255, 42, 42, 0.6);
}

@keyframes loaderPulse {
  from { opacity: 0.7; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.02); }
}

/* ====================== 4. HEADER ====================== */
/* ═══════════════════════════════════════════════
   HEADER  — новая версия
═══════════════════════════════════════════════ */

/* @property для анимированного угла границы */
@property --hdr-rot {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 93%;
  max-width: 1400px;
  height: 68px;
  background: rgba(7, 1, 1, 0.84);
  backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255, 42, 42, 0.16);
  border-radius: 18px;
  padding: 0 20px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 9999;
  box-shadow:
    0 0 0 1px rgba(255,42,42,0.04),
    0 8px 48px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.055);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, height 0.3s;
}

/* Вращающаяся красная точка по периметру */
.header-border-anim {
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  background: conic-gradient(
    from var(--hdr-rot),
    transparent       0deg,
    rgba(255,42,42,0) 40deg,
    rgba(255,42,42,1) 80deg,
    rgba(255,80,0,0.7) 100deg,
    rgba(255,42,42,0) 140deg,
    transparent       200deg
  );
  z-index: -1;
  animation: hdr-border-spin 5s linear infinite;
  opacity: 0.55;
  pointer-events: none;
}
/* Внутренняя заливка поверх градиентной границы */
.header-border-anim::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  background: rgba(7,1,1,0.92);
  z-index: 0;
}
@keyframes hdr-border-spin { to { --hdr-rot: 360deg; } }

/* ── Логотип ── */
.header-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.header-logo-emblem {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.header-logo-emblem-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,42,42,0.55));
  transition: filter 0.3s, transform 0.5s;
  display: block;
}
.header-logo:hover .header-logo-emblem-img {
  filter: drop-shadow(0 0 14px rgba(255,42,42,0.9));
  transform: rotate(20deg) scale(1.08);
}
.header-logo-emblem-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,42,42,0.18) 0%, transparent 70%);
  animation: emblem-hdr-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes emblem-hdr-pulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.header-logo-main {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 5px;
  background: linear-gradient(90deg, #ffffff 0%, #ff6666 60%, #ff2a2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.header-logo-divider {
  display: none; /* используется только как разделитель в разметке */
}
.header-logo-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 6px;
  color: rgba(255, 42, 42, 0.55);
  margin-top: 3px;
  text-transform: uppercase;
}

/* ── Навигация ── */
nav {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  z-index: 1;
}

nav a {
  position: relative;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}

/* Подчёркивание-слайдер */
nav a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: #ff2a2a;
  box-shadow: 0 0 8px rgba(255,42,42,0.9), 0 0 20px rgba(255,42,42,0.4);
  transition: width 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}

nav a:hover {
  color: #fff;
  background: rgba(255,42,42,0.07);
}
nav a.active {
  color: #fff;
  background: rgba(255,42,42,0.1);
}
nav a:hover::after,
nav a.active::after {
  width: calc(100% - 26px);
}

/* ── Правый блок ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Статус онлайн */
.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(76,175,80,0.08);
  border: 1px solid rgba(76,175,80,0.18);
}
.header-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 6px rgba(76,175,80,0.9);
  animation: hdr-dot-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes hdr-dot-pulse {
  0%,100% { transform:scale(1); opacity:1; }
  50%      { transform:scale(1.4); opacity:0.65; }
}
.header-status-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(76,175,80,0.8);
  text-transform: uppercase;
}

/* Кнопка CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #cc1111 0%, #8a0000 100%);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(180,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
}
.header-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff2a2a 0%, #cc1111 100%);
  box-shadow: 0 8px 32px rgba(255,42,42,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}
.header-cta-icon { font-size: 10px; transition: transform 0.25s; }
.header-cta:hover .header-cta-icon { transform: translateX(4px); }

/* ── Бургер-кнопка ── */
.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
}
.header-burger span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}
.header-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Мобильное меню ── */
.header-mobile-menu {
  display: none;
  position: fixed;
  top: calc(16px + 68px + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 93%;
  max-width: 1400px;
  background: rgba(7,1,1,0.96);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255,42,42,0.14);
  border-radius: 16px;
  padding: 16px;
  z-index: 9998;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.8);
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.header-mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.header-mobile-menu a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  transition: color 0.2s, background 0.2s;
}
.header-mobile-menu a:hover { color: #fff; background: rgba(255,42,42,0.1); }
.header-mobile-cta {
  margin-top: 6px !important;
  background: linear-gradient(135deg,#cc1111,#8a0000) !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-align: center;
  box-shadow: 0 4px 20px rgba(180,0,0,0.3);
}

/* ── Scroll-сжатие ── */
header.scrolled {
  height: 58px;
  background: rgba(5,0,0,0.93) !important;
  border-color: rgba(255,42,42,0.22) !important;
  box-shadow: 0 0 0 1px rgba(255,42,42,0.08), 0 12px 50px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

/* ====================== 5. HERO SECTION ====================== */
.hero {
  min-height: 100vh;
  padding: 180px 7% 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-left { flex: 1; max-width: 720px; }
.hero-right { flex: 1; }

.hero-subtitle {
  font-size: 19px;
  letter-spacing: 3.5px;
  color: #aaaaaa;
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-title {
  font-size: 118px;
  line-height: 0.92;
  font-weight: 900;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-title.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-title span {
  display: block;
  color: var(--red);
  text-shadow: 0 0 55px rgba(255, 42, 42, 0.75);
}

.hero-text {
  font-size: 21px;
  color: #cccccc;
  line-height: 1.55;
  margin-bottom: 45px;
}

.hero-buttons {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* ====================== 6. HERO BUTTONS ====================== */
.hero-buttons a {
  padding: 19px 46px;
  border-radius: 60px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  min-width: 230px;
  text-align: center;
}

.join-btn, .hero-nav-btn {
  background: linear-gradient(90deg, #ff2a2a, #e00000);
  color: white;
  box-shadow: 0 0 30px rgba(255, 42, 42, 0.7),
              0 12px 35px rgba(255, 42, 42, 0.4);
  border: 1px solid rgba(255,255,255,0.25);
}

.join-btn:hover, .hero-nav-btn:hover {
  transform: translateY(-7px);
  box-shadow: 0 0 45px rgba(255, 42, 42, 0.95);
}

.discord-btn {
  background: transparent;
  color: #d4b3ff;
  border: 2px solid rgba(180, 100, 255, 0.6);
  box-shadow: 0 0 25px rgba(180, 100, 255, 0.4);
}

.discord-btn:hover {
  background: rgba(180, 100, 255, 0.12);
  color: white;
  border-color: #c4a1ff;
  box-shadow: 0 0 40px rgba(180, 100, 255, 0.7);
  transform: translateY(-7px);
}

/* ====================== 7. STAT CARDS ====================== */
.hero-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-card {
  background: linear-gradient(145deg, rgba(20,20,20,0.95), rgba(40,0,0,0.4));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  padding: 38px 30px;
  text-align: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s;
}
.stats-grid .stat-card:nth-child(1) { transition-delay: 0s; }
.stats-grid .stat-card:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .stat-card:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .stat-card:nth-child(4) { transition-delay: 0.3s; }

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-icon { font-size: 48px; margin-bottom: 18px; }

.stat-card h2 {
  font-size: 62px;
  color: var(--red);
  font-weight: 900;
}

/* ====================== 8. SECTIONS ====================== */
section { padding: 130px 7%; }

.section-title {
  font-size: 68px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 2px;
}

.glass-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 55px 60px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 32px;
  backdrop-filter: blur(20px);
  text-align: center;
  font-size: 20px;
  line-height: 1.8;
}

/* ====================== 9. STRUCTURE ====================== */
.structure-grid {
  align-items:start;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 32px;
}

.rank-card {
  background: linear-gradient(145deg, rgba(18,18,18,0.96), rgba(8,8,8,0.98));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 32px;
  padding: 28px;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(22px) scale(0.98);
}

.rank-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rank-card:hover {
  transform: translateY(-5px) scale(1.005);
  border-color: rgba(255,42,42,0.35);
  box-shadow: 0 18px 50px rgba(255,0,0,0.15);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.rank-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid rgba(255,255,255,0.1);
}
.rank-icon i {
  filter: drop-shadow(0 0 8px currentColor);
}

.boss-icon     { background: linear-gradient(145deg, #2a0000, #4a0000); color: #ffd700; border-color: rgba(255,215,0,0.25); }
.deputy-icon   { background: linear-gradient(145deg, #001a2a, #003d66); color: #5eb8ff; border-color: rgba(94,184,255,0.25); }
.commander-icon{ background: linear-gradient(145deg, #2a1a00, #664000); color: #ffcc80; border-color: rgba(255,204,128,0.25); }

.rank-card:hover .rank-icon {
  transform: scale(1.08);
}

/* ====================== 10. SOLDIERS CARD ====================== */
.soldiers-card{
    padding:32px;
}

.soldiers-top{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:25px;
}

.soldiers-badge{
    width:70px;
    height:70px;

    border-radius:20px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:32px;

    background:
    linear-gradient(
        135deg,
        rgba(255,42,42,.25),
        rgba(255,0,0,.08)
    );

    border:1px solid rgba(255,42,42,.3);
}

.soldiers-info{
    flex:1;
}

.soldiers-info h2{
    font-size:26px;
    font-weight:900;
    letter-spacing:1px;
    margin-bottom:6px;
}

.soldiers-info p{
    color:#777;
    font-size:13px;
    letter-spacing:2px;
    text-transform:uppercase;
}

.soldiers-count{
    min-width:90px;

    display:flex;
    flex-direction:column;
    align-items:center;

    padding:12px;

    border-radius:18px;

    background:
    rgba(255,255,255,.04);

    border:
    1px solid rgba(255,255,255,.08);

    font-size:11px;

    letter-spacing:2px;

    color:#888;
}

.soldiers-count span{
    font-size:30px;
    font-weight:900;
    color:#ff2a2a;
}

.soldiers-divider{
    height:1px;
    background:
    rgba(255,255,255,.08);

    margin-bottom:22px;
}

.members-list{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:14px;
}
.member-item{
    display:flex;
    align-items:center;
    gap:12px;

    padding:14px 18px;

    border-radius:16px;

    background:
    rgba(255,255,255,.03);

    border:
    1px solid rgba(255,255,255,.06);

    transition:.3s;
}

.member-item:hover{
    transform:translateX(6px);

    border-color:
    rgba(255,42,42,.25);

    background:
    rgba(255,42,42,.05);
}

.member-dot{
    width:8px;
    height:8px;

    border-radius:50%;

    background:#ff2a2a;

    box-shadow:
    0 0 10px rgba(255,42,42,.8);
}
.member-name-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.member-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.85;
  text-transform: uppercase;
}
.load-more-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 0;
  background: transparent;
  border: 1px solid rgba(255, 42, 42, 0.4);
  border-radius: 6px;
  color: #ff2a2a;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.load-more-btn:hover {
  background: rgba(255, 42, 42, 0.12);
  border-color: #ff2a2a;
  color: #fff;
}
.soldiers-footer{
    margin-top:22px;

    text-align:center;

    font-size:11px;

    font-weight:700;

    letter-spacing:4px;

    text-transform:uppercase;

    color:rgba(255,255,255,.28);

    padding-top:18px;

    border-top:1px solid rgba(255,255,255,.06);
}
/* ====================== 11. COMPOSITION ====================== */
.composition { padding: 130px 7%; }

.composition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 35px;
  max-width: 1300px;
  margin: 0 auto;
}

/* ====================== 12. MUSIC PLAYER ====================== */
.music-player {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 320px;
  background: linear-gradient(145deg, rgba(15,15,15,0.96), rgba(8,8,8,0.98));
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255,42,42,0.25);
  border-radius: 28px;
  padding: 16px;
  z-index: 9999;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transition: all 0.4s ease;
  cursor: grab;
user-select: none;
}

.music-player.dragging {
    cursor: grabbing;
    transition: none;
}
.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.minimize-btn {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #ddd;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.minimize-btn:hover {
  background: rgba(255,42,42,0.4);
  color: white;
}

.player-content {
  transition: all 0.4s ease;
}

.music-player.minimized {
  height: 58px;
  padding: 12px 16px;
}

.music-player.minimized .player-content {
  display: none;
}

.music-art {
  width: 100%;
  height: 160px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.music-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-info {
  text-align: center;
  margin-bottom: 12px;
}

.music-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #777;
}

#songTitle {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0;
}

#songArtist {
  font-size: 13px;
  color: #aaa;
}

.music-progress {
  margin: 12px 0;
}

#progressBar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
}

#progressBar::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255,42,42,0.8);
}

.music-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}

.music-controls button {
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.music-controls button:hover {
  background: var(--red);
  transform: scale(1.1);
}

#playBtn {
  width: 58px;
  height: 58px;
  font-size: 24px;
  background: var(--red);
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ====================== 13. ANIMATIONS ====================== */
.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.show { opacity: 1; transform: translateY(0); }

/* ====================== 14. RESPONSIVE ====================== */
@media (max-width: 1200px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-title { font-size: 92px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 68px; }
  .section-title { font-size: 48px; }
  .structure-grid { grid-template-columns: 1fr; }
}

/* ====================== 15. LIVE CLOCK ====================== */
.live-clock {
  position: fixed;
  top: 32px;
  right: 40px;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 10px 24px;
  min-width: 160px;
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.4s ease;
  text-align: center;
}

.live-clock:hover {
  background: rgba(20, 20, 20, 0.85);
  border-color: rgba(255, 42, 42, 0.3);
  transform: translateY(2px);
  box-shadow: 0 12px 30px rgba(255, 42, 42, 0.15);
}

/* ====================== 16. RANK CARD INTERNALS ====================== */
.rank-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.rank-text h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
}

.rank-text span {
  font-size: 12px;
  color: #888;
  letter-spacing: 2px;
  font-weight: 600;
}

.member-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}

.structure-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.structure-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
}

.structure-box span {
  display: block;
  font-size: 10px;
  color: #666;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  font-weight: 600;
}

.structure-box h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--red);
}

.rank-description {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-status {
  display: inline-block;
  padding: 7px 16px;
  background: rgba(255, 42, 42, 0.1);
  border: 1px solid rgba(255, 42, 42, 0.3);
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1.5px;
}

.rank-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.rank-profile-btn:hover {
  background: rgba(255,42,42,0.1);
  border-color: rgba(255,42,42,0.3);
  color: #ff4444;
}

/* ====================== 17. SOLDIERS CARD MEMBERS ====================== */
.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: all 0.3s ease;
}
.member-item:hover {
  background: rgba(255, 42, 42, 0.07);
  border-color: rgba(255, 42, 42, 0.2);
}

.member-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.online-dot {
  background: #4cff72;
  box-shadow: 0 0 8px rgba(76, 255, 114, 0.7);
}

.offline-dot {
  background: #555;
}

.member-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.member-rank {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.gold-rank {
  background: rgba(255, 200, 0, 0.12);
  color: #ffc800;
  border: 1px solid rgba(255, 200, 0, 0.3);
}

.red-rank {
  background: rgba(255, 42, 42, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 42, 42, 0.3);
}

.silver-rank {
  background: rgba(180, 180, 180, 0.1);
  color: #aaa;
  border: 1px solid rgba(180, 180, 180, 0.2);
}

/* ====================== 18. MEMBER CARDS (СОСТАВ) ====================== */
.member-card {
  background: linear-gradient(145deg, rgba(18,18,18,0.96), rgba(8,8,8,0.98));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 32px;
  padding: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(22px);
}

.member-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 42, 42, 0.3);
  box-shadow: 0 16px 45px rgba(255, 0, 0, 0.12);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.member-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.member-card h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 22px 24px 4px;
}

.member-card .role {
  font-size: 12px;
  color: var(--red);
  letter-spacing: 2px;
  font-weight: 700;
  padding: 0 24px 12px;
}

.member-card .description {
  font-size: 14px;
  color: #888;
  line-height: 1.65;
  padding: 0 24px 18px;
}

.member-stats {
  display: flex;
  gap: 10px;
  padding: 0 24px 18px;
  flex-wrap: wrap;
}

.member-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 24px 24px;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255,42,42,0.08);
  border: 1px solid rgba(255,42,42,0.25);
  color: rgba(255,42,42,0.8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.member-profile-btn:hover {
  background: rgba(255,42,42,0.18);
  border-color: rgba(255,42,42,0.5);
  color: #ff4444;
}

.member-stats div {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  color: #ccc;
}

/* ====================== 19. VIDEO PLAYER ====================== */
.video-section {
  position: relative;
  padding: 80px 7%;
  text-align: center;
  overflow: hidden;
}

/* Внешняя обёртка — декоративные уголки */
.video-frame {
  position: relative;
  max-width: 960px;
  margin: 48px auto 0;
  padding: 3px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff2a2a 0%, #8a0000 40%, transparent 60%);
}
.video-frame::before,
.video-frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #ff2a2a;
  border-style: solid;
  z-index: 2;
}
.video-frame::before {
  top: -2px; left: -2px;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}
.video-frame::after {
  bottom: -2px; right: -2px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

.video-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255,42,42,0.15),
    0 8px 32px rgba(0,0,0,0.8),
    0 0 80px rgba(255,42,42,0.12);
  cursor: pointer;
}

/* Виньетка по краям видео */
.video-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.main-video {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  background: #000;
}

/* ── Оверлей с кнопкой play ── */
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0,0,0,0.28);
  transition: opacity 0.4s;
  z-index: 2;
}
.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.video-overlay.no-video {
  background: rgba(0,0,0,0.72);
  cursor: default;
}

/* Пульсирующие кольца вокруг кнопки */
.video-play-btn {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: rgba(180, 0, 0, 0.75);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 0 rgba(255,42,42,0.5);
  animation: vcPulse 2.4s ease-out infinite;
}
.video-play-btn i { margin-left: 4px; }
.video-play-btn:hover {
  transform: scale(1.12);
  background: rgba(220, 0, 0, 0.9);
}

@keyframes vcPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,42,42,0.55); }
  70%  { box-shadow: 0 0 0 22px rgba(255,42,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,42,42,0); }
}

.video-overlay-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

/* ── Контролы снизу ── */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  z-index: 3;
}
.video-controls.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Прогресс-бар ── */
.vc-progress-wrap {
  margin-bottom: 14px;
  position: relative;
  padding: 6px 0;        /* увеличиваем зону клика */
  cursor: pointer;
}

/* тонкая дорожка */
.vc-progress {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: block;
  transition: height 0.18s ease;
  background: linear-gradient(
    to right,
    #ff2a2a var(--pct, 0%),
    rgba(255,255,255,0.12) var(--pct, 0%)
  );
}

/* при наведении дорожка толще */
.vc-progress-wrap:hover .vc-progress {
  height: 6px;
}

/* thumb — прогресс */
.vc-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ff2a2a;
  box-shadow: 0 0 0 3px rgba(255,42,42,0.25), 0 0 10px rgba(255,42,42,0.6);
  cursor: pointer;
  transition: width 0.18s ease, height 0.18s ease, opacity 0.18s ease;
  opacity: 0;
}

/* thumb появляется при наведении */
.vc-progress-wrap:hover .vc-progress::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  opacity: 1;
}
.vc-progress::-webkit-slider-thumb:active {
  transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(255,42,42,0.2), 0 0 16px rgba(255,42,42,0.8);
}

/* Нижняя строка */
.vc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vc-left, .vc-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vc-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vc-btn:hover {
  color: #fff;
  background: rgba(255,42,42,0.2);
}

.vc-time {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  white-space: nowrap;
}
.vc-time span { color: rgba(255,255,255,0.4); margin: 0 2px; }

/* ── Громкость ── */
.vc-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  /* при наведении разворачивается */
}

.vc-volume {
  width: 0;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.25s ease;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.9) var(--vol, 100%),
    rgba(255,255,255,0.15) var(--vol, 100%)
  );
}

/* разворачивается при наведении на правый блок */
.vc-right:hover .vc-volume,
.vc-volume:focus {
  width: 72px;
  opacity: 1;
}

.vc-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,42,42,0.8);
  box-shadow: 0 0 6px rgba(255,42,42,0.5);
  cursor: pointer;
  transition: transform 0.15s;
}
.vc-volume::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Бейдж MILLER FAMILY поверх видео */
.video-badge {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}
.video-badge span {
  color: #ff2a2a;
}

.video-hint {
  margin-top: 18px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
}
.video-hint code {
  color: rgba(255,80,80,0.55);
  font-size: 10px;
}

/* ====================== 20. JOIN & FOOTER ====================== */
.join {
  padding: 80px 7%;
  text-align: center;
}

.join-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 50px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 32px;
  backdrop-filter: blur(20px);
}

.join-box h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.join-box p {
  font-size: 16px;
  color: #888;
  margin-bottom: 28px;
}

.main-btn {
  padding: 18px 44px;
  background: linear-gradient(90deg, #ff2a2a, #c40000);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.main-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(255, 42, 42, 0.7);
}

/* ── Footer ── */
.footer {
  position: relative;
  padding: 64px 7% 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(to bottom, rgba(10,0,0,0.6), #000);
  overflow: hidden;
}

/* фоновый текст */
.footer::before {
  content: 'MILLER';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 160px;
  font-weight: 900;
  letter-spacing: 20px;
  color: rgba(255,255,255,0.015);
  white-space: nowrap;
  pointer-events: none;
  font-family: 'Montserrat', sans-serif;
}

/* ── TOP ── */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

/* Бренд */
.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.footer-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255,42,42,0.25);
  flex-shrink: 0;
}
.footer-brand-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 4px;
}
.footer-brand-sub {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255,42,42,0.7);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  font-weight: 400;
}

/* Колонки */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}

/* Соцсети кнопки */
.footer-socials-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s, border-color 0.2s, color 0.2s !important;
  padding-left: 14px !important;
}
.footer-social-btn:hover {
  background: rgba(255,42,42,0.1) !important;
  border-color: rgba(255,42,42,0.3) !important;
  color: #fff !important;
}
.footer-social-btn i {
  font-size: 15px;
  width: 16px;
  text-align: center;
}

/* ── Divider ── */
.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
}

/* ── Bottom ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.5px;
  flex-wrap: wrap;
}
.footer-dot {
  color: rgba(255,42,42,0.4);
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-motto {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.15);
}
.footer-dev-inline {
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.12);
  font-family: 'Montserrat', sans-serif;
}
.footer-dev-inline span {
  color: rgba(255,42,42,0.35);
}

/* Адаптив */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
/* =========================
   SAFE PLAYER FIX
========================= */

.music-player *{
    box-sizing:border-box;
}

/* ====================== GAME ====================== */
.game-section {
  position: relative;
  padding: 80px 4% 60px;
  overflow: hidden;
}
.game-subtitle {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: -24px;
  margin-bottom: 40px;
}

/* ── HUD Top ── */
.game-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 14px 20px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}
.game-faction-hud {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}
.ghud-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}
.ghud-info { flex: 1; }
.ghud-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ff4444;
}
.ghud-count {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.ghud-progress {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.ghud-bar {
  height: 100%;
  background: linear-gradient(90deg, #cc1111, #ff4444);
  border-radius: 4px;
  width: 5%;
  transition: width 0.5s ease;
}
.game-timer-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.8);
  font-family: 'Montserrat', sans-serif;
}
.game-timer-wrap i { font-size: 14px; color: rgba(255,255,255,0.3); }
.game-enemies-hud {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.ghud-mini {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.ghud-mini b { color: rgba(255,255,255,0.75); }
.ghud-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Map ── */
.game-map-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.game-map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 3px;
  background: rgba(0,0,0,0.7);
}

/* ── Bottom bar ── */
.game-bottom-bar {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 12px;
}
.game-bottom-bar .game-info-panel {
  flex: 1;
  min-height: unset;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
}
.game-bottom-bar .gip-title {
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.game-bottom-bar .gip-body {
  margin: 0;
}

/* ── Territory cell ── */
.game-territory {
  position: relative;
  padding: 12px 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.04);
  background: linear-gradient(135deg, var(--fc, #1c1c1c) 0%, rgba(0,0,0,0.85) 100%);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.2s;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.game-territory::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
  pointer-events: none;
  border-radius: 8px;
}
.game-territory:hover {
  transform: scale(1.03);
  border-color: var(--fl, #555);
  box-shadow: 0 0 16px var(--fg, transparent), 0 4px 12px rgba(0,0,0,0.5);
  z-index: 2;
}

/* Faction tints */
.faction-player  { border-color: rgba(204,17,17,0.35) !important; }
.faction-diablos { border-color: rgba(123,47,190,0.3) !important; }
.faction-vagos   { border-color: rgba(200,150,12,0.3) !important; }
.faction-ballas  { border-color: rgba(26,79,160,0.3) !important; }
.faction-neutral { border-color: rgba(255,255,255,0.04) !important; }

/* Selected */
.game-territory.selected {
  border-color: #ff2a2a !important;
  box-shadow: 0 0 20px rgba(255,42,42,0.5), inset 0 0 12px rgba(255,42,42,0.08) !important;
  transform: scale(1.04);
  z-index: 3;
}

/* Attackable */
.game-territory.attackable {
  border-color: rgba(255,200,0,0.6) !important;
  box-shadow: 0 0 14px rgba(255,200,0,0.25) !important;
  animation: attackablePulse 1.2s ease-in-out infinite;
  cursor: crosshair;
}
@keyframes attackablePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,200,0,0.2); }
  50%       { box-shadow: 0 0 22px rgba(255,200,0,0.5); }
}

/* Attack animations */
.game-territory.attacking {
  animation: attackFlash 0.35s ease-out 2;
}
@keyframes attackFlash {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; transform: scale(0.96); }
}
.game-territory.under-attack {
  animation: shakeEl 0.5s ease;
}
@keyframes shakeEl {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-4px); }
  40%       { transform: translateX(4px); }
  60%       { transform: translateX(-3px); }
  80%       { transform: translateX(3px); }
}
.game-territory.captured {
  animation: captureFlash 0.8s ease;
}
@keyframes captureFlash {
  0%   { filter: brightness(3); }
  100% { filter: brightness(1); }
}
.game-territory.defended {
  animation: defendPulse 0.6s ease;
}
@keyframes defendPulse {
  0%   { filter: brightness(2) saturate(2); }
  100% { filter: brightness(1) saturate(1); }
}

/* Territory internals */
.gt-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}
.gt-emoji { font-size: 13px; }
.gt-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  line-height: 1.2;
  flex: 1;
}
.gt-troops-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 4px 0;
}
.gt-troops {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 12px var(--fl, #fff);
  font-family: 'Montserrat', sans-serif;
}
.gt-troops-label {
  font-size: 8px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.gt-bar-wrap { margin-top: auto; }
.gt-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.gt-bar-fill {
  height: 100%;
  background: var(--fl, #555);
  border-radius: 2px;
  transition: width 0.5s ease;
  box-shadow: 0 0 6px var(--fl, transparent);
}
.gt-faction-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 14px;
  opacity: 0.8;
}

/* ── Overlay (win/lose) ── */
.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  backdrop-filter: blur(8px);
  z-index: 10;
}
.game-overlay.visible { opacity: 1; pointer-events: all; }
.go-content { text-align: center; }
.go-title {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
}
.go-msg {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  margin-bottom: 28px;
}

/* Info panel */
.game-info-panel {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.5);
  min-height: 90px;
  transition: border-color 0.3s;
}
.gip-default { border-color: rgba(255,255,255,0.07); }
.gip-select  { border-color: rgba(255,42,42,0.4); }
.gip-win     { border-color: rgba(0,200,0,0.3); }
.gip-lose    { border-color: rgba(255,80,80,0.3); }
.gip-warn    { border-color: rgba(255,180,0,0.4); }
.gip-neutral { border-color: rgba(255,255,255,0.1); }
.gip-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gip-body { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.6; }
.gip-stat { margin-bottom: 4px; font-size: 12px; color: rgba(255,255,255,0.55); }
.gip-stat b { color: #fff; }
.gip-stat i { margin-right: 4px; }
.gip-hint { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 6px; }
.gip-preview { padding: 10px; border-radius: 8px; background: rgba(255,255,255,0.03); }
.gip-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
}
.gip-atk { color: #ff4444; }
.gip-def { color: #5090f0; }
.gip-sep { font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 2px; }
.gip-result { font-size: 11px; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.gip-result.win  { color: #4caf50; }
.gip-result.lose { color: #f44336; }

/* ── Below-game panels ── */
.game-below {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.game-below-card {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
}

.game-below-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
  line-height: 1.5;
}
.rule-n {
  color: #ff2a2a;
  font-weight: 700;
  flex-shrink: 0;
}

.game-below-log { grid-column: span 1; }

.game-log {
  max-height: 160px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,42,42,0.3) transparent;
}
.game-log::-webkit-scrollbar { width: 3px; }
.game-log::-webkit-scrollbar-thumb { background: rgba(255,42,42,0.3); border-radius: 2px; }

.game-log-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  line-height: 1.4;
}
.game-log-entry b { color: rgba(255,255,255,0.7); }
.gle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

@media (max-width: 700px) {
  .game-below { grid-template-columns: 1fr; }
  .game-below-log { grid-column: span 1; }
}

/* Restart button */
.game-restart-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #cc1111, #8a0000);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-transform: uppercase;
}
.game-restart-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200,0,0,0.4);
}

/* Responsive */
@media (max-width: 700px) {
  .game-map         { grid-template-columns: repeat(5, 1fr); gap: 2px; }
  .gt-troops        { font-size: 18px; }
  .gt-name          { font-size: 7px; }
  .game-bottom-bar  { flex-direction: column; }
  .game-bottom-bar .game-restart-btn { width: 100% !important; }
  .game-hud-top     { flex-wrap: wrap; gap: 10px; }
}

/* FIX BUTTONS */

.music-controls{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;

    margin-top:22px;
}

.music-controls button{
    flex:none;

    width:58px;
    height:58px;

    border:none;
    border-radius:50%;

    cursor:pointer;

    font-size:20px;
    color:white;

    background:rgba(255,255,255,0.08);

    transition:0.25s;
}

.music-controls button:hover{
    transform:scale(1.08);
}

#playBtn{
    width:72px;
    height:72px;

    font-size:28px;

    background:linear-gradient(
        135deg,
        #ff2b2b,
        #ff4444
    );

    box-shadow:
    0 0 25px rgba(255,0,0,0.45);
}

/* FIX RANGE */

.music-player input[type="range"]{
    appearance:none;
    -webkit-appearance:none;

    width:100%;
    height:6px;

    border-radius:20px;

    background:rgba(255,255,255,0.18);

    outline:none;
}

/* CHROME */

.music-player input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance:none;

    width:16px;
    height:16px;

    border-radius:50%;

    background:#b84dff;

    cursor:pointer;

    border:none;

    box-shadow:
    0 0 12px rgba(184,77,255,0.8);
}

/* FIREFOX */

.music-player input[type="range"]::-moz-range-thumb{
    width:16px;
    height:16px;

    border:none;
    border-radius:50%;

    background:#b84dff;

    cursor:pointer;

    box-shadow:
    0 0 12px rgba(184,77,255,0.8);
}

/* FIX VOLUME */

.volume-box{
    display:flex;
    align-items:center;
    gap:12px;

    margin-top:18px;
}

.volume-box input{
    width:100px;
}

/* FIX TITLE */

.music-info h3{
    margin-top:16px;

    font-size:30px;
    font-weight:800;

    color:white;

    text-align:center;
}

  /* =========================================
   MODERN PREMIUM RANGE
========================================= */

#progressBar,
#volumeSlider {
    -webkit-appearance: none;
    appearance: none;

    width: 100%;
    height: 3px;

    background:
        rgba(255,255,255,0.08);

    border-radius: 999px;

    outline: none;

    cursor: pointer;

    transition: 0.25s ease;
}

/* TRACK */

#progressBar::-webkit-slider-runnable-track,
#volumeSlider::-webkit-slider-runnable-track {
    height: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.45),
            rgba(255,255,255,0.08)
        );
}

/* THUMB */

#progressBar::-webkit-slider-thumb,
#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #ffffff;

    border: none;

    margin-top: -4.5px;

    box-shadow:
        0 0 10px rgba(255,255,255,0.15);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

/* HOVER */

#progressBar:hover::-webkit-slider-thumb,
#volumeSlider:hover::-webkit-slider-thumb {
    transform: scale(1.35);

    box-shadow:
        0 0 14px rgba(255,255,255,0.35);
}

/* ACTIVE */

#progressBar:active::-webkit-slider-thumb,
#volumeSlider:active::-webkit-slider-thumb {
    transform: scale(1.1);

    background: #f5f5f5;
}

/* FIREFOX */

#progressBar::-moz-range-track,
#volumeSlider::-moz-range-track {
    height: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.45),
            rgba(255,255,255,0.08)
        );
}

#progressBar::-moz-range-thumb,
#volumeSlider::-moz-range-thumb {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    border: none;

    background: #ffffff;

    box-shadow:
        0 0 10px rgba(255,255,255,0.15);
}
/* =========================
   PARTICLES
========================= */

.particles {
    position: fixed;
    inset: 0;

    pointer-events: none;

    z-index: -1;

    overflow: hidden;
}

.particles span {
    position: absolute;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: rgba(255,255,255,0.25);

    box-shadow:
        0 0 12px rgba(255,255,255,0.25);

    animation: floatParticle linear infinite;
}

.particles span:nth-child(1){
    left:10%;
    animation-duration:20s;
}

.particles span:nth-child(2){
    left:25%;
    animation-duration:25s;
}

.particles span:nth-child(3){
    left:40%;
    animation-duration:18s;
}

.particles span:nth-child(4){
    left:55%;
    animation-duration:30s;
}

.particles span:nth-child(5){
    left:70%;
    animation-duration:22s;
}

.particles span:nth-child(6){
    left:82%;
    animation-duration:28s;
}

.particles span:nth-child(7){
    left:92%;
    animation-duration:24s;
}

.particles span:nth-child(8){
    left:50%;
    animation-duration:35s;
}

@keyframes floatParticle {

    from {
        transform:
            translateY(110vh)
            scale(0.5);

        opacity:0;
    }

    20%{
        opacity:1;
    }

    80%{
        opacity:1;
    }

    to {
        transform:
            translateY(-10vh)
            scale(1.4);

        opacity:0;
    }
}
body::before {

    content: "";

    position: fixed;

    width: 700px;
    height: 700px;

    top: -250px;
    right: -250px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,0.06),
            transparent 70%
        );

    pointer-events: none;

    z-index: -2;

    animation: glowMove 18s ease-in-out infinite;
}

@keyframes glowMove {

    0%{
        transform:
            translate(0,0);
    }

    50%{
        transform:
            translate(-120px,100px);
    }

    100%{
        transform:
            translate(0,0);
    }
}
.rank-card,
.member-card,
.stat-card,
.glass-card {

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

.rank-card:hover,
.member-card:hover,
.stat-card:hover,
.glass-card:hover {

    transform:
        translateY(-8px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.35),
        0 0 30px rgba(255,255,255,.06);
}
.search-wrapper{
    position:relative;
    margin-bottom:18px;
}

.member-search{
    width:100%;
    height:56px;

    background:rgba(255,255,255,.03);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:0 20px;

    color:#fff;

    font-size:14px;
    font-weight:600;

    transition:.3s;
}

.member-search:focus{
    border-color:#ff2a2a;

    box-shadow:
    0 0 25px rgba(255,0,0,.15);
}
.member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 10px;
  /* ТОЛЬКО нужные свойства — НЕ "all" */
  transition: border-color 0.2s, background 0.2s;
  /* Изолируем layout и paint внутри элемента */
  contain: layout style;
  position: relative;
  overflow: hidden;
}
.member-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #ff2a2a, rgba(255,42,42,0));
  opacity: 0;
  transition: opacity 0.2s;
}
.member-item:hover {
  background: rgba(255,42,42,0.05);
  border-color: rgba(255,42,42,0.22);
}
.member-item:hover::before { opacity: 1; }

/* online-dot без пульсирующей анимации на каждом элементе */
.online-dot {
  background: #4cff72;
  box-shadow: 0 0 6px rgba(76,255,114,0.6);
  /* анимация только на одном элементе, а не на 50 */
}
/* пульс только при hover — не постоянно */
.member-item:hover .online-dot {
  animation: onlinePulse 1.4s ease-in-out infinite;
}
@keyframes onlinePulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.4); }
}
/* ===================================
   SOLDIERS SECTION
=================================== */

.soldiers-wrapper{
    max-width:1300px;

    margin:40px auto 0;
}

.soldiers-card{
    width:100%;
}
.soldiers-left{
    display:flex;
    align-items:center;
    gap:20px;
}

.soldiers-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.soldiers-info h2{
    font-size:34px;
    font-weight:900;
    margin-bottom:4px;
}

.soldiers-info p{
    color:#777;
    letter-spacing:3px;
    text-transform:uppercase;
}

.about{
    position:relative;
}

.background-title{
    position:absolute;

    top:50%;
    left:50%;

    transform:
    translate(-50%,-50%);

    font-size:220px;

    font-weight:900;

    letter-spacing:20px;

    color:rgba(255,255,255,.02);

    white-space:nowrap;

    user-select:none;

    pointer-events:none;

    z-index:0;
}

.about > *:not(.background-title){
    position:relative;
    z-index:1;
}
.family-emblem{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:140px 0;
    overflow: visible !important;
    /* layout override handled below */
}

.background-word{
    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    font-size:220px;
    font-weight:900;

    letter-spacing:25px;

    color:rgba(255,255,255,0.03);

    white-space:nowrap;

    z-index:1;

    user-select:none;
    pointer-events:none;
}


.emblem-container::before{
    content:"";

    position:absolute;

    inset:-30px;

    border-radius:50%;

    border:1px solid rgba(255,0,0,.15);

    animation: rotateRing 20s linear infinite;

    z-index:-1;
}

.emblem-container:hover::after{
    opacity:1;
}
.emblem-particles{
    position:absolute;

    width:500px;
    height:500px;

    border-radius:50%;

    background:
    radial-gradient(circle,
    rgba(255,0,0,.15) 1px,
    transparent 1px);

    background-size:35px 35px;

    animation: particleSpin 40s linear infinite;

    opacity:.4;
}
@keyframes emblemFloat{

    0%,100%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-12px);
    }

}
@keyframes emblemGlow{

    0%,100%{
        filter:
        drop-shadow(0 0 15px rgba(255,0,0,.25))
        drop-shadow(0 0 40px rgba(255,0,0,.15));
    }

    50%{
        filter:
        drop-shadow(0 0 30px rgba(255,0,0,.5))
        drop-shadow(0 0 80px rgba(255,0,0,.3));
    }
}
@keyframes rotateRing{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }
}
@keyframes particleSpin{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }

}
.alert-container{
    position:fixed;
    top:100px;
    right:25px;

    z-index:9999;

    display:flex;
    flex-direction:column;
    gap:12px;
    pointer-events: none;
}
.alert-container .alert-box { pointer-events: auto; }

.alert-box{
    min-width:280px;

    padding:15px 18px;

    border-radius:14px;

    background:
    rgba(12,12,12,.95);

    border:
    1px solid rgba(255,0,0,.2);

    backdrop-filter:blur(15px);

    animation:
    alertIn .4s ease;
}

.alert-title{
    color:#ff4040;
    font-size:.8rem;
    letter-spacing:2px;
    margin-bottom:4px;
}

.alert-text{
    color:#d5d5d5;
    font-size:.85rem;
}

@keyframes alertIn{
    from{
        opacity:0;
        transform:
        translateX(50px);
    }

    to{
        opacity:1;
        transform:
        translateX(0);
    }
}

.family-emblem{
    position:relative;
    max-width:1300px;
    margin:120px auto;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:50px;
    padding:80px 40px;
    overflow: visible !important;
}

.family-reputation,
.family-status,
.activity-feed{
    width:250px;
    padding:22px;
    border-radius:20px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(18px);
    transition:.3s;
}

.family-reputation:hover,
.family-status:hover,
.activity-feed:hover{
    transform:translateY(-5px);
    border-color:rgba(255,0,0,.3);
}

.family-side{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.panel-title{
    font-size:12px;
    font-weight:800;
    letter-spacing:3px;
    text-transform:uppercase;

    color:#d0d0d0;

    margin-bottom:18px;

    position:relative;
}
.panel-title::after{
    content:"";

    display:block;

    width:40px;
    height:2px;

    margin-top:8px;

    background:linear-gradient(
        90deg,
        #ff2a2a,
        transparent
    );
}
.rep-item{
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.rep-item:last-child{
    border:none;
}

.rep-item span{
    color:#888;
}

.rep-item strong{
    color:white;
}

.status-online{
    color:#4cff7d;
    font-weight:700;
    margin-bottom:15px;
    text-shadow:0 0 15px #4cff7d;
}

.status-stats{
    display:flex;
    justify-content:space-between;
    text-align:center;
}

.status-stats strong{
    display:block;
    color:white;
    font-size:18px;
}

.status-stats span{
    color:#888;
    font-size:11px;
}

.feed-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 0;
    color:#d7d7d7;
    font-size:13px;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.feed-item:last-child{
    border:none;
}

.feed-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#ff2a2a;
    box-shadow:0 0 12px #ff2a2a;
}

@media(max-width:1100px){

    .family-emblem{
        flex-direction:column;
    }

    .family-side{
        width:240px;
        max-width:420px;
    }

    .family-reputation,
    .family-status,
    .activity-feed{
        width:100%;
        max-width:420px;
    }
}
/* ====================== TERRITORY CONTROL PANEL ====================== */







.territory-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2a2a;
  box-shadow: 0 0 8px rgba(255,42,42,0.9), 0 0 16px rgba(255,42,42,0.4);
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

.territory-item:nth-child(2) .territory-dot { animation-delay: .5s; }
.territory-item:nth-child(3) .territory-dot { animation-delay: 1s; }
.territory-item:nth-child(4) .territory-dot { animation-delay: 1.5s; }

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,42,42,0.9), 0 0 16px rgba(255,42,42,0.4); }
  50%       { box-shadow: 0 0 14px rgba(255,42,42,1),  0 0 28px rgba(255,42,42,0.7); }
}









.territory-fill.animated {
  width: var(--pct);
}

/* Ring total */













.control-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.control-status {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ff2a2a;
  text-shadow: 0 0 15px rgba(255,42,42,0.5);
}

.control-sub {
  font-size: 9px;
  letter-spacing: 2px;
  color: #666;
  font-weight: 600;
}

/* ====================== BLOOD SPLATTER ======================*/
.blood-drop {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff4040, #8a0000);
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  animation: bloodFly 0.5s ease-out forwards;
}
@keyframes bloodFly {
  0%   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  60%  { opacity: 0.8; transform: translate(calc(-50% + var(--ax)), calc(-50% + var(--ay))) scale(0.9); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--ax)), calc(-50% + var(--ay))) scale(0.2); }
}

/* ====================== GLITCH EFFECT ======================*/
.hero-title {
  position: relative;
}
.hero-title.glitching {
  animation: glitchAnim 0.6s steps(2) forwards;
}
@keyframes glitchAnim {
  0%   { text-shadow: none; clip-path: none; }
  10%  { text-shadow: -3px 0 #ff0000, 3px 0 #00ffff; transform: translateX(-3px) translateY(60px) skewX(-2deg); }
  20%  { text-shadow: 3px 0 #ff0000, -3px 0 #00ffff; transform: translateX(3px) translateY(30px) skewX(2deg); }
  30%  { text-shadow: -4px 0 #ff2a2a, 0 0 8px rgba(255,42,42,0.8); transform: translateX(0) translateY(30px); }
  40%  { text-shadow: 4px 0 #ff0000, -2px 0 rgba(255,42,42,0.6); transform: translateX(-2px) translateY(30px); }
  50%  { opacity: 0.85; transform: translateX(2px) scaleX(1.01) translateY(30px); }
  70%  { text-shadow: none; transform: translateX(0) translateY(30px); opacity:1; }
  100% { text-shadow: none; transform: translateX(0) translateY(0); opacity:1; }
}

/* ====================== LOGO RIPPLE ======================*/
.logo-ripple {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 42, 42, 0.5);
  transform: translate(-50%, -50%) scale(0);
  animation: logoRipple 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes logoRipple {
  to { transform: translate(-50%,-50%) scale(30); opacity: 0; }
}

/* ====================== LOADER SCANLINES ======================*/
.loader-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
  animation: scanMove 4s linear infinite;
}
@keyframes scanMove {
  from { background-position: 0 0; }
  to   { background-position: 0 100px; }
}

/* ====================== SECTION TITLE SPLIT ======================*/
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(90deg);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.23,1,0.32,1);
  transform-origin: bottom;
}
.split-char.char-show {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

/* ====================== CARD 3D PERSPECTIVE ======================*/
.rank-card, .member-card, .stat-card {
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
}

/* ====================== HERO SUBTITLE CURSOR ======================*/
.hero-subtitle::after {
  content: "|";
  color: #ff2a2a;
  animation: blinkCaret 0.75s step-end infinite;
  margin-left: 2px;
  text-shadow: 0 0 10px rgba(255,42,42,0.8);
}
@keyframes blinkCaret {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


/* ==========================================================================
   PREMIUM CYBERPUNK & NEXT-GEN GAMING UPGRADES (MILLER FAMILY REBORN)
   ========================================================================== */

:root {
  --red-neon: #ff1e1e;
  --red-glow: rgba(255, 30, 30, 0.45);
  --red-dark: #4a0000;
  --panel-bg: rgba(7, 7, 10, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 30, 30, 0.3);
  --neon-shadow: 0 0 25px var(--red-glow);
  --font-cyber: 'Montserrat', sans-serif;
}

/* Smooth Scrolling & Custom Scrollbar */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--red-neon) #050505;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 4px;
  border: 2px solid #050505;
  transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red-neon);
  box-shadow: 0 0 10px var(--red-neon);
}

/* Page Scroll Progress Indicator */


@keyframes moveGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Glassmorphism — только на КАРТАХ, НЕ на member-item (50+ элементов = лаг) */
.stat-card, .rank-card, .about-card, .join-box, .clock-container {
  background: var(--panel-bg) !important;
  backdrop-filter: blur(14px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s !important;
}

/* Hover effects — убираем member-item из этого правила */
.stat-card:hover, .rank-card:hover, .about-card:hover {
  border-color: var(--glass-border-hover) !important;
  box-shadow: 0 15px 50px rgba(255, 30, 30, 0.12), 0 0 20px rgba(255, 30, 30, 0.05), inset 0 1px 0 rgba(255, 30, 30, 0.1) !important;
  background: rgba(12, 8, 8, 0.85) !important;
}

/* Absolute Luxury Buttons & Glitch Shine Effects */
.main-btn, .join-btn, .discord-btn, .btn, button {
  position: relative;
  overflow: hidden;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 0 transparent;
}

.main-btn::before, .join-btn::before, .discord-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: none;
}

.main-btn:hover::before, .join-btn:hover::before, .discord-btn:hover::before {
  left: 160%;
  transition: left 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 25px rgba(255, 30, 30, 0.4);
  background: var(--red-neon) !important;
  color: #fff !important;
}

/* Custom Grid Fixes & Layout Enhancement */
.structure-grid, .members-list, .composition-grid {
  display: grid;
  gap: 25px;
  perspective: 1000px;
}

/* Dynamic Territory Progress Bars */




/* Text & Headings Styling Accentuation */
.section-title {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 4px;
  position: relative;
  margin-bottom: 50px;
  text-shadow: 0 0 15px rgba(255, 30, 30, 0.2);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--red-neon);
  box-shadow: 0 0 10px var(--red-neon);
  transition: width 0.4s ease;
}

section:hover .section-title::after {
  width: 120px;
}


/* Navigation Menu Polish */
/* header nav a — управляется через базовые стили выше */

/* Responsive Overrides & Fixes */
@media (max-width: 768px) {
  * {
    cursor: auto !important; /* Disable custom cursor on mobile for usability */
  }
  .cursor-outer, .cursor-inner, .cursor-glow {
    display: none !important;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px !important;
  width: 0%;
  background: linear-gradient(90deg, #ff0000, #ff5555, #ff0000) !important;
  background-size: 200% 100% !important;
  animation: moveGradient 3s linear infinite !important;
  z-index: 999999 !important;
  box-shadow: 0 0 15px rgba(255, 30, 30, 0.8) !important;
  transition: width 0.1s ease-out !important;
  pointer-events: none !important;
}

/* ==========================================================================
   PERFECT TERRITORY CONTROL CARD FIXED (CLEAN & NO OVERLAPS)
   ========================================================================== */
.family-status {
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(18px) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.territory-map-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  margin-top: 20px !important;
  width: 100% !important;
}

.territory-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  height: auto !important;
}

.territory-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  line-height: 1 !important;
}

.territory-name {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  color: #eee !important;
  margin: 0 !important;
  padding: 0 !important;
}

.territory-pct {
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #ff2a2a !important;
  margin: 0 !important;
  padding: 0 !important;
}

.territory-bar {
  width: 100% !important;
  height: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.territory-fill {
  height: 100% !important;
  border-radius: 4px !important;
  background: linear-gradient(90deg, #8a0000, #ff2a2a, #ff6060) !important;
  box-shadow: 0 0 8px rgba(255,42,42,0.6) !important;
  transition: width 1.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* ==========================================================================
   ULTRA-PRECISE LOGO EDGE & TERRITORY RING ALIGNMENT FIX
   ========================================================================== */

/* 1. ФИКС КРАЕВ ЗАДНЕГО ФОНА ЛОГОТИПА (Убираем видимые границы квадрата) */
.emblem-container {
  position: relative !important;
  z-index: 2 !important;
  cursor: pointer !important;
  width: 700px !important;
  max-width: 90% !important;
  background: transparent !important; /* Убираем любой фоновый цвет */
  border: none !important;            /* Убираем рамки */
  box-shadow: none !important;         /* Убираем тени контейнера, дающие квадрат */
  overflow: visible !important;
  padding: 0 !important; 
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  animation: emblemFloat 6s ease-in-out infinite !important;
}

.emblem-image {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  /* Используем качественный drop-shadow, который обтекает маску прозрачности логотипа, а не его квадратные края */
filter: drop-shadow(0 0 40px rgba(255, 30, 30, 0.5)) drop-shadow(0 0 80px rgba(255, 30, 30, 0.25)) !important;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), filter 0.45s ease !important;
}
.emblem-container img {
    background: transparent !important;
}

.emblem-container:hover .emblem-image {
  transform: scale(1.05) !important;
  filter: brightness(1.1) contrast(1.05) drop-shadow(0 0 45px rgba(255, 30, 30, 0.6)) drop-shadow(0 0 90px rgba(255, 30, 30, 0.3)) !important;
}

/* Полностью убираем псевдоэлементы, которые могли обрезаться по краям квадрата */
.emblem-container::before, .emblem-container::after {
  display: none !important;
}

/* 2. ФИКС КРУГОВОГО ИНДИКАТОРА ПРОЦЕНТОВ (Territory Control) */
.control-total {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding-top: 20px !important;
  margin-top: 15px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  width: 100% !important;
}

.control-ring {
  position: relative !important;
  width: 84px !important;  /* Синхронизированный размер контейнера */
  height: 84px !important; /* Синхронизированный размер контейнера */
  flex-shrink: 0 !important;
  display: block !important;
}

.ring-svg {
  width: 84px !important;  /* Идентично контейнеру */
  height: 84px !important; /* Идентично контейнеру */
  transform: rotate(-90deg) !important;
  display: block !important;
}

.ring-bg {
  fill: transparent !important;
  stroke: rgba(255, 255, 255, 0.05) !important;
  stroke-width: 6 !important;
}

.ring-fill {
  fill: transparent !important;
  stroke: url(#ringGrad) !important;
  stroke-width: 6 !important;
  stroke-linecap: round !important;
  filter: drop-shadow(0 0 8px rgba(255, 42, 42, 0.8)) !important;
}

/* Идеальное позиционирование текста строго по центру круга */
.ring-label {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  gap: 1px !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ring-number {
  font-size: 19px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  font-family: 'Montserrat', sans-serif !important;
}

.ring-unit {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #ff3a3a !important;
  line-height: 1 !important;
  margin-left: 1px !important;
  margin-top: 2px !important; /* Слегка сдвигаем знак % для красоты */
}
/* ====================== MODAL WINDOW ====================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(25px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: linear-gradient(145deg, #0a0a0a, #1f0000);
  border: 2px solid rgba(255, 42, 42, 0.5);
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  padding: 50px 45px;
  position: relative;
  box-shadow: 0 0 100px rgba(255, 42, 42, 0.4);
  transform: scale(0.9);
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 25px;
  font-size: 32px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  transition: 0.3s;
}

.modal-close:hover {
  color: #ff2a2a;
  transform: rotate(90deg);
}

.modal-content h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 6px;
  background: linear-gradient(to right, #ffffff, #ff4242);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-subtitle {
  text-align: center;
  color: #aaa;
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 35px;
}

/* Форма */
.form-group { margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  color: var(--red);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 1px;
  margin-bottom: 7px;
}

input, textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: white;
  font-size: 16px;
}

input:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,42,42,0.2);
  outline: none;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  margin-top: 10px;
  background: linear-gradient(90deg, #ff2a2a, #c40000);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.4s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(255, 42, 42, 0.85);
}
/* ================= PLAYLIST ================= */
.playlist {
  margin-top: 15px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 6px;
}

.playlist::-webkit-scrollbar {
  width: 4px;
}

.playlist::-webkit-scrollbar-thumb {
  background: #ff2a2a;
  border-radius: 20px;
}

#playlist li {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px;
  margin-bottom: 10px;

  border-radius: 16px;

  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.05);

  cursor: pointer;
  transition: .25s;
}

#playlist li:hover {
  transform: translateX(6px);
  background: rgba(255,42,42,.12);
}

#playlist li.active {
  background: rgba(255,42,42,.18);
  border: 1px solid rgba(255,42,42,.4);
  box-shadow: 0 0 20px rgba(255,42,42,.25);
}

.track-number {
  width: 32px;
  height: 32px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,42,42,.15);
  color: #ff4d4d;

  font-weight: 700;
}

.track-info {
  flex: 1;
}

.track-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.track-artist {
  color: #999;
  font-size: 11px;
  margin-top: 2px;
}

.track-playing {
  color: #ff2a2a;
  font-size: 14px;
}

.time-box{
  display:flex;
  justify-content:space-between;
  margin-top:6px;
  font-size:12px;
  color:#999;
}
#volumeSlider {
  pointer-events: auto !important;
  position: relative;
  z-index: 9999;
}
.stats-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);

    gap:14px;

    width:520px;
    max-width:520px;
}

.premium-stat{
    position:relative;

    overflow:hidden;

    padding:28px;

    border-radius:24px;

    background:
    linear-gradient(
        145deg,
        rgba(255,255,255,.06),
        rgba(255,255,255,.02)
    );

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(16px);

    transition:.35s;
}

.premium-stat:hover{
    transform:translateY(-8px);

    border-color:rgba(255,42,42,.4);

    box-shadow:
    0 20px 50px rgba(0,0,0,.45),
    0 0 30px rgba(255,42,42,.18);
}

.premium-stat::before{
    content:"";

    position:absolute;

    top:0;
    left:-120%;

    width:80%;
    height:100%;

    background:
    linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.08),
        transparent
    );

    transition:.9s;
}

.premium-stat:hover::before{
    left:140%;
}

.premium-stat::after{
    content:"";

    position:absolute;

    bottom:0;
    left:0;

    width:100%;
    height:3px;

    background:
    linear-gradient(
        90deg,
        #ff2a2a,
        transparent
    );
}

.stat-header{
    display:flex;
    align-items:center;
    gap:14px;

    margin-bottom:22px;
}

.stat-icon{
    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:12px;

    background:rgba(255,42,42,.12);
    border:1px solid rgba(255,42,42,.25);

    color:#ff2a2a;

    font-size:18px;

    animation:pulseIcon 3s infinite;

    flex-shrink:0;
}
.stat-title{
    font-size:10px;

    letter-spacing:3px;

    text-transform:uppercase;

    color:#cfcfcf;

    font-weight:700;

    opacity:.8;
}

.stat-number{
    margin-top:8px;
    position:relative;
    padding-bottom:12px;
    font-size:42px;
    font-weight:900;
    line-height:1;
    color:#fff;
    letter-spacing:-1px;
    text-shadow:
        0 0 10px rgba(255,255,255,.15),
        0 0 25px rgba(255,42,42,.2);
}
.stat-number::before{
    content:"";

    position:absolute;

    left:0;
    bottom:0;

    width:35px;
    height:2px;

    background:#ff2a2a;

    border-radius:10px;
}

.stat-description{
    margin-top:10px;

    font-size:11px;

    line-height:1.5;

    color:#8f8f8f;

    letter-spacing:.8px;

    text-transform:none;
}
.stat-trend{
    margin-top:14px;

    font-size:11px;

    font-weight:700;

    letter-spacing:1px;

    text-transform:uppercase;
}

.stat-trend.positive{
    color:#56ff95;

    text-shadow:
        0 0 10px rgba(86,255,149,.25);
}

@keyframes pulseIcon{
    0%{
        box-shadow:0 0 0 rgba(255,42,42,0);
    }

    50%{
        box-shadow:0 0 25px rgba(255,42,42,.4);
    }

    100%{
        box-shadow:0 0 0 rgba(255,42,42,0);
    }
}
.stat-number.percent::after {
  content: "%";
}
.family-info-block{
    width:240px;
}

.family-info-block .panel-title{
    margin-bottom:25px;

    text-align:center;

    color:#fff;

    font-size:12px;

    letter-spacing:4px;

    font-weight:800;
}

.info-row{
    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:18px;

    padding:12px 14px;

    border-radius:14px;

    background:
    rgba(255,255,255,.03);

    border:1px solid rgba(255,255,255,.05);

    transition:.3s;
}

.info-row:hover{
    transform:translateX(6px);

    border-color:rgba(255,42,42,.2);

    background:
    rgba(255,42,42,.05);
}

.info-row span:last-child{
    color:#d7d7d7;

    font-size:13px;

    letter-spacing:.5px;
}

.info-icon{
    width:34px;
    height:34px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:10px;

    background:
    rgba(255,42,42,.12);

    color:#ff2a2a;

    flex-shrink:0;
}

.info-icon.benefit{
    color:#4cff88;

    background:
    rgba(76,255,136,.12);
}
/* ==========================
   MILLER ORBIT SYSTEM
========================== */

.emblem-container{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:0 50px;
}

/* Кольца */

.orbit{
    position:absolute;

    border-radius:50%;

    pointer-events:none;
}

/* Внешнее кольцо */

.orbit-1{
    width:460px;
    height:460px;

    border:1px solid rgba(255,42,42,.10);

    animation:orbitRotate 28s linear infinite;
}

/* Среднее кольцо */

.orbit-2{
    width:390px;
    height:390px;

    border:1px dashed rgba(255,255,255,.08);

    animation:orbitRotateReverse 22s linear infinite;
}

/* Внутреннее кольцо */

.orbit-3{
    width:320px;
    height:320px;

    border:1px solid rgba(255,42,42,.15);

    animation:orbitRotate 16s linear infinite;
}

/* Светящиеся точки */

.orbit::before{
    content:"";

    position:absolute;

    top:-5px;
    left:50%;

    width:10px;
    height:10px;

    border-radius:50%;

    background:#ff2a2a;

    transform:translateX(-50%);

    box-shadow:
        0 0 10px #ff2a2a,
        0 0 20px #ff2a2a,
        0 0 40px rgba(255,42,42,.6);
}

/* Дополнительная точка */

.orbit::after{
    content:"";

    position:absolute;

    bottom:-4px;
    left:25%;

    width:7px;
    height:7px;

    border-radius:50%;

    background:white;

    box-shadow:
        0 0 10px white,
        0 0 20px rgba(255,255,255,.5);
}

/* Вращение */

@keyframes orbitRotate{
    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }
}

@keyframes orbitRotateReverse{
    from{
        transform:rotate(360deg);
    }

    to{
        transform:rotate(0deg);
    }
}
.member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #111;
  border-radius: 8px;
  margin-bottom: 5px;
}

.member img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.online { color: lime; }
.idle { color: orange; }
.dnd { color: red; }
.offline { color: gray; }

/* ==========================================================================
   RESPONSIVE — MOBILE / TABLET
   Breakpoints: 1024px (tablet), 768px (mobile-lg), 480px (mobile), 360px (xs)
   ========================================================================== */

/* ── 1024px: планшет горизонтальный ── */
@media (max-width: 1024px) {
  header { padding: 0 24px; }
  .live-clock { right: 24px; font-size: 14px; padding: 8px 16px; min-width: auto; }
  .hero { flex-direction: column; gap: 40px; padding: 120px 6% 60px; text-align: center; }
  .hero-title { font-size: 80px; }
  .hero-buttons { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); max-width: 500px; margin: 0 auto; }
  .family-emblem { flex-wrap: wrap; justify-content: center; gap: 24px; padding: 60px 5%; }
  .emblem-container { order: -1; }
  .structure-grid { grid-template-columns: repeat(2, 1fr); }
  .composition-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── 768px: мобильный крупный ── */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  header { padding: 0 14px; height: 62px; }
  nav { display: none; }
  .header-status { display: none; }
  .header-cta { display: none; }
  .header-burger { display: flex; }
  .header-logo-main { font-size: 15px; letter-spacing: 4px; }
  .header-logo-sub  { font-size: 7px; letter-spacing: 4px; }
  .header-logo-emblem { width: 34px; height: 34px; }
  .header-logo-emblem-img { width: 34px; height: 34px; }
  .live-clock { display: none; }
  .music-player {
    width: calc(100vw - 24px) !important;
    max-width: 340px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    left: auto !important;
  }
  .hero { padding: 90px 5% 50px; gap: 32px; }
  .hero-subtitle { font-size: 10px; letter-spacing: 3px; }
  .hero-title { font-size: 56px; line-height: 1; }
  .hero-text { font-size: 14px; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .join-btn, .discord-btn { width: 100%; max-width: 280px; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-number { font-size: 36px; }
  .section-title { font-size: 36px; }
  .background-title { font-size: 80px; }
  .family-emblem { padding: 48px 5%; gap: 20px; }
  .family-info-block { width: 100%; max-width: 320px; }
  .emblem-image { width: 160px; height: 160px; }
  .about { padding: 60px 5%; }
  .structure { padding: 60px 5%; }
  .structure-grid { grid-template-columns: 1fr; gap: 16px; }
  .rank-card { padding: 20px; }
  .member-image { height: 180px; }
  .soldiers-wrapper { padding: 0 5%; }
  .composition { padding: 60px 5%; }
  .composition-grid { grid-template-columns: 1fr; gap: 16px; }
  .video-section { padding: 60px 5%; }
  .video-frame { margin: 24px auto 0; }
  .game-section { padding: 60px 3%; }
  .game-hud-top { gap: 8px; padding: 10px 14px; flex-wrap: wrap; }
  .ghud-name { font-size: 9px; }
  .game-timer-wrap { font-size: 18px; }
  .game-enemies-hud { gap: 8px; }
  .ghud-mini { font-size: 10px; }
  .gt-name { font-size: 7px; }
  .gt-troops { font-size: 16px; }
  .gt-emoji { font-size: 10px; }
  .game-bottom-bar { flex-direction: column; }
  .game-bottom-bar .game-restart-btn { width: 100% !important; }
  .game-below { grid-template-columns: 1fr 1fr; }
  .game-below-log { grid-column: 1 / -1; }
  .join { padding: 60px 5%; }
  .join-box { padding: 36px 24px; border-radius: 20px; }
  .join-box h2 { font-size: 24px; }
  .footer { padding: 48px 5% 0; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom-right { flex-direction: column; gap: 6px; }
}

/* ── 480px: мобильный стандарт ── */
@media (max-width: 480px) {
  nav a[href=#about],
  nav a[href=#structure] { display: none; }
  nav { gap: 8px; }
  .hero-title { font-size: 44px; }
  .hero-subtitle { font-size: 9px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 16px 12px; }
  .stat-number { font-size: 30px; }
  .stat-title { font-size: 9px; }
  .stat-description { font-size: 10px; }
  .section-title { font-size: 28px; letter-spacing: 4px; }
  .background-title { font-size: 60px; opacity: 0.04; }
  .emblem-image { width: 130px; height: 130px; }
  .orbit { display: none; }
  .structure-info { grid-template-columns: repeat(2, 1fr); }
  .music-player { max-width: calc(100vw - 24px) !important; }
  .playlist { max-height: 120px; }
  .game-map { gap: 2px; padding: 2px; }
  .game-territory { min-height: 80px; padding: 8px 6px; }
  .gt-troops { font-size: 14px; }
  .gt-troops-label { display: none; }
  .gt-bar-wrap { display: none; }
  .gt-faction-badge { font-size: 10px; top: 4px; right: 4px; }
  .game-below { grid-template-columns: 1fr; }
  .vc-volume-wrap { display: none; }
  .footer-socials-grid { flex-direction: row; flex-wrap: wrap; }
  .footer-social-btn { flex: 1; min-width: 80px; }
}

/* ── 360px: очень маленький ── */
@media (max-width: 360px) {
  .hero-title { font-size: 36px; }
  .logo { font-size: 12px; }
  nav a { font-size: 9px; letter-spacing: 0.5px; }
  nav a[href=#members] { display: none; }
  .stat-card { padding: 12px 10px; }
  .stat-number { font-size: 26px; }
  .game-territory { min-height: 65px; padding: 6px 4px; }
  .gt-name { display: none; }
  .gt-troops { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════
   AUTH WALL — закрытый контент (index.html)
══════════════════════════════════════════════════════ */
#auth-wall {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 100px;
  background: #050505;
  pointer-events: auto;
}

.aw-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  padding: 48px 40px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,42,42,0.2);
  border-radius: 20px;
  box-shadow: 0 0 80px rgba(255,42,42,0.08), 0 32px 80px rgba(0,0,0,0.6);
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}
.aw-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #ff2a2a, transparent);
}

.aw-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(255,42,42,0.5));
}
.aw-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}
.aw-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}
.aw-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.aw-btn-login {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 32px;
  background: linear-gradient(90deg, #ff2a2a, #c00);
  color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none;
  border-radius: 10px;
  border: none; cursor: pointer;
  box-shadow: 0 0 30px rgba(255,42,42,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.aw-btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(255,42,42,0.7);
}
.aw-btn-join {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-weight: 700; font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.aw-btn-join:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

/* AUTH GUARD — экран загрузки для закрытых страниц */
#auth-checking {
  position: fixed; inset: 0; z-index: 99999;
  background: #050505;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
}
.auth-checking-logo {
  font-size: 28px; font-weight: 900; letter-spacing: 6px;
  color: #fff; text-transform: uppercase;
}
.auth-checking-logo span { color: var(--red); }
.auth-checking-sub {
  font-size: 10px; letter-spacing: 3px;
  color: rgba(255,255,255,0.2); text-transform: uppercase;
}
.auth-checking-spinner {
  width: 36px; height: 36px;
  border: 2px solid rgba(255,42,42,0.15);
  border-top-color: #ff2a2a;
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

