/* ═══════════════════════════════════════════════════════════════════════════
   components.css — Unified component library (Apex Command / Vercel-style)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. BUTTON SYSTEM ────────────────────────────────────────────────────── */
/* Reset esports-btn clip-path to clean rounded style */
.esports-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: .5rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, box-shadow .18s, transform .15s, border-color .18s, color .18s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  clip-path: none !important;
  /* Primary teal */
  background: linear-gradient(135deg, var(--accent-purple-dark) 0%, var(--accent-purple) 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(59,130,246,.22);
}
.esports-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,.32);
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-light) 100%);
}
.esports-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59,130,246,.18);
}

/* Outline variant */
.esports-btn.esports-btn-outline,
.esports-btn-outline {
  background: transparent !important;
  color: var(--accent-purple) !important;
  border-color: var(--teal-border-md) !important;
  box-shadow: none !important;
  clip-path: none !important;
}
.esports-btn.esports-btn-outline:hover,
.esports-btn-outline:hover {
  background: var(--teal-glow-sm) !important;
  border-color: var(--accent-purple) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,246,.14) !important;
}

/* Ghost variant */
.esports-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  clip-path: none;
}
.esports-btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-default);
}

/* Danger variant */
.esports-btn-danger {
  background: rgba(239,68,68,.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.3);
  clip-path: none;
  box-shadow: none;
}
.esports-btn-danger:hover {
  background: rgba(239,68,68,.2);
  border-color: rgba(239,68,68,.5);
  box-shadow: 0 4px 12px rgba(239,68,68,.15);
  transform: translateY(-1px);
}

/* Violet/Secondary variant */
.esports-btn-cyan {
  background: linear-gradient(135deg, var(--accent-cyan-pure-dk), var(--accent-cyan)) !important;
  color: #fff !important;
  border-color: transparent !important;
  clip-path: none !important;
  box-shadow: 0 2px 12px rgba(139,92,246,.22);
}
.esports-btn-cyan:hover {
  box-shadow: 0 6px 20px rgba(139,92,246,.32);
  transform: translateY(-2px);
}

/* Sizes */
.esports-btn-sm {
  padding: .4rem .9rem;
  font-size: .8rem;
  border-radius: .4rem;
}
.esports-btn-lg {
  padding: .875rem 1.75rem;
  font-size: 1rem;
  border-radius: .6rem;
}
.esports-btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: .65rem;
}
.esports-btn-xs {
  padding: .25rem .625rem;
  font-size: .75rem;
  border-radius: .35rem;
}

/* Icon-only */
.esports-btn-icon {
  padding: .6rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .5rem;
}

/* Loading state */
.esports-btn[disabled], .esports-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Shine sweep on hover */
.esports-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transition: left .55s ease;
  pointer-events: none;
}
.esports-btn:hover::before { left: 150%; }

