/* BGC Tournament System CSS */
.tournament-dynamic-wrap {
  background: var(--card, #111317);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #fff;
  font-family: var(--body, 'Manrope', sans-serif);
}

.tournament-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.nt-bg-icon {
  font-size: 48px;
  opacity: 0.5;
}

.nt-title, .t-name {
  font-family: var(--display, 'Space Grotesk', sans-serif);
  font-size: 28px;
  margin: 0;
  color: #fff;
}

.t-game {
  font-size: 14px;
  color: var(--muted, rgba(255,255,255,0.6));
  text-transform: uppercase;
  letter-spacing: 1px;
}

.t-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: #ccc;
}

.t-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.upcoming-badge, .open-badge { background: rgba(239, 189, 78, 0.2); color: #efbd4e; }
.closed-badge { background: rgba(255, 255, 255, 0.1); color: #fff; }
.live-badge { background: rgba(255, 79, 112, 0.2); color: #ff4f70; display: flex; align-items: center; gap: 6px; }
.completed-badge { background: rgba(0, 219, 120, 0.2); color: #00db78; }
.cancelled-badge { background: rgba(255, 255, 255, 0.1); color: #888; }
.postponed-badge { background: rgba(176, 119, 88, 0.2); color: #b07758; }

.t-prize {
  font-size: 18px;
  font-weight: bold;
  color: #efbd4e;
  margin: 10px 0;
}

.t-slots {
  width: 100%;
  max-width: 400px;
  margin: 15px 0;
}

.t-slots-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 5px;
  color: #ccc;
}

.t-slots-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.t-slots-fill {
  height: 100%;
  background: #00db78;
  transition: width 0.3s ease;
}

.countdown-display { 
  display: flex; 
  gap: 8px; 
  justify-content: center; 
  margin: 20px 0; 
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-num { 
  font-family: var(--mono, 'DM Mono', monospace); 
  font-size: 48px; 
  color: #efbd4e; 
  line-height: 1; 
}

.cd-label { 
  font-size: 11px; 
  text-transform: uppercase; 
  color: rgba(255,255,255,0.5); 
  display: block; 
  margin-top: 4px;
}

.cd-sep {
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 48px;
  color: rgba(255,255,255,0.2);
  line-height: 1;
}

@keyframes live-pulse { 0%,100% { transform: scale(1); opacity:1; } 50% { transform: scale(1.3); opacity:0.6; } }
.live-dot { width: 10px; height: 10px; background: #ff4f70; border-radius: 50%; animation: live-pulse 1.5s infinite; }

.registration-modal { 
  position: fixed; 
  inset: 0; 
  z-index: 9999; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.reg-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.9);
  backdrop-filter: blur(5px);
}
.reg-modal-box {
  position: relative;
  background: #111317;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  width: 90%;
  max-width: 400px;
  z-index: 10000;
  text-align: left;
}
.reg-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.5;
}
.reg-modal-close:hover { opacity: 1; }

#reg-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: #fff;
  font-family: var(--body, 'Manrope', sans-serif);
}

.btn-primary-gold {
  display: inline-block;
  padding: 12px 24px;
  background: #efbd4e;
  color: #08090c;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 13px;
  border: none;
}
.btn-primary-gold:disabled {
  background: #555;
  color: #888;
  cursor: not-allowed;
}

.btn-primary-red {
  display: inline-block;
  padding: 12px 24px;
  background: #ff4f70;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 13px;
  border: none;
}

.btn-secondary-ghost {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 400px) { 
  .cd-num { font-size: 32px; } 
  .cd-sep { font-size: 24px; line-height: 1.5; } 
}
