* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body {
  background: #0a0b12;
  background-image:
    radial-gradient(ellipse at 60% 0%, #1a1314 0%, #0a0b12 100%),
    linear-gradient(120deg, #0a0b12 0%, #241818 100%);
  color: #f8fafd;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 16px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

#bg-dots-canvas {
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px) brightness(0.7) contrast(1.1);
}

#main-content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* === HEADER === */
.clean-header {
  background: rgba(16,18,26,0.98);
  border-bottom: 2.5px solid #ff3333;
  box-shadow: 0 4px 32px #ff333377, 0 2px 8px #000a;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.clean-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 74px;
  padding: 0 40px;
  justify-content: space-between;
  gap: 20px;
}

.clean-header-logo-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.clean-logo {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  background: #181c24;
  box-shadow: 0 2px 8px rgba(255, 51, 51, 0.2);
  object-fit: contain;
  transition: box-shadow 0.2s, transform 0.2s;
}

.clean-logo:hover {
  box-shadow: 0 2px 12px rgba(255, 51, 51, 0.3);
  transform: scale(1.05);
}

.clean-header-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg,#ff3333 0%,#ff6666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.clean-header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.clean-nav-link {
  color: #b0b8c6;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.clean-nav-link:hover {
  color: #ff3333;
}

.clean-nav-icon {
  font-size: 1.2em;
}

