/* ============================================================
   QCT ESPORTZ — HOME PAGE
   Design System v4.0 | Void Black × Orange × Teal × Neon
============================================================ */


/* ============================================================
   TOP GAME FILTER TABS
============================================================ */

.top-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: var(--spacing-xl);
  padding: 4px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
  position: relative;
}

.top-tabs button {
  flex: 1;
  padding: 9px 10px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-dim);
  border: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.top-tabs button:hover {
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
}

.top-tabs button.active {
  background: var(--grad-orange);
  color: var(--void-00);
  font-weight: 800;
  box-shadow: var(--glow-orange-sm), 0 2px 8px rgba(0,0,0,0.35);
}

.top-tabs button:active {
  transform: scale(0.96);
}


/* ============================================================
   FILTER CHIPS — Horizontal scroll row
============================================================ */

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: var(--spacing-xl);
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.filter-chip:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text-secondary);
}

.filter-chip.active {
  background: rgba(255,165,0,0.12);
  border-color: rgba(255,165,0,0.35);
  color: var(--orange);
  box-shadow: var(--glow-orange-sm);
}

.filter-chip:active { transform: scale(0.95); }

.filter-chip .chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}


/* ============================================================
   TOURNAMENT LIST WRAPPER
============================================================ */

.tournament-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tournament-list.entering {
  animation: listFadeIn 0.4s var(--ease-smooth);
}

@keyframes listFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================

   ████████╗ ██████╗  █████╗ ██████╗
      ██╔══╝██╔════╝ ██╔══██╗██╔══██╗
      ██║   ██║      ███████║██████╔╝
      ██║   ██║      ██╔══██║██╔══██╗
      ██║   ╚██████╗ ██║  ██║██║  ██║
      ╚═╝    ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝

   TOURNAMENT CARD — HERO (Featured)
============================================================ */

.tournament-card-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,165,0,0.22);
  box-shadow:
    0 0 0 1px rgba(255,165,0,0.06) inset,
    var(--shadow-lg),
    0 0 40px rgba(255,165,0,0.07);
  background: var(--grad-card);
  margin-bottom: 6px;
  animation: slideInUp 0.45s var(--ease-snap) backwards;
}

/* Tricolor top accent — always visible on hero */
.tournament-card-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--orange) 0%,
    var(--teal-bright) 50%,
    var(--neon) 100%
  );
  z-index: 5;
  box-shadow: 0 0 12px rgba(255,165,0,0.4);
}

/* ── Hero Banner ── */
.hero-banner {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.hero-banner img,
.hero-banner .banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.72) saturate(1.25);
}

/* Bottom fade into card body */
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,22,0.10) 0%,
    rgba(10,10,22,0.40) 55%,
    rgba(10,10,22,0.92) 100%
  );
  z-index: 1;
}

/* Left side vertical glow */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,165,0,0.10) 0%,
    transparent 50%
  );
  z-index: 2;
  pointer-events: none;
}

/* Scan line animation over banner */
.hero-banner .scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,196,232,0.55),
    transparent
  );
  z-index: 3;
  animation: scanBanner 4s linear infinite;
  pointer-events: none;
}

@keyframes scanBanner {
  0%   { transform: translateY(0); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateY(190px); opacity: 0; }
}

/* ── Status Badge (on banner, top-right) ── */
.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid;
  z-index: 4;
}

.status-badge.live {
  background: rgba(255, 34, 68, 0.18);
  color: #FF2244;
  border-color: rgba(255,34,68,0.45);
  box-shadow: 0 0 16px rgba(255,34,68,0.35);
  animation: badgePulse 1.5s ease-in-out infinite;
}

.status-badge.live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FF2244;
  box-shadow: 0 0 6px rgba(255,34,68,1);
  flex-shrink: 0;
  animation: liveDot 1.2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 14px rgba(255,34,68,0.35); }
  50%      { box-shadow: 0 0 26px rgba(255,34,68,0.65); }
}

@keyframes liveDot {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.20; }
}

.status-badge.upcoming {
  background: rgba(0,140,180,0.14);
  color: var(--teal-bright);
  border-color: rgba(0,140,180,0.35);
  box-shadow: var(--glow-teal-sm);
}

.status-badge.full {
  background: rgba(255,165,0,0.12);
  color: var(--orange);
  border-color: rgba(255,165,0,0.35);
}

.status-badge.past {
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border-color: var(--border-subtle);
}

/* ── Prize Tag (overlaid on banner, bottom-left) ── */
.prize-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8,8,20,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,165,0,0.30);
  border-radius: var(--radius-md);
  padding: 7px 12px;
}

.prize-tag-icon { font-size: 16px; }

.prize-tag-inner { display: flex; flex-direction: column; gap: 0; }

.prize-tag-label {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  line-height: 1;
}

.prize-tag-value {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--orange);
  text-shadow: 0 0 20px rgba(255,165,0,0.55);
  line-height: 1.1;
}

