/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - CLASH OF THE KINGDOMS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-deep: #0b0e14;
  --bg-card: #131722;
  --bg-card-hover: #1b2030;
  
  --primary-gold: #c5a86a;
  --primary-gold-rgb: 197, 168, 106;
  --primary-gold-hover: #e5c88a;
  --gold-glow: rgba(197, 168, 106, 0.25);
  
  --text-primary: #f0edf5;
  --text-muted: #9fa6b5;
  
  --accent-red: #a83232;
  --accent-blue: #3b5998;
  --discord-brand: #5865f2;
  --steam-brand: #101822;
  --steam-gradient: linear-gradient(135deg, #101f30 0%, #171a21 100%);
  
  /* Layout Specs */
  --header-height: 110px; /* Increased to accommodate a grand, beautiful header logo */
  --border-radius: 12px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --max-width: 1200px;
  
  /* Fonts */
  --font-header: 'Cinzel', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
}

/* ==========================================================================
   BILINGUAL DISPLAY CONTROLS
   ========================================================================== */
/* Simple and robust language toggles based on body data attribute */
body[data-lang="en"] .ua-text {
  display: none !important;
}
body[data-lang="ua"] .en-text {
  display: none !important;
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(197, 168, 106, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(197, 168, 106, 0.03) 0%, transparent 40%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  letter-spacing: 1px;
  font-weight: 700;
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
  border-radius: var(--border-radius);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold-hover);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(197, 168, 106, 0.05);
}

header.scrolled {
  background: rgba(11, 14, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 168, 106, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  height: 80px; /* Transition to 80px height for scrolled states */
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1420px; /* Widened boundary specifically for the header to fit all navigation items cleanly */
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  width: 380px; /* Reserve space for the majestic logo graphic */
  position: relative;
}

.logo-text {
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--primary-gold);
  text-shadow: 0 0 10px rgba(197, 168, 106, 0.2);
}

.logo-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--primary-gold);
  object-fit: cover;
  flex-shrink: 0;
  transition: var(--transition-smooth);
  box-shadow: 0 0 20px rgba(197, 168, 106, 0.35);
}

.logo-title-img {
  height: 184px; /* Doubled in size (184px vs 92px) for ultra-clear visibility! */
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.95));
  position: absolute;
  left: 84px;
  top: 50%;
  transform: translateY(-46%); /* Centered vertically with high-fidelity positioning */
  z-index: 10;
  transform-origin: left center;
}

header.scrolled .logo {
  width: 320px;
}

header.scrolled .logo-avatar {
  width: 52px;
  height: 52px;
}

header.scrolled .logo-title-img {
  height: 110px; /* Still very large and legible when scrolled! */
  left: 64px;
}

.nav-menu {
  display: flex;
  gap: 15px; /* Squeezed gap to accommodate 9 menu links beautifully */
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: 0.86rem; /* Sleek, elegant smaller typography for dense pro menu */
  font-weight: 600; /* Increased font weight to 600 for crisp, high-fidelity readability */
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
  white-space: nowrap; /* Prevents Ukrainian 'ПРО ГРУ' from breaking into two lines */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-gold-hover);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Lang Switcher */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 168, 106, 0.2);
  border-radius: 20px;
  padding: 2px;
  cursor: pointer;
  position: relative;
}

.lang-btn {
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 18px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: var(--primary-gold);
  color: var(--bg-deep);
  box-shadow: 0 2px 8px var(--gold-glow);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (BACKGROUND VIDEO & CTA)
   ========================================================================== */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh; /* Support flexible scrollable height for short screens */
  min-height: 680px; /* Bulletproof min-height to prevent tagline/header vertical clashing on laptops */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0b0e14;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(0.85) contrast(1.1);
}

/* Hero Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(to bottom, 
    rgba(11, 14, 20, 0.8) 0%, 
    rgba(11, 14, 20, 0.5) 40%, 
    rgba(11, 14, 20, 0.95) 90%, 
    var(--bg-deep) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 130px 20px 60px 20px; /* Safe padding-top of 130px to clear fixed header (110px) on centered alignments */
  margin-top: 0; /* Reset margin-top to use padding instead */
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary-gold);
  margin-bottom: 16px;
  animation: fadeInUp 1s ease;
}

.hero-title-logo {
  margin: 0 auto 30px auto;
  width: 95%;
  max-width: 680px; /* Majestic large graphic game logo */
  animation: fadeInUp 1.2s ease;
  display: flex;
  justify-content: center;
  transition: var(--transition-smooth);
}

