/* ─── ARENA TOURNAMENTS LEAGUE MODERN STYLES ─── */

:root {
  --tour-bg: #040714;
  --tour-card-bg: rgba(13, 20, 42, 0.88);
  --tour-card-border: rgba(56, 189, 248, 0.2);
  --tour-card-hover-border: rgba(56, 189, 248, 0.5);
  --tour-red-card-border: rgba(239, 68, 68, 0.35);
  --tour-red-glow: rgba(239, 68, 68, 0.25);
  --tour-gold-glow: rgba(245, 158, 11, 0.3);
  --tour-blue-btn: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  --tour-red-btn: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
  --tour-gold-btn: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tournament-layout {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  color: #f1f5f9;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-y: auto;
  padding: 16px 16px 90px;
  background: radial-gradient(120% 120% at 50% 0%, #0c1329 0%, #060914 45%, #020408 100%);
  box-sizing: border-box;
  animation: tourFadeIn 0.25s ease-out;
}

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

/* ── Top Bar ── */
.tour-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
  gap: 10px;
}

.tour-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tour-shield-badge {
  width: 42px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px rgba(244, 63, 94, 0.45));
  transition: transform 0.2s ease;
}

.tour-shield-badge:hover {
  transform: scale(1.06);
}

.tour-brand-info {
  display: flex;
  flex-direction: column;
}

.tour-title-stacked {
  font-size: 16px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.tour-title-stacked .white-txt {
  color: #ffffff;
  display: block;
}

.tour-title-stacked .red-txt {
  background: linear-gradient(135deg, #ff4b60 0%, #f43f5e 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.tour-subtitle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 750;
  margin-top: 2px;
  letter-spacing: 0.05em;
}

.tour-subtitle-row .red-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
}

.tour-top-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-wallet-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tour-wallet-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(10, 16, 32, 0.9);
  border: 1.2px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 850;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tour-wallet-pill.coins {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.tour-wallet-pill.tokens {
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.tour-back-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.tour-back-icon-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.8);
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

/* ── Navigation Tabs ── */
.tour-nav-tabs-wrapper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}

.tour-nav-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.tour-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1.2px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.75);
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-nav-tab:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-1px);
}

.tour-nav-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-color: #f43f5e;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.35);
}

.tour-tab-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 2px;
}

/* ── Official Hero Banner ── */
.tour-official-hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(26, 23, 68, 0.9) 50%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.28);
  padding: 20px 22px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.08);
}
/* ── Hero Create Card ── */
.tour-create-banner {
  background: radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.15) 0%, rgba(13, 18, 38, 0.95) 100%);
  border: 1.5px solid var(--tour-red-card-border);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.08);
}

.tour-banner-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

.tour-plus-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.tour-banner-info {
  flex: 1;
}

.tour-banner-info h3 {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 2px 0;
  letter-spacing: 0.02em;
}

.tour-banner-info p {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.4;
  font-weight: 600;
}

.tour-banner-chevron {
  color: rgba(255, 255, 255, 0.35);
}

.btn-create-tour-cta {
  width: 100%;
  height: 42px;
  border-radius: 24px;
  background: var(--tour-red-btn);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.4);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-create-tour-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.55);
}

