html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #0f1117;
  color: #e8e8e8;
}

/* ── Bracket badge colors ── */
.bg-bracket-1 { background-color: #198754 !important; color: #fff !important; }
.bg-bracket-2 { background-color: #0d6efd !important; color: #fff !important; }
.bg-bracket-3 { background-color: #c78a00 !important; color: #fff !important; }
.bg-bracket-4 { background-color: #dc3545 !important; color: #fff !important; }
.bg-bracket-5 { background-color: #6f42c1 !important; color: #fff !important; }

.bracket-color-1 { color: #2dba7a; }
.bracket-color-2 { color: #4d91ff; }
.bracket-color-3 { color: #ffc107; }
.bracket-color-4 { color: #f06070; }
.bracket-color-5 { color: #a87de8; }

.border-bracket-1 { border-color: #198754 !important; }
.border-bracket-2 { border-color: #0d6efd !important; }
.border-bracket-3 { border-color: #c78a00 !important; }
.border-bracket-4 { border-color: #dc3545 !important; }
.border-bracket-5 { border-color: #6f42c1 !important; }

/* ── Hero ── */
.hero-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 12px;
  border: 1px solid #2a3a5c;
}

/* ── Stat cards ── */
.stat-card {
  background: #1a1f2e;
  border: 1px solid #2a3050;
  border-radius: 10px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  margin-top: 6px;
  color: #888;
  font-size: 0.85rem;
}

/* ── Action cards ── */
.action-card {
  background: #1a1f2e;
  border: 1px solid #2a3050;
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
  color: #e8e8e8;
}

.action-card:hover {
  border-color: #4d91ff;
  background: #1e2540;
  color: #fff;
}

.action-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.action-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.action-desc {
  font-size: 0.85rem;
  color: #888;
}

/* ── Player cards ── */
.player-card {
  transition: border-color 0.2s;
}

.player-card:hover {
  border-color: #4d91ff !important;
}

.deck-name {
  font-size: 0.9rem;
  color: #ccc;
}

/* ── Table group cards ── */
.table-group-card {
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.table-group-card:hover {
  transform: translateY(-2px);
}

/* Drag-and-drop */
.drag-item {
  cursor: grab;
}
.drag-item:active {
  cursor: grabbing;
}
.drag-active {
  opacity: 0.4;
}
.drop-target.drag-over {
  border-color: #ffc107 !important;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.35);
  background-color: rgba(255, 193, 7, 0.06) !important;
}

/* ── Empty state ── */
.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* ── Page header ── */
.page-header h2 {
  margin-bottom: 4px;
}

/* ── Current user's row highlight ── */
.my-player-row td {
  background-color: rgba(25, 135, 84, 0.18) !important;
  border-top-color: rgba(25, 135, 84, 0.35) !important;
  border-bottom-color: rgba(25, 135, 84, 0.35) !important;
}

/* ── Alt deck badges (admin view) ── */
.alt-deck-badge {
  opacity: 0.55;
  font-size: .65rem;
}

/* ── Mixed section ── */
.mixed-section {
  background: rgba(255, 193, 7, 0.05);
}

/* ── Forms ── */
.form-control:focus,
.form-select:focus {
  background-color: #1a1f2e;
  color: #e8e8e8;
  border-color: #4d91ff;
  box-shadow: 0 0 0 2px rgba(77, 145, 255, 0.2);
}