.hero-title-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 25px rgba(0, 0, 0, 0.95));
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
  animation: fadeInUp 1.2s ease;
  background: linear-gradient(180deg, #fff 0%, #d5bf8f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeInUp 1.4s ease;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Hero Action Controls */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1.6s ease;
}

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--primary-gold);
  color: var(--bg-deep);
  border: 1px solid var(--primary-gold);
  box-shadow: 0 4px 15px rgba(197, 168, 106, 0.3);
}

.btn-primary:hover {
  background: var(--primary-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 168, 106, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-gold);
  transform: translateY(-2px);
}

.btn-steam {
  background: var(--steam-gradient);
  color: #fff;
  border: 1px solid #2a475e;
}

.btn-steam:hover {
  background: linear-gradient(135deg, #163654 0%, #20242e 100%);
  border-color: #3d6c8f;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(22, 54, 84, 0.5);
}

.btn-discord {
  background: var(--discord-brand);
  color: #fff;
  border: 1px solid var(--discord-brand);
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

/* Hero Audio Controls Container */
.hero-audio-controls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(11, 14, 20, 0.7);
  border: 1px solid rgba(197, 168, 106, 0.35);
  border-radius: 30px;
  padding: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.hero-audio-controls:hover {
  border-color: var(--primary-gold);
  box-shadow: 0 8px 32px rgba(197, 168, 106, 0.15);
}

/* Audio Toggle Button */
.hero-mute-control {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 168, 106, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hero-mute-control:hover {
  background: rgba(197, 168, 106, 0.2);
  border-color: var(--primary-gold);
  transform: scale(1.05);
}

.hero-mute-control svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Volume Slider Wrapper */
.hero-volume-slider-wrapper {
  width: 0;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  padding-right: 0;
}

/* Slide out volume slider on hover of the controls container */
.hero-audio-controls:hover .hero-volume-slider-wrapper,
.hero-audio-controls:focus-within .hero-volume-slider-wrapper {
  width: 90px;
  padding-right: 10px;
}

/* Custom Styled Range Input */
.hero-volume-slider {
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hero-volume-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
}

.hero-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: var(--primary-gold);
  cursor: pointer;
  margin-top: -4px; /* Center thumb vertically */
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px rgba(197, 168, 106, 0.5);
}

.hero-volume-slider::-webkit-slider-thumb:hover {
  background: var(--primary-gold-hover);
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(197, 168, 106, 0.8);
}

.hero-volume-slider::-moz-range-thumb {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: var(--primary-gold);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 10px rgba(197, 168, 106, 0.5);
}

.hero-volume-slider::-moz-range-thumb:hover {
  background: var(--primary-gold-hover);
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(197, 168, 106, 0.8);
}

/* Mobile Media Query expansion */
@media (max-width: 768px) {
  .hero-audio-controls {
    bottom: 12px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .hero-audio-controls.expanded .hero-volume-slider-wrapper {
    width: 90px;
    padding-right: 10px;
  }
}


/* ==========================================================================
   ABOUT GAME SECTION
   ========================================================================== */
#about {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-gold);
  letter-spacing: 3px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-gold);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* About Layout: Text on Left, Capsule on Right */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-lead {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
  border-left: 4px solid var(--primary-gold);
  padding-left: 20px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon-wrapper {
  background: rgba(197, 168, 106, 0.1);
  border: 1px solid rgba(197, 168, 106, 0.3);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-gold);
}

.feature-info h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.feature-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-visual {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(197, 168, 106, 0.15);
  transition: var(--transition-smooth);
}

.about-visual:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 168, 106, 0.3);
  box-shadow: 0 30px 50px rgba(197, 168, 106, 0.08);
}

.about-visual img {
  width: 100%;
  height: auto;
  transition: transform 0.8s ease;
}

.about-visual:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   GAME MECHANICS (COSSACK BOARD & PIECES)
   ========================================================================== */
#mechanics {
  padding: 100px 0;
  background: rgba(19, 23, 34, 0.4);
  border-top: 1px solid rgba(197, 168, 106, 0.05);
  border-bottom: 1px solid rgba(197, 168, 106, 0.05);
}

.mechanics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.mechanics-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mechanics-detail-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.mechanics-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gold);
}

.mechanics-detail-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(197, 168, 106, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mechanics-detail-card h3 {
  font-size: 1.4rem;
  color: var(--primary-gold-hover);
}

.mechanics-detail-card p {
  color: var(--text-muted);
}

.mechanics-visuals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mechanics-img-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(197, 168, 106, 0.15);
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  aspect-ratio: 4/5;
  background: #000;
}

.mechanics-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.mechanics-img-wrapper:hover img {
  transform: scale(1.05);
}