/* ── Section Headers ── */
.tour-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tour-section-head-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.tour-view-all-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 850;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Tournament Cards ── */
.tour-match-card {
  background: var(--tour-card-bg);
  border: 1.5px solid var(--tour-card-border);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.tour-match-card:hover {
  border-color: var(--tour-card-hover-border);
}

.tour-card-badges-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tour-card-title {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 3px 0;
}

.tour-card-desc {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

/* Badges */
.badge-new-pill {
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 10px;
  font-weight: 850;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.badge-type-pill {
  font-size: 10px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

.badge-type-pill.elim {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #c084fc;
}

.badge-type-pill.hs {
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(14, 165, 233, 0.45);
  color: #38bdf8;
}

.badge-private-pill {
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(234, 88, 12, 0.45);
  color: #fb923c;
  font-size: 10px;
  font-weight: 850;
  padding: 3px 10px;
  border-radius: 12px;
}

.badge-open-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 78, 59, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 10px;
  font-weight: 850;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.06em;
}

.badge-open-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

/* Stats 2x2 */
.tour-stats-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 10px 0 12px 0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px;
}

.stat-cell {
  display: flex;
  flex-direction: column;
}

.stat-cell-label {
  font-size: 8.5px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.stat-cell-val {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
}

.stat-cell-val.gold-text {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

.tour-capacity-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4px;
}

.tour-capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 100%);
  border-radius: 6px;
}

.tour-card-btns-row {
  display: flex;
  gap: 8px;
}

.btn-card-details {
  flex: 1;
  height: 38px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-details:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-card-join {
  flex: 1.35;
  height: 38px;
  background: var(--tour-blue-btn);
  color: #ffffff;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.btn-card-join:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-card-join.registered {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

/* ── Fairplay Banner ── */
.tour-fairplay-box {
  background: rgba(8, 14, 28, 0.8);
  border: 1.5px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 20px;
}

.fairplay-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fairplay-text-wrap {
  flex: 1;
}

.fairplay-text-wrap .fp-title {
  font-size: 12.5px;
  font-weight: 850;
  color: #e2e8f0;
  margin-bottom: 2px;
}

.fairplay-text-wrap .fp-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  line-height: 1.35;
}

/* ── Create Tournament Form ── */
.tour-create-card {
  background: rgba(11, 16, 35, 0.96);
  border: 1.5px solid var(--tour-red-card-border);
  border-radius: 20px;
  padding: 16px;
  max-width: 600px;
  margin: 6px auto 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.tour-create-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.tour-card-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.tour-create-title-box h3 {
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.04em;
}

.tour-create-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin: 2px 0 0 0;
}

.tour-form-group {
  margin-bottom: 12px;
}

.tour-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tour-form-label {
  display: block;
  font-size: 9.5px;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 5px;
  letter-spacing: 0.06em;
}

.tour-form-input,
.tour-form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  box-sizing: border-box;
  font-family: inherit;
}

.tour-form-input:focus,
.tour-form-textarea:focus {
  outline: none;
  border-color: #f43f5e;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.22);
}

.tour-form-input.gold-input {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.tour-section-divider {
  font-size: 9.5px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 14px 0 8px 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  padding-bottom: 4px;
}

.field-hint {
  display: block;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 3px;
}

/* Game Select Grid */
.tour-game-select-grid,
.tour-type-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tour-game-option,
.tour-type-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tour-game-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-game-option.active,
.tour-type-card.active {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);
}

.game-opt-icon {
  font-size: 18px;
}

.game-opt-info {
  flex: 1;
}

.game-opt-title {
  display: block;
  font-size: 11.5px;
  font-weight: 900;
  color: #fff;
}

.game-opt-sub {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.5);
}

.game-opt-check {
  display: none;
  color: #f43f5e;
  font-weight: 900;
  font-size: 13px;
}

.tour-game-option.active .game-opt-check {
  display: block;
}

.tour-type-card h4 {
  margin: 4px 0 2px 0;
  font-size: 11.5px;
  font-weight: 900;
  color: #fff;
}

.tour-type-card p {
  margin: 0;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}

.type-badge-top {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
}

.type-badge-top.knockout {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.type-badge-top.leaderboard {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.tour-reward-pills-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.reward-pill-item {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
}

.tour-summary-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.sum-row:last-child {
  margin-bottom: 0;
}

/* ── Tournament Details Screen ── */
.tour-detail-header-card {
  background: var(--tour-card-bg);
  border: 1.5px solid var(--tour-card-border);
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tour-detail-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-tour-name {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  margin: 4px 0 2px;
  letter-spacing: 0.02em;
}

.detail-tour-creator {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 700;
  margin: 0;
  padding: 2px 6px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 6px;
}

.detail-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tour-detail-timer-sleek {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
}

.tour-detail-timer-sleek span {
  color: #fff;
}

.tour-detail-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-lbl {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-val {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.stat-val.gold-text {
  color: #fbbf24;
}

.tour-detail-subnav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tour-detail-subnav::-webkit-scrollbar {
  display: none;
}

.tour-subnav-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.65);
  padding: 5px 12px;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-subnav-btn:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-1px);
}

.tour-subnav-btn.active {
  color: #fff;
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* Active Match CTA Banner */
.tour-active-match-cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
  border: 2px solid #ef4444;
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.35);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
  }

  100% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
  }
}

