/* === ShellGames.ai Tournament Styles — Polished Launch Edition === */

/* ================================================================
   TOURNAMENT LIST PAGE
   ================================================================ */
.tournament-container {
  max-width: 1200px;
}

.tournament-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* === Tournament Hero === */
.tournament-hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

.trophy-icon {
  font-size: 4.5rem;
  margin-bottom: 0.5rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(233, 69, 96, 0.3));
}

.tournament-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

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

/* === Filter Tabs === */
.tournament-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0 0.5rem;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(233, 69, 96, 0.08);
}

.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
}

/* === Tournament Cards Grid === */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tournament-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.tournament-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(233, 69, 96, 0.2);
}

.tournament-card:hover::before { opacity: 1; }

/* Featured card (for launch tournament) */
.tournament-card.featured {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, #e94560, #d63a54);
  position: relative;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
  color: #fff;
}

.tournament-card.featured, .tournament-card.featured * { color: #fff; }
.tournament-card.featured .tc-status { background: rgba(255, 255, 255, 0.2) !important; color: #fff !important; border-color: transparent !important; }
.tournament-card.featured .tc-name { color: #fff; }
.tournament-card.featured .tc-prize { color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; }
.tournament-card.featured .tc-countdown { color: rgba(255, 255, 255, 0.9) !important; }
.tournament-card.featured .tc-meta { color: rgba(255, 255, 255, 0.8); }
.tournament-card.featured .tc-detail { color: rgba(255, 255, 255, 0.8); }
.tournament-card.featured .tc-slots-text { color: rgba(255, 255, 255, 0.7); }
.tournament-card.featured .tc-slots-bar { background: rgba(0, 0, 0, 0.2); }
.tournament-card.featured .tc-slots-fill { background: #fff; }
.tournament-card.featured .tc-footer { color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.15); }

.tournament-card.featured::before { display: none; }

.tournament-card.featured::after {
  content: '⭐ FEATURED';
  position: absolute;
  top: 12px;
  right: -28px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.2rem 2rem;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

.tournament-card.featured:hover {
  background: linear-gradient(135deg, #f05070, #e94560);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 40px rgba(233, 69, 96, 0.4);
}

.tc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tc-icon {
  font-size: 2rem;
}

.tc-status {
  font-size: 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.status-reg { background: rgba(0, 212, 170, 0.15); color: #00d4aa; }
.status-active { background: rgba(233, 69, 96, 0.15); color: #e94560; animation: status-pulse 2s infinite; }
.status-done { background: rgba(107, 107, 138, 0.15); color: #6b6b8a; }
.status-cancelled { background: rgba(107, 107, 138, 0.1); color: #555; }

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(233, 69, 96, 0); }
}

.tc-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.tc-details {
  margin-bottom: 0.5rem;
}

.tc-prize {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary), #00f0c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.tc-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.tc-countdown {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tc-countdown .countdown-timer {
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.tc-slots {
  margin-top: 0.5rem;
}

.tc-slots-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.tc-slots-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 3px;
  transition: width 0.5s ease;
}

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

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Loading */
.loading-spinner {
  text-align: center;
  padding: 3rem;
  grid-column: 1 / -1;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================================================================
   TOURNAMENT DETAIL PAGE
   ================================================================ */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.breadcrumb:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Info Card */
.tournament-info-card {
  background: linear-gradient(135deg, #e94560, #d63a54);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
  color: #fff;
}

.tournament-info-card::before {
  display: none;
}

.tournament-info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tournament-info-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
  flex: 1;
}

.tournament-status-badge {
  font-size: 0.85rem;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Countdown Banner */
.countdown-banner {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.countdown-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.countdown-timer-big {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  color: #fff;
  line-height: 1;
}

.countdown-text {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

.countdown-sep {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  align-self: flex-start;
  margin-top: 0.2rem;
}

/* Meta Grid */
.tournament-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.6);
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.prize-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.multi-tag {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Prizes */
.tournament-prizes {
  margin-top: 1rem;
}

.tournament-prizes h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

.prizes-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.prize-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.75rem;
  min-width: 120px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.prize-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.prize-item:first-child {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.prize-item:first-child .prize-amount {
  color: #fff;
  font-size: 1.3rem;
}

.prize-item:first-child:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.prize-medal {
  font-size: 2.25rem;
  margin-bottom: 0.35rem;
}

.prize-place {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.prize-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* Actions */
.tournament-actions {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-register {
  font-size: 1.2rem;
  padding: 0.9rem 3rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  animation: register-glow 2.5s infinite;
  position: relative;
  overflow: hidden;
}

.btn-register::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: rotate(30deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

@keyframes register-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(233, 69, 96, 0.3); }
  50% { box-shadow: 0 0 30px rgba(233, 69, 96, 0.5), 0 0 60px rgba(233, 69, 96, 0.2); }
}

.btn-register:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
}

.btn-register:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
}

.registered-badge, .live-badge, .completed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.1rem;
}

.registered-badge {
  background: rgba(0, 212, 170, 0.1);
  border: 2px solid rgba(0, 212, 170, 0.3);
  color: var(--secondary);
}

.live-badge {
  background: rgba(233, 69, 96, 0.1);
  border: 2px solid rgba(233, 69, 96, 0.3);
  color: var(--accent);
  animation: register-glow 2s infinite;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: blink 1.5s infinite;
}

.completed-badge {
  background: rgba(107, 107, 138, 0.1);
  border: 2px solid rgba(107, 107, 138, 0.3);
  color: var(--text-muted);
}

.winner-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.15), rgba(0, 212, 170, 0.15));
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
  animation: champion-glow 3s infinite;
}

.winner-crown {
  font-size: 2rem;
}

.winner-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
}

.btn-accent {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #0a0a1a;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-accent:hover {
  background: #00f0c0;
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
}

.btn-start-tournament {
  font-size: 0.9rem;
}

/* ================================================================
   BRACKET VISUALIZATION
   ================================================================ */
.bracket-section {
  margin-bottom: 2rem;
}

.bracket-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.bracket-container {
  overflow-x: auto;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.bracket-svg-wrapper {
  min-width: max-content;
}

/* SVG Bracket Text Styles */
.bracket-round-label {
  fill: var(--text-muted, #6b6b8a);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-text {
  fill: var(--text, #e0e0e0);
  font-size: 12px;
  font-weight: 500;
}

.player-winner-text {
  fill: var(--secondary, #00d4aa);
  font-size: 12px;
  font-weight: 700;
}

.player-loser-text {
  fill: var(--text-muted, #6b6b8a);
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
  opacity: 0.5;
}

.seed-text {
  fill: var(--text-muted, #6b6b8a);
  font-size: 10px;
}

.crown-text {
  font-size: 12px;
}

.game-type-text {
  font-size: 14px;
}

.live-text {
  fill: var(--accent, #e94560);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

.live-pulse {
  animation: blink 1.5s infinite;
}

.connector-line {
  fill: none;
  stroke: var(--border, #2a2a4a);
  stroke-width: 1.5;
}

.match-glow {
  animation: match-glow-pulse 2s infinite;
}

@keyframes match-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(233, 69, 96, 0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(233, 69, 96, 0.5)); }
}

.champion-glow {
  animation: champion-glow 3s infinite;
}

@keyframes champion-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.2)); }
  50% { filter: drop-shadow(0 0 24px rgba(0, 212, 170, 0.4)); }
}

.champion-crown { font-size: 24px; }
.champion-name-text {
  fill: var(--secondary, #00d4aa);
  font-size: 14px;
  font-weight: 800;
}
.champion-subtitle {
  fill: var(--text-muted, #6b6b8a);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ================================================================
   PLAYERS LIST
   ================================================================ */
.players-section {
  margin-bottom: 2rem;
}

.players-section h2 {
  margin-bottom: 1rem;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.player-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.player-card-winner {
  border-color: var(--secondary) !important;
  background: rgba(0, 212, 170, 0.08);
}

.player-card-eliminated {
  opacity: 0.5;
}

.player-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.player-username {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-status-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ================================================================
   ADMIN - Create Modal
   ================================================================ */
.admin-actions {
  margin-top: 1rem;
}

.btn-create-tournament {
  background: var(--accent);
  border: none;
  color: white;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-create-tournament:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

.create-tournament-modal {
  max-width: 520px;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-actions .btn {
  flex: 1;
}

/* ================================================================
   HOMEPAGE TOURNAMENT BANNER
   ================================================================ */
.tournament-launch-banner {
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, #e94560, #d63a54);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}

.tournament-launch-banner:hover {
  background: linear-gradient(135deg, #f05070, #e94560);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
}

.banner-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.banner-info {
  flex: 1;
}

.banner-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  color: #fff;
}

.banner-prize {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.banner-details {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.banner-detail {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.banner-countdown {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.banner-cta {
  flex-shrink: 0;
  background: #fff;
  color: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.tournament-launch-banner:hover .banner-cta {
  background: rgba(255, 255, 255, 0.9);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .tournament-hero h1 {
    font-size: 1.75rem;
  }

  .tournaments-grid {
    grid-template-columns: 1fr;
  }

  .tournament-info-header h1 {
    font-size: 1.3rem;
  }

  .tournament-info-card {
    padding: 1.25rem;
  }

  .tournament-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prizes-grid {
    justify-content: center;
  }

  .prize-item {
    padding: 1rem 1.25rem;
    min-width: 100px;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .countdown-unit {
    min-width: 50px;
  }

  .btn-register {
    font-size: 1rem;
    padding: 0.8rem 2rem;
    width: 100%;
  }

  .banner-title {
    font-size: 1.25rem;
  }

  .banner-prize {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .bracket-container {
    margin: 0 -1rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .tournament-meta-grid {
    grid-template-columns: 1fr;
  }

  .players-grid {
    grid-template-columns: 1fr;
  }

  .prizes-grid {
    flex-direction: column;
    align-items: center;
  }

  .prize-item {
    width: 100%;
    max-width: 200px;
  }

  .countdown-timer-big {
    gap: 0.5rem;
  }

  .countdown-sep {
    display: none;
  }

  .tournament-actions {
    flex-direction: column;
  }

  .filter-tab {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.error-text {
  color: var(--accent);
}
