/* ═══ РУМИРФ Clan — AAA MMORPG Guild Screen 2026 ═══ */
:root {
  --rg-bg: #070812;
  --rg-panel: #0F1023;
  --rg-panel-2: #141428;
  --rg-border: rgba(139, 92, 246, 0.25);
  --rg-primary: #8B5CF6;
  --rg-secondary: #A855F7;
  --rg-blue: #38BDF8;
  --rg-pink: #EC4899;
  --rg-green: #22C55E;
  --rg-gold: #FBBF24;
  --rg-text: #FFFFFF;
  --rg-muted: #A1A1B8;
  --rg-glow: 0 0 24px rgba(139, 92, 246, 0.35);
  --rg-glass: rgba(15, 16, 35, 0.72);
}

@keyframes rgFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rgGlowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.06); }
  50% { box-shadow: 0 0 32px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255,255,255,0.1); }
}
@keyframes rgWarPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
@keyframes rgBarShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes rgBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

html { background: var(--rg-bg) !important; }
body {
  background: var(--rg-bg) !important;
  color: var(--rg-text) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}
body::before, body::after { display: none !important; }
.muted { color: var(--rg-muted) !important; }

/* ── Header launcher strip ── */
.forum-header-shell { position: sticky; top: 0; z-index: 200; }
.top-strip {
  background: rgba(7, 8, 18, 0.88) !important;
  backdrop-filter: blur(24px) saturate(1.4) !important;
  border-bottom: 1px solid var(--rg-border) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55) !important;
}
.header-nav-link.active {
  background: linear-gradient(135deg, var(--rg-primary), #6D28D9) !important;
  box-shadow: var(--rg-glow) !important;
}

/* ── Grid shell ── */
.clan-studio {
  grid-template-columns: minmax(252px, 288px) minmax(0, 1fr) minmax(272px, 320px) !important;
  gap: 16px !important;
  padding: 0 clamp(12px, 2vw, 32px) 40px !important;
  max-width: 1680px;
}
.clan-studio > * { animation: rgFadeUp 0.55s ease both; }
.clan-rail-left { animation-delay: 0.05s; }
.clan-hub { animation-delay: 0.12s; }
.clan-rail-right { animation-delay: 0.18s; }

/* ── Game panels ── */
.clan-rail-card,
.clan-hub-meta,
.clan-hub-panel-card,
.clan-quick-stat,
dialog.card {
  background: var(--rg-glass) !important;
  backdrop-filter: blur(28px) saturate(1.35) !important;
  border: 1px solid var(--rg-border) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
}
.clan-rail-card {
  border-radius: 18px !important;
  position: relative;
  overflow: hidden;
}
.clan-rail-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rg-primary), var(--rg-blue), transparent);
  opacity: 0.7;
}

/* ── Left clan identity card ── */
.clan-rail-profile {
  padding: 18px 16px 16px !important;
  text-align: center;
}
.clan-rail-avatar {
  width: 96px !important;
  height: 96px !important;
  margin: 0 auto 12px !important;
  border-radius: 20px !important;
  border: 2px solid rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.35), inset 0 0 20px rgba(139, 92, 246, 0.15) !important;
  position: relative;
}
.clan-rail-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  pointer-events: none;
}
.clan-rail-name {
  font-size: 1.05rem !important;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.clan-rail-tag {
  color: var(--rg-secondary) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.12em;
}
.clan-rail-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rg-primary), #4C1D95);
  border: 2px solid rgba(255, 255, 255, 0.15);
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: var(--rg-glow);
  margin: 8px auto;
}
.clan-rail-xp {
  height: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(139, 92, 246, 0.15);
}
.clan-rail-xp > span {
  background: linear-gradient(90deg, var(--rg-primary), var(--rg-blue), var(--rg-primary)) !important;
  background-size: 200% 100% !important;
  animation: rgBarShine 3s linear infinite;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.5) !important;
}
.clan-rail-stat {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(139, 92, 246, 0.12) !important;
  border-radius: 10px !important;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.clan-rail-stat:hover {
  border-color: rgba(139, 92, 246, 0.35) !important;
  background: rgba(139, 92, 246, 0.06) !important;
  transform: translateX(3px);
}
.clan-rail-stat .lbl { color: var(--rg-muted) !important; }
.clan-rail-stat .val { color: var(--rg-text) !important; }

/* ── Game nav ── */
.clan-rail-nav { gap: 4px !important; }
.clan-rail-nav a,
.clan-rail-nav button {
  border-radius: 12px !important;
  padding: 11px 14px !important;
  color: var(--rg-muted) !important;
  border: 1px solid transparent !important;
  position: relative;
  overflow: hidden;
}
.clan-rail-nav a::before,
.clan-rail-nav button::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--rg-primary), var(--rg-blue));
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 0 4px 4px 0;
}
.clan-rail-nav a:hover,
.clan-rail-nav button:hover {
  color: var(--rg-text) !important;
  background: rgba(139, 92, 246, 0.1) !important;
  border-color: rgba(139, 92, 246, 0.2) !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.12) !important;
}
.clan-rail-nav a.active,
.clan-rail-nav button.active {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.28), rgba(109, 40, 217, 0.12)) !important;
  border-color: rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