.mechanics-img-wrapper .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-family: var(--font-header);
  font-size: 0.85rem;
  text-align: center;
}

/* ==========================================================================
   TRAILER & GAMEPLAY SHOWCASE
   ========================================================================== */
#gameplay {
  padding: 120px 0;
}

.video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(197, 168, 106, 0.2);
  background: #000;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   SCREENSHOT GALLERY
   ========================================================================== */
#gallery {
  padding: 100px 0;
  background: rgba(11, 14, 20, 0.7);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 14, 20, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(2px);
}

.gallery-icon-zoom {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-gold);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-gold);
  box-shadow: 0 15px 30px rgba(197, 168, 106, 0.15);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-icon-zoom {
  transform: translateY(0);
}

/* ==========================================================================
   STEAM STORE BANNER WIDGET
   ========================================================================== */
#steam-store {
  padding: 80px 0 120px 0;
}

.steam-widget {
  background: linear-gradient(135deg, rgba(16, 24, 34, 0.9) 0%, rgba(23, 26, 33, 0.95) 100%);
  border: 1px solid rgba(197, 168, 106, 0.25);
  border-radius: var(--border-radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.steam-widget::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(197, 168, 106, 0.05) 0%, transparent 60%);
  transform: rotate(30deg);
  pointer-events: none;
}

.steam-widget-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steam-widget-title {
  font-size: 2.2rem;
  text-transform: uppercase;
  color: #fff;
}

.steam-widget-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.steam-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.steam-widget-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  background: #0c0f16;
}

.steam-widget-card img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.steam-widget-card:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
#newsletter {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #131722 100%);
  border-top: 1px solid rgba(197, 168, 106, 0.05);
  text-align: center;
}

.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  background: rgba(11, 14, 20, 0.6);
  border: 1px solid rgba(197, 168, 106, 0.2);
  border-radius: var(--border-radius);
  padding: 6px;
}

.newsletter-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

/* Form success state styling */
.form-success-msg {
  color: #2ecc71;
  font-weight: 500;
  display: none;
  font-size: 1rem;
  margin-top: 10px;
}

.cooperation-box {
  background: var(--bg-card);
  border: 2px solid rgba(197, 168, 106, 0.15);
  border-radius: var(--border-radius);
  padding: 50px;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(197, 168, 106, 0.05);
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #07090d;
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  height: auto;
  min-height: 120px; /* Matches the 120px logo title height to prevent overlaps */
}

.footer-logo-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--primary-gold);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(197, 168, 106, 0.25);
}

.footer-logo-title-img {
  height: 120px; /* Exactly 120px as requested */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

/* ==========================================================================
   13. PREMIUM REAL-TIME COUNTER WIDGET
   ========================================================================== */
.site-counter-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 30px auto 20px auto; /* 30px separation, centered horizontally */
  padding: 6px 18px;
  background: rgba(197, 168, 106, 0.03);
  border: 1px solid rgba(197, 168, 106, 0.15);
  border-radius: 30px;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.site-counter-centered:hover {
  border-color: rgba(197, 168, 106, 0.35);
  background: rgba(197, 168, 106, 0.06);
  box-shadow: 0 4px 20px rgba(197, 168, 106, 0.15);
  transform: translateY(-1px);
}

.site-counter-centered .counter-value {
  color: var(--primary-gold);
  text-shadow: 0 0 8px rgba(197, 168, 106, 0.35);
  font-weight: 700;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-title {
  font-size: 1rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--primary-gold);
  transform: translateX(3px);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(19, 23, 34, 0.9) 0%, rgba(7, 9, 13, 0.95) 100%);
  border: 2px solid rgba(197, 168, 106, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  overflow: hidden;
}

/* Inner decorative ring to mimic a medieval coin/seal */
.social-icon::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 50%;
  border: 1px dashed rgba(197, 168, 106, 0.2);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  z-index: 2;
}

.social-icon:hover {
  background: linear-gradient(135deg, rgba(27, 32, 48, 0.95) 0%, rgba(19, 23, 34, 0.95) 100%);
  color: #fff;
  border-color: var(--primary-gold-hover);
  transform: translateY(-5px) scale(1.08);
  box-shadow: 
    0 0 20px rgba(197, 168, 106, 0.45), 
    inset 0 0 12px rgba(197, 168, 106, 0.25), 
    0 10px 20px rgba(0, 0, 0, 0.6);
}

.social-icon:hover::before {
  border-color: rgba(197, 168, 106, 0.45);
  border-style: solid;
  transform: scale(0.95);
}

.social-icon:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(197, 168, 106, 0.8)) drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Premium styled mail connection link */
.footer-email-link {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  width: fit-content;
  margin-top: 4px;
}

