@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&display=swap');

/* ==========================================================================
   VORONEZ LIGHT PORTAL DESIGN SYSTEM
   Pixel-perfect implementation matching approved-home.png & approved-rating.png
   ========================================================================== */

:root {
  --bg: #F7FAFF;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #FFFFFF;
  --surface-soft: #F3F8FF;

  --primary: #3288FF;
  --primary-hover: #2177F4;
  --primary-light: #EBF4FF;
  --primary-gradient: linear-gradient(135deg, #388CFF 0%, #2270EE 100%);

  --minecraft-green: #37C95B;
  --minecraft-green-gradient: linear-gradient(135deg, #44D767 0%, #2DBB4E 100%);

  --text: #10234B;
  --text-secondary: #5F739A;
  --text-muted: #8E9FB8;

  --border: rgba(92, 145, 220, 0.16);
  --border-card: rgba(92, 145, 220, 0.20);
  --border-subtle: rgba(92, 145, 220, 0.10);

  --shadow-card:
    0 4px 16px rgba(45, 105, 185, 0.05),
    0 16px 44px rgba(45, 105, 185, 0.08);

  --shadow-podium:
    0 8px 24px rgba(45, 105, 185, 0.08),
    0 24px 60px rgba(45, 105, 185, 0.10);

  --shadow-podium-first:
    0 12px 32px rgba(245, 158, 11, 0.20),
    0 24px 64px rgba(45, 105, 185, 0.12);

  --shadow-hover:
    0 8px 24px rgba(45, 105, 185, 0.12),
    0 24px 60px rgba(45, 105, 185, 0.14);

  --shadow-pill: 0 2px 10px rgba(45, 105, 185, 0.08);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
}

/* === RESET & BASE STYLING === */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* === UPPER SCENIC SKY BACKGROUND LAYER === */
.page-art-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(600px, 50vw, 780px);
  background: url("/assets/voronez/backgrounds/page-sky.webp") top center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.page-art-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(247, 250, 255, 0.00) 0%,
    rgba(247, 250, 255, 0.05) 35%,
    rgba(247, 250, 255, 0.55) 70%,
    #F7FAFF 100%
  );
}

/* Decorative Floating Castle */
.floating-islands-art {
  position: absolute;
  right: clamp(10px, 3.5vw, 60px);
  top: clamp(65px, 6vw, 100px);
  width: clamp(340px, 32vw, 540px);
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 16px 30px rgba(30, 80, 150, 0.08));
}

/* Vertical Decorative Phrase - enhanced contrast & positioning */
.stories-vertical-art {
  position: absolute;
  right: clamp(16px, 2.5vw, 44px);
  top: clamp(120px, 11vw, 165px);
  width: clamp(65px, 6vw, 85px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.95;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.95)) brightness(0.60) contrast(1.4);
  transition: opacity 0.3s ease;
}

@media (max-width: 991px) {
  .stories-vertical-art {
    display: none;
  }
}

/* Rotating delicate handwritten phrase */
.hero-phrase-rotator {
  position: absolute;
  right: clamp(320px, 30vw, 520px);
  top: clamp(130px, 11vw, 175px);
  pointer-events: none;
  z-index: 2;
  transform: rotate(-5deg);
  min-height: 48px;
  min-width: 260px;
}

.hero-phrase-rotator .phrase-item {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: 'Caveat', 'Segoe Script', cursive, sans-serif;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 700;
  color: #2563EB;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.95), 0 0 24px rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.hero-phrase-rotator .phrase-item.active {
  opacity: 0.95;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-phrase-rotator .phrase-item {
    transition: none !important;
    transform: none !important;
  }
  .hero-phrase-rotator .phrase-item:not([data-index="0"]) {
    display: none !important;
  }
  .hero-phrase-rotator .phrase-item[data-index="0"] {
    opacity: 0.95 !important;
    position: static !important;
  }
}

@media (max-width: 991px) {
  .hero-phrase-rotator {
    position: relative;
    right: auto;
    top: auto;
    transform: rotate(-3deg);
    margin-bottom: 8px;
    min-height: 38px;
  }
}

