/* ============================================================
   ZGRY CLAN WEBSITE - style.css
   Zorganizowana Grupa Rykoszetowa
   Dark military × e-sport gaming aesthetic
   ============================================================ */

/* ---- CSS VARIABLES ---------------------------------------- */
:root {
  --red: #c0392b;
  --red-bright: #e74c3c;
  --red-glow: rgba(192, 57, 43, 0.4);
  --orange: #e67e22;
  --orange-bright: #f39c12;
  --bg-darkest: #0a0a0c;
  --bg-dark: #111116;
  --bg-card: #16161e;
  --bg-card-hover: #1e1e2a;
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(192,57,43,0.3);
  --text: #e8e8f0;
  --text-muted: #7a7a90;
  --text-dim: #55556a;
  --white: #ffffff;
  --gold: #f0c040;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.25s ease;
}

/* ---- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-darkest);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ------------------------------------------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em; }
a { color: var(--red-bright); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }
code {
  display: block;
  background: #0d0d12;
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 12px 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: #a0e0b0;
  border-radius: var(--radius);
  margin-top: 8px;
  word-break: break-all;
}

/* ---- LAYOUT ----------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}
.section-sub a { color: var(--red-bright); }

/* ---- REVEAL ANIMATIONS ------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 30px var(--red-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--red); }

.btn-outline {
  background: transparent;
  color: var(--red-bright);
  border: 1px solid var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: #fff;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,12,0.0);
  backdrop-filter: blur(0px);
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(10,10,12,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-accent);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 36px;
  width: auto;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--white);
}
.bracket { color: var(--red); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
}
.nav-cta:hover { opacity: 0.85; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

/* Crosshatch grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192,57,43,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,57,43,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Radial vignette + red glow center */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(192,57,43,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 30%, var(--bg-darkest) 100%);
  z-index: 1;
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--red);
  border-radius: 50%;
  animation: floatParticle linear infinite;
  opacity: 0;
}
@keyframes floatParticle {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-120vh) translateX(30px); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 5px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
  animation: fadeDown 0.8s ease 0.2s both;
}

.hero-title {
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 0 80px rgba(192,57,43,0.3);
  animation: fadeDown 0.8s ease 0.35s both;
}
.bracket-big { color: var(--red); }

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 8px;
  animation: fadeDown 0.8s ease 0.5s both;
}

.hero-motto {
  font-style: italic;
  color: var(--text-dim);
  font-size: 1rem;
  margin-top: 16px;
  margin-bottom: 40px;
  animation: fadeDown 0.8s ease 0.65s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeDown 0.8s ease 0.8s both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeDown 1s ease 1.2s both;
}
.hero-scroll-indicator span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.2); opacity: 1; }
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}
.about-text strong { color: var(--text); }
.about-text em { color: var(--red-bright); font-style: italic; }
.about-closing { font-style: italic; color: var(--text) !important; border-left: 3px solid var(--red); padding-left: 16px; }

.about-visual { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.about-shield {
  width: 160px;
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shield-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.shield-inner i {
  font-size: 6rem;
  color: var(--red);
  filter: drop-shadow(0 0 20px var(--red-glow));
  animation: shieldPulse 3s ease infinite;
}
.shield-inner span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}
@keyframes shieldPulse {
  0%,100% { filter: drop-shadow(0 0 12px var(--red-glow)); }
  50% { filter: drop-shadow(0 0 28px rgba(192,57,43,0.7)); }
}

.about-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  color: var(--text-muted);
  background: rgba(192,57,43,0.07);
  transition: all var(--transition);
}
.tag:hover { background: rgba(192,57,43,0.15); color: var(--text); }
.tag i { margin-right: 5px; color: var(--red); }

/* ============================================================
   MEMBERS
   ============================================================ */
#members { background: var(--bg-darkest); }

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.member-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.member-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
}

.member-rank-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 3px;
  color: var(--gold);
  font-size: 0.7rem;
}
.commander .member-rank-badge { color: var(--gold); }
.officer .member-rank-badge { color: var(--text-muted); }

.member-avatar {
  position: relative;
  width: 80px;
  height: 80px;
}
.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: ringPulse 2s ease infinite;
}
.commander .avatar-ring { border-color: var(--gold); }
@keyframes ringPulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.avatar-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--red);
}
.commander .avatar-icon { color: var(--gold); }

.member-rank {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}
.commander .member-rank { color: var(--gold); }

.member-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.05em;
}

.member-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Glow effect */
.member-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}
.commander-glow { background: radial-gradient(circle, rgba(240,192,64,0.15), transparent); }
.officer-glow   { background: radial-gradient(circle, var(--red-glow), transparent); }
.member-card:hover .member-glow { opacity: 1; }