.footer-email-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary-gold);
  fill: currentColor;
  transition: var(--transition-smooth);
}

.footer-email-link:hover {
  color: var(--primary-gold-hover);
  text-shadow: 0 0 10px rgba(197, 168, 106, 0.35);
  transform: translateX(4px);
}

.footer-email-link:hover svg {
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(197, 168, 106, 0.8));
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ==========================================================================
   LIGHTBOX MODAL VISUALS
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 14, 20, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 85vw;
  max-height: 80vh;
  border-radius: var(--border-radius);
  border: 1px solid rgba(197, 168, 106, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(11, 14, 20, 0.6);
  border: 1px solid rgba(197, 168, 106, 0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 14, 20, 0.6);
  border: 1px solid rgba(197, 168, 106, 0.3);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.2rem;
  user-select: none;
}

.lightbox-nav:hover {
  background: var(--primary-gold);
  color: var(--bg-deep);
  border-color: var(--primary-gold);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1220px) {
  .logo {
    width: 280px; /* Shrink logo container width from 380px to prevent clashing with menu links */
  }
  .logo-title-img {
    height: 140px; /* Scale down absolute hanging logo graphic slightly */
    left: 76px;
  }
  header.scrolled .logo {
    width: 250px;
  }
  header.scrolled .logo-title-img {
    height: 90px;
    left: 60px;
  }
  .nav-menu {
    gap: 12px; /* Squeeze menu gaps on medium desktop screen sizes */
  }
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mechanics-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steam-widget {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  :root {
    --header-height: 70px;
  }
  
  .logo {
    width: auto;
  }

  .logo-avatar {
    width: 44px;
    height: 44px;
    box-shadow: 0 0 10px rgba(197, 168, 106, 0.15);
  }
  
  .logo-title-img {
    position: static;
    transform: none;
    height: 56px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  }
  
  header.scrolled .logo-avatar {
    width: 38px;
    height: 38px;
  }
  
  header.scrolled .logo-title-img {
    height: 46px;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .hero-title-logo {
    max-width: 500px;
    margin-bottom: 22px;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(11, 14, 20, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 60px 40px;
    gap: 36px;
    transition: var(--transition-smooth);
    border-top: 1px solid rgba(197, 168, 106, 0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title-logo {
    max-width: 360px;
    margin-bottom: 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .steam-button-group {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .hero-mute-control {
    bottom: 20px;
    right: 20px;
  }
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   PIECES & VICTORY CARDS LAYOUT
   ========================================================================== */
.pieces-container {
  margin-top: 50px;
}

.pieces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

@media (max-width: 992px) {
  .pieces-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pieces-grid {
    grid-template-columns: 1fr;
  }
}

.piece-card {
  background: var(--bg-card);
  border: 1px solid rgba(197, 168, 106, 0.15);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.piece-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(197, 168, 106, 0.08);
}

.piece-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, transparent 50%, rgba(197, 168, 106, 0.1) 50%);
}

.piece-avatar {
  background: rgba(197, 168, 106, 0.1);
  border: 1px solid rgba(197, 168, 106, 0.3);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--primary-gold);
}

.piece-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.piece-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.piece-name {
  font-family: var(--font-header);
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 1px;
}

.piece-qty {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(197, 168, 106, 0.2);
  color: var(--primary-gold-hover);
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  border: 1px solid rgba(197, 168, 106, 0.25);
}

.piece-rule {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Victory grid and cards */
.victory-container {
  margin-top: 60px;
}

.victory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 992px) {
  .victory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .victory-grid {
    grid-template-columns: 1fr;
  }
}

.victory-card {
  background: rgba(19, 23, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

.victory-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 168, 106, 0.2);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.victory-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: inline-block;
  text-shadow: 0 0 10px rgba(197, 168, 106, 0.1);
}

.victory-card h4 {
  font-family: var(--font-header);
  font-size: 1.1rem;
  color: var(--primary-gold-hover);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.victory-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.mechanics-note-banner {
  background: linear-gradient(90deg, rgba(197, 168, 106, 0.05) 0%, rgba(19, 23, 34, 0.6) 100%);
  border: 1px solid rgba(197, 168, 106, 0.2);
  border-radius: var(--border-radius);
  padding: 20px 30px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.mechanics-note-icon {
  font-size: 1.8rem;
  color: var(--primary-gold);
}

.mechanics-note-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Ambient Particle Background Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0; /* Stays comfortably behind text, content wrappers, and overlays */
  pointer-events: none;
  background: transparent;
  transform: translate3d(0, 0, 0); /* Force GPU acceleration */
}

/* ==========================================================================
   INTERACTIVE TACTICAL SANDBOX GRID (TRAINING FIELD)
   ========================================================================== */
.sandbox-container {
  margin-top: 80px;
  background: rgba(19, 23, 34, 0.7);
  border: 1px solid rgba(197, 168, 106, 0.2);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sandbox-header-box {
  text-align: center;
  margin-bottom: 36px;
}

.sandbox-title {
  font-size: 1.8rem;
  color: #fff;
  font-family: var(--font-header);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.sandbox-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.sandbox-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Outer layout including A-G and 1-7 headers */
.sandbox-board-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.sandbox-board-headers-row {
  display: grid;
  grid-template-columns: 30px repeat(7, 1fr) 30px;
  width: 100%;
  text-align: center;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-gold);
  padding: 8px 0;
  height: 30px;
  align-items: center;
}

.sandbox-board-middle-row {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  width: 100%;
  align-items: stretch;
}

.sandbox-board-sidebar-nums {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  text-align: center;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-gold);
}

.sandbox-board-sidebar-nums div {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sandbox-board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  background: var(--bg-deep);
  border: 3px solid var(--primary-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  align-self: center;
}

/* Chess cell coordinates styling */
.sandbox-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: var(--transition-smooth);
}

/* Alternating grid colors */
.sandbox-cell.cell-light {
  background-color: #171b26;
  border: 1px solid rgba(197, 168, 106, 0.05);
}

.sandbox-cell.cell-dark {
  background-color: #0f121a;
  border: 1px solid rgba(197, 168, 106, 0.05);
}

/* Base tiles for Player 1 (starting line - row index 6) */
.sandbox-cell.cell-base-p1 {
  background: radial-gradient(circle, rgba(168, 50, 50, 0.15) 0%, transparent 80%);
}
/* Base tiles for Player 2 (starting line - row index 0) */
.sandbox-cell.cell-base-p2 {
  background: radial-gradient(circle, rgba(59, 89, 152, 0.15) 0%, transparent 80%);
}

/* Glowing valid movement indicators */
.sandbox-cell.valid-move {
  cursor: pointer;
  background-color: rgba(197, 168, 106, 0.05);
  transition: var(--transition-smooth);
}

/* Glowing gold frame layered ON TOP of the piece */
.sandbox-cell.valid-move::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-gold);
  background: rgba(197, 168, 106, 0.18);
  border-radius: 4px;
  box-shadow: inset 0 0 10px rgba(197, 168, 106, 0.5);
  z-index: 9; /* Layered on top of the piece */
  pointer-events: none;
  animation: glowPulse 2s infinite ease-in-out;
}

/* Centered gold dot layered ON TOP of the piece */
.sandbox-cell.valid-move::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 0 12px var(--primary-gold), 0 0 4px var(--primary-gold);
  z-index: 10; /* Layered on top of the piece and frame */
  pointer-events: none;
}

.sandbox-cell.valid-move:hover::before {
  background: rgba(197, 168, 106, 0.3);
  box-shadow: inset 0 0 16px rgba(197, 168, 106, 0.8), 0 0 8px rgba(197, 168, 106, 0.4);
}

/* Interactive piece layout inside cells */
.sandbox-piece {
  font-size: 2.2rem;
  user-select: none;
  cursor: grab;
  z-index: 5;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  animation: floatBounce 3s infinite ease-in-out;
}

.sandbox-piece:active {
  cursor: grabbing;
}

/* Selector buttons for pieces */
.sandbox-control-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.control-panel-title {
  font-family: var(--font-header);
  font-size: 1.15rem;
  color: var(--primary-gold);
  margin-bottom: 16px;
  border-left: 3px solid var(--primary-gold);
  padding-left: 12px;
}

.sandbox-selector-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Custom mini scrollbar for lists */
.sandbox-selector-list::-webkit-scrollbar {
  width: 5px;
}
.sandbox-selector-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
}
.sandbox-selector-list::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: 3px;
}

.sandbox-selector-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(197, 168, 106, 0.15);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  color: var(--text-muted);
}