.real-players-rating-hero {
  position: absolute;
  right: clamp(260px, 24vw, 440px);
  top: clamp(65px, 6vw, 95px);
  width: clamp(170px, 14vw, 220px);
  transform: rotate(-3deg);
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}

/* === HEADER / NAVBAR === */
.voronez-navbar {
  position: relative;
  z-index: 100;
  padding: 24px 0 16px;
}

.voronez-nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voronez-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voronez-nav-logo img {
  height: 52px;
  width: auto;
  display: block;
  transition: height 0.2s ease;
}

@media (max-width: 576px) {
  .voronez-nav-logo img {
    height: 38px;
  }
}

.voronez-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav Pills */
.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.nav-pill-download {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(50, 136, 255, 0.35);
}

.nav-pill-download:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(50, 136, 255, 0.45);
}

.nav-pill-light {
  background: var(--surface-solid);
  color: var(--text) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pill);
}

.nav-pill-light:hover {
  background: var(--surface-soft);
  border-color: rgba(50, 136, 255, 0.35);
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.nav-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  image-rendering: pixelated;
}

/* === MAIN LAYOUT WRAPPERS === */
.main-content {
  position: relative;
  z-index: 10;
  flex: 1 0 auto;
}

.voronez-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === HERO SECTION === */
.hero-section {
  padding: 42px 0 36px;
  position: relative;
}

.hero-title {
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 16px 0;
  max-width: 720px;
}

.hero-title-blue {
  color: var(--primary);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-brand-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-brand-subtitle .blue-dash {
  display: inline-block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--primary);
}

/* === SERVER CARDS GRID === */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.server-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.server-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.server-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transition: transform 0.4s ease;
}

.server-card:hover .server-card-bg {
  transform: scale(1.025);
}

/* HTML Readability Overlay */
.server-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(7, 20, 39, 0.15) 0%,
    rgba(7, 20, 39, 0.05) 30%,
    rgba(7, 20, 39, 0.35) 65%,
    rgba(7, 20, 39, 0.82) 100%
  );
}

.server-card-header,
.server-card-footer {
  position: relative;
  z-index: 5;
}

.server-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 35, 75, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.server-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 35, 75, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22C55E;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.server-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.server-title-block {
  flex: 1;
}

.server-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.server-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.server-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.server-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(16, 35, 75, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 500;
  color: #FFFFFF;
}

.server-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF !important;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.server-cta-blue {
  background: var(--primary-gradient);
  box-shadow: 0 6px 18px rgba(50, 136, 255, 0.45);
}

.server-cta-blue:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(50, 136, 255, 0.6);
}

.server-cta-green {
  background: var(--minecraft-green-gradient);
  box-shadow: 0 6px 18px rgba(55, 201, 91, 0.45);
}

.server-cta-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(55, 201, 91, 0.6);
}

/* === TOP 5 PLAYERS BAR (HOME PAGE) === */
.top5-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.top5-lead {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 250px;
}

.top5-trophy-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.top5-lead-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2px;
}

.top5-lead-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.top5-lead-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.top5-players-row {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-around;
}

.top5-player-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 16px;
  border-left: 1px solid var(--border-subtle);
}