/* ── Game logo tag (top-left) ── */
.game-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(8,8,20,0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 5px 10px;
}

.game-tag-icon {
  width: 20px; height: 20px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.game-tag-name {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ── Hero Card Body ── */
.hero-card-body {
  padding: 14px 16px 16px;
  position: relative;
  z-index: 2;
}

/* Org line */
.card-org {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

/* Tournament title */
.card-title {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 10px;
}

/* ── Info Chips Row ── */
.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
}

.info-chip .chip-icon { font-size: 13px; }

/* ── Stats Row (prize + slots side by side) ── */
.card-stats-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.card-stat-box {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  position: relative;
  overflow: hidden;
}

/* Left edge accent line */
.card-stat-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  border-radius: 1px 0 0 1px;
}

.card-stat-box.orange::before { background: var(--orange); box-shadow: var(--glow-orange-sm); }
.card-stat-box.teal::before   { background: var(--teal-bright); box-shadow: var(--glow-teal-sm); }
.card-stat-box.neon::before   { background: var(--neon); box-shadow: var(--glow-neon-sm); }

.stat-box-label {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.stat-box-value {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.stat-box-value.orange { color: var(--orange); text-shadow: 0 0 16px rgba(255,165,0,0.40); }
.stat-box-value.teal   { color: var(--teal-bright); text-shadow: 0 0 16px rgba(0,196,232,0.35); }
.stat-box-value.neon   { color: var(--neon); text-shadow: 0 0 16px rgba(170,255,68,0.35); }

/* ── Slots Progress ── */
.card-slots {
  margin-bottom: 14px;
}

.slots-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.slots-label {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.slots-count {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.slots-urgent { color: var(--orange) !important; }

/* ── Card Footer ── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.entry-fee-block { display: flex; flex-direction: column; gap: 1px; }

.entry-fee-label {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.entry-fee-value {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--orange);
  line-height: 1;
}

.entry-fee-free {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--neon);
  text-shadow: var(--glow-neon-sm);
}

/* ── Join Button ── */
.join-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--grad-orange);
  color: var(--void-00);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-orange-sm), 0 4px 16px rgba(0,0,0,0.4);
  transition: box-shadow var(--transition-base),
              transform var(--transition-fast) var(--ease-snap),
              opacity var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

/* Shine sweep on hover */
.join-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.4s var(--ease-smooth);
  pointer-events: none;
}

.join-btn:hover::after  { left: 150%; }

.join-btn:hover {
  box-shadow: var(--glow-orange-md), 0 6px 24px rgba(0,0,0,0.5);
}

.join-btn:active {
  transform: scale(0.96);
  box-shadow: var(--glow-orange-sm), 0 2px 10px rgba(0,0,0,0.5);
}

/* Disabled / Full state */
.join-btn:disabled,
.join-btn.full {
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
  border: 1px solid var(--border-subtle);
  transform: none !important;
  pointer-events: none;
}

/* Full slots — orange ghost */
.join-btn.slot-full {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
  transform: none !important;
}

/* Wide (full-width) join button */
.join-btn-wide {
  width: 100%;
  height: 50px;
  font-size: 15px;
  letter-spacing: 2px;
}


/* ============================================================

   STANDARD TOURNAMENT CARD
   (slightly leaner than Hero)
============================================================ */

.tournament-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: slideInUp 0.4s var(--ease-snap) backwards;
}

/* Tricolor top bar — visible only on active / featured cards */
.tournament-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--teal-bright), var(--neon));
  z-index: 2;
}

/* ── Banner ── */
.tournament-card .banner {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  filter: brightness(0.70) saturate(1.15);
}

/* Banner wrapper needed for absolute children */
.tournament-card .banner-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.tournament-card .banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.70) saturate(1.15);
}

/* Gradient fade to card body */
.tournament-card .banner-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,22,0.05) 0%,
    rgba(10,10,22,0.55) 70%,
    rgba(10,10,22,0.95) 100%
  );
  z-index: 1;
}

/* ── Card Details ── */
.tournament-card .details {
  padding: var(--spacing-lg);
  position: relative;
  z-index: 2;
}

.tournament-card .card-title {
  font-size: 18px;
  margin-bottom: 8px;
}

/* ── Mode Badge (inside card body) ── */
.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.mode-badge.solo   { background: rgba(0,140,180,0.12); color: var(--teal-bright); border: 1px solid rgba(0,140,180,0.25); }
.mode-badge.duo    { background: rgba(170,255,68,0.10); color: var(--neon);         border: 1px solid rgba(170,255,68,0.22); }
.mode-badge.squad  { background: rgba(255,165,0,0.10);  color: var(--orange);       border: 1px solid rgba(255,165,0,0.25); }
.mode-badge.custom { background: rgba(168,85,247,0.10); color: #A855F7;             border: 1px solid rgba(168,85,247,0.25); }

/* ── Info Strip (prize + slots) ── */
.info {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 12px 0;
  padding: 10px 14px;
  background: rgba(8,8,20,0.55);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

/* Subtle orange corner accent */
.info::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50px; height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(255,165,0,0.04) 100%);
  pointer-events: none;
}