.sandbox-selector-btn:hover {
  background: rgba(197, 168, 106, 0.06);
  border-color: rgba(197, 168, 106, 0.4);
  color: #fff;
  transform: translateX(4px);
}

.sandbox-selector-btn.active {
  background: rgba(197, 168, 106, 0.12);
  border-color: var(--primary-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(197, 168, 106, 0.15);
}

.selector-icon {
  font-size: 1.6rem;
  background: rgba(197, 168, 106, 0.1);
  border: 1.5px solid rgba(197, 168, 106, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.sandbox-selector-btn.active .selector-icon {
  background: var(--primary-gold);
  color: var(--bg-deep);
  border-color: var(--primary-gold);
}

.selector-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.selector-name {
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.selector-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@keyframes glowPulse {
  0% { box-shadow: inset 0 0 10px rgba(197, 168, 106, 0.3), 0 0 2px rgba(197, 168, 106, 0.1); }
  50% { box-shadow: inset 0 0 16px rgba(197, 168, 106, 0.6), 0 0 8px rgba(197, 168, 106, 0.3); }
  100% { box-shadow: inset 0 0 10px rgba(197, 168, 106, 0.3), 0 0 2px rgba(197, 168, 106, 0.1); }
}

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

/* ==========================================================================
   CRITIC REVIEWS & STEAM TAGS BADGES
   ========================================================================== */
#reviews {
  padding: 100px 0;
  background: rgba(11, 14, 20, 0.4);
  border-top: 1px solid rgba(197, 168, 106, 0.05);
}

/* Steam Tag Badges Styling */
.steam-tags-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  padding: 15px 30px;
  background: rgba(19, 23, 34, 0.5);
  border: 1px solid rgba(197, 168, 106, 0.1);
  border-radius: var(--border-radius);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.tags-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-gold);
}

.steam-tags-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.steam-tag-badge {
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 168, 106, 0.2);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 14px;
  transition: var(--transition-smooth);
}