.clan-rail-nav a.active::before,
.clan-rail-nav button.active::before { opacity: 1; }
.nav-ico { width: 22px; text-align: center; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(139,92,246,0.4)); }

.clan-rail-cta {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(56, 189, 248, 0.06)) !important;
  border: 1px dashed rgba(139, 92, 246, 0.35) !important;
  border-radius: 14px !important;
  color: #c4b5fd !important;
  transition: all 0.3s ease;
}
.clan-rail-cta:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(56, 189, 248, 0.1)) !important;
  box-shadow: var(--rg-glow) !important;
  color: #fff !important;
}

/* ── Cinematic hero ── */
.clan-hero-banner {
  min-height: 320px !important;
  height: 320px;
  border-radius: 20px !important;
  border: 1px solid var(--rg-border) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55) !important;
  margin-bottom: 14px !important;
}
.clan-hero-banner.has-cover {
  aspect-ratio: unset !important;
  min-height: 320px !important;
  height: 320px !important;
}
.clan-hero-banner.has-cover .clan-hero-fallback { display: none; }
.clan-hero-banner .hero-cover-img {
  transform: scale(1.04);
  transition: transform 0.4s ease;
}
.clan-hero-banner:hover .hero-cover-img { transform: scale(1.08); }

.clan-hero-fallback {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(139, 92, 246, 0.25), transparent),
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.15), transparent 40%),
    linear-gradient(180deg, rgba(7, 8, 18, 0.3) 0%, rgba(7, 8, 18, 0.92) 100%),
    repeating-linear-gradient(90deg, rgba(139,92,246,0.03) 0 1px, transparent 1px 80px) !important;
}

.clan-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
  background: linear-gradient(0deg, rgba(7, 8, 18, 0.95) 0%, rgba(7, 8, 18, 0.45) 45%, transparent 100%);
  pointer-events: none;
}
.clan-hero-overlay * { pointer-events: auto; }
.clan-hero-title {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff 0%, #e9d5ff 50%, var(--rg-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(139, 92, 246, 0.4));
}
.clan-hero-motto {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--rg-muted);
  max-width: 560px;
  line-height: 1.45;
}
.clan-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.clan-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 16, 35, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rg-muted);
  backdrop-filter: blur(8px);
}
.clan-hero-chip b { color: var(--rg-text); }
.clan-hero-shield {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
  animation: rgGlowPulse 3s ease-in-out infinite;
}

