.fantasy-shell { width:min(1360px,calc(100% - 80px)); max-width:100%; box-sizing:border-box; margin-inline:auto; padding-bottom:100px; }
@media(max-width:900px) { .fantasy-shell { width:calc(100% - 48px); } }
@media(max-width:680px) { .fantasy-shell { width:calc(100% - 32px); } }
@media(max-width:480px) { .fantasy-shell { width:calc(100% - 24px); } }
.fantasy-skip { position:fixed; top:8px; left:8px; transform:translateY(-200%); z-index:100; background:var(--bg-card); padding:12px; color:var(--text-primary); }
.fantasy-skip:focus { transform:none; }
.fantasy-heading { padding:32px 0 20px; }
.fantasy-heading h1 { font-size:clamp(30px,5.2vw,58px); line-height:1.04; margin:6px 0 2px; letter-spacing:.03em; text-transform:none; overflow-wrap:anywhere; }
.fantasy-heading p { margin:8px 0; color:var(--text-secondary); }
.fantasy-heading .fantasy-brand-subtitle { margin:0; color:var(--text-primary); font-size:13px; font-weight:700; letter-spacing:.1em; line-height:1.35; }
.fantasy-heading .fantasy-brand-edition { display:block; margin:2px 0 0; color:var(--text-secondary); font-size:10px; font-weight:700; letter-spacing:.16em; line-height:1.2; }
.fantasy-heading > p:last-child { margin:10px 0 0; }
.fantasy-deadline { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 20px; border:1px solid color-mix(in srgb,var(--color-faceit-orange) 55%,var(--border-default)); border-left:4px solid var(--color-faceit-orange); border-radius:var(--radius-lg); background:linear-gradient(100deg,rgba(255,85,0,.11),var(--bg-surface) 55%); }
.fantasy-deadline-copy { display:grid; gap:3px; min-width:0; }
.fantasy-deadline-copy > strong { color:var(--text-primary); font-size:16px; }
.fantasy-deadline-copy > span:not(.portal-kicker), .fantasy-deadline-copy time, .fantasy-deadline-copy small { color:var(--text-secondary); font-size:11px; }
.fantasy-deadline-copy small { line-height:1.5; }
.fantasy-countdown { display:grid; justify-items:end; gap:3px; min-width:190px; }
.fantasy-countdown strong { color:var(--color-faceit-orange); font:32px/1 var(--font-display); font-variant-numeric:tabular-nums; white-space:nowrap; }
.fantasy-statusbar { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:16px; padding:12px 0; border-bottom:1px solid var(--border-subtle); }
.fantasy-statusbar strong { color:var(--color-faceit-hover); }
.fantasy-wallet-badge { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:6px 12px; border:1px solid var(--border-light); border-radius:999px; background:var(--bg-surface); font-variant-numeric:tabular-nums; white-space:nowrap; }
.fantasy-wallet-badge img { width:44px; height:28px; object-fit:contain; }
.fantasy-wallet-badge strong { color:var(--text-primary); font-size:18px; }
.fantasy-wallet-badge span { color:var(--text-secondary); font-size:12px; }
#fantasy-feedback {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 85, 0, 0.06);
  border: 1px solid rgba(255, 85, 0, 0.2);
  border-radius: var(--radius-md, 8px);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin: 10px 0;
  transition: all 0.2s ease;
}
#fantasy-feedback:empty {
  display: none;
}
#fantasy-feedback[data-error="true"] {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--status-danger);
}
#fantasy-feedback .hud-spinner {
  flex-shrink: 0;
}

.fantasy-nav { display:flex; gap:8px; border-bottom:1px solid var(--border-subtle); margin:18px 0 24px; flex-wrap:wrap; }
.fantasy-nav a { display:flex; min-height:44px; align-items:center; padding:10px 18px; color:var(--text-secondary); text-decoration:none; border-bottom:2px solid transparent; font-weight:600; }
.fantasy-nav a[aria-current="page"] { color:var(--text-primary); border-color:var(--color-faceit-orange); }
.fantasy-area[hidden], [hidden] { display:none !important; }
.fantasy-area h2 { font-family:var(--font-display); font-weight:400; font-size:30px; letter-spacing:.05em; margin:18px 0; }
.fantasy-area h3 { margin:24px 0 10px; }
#fantasy-popularity-summary { padding:10px 12px; border-left:3px solid var(--color-hud-cyan); background:var(--bg-surface); font-size:13px; }
.fantasy-popularity-table td:first-child { color:var(--color-faceit-hover); font-weight:700; }
.fantasy-popularity-table td strong { color:var(--text-primary); }
.fantasy-area p { color:var(--text-secondary); }
.fantasy-shell button:not(.fantasy-view-btn):not([class*="fantasy-btn-pitch"]):not(.fantasy-pitch-btn-empty):not(.cj-sort-button):not(.cj-disclosure), dialog button, .fantasy-bottom { min-height:44px; padding:10px 14px; background:var(--bg-card); color:var(--text-primary); border:1px solid var(--border-light); border-radius:8px; font:inherit; cursor:pointer; }
.fantasy-shell button:not(.fantasy-view-btn):not([class*="fantasy-btn-pitch"]):not(.fantasy-pitch-btn-empty):not(.cj-sort-button):not(.cj-disclosure):hover, dialog button:hover { border-color:var(--color-hud-cyan); }
.fantasy-shell button:not(.fantasy-view-btn):not([class*="fantasy-btn-pitch"]):not(.fantasy-pitch-btn-empty):not(.cj-sort-button):not(.cj-disclosure):disabled, dialog button:disabled { opacity:.55; cursor:not-allowed; }
.fantasy-shell .fantasy-primary, dialog .fantasy-primary { background:var(--color-faceit-orange); color:var(--bg-canvas); border-color:var(--color-faceit-orange); font-weight:700; }
.fantasy-shell :focus-visible, dialog :focus-visible, .fantasy-bottom:focus-visible { outline:3px solid var(--color-primary-light); outline-offset:3px; }
.fantasy-shell label, dialog label { display:grid; gap:6px; color:var(--text-secondary); font-size:13px; }
.fantasy-shell input, .fantasy-shell select:not(.input), dialog input, dialog select:not(.input), dialog textarea { min-height:44px; width:100%; border:1px solid var(--border-light); border-radius:8px; padding:10px 12px; font:inherit; color:var(--text-primary); background:var(--bg-input); }
.fantasy-shell input::placeholder, dialog input::placeholder { color:var(--text-secondary); }
.fantasy-market-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; align-items:start; }
.fantasy-market-main { min-width:0; }
.fantasy-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.fantasy-filters label:first-child { grid-column:span 2; }
.fantasy-table-wrap { position:relative; overflow-x:auto; border:1px solid var(--border-subtle); border-radius:12px; background:var(--bg-surface); }
.fantasy-table-wrap:empty { border:0; }
.fantasy-table { border-collapse:collapse; width:100%; font-size:14px; }
.fantasy-table caption { text-align:left; padding:14px; font-size:14px; color:var(--text-secondary); }
.fantasy-table th { text-align:left; color:var(--text-secondary); background:var(--bg-card); padding:12px; font-size:14px; white-space:nowrap; }
.fantasy-table td { padding:10px 12px; border-bottom:1px solid var(--border-subtle); font-variant-numeric:tabular-nums; }
.fantasy-table td.num, .fantasy-table th.num { text-align:right; }
.fantasy-table td.player { min-width:170px; }
.fantasy-table small { display:block; color:var(--text-secondary); font-size:12px; }
.fantasy-player-name { display:flex; align-items:center; gap:8px; }
.fantasy-avatar { height:36px; width:36px; object-fit:cover; object-position:center 22%; border-radius:8px; background:var(--bg-card); border:1px solid var(--border-light); }
.fantasy-player-cell { display:flex; align-items:center; gap:12px; }
.fantasy-player-avatar-wrap { position:relative; flex-shrink:0; width:36px; height:36px; }
.fantasy-pot-indicator { position:absolute; bottom:-3px; right:-3px; font-size:10px; font-weight:700; padding:1px 4px; border-radius:4px; line-height:1; }
.fantasy-player-info { display:flex; flex-direction:column; gap:2px; min-width:0; }
.fantasy-player-team { display:inline-flex; align-items:center; gap:6px; color:var(--text-secondary); }
.fantasy-team-mini-logo { width:16px; height:16px; object-fit:contain; flex-shrink:0; vertical-align:middle; }
.fantasy-opp-cell { display:inline-flex; align-items:center; gap:6px; }