.steam-tag-badge:hover {
  background: rgba(197, 168, 106, 0.12);
  color: #fff;
  border-color: var(--primary-gold);
  box-shadow: 0 0 10px var(--gold-glow);
  transform: translateY(-1px);
}

/* Steam Reviews Layout Styling */
.steam-review-card {
  background: #121a22; /* Authentic Steam slate color */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: cardFadeIn 0.6s ease;
  min-height: 280px;
}

.steam-review-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-gold);
  box-shadow: 0 10px 30px rgba(197,168,106,0.1);
  background: #16202a;
}

.steam-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 12px;
}

.steam-author-avatar {
  background: rgba(102, 192, 244, 0.1);
  border: 1px solid rgba(102, 192, 244, 0.3);
  border-radius: 4px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.steam-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.steam-author-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #c4c4c4;
}

.steam-play-hours {
  font-size: 0.8rem;
  color: #a3a3a3;
  font-weight: 500;
}

.steam-review-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steam-recommend-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(102, 192, 244, 0.1);
  border: 1.5px solid rgba(102, 192, 244, 0.35);
  padding: 4px 10px;
  border-radius: 3px;
  width: fit-content;
  color: #66c0f4;
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.steam-recommend-badge.not-recommended {
  background: rgba(168, 50, 50, 0.1);
  border-color: rgba(168, 50, 50, 0.35);
  color: #ff5555;
}

.steam-review-text {
  color: #acb2b8;
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: normal;
}

.steam-review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
  font-size: 0.75rem;
  color: #6a6a6a;
}

.steam-review-tag {
  color: var(--primary-gold-hover);
  font-weight: 500;
}

/* Modal Submission Window Overlay */
.review-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 14, 20, 0.85);
  z-index: 2000;
  display: none; /* Controlled by JS active class */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.review-modal-content {
  background: linear-gradient(135deg, #131722 0%, #0b0e14 100%);
  border: 1px solid rgba(197, 168, 106, 0.3);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

.review-modal-overlay.active .review-modal-content {
  transform: scale(1);
}

.review-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(197, 168, 106, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.review-modal-close:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: rotate(90deg);
}

.review-modal-title {
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 8px;
}

.review-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Modal Review Form controls */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-gold-hover);
}

.review-form-group input[type="text"], .review-form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 168, 106, 0.2);
  border-radius: 6px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.review-form-group input[type="text"]:focus, .review-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 10px rgba(197, 168, 106, 0.2);
  background: rgba(197, 168, 106, 0.02);
}

/* Thumbs toggles styles */
.recommend-toggle-container {
  display: flex;
  gap: 12px;
}

.recommend-toggle-btn {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 168, 106, 0.15);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 10px 0;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.recommend-toggle-btn:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.recommend-toggle-btn.active[data-recommend="yes"] {
  background: rgba(102, 192, 244, 0.15);
  border-color: #66c0f4;
  color: #66c0f4;
  box-shadow: 0 0 10px rgba(102, 192, 244, 0.15);
}

.recommend-toggle-btn.active[data-recommend="no"] {
  background: rgba(168, 50, 50, 0.15);
  border-color: #ff5555;
  color: #ff5555;
  box-shadow: 0 0 10px rgba(168, 50, 50, 0.15);
}