/* === CIKO-STYLE CASINO CARDS === */
.ciko-filters {
  display: flex;
  gap: 16px;
  max-width: 1100px;
  margin: 30px auto 40px;
  padding: 20px 30px;
  background: rgba(24, 28, 36, 0.25);
  border-radius: 20px;
  border: 1px solid rgba(255, 51, 51, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  justify-content: center;
  backdrop-filter: blur(8px);
}

.ciko-select {
  flex: 1;
  max-width: 500px;
  padding: 14px 20px;
  background: rgba(24, 28, 36, 0.9);
  border: 1px solid rgba(255, 51, 51, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  backdrop-filter: blur(8px);
}

.ciko-select option {
  background: #181c24;
  color: #fff;
  padding: 10px;
}

.ciko-select:hover {
  border-color: rgba(255, 51, 51, 0.6);
  box-shadow: 0 0 12px rgba(255, 51, 51, 0.3);
}

.ciko-select:focus {
  border-color: rgba(255, 51, 51, 0.8);
  box-shadow: 0 0 16px rgba(255, 51, 51, 0.4);
}

.ciko-casinos-container {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ciko-casino-card {
  background: rgba(24, 28, 36, 0.25);
  border: 1px solid rgba(255, 51, 51, 0.3);
  border-radius: 18px;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.ciko-casino-card:hover {
  border-color: rgba(255, 51, 51, 0.6);
  box-shadow: 0 8px 32px rgba(255, 51, 51, 0.3);
  transform: translateY(-3px);
  background: rgba(24, 28, 36, 0.35);
}

.ciko-rank-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  background: linear-gradient(135deg, #ff3333 0%, #ff6666 100%);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(255, 51, 51, 0.4);
  border: 2px solid #0a0b12;
  z-index: 2;
}

.ciko-logo-section {
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ciko-logo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(24, 28, 36, 0.4);
  border: 1.5px solid rgba(255, 51, 51, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.ciko-casino-card:hover .ciko-logo-circle {
  border-color: rgba(255, 51, 51, 0.6);
  box-shadow: 0 4px 16px rgba(255, 51, 51, 0.3);
  transform: scale(1.05);
}

.ciko-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ciko-info-section {
  flex: 1;
  padding: 24px 16px;
}

.ciko-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(24, 28, 36, 0.25);
  padding: 20px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 51, 51, 0.25);
}

.ciko-info-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.ciko-info-label {
  color: #ff3333;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  height: 20px;
  display: flex;
  align-items: center;
}

.ciko-info-value {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(255, 51, 51, 0.4);
  line-height: 1;
  white-space: nowrap;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ciko-info-sub {
  color: #ff6666;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: capitalize;
  line-height: 1;
  height: 16px;
  display: flex;
  align-items: center;
}

.ciko-action-section {
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  min-width: 180px;
}

.ciko-tac-badge {
  background: rgba(255, 51, 51, 0.1);
  color: #ff3333;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  border: 1px solid rgba(255, 51, 51, 0.25);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ciko-play-btn {
  background: linear-gradient(135deg, #ff3333 0%, #ff6666 100%);
  color: #fff;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.15rem;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 16px rgba(255, 51, 51, 0.5);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ciko-play-btn:hover {
  background: linear-gradient(135deg, #ff4444 0%, #ff7777 100%);
  box-shadow: 0 6px 24px rgba(255, 51, 51, 0.7);
  transform: translateY(-3px) scale(1.02);
}

.ciko-play-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.ciko-more-info {
  color: #ff3333;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: underline;
}

.ciko-more-info:hover {
  color: #ff6666;
}

.ciko-details {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(24, 28, 36, 0.4);
  border-top: 1px solid rgba(255, 51, 51, 0.25);
}

.ciko-details.show {
  max-height: 500px;
}

.ciko-details-content {
  padding: 24px;
}

.ciko-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ciko-details-section h4 {
  color: #ff3333;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 51, 51, 0.3);
  padding-bottom: 8px;
}

.ciko-details-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ciko-details-section li {
  color: #b0b8c6;
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.ciko-details-section li:hover {
  color: #fff;
  padding-left: 28px;
}

.ciko-details-section li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ff3333;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
}

.license-icon {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin-top: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.payment-methods-grid img {
  width: 100%;
  height: 50px;
  object-fit: scale-down;
  background: rgba(24, 28, 36, 0.5);
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 51, 51, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}

.payment-methods-grid img:hover {
  border-color: #ff3333;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255, 51, 51, 0.3);
}

/* === LEADERBOARD STYLES === */
.leaderboard-wrapper {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.lb-header {
  background: linear-gradient(135deg, #232b38 0%, #181c24 100%);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  border: 3px solid #ff3333;
  box-shadow: 0 8px 32px rgba(255, 51, 51, 0.3);
  margin-bottom: 30px;
}

.lb-header img {
  max-width: 200px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.lb-header h1 {
  color: #ff3333;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(255, 51, 51, 0.5);
}

.subtitle {
  color: #ff6666;
  font-size: 1.3rem;
  font-weight: 700;
}

.info-box {
  background: #181c24;
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 40px;
  border: 2px solid #ff3333;
  box-shadow: 0 4px 16px rgba(255, 51, 51, 0.2);
  text-align: center;
}

.info-box p {
  color: #b0b8c6;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.join-now-button {
  background: linear-gradient(90deg, #ff3333 0%, #ff6666 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(255, 51, 51, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.join-now-button:hover {
  background: linear-gradient(90deg, #ff4444 0%, #ff7777 100%);
  box-shadow: 0 4px 16px rgba(255, 51, 51, 0.8);
  transform: translateY(-2px) scale(1.05);
}

.join-now-button:active {
  transform: translateY(0) scale(1.02);
}

.top-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.top-card {
  background: linear-gradient(135deg, #232b38 0%, #181c24 100%);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  border: 3px solid #ff3333;
  box-shadow: 0 4px 16px rgba(255, 51, 51, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.top-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(255, 51, 51, 0.4);
}

.top-card-1 {
  border-color: #ffd700;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.top-card-1:hover {
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.5);
}

.rank-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff3333;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(255, 51, 51, 0.4);
}

.top-card-1 .rank-badge {
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
  color: #181c24;
}

.top-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 20px auto 16px;
  border: 3px solid #ff3333;
  box-shadow: 0 4px 12px rgba(255, 51, 51, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: #181c24;
}

.top-card-1 .top-avatar {
  border-color: #ffd700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.top-username {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.top-label {
  color: #ff6666;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 12px;
  text-transform: uppercase;
}

.top-wager, .top-prize {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  margin-top: 4px;
}

.top-card-1 .top-prize {
  color: #ffd700;
  font-size: 1.4rem;
}

.leaderboard-table {
  background: #181c24;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #ff3333;
  box-shadow: 0 4px 16px rgba(255, 51, 51, 0.2);
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 80px 1fr 150px 150px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 51, 51, 0.2);
  transition: all 0.2s ease;
}

.leaderboard-row:hover {
  background: rgba(255, 51, 51, 0.05);
}

.leaderboard-header-row {
  background: #232b38;
  font-weight: 900;
  color: #ff3333;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.leaderboard-header-row:hover {
  background: #232b38;
}

.rank-col, .player-col, .wager-col, .prize-col {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 700;
}

.loading-spinner {
  border: 4px solid rgba(255, 51, 51, 0.2);
  border-top: 4px solid #ff3333;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === FOOTER === */
footer {
  margin-top: auto;
  flex-shrink: 0;
  text-align: center;
  font-size: 1rem;
  color: #b0b8c6;
  background: linear-gradient(90deg, #181c24 60%, #232b38 100%);
  padding: 30px 20px;
  border-top: 2.5px solid #ff3333;
  box-shadow: 0 -2px 18px #ff333377;
  width: 100%;
}

/* === LEADERBOARD CARD BUTTONS === */
.lb-claim-btn {
  background: rgba(255,51,51,0.3) !important;
  border: 2px solid #ff3333 !important;
  color: #fff !important;
  padding: 14px 24px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  text-align: center !important;
  box-shadow: 0 4px 16px rgba(255,51,51,0.2) !important;
  transition: all 0.3s ease !important;
  font-size: 1.05rem !important;
  display: block !important;
}

.lb-claim-btn:hover {
  background: rgba(255,51,51,0.6) !important;
  border-color: #ff6666 !important;
  box-shadow: 0 6px 24px rgba(255,51,51,0.5) !important;
  transform: translateY(-2px) !important;
}

.lb-view-btn {
  background: rgba(255,215,0,0.2) !important;
  border: 2px solid #ffd700 !important;
  color: #ffd700 !important;
  padding: 14px 24px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  font-weight: 900 !important;
  text-align: center !important;
  box-shadow: 0 4px 16px rgba(255,215,0,0.2) !important;
  transition: all 0.3s ease !important;
  font-size: 1.05rem !important;
  display: block !important;
}

.lb-view-btn:hover {
  background: rgba(255,215,0,0.4) !important;
  border-color: #ffed4e !important;
  box-shadow: 0 6px 24px rgba(255,215,0,0.5) !important;
  transform: translateY(-2px) !important;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .clean-header-inner {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    gap: 12px;
  }
  
  .ciko-casino-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .ciko-logo-section {
    padding: 20px;
  }
  
  .ciko-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ciko-action-section {
    padding: 20px;
  }
  
  .ciko-details-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .payment-methods-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .top-three {
    grid-template-columns: 1fr;
  }
  
  .leaderboard-row {
    grid-template-columns: 60px 1fr 100px 100px;
    padding: 12px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .ciko-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .payment-methods-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .payment-methods-grid img {
    height: 45px;
  }
  
  .license-icon {
    width: 110px;
    height: 110px;
  }
}