/* ── 2. CARD SYSTEM ──────────────────────────────────────────────────────── */
.v-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: .875rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.v-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 12px 40px rgba(59,130,246,.08);
  transform: translateY(-3px);
}
.v-card-header {
  padding: 1.25rem 1.5rem .875rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.v-card-body { padding: 1.25rem 1.5rem; }
.v-card-footer {
  padding: .875rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Glass card */
.v-card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: .875rem;
}

/* Stat/KPI card */
.v-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: .875rem;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.v-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-purple-dark), var(--accent-purple));
  border-radius: 1rem 1rem 0 0;
}
.v-stat:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 8px 28px rgba(59,130,246,.10);
}
.v-stat-value {
  font-family: 'Oxanium', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: .25rem;
}
.v-stat-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.v-stat-change {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  margin-top: .5rem;
}
.v-stat-change.up { background: rgba(34,197,94,.12); color: #4ade80; }
.v-stat-change.down { background: rgba(239,68,68,.12); color: #f87171; }

/* ── 3. FORM SYSTEM ──────────────────────────────────────────────────────── */
.form-label {
  display: block;
  margin-bottom: .4rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--form-label-color);
}
.form-label.required::after { content: ' *'; color: var(--st-error); }

.form-input,
.form-control {
  display: block;
  width: 100%;
  padding: .625rem .875rem;
  background: var(--form-input-bg);
  border: 1px solid var(--form-input-border);
  border-radius: .5rem;
  color: var(--text-primary);
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:hover,
.form-control:hover { border-color: var(--border-default); }

.form-input:focus,
.form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.form-input::placeholder,
.form-control::placeholder { color: var(--text-muted); opacity: .7; }

.form-input:disabled,
.form-control:disabled { opacity: .5; cursor: not-allowed; }

select.form-input,
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1.1rem;
  padding-right: 2.25rem;
}

textarea.form-input,
textarea.form-control {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-input,
.input-group .form-control {
  border-radius: .5rem 0 0 .5rem;
  border-right: none;
  flex: 1;
}
.input-group .esports-btn {
  border-radius: 0 .5rem .5rem 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

.form-hint {
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.form-error {
  margin-top: .35rem;
  font-size: .78rem;
  color: var(--st-error);
}

/* ── 4. TABLE SYSTEM ─────────────────────────────────────────────────────── */
.esports-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .875rem;
}
.esports-table thead th {
  padding: .75rem 1rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}
.esports-table thead th:first-child { border-radius: .625rem 0 0 0; }
.esports-table thead th:last-child  { border-radius: 0 .625rem 0 0; }

.esports-table tbody td {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}
.esports-table tbody tr:last-child td { border-bottom: none; }
.esports-table tbody tr:hover td {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* ── 5. BADGE SYSTEM ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-purple { background: var(--bd-purple-bg); color: var(--bd-purple); border-color: var(--bd-purple-brd); }
.badge-cyan   { background: var(--bd-cyan-bg);   color: var(--bd-cyan);   border-color: var(--bd-cyan-brd); }
.badge-green  { background: var(--bd-green-bg);  color: var(--bd-green);  border-color: var(--bd-green-brd); }
.badge-red    { background: var(--bd-red-bg);    color: var(--bd-red);    border-color: var(--bd-red-brd); }
.badge-amber  { background: var(--bd-amber-bg);  color: var(--bd-amber);  border-color: var(--bd-amber-brd); }
.badge-slate  { background: var(--bd-slate-bg);  color: var(--bd-slate);  border-color: var(--bd-slate-brd); }
.badge-live   {
  background: rgba(34,197,94,.12);
  color: #4ade80;
  border-color: rgba(34,197,94,.3);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .72; }
}

/* ── 6. NAVBAR DROPDOWN ──────────────────────────────────────────────────── */
#userMenuDropdown {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-default) !important;
  border-radius: .75rem !important;
  box-shadow: 0 20px 48px rgba(2,6,23,.5) !important;
  overflow: hidden !important;
  padding: .25rem 0 !important;
  width: 14rem !important;
}
#userMenuDropdown .px-4.py-3 {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle) !important;
}
#userMenuDropdown a,
#userMenuDropdown button {
  border-radius: 0 !important;
  transition: background .15s, color .15s !important;
}
#userMenuDropdown a:hover,
#userMenuDropdown button:hover {
  background: var(--teal-glow-sm) !important;
  color: var(--text-primary) !important;
}