/* Custom hours range slider styles */
.review-hours-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.review-hours-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-gold);
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.1s ease;
  box-shadow: 0 0 8px rgba(197, 168, 106, 0.6);
}

.review-hours-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.highlight-val {
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Entry Animation for Card */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive adjustments for Sandbox */
@media (max-width: 992px) {
  .sandbox-grid-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sandbox-board-outer {
    order: 1;
  }
  .sandbox-control-panel {
    order: 2;
  }
}

@media (max-width: 768px) {
  #hero {
    min-height: 70vh;
    min-height: 480px;
  }
  .hero-content {
    padding: 90px 16px 100px 16px; /* Increased bottom padding to 100px to push CTA buttons higher */
  }
  .cooperation-box {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .sandbox-container {
    padding: 20px;
  }
  .sandbox-piece {
    font-size: 1.6rem;
  }
  .newsletter-form {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 16px;
  }
  .newsletter-input {
    background: rgba(11, 14, 20, 0.6);
    border: 1px solid rgba(197, 168, 106, 0.2);
    border-radius: var(--border-radius);
    width: 100%;
    padding: 14px 18px;
  }
}

/* Premium piece highlights for sandbox start board */
.sandbox-piece.p1-piece {
  filter: drop-shadow(0 0 6px rgba(197, 168, 106, 0.45)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  cursor: pointer;
  transition: var(--transition-smooth);
}
.sandbox-piece.p1-piece:hover {
  filter: drop-shadow(0 0 12px rgba(197, 168, 106, 0.8)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  transform: scale(1.1);
}
.sandbox-piece.p2-piece {
  filter: drop-shadow(0 0 6px rgba(168, 50, 50, 0.45)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  opacity: 0.85;
  cursor: not-allowed;
}
.sandbox-piece.selected {
  transform: scale(1.2) translateY(-4px) !important;
  filter: drop-shadow(0 0 16px rgba(197, 168, 106, 0.95)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)) !important;
  animation: floatBounce 1.5s infinite ease-in-out !important;
  opacity: 1 !important;
}

/* Fading other pieces when a selection is active for extreme movement clarity */
.sandbox-board.has-selection .sandbox-piece {
  opacity: 0.12;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.05));
  pointer-events: none; /* Prevent clicking other pieces when one is selected */
}
.sandbox-board.has-selection .sandbox-piece.selected {
  opacity: 1 !important;
  pointer-events: auto; /* Keep the selected piece clickable to deselect */
}

/* ==========================================================================
   12. ADMIN MODERATION PANEL STYLES
   ========================================================================== */
#btn-admin-login {
  cursor: pointer;
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

#btn-admin-login:hover {
  opacity: 0.8 !important;
}

.admin-moderation-panel {
  background: rgba(15, 20, 28, 0.95);
  border: 2px solid var(--primary-gold);
  border-radius: 8px;
  padding: 24px;
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(197, 168, 106, 0.15);
  animation: cardFadeIn 0.5s ease;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(197, 168, 106, 0.2);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.admin-panel-header h4 {
  font-family: var(--font-header);
  color: var(--primary-gold);
  font-size: 1.2rem;
  margin: 0;
  text-shadow: 0 0 10px rgba(197, 168, 106, 0.3);
}

.btn-admin-logout {
  background: rgba(168, 50, 50, 0.2);
  border: 1px solid rgb(168, 50, 50);
  color: #ff6b6b;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-header);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-admin-logout:hover {
  background: rgba(168, 50, 50, 0.4);
  box-shadow: 0 0 10px rgba(168, 50, 50, 0.3);
}

.admin-panel-desc {
  font-size: 0.9rem;
  color: #a0a5b0;
  margin-bottom: 20px;
}

.admin-pending-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.admin-pending-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.admin-pending-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(197, 168, 106, 0.3);
}

.admin-pending-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.admin-pending-author {
  font-weight: 600;
  color: #e5c88a;
}

.admin-pending-hours {
  color: #8a909d;
}

