:root {
  --bg: #0b0f17;
  --surface: #121826;
  --surface-2: #182133;
  --border: #243047;
  --text: #e6edf7;
  --muted: #8b9bb4;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --cyan: #06b6d4;
  --green: #10b981;
  --red: #ef4444;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top right, #162036 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 22px 36px;
}

/* Topbar */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: #0b0f17;
  font-weight: 900;
  font-size: 16px;
  display: grid;
  place-items: center;
  letter-spacing: -0.5px;
}

.brand h1 {
  font-size: 19px;
  font-weight: 700;
}

.subtitle {
  font-size: 12px;
  color: var(--muted);
}

.topbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.control-group label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

select,
input,
textarea {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Buttons */
.btn {
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #0b0f17;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.btn-ghost:hover,
.btn-ghost.active {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

/* Status bar */
.status-bar {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.status-pill.ok {
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.demo-banner {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}

/* Tabs */
.tabs {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.tab-btn.active {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--accent);
}

.badge {
  background: var(--accent);
  color: #0b0f17;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
}

/* Main 2-column layout */
.main-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 18px;
  align-items: start;
}

@media (max-width: 1080px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

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

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.pill.active {
  background: rgba(6, 182, 212, 0.16);
  border-color: var(--cyan);
  color: #67e8f9;
}

.muted-text {
  color: var(--muted);
  font-size: 12px;
}

/* Match Cards */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.match-card:hover {
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateY(-1px);
}

.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.tournament-name {
  font-weight: 600;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-tags {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.tag-live {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.team-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-box.right {
  text-align: right;
  align-items: flex-end;
}

.team-name {
  font-size: 15px;
  font-weight: 700;
}

.team-rank {
  font-size: 11px;
  color: var(--cyan);
}

.form-dots {
  display: flex;
  gap: 3px;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.dot.W {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
}

.dot.L {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.score-center {
  text-align: center;
  min-width: 58px;
}

.score-big {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}

.live-map-sub {
  font-size: 11px;
  color: var(--accent);
}

.match-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(36, 48, 71, 0.7);
  padding-top: 10px;
  gap: 8px;
}

/* Inspector Panel */
.inspector-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 18px;
}

.inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.inspector-header h2 {
  font-size: 16px;
}

.pill-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--cyan);
}

.prediction-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pred-winner-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
}

.pred-winner-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

.pred-winner-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-hover);
  margin: 2px 0;
}

.prob-bar-wrap {
  margin-top: 8px;
}

.prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
}

.prob-bar {
  height: 10px;
  border-radius: 999px;
  background: #1e293b;
  overflow: hidden;
  display: flex;
}

.prob-t1 {
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  transition: width 0.4s ease;
}

.prob-t2 {
  background: linear-gradient(90deg, #0891b2, var(--cyan));
  transition: width 0.4s ease;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-tile {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.stat-tile .k {
  font-size: 11px;
  color: var(--muted);
}

.stat-tile .v {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.analysis-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
}

.analysis-block h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.analysis-block ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.risk-block {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.risk-block h4 {
  color: #fca5a5;
}

/* Manual tab & Cards */
.manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 820px) {
  .manual-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #cbd5e1;
}

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

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-row.end {
  justify-content: flex-end;
}

/* History */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.history-item:hover {
  border-color: var(--cyan);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 100;
}

.modal-card {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 700;
}

/* Misc */
.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
  font-size: 13px;
}

.loading-box {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
}

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

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

.hidden {
  display: none !important;
}

/* =====================================================================
   PGL MAJOR SINGAPORE 2026 — IN-GAME PICK'EM CHALLENGE THEME
   ===================================================================== */

.tab-btn.tab-major {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.tab-btn.tab-major.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(180, 83, 9, 0.3));
  border-color: #f59e0b;
  color: #fef08a;
}

.main-layout.major-full {
  grid-template-columns: 1fr;
}

.main-layout.major-full .inspector-panel {
  display: none;
}

.major-shell {
  background:
    radial-gradient(circle at 15% 20%, rgba(180, 83, 9, 0.26) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(146, 64, 14, 0.24) 0%, transparent 50%),
    linear-gradient(160deg, #2d1709 0%, #1f1007 55%, #160b05 100%);
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: 14px;
  padding: 18px 20px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.major-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
}

.major-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.major-stage-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d6c5b3;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.major-stage-btn:hover {
  border-color: rgba(245, 158, 11, 0.6);
  color: #fff;
}

.major-stage-btn.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #e0f2fe;
}

.major-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.major-subheader {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
}

.major-subheader h2 {
  font-size: 18px;
  color: #fef3c7;
}

.major-countdown {
  font-size: 13px;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
}

.major-ai-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.45);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}

.major-ai-box h4 {
  color: #67e8f9;
  margin-bottom: 6px;
  font-size: 13px;
}

.major-ai-box ul {
  margin-top: 6px;
  padding-left: 18px;
  color: #cbd5e1;
}

/* Swiss Board Layout */
.swiss-board {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1120px) {
  .swiss-board {
    grid-template-columns: 1fr;
  }
}

.swiss-pool {
  background: rgba(20, 10, 5, 0.55);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 12px;
}

.swiss-pool-header {
  text-align: center;
  margin-bottom: 10px;
}

.pool-title {
  font-size: 13px;
  font-weight: 700;
  color: #fef3c7;
}

.pool-sub {
  font-size: 11px;
  color: #b49b82;
}

.team-pool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.team-chip {
  background: rgba(54, 28, 14, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: grab;
  user-select: none;
  transition: transform 0.12s ease, border-color 0.12s ease, opacity 0.15s ease;
  position: relative;
}

.team-chip:hover {
  transform: translateY(-2px);
  border-color: #fbbf24;
}

.team-chip.picked {
  opacity: 0.38;
  border-style: dashed;
}

.team-emblem {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #0b0f17;
  letter-spacing: -0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.team-chip-name {
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 92px;
}

.team-chip-pct {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.team-chip-pct.low {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}

.team-chip-pct.mid {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
}

/* Swiss Bracket Columns */
.swiss-bracket-wrap {
  overflow-x: auto;
  padding-bottom: 6px;
}

.swiss-columns {
  display: grid;
  grid-template-columns: 185px 128px 128px 175px 255px;
  gap: 12px;
  min-width: 900px;
  align-items: center;
}

.swiss-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.swiss-box {
  background: rgba(68, 34, 18, 0.72);
  border: 1px solid rgba(180, 100, 50, 0.28);
  border-radius: 8px;
  padding: 8px 9px;
}

.swiss-box-title {
  font-size: 11px;
  font-weight: 800;
  color: #e7c9a9;
  text-align: right;
  margin-bottom: 6px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}

.bo3-tag {
  font-size: 9px;
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
  padding: 1px 4px;
  border-radius: 4px;
}

.swiss-r1-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.r1-match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
  background: rgba(28, 14, 7, 0.65);
  border-radius: 6px;
  padding: 5px 6px;
  font-size: 11px;
  font-weight: 700;
}

.r1-team {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.r1-team.right {
  justify-content: flex-end;
}

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

.r1-vs {
  font-size: 9px;
  color: #a18870;
}

.swiss-q-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.swiss-q-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(28, 14, 7, 0.45);
  color: #8c6e56;
  font-size: 11px;
  font-weight: 700;
}

.swiss-q-row span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}

/* Pick'Em Drop Zones (matching in-game green & crimson boxes!) */
.pickem-zone {
  border-radius: 10px;
  padding: 10px;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.pickem-zone.drag-over {
  border-color: #fde047;
  transform: scale(1.02);
}

.zone-3-0,
.zone-adv {
  background: linear-gradient(145deg, #1b6550, #144d3d);
  border-color: rgba(52, 211, 153, 0.35);
}

.zone-0-3 {
  background: linear-gradient(145deg, #831d37, #5e1326);
  border-color: rgba(251, 113, 133, 0.4);
}

.zone-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ecfdf5;
  text-align: center;
  margin-bottom: 8px;
}

.pickem-slots {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.slots-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-items: center;
}

.pickem-slot {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.48);
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.pickem-slot:hover {
  border-color: #fde047;
  background: rgba(0, 0, 0, 0.35);
}

.pickem-slot.filled {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(12, 18, 28, 0.85);
}

.pickem-slot .slot-tag {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
}

.pickem-slot .slot-pct {
  font-size: 10px;
  font-weight: 700;
  color: #fde68a;
}

.pickem-slot .slot-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
}

.major-picks-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.expected-box {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #bae6fd;
  text-align: center;
}

.made-picks-badge {
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fef3c7;
  background: rgba(0, 0, 0, 0.3);
}

.made-picks-badge.complete {
  border-style: solid;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
}

/* Playoffs Board */
.playoffs-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .playoffs-board {
    grid-template-columns: 1fr;
  }
}

.po-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.po-col-title {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #fcd34d;
  text-transform: uppercase;
}

.po-match {
  background: rgba(45, 22, 10, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.po-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
}

.po-team-row:hover {
  border-color: rgba(245, 158, 11, 0.6);
}

.po-team-row.winner {
  background: rgba(16, 185, 129, 0.24);
  border-color: #10b981;
  color: #ecfdf5;
}

/* Probability Table */
.major-table-card {
  margin-top: 18px;
  background: rgba(14, 10, 8, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 12px;
  padding: 14px 16px;
}

.major-table-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.major-table-header h3 {
  font-size: 15px;
  color: #fef3c7;
}

.major-table-wrap {
  overflow-x: auto;
}

.major-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.major-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 11px;
  text-transform: uppercase;
  color: #d6c5b3;
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
}

.major-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.major-table tr:hover td {
  background: rgba(245, 158, 11, 0.06);
}

.pct-bar-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pct-track {
  flex: 1;
  min-width: 70px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.pct-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #34d399);
}

.pct-fill.warn {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.pct-fill.danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.quick-pick-btns {
  display: flex;
  gap: 4px;
}

.qbtn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
}

.qbtn:hover {
  border-color: #fbbf24;
  color: #fef08a;
}

.qbtn.active-30,
.qbtn.active-adv {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
  color: #a7f3d0;
}

.qbtn.active-03 {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fecaca;
}

/* 2:3 & 1:3 Eliminated Mini Boxes */
.elim-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.elim-mini-box {
  background: rgba(58, 28, 15, 0.72);
  padding: 7px 8px;
}

.elim-mini-box .swiss-box-title {
  justify-content: center;
  font-size: 9.5px;
  color: #d6b89c;
  margin-bottom: 5px;
}

.elim-circles {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.elim-circles span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #8c6e56;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* 4-Column In-Game Playoffs Tree (QF -> SF -> GF -> Champion) */
.playoffs-board.po-tree {
  display: grid;
  grid-template-columns: repeat(4, minmax(195px, 1fr));
  gap: 24px;
  align-items: stretch;
  padding: 16px 10px 22px;
  overflow-x: auto;
}

.po-tree-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 14px;
  position: relative;
}

.po-tree-title {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #fcd34d;
  margin-bottom: 4px;
}

.po-pair {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding-right: 12px;
}

.po-pair::after {
  content: "";
  position: absolute;
  right: 0;
  top: 24%;
  bottom: 24%;
  width: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0 4px 4px 0;
}

.po-slot {
  background: rgba(24, 13, 7, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 42px;
}

.po-slot:hover {
  border-color: #fbbf24;
  background: rgba(45, 23, 10, 0.92);
}

.po-slot.dashed {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.35);
  color: #c7b299;
  justify-content: center;
}

.po-slot.picked {
  border-style: solid;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  color: #ecfdf5;
}

.po-slot.champ-slot {
  border-width: 2px;
  border-color: rgba(250, 204, 21, 0.6);
  min-height: 52px;
}

.po-slot.champ-slot.picked {
  border-color: #facc15;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(16, 185, 129, 0.22));
  color: #fef08a;
}

.po-pct-pill {
  font-size: 11px;
  font-weight: 800;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}