.top5-rank-badge {
  position: absolute;
  top: -2px;
  left: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.rank-badge-1 { background: #FEF3C7; color: #D97706; }
.rank-badge-2 { background: #E0F2FE; color: #0284C7; }
.rank-badge-3 { background: #FFEDD5; color: #EA580C; }
.rank-badge-4 { background: #F3E8FF; color: #9333EA; }
.rank-badge-5 { background: #ECFDF5; color: #059669; }

.top5-crown-box {
  height: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 2px;
}

.top5-avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  image-rendering: pixelated;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 6px;
}

.top5-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.top5-stat {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.top5-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary) !important;
  background: var(--surface-solid);
  border: 1.5px solid var(--primary);
  white-space: nowrap;
  transition: all 0.22s ease;
}

.top5-all-btn:hover {
  background: var(--primary);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(50, 136, 255, 0.35);
}

/* === RATING PAGE STYLING === */
.rating-hero-section {
  padding: 38px 0 28px;
  position: relative;
}

/* === RATING FILTERS (2-ROW WRAPPER) === */
.rating-filters-wrapper {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pill);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-row-servers {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-row-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  min-width: 85px;
  display: inline-flex;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-soft);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.filter-pill:hover {
  color: var(--primary);
  background: var(--surface-solid);
  border-color: rgba(50, 136, 255, 0.25);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(50, 136, 255, 0.35);
  border-color: transparent;
}

/* === TOP 3 PODIUM CARDS === */
.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.podium-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-podium);
  border: 1px solid rgba(255, 255, 255, 0.6);
  min-height: 250px;
  justify-content: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.podium-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.podium-card-first {
  min-height: 275px;
  border: 2px solid rgba(251, 191, 36, 0.7);
  box-shadow: var(--shadow-podium-first);
  transform: translateY(-6px);
}

.podium-card-first:hover {
  transform: translateY(-10px);
}

.podium-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* TOP-3 Light Veil for crisp typography */
.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.20) 40%,
    rgba(247, 250, 255, 0.88) 100%
  );
}