.match-cta-title {
  font-size: 14px;
  font-weight: 950;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.match-cta-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  margin-top: 2px;
}

.btn-play-match-now {
  background: var(--tour-red-btn);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
  transition: all 0.2s ease;
}

.btn-play-match-now:hover {
  transform: scale(1.04);
}

/* ── Elimination Brackets ── */
.bracket-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 14px 0 24px;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.bracket-round-title {
  font-size: 11px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.bracket-match {
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.bracket-match.is-my-match {
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}

.bracket-match-header {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.match-status-tag {
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 6px;
}

.match-status-tag.playing {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.match-status-tag.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.match-status-tag.bye {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
}

.bracket-match-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bracket-match-player:last-child {
  margin-bottom: 0;
}

.bracket-match-player.is-winner {
  color: #fff;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}

.bracket-match-player.is-loser {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: line-through;
}

.player-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.player-dot.red {
  background: #ef4444;
}

.player-dot.green {
  background: #10b981;
}

.player-dot.yellow {
  background: #f59e0b;
}

.player-dot.blue {
  background: #3b82f6;
}

.bracket-match-play-btn {
  width: 100%;
  height: 34px;
  margin-top: 8px;
  border-radius: 10px;
  background: var(--tour-red-btn);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* ── Leaderboard Table ── */
.leaderboard-table-card {
  background: var(--tour-card-bg);
  border: 1.5px solid var(--tour-card-border);
  border-radius: 20px;
  padding: 8px 14px;
  overflow-x: auto;
}

.tour-leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tour-leaderboard-table th {
  font-size: 9.5px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 10px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
}

.tour-leaderboard-table td {
  padding: 14px 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tour-leaderboard-table tr {
  transition: background 0.2s;
}

.tour-leaderboard-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tour-leaderboard-table tr.my-rank-row {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
}

.rank-medal {
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 10px;
}

.rank-medal.gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.rank-medal.silver {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.rank-medal.bronze {
  background: rgba(217, 119, 6, 0.2);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.4);
}

.table-player-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 900;
  color: #fff;
}

.score-gold-txt {
  color: #fbbf24;
  font-size: 13.5px;
}

.hs-play-qualifying-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 165, 233, 0.12);
  border: 1.5px solid rgba(14, 165, 233, 0.3);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.hs-bar-title {
  font-size: 12.5px;
  font-weight: 900;
  color: #38bdf8;
}

.hs-bar-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* ── Announcements ── */
.announcements-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.announcement-card {
  background: var(--tour-card-bg);
  border: 1.5px solid var(--tour-card-border);
  border-radius: 18px;
  padding: 16px 18px;
}

.ann-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ann-badge {
  font-size: 9.5px;
  font-weight: 900;
  color: #38bdf8;
}

.ann-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.ann-title {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px 0;
}

.ann-msg {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.ann-author {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Participants List ── */
.participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.participant-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}

.participant-pill.is-eliminated {
  opacity: 0.4;
  text-decoration: line-through;
}

/* ── Modals / Bottom Sheets ── */
.tour-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 2000;
  padding: 0;
  animation: tourFadeIn 0.25s ease;
}

@keyframes tourFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.tour-modal-card {
  background: rgba(11, 16, 35, 0.98);
  border: 1.5px solid var(--tour-card-border);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 16px 20px 32px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.1);
  animation: tourSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes tourSlideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.tour-bottom-sheet-handle {
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  margin: 0 auto 14px;
}

.tour-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.tour-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}

.tour-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tour-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.creator-studio-actions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.studio-action-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1.2px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.studio-action-box.danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}

.studio-act-info h4 {
  margin: 0 0 3px 0;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.studio-act-info p {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
}

.invite-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.invite-btns {
  display: flex;
  gap: 8px;
}

.tour-loading-box,
.tour-error-box {
  text-align: center;
  padding: 36px 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Modern Empty State ── */
.tour-empty-box {
  background: radial-gradient(130% 100% at 50% 10%, rgba(30, 41, 75, 0.45) 0%, rgba(10, 15, 30, 0.85) 60%, rgba(5, 8, 18, 0.95) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.22);
  border-radius: 24px;
  padding: 38px 24px 30px;
  margin: 12px 0 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(56, 189, 248, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tour-empty-glow-aura {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.tour-empty-glow-aura::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 70%);
  animation: tourAuraPulse 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes tourAuraPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

.tour-empty-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 41, 75, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 2px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25), inset 0 0 16px rgba(56, 189, 248, 0.15);
  position: relative;
  z-index: 1;
}

.tour-empty-title {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.tour-empty-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto 20px;
}

.tour-empty-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-empty-refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55);
  border-color: rgba(255, 255, 255, 0.4);
}

.tour-empty-refresh-btn:active {
  transform: translateY(0);
}

.tour-empty-refresh-btn.is-spinning .refresh-spinner {
  animation: tourSpin 0.7s linear infinite;
}

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

.tour-empty-features-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.tour-empty-feat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 10.5px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.75);
}

.tour-empty-feat-chip .feat-icon {
  font-size: 12px;
}

.tour-bracket-empty-card {
  text-align: center;
  padding: 30px 20px;
  background: rgba(11, 17, 35, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  width: 100%;
  margin: 10px 0;
  box-sizing: border-box;
}

.tour-error-box {
  color: #ef4444;
}

/* ── Responsive Mobile ── */
@media (max-width: 640px) {

  .tour-stats-2x2,
  .tour-form-row,
  .tour-game-select-grid,
  .tour-type-select-grid {
    grid-template-columns: 1fr;
  }

  .tour-detail-top-row {
    flex-direction: column;
  }

  .detail-top-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


.tour-match-card.is-ended {
  position: relative;
  overflow: hidden;
}

.tour-match-card.is-ended>*:not(.tour-card-ended-overlay):not(.tour-card-btns-row) {
  opacity: 0.4;
  filter: grayscale(100%);
}

.tour-card-ended-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}

.ended-watermark {
  font-size: 42px;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 0.15em;
  transform: rotate(-8deg);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  border: 4px solid #ef4444;
  padding: 6px 20px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  box-shadow: inset 0 0 15px rgba(239, 68, 68, 0.2), 0 0 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.ended-sub {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: rotate(-8deg);
}

.tour-card-btns-row {
  position: relative;
  z-index: 20;
}

.tour-match-card.is-ended .btn-card-join {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.tour-match-card.is-ended:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TOURNAMENT PAIRING LOBBY MODAL & STYLES
   ───────────────────────────────────────────────────────────────────────────── */
.tour-pairing-modal-card {
  width: 100%;
  max-width: 520px;
  background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 24px 20px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(239, 68, 68, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  animation: pairingPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pairingPopIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.tour-pairing-header {
  text-align: center;
}

.pairing-round-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

/* ── Progress Stages ── */
.pairing-progress-stages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0;
}

.stage-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.stage-step .step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stage-step.active {
  color: #38bdf8;
}

.stage-step.active .step-dot {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  transform: scale(1.3);
}

.stage-step.completed {
  color: #10b981;
}

.stage-step.completed .step-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.stage-line {
  flex: 1;
  max-width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.stage-line.active {
  background: #38bdf8;
}

/* ── VS Display Arena ── */
.pairing-vs-arena {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px 14px;
  position: relative;
}

.pairing-player-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  z-index: 2;
}

.pairing-avatar-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4) 0%, rgba(239, 68, 68, 0.1) 100%);
  border: 2px solid #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
}

.pairing-player-box.right .pairing-avatar-ring {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.pairing-avatar {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
}

.pairing-p-name {
  font-size: 13px;
  font-weight: 850;
  color: #fff;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pairing-p-tag {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.pairing-p-tag.opp {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.pairing-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  z-index: 2;
}

.pairing-vs-badge {
  font-size: 16px;
  font-weight: 950;
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
  letter-spacing: 0.06em;
}

.pairing-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pairing-countdown-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  animation: countdownPulse 1s infinite alternate;
}

@keyframes countdownPulse {
  from { transform: scale(0.96); box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
  to { transform: scale(1.04); box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
}

.pairing-countdown-lbl {
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

/* ── Other Round Matches Mini-List ── */
.pairing-other-matches-section {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 10px 12px;
}

.other-matches-title {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.other-matches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.other-match-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 800;
}

.other-match-chip .chip-p.red { color: #f87171; }
.other-match-chip .chip-p.green { color: #34d399; }
.other-match-chip .chip-p.yellow { color: #fbbf24; }
.other-match-chip .chip-p.blue { color: #60a5fa; }
.other-match-chip .chip-vs { color: rgba(255, 255, 255, 0.3); font-size: 9px; }

/* ── Actions Footer ── */
.pairing-actions-footer {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-enter-match-glow {
  animation: enterMatchGlow 1.5s infinite alternate;
}

@keyframes enterMatchGlow {
  from {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  }
  to {
    box-shadow: 0 4px 28px rgba(239, 68, 68, 0.8), 0 0 15px rgba(239, 68, 68, 0.6);
  }
}

/* ────────────────────────────────────────────────
   TOURNAMENT WAITING / PREPARATION SCREEN STYLES
   ──────────────────────────────────────────────── */
.tour-waiting-modal-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, #111827 0%, #0b0f19 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 50px rgba(56, 189, 248, 0.12);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: waitingCardEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes waitingCardEnter {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.tour-waiting-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tour-waiting-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.tour-waiting-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.tour-waiting-subtitle {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.tour-waiting-meta-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.tour-waiting-meta-pills .meta-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.tour-waiting-meta-pills .meta-pill.status-live {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  animation: pulsePill 1.5s infinite alternate;
}

@keyframes pulsePill {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

/* Countdown Arena Card */
.tour-waiting-countdown-card {
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.tour-countdown-ring-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-countdown-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25), inset 0 0 20px rgba(56, 189, 248, 0.15);
  animation: ringBreath 2s infinite ease-in-out;
}

@keyframes ringBreath {
  0% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; box-shadow: 0 0 35px rgba(56, 189, 248, 0.45), inset 0 0 25px rgba(56, 189, 248, 0.25); }
  100% { transform: scale(0.96); opacity: 0.7; }
}

.tour-countdown-time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 2;
}

.countdown-sub-title {
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.countdown-main-digits {
  font-size: 38px;
  font-weight: 950;
  color: #fff;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.8), 0 0 40px rgba(56, 189, 248, 0.4);
  line-height: 1;
}

.countdown-sub-msg {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #38bdf8;
  text-transform: uppercase;
}

.tour-waiting-info-msg {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
  max-width: 320px;
}

/* Stats Bar */
.tour-waiting-stats-bar {
  display: flex;
  gap: 8px;
  width: 100%;
}

.tour-waiting-stats-bar .stat-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-pill .stat-ico {
  font-size: 16px;
}

.stat-pill .stat-texts {
  display: flex;
  flex-direction: column;
}

.stat-pill .stat-num {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.stat-pill .stat-sub {
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

/* Participants Section */
.tour-waiting-players-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 12px 14px;
}

.tour-waiting-players-section .section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.section-sub-tag {
  color: #38bdf8;
}

.tour-waiting-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.waiting-player-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.waiting-player-chip.is-me {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.waiting-player-chip .player-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.waiting-player-chip.is-me .player-avatar-circle {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.waiting-player-chip .player-info-block {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.waiting-player-chip .player-uname {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waiting-player-chip .player-presence {
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 3px;
}

.player-presence.online {
  color: #10b981;
}

.player-presence.offline {
  color: rgba(255, 255, 255, 0.35);
}

.player-presence .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.player-presence.online .dot {
  box-shadow: 0 0 6px #10b981;
}

/* Footer */
.tour-waiting-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.waiting-footer-sync-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.sync-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: syncPulse 1s infinite alternate;
}

@keyframes syncPulse {
  from { transform: scale(0.8); opacity: 0.5; }
  to { transform: scale(1.3); opacity: 1; }
}

/* AI Bot Badge in Brackets and Lobbies */
.tour-bot-badge {
  font-size: 8.5px;
  font-weight: 900;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 5px;
  display: inline-block;
  vertical-align: middle;
}

/* Round Results Modal Styling */
.tour-results-body {
  padding: 16px 20px;
}

.results-col-card {
  background: rgba(8, 14, 28, 0.85);
  border-radius: 12px;
  padding: 12px;
}

.results-player-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.result-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.result-player-row.winner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #ffffff;
}

.result-player-row.eliminated {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: rgba(255, 255, 255, 0.55);
}

.results-next-round-banner {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin-top: 10px;
}