.admin-pending-rec {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-pending-rec.yes {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.admin-pending-rec.no {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.admin-pending-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #e1e3e6;
  font-style: italic;
}

.admin-pending-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px;
}

.btn-action-approve {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid #2ecc71;
  color: #2ecc71;
  padding: 6px 16px;
  border-radius: 4px;
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-action-approve:hover {
  background: #2ecc71;
  color: #0b0e14;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

.btn-action-reject {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid #e74c3c;
  color: #e74c3c;
  padding: 6px 16px;
  border-radius: 4px;
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-action-reject:hover {
  background: #e74c3c;
  color: #0b0e14;
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

.admin-empty-queue {
  text-align: center;
  color: #8a909d;
  font-style: italic;
  padding: 20px 0;
}

/* ==========================================================================
   14. DYNAMIC NEWS & DEVLOGS SECTION
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: var(--bg-card);
  border: 1px solid rgba(197, 168, 106, 0.15);
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  animation: cardFadeIn 0.6s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-gold);
  box-shadow: 0 10px 30px rgba(197, 168, 106, 0.1);
  background: var(--bg-card-hover);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.news-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(197, 168, 106, 0.15);
  color: var(--primary-gold-hover);
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  border: 1px solid rgba(197, 168, 106, 0.25);
  font-family: var(--font-header);
}

.news-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.news-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card-title {
  font-family: var(--font-header);
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.3;
}

.news-card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   15. ADMIN TABS & NEWS MANAGER PANEL STYLES
   ========================================================================== */
.admin-tab-btn {
  transition: var(--transition-smooth);
}

.admin-tab-btn:hover {
  background: rgba(197, 168, 106, 0.08) !important;
  border-color: var(--primary-gold) !important;
  color: #fff !important;
}

.admin-tab-btn.active {
  background: rgba(197, 168, 106, 0.15) !important;
  border-color: var(--primary-gold) !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(197, 168, 106, 0.1);
}

#admin-news-form input:focus, #admin-news-form textarea:focus {
  outline: none;
  border-color: var(--primary-gold) !important;
  box-shadow: 0 0 8px rgba(197, 168, 106, 0.25);
  background: rgba(197, 168, 106, 0.03) !important;
}

.admin-news-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.admin-news-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(197, 168, 106, 0.2);
}

.admin-news-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-news-name {
  font-weight: 600;
  color: #e5c88a;
  font-size: 0.95rem;
}

.admin-news-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

.btn-action-delete {
  background: rgba(168, 50, 50, 0.15);
  border: 1px solid #e74c3c;
  color: #e74c3c;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-action-delete:hover {
  background: #e74c3c;
  color: #0b0e14;
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

.news-card-img-wrapper {
  width: calc(100% + 48px);
  height: 180px;
  overflow: hidden;
  border-radius: calc(var(--border-radius) - 4px) calc(var(--border-radius) - 4px) 0 0;
  margin: -24px -24px 16px -24px; /* Pulls it flush with the top and sides of the card padding! */
  border-bottom: 1px solid rgba(197, 168, 106, 0.15);
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.news-card:hover .news-card-img {
  transform: scale(1.05);
}

.admin-news-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-subscriber-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.admin-subscriber-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(197, 168, 106, 0.2);
}

.admin-subscriber-email {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

.admin-subscriber-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   16. PREMIUM NEWS READER MODAL DIALOG STYLES
   ========================================================================== */
.news-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 14, 20, 0.92);
  z-index: 2000;
  display: none; /* Controlled by JS active class */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.news-modal-content {
  background: linear-gradient(135deg, #131722 0%, #0b0e14 100%);
  border: 2px solid var(--primary-gold);
  border-radius: var(--border-radius);
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(197, 168, 106, 0.25);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.news-modal-overlay.active .news-modal-content {
  transform: scale(1);
}

.news-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(11, 14, 20, 0.85);
  border: 2px solid rgba(197, 168, 106, 0.3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 2100;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.news-modal-close:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px rgba(168, 50, 50, 0.6);
}

/* Modal Inner Body Elements */
.news-reader-banner-wrapper {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid var(--primary-gold);
}

.news-reader-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-reader-content-box {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-reader-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.news-reader-tag {
  font-weight: 700;
  background: rgba(197, 168, 106, 0.15);
  color: var(--primary-gold-hover);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(197, 168, 106, 0.3);
  text-transform: uppercase;
  font-family: var(--font-header);
}

.news-reader-date {
  color: var(--text-muted);
}

.news-reader-title {
  font-family: var(--font-header);
  font-size: 2rem;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.news-reader-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(197,168,106,0.3) 0%, rgba(197,168,106,0) 100%);
  width: 100%;
  margin: 10px 0;
}

.news-reader-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-line;
}

/* Make news cards look clickable */
.news-card {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.news-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 15px 35px rgba(197, 168, 106, 0.18), 0 0 20px rgba(197, 168, 106, 0.1);
}

/* Custom styles for card interactive indicator */
.news-card-readmore {
  margin-top: 15px;
  font-size: 0.85rem;
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.news-card:hover .news-card-readmore {
  color: var(--primary-gold-hover);
  transform: translateX(5px);
}