.podium-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.podium-avatar-container {
  position: relative;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.podium-crown {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  z-index: 10;
}

.laurel-wreath {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  pointer-events: none;
  z-index: 4;
}

.podium-avatar {
  border-radius: 10px;
  image-rendering: pixelated;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 5;
  position: relative;
}

.podium-avatar-sm { width: 56px; height: 56px; }
.podium-avatar-lg { width: 68px; height: 68px; }

.podium-rank-badge {
  position: absolute;
  bottom: -4px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge-first { background: #F59E0B; color: #FFFFFF; }
.badge-second { background: #94A3B8; color: #FFFFFF; }
.badge-third { background: #D97706; color: #FFFFFF; }

.podium-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.podium-name-first {
  font-size: 22px;
  font-weight: 800;
}

.podium-stat {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.podium-stat-first {
  font-size: 32px;
}

.podium-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* === RATING MAIN SECTION: TABLE + SIDEBAR === */
.rating-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-bottom: 60px;
  align-items: start;
}

/* Table Container */
.rating-table-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 8px 16px;
}

.rating-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.rating-table th {
  padding: 16px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.rating-table td {
  padding: 14px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(92, 145, 220, 0.07);
  vertical-align: middle;
}

.rating-table tr:last-child td {
  border-bottom: none;
}

.rating-table tbody tr {
  transition: background-color 0.15s ease;
}

.rating-table tbody tr:hover {
  background-color: var(--surface-soft);
}

.rank-num-cell {
  font-weight: 700;
  color: var(--text-secondary);
  width: 50px;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  image-rendering: pixelated;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.table-player-name {
  font-weight: 700;
  color: var(--text);
}

.server-badge-table {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.server-badge-tech {
  background: rgba(50, 136, 255, 0.10);
  color: #2170E4;
}

.server-badge-survival {
  background: rgba(34, 197, 94, 0.12);
  color: #16A34A;
}

.stat-cell-bold {
  font-weight: 700;
  color: var(--text);
}

/* === SIDEBAR CARDS === */
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-metric-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sidebar-metric-info {
  flex: 1;
}

.sidebar-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.sidebar-metric-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.sidebar-metric-badge {
  font-size: 11px;
  font-weight: 700;
  color: #16A34A;
  margin-left: 6px;
}

/* Scenic Banner Card at bottom of sidebar */
.sidebar-scenic-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 140px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 20px;
  background: url("/assets/voronez/backgrounds/page-sky.webp") top center / cover no-repeat;
}

.sidebar-scenic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(247, 250, 255, 0.85) 100%);
  z-index: 1;
}

.sidebar-scenic-phrase {
  position: relative;
  z-index: 5;
  width: 130px;
}

.sidebar-scenic-btn {
  position: relative;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(45, 105, 185, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  transition: all 0.2s ease;
}

.sidebar-scenic-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateX(2px);
}

/* === FOOTER === */
.voronez-footer {
  position: relative;
  z-index: 10;
  background: var(--surface-solid);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: auto;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand-side {
  min-width: 260px;
}

.footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  flex: 1;
  max-width: 960px;
}

.footer-card-btn {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.footer-card-btn:hover {
  background: var(--surface-solid);
  border-color: rgba(50, 136, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(45, 105, 185, 0.08);
}

.footer-card-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--primary);
  flex-shrink: 0;
}

.discord-box { color: #5865F2; }
.community-box { color: #3288FF; }
.status-box { color: #16A34A; }

.footer-btn-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.footer-btn-desc {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-signature {
  height: 24px;
  width: auto;
  opacity: 0.85;
}

/* === RESPONSIVE BREAKPOINTS === */

@media (max-width: 1200px) {
  .podium-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .podium-card-first {
    transform: none;
    order: -1;
  }
}

@media (max-width: 1024px) {
  .stories-vertical-art {
    display: none !important;
  }
  .floating-islands-art {
    width: 340px;
    right: 10px;
    top: 90px;
    opacity: 0.8;
  }
  .play-together-hero {
    right: 320px;
  }
  .real-players-rating-hero {
    right: 280px;
  }
  .rating-layout-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-cards-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
  .top5-card {
    flex-direction: column;
    align-items: stretch;
  }
  .top5-players-row {
    overflow-x: auto;
    padding: 12px 0;
  }
}

@media (max-width: 820px) {
  .floating-islands-art {
    display: none !important;
  }
  .play-together-hero,
  .real-players-rating-hero {
    display: none !important;
  }
  .servers-grid {
    grid-template-columns: 1fr;
  }
  .server-card {
    height: 320px;
  }
  .sidebar-stack {
    grid-template-columns: 1fr;
  }
}

.nav-btn-text-short {
  display: none;
}
.nav-btn-text-full {
  display: inline;
}

@media (max-width: 768px) {
  .nav-btn-text-pill {
    display: none !important;
  }
  .nav-btn-text-full {
    display: none !important;
  }
  .nav-btn-text-short {
    display: inline !important;
  }
}

@media (max-width: 640px) {
  .voronez-nav-container {
    padding: 0 12px;
  }
  .voronez-container {
    padding: 0 14px;
  }
  .voronez-nav-actions {
    gap: 6px;
  }
  .nav-pill-btn {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
  }
  .voronez-nav-logo img,
  .voronez-nav-logo picture img {
    height: 30px !important;
    max-width: 120px !important;
  }
  .hero-title {
    font-size: 26px !important;
    line-height: 1.18 !important;
    margin-bottom: 12px !important;
  }
  .hero-brand-subtitle {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .server-card {
    height: auto;
    min-height: 330px;
  }
  .server-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .server-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .footer-cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-row {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .rating-filter-bar {
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 420px) {
  .voronez-nav-logo img,
  .voronez-nav-logo picture img {
    height: 26px !important;
    max-width: 105px !important;
  }
  .nav-pill-btn {
    padding: 6px 8px !important;
  }
}

/* === ACCESSIBILITY & PREFERS-REDUCED-MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* Server Card Actions & Map Button */
.server-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.server-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: #1E293B !important;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.server-map-btn:hover {
  background: #FFFFFF;
  color: #2563EB !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.22);
}

/* Online Badge Dropdown & Players Popover */
.server-online-dropdown .server-online-pill {
  cursor: pointer;
  outline: none;
}

.server-online-dropdown .server-online-pill:focus,
.server-online-dropdown .server-online-pill:hover {
  background: rgba(16, 35, 75, 0.70);
}

.server-players-popover {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: #FFFFFF !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.15) !important;
  max-height: 280px;
  overflow-y: auto;
}

.server-player-item:hover {
  background: #F1F5F9;
}

/* Auth Cards & Light styling */
.voronez-auth-card {
  border-radius: 20px !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(92, 145, 220, 0.18) !important;
  box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.06), 0 4px 12px rgba(15, 23, 42, 0.03) !important;
}

.auth-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teamspeak-box {
  background: #EFF6FF !important;
  color: #2563EB !important;
}

/* Light Skin & Cape Preview Boxes */
.skin-preview-box-light {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