.fantasy-table button:not(.cj-sort-button):not(.cj-disclosure) {
  min-height:38px;
  padding:6px 16px;
  font-size:13px;
  font-weight:700;
  border-radius:8px;
  cursor:pointer;
  transition:all 0.15s ease;
  white-space:nowrap;
}
.fantasy-table button[data-action="buy"] {
  background:rgba(255,85,0,0.12);
  border:1px solid rgba(255,85,0,0.35);
  color:var(--color-faceit-orange);
}
.fantasy-table button[data-action="buy"]:hover:not(:disabled) {
  background:var(--color-faceit-orange);
  border-color:var(--color-faceit-orange);
  color:#0A0A0F;
  box-shadow:0 2px 10px rgba(255,85,0,0.3);
}
.fantasy-table button[data-action="buy"]:disabled {
  background:rgba(255,255,255,0.03);
  border-color:rgba(255,255,255,0.08);
  color:var(--text-secondary);
  opacity:0.4;
  cursor:not-allowed;
  box-shadow:none;
}
.fantasy-table button[data-action="sell"] {
  background:rgba(239,68,68,0.1);
  border:1px solid rgba(239,68,68,0.3);
  color:#F87171;
}
.fantasy-table button[data-action="sell"]:hover:not(:disabled) {
  background:#EF4444;
  border-color:#EF4444;
  color:#FFFFFF;
  box-shadow:0 2px 10px rgba(239,68,68,0.3);
}
.fantasy-table button[data-action="sell"]:disabled {
  opacity:0.4;
  cursor:not-allowed;
}

.fantasy-team-profile-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:20px; padding:16px 20px; background:var(--bg-surface); border:1px solid var(--border-subtle); border-radius:var(--radius-lg, 12px); }
.fantasy-profile-badge-row { display:flex; align-items:center; gap:14px; }
.fantasy-user-profile-img { width:48px; height:48px; border-radius:50%; object-fit:cover; border:2px solid var(--color-faceit-orange); background:var(--bg-card); flex-shrink:0; }
.fantasy-user-initials-badge { width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:var(--font-sans); font-weight:800; font-size:18px; color:#FFFFFF; border:2px solid rgba(255,255,255,0.25); text-shadow:0 1px 3px rgba(0,0,0,0.6); flex-shrink:0; }
.fantasy-team-title { margin:0; font-size:20px; font-weight:700; color:var(--text-primary); letter-spacing:-0.01em; line-height:1; }

.fantasy-roster-status-bar { padding:10px 14px; border-radius:8px; font-size:13px; font-weight:600; margin-bottom:16px; display:flex; align-items:center; }
.fantasy-roster-status-bar.is-valid { background:rgba(16, 185, 129, 0.12); color:var(--status-success); border:1px solid rgba(16, 185, 129, 0.3); }
.fantasy-roster-status-bar.is-incomplete { background:rgba(245, 158, 11, 0.12); color:var(--status-warning); border:1px solid rgba(245, 158, 11, 0.3); }

.fantasy-roster { position:sticky; top:150px; background:var(--bg-surface); border:1px solid var(--border-subtle); border-radius:12px; padding:18px; }
.fantasy-wallet { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; border-block:1px solid var(--border-subtle); padding:18px 0; margin-bottom:18px; }
.fantasy-wallet div { display:grid; gap:4px; }
.fantasy-wallet dt { color:var(--text-secondary); font-size:12px; }
.fantasy-wallet dd { margin:0; font-family:var(--font-display); font-size:30px; font-variant-numeric:tabular-nums; }
.fantasy-currency { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.fantasy-currency img { width:40px; height:24px; object-fit:contain; }
.fantasy-roster .fantasy-wallet { gap:8px; }
.fantasy-roster .fantasy-wallet dd { font-size:24px; }

.fantasy-pitch-header-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.fantasy-pitch-section-title { margin:2px 0 0; font-size:18px; font-weight:700; color:var(--text-primary); }

.fantasy-view-switcher,
.fantasy-shell .fantasy-view-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  box-sizing: border-box;
}
.fantasy-view-btn,
.fantasy-shell .fantasy-view-switcher .fantasy-view-btn {
  min-height: 38px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  white-space: nowrap;
}
.fantasy-view-btn:hover,
.fantasy-shell .fantasy-view-switcher .fantasy-view-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
}
.fantasy-view-btn.is-active,
.fantasy-shell .fantasy-view-switcher .fantasy-view-btn.is-active {
  background: var(--color-faceit-orange);
  color: #0A0A0F;
  font-weight: 800;
  border-color: var(--color-faceit-orange);
  box-shadow: 0 2px 10px rgba(255, 85, 0, 0.35);
}
.fantasy-view-btn.is-active:hover,
.fantasy-shell .fantasy-view-switcher .fantasy-view-btn.is-active:hover {
  background: var(--color-faceit-orange);
  color: #0A0A0F;
  border-color: var(--color-faceit-orange);
}
.fantasy-view-btn:focus-visible,
.fantasy-shell .fantasy-view-switcher .fantasy-view-btn:focus-visible {
  outline: 2px solid var(--color-hud-cyan);
  outline-offset: 2px;
}