.info .prize,
.info .slots,
.info .entry {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.info .label {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.info .value {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.info .prize .value  { color: var(--orange);      text-shadow: 0 0 14px rgba(255,165,0,0.40); }
.info .slots .value  { color: var(--teal-bright);  text-shadow: 0 0 14px rgba(0,196,232,0.35); }
.info .entry .value  { color: var(--neon);          text-shadow: 0 0 14px rgba(170,255,68,0.35); }

.info-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
  flex-shrink: 0;
}


/* ============================================================
   PRIZE POOL HIGHLIGHT STRIP
============================================================ */

.prize-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 9px var(--spacing-lg);
  background: linear-gradient(90deg,
    transparent,
    rgba(255,165,0,0.06),
    rgba(255,165,0,0.10),
    rgba(255,165,0,0.06),
    transparent
  );
  border-top:    1px solid rgba(255,165,0,0.10);
  border-bottom: 1px solid rgba(255,165,0,0.10);
  margin: var(--spacing-sm) 0;
}

.prize-strip-icon { font-size: 15px; }

.prize-strip-text {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: 0 0 12px rgba(255,165,0,0.40);
}

.prize-strip-value {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--orange);
  letter-spacing: 1px;
  text-shadow: 0 0 16px rgba(255,165,0,0.50);
}


/* ============================================================
   COMPACT CARD (for "Completed" / history list)
============================================================ */

.tournament-card-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.tournament-card-compact:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,165,0,0.14);
}

.compact-game-thumb {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.compact-info { flex: 1; min-width: 0; }

.compact-title {
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.compact-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.compact-rank {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1;
}

.compact-rank.rank-1 { color: #FFD060; text-shadow: 0 0 12px rgba(255,200,0,0.5); }
.compact-rank.rank-2 { color: #C0C8D4; }
.compact-rank.rank-3 { color: #CD7F32; }
.compact-rank.rank-other { color: var(--text-dim); }


/* ============================================================
   COUNTDOWN TIMER (inside hero card)
============================================================ */

.countdown-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.countdown-label {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-right: 2px;
}

.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  min-width: 46px;
}

.cd-val {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text-primary);
  line-height: 1;
}

.cd-unit {
  font-family: var(--font-label);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1px;
}

.cd-sep {
  font-family: var(--font-display);
  font-size: 18px;
  color: rgba(255,165,0,0.45);
  animation: liveDot 1s ease-in-out infinite;
  align-self: flex-start;
  margin-top: 4px;
}


/* ============================================================
   EMPTY STATE
============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 40px;
}

.empty-state .icon {
  font-size: 54px;
  margin-bottom: var(--spacing-lg);
  opacity: 0.35;
  filter: grayscale(40%);
}

.empty-state h3 {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.empty-state p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 260px;
}

.empty-state .empty-action {
  margin-top: var(--spacing-xl);
}


/* ============================================================
   SKELETON LOADING
============================================================ */

.tournament-card.loading {
  pointer-events: none;
  overflow: hidden;
}

.tournament-card.loading::before,
.tournament-card.loading::after {
  display: none !important;
}

.skel {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 200% 100%;
  animation: skelPulse 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skel-banner {
  width: 100%;
  height: 160px;
  border-radius: 0;
}

.skel-line {
  height: 13px;
  margin-bottom: 8px;
}

.skel-line.w-80 { width: 80%; }
.skel-line.w-55 { width: 55%; }
.skel-line.w-40 { width: 40%; }

.skel-info {
  height: 56px;
  border-radius: var(--radius-md);
  margin: 12px 0;
}

.skel-btn {
  height: 46px;
  border-radius: var(--radius-full);
  width: 100%;
}

@keyframes skelPulse {
  0%   { background-position:  200% center; }
  100% { background-position: -200% center; }
}


/* ============================================================
   STAGGERED ENTRY ANIMATION
============================================================ */

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tournament-card:nth-child(1),
.tournament-card-hero:nth-child(1) { animation-delay: 0.04s; }
.tournament-card:nth-child(2)      { animation-delay: 0.09s; }
.tournament-card:nth-child(3)      { animation-delay: 0.14s; }
.tournament-card:nth-child(4)      { animation-delay: 0.19s; }
.tournament-card:nth-child(5)      { animation-delay: 0.24s; }
.tournament-card:nth-child(6)      { animation-delay: 0.29s; }


/* ============================================================
   RESPONSIVE
============================================================ */

@media (min-width: 768px) {
  .tournament-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  .tournament-card-hero { grid-column: 1 / -1; }

  .tournament-card .banner-wrap { height: 190px; }
  .tournament-card .card-title  { font-size: 20px; }
  .info .value                  { font-size: 20px; }
}

@media (min-width: 1024px) {
  .tournament-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .tournament-card-hero { grid-column: 1 / -1; }
  .tournament-card .banner-wrap { height: 210px; }
}