/* ============================================================
   WHY US
   ============================================================ */
#why {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(192,57,43,0.12);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--red-bright);
  margin-bottom: 16px;
  transition: background var(--transition);
}
.feature-card:hover .feature-icon { background: rgba(192,57,43,0.22); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: var(--white);
}
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   STATS
   ============================================================ */
#stats { background: var(--bg-darkest); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 48px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border-accent); }

.stat-loader {
  color: var(--text-dim);
  font-size: 1.4rem;
}
.stat-content { width: 100%; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* Mini progress bar */
.stat-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s ease;
}

/* WN8 color coding */
.wn8-bad    { color: #cd3333; }
.wn8-below  { color: #cc7700; }
.wn8-avg    { color: #cccc00; }
.wn8-good   { color: #4d7326; }
.wn8-great  { color: #4099bf; }
.wn8-uni    { color: #793db6; }

/* CORS notice */
.cors-notice {
  background: rgba(192,57,43,0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.cors-notice i { color: var(--orange); margin-top: 2px; flex-shrink: 0; }
.cors-notice strong { color: var(--text); }

.stats-link { text-align: center; margin-top: 24px; }

/* ============================================================
   CORS INSTRUCTIONS
   ============================================================ */
.cors-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cors-steps { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.cors-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  opacity: 0.4;
  flex-shrink: 0;
  line-height: 1;
}
.step-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}
.step-body p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 8px; }

/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: var(--bg-darkest); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: all var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--red);
}
.discord .contact-icon { color: #5865F2; }

.contact-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}
.contact-card p { font-size: 0.9rem; color: var(--text-muted); }
.contact-note { font-size: 0.75rem; color: var(--text-dim); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.6;
}
.footer-logo { font-size: 1.8rem; }
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--red); }

.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--text-dim); }
.footer-disc { margin-top: 4px; opacity: 0.5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  section { padding: 72px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(10,10,12,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-accent);
  }
  .nav-links.open { display: flex; }
  .burger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { flex-direction: row; justify-content: center; flex-wrap: wrap; }

  .hero-title { font-size: clamp(4rem, 22vw, 7rem); }

  .footer-top { flex-direction: column; }

  .cors-step { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   LIVE MEMBERS SECTION
   ============================================================ */

/* -- Licznik -- */
.live-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 40px 0 48px;
}
.live-counter-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
}
.live-counter-inner .fa-users {
  font-size: 2rem;
  color: var(--red);
  filter: drop-shadow(0 0 10px var(--red-glow));
}
#val-members { color: var(--white); }
.live-counter-sep, .live-counter-max { color: var(--text-dim); font-size: 2rem; }
.live-counter-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: flex-end;
  margin-bottom: 6px;
}
.live-bar {
  width: 280px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.live-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-radius: 2px;
  transition: width 1.2s ease;
}

/* -- Player grid -- */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

/* -- Skeleton loader -- */
.player-skeleton {
  height: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: shimmer 1.5s infinite linear;
  background-size: 400% 100%;
  background-image: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    #1e1e2a 40%,
    var(--bg-card) 80%
  );
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* -- Player card -- */
.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: cardFadeIn 0.4s ease both;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.player-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  transition: background 0.2s;
}
.player-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 24px rgba(192,57,43,0.12);
}
.player-card:hover::before {
  background: linear-gradient(90deg, var(--red), transparent);
}

/* Dowódca */
.player-card.is-commander {
  border-color: rgba(240,192,64,0.4);
  background: linear-gradient(160deg, #1a160a, var(--bg-card));
  box-shadow: 0 0 20px rgba(240,192,64,0.08);
}
.player-card.is-commander::before {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.player-card.is-commander:hover {
  border-color: rgba(240,192,64,0.7);
  box-shadow: 0 8px 28px rgba(240,192,64,0.18);
}

/* Oficer wykonawczy */
.player-card.is-xo {
  border-color: rgba(192,57,43,0.35);
}
.player-card.is-xo::before {
  background: linear-gradient(90deg, var(--red), transparent);
}

/* Korona dowódcy */
.player-card-crown {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  color: var(--gold);
  opacity: 0.8;
}

.player-card-icon {
  font-size: 1.4rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.is-commander .player-card-icon { color: var(--gold); }
.is-xo .player-card-icon        { color: var(--red-bright); }

.player-card-nick {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.03em;
  word-break: break-all;
  line-height: 1.2;
}

.player-card-role {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.is-commander .player-card-role { color: var(--gold); opacity: 0.8; }
.is-xo .player-card-role        { color: var(--red);  opacity: 0.8; }

@media (max-width: 480px) {
  .player-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .live-counter-inner { font-size: 2.2rem; }
}
