* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body { 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  background: #ffffff;
  min-height: 100vh;
  padding: 15px;
}

.header {
  max-width: 1400px;
  margin: 0 auto 30px;
  text-align: center;
  position: relative;
}
/* Game poster styling */
.game-poster {
  width: 100%;
  height: 300px;              /* Fixed height for uniform cards */
  object-fit: cover;          /* Crop image nicely without distortion */
  border-radius: 10px;        /* Smooth rounded corners */
  margin-bottom: 10px;        /* Space below image before title */
  border: 2px solid #e0e7ff;  /* Match your existing card border tone */
  background-color: #f8f9fa;  /* Light background for empty image cases */
  display: block;
}


.telegram-link {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #0088cc;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,136,204,0.3);
  font-size: 14px;
}

.telegram-link:hover {
  background: #006699;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,136,204,0.4);
}

.telegram-icon {
  width: 20px;
  height: 20px;
  fill: white;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 30px 20px 20px;
}

.logo-section img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.logo-section h1 {
  font-size: 32px;
  color: #466ef1;
  font-weight: 700;
  font-family: fantasy;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.search-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  border: 2px solid #e0e7ff;
}

.search-bar {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  border: 2px solid #667eea;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: white;
}

.search-bar:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
}

.filters-section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  border: 2px solid #e0e7ff;
}

.filters-title {
  font-size: 20px;
  color: #466ef1;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.filter-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.filter-category {
  background: white;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e0e7ff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.filter-category h3 {
  font-size: 16px;
  color: #466ef1;
  margin-bottom: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
  position: relative;
  word-wrap: break-word;
  word-break: break-word;
}

.checkbox-label:hover {
  background-color: #f8f9fa;
}

.filter-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #667eea;
  border-radius: 4px;
  margin-right: 10px;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.filter-checkbox:checked + .checkbox-custom {
  background-color: #667eea;
  border-color: #667eea;
}

.filter-checkbox:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: 14px;
  color: #333;
  user-select: none;
  word-wrap: break-word;
  word-break: break-word;
  flex: 1;
  line-height: 1.4;
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.range-inputs input {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  border: 2px solid #667eea;
  border-radius: 6px;
  background: white;
  transition: all 0.3s ease;
}

.range-inputs input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
}

.range-separator {
  color: #667eea;
  font-weight: 600;
  font-size: 14px;
}

.clear-btn {
  width: 100%;
  padding: 12px 20px;
  background: #466ef1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-btn:hover {
  background: #3859e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.clear-btn:active {
  transform: translateY(0);
}

.results { 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card { 
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.1);
  transition: all 0.3s ease;
  border: 2px solid #e0e7ff;
  border-top: 4px solid #3859e6;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102,126,234,0.2);
  border-color: #466ef1;
}

.card h3 { 
  margin-bottom: 15px;
  font-size: 18px;
  color: #466ef1;
  font-weight: 700;
}

.card p { 
  margin: 8px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.card p b {
  color: #333;
  font-weight: 600;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 13px;
  margin-left: 5px;
}

.level-1 {
  background-color: #d4edda;
  color: #155724;
}

.level-2 {
  background-color: #d1ecf1;
  color: #0c5460;
}

.level-3 {
  background-color: #fff3cd;
  color: #856404;
}

.level-4 {
  background-color: #f8d7da;
  color: #721c24;
}

.free-zone {
  background-color: #d4edda;
  color: #155724;
}

.unavailable-zone {
  background-color: #f8d7da;
  color: #721c24;
}

.no-queue {
  background-color: #d4edda;
  color: #155724;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102,126,234,0.2);
  border-color: #3859e6;
}

/* Highlight animation for direct links */
.highlight-card {
  animation: highlight-pulse 1.5s ease-in-out;
  border-color: #ffc107 !important;
  border-width: 3px !important;
}
.card p b {
  color: #333;
  font-weight: 600;
}

.price-box {
  background: linear-gradient(to right, #0a0f2c, #3859e6);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: auto;
  display: block;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}
.z2 {
  color: #a2b1e0;
}

.z3 {
  color: #a2b4f1;
}


@keyframes highlight-pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(102,126,234,0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.8);
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .header {
    margin-bottom: 20px;
  }
  
  .telegram-link {
    position: static;
    margin: 0 auto 20px;
    display: inline-flex;
    font-size: 13px;
    padding: 8px 16px;
  }
  
  .telegram-icon {
    width: 18px;
    height: 18px;
  }
  
  .logo-section {
    padding: 20px 10px 15px;
  }
  
  .logo-section img {
    width: 60px;
    height: 60px;
  }
  
  .logo-section h1 {
    font-size: 24px;
  }
  
  .search-section {
    padding: 15px;
  }
  
  .search-bar {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .filters-section {
    padding: 15px;
  }

  .filter-group {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .filters-title {
    font-size: 18px;
  }
  
  .results {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card {
    padding: 15px;
  }
  
  .card h3 {
    font-size: 16px;
  }
  
  .card p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .logo-section h1 {
    font-size: 20px;
  }
  
  .logo-section img {
    width: 50px;
    height: 50px;
  }
  
  .telegram-link span {
    display: none;
  }
  
  .telegram-link {
    padding: 8px;
    border-radius: 50%;
  }

  .filter-category h3 {
    font-size: 14px;
  }

  .checkbox-text {
    font-size: 13px;
  }
}