/* Tactical Soccer Pitch (Campo Tático) */
.fantasy-soccer-pitch {
  position:relative;
  width:100%;
  max-width:880px;
  min-height:640px;
  margin:0 auto 24px auto;
  background:radial-gradient(ellipse at 50% 50%, #103820 0%, #0A2415 65%, #05160D 100%);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 36px, transparent 36px, transparent 72px),
    radial-gradient(ellipse at 50% 50%, #103820 0%, #0A2415 65%, #05160D 100%);
  border:2px solid rgba(255,255,255,0.22);
  border-radius:18px;
  box-shadow:0 16px 40px rgba(0,0,0,0.7), inset 0 0 60px rgba(0,0,0,0.45);
  overflow:hidden;
  padding:24px 16px 20px 16px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.fantasy-pitch-watermark { position:absolute; top:12px; left:20px; font-family:var(--font-display); font-size:14px; color:rgba(255,255,255,0.28); letter-spacing:0.1em; text-transform:uppercase; pointer-events:none; }
.fantasy-pitch-watermark-right { position:absolute; top:12px; right:20px; font-family:var(--font-display); font-size:14px; color:rgba(255,255,255,0.28); letter-spacing:0.1em; text-transform:uppercase; pointer-events:none; }

.fantasy-pitch-line-mid { position:absolute; top:50%; left:16px; right:16px; height:1.5px; background:rgba(255,255,255,0.24); transform:translateY(-50%); pointer-events:none; }
.fantasy-pitch-circle-center { position:absolute; top:50%; left:50%; width:130px; height:130px; border:1.5px solid rgba(255,255,255,0.24); border-radius:50%; transform:translate(-50%, -50%); pointer-events:none; }
.fantasy-pitch-circle-center::after { content:''; position:absolute; top:50%; left:50%; width:8px; height:8px; background:rgba(255,255,255,0.55); border-radius:50%; transform:translate(-50%, -50%); }

.fantasy-pitch-box-top { position:absolute; top:0; left:50%; transform:translateX(-50%); width:46%; height:72px; border:1.5px solid rgba(255,255,255,0.2); border-top:none; border-bottom-left-radius:8px; border-bottom-right-radius:8px; pointer-events:none; }
.fantasy-pitch-arc-top { position:absolute; top:72px; left:50%; transform:translateX(-50%); width:80px; height:36px; border:1.5px solid rgba(255,255,255,0.2); border-top:none; border-bottom-left-radius:40px; border-bottom-right-radius:40px; pointer-events:none; }

.fantasy-pitch-box-bottom { position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:46%; height:72px; border:1.5px solid rgba(255,255,255,0.2); border-bottom:none; border-top-left-radius:8px; border-top-right-radius:8px; pointer-events:none; }
.fantasy-pitch-arc-bottom { position:absolute; bottom:72px; left:50%; transform:translateX(-50%); width:80px; height:36px; border:1.5px solid rgba(255,255,255,0.2); border-bottom:none; border-top-left-radius:40px; border-top-right-radius:40px; pointer-events:none; }

/* Pitch Formation Rows (1-2-2) */
.fantasy-pitch-row { position:relative; z-index:2; display:flex; align-items:center; width:100%; }
.fantasy-pitch-row-attack { justify-content:space-around; width:82%; margin:8px auto 0 auto; }
.fantasy-pitch-row-mid { justify-content:space-between; width:92%; margin:16px auto; }
.fantasy-pitch-row-def { justify-content:center; width:100%; margin:0 auto 8px auto; }

/* Pitch Node (Player on Field) */
.fantasy-pitch-node {
  display:flex;
  flex-direction:column;
  align-items:center;
  width:206px;
  min-width:192px;
  text-align:center;
  position:relative;
  transition:transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing:border-box;
}
.fantasy-pitch-node:hover { transform:translateY(-3px); }

.fantasy-pitch-avatar-wrap { position:relative; width:68px; height:68px; flex-shrink:0; }
.fantasy-pitch-avatar {
  width:68px;
  height:68px;
  border-radius:50%;
  object-fit:cover;
  object-position:center 22%;
  display:block;
  border:2.5px solid rgba(255,255,255,0.4);
  background:#13131A;
  box-shadow:0 6px 16px rgba(0,0,0,0.6);
}
.fantasy-pitch-node.is-captain .fantasy-pitch-avatar {
  border-color:var(--color-faceit-orange);
  box-shadow:0 0 0 3px rgba(255,85,0,0.35), 0 0 20px rgba(255,85,0,0.6);
}

/* Captain Armband ("Faixa de Capitão") */
.fantasy-pitch-armband {
  position:absolute;
  bottom:-4px;
  left:50%;
  transform:translateX(-50%);
  background:linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color:#0A0A0F;
  border:1.5px solid #FEF3C7;
  border-radius:10px;
  padding:2px 7px;
  font-family:var(--font-display, 'Bebas Neue');
  font-size:12px;
  font-weight:900;
  letter-spacing:0.04em;
  line-height:1;
  display:inline-flex;
  align-items:center;
  gap:4px;
  box-shadow:0 3px 8px rgba(0,0,0,0.6), 0 0 10px rgba(245,158,11,0.5);
  z-index:4;
  white-space:nowrap;
}
.fantasy-pitch-armband-letter {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:13px;
  height:13px;
  border-radius:50%;
  background:#0A0A0F;
  color:#F59E0B;
  font-size:9px;
  font-weight:900;
  line-height:1;
}
.fantasy-pitch-captain-ribbon {
  position:absolute;
  top:-8px;
  background:var(--color-faceit-orange);
  color:#0A0A0F;
  font-family:var(--font-sans);
  font-size:9px;
  font-weight:900;
  letter-spacing:0.04em;
  padding:1px 6px;
  border-radius:4px;
  box-shadow:0 2px 6px rgba(0,0,0,0.5);
  white-space:nowrap;
  z-index:4;
}

/* Pitch Info Card */
.fantasy-pitch-info {
  margin-top:8px;
  background:rgba(10, 10, 15, 0.94);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.16);
  border-radius:12px;
  padding:10px 12px 14px 12px;
  width:100%;
  box-sizing:border-box;
  box-shadow:0 4px 18px rgba(0,0,0,0.65);
  display:flex;
  flex-direction:column;
  gap:4px;
  overflow:hidden;
}
.fantasy-pitch-node.is-captain .fantasy-pitch-info {
  border-color:rgba(255,85,0,0.5);
  box-shadow:0 4px 16px rgba(0,0,0,0.6), 0 0 14px rgba(255,85,0,0.22);
  margin-top:14px;
}
.fantasy-pitch-name {
  font-size:14px;
  font-weight:700;
  color:#FFFFFF;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  letter-spacing:-0.01em;
  line-height:1.2;
}
.fantasy-pitch-team {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-size:11px;
  color:#CBD5E1;
  width:100%;
  box-sizing:border-box;
  min-width:0;
  line-height:1.2;
}
.fantasy-pitch-team-name {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:calc(100% - 20px);
  display:inline-block;
}
.fantasy-pitch-price {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  font-size:12px;
  color:var(--color-faceit-hover);
  font-weight:700;
  line-height:1;
  margin:2px 0;
}
.fantasy-pitch-price .fantasy-pastuca-coin { width:14px; height:14px; object-fit:contain; flex-shrink:0; }
.fantasy-pitch-pot { font-size:10px; font-weight:800; padding:1px 4px; border-radius:3px; line-height:1; }

.fantasy-pitch-actions {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,0.08);
  width:100%;
  box-sizing:border-box;
}
.fantasy-shell .fantasy-pitch-actions button,
.fantasy-shell .fantasy-btn-pitch-captain,
.fantasy-shell .fantasy-btn-pitch-sell,
.fantasy-btn-pitch-captain,
.fantasy-btn-pitch-sell {
  flex:1 1 0;
  min-height:30px !important;
  height:30px !important;
  padding:0 6px !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:600;
  line-height:1;
  border-radius:6px;
  white-space:nowrap;
  box-sizing:border-box;
  cursor:pointer;
  transition:all 0.15s ease;
  text-align:center;
}
.fantasy-btn-pitch-captain {
  background:transparent;
  border:1px solid rgba(255,255,255,0.2);
  color:#D1D5DB;
}
.fantasy-btn-pitch-captain:hover, .fantasy-btn-pitch-captain.is-active {
  background:rgba(255,85,0,0.18);
  border-color:var(--color-faceit-orange);
  color:var(--color-faceit-hover);
  font-weight:700;
}
.fantasy-btn-pitch-sell {
  background:transparent;
  border:1px solid rgba(239, 68, 68, 0.35);
  color:#EF4444;
}
.fantasy-btn-pitch-sell:hover { background:rgba(239, 68, 68, 0.15); border-color:#EF4444; }

/* Empty Pitch Slot */
.fantasy-pitch-slot.is-empty .fantasy-pitch-avatar-wrap {
  border:2px dashed rgba(255,255,255,0.35);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.3);
  transition:all 0.2s ease;
}
.fantasy-pitch-btn-empty {
  background:transparent;
  border:none;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  border-radius:50%;
}
.fantasy-pitch-slot.is-empty:hover .fantasy-pitch-avatar-wrap {
  border-color:var(--color-hud-cyan);
  background:rgba(14, 165, 233, 0.15);
}
.fantasy-pitch-plus { font-size:26px; color:var(--color-hud-cyan); font-weight:300; line-height:1; }
.fantasy-pitch-pos-label { font-size:10px; color:var(--color-hud-cyan); font-weight:700; letter-spacing:0.04em; text-transform:uppercase; }
.fantasy-btn-pitch-market {
  background:rgba(14, 165, 233, 0.15);
  border:1px solid rgba(14, 165, 233, 0.4);
  color:var(--color-hud-cyan);
  font-size:11px;
  font-weight:700;
  padding:4px 8px;
  border-radius:4px;
  cursor:pointer;
  margin-top:2px;
  transition:all 0.15s ease;
}
.fantasy-btn-pitch-market:hover { background:var(--color-hud-cyan); color:#0A0A0F; }

/* Detailed List Card View */
.fantasy-roster-list { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.fantasy-pick-card { background:var(--bg-surface); border:1px solid var(--border-subtle); border-radius:12px; padding:12px 14px; transition:border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease; position:relative; overflow:hidden; box-sizing:border-box; }
.fantasy-pick-card::before { content:''; position:absolute; top:0; left:0; bottom:0; width:4px; background:var(--border-light); }
.fantasy-pick-card.is-captain { border-color:var(--color-faceit-orange); background:linear-gradient(135deg, rgba(255,85,0,0.06) 0%, var(--bg-surface) 100%); box-shadow:0 0 16px rgba(255,85,0,0.12); }
.fantasy-pick-card.is-captain::before { background:var(--color-faceit-orange); }

.fantasy-pick-head { display:flex; align-items:center; gap:10px; width:100%; box-sizing:border-box; }
.fantasy-pick-avatar-wrap { position:relative; flex-shrink:0; width:46px; height:46px; }
.fantasy-pick-avatar { width:46px; height:46px; border-radius:50%; object-fit:cover; object-position:center 22%; border:2px solid var(--border-light); background:var(--bg-card); display:block; }
.fantasy-pick-card.is-captain .fantasy-pick-avatar { border-color:var(--color-faceit-orange); }

/* Armband strip on list cards */
.fantasy-armband-strip {
  position:absolute;
  bottom:-3px;
  left:50%;
  transform:translateX(-50%);
  background:linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color:#0A0A0F;
  border:1px solid #FEF3C7;
  border-radius:8px;
  padding:1px 5px;
  font-family:var(--font-display, 'Bebas Neue');
  font-size:10px;
  font-weight:900;
  letter-spacing:0.04em;
  line-height:1;
  display:inline-flex;
  align-items:center;
  gap:2px;
  box-shadow:0 2px 4px rgba(0,0,0,0.5);
  z-index:3;
  white-space:nowrap;
}
.fantasy-armband-c {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#0A0A0F;
  color:#F59E0B;
  font-size:8px;
  font-weight:900;
  line-height:1;
}

.fantasy-pick-pot { position:absolute; top:-3px; right:-3px; font-size:10px; font-weight:800; padding:1px 5px; border-radius:4px; line-height:1.2; box-shadow:0 2px 4px rgba(0,0,0,0.4); }

.fantasy-pick-identity { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:3px; overflow:hidden; }
.fantasy-pick-name-line { display:flex; align-items:center; gap:6px; min-width:0; }
.fantasy-pick-name { font-size:15px; font-weight:700; color:var(--text-primary); letter-spacing:-0.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fantasy-captain-badge { display:inline-flex; align-items:center; gap:3px; background:var(--color-faceit-orange); color:#0A0A0F; font-size:9px; font-weight:900; padding:2px 5px; border-radius:4px; letter-spacing:0.04em; white-space:nowrap; flex-shrink:0; line-height:1; }
.fantasy-roster .fantasy-captain-badge .badge-cap-full { display:none; }

.fantasy-pick-team-line { display:flex; align-items:center; gap:5px; color:var(--text-secondary); font-size:11px; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fantasy-pick-team-name { font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.fantasy-pick-cost { flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; justify-content:center; text-align:right; gap:2px; min-width:58px; }
.fantasy-pick-price-row { display:inline-flex; align-items:center; gap:4px; line-height:1; }
.fantasy-pastuca-coin { width:14px; height:14px; object-fit:contain; flex-shrink:0; }
.fantasy-pick-cost strong { font-family:var(--font-sans); font-size:16px; font-weight:800; color:var(--color-faceit-hover); line-height:1; display:inline-block; font-variant-numeric:tabular-nums; }
.fantasy-pick-cost small { font-size:10px; color:var(--text-secondary); line-height:1; text-transform:uppercase; letter-spacing:0.04em; }

.fantasy-pick-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:10px; padding-top:8px; border-top:1px solid rgba(255,255,255,0.06); }
.fantasy-pick-stats { display:flex; gap:12px; font-size:12px; color:var(--text-secondary); }
.fantasy-pick-stats strong { color:var(--text-primary); }

.fantasy-roster-actions { display:flex; align-items:center; gap:6px; }
.fantasy-shell .fantasy-btn-captain,
.fantasy-shell .fantasy-btn-sell,
.fantasy-btn-captain,
.fantasy-btn-sell { min-height:30px; height:30px; padding:0 10px; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; font-size:11px; font-weight:600; line-height:1; white-space:nowrap; border-radius:6px; cursor:pointer; transition:all 0.15s ease; }
.fantasy-btn-captain { background:transparent; border:1px solid var(--border-light); color:var(--text-secondary); }
.fantasy-btn-captain:hover { border-color:var(--color-faceit-orange); color:var(--color-faceit-hover); }
.fantasy-btn-captain.is-active, .fantasy-roster-list [aria-pressed="true"] { background:rgba(255,85,0,0.15); border-color:var(--color-faceit-orange); color:var(--color-faceit-hover); font-weight:700; }
.fantasy-btn-sell { background:transparent; border:1px solid var(--border-subtle); color:var(--status-danger); }
.fantasy-btn-sell:hover { background:rgba(239, 68, 68, 0.1); border-color:var(--status-danger); }

.fantasy-pick-card.is-empty { border:1px dashed var(--border-light); background:rgba(255,255,255,0.015); }
.fantasy-pick-card.is-empty::before { display:none; }
.fantasy-empty-slot { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:4px 0; }
.fantasy-empty-slot-num { font-family:var(--font-display); font-size:20px; color:var(--color-hud-cyan); letter-spacing:0.05em; flex-shrink:0; background:rgba(14,165,233,0.1); padding:4px 10px; border-radius:6px; }
.fantasy-empty-desc { flex:1; min-width:0; }
.fantasy-empty-desc strong { display:block; font-size:14px; color:var(--text-primary); }
.fantasy-empty-desc small { font-size:12px; color:var(--text-secondary); }
.fantasy-btn-slot-market { background:rgba(14, 165, 233, 0.12); border:1px solid rgba(14, 165, 233, 0.35); color:var(--color-hud-cyan); font-size:12px; font-weight:700; padding:8px 14px; border-radius:6px; cursor:pointer; transition:all 0.15s ease; }
.fantasy-btn-slot-market:hover { background:var(--color-hud-cyan); color:#0A0A0F; border-color:var(--color-hud-cyan); }
.fantasy-empty-locked { font-size:12px; color:var(--text-muted); font-weight:600; }

.fantasy-roster-footer { margin-top:20px; padding-top:16px; border-top:1px solid var(--border-subtle); display:grid; gap:12px; }
.fantasy-btn-share-main { background:var(--color-faceit-orange); color:#0A0A0F; border-color:var(--color-faceit-orange); font-weight:700; font-size:14px; width:100%; letter-spacing:0.02em; }
.fantasy-btn-share-main:hover { background:var(--color-faceit-hover); border-color:var(--color-faceit-hover); }
.fantasy-closed-note { color:var(--status-warning); font-size:12px; margin:0; }

.fantasy-ranking-table tr.is-current-user { background:rgba(255, 85, 0, 0.08); }
.fantasy-ranking-table tr.is-current-user td:first-child { border-left:3px solid var(--color-faceit-orange); }
.fantasy-ranking-user { display:flex; align-items:center; gap:12px; min-height:44px; }
.fantasy-ranking-avatar-wrap { position:relative; width:36px; height:36px; flex-shrink:0; }
.fantasy-ranking-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; border:2px solid var(--border-light); background:var(--bg-card); display:block; }
.fantasy-ranking-initials { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; color:#FFFFFF; border:1px solid rgba(255,255,255,0.25); text-shadow:0 1px 2px rgba(0,0,0,0.6); flex-shrink:0; }
.fantasy-ranking-user-info { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.fantasy-ranking-name { font-weight:600; font-size:14px; color:var(--text-primary); }
.fantasy-you-tag { background:var(--color-faceit-orange); color:#0A0A0F; font-size:10px; font-weight:800; padding:2px 6px; border-radius:4px; text-transform:uppercase; letter-spacing:0.04em; }
.fantasy-rank-podium { display:inline-flex; align-items:center; gap:6px; font-family:var(--font-display); font-size:18px; }
.fantasy-rank-podium.rank-1 { color:#FCD34D; }
.fantasy-rank-podium.rank-2 { color:#E2E8F0; }
.fantasy-rank-podium.rank-3 { color:#FDBA74; }
.fantasy-rank-num { font-family:var(--font-display); font-size:17px; color:var(--text-secondary); }

#fantasy-share-pdf { background:linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.08)); border-color:rgba(14, 165, 233, 0.4); color:var(--color-hud-cyan); font-weight:600; }
#fantasy-share-pdf:hover { border-color:var(--color-hud-cyan); background:rgba(14, 165, 233, 0.28); }

.fantasy-valid { color:var(--status-success) !important; }
.fantasy-incomplete { color:var(--status-warning) !important; }
.fantasy-empty { padding:24px; border:1px dashed var(--border-light); border-radius:12px; color:var(--text-secondary); }
.fantasy-create { display:flex; align-items:end; gap:12px; flex-wrap:wrap; margin:24px 0; }
.fantasy-create label { width:min(320px,100%); }
.fantasy-round { padding:20px 0; border-bottom:1px solid var(--border-subtle); }
.fantasy-round h3 { margin:0 0 8px; }

.fantasy-round ul { padding-left:20px; }
.fantasy-rules { max-width:850px; }
.fantasy-rules p { font-size:16px; line-height:1.65; }
.fantasy-rules pre { padding:18px; background:var(--bg-surface); border:1px solid var(--border-subtle); border-radius:12px; overflow-x:auto; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; }
.fantasy-rules a { color:var(--color-primary-light); }
dialog { color:var(--text-primary); background:var(--bg-surface); border:1px solid var(--border-light); border-radius:12px; width:min(560px,calc(100% - 32px)); max-height:90dvh; padding:24px; }
dialog::backdrop { background:rgba(0,0,0,.75); }
dialog form { display:grid; gap:16px; }
.fantasy-dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.fantasy-share-canvas-container {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 18px;
}
#fantasy-share-canvas { display:block; width:100%; height:auto; border-radius:8px; }
.fantasy-share-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.fantasy-share-overlay[hidden] {
  display: none !important;
}

.fantasy-shell button.is-loading,
dialog button.is-loading {
  position: relative;
  opacity: 0.85;
  cursor: wait !important;
  pointer-events: none;
}
.fantasy-btn-pitch-captain.is-loading,
.fantasy-btn-pitch-sell.is-loading,
.fantasy-btn-captain.is-loading,
.fantasy-btn-sell.is-loading,
.fantasy-table button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fantasy-soccer-pitch.is-skeleton {
  pointer-events: none;
  opacity: 0.88;
}
.fantasy-pitch-node.is-skeleton {
  border-color: rgba(255, 255, 255, 0.08);
}
.fantasy-team-profile-bar.is-skeleton {
  pointer-events: none;
}
.fantasy-table.is-skeleton tbody tr {
  pointer-events: none;
}
.fantasy-share-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
#fantasy-admin { margin-top:30px; padding:20px; background:var(--bg-surface); border:1px solid var(--border-light); border-radius:12px; }
#fantasy-admin form { display:grid; gap:12px; }
#fantasy-admin textarea { width:100%; min-height:160px; background:var(--bg-input); color:var(--text-primary); border:1px solid var(--border-light); border-radius:8px; padding:12px; }
#fantasy-admin pre { overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
.fantasy-bottom { display:none; }
@media(max-width:1023px) {
  .fantasy-market-layout { grid-template-columns:minmax(0,1fr); }
  .fantasy-roster { display:none; }
  .fantasy-bottom { display:block; position:fixed; bottom:max(12px,env(safe-area-inset-bottom)); left:16px; right:16px; z-index:40; background:var(--color-faceit-orange); color:var(--bg-canvas); font-weight:700; box-shadow:var(--shadow-card); }
  .fantasy-bottom[hidden] { display:none; }
}
@media(max-width:767px) {
  .fantasy-heading { padding-top:24px; }
  .fantasy-heading h1 { font-size:44px; }
  .fantasy-deadline { align-items:flex-start; flex-direction:column; gap:12px; padding:14px; }
  .fantasy-countdown { justify-items:start; min-width:0; }
  .fantasy-countdown strong { font-size:28px; }
  .fantasy-nav { gap:0; }
  .fantasy-nav a { padding:10px 12px; font-size:13px; }
  .fantasy-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fantasy-filters label:first-child { grid-column:span 2; }
  .fantasy-wallet { gap:8px; }
  .fantasy-wallet dd { font-size:26px; }
  .fantasy-soccer-pitch {
    min-height:540px;
    padding:16px 8px 14px 8px;
    border-radius:14px;
  }
  .fantasy-pitch-row-attack { width:96%; }
  .fantasy-pitch-row-mid { width:100%; margin:12px auto; }
  .fantasy-pitch-row-def { width:100%; }
  .fantasy-pitch-node { width:142px; }
  .fantasy-pitch-node.is-captain .fantasy-pitch-info { margin-top:10px; }
  .fantasy-pitch-avatar-wrap { width:52px; height:52px; }
  .fantasy-pitch-avatar { width:52px; height:52px; border-width:2px; }
  .fantasy-pitch-armband { font-size:10px; padding:1px 5px; bottom:-3px; }
  .fantasy-pitch-armband-letter { width:11px; height:11px; font-size:8px; }
  .fantasy-pitch-captain-ribbon { font-size:8px; top:-6px; padding:1px 4px; }
  .fantasy-pitch-info { padding:6px 8px 10px 8px; margin-top:6px; gap:3px; border-radius:10px; }
  .fantasy-pitch-name { font-size:12px; }
  .fantasy-pitch-team { font-size:10px; gap:3px; }
  .fantasy-pitch-team img { width:12px; height:12px; }
  .fantasy-pitch-price { font-size:11px; gap:3px; }
  .fantasy-pitch-price img { width:12px; height:12px; }
  .fantasy-pitch-actions { margin-top:6px; padding-top:6px; gap:4px; }
  .fantasy-btn-pitch-captain { font-size:10px; padding:0 4px; min-height:28px; height:28px; border-radius:5px; }
  .fantasy-btn-pitch-sell { font-size:10px; padding:0 4px; min-height:28px; height:28px; border-radius:5px; }
  .fantasy-btn-pitch-market { font-size:10px; padding:3px 6px; }
  .fantasy-pitch-watermark, .fantasy-pitch-watermark-right { font-size:11px; top:8px; }
}
@media(max-width:480px) {
  .fantasy-pitch-header-row { flex-direction:column; align-items:flex-start; gap:8px; }
  .fantasy-soccer-pitch { min-height:510px; padding:14px 4px 12px 4px; }
  .fantasy-pitch-node { width:128px; }
  .fantasy-pitch-node.is-captain .fantasy-pitch-info { margin-top:8px; }
  .fantasy-pitch-avatar-wrap { width:46px; height:46px; }
  .fantasy-pitch-avatar { width:46px; height:46px; }
  .fantasy-pitch-name { font-size:11px; }
  .fantasy-pitch-team { font-size:9px; }
  .fantasy-pitch-info { padding:5px 6px 9px 6px; border-radius:8px; }
  .fantasy-pitch-actions { margin-top:5px; padding-top:5px; gap:3px; }
  .fantasy-btn-pitch-captain { font-size:9.5px; padding:0 2px; min-height:26px; height:26px; border-radius:4px; }
  .fantasy-btn-pitch-sell { font-size:9.5px; padding:0 2px; min-height:26px; height:26px; border-radius:4px; }
}
@media(max-width:375px) {
  html, body { overflow-x:hidden; max-width:100%; }
  .fantasy-shell { width:calc(100% - 24px); max-width:100%; box-sizing:border-box; overflow-x:hidden; }
  .fantasy-deadline { padding:12px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; } }

/* Public round preview, independent of official settlement and private lineups. */
.fantasy-preview { margin-block:var(--space-4); padding:var(--space-5); border:1px solid var(--border-default); border-radius:var(--radius-lg); background:var(--bg-surface); min-width:0; }
.fantasy-preview-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:var(--space-3); }
.fantasy-preview h2, .fantasy-preview h3 { margin:0; }
.fantasy-preview p { color:var(--text-secondary); line-height:1.6; margin-block:var(--space-2); }
.fantasy-preview-label { color:var(--text-primary); border:1px solid var(--color-hud-cyan); border-radius:var(--radius-sm); padding:var(--space-2); font-size:13px; }

.fantasy-preview-players > summary { color:var(--text-primary); font-weight:600; }
.fantasy-preview-team { margin-top:var(--space-5); }
.fantasy-preview .fantasy-table { min-width:440px; width:100%; }
.fantasy-preview .fantasy-table-wrap { max-width:100%; overflow-x:auto; }
.fantasy-preview td { vertical-align:top; }
.fantasy-preview ul { padding-left:var(--space-4); margin-block:var(--space-2); line-height:1.8; }
.fantasy-preview a { color:var(--text-primary); text-decoration:underline; }
.fantasy-preview-reason { display:block; max-width:34ch; line-height:1.6; margin-top:var(--space-2); color:var(--text-secondary); }
@media(max-width:480px) { .fantasy-preview { padding:var(--space-3); } }
.fantasy-preview li a { display:inline-flex; align-items:center; min-height:44px; }

.fantasy-public-controls { display:flex; gap:var(--space-3); flex-wrap:wrap; align-items:center; margin-block:var(--space-4); }
.fantasy-public-controls[hidden] { display:none; }
.fantasy-player-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--space-4); margin-block:var(--space-5); }
.fantasy-player-filters label { display:grid; gap:var(--space-2); min-width:0; }
.fantasy-players-table { min-width:680px; width:100%; }
.fantasy-player-expand { text-align:left; width:100%; }
.fantasy-player-expand small { display:flex; align-items:center; gap:var(--space-2); font-weight:400; margin-top:var(--space-1); }
.fantasy-player-history-label,.fantasy-player-note { display:block; font-size:12px; color:var(--text-secondary); margin-top:var(--space-1); font-weight:400; }
.fantasy-player-history td { background:var(--bg-surface); }
.fantasy-player-history a { min-height:44px; padding-block:var(--space-3); }
.fantasy-player-history a { display:inline-block; }
.fantasy-player-history p { max-width:45ch; white-space:normal; }
@media(max-width:900px) { .fantasy-player-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .fantasy-player-filters { grid-template-columns:minmax(0,1fr); } }
#players-title { display:flex; align-items:center; gap:var(--space-2); }
.fantasy-ranking-controls { display:flex; align-items:end; flex-wrap:wrap; gap:var(--space-4); margin-block:var(--space-4); }
.fantasy-ranking-controls label { display:grid; gap:var(--space-2); min-width:200px; }
.fantasy-ranking-notice { padding:var(--space-4); background:var(--bg-surface); border-left:3px solid var(--color-hud-cyan); line-height:1.7; }

/* Ranking: one neutral surface, aligned totals and a single partial context. */
#fantasy-ranking-status { color:var(--text-secondary); font-size:0.8125rem; margin-block:var(--space-3); }
#fantasy-leaderboard { background:var(--bg-surface); }
.fantasy-ranking-context { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:var(--space-4); padding:var(--space-5); border-bottom:1px solid var(--border-subtle); border-top:2px solid var(--color-faceit-orange); }
.fantasy-ranking-context.is-official { border-top-color:var(--border-light); }
.fantasy-ranking-context p { margin:0; }
#fantasy-ranking .fantasy-ranking-eyebrow { color:var(--text-primary); font-weight:700; font-size:0.9375rem; }
.fantasy-ranking-coverage { color:var(--text-secondary); font-size:0.8125rem; margin-top:var(--space-2) !important; }
.fantasy-ranking-source { color:var(--text-secondary); font-size:0.75rem; text-align:right; }
.fantasy-ranking-source time { display:block; margin-top:var(--space-1); }
.fantasy-ranking-table { table-layout:fixed; }
.fantasy-ranking-col-position { width:64px; }.fantasy-ranking-col-name { width:auto; }.fantasy-ranking-col-points { width:23%; }.fantasy-ranking-col-wealth { width:27%; }
.fantasy-ranking-table caption { padding:var(--space-4) var(--space-5); font-size:0.75rem; }
.fantasy-ranking-table thead th { background:var(--bg-surface); border-bottom:1px solid var(--border-light); font-size:0.8125rem; padding:var(--space-3) var(--space-5); }
.fantasy-ranking-table thead small { font-weight:400; margin-top:var(--space-1); font-size:0.75rem; }
.fantasy-ranking-table tbody th,.fantasy-ranking-table tbody td { background:transparent; border-bottom:1px solid var(--border-subtle); padding:var(--space-3) var(--space-5); vertical-align:middle; }
.fantasy-ranking-table tbody tr:last-child>* { border-bottom:0; }
.fantasy-ranking-table tbody tr:hover { background:var(--bg-dark); }
.fantasy-ranking-table .fantasy-ranking-participant { white-space:normal; overflow-wrap:anywhere; }
.fantasy-ranking-table .fantasy-ranking-name { color:var(--text-primary); font-weight:600; }
.fantasy-ranking-table .fantasy-ranking-position { text-align:center; color:var(--text-secondary); font-variant-numeric:tabular-nums; }
.fantasy-ranking-table .fantasy-ranking-leader .fantasy-ranking-position { color:var(--color-faceit-hover); font-weight:700; }
.fantasy-ranking-table .fantasy-ranking-points { font-size:1.0625rem; color:var(--text-primary); }
.fantasy-ranking-table .num { text-align:right; font-variant-numeric:tabular-nums; }
.fantasy-ranking-wealth { color:var(--text-primary); white-space:nowrap; }
.fantasy-ranking-table .fantasy-ranking-delta { margin-top:var(--space-1); font-size:0.75rem; white-space:nowrap; }
.fantasy-ranking-delta.is-positive { color:var(--status-success); }.fantasy-ranking-delta.is-negative { color:var(--status-danger); }.fantasy-ranking-delta.is-neutral { color:var(--text-secondary); }
.fantasy-ranking-delta span:not(.sr-only) { color:var(--text-secondary); }
@media(max-width:680px) {
 .fantasy-ranking-context { padding:var(--space-4); gap:var(--space-3); }
 .fantasy-ranking-source { text-align:left; }.fantasy-ranking-source time { display:inline; margin-left:var(--space-2); }
 .fantasy-ranking-col-position { width:48px; }.fantasy-ranking-col-name { width:auto; }.fantasy-ranking-col-points { width:23%; }.fantasy-ranking-col-wealth { width:36%; }
 .fantasy-ranking-table caption { padding:var(--space-3); }
 .fantasy-ranking-table thead th,.fantasy-ranking-table tbody th,.fantasy-ranking-table tbody td { padding:var(--space-4) var(--space-2); }
 .fantasy-ranking-table thead th { white-space:normal; font-size:0.75rem; }.fantasy-ranking-table thead small { font-size:0.6875rem; }
 .fantasy-ranking-table .fantasy-ranking-name { font-size:0.8125rem; }.fantasy-ranking-table .fantasy-ranking-points { font-size:0.9375rem; }
 .fantasy-ranking-table .fantasy-ranking-delta { white-space:normal; }.fantasy-ranking-table .fantasy-ranking-delta span:not(.sr-only) { display:block; }
}

.fantasy-score-summary { margin-block:var(--space-5); padding:var(--space-5); border:1px solid var(--border-subtle); border-radius:var(--radius-lg); background:var(--bg-surface); }
.fantasy-score-summary h3 { margin:0 0 var(--space-4); font-size:1rem; }
.fantasy-score-summary dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-5); margin:0; }
.fantasy-score-summary dl>div { min-width:0; padding-inline:var(--space-4); border-left:1px solid var(--border-subtle); }
.fantasy-score-summary dl>div:first-child { border-left:0; padding-left:0; }
.fantasy-score-summary dt { color:var(--text-secondary); font-size:0.8125rem; line-height:1.5; }
.fantasy-score-summary dd { margin:var(--space-2) 0; font-size:1.5rem; font-weight:700; color:var(--text-primary); font-variant-numeric:tabular-nums; }
.fantasy-score-summary small { display:block; color:var(--text-secondary); font-size:0.75rem; line-height:1.5; }
@media(max-width:680px) { .fantasy-score-summary dl { grid-template-columns:1fr; gap:var(--space-4); }.fantasy-score-summary dl>div { border-left:0; border-top:1px solid var(--border-subtle); padding:var(--space-4) 0 0; }.fantasy-score-summary dl>div:first-child { border-top:0; padding-top:0; } }
.fantasy-score-summary .fantasy-score-unit { display:inline; font-size:0.75rem; font-weight:400; color:var(--text-secondary); }
.fantasy-score-summary dd small { display:block; margin-top:var(--space-2); font-weight:400; }

/* Participant identity and canonical ranking positions one through three; no ranking rule changes. */
.fantasy-ranking-identity { display:flex; align-items:center; gap:var(--space-2); min-width:0; }
.fantasy-ranking-names { display:grid; min-width:0; gap:2px; }
.fantasy-ranking-identity .fantasy-ranking-name { min-width:0; overflow-wrap:anywhere; }
.fantasy-ranking-owner-name { color:var(--text-secondary); font-size:0.75rem; font-weight:400; line-height:1.3; overflow-wrap:anywhere; }
.fantasy-ranking-avatar-slot { position:relative; display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; flex:0 0 32px; overflow:hidden; border:1px solid var(--border-light); border-radius:var(--radius-full); background:var(--bg-medium); color:var(--text-primary); font-size:0.6875rem; font-weight:600; letter-spacing:0; }
.fantasy-ranking-profile-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fantasy-ranking-table tbody tr[data-ranking-emphasis="1"] { background:var(--bg-card); }
.fantasy-ranking-table tbody tr[data-ranking-emphasis="2"] { background:var(--bg-medium); }
.fantasy-ranking-table tbody tr[data-ranking-emphasis="3"] { background:var(--bg-surface); }
.fantasy-ranking-table tr[data-ranking-emphasis="1"] .fantasy-ranking-position { box-shadow:inset 2px 0 var(--color-faceit-orange); }
.fantasy-ranking-table tr[data-ranking-emphasis="1"] .fantasy-ranking-name { font-weight:700; }
.fantasy-ranking-table tr[data-ranking-emphasis="1"] .fantasy-ranking-points { font-size:1.1875rem; }
.fantasy-ranking-table tr[data-ranking-emphasis="2"] .fantasy-ranking-points { font-size:1.125rem; }
.fantasy-ranking-table tr[data-ranking-emphasis="3"] .fantasy-ranking-position { color:var(--text-primary); }
@media(max-width:680px) {
 .fantasy-ranking-avatar-slot { width:24px; height:24px; flex-basis:24px; font-size:0.625rem; }
 .fantasy-ranking-table tr[data-ranking-emphasis="1"] .fantasy-ranking-points { font-size:1.0625rem; }
 .fantasy-ranking-table tr[data-ranking-emphasis="2"] .fantasy-ranking-points { font-size:1rem; }
}

/* Alignment is local; shared control tokens own icon size, spacing and targets. */
.fantasy-ranking-table .num .cj-sort-button { justify-content:flex-end; }
.fantasy-ranking-table thead .fantasy-ranking-position { padding-inline:0; }
.fantasy-ranking-table .cj-control-label { flex:0 1 auto; }

.fantasy-ranking-table { min-width:480px; }
.fantasy-ranking-table thead th { padding-inline:var(--space-2); }

/* Match the shared solid-orange action palette; leave captain badges/tints alone. */
.fantasy-shell button:not(.fantasy-view-btn):not([class*="fantasy-btn-pitch"]):not(.fantasy-pitch-btn-empty):not(.cj-sort-button):not(.cj-disclosure):is(.fantasy-primary,.fantasy-btn-share-main), dialog .fantasy-primary, .fantasy-view-btn.is-active, .fantasy-shell .fantasy-view-switcher .fantasy-view-btn.is-active, .fantasy-bottom { color:var(--action-orange-text); background:var(--action-orange-bg); border-color:var(--action-orange-bg); }
.fantasy-shell button:not(.fantasy-view-btn):not([class*="fantasy-btn-pitch"]):not(.fantasy-pitch-btn-empty):not(.cj-sort-button):not(.cj-disclosure):is(.fantasy-primary,.fantasy-btn-share-main):hover:not(:disabled), dialog .fantasy-primary:hover:not(:disabled), .fantasy-view-btn.is-active:hover:not(:disabled), .fantasy-shell .fantasy-view-switcher .fantasy-view-btn.is-active:hover:not(:disabled), .fantasy-bottom:hover:not(:disabled) { color:var(--action-orange-text); background:var(--action-orange-hover); border-color:var(--action-orange-hover); }
.fantasy-shell button:not(.fantasy-view-btn):not([class*="fantasy-btn-pitch"]):not(.fantasy-pitch-btn-empty):not(.cj-sort-button):not(.cj-disclosure):is(.fantasy-primary,.fantasy-btn-share-main):active:not(:disabled), dialog .fantasy-primary:active:not(:disabled), .fantasy-view-btn.is-active:active:not(:disabled), .fantasy-shell .fantasy-view-switcher .fantasy-view-btn.is-active:active:not(:disabled), .fantasy-bottom:active:not(:disabled) { background:var(--action-orange-active); border-color:var(--action-orange-active); }
.fantasy-shell button:not(.fantasy-view-btn):not([class*="fantasy-btn-pitch"]):not(.fantasy-pitch-btn-empty):not(.cj-sort-button):not(.cj-disclosure):is(.fantasy-primary,.fantasy-btn-share-main):disabled, dialog .fantasy-primary:disabled, .fantasy-view-btn.is-active:disabled, .fantasy-shell .fantasy-view-switcher .fantasy-view-btn.is-active:disabled, .fantasy-bottom:disabled { opacity:1; color:var(--action-orange-text); background:var(--action-orange-disabled); border-color:var(--border-default); box-shadow:none; }
.fantasy-shell .fantasy-table button:not(.fantasy-view-btn):not([class*="fantasy-btn-pitch"]):not(.fantasy-pitch-btn-empty):not(.cj-sort-button):not(.cj-disclosure)[data-action="buy"]:hover:not(:disabled) { color:var(--action-orange-text); background:var(--action-orange-hover); border-color:var(--action-orange-hover); }

/* Public frozen lineup uses the shared disclosure and the existing pitch artwork. */
.fantasy-ranking-pitch-col { width:64px; }
.fantasy-ranking-table .fantasy-ranking-pitch-cell { position:sticky; right:0; z-index:1; background:var(--bg-surface); padding-inline:calc(var(--space-1)/2); text-align:center; }
.fantasy-ranking-table tr[data-ranking-emphasis="1"] .fantasy-ranking-pitch-cell { background:var(--bg-card); }
.fantasy-ranking-table tr[data-ranking-emphasis="2"] .fantasy-ranking-pitch-cell { background:var(--bg-medium); }
.fantasy-ranking-table:has(.fantasy-ranking-pitch-col) { min-width:528px; }
@media(max-width:680px) { .fantasy-ranking-pitch-col { width:48px; } }
.fantasy-ranking-pitch-toggle .cj-control-label { min-width:0; }
.fantasy-ranking-pitch-toggle .fantasy-ranking-identity { min-width:0; }
.fantasy-ranking-pitch-panel[hidden] { display:none; }
.fantasy-ranking-table .fantasy-ranking-pitch-panel>td { padding:var(--space-5); background:var(--bg-canvas); white-space:normal; }
.fantasy-ranking-pitch-panel h3 { margin:0 0 var(--space-4); color:var(--text-primary); font-size:1rem; }
.fantasy-ranking-pitch-field.fantasy-soccer-pitch { max-width:640px; min-height:480px; padding:var(--space-5) var(--space-3); margin-bottom:var(--space-3); }
.fantasy-ranking-pitch-field .fantasy-pitch-node { width:42%; min-width:0; transition:none; }
.fantasy-ranking-pitch-field .fantasy-pitch-node:hover { transform:none; }
.fantasy-ranking-pitch-field .fantasy-pitch-row { gap:var(--space-4); }
.fantasy-ranking-pitch-field .fantasy-pitch-info { padding:var(--space-3); gap:var(--space-2); }
.fantasy-ranking-pitch-field .fantasy-pitch-name { white-space:normal; overflow-wrap:anywhere; color:var(--text-primary); }
.fantasy-ranking-pitch-field .fantasy-pitch-team { color:var(--text-secondary); white-space:normal; flex-wrap:wrap; font-size:0.75rem; }
.fantasy-ranking-pitch-captain { color:var(--color-faceit-orange); font-size:0.75rem; font-weight:700; }
.fantasy-ranking-pitch-field .fantasy-pitch-info { background:var(--bg-canvas); backdrop-filter:none; }
.fantasy-ranking-pitch-panel section { position:sticky; left:var(--space-5); max-width:calc(100vw - var(--space-16) - var(--space-5)); }

/* Individual round note, shared only by the two pitch views. */
.fantasy-soccer-pitch .fantasy-pitch-round-score { display:flex; flex-direction:column; align-items:center; gap:calc(var(--space-1)/2); min-width:0; max-width:100%; padding:var(--space-1) calc(var(--space-1)/2); border:1px solid var(--border-subtle); border-radius:var(--radius-sm); background:var(--bg-surface); color:var(--text-primary); line-height:1.4; }
.fantasy-soccer-pitch .fantasy-pitch-round-score strong { font-size:0.8125rem; font-weight:700; font-variant-numeric:tabular-nums; white-space:normal; }
.fantasy-soccer-pitch .fantasy-pitch-round-score small { font-size:0.75rem; color:var(--text-secondary); white-space:normal; overflow-wrap:anywhere; }

/* Keep five own-roster cards inside the field, including round-score labels. */
.fantasy-own-pitch .fantasy-pitch-node { min-width:0; width:42%; max-width:206px; }
.fantasy-own-pitch .fantasy-pitch-name { white-space:normal; overflow-wrap:anywhere; }
@media(max-width:960px) {
  .fantasy-own-pitch .fantasy-pitch-actions { flex-direction:column; }
  .fantasy-shell .fantasy-own-pitch .fantasy-pitch-actions button { flex:auto; width:100%; min-height:var(--control-target,44px) !important; height:auto !important; white-space:normal; }
}