/* ── 7. TOAST SYSTEM ─────────────────────────────────────────────────────── */
#toastStack { pointer-events: none; }
.toast {
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: .75rem;
  box-shadow: 0 16px 40px rgba(2,6,23,.45);
  min-width: 280px;
  max-width: 380px;
  position: relative;
  overflow: hidden;
  animation: toast-in .3s cubic-bezier(.2,.8,.2,1);
}
.toast.hiding {
  animation: toast-out .25s ease-in forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); max-height: 80px; }
  to   { opacity: 0; transform: translateX(-16px); max-height: 0; padding: 0; }
}
.toast-success { border-left: 3px solid #4ade80; }
.toast-error   { border-left: 3px solid #f87171; }
.toast-warning { border-left: 3px solid #fbbf24; }
.toast-info    { border-left: 3px solid var(--accent-purple); }

.toast-icon { font-size: 1.1rem; margin-top: .1rem; flex-shrink: 0; }
.toast-success .toast-icon { color: #4ade80; }
.toast-error   .toast-icon { color: #f87171; }
.toast-warning .toast-icon { color: #fbbf24; }
.toast-info    .toast-icon { color: var(--accent-purple); }

.toast-msg { flex: 1; font-size: .875rem; color: var(--text-secondary); line-height: 1.4; }

.toast-close {
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer; font-size: 1rem;
  padding: 0 .25rem;
  transition: color .15s;
  flex-shrink: 0;
}
.toast-close:hover { color: var(--text-primary); }

.toast-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--border-default);
  animation: toast-bar 4.5s linear forwards;
}
.toast-success .toast-bar { background: #4ade80; }
.toast-error   .toast-bar { background: #f87171; }
.toast-warning .toast-bar { background: #fbbf24; }
.toast-info    .toast-bar { background: var(--accent-purple); }
@keyframes toast-bar {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ── 8. TOURNAMENT CARD ──────────────────────────────────────────────────── */
.t-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: .875rem;
  overflow: hidden;
  transition: border-color .22s, box-shadow .22s, transform .22s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.t-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 16px 48px rgba(59,130,246,.1);
  transform: translateY(-4px);
}
.t-card-top {
  height: 8px;
  background: linear-gradient(90deg, var(--accent-purple-dark), var(--accent-purple), var(--accent-cyan));
}
.t-card-body { padding: 1.25rem; flex: 1; }
.t-card-footer {
  padding: .875rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.t-card-game {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.t-card-title {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .625rem;
  line-height: 1.3;
}
.t-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .875rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.t-card-meta i { color: var(--accent-purple); }

/* Status badge overlay on cards */
.t-status {
  position: absolute;
  top: 1rem; right: 1rem;
}

/* ── 9. MATCH CARD ───────────────────────────────────────────────────────── */
.m-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: .875rem;
  transition: border-color .2s, box-shadow .2s;
  text-decoration: none;
}
.m-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 8px 28px rgba(59,130,246,.08);
}
.m-card.m-live {
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 0 24px rgba(34,197,94,.08);
}

.m-team {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.m-team.m-team-right {
  flex-direction: row-reverse;
  text-align: right;
}
.m-team-logo {
  width: 48px;
  height: 48px;
  border-radius: .5rem;
  background: var(--bg-elevated);
  object-fit: contain;
  padding: .25rem;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}
.m-team-name { font-weight: 600; color: var(--text-primary); font-size: .9375rem; }
.m-team-tag  { font-size: .72rem; color: var(--text-muted); font-family: 'Space Grotesk', monospace; }

.m-center { text-align: center; min-width: 80px; }
.m-score {
  font-family: 'Oxanium', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  line-height: 1;
}
.m-score-w { color: var(--accent-purple); }
.m-score-div { color: var(--text-muted); font-size: 1.25rem; }
.m-vs {
  font-family: 'Oxanium', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .08em;
}

/* ── 10. EMPTY STATE ─────────────────────────────────────────────────────── */
.v-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}
.v-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  color: var(--text-muted);
}
.v-empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .5rem;
}
.v-empty-sub {
  font-size: .875rem;
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ── 11. PAGE HEADER ─────────────────────────────────────────────────────── */
.v-page-header {
  margin-bottom: 2rem;
}
.v-page-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-purple);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.v-page-title {
  font-family: 'Oxanium', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: .5rem;
}
.v-page-sub {
  font-size: .9375rem;
  color: var(--text-secondary);
  max-width: 60ch;
  line-height: 1.6;
}

/* ── 12. FILTER BAR ──────────────────────────────────────────────────────── */
.v-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: .75rem;
  margin-bottom: 1.5rem;
}
.v-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .875rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.v-filter-pill:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.v-filter-pill.active {
  background: var(--teal-glow-sm);
  color: var(--accent-purple);
  border-color: var(--teal-border-md);
  font-weight: 600;
}

/* ── 13. SIDEBAR (Dashboard) ─────────────────────────────────────────────── */
.db-sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .875rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.db-sidebar-link:hover {
  background: var(--teal-glow-sm);
  color: var(--text-primary);
}
.db-sidebar-link.active {
  background: var(--teal-glow-md);
  color: var(--accent-purple);
  font-weight: 600;
}
.db-sidebar-link .db-sidebar-icon {
  width: 1.1rem;
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
}
.db-sidebar-link:hover .db-sidebar-icon,
.db-sidebar-link.active .db-sidebar-icon {
  color: var(--accent-purple);
}

/* ── 14. LIVE PULSE DOT ──────────────────────────────────────────────────── */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  position: relative;
  flex-shrink: 0;
}
.live-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #4ade80;
  animation: live-ring 1.8s ease-out infinite;
  opacity: 0;
}
@keyframes live-ring {
  0%   { transform: scale(.6); opacity: .8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── 15. PROGRESS BAR ────────────────────────────────────────────────────── */
.v-progress {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}
.v-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple-dark), var(--accent-purple));
  border-radius: 999px;
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}

/* ── 16. LIGHT THEME OVERRIDES ───────────────────────────────────────────── */
html[data-theme='light'] .esports-btn {
  box-shadow: 0 2px 10px rgba(15,126,122,.2);
}
html[data-theme='light'] .esports-btn:hover {
  box-shadow: 0 6px 18px rgba(15,126,122,.28);
}
html[data-theme='light'] .v-card,
html[data-theme='light'] .t-card,
html[data-theme='light'] .m-card {
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
html[data-theme='light'] #userMenuDropdown {
  box-shadow: 0 12px 32px rgba(15,23,42,.12) !important;
}
html[data-theme='light'] .toast {
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
}

/* ── 17. RESPONSIVE UTILS ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .esports-btn-xl { padding: .75rem 1.5rem; font-size: 1rem; }
  .v-page-title { font-size: 1.75rem; }
  .m-card {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .m-center { order: -1; }
  .m-team-logo { width: 36px; height: 36px; }
}

/* ── SKELETON LOADING (FE-004) ───────────────────────────────────────────── */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(30,41,59,.7) 25%,
    rgba(51,65,85,.9) 37%,
    rgba(30,41,59,.7) 63%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: .375rem;
}

/* Preset skeleton shapes */
.skeleton-text    { height: .875rem; border-radius: .25rem; }
.skeleton-title   { height: 1.25rem; border-radius: .25rem; }
.skeleton-avatar  { width: 2.5rem; height: 2.5rem; border-radius: 50%; flex-shrink: 0; }
.skeleton-badge   { height: 1.375rem; width: 4rem; border-radius: 9999px; }
.skeleton-thumb   { width: 100%; aspect-ratio: 16/9; border-radius: .5rem; }
.skeleton-btn     { height: 2.25rem; border-radius: .5rem; }

/* Tournament card skeleton */
.skeleton-tournament-card {
  background: rgba(15,23,42,.7);
  border: 1px solid rgba(51,65,85,.5);
  border-radius: .75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* Match list row skeleton */
.skeleton-match-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .875rem 1rem;
  border-bottom: 1px solid rgba(51,65,85,.3);
}

/* Leaderboard row skeleton */
.skeleton-lb-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .875rem;
  border-bottom: 1px solid rgba(51,65,85,.2);
}