/* ── Stat cards row ── */
.clan-quick-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
}
.clan-quick-stat {
  position: relative;
  padding: 14px 10px !important;
  border-radius: 16px !important;
  background: var(--rg-glass) !important;
  border: 1px solid var(--rg-border) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  transform-style: preserve-3d;
  perspective: 600px;
}
.clan-quick-stat::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 50%);
  pointer-events: none;
}
.clan-quick-stat:hover {
  transform: translateY(-4px) rotateX(4deg);
  border-color: rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2), 0 0 24px rgba(139, 92, 246, 0.15) !important;
}
.clan-quick-stat .ico { font-size: 1.1rem !important; filter: drop-shadow(0 0 8px rgba(139,92,246,0.5)); }
.clan-quick-stat .num {
  font-size: 1.15rem !important;
  background: linear-gradient(180deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.clan-quick-stat .lbl { color: var(--rg-muted) !important; font-size: 0.62rem !important; }

/* ── Game tabs ── */
.clan-hub-tabs { gap: 8px !important; margin-bottom: 14px !important; }
.clan-hub-tab {
  padding: 10px 18px !important;
  border-radius: 10px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  border: 1px solid rgba(139, 92, 246, 0.15) !important;
  background: rgba(15, 16, 35, 0.6) !important;
  color: var(--rg-muted) !important;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.clan-hub-tab:hover {
  color: #fff !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.15) !important;
}
.clan-hub-tab.active {
  background: linear-gradient(135deg, var(--rg-primary), #6D28D9) !important;
  border-color: rgba(167, 139, 250, 0.6) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.45) !important;
}

.clan-hub-panel-title {
  font-size: 0.78rem !important;
  letter-spacing: 0.14em !important;
  color: var(--rg-muted) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.clan-hub-panel-title::before {
  content: '';
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rg-primary), var(--rg-blue));
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

/* ── War arena ── */
.rg-war-arena {
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(236, 72, 153, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(139, 92, 246, 0.1), rgba(15, 16, 35, 0.8));
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.rg-war-arena-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.rg-war-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fda4af;
}
.rg-war-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rg-pink);
  box-shadow: 0 0 12px var(--rg-pink);
  animation: rgWarPulse 1.2s ease-in-out infinite;
}
.rg-war-timer {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}
.clan-war-active {
  grid-template-columns: 1fr auto 1fr !important;
  gap: 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  margin-bottom: 16px !important;
}
.rg-war-emblem {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin: 0 auto 8px;
  background: rgba(15, 16, 35, 0.8);
  border: 1px solid var(--rg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}
.clan-war-bar {
  height: 12px !important;
  border: 1px solid rgba(255,255,255,0.06);
}
.clan-war-bar > span {
  background: linear-gradient(90deg, var(--rg-primary), var(--rg-blue), var(--rg-primary)) !important;
  background-size: 200% 100% !important;
  animation: rgBarShine 2s linear infinite;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}
.clan-war-vs {
  font-size: 1rem !important;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ── District cards ── */
.rg-district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.rg-district-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--rg-panel);
  border: 1px solid var(--rg-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.rg-district-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.rg-district-card.friendly { border-color: rgba(34, 197, 94, 0.35); }
.rg-district-card.enemy { border-color: rgba(236, 72, 153, 0.35); }
.rg-district-card.neutral { border-color: rgba(161, 161, 184, 0.2); }
.rg-district-visual {
  height: 88px;
  background:
    linear-gradient(180deg, rgba(7,8,18,0.2), rgba(7,8,18,0.85)),
    linear-gradient(135deg, #1a1035, #0F1023);
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  position: relative;
}
.rg-district-visual::before {
  content: '🏙️';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.4rem;
  opacity: 0.5;
}
.rg-district-status {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}
.rg-district-status.friendly { background: rgba(34,197,94,0.15); color: var(--rg-green); }
.rg-district-status.enemy { background: rgba(236,72,153,0.15); color: var(--rg-pink); }
.rg-district-status.neutral { background: rgba(161,161,184,0.1); color: var(--rg-muted); }
.rg-district-body { padding: 12px 14px 14px; }
.rg-district-title { font-weight: 800; font-size: 0.9rem; margin-bottom: 4px; }
.rg-district-meta { font-size: 0.75rem; color: var(--rg-muted); line-height: 1.4; }
.rg-district-locs { margin-top:8px; display:flex; flex-wrap:wrap; gap:4px; }
.rg-district-loc {
  font-size:.62rem; padding:2px 6px; border-radius:4px;
  background:rgba(139,92,246,.1); color:#B8B8D0; border:1px solid rgba(139,92,246,.15);
  white-space:nowrap; line-height:1.3;
}

/* ── Achievement badges ── */
.rg-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.rg-ach-badge {
  text-align: center;
  padding: 16px 12px;
  border-radius: 16px;
  background: var(--rg-panel);
  border: 1px solid var(--rg-border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.rg-ach-badge.unlocked {
  animation: rgBadgeFloat 4s ease-in-out infinite;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.2);
}
.rg-ach-badge.unlocked:hover {
  transform: scale(1.05);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.35);
}
.rg-ach-badge.locked {
  opacity: 0.45;
  filter: grayscale(0.7);
}
.rg-ach-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.rg-ach-title { font-size: 0.72rem; font-weight: 800; line-height: 1.3; color: var(--rg-text); }
.rg-ach-req { font-size: 0.65rem; color: var(--rg-muted); margin-top: 4px; }

/* ── Right rail members ── */
.clan-member-chip-rail {
  padding: 10px 8px !important;
  border-radius: 12px !important;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent !important;
  transition: all 0.25s;
}
.clan-member-chip-rail:hover {
  background: rgba(139, 92, 246, 0.08) !important;
  border-color: rgba(139, 92, 246, 0.2) !important;
}
.clan-member-chip-rail .miniavatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.clan-member-chip-rail.is-online {
  border-color: rgba(34, 197, 94, 0.2) !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.08);
}
.clan-member-chip-rail .online {
  color: var(--rg-green) !important;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--rg-secondary);
}
.role-badge.boss { color: var(--rg-gold); }

/* ── Activity timeline ── */
.clan-activity-item {
  position: relative;
  padding-left: 4px !important;
}
.clan-activity-item::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 36px;
  bottom: -8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(139,92,246,0.3), transparent);
}
.clan-activity-item:last-child::before { display: none; }
.clan-activity-item .ico {
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

/* ── Top contributors ── */
.rg-leaderboard { display: grid; gap: 8px; }
.rg-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: all 0.25s;
}
.rg-lb-row:hover { border-color: rgba(139, 92, 246, 0.3); background: rgba(139, 92, 246, 0.06); }
.rg-lb-row.top1 {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), rgba(139, 92, 246, 0.08));
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}
.rg-lb-rank {
  width: 24px;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--rg-muted);
  text-align: center;
}
.rg-lb-row.top1 .rg-lb-rank { color: var(--rg-gold); }
.rg-lb-info { flex: 1; min-width: 0; }
.rg-lb-name { font-weight: 800; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-lb-meta { font-size: 0.68rem; color: var(--rg-muted); }

/* ── Premium game buttons ── */
.btn, .clan-show-all {
  border-radius: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s !important;
}
.btn-primary, .btn-green {
  background: linear-gradient(180deg, #9F7AEA 0%, var(--rg-primary) 45%, #6D28D9 100%) !important;
  border: 1px solid rgba(167, 139, 250, 0.5) !important;
  box-shadow: 0 4px 0 #4C1D95, 0 8px 24px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-green:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 0 #4C1D95, 0 12px 32px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}
.btn-primary:active, .btn-green:active {
  transform: translateY(2px) !important;
  box-shadow: 0 2px 0 #4C1D95, 0 4px 16px rgba(139, 92, 246, 0.3) !important;
}
.btn-ghost {
  background: rgba(15, 16, 35, 0.8) !important;
  border: 1px solid var(--rg-border) !important;
  color: var(--rg-muted) !important;
}
.btn-red {
  background: linear-gradient(180deg, #F472B6, var(--rg-pink)) !important;
  box-shadow: 0 4px 0 #9D174D, 0 8px 20px rgba(236, 72, 153, 0.35) !important;
}

/* ── Game footer ── */
.rg-game-footer {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--rg-glass);
  border: 1px solid var(--rg-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(20px);
}
.rg-footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.rg-footer-stat {
  text-align: center;
}
.rg-footer-stat .num {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--rg-text);
}
.rg-footer-stat .lbl {
  font-size: 0.65rem;
  color: var(--rg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rg-footer-version {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--rg-muted);
}
.rg-footer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rg-green);
  box-shadow: 0 0 10px var(--rg-green);
}

.rg-section-enter { opacity: 0; transform: translateY(12px); }
.rg-section-enter.rg-visible { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }

@media (max-width: 1180px) {
  .clan-quick-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 820px) {
  .clan-studio {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    max-width: 100% !important;
  }
  .clan-rail-left,
  .clan-rail-right,
  .clan-hub {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .clan-hero-banner, .clan-hero-banner.has-cover { height: 240px !important; min-height: 240px !important; }
  .clan-hero-shield { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .clan-quick-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .clan-hub-tab { clip-path: none !important; }
}
@media (max-width: 520px) {
  .clan-war-active { grid-template-columns: 1fr !important; }
  .rg-war-timer { font-size: 1.1rem; }
}
