:root {
  --bg-1: #060912;
  --bg-2: #0a1220;
  --bg-3: #050811;
  --text: #ffffff;
  --text-dim: rgba(255,255,255,0.65);
  --text-faint: rgba(255,255,255,0.42);
  --glass: rgba(255,255,255,0.05);
  --glass-strong: rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.10);
  --home: #2a9bff;
  --away: #ff4d4d;
  --accent: #2ecc71;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 15% 0%, rgba(46,204,113,0.05), transparent 60%),
    radial-gradient(900px 600px at 85% 100%, rgba(42,155,255,0.05), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2), var(--bg-3));
  background-attachment: fixed;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}

#app {
  width: 100%;
  height: 100vh; /* fallback */
  height: 100dvh;
  display: flex; flex-direction: column;
}

button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; padding: 0; }
svg { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-weight: 600; font-size: 14px;
  transition: background 0.2s ease, transform 0.12s ease;
}
.btn:hover { background: rgba(255,255,255,0.14); }
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: rgba(255,255,255,0.95);
  color: #0a1322;
  border-color: transparent;
}
.btn-primary:hover { background: white; }

.btn-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--glass); border: 1px solid var(--glass-border);
  display: inline-grid; place-items: center; color: var(--text);
  transition: background 0.2s ease;
}
.btn-icon:hover { background: var(--glass-strong); }

/* === Dashboard === */
.dashboard { width: 100%; height: 100%; overflow-y: auto; padding: 28px clamp(14px, 4vw, 40px); }
.dashboard-header { margin-bottom: 22px; }
.brand-text h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.brand-text p { margin: 2px 0 0; color: var(--text-dim); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

.card-tile {
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; position: relative;
  transition: transform 0.15s ease, background 0.2s ease;
}
.card-tile:hover { transform: translateY(-2px); background: var(--glass-strong); }
.card-thumb {
  aspect-ratio: 100 / 65;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1ea64a, #0f5b27);
}
.card-thumb svg { width: 100%; height: 100%; display: block; }

.card-menu-btn {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; border-radius: 4px;
  background: rgba(0,0,0,0.55); color: white;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
}
.card-lock {
  position: absolute; top: 6px; left: 6px;
  width: 26px; height: 26px; border-radius: 4px;
  background: rgba(0,0,0,0.55); color: white;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
}
.card-title {
  font-size: 14px; font-weight: 700; padding: 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.new-tile {
  border-radius: var(--r-lg);
  border: 1.5px dashed rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 192px;
  color: rgba(255,255,255,0.78); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.new-tile:hover { background: rgba(255,255,255,0.08); color: white; border-color: rgba(255,255,255,0.36); }
.new-tile .plus-icon { color: var(--text-dim); }

/* === Editor === */
.editor {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%; gap: 8px; padding: 8px;
}

.editor-header {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px;
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
}
.editor-header h2 {
  margin: 0; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.editor-header h2 .edit-pencil { color: var(--text-faint); opacity: 0.7; }
.editor-header .spacer { flex: 1; min-width: 4px; }

.editor-stage {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 8px; min-height: 0;
}
.editor[data-board-mode="solo"] .editor-stage {
  grid-template-columns: 220px 1fr;
}

.field-stage {
  display: flex; align-items: center; justify-content: center;
  min-height: 0; min-width: 0;
}
.field-wrap {
  position: relative;
  aspect-ratio: 1050 / 680;
  width: 100%;
  max-height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}
.field-svg, .strokes-host > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.strokes-host > svg { pointer-events: none; }
.field-wrap[data-mode="draw"] .strokes-host > svg { pointer-events: auto; }
.players-layer { position: absolute; inset: 0; }

/* === PLAYER — escudo flutuante === */
.player {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  touch-action: none; cursor: grab;
  transition: transform 0.12s ease;
}
.player[data-dragging="true"] { cursor: grabbing; z-index: 20; transition: none; }
.player .badge {
  width: 38px; height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7)) drop-shadow(0 0 6px rgba(0,0,0,0.35));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.player[data-dragging="true"] .badge { transform: scale(1.16); }
.player .badge.fallback {
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 16px;
  border-radius: 4px;
  background: var(--home);
  border: 2px solid rgba(255,255,255,0.85);
}
.player .badge.fallback[data-team="away"] { background: var(--away); }
.player .label {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px;
  background: rgba(0,0,0,0.78);
  border-radius: 4px;
  white-space: nowrap; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.1px;
}

/* === Bench === */
.bench {
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden; min-height: 0; min-width: 0;
}
.bench-header { display: flex; align-items: center; gap: 6px; }
.bench-header .team-name {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.team-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px; border-radius: 5px;
  background: rgba(255,255,255,0.06);
  font-weight: 600; font-size: 11px;
}
.chip-name { white-space: nowrap; }
.chip-badge {
  width: 16px; height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.bench-list {
  flex: 1; overflow-y: auto; padding-right: 3px;
  display: flex; flex-direction: column; gap: 3px;
}
.bench-list::-webkit-scrollbar { width: 5px; height: 5px; }
.bench-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 3px; }

.bench-section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 9px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--text-faint);
  padding: 8px 2px 3px;
}
.bench-section-title:not(:first-child) {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 4px;
}
.bench-section-title .count {
  font-weight: 700; color: var(--text-dim);
  background: rgba(255,255,255,0.06);
  padding: 0 6px; border-radius: 5px; font-size: 9px;
}
.bench-empty {
  color: var(--text-faint); font-size: 10px;
  padding: 4px 6px; font-style: italic;
}

.bench-row {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 7px; border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  touch-action: none;
}
.bench-row[data-draggable="true"] { cursor: grab; }
.bench-row[data-draggable="true"]:hover { background: rgba(255,255,255,0.08); }
.bench-row[data-status="out"] { opacity: 0.55; }
.bench-row .bench-num {
  width: 22px; height: 22px; border-radius: 4px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: white;
  background: var(--home);
  flex: 0 0 22px;
}
.bench-row.away .bench-num { background: var(--away); }
.bench-row .bench-badge {
  width: 22px; height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
  flex: 0 0 22px;
  pointer-events: none;
}
.bench-row .bench-name {
  font-size: 11px; font-weight: 600;
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bench-row .bench-pos {
  font-size: 8px; color: var(--text-dim);
  background: rgba(255,255,255,0.06);
  padding: 1px 4px; border-radius: 3px;
  font-weight: 700; letter-spacing: 0.3px;
  flex: 0 0 auto;
}
.bench-move {
  width: 22px; height: 22px; border-radius: 4px;
  display: grid; place-items: center;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s ease;
  flex: 0 0 22px;
}
.bench-move:hover { color: white; background: rgba(255,255,255,0.10); }

/* === Toolbar (neutra) === */
.toolbar {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px;
  border-radius: 5px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
}
.toolbar-wrap { display: flex; justify-content: center; }

.mode-pill { display: inline-flex; padding: 2px; border-radius: 5px; background: rgba(255,255,255,0.04); gap: 2px; }
.mode-btn {
  width: 38px; height: 32px; border-radius: 5px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.50);
  transition: all 0.2s ease;
}
.mode-btn.active { color: white; background: rgba(255,255,255,0.12); }

.tool-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.10); }

.color-swatch, .arrow-toggle, .tool-btn {
  width: 34px; height: 34px; border-radius: 4px;
  display: grid; place-items: center;
  background: transparent;
  color: var(--text);
  transition: background 0.2s ease;
}
.color-swatch:hover, .arrow-toggle:hover, .tool-btn:hover { background: rgba(255,255,255,0.10); }
.color-dot {
  width: 20px; height: 20px; border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.6);
  display: inline-block;
}
.arrow-toggle.active { background: rgba(255,255,255,0.14); }
/* Neutral — sem cores semânticas */
.tool-btn[data-tint] { color: var(--text); }
.disabled { opacity: 0.32; pointer-events: none; }

/* === FAB & Drawer (mobile/tablet portrait) === */
.fab {
  display: none;
  position: fixed;
  bottom: 16px; right: 16px;
  width: 56px; height: 56px; border-radius: 4px;
  background: rgba(255,255,255,0.95);
  color: #0a1322;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 14px 32px rgba(0,0,0,0.55);
  z-index: 40;
}
.drawer-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(5,8,16,0.55);
  z-index: 38;
}
.drawer {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  max-height: 70vh;
  background: linear-gradient(180deg, #0e1730, #0a1322);
  border-top: 1px solid var(--glass-border);
  border-radius: 5px 5px 0 0;
  box-shadow: 0 -16px 40px rgba(0,0,0,0.5);
  z-index: 39;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px 14px 16px;
  overflow-y: auto;
}
.drawer-handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.22);
  border-radius: 2px;
  margin: 4px auto 10px;
}

/* === Modal === */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5,8,16,0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  z-index: 100; padding: 16px;
}
.modal {
  width: min(560px, 100%); max-height: 86vh; overflow-y: auto;
  background: linear-gradient(180deg, #101a2c, #0a1322);
  border-radius: 5px;
  border: 1px solid var(--glass-border);
  padding: 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.modal h3 { margin: 0 0 16px; font-size: 18px; }
.modal .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.modal label { font-size: 11px; font-weight: 700; color: var(--text-dim); letter-spacing: 0.4px; text-transform: uppercase; }
.modal .hint { color: var(--text-faint); font-size: 11px; margin-top: 4px; }
.modal input, .modal select {
  width: 100%; padding: 11px 13px;
  background: rgba(255,255,255,0.04); color: white;
  border-radius: 4px; border: 1px solid var(--glass-border);
  font-size: 14px;
}
.modal input:focus, .modal select:focus { outline: 2px solid rgba(255,255,255,0.50); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* Combo tiles (badge selectors) */
.combo-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.combo-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.combo-tile:hover { background: rgba(255,255,255,0.06); color: white; }
.combo-tile.active {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.32);
  color: white;
}
.combo-badges {
  display: flex; gap: 4px; align-items: center; justify-content: center;
  height: 44px;
}
.combo-badges img {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}
.combo-badges.single img { width: 44px; height: 44px; }
.combo-tile span { font-size: 12px; font-weight: 600; }

/* === Action sheet — substituição interativa === */
.action-sheet {
  width: min(440px, 100%); max-height: 86vh; overflow-y: auto;
  background: linear-gradient(180deg, #101a2c, #0a1322);
  border-radius: 5px;
  border: 1px solid var(--glass-border);
  padding: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.sheet-header {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.sheet-badge {
  width: 30px; height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.sheet-title { flex: 1; min-width: 0; }
.sheet-title h4 { margin: 0; font-size: 16px; font-weight: 700; }
.sheet-sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.sheet-status { font-size: 10px; color: var(--text-dim); font-weight: 600; }
.sheet-close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--text-dim);
  border-radius: 4px;
}
.sheet-close:hover { background: rgba(255,255,255,0.06); color: white; }
.sheet-section { margin-bottom: 12px; }
.sheet-section h5 {
  margin: 0 0 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-faint);
}
.swap-list {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 40vh; overflow-y: auto;
  padding-right: 3px;
}
.swap-candidate {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text); text-align: left;
  transition: background 0.2s ease;
}
.swap-candidate:hover { background: rgba(255,255,255,0.10); }
.swap-candidate img {
  width: 22px; height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
}
.swap-candidate .num {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.10);
  border-radius: 4px;
  font-size: 11px; font-weight: 700;
  flex: 0 0 22px;
}
.swap-candidate .cand-name {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cand-pos {
  font-size: 9px; font-weight: 700; letter-spacing: 0.3px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.08);
  padding: 1px 5px; border-radius: 3px;
  flex: 0 0 auto;
}
.sheet-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.action-btn {
  display: block; width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text);
  font-size: 13px; font-weight: 600;
  text-align: center;
  transition: background 0.2s ease;
}
.action-btn:hover { background: rgba(255,255,255,0.12); }
.action-btn.primary { background: rgba(255,255,255,0.18); }
.sheet-empty {
  color: var(--text-faint); font-size: 12px;
  padding: 10px; text-align: center; font-style: italic;
}

.menu-popover {
  position: absolute; top: 38px; right: 6px;
  min-width: 160px;
  border-radius: 5px;
  background: rgba(15,22,38,0.96);
  border: 1px solid var(--glass-border);
  padding: 4px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.5);
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.menu-popover button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  padding: 8px 9px; border-radius: 4px;
  font-size: 13px; color: white;
}
.menu-popover button:hover { background: rgba(255,255,255,0.07); }
.menu-popover button[data-danger="true"] { color: #ff6b6b; }

/* ============ RESPONSIVE ============ */

/* Telas médias */
@media (max-width: 1100px) {
  .editor-stage { grid-template-columns: 170px 1fr 170px; }
  .editor[data-board-mode="solo"] .editor-stage { grid-template-columns: 200px 1fr; }
}

/* === MOBILE / TABLET PORTRAIT — layout flutuante ===
   tablet portrait: orientation: portrait até 1100px
   phone: até 700px (qualquer orientation) */
@media (orientation: portrait) and (max-width: 1100px), (max-width: 700px) {
  .editor { padding: 0; gap: 0; }
  .editor-header {
    position: fixed; top: 8px; left: 8px; right: 8px;
    z-index: 36;
    padding: 7px 12px;
    border-radius: 5px;
  }
  .editor-header h2 { font-size: 13px; }
  .team-chip .chip-name { display: none; }
  .team-chip { padding: 2px 5px; }
  .editor-stage,
  .editor[data-board-mode="solo"] .editor-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    padding: 0;
    height: 100%;
    min-height: 0;
  }
  /* Esconde bancos no layout principal — vão pro drawer */
  .editor-stage > .bench { display: none; }
  .field-stage {
    padding: 52px 8px 80px;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  /* Campo VERTICAL no mobile — width-bound (mais confiável em iOS) */
  .field-wrap {
    aspect-ratio: 680 / 1050;
    width: 100%;
    height: auto;
    max-height: 100%;
    min-height: 0;
    border-radius: 5px;
  }
  /* Toolbar floating bottom */
  .toolbar-wrap {
    position: fixed; bottom: 14px; left: 0; right: 0;
    z-index: 30; pointer-events: none;
  }
  .toolbar { pointer-events: auto; box-shadow: 0 14px 36px rgba(0,0,0,0.55); }
  /* FAB ativo */
  .fab { display: grid; }
  /* Drawer drawer */
  .drawer { display: block; }
  .editor[data-drawer-open="true"] .drawer { transform: translateY(0); }
  .editor[data-drawer-open="true"] .drawer-backdrop { display: block; }
  /* Drawer renderiza os benches */
  .drawer-content { display: contents; }
  .editor[data-drawer-open="true"] .editor-stage > .bench {
    display: flex;
    position: fixed;
    left: 0; right: 0;
    z-index: 40;
    border-radius: 5px 5px 0 0;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(180deg, #0e1730, #0a1322);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 14px;
  }
  .editor[data-drawer-open="true"] .editor-stage > .bench[data-side="home"] {
    bottom: 0;
    max-height: 50vh;
  }
  .editor[data-drawer-open="true"] .editor-stage > .bench[data-side="away"] {
    bottom: 0;
    max-height: 50vh;
  }
  /* Dois benches em modo duel: side by side */
  .editor[data-drawer-open="true"][data-board-mode="duel"] .editor-stage > .bench[data-side="home"] {
    right: 50%;
  }
  .editor[data-drawer-open="true"][data-board-mode="duel"] .editor-stage > .bench[data-side="away"] {
    left: 50%;
  }
}

/* Phone portrait — ainda mais compacto */
@media (max-width: 520px) {
  .editor-header { padding: 6px 10px; gap: 6px; }
  .editor-header h2 { font-size: 12px; }
  .player .badge { width: 32px; height: 32px; }
  .player .label { font-size: 9px; padding: 1px 5px; }
  .toolbar { gap: 4px; padding: 5px 8px; }
  .tool-btn, .arrow-toggle, .color-swatch { width: 32px; height: 32px; }
  .mode-btn { width: 34px; height: 28px; }
  .tool-divider { height: 18px; }
  .fab { width: 50px; height: 50px; bottom: 78px; right: 12px; }
  /* Em phone portrait drawer ocupa full width pros 2 benches */
  .editor[data-drawer-open="true"][data-board-mode="duel"] .editor-stage > .bench[data-side="home"] {
    right: 50%; max-height: 50vh;
  }
  .editor[data-drawer-open="true"][data-board-mode="duel"] .editor-stage > .bench[data-side="away"] {
    left: 50%; max-height: 50vh;
  }
  .dashboard { padding: 18px 14px; }
  .brand-text h1 { font-size: 20px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .combo-tiles { grid-template-columns: 1fr; }
}

/* Telas grandes */
@media (min-width: 1400px) {
  .editor-stage { grid-template-columns: 240px 1fr 240px; }
  .editor[data-board-mode="solo"] .editor-stage { grid-template-columns: 280px 1fr; }
}


/* ---------- Tela de carregamento (v8) — tipográfica, sem ícone ---------- */
.boot {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  color: var(--text-dim);
}
.boot-title {
  font-size: 13px; font-weight: 800;
  letter-spacing: 6px; text-indent: 6px;
  color: var(--text-faint);
  animation: boot-fade 2s ease-in-out infinite;
}
.boot-bar {
  width: 132px; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,0.08); overflow: hidden;
}
.boot-bar > span {
  display: block; height: 100%; width: 38%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--fla, #E31E25), transparent);
  animation: boot-sweep 1.15s cubic-bezier(.65,0,.35,1) infinite;
}
.boot p { font-size: 11px; margin: 0; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-faint); }
@keyframes boot-sweep { from { transform: translateX(-140%); } to { transform: translateX(360%); } }
@keyframes boot-fade { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .boot-bar > span, .boot-title { animation: none; }
}

/* ============================================================
   REDESIGN v8 — base tipográfica
   Inter variável + numerais tabulares. Referência: placares/estatísticas
   de sites esportivos premium usam figuras tabulares pra as colunas de
   números não "dançarem" quando o placar atualiza ao vivo.
   ============================================================ */
:root {
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  /* superfícies em camadas — nada de preto puro, elevação por luz */
  --surface-1: rgba(255,255,255,0.035);
  --surface-2: rgba(255,255,255,0.06);
  --surface-3: rgba(255,255,255,0.09);
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --fla: #E31E25;
  --gold: #E8C36A;
  --card-yellow: #FFC529;
  --card-red: #E5383B;
  /* curvas de movimento */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

html, body { font-family: var(--font-ui); }

/* Todo número do app é tabular por padrão. */
b, strong, .pl-big-nums, .pl-card-score, .pl-modal-score,
.pl-rank-row b, .pl-person-nums b, .pl-person-pct {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv01" 1;
}

/* ============================================================================
   BARRA LATERAL (v10) — reconstruída
   Cabeçalho com marca + recolher, ícones em cada item, rótulo de grupo e
   rodapé de status. Recolhida vira coluna de ícones (não de letras soltas).
   ============================================================================ */
.app-shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  height: 100dvh; min-height: 0;
  transition: grid-template-columns .3s cubic-bezier(.22,1,.36,1);
}
.app-shell.nav-collapsed { grid-template-columns: 72px 1fr; }

.side-nav {
  position: relative; z-index: 5;
  display: flex; flex-direction: column;
  padding: 16px 12px 14px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(18,25,38,0.92), rgba(10,15,24,0.96));
  box-shadow: 1px 0 0 rgba(0,0,0,0.35), 14px 0 40px -22px rgba(0,0,0,0.9);
  overflow: hidden;
}

/* ---- cabeçalho: marca + botão recolher ---- */
.side-head {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 4px 0; margin-bottom: 22px; min-height: 40px;
}
.side-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.side-logo {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 9px;
  background: rgba(227,30,37,0.13);
  border: 1px solid rgba(227,30,37,0.28);
}
.side-logo img { width: 22px; height: 22px; object-fit: contain; }
.side-brand-text { display: flex; flex-direction: column; min-width: 0; transition: opacity .18s ease; }
.side-brand-text b {
  font-size: 13px; font-weight: 800; color: #fff; letter-spacing: 0.2px;
  white-space: nowrap; line-height: 1.25;
}
.side-brand-text i {
  font-style: normal; font-size: 10px; color: var(--text-faint);
  letter-spacing: 0.7px; white-space: nowrap;
}
.side-toggle {
  width: 28px; height: 28px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 8px;
  color: var(--text-faint);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background .18s ease, color .18s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.side-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-collapsed .side-toggle { transform: rotate(180deg); }

/* ---- rótulo do grupo ---- */
.side-group-label {
  font-size: 9px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding: 0 12px; margin-bottom: 9px;
  transition: opacity .18s ease;
}
/* Espaçamento superior antes do 2º grupo (Competições) — é o único
   rótulo precedido por uma lista de itens. */
.side-list + .side-group-label { margin-top: 22px; }

/* ---- itens ---- */
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.1px;
  color: rgba(255,255,255,0.62); text-align: left; white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.side-item:hover { color: #fff; background: rgba(255,255,255,0.055); }
.side-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(227,30,37,0.20), rgba(227,30,37,0.05) 70%, transparent);
}
.side-item::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 3px; height: 0; border-radius: 0 3px 3px 0;
  background: var(--fla, #E31E25);
  transform: translateY(-50%);
  transition: height .26s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 10px rgba(227,30,37,0.7);
}
.side-item.active::before { height: 22px; }
.side-ic {
  display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0;
  color: currentColor; opacity: .72; transition: opacity .18s ease;
}
.side-item.active .side-ic { opacity: 1; }
.side-item-label { flex: 1; min-width: 0; transition: opacity .18s ease; }
.side-item-count {
  font-style: normal; font-size: 10px; font-weight: 800;
  min-width: 20px; height: 19px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5);
  font-variant-numeric: tabular-nums; transition: opacity .18s ease;
}

/* ---- rodapé de status ---- */
.side-foot { margin-top: auto; padding-top: 14px; }
.side-foot-card {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.055);
}
.side-foot-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #2ecc71; box-shadow: 0 0 0 0 rgba(46,204,113,0.6);
  animation: side-pulse 2.4s ease-out infinite;
}
@keyframes side-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.side-foot-text {
  display: flex; flex-direction: column; min-width: 0;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.62);
  white-space: nowrap; transition: opacity .18s ease;
}
.side-foot-text i { font-style: normal; font-size: 9.5px; color: var(--text-faint); letter-spacing: .3px; }

/* ---- recolhida: coluna de ÍCONES (não de letras) ---- */
.nav-collapsed .side-brand-text,
.nav-collapsed .side-item-label,
.nav-collapsed .side-item-count,
.nav-collapsed .side-group-label,
.nav-collapsed .side-foot-text { opacity: 0; pointer-events: none; }
.nav-collapsed .side-head { justify-content: center; flex-direction: column; gap: 10px; }
.nav-collapsed .side-brand { flex: 0; justify-content: center; }
.nav-collapsed .side-group-label { height: 0; margin: 0; }
.nav-collapsed .side-item { justify-content: center; padding: 11px 0; gap: 0; }
.nav-collapsed .side-foot-card { justify-content: center; padding: 10px 0; }

/* ---- conteúdo ---- */
.app-main { min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 26px; }
.app-main { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.16) transparent; }
.app-main::-webkit-scrollbar { width: 10px; }
.app-main::-webkit-scrollbar-track { background: transparent; }
.app-main::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.13); border-radius: 999px;
  border: 3px solid transparent; background-clip: content-box;
}
.app-main .pl-page { padding-top: 24px; }
.app-main .tab-panel[data-panel="taticas"] { padding: 26px 0 44px; }
.app-main .dashboard-header { margin-bottom: 20px; }

/* ---- mobile: rodapé fixo com ícones ---- */
@media (max-width: 720px) {
  .app-shell, .app-shell.nav-collapsed { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .side-nav {
    grid-row: 2; flex-direction: row; align-items: center;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    border-right: none; border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,15,24,0.96); box-shadow: 0 -10px 30px -18px rgba(0,0,0,0.9);
  }
  .side-head, .side-group-label, .side-foot { display: none; }
  .side-list { flex-direction: row; flex: 1; gap: 1px; }
  .side-item {
    flex: 1; flex-direction: column; gap: 3px; justify-content: center;
    padding: 7px 2px; font-size: 9.5px; font-weight: 700; text-align: center;
    letter-spacing: .2px; border-radius: 9px;
  }
  .side-item.active { background: rgba(227,30,37,0.14); }
  .side-item::before { left: 50%; top: 0; transform: translateX(-50%); width: 0; height: 3px; border-radius: 0 0 3px 3px; }
  .side-item.active::before { width: 24px; height: 3px; }
  .side-item-label { flex: 0; }
  .side-item-count { display: none; }
  .app-main { grid-row: 1; padding: 0 13px; }
}
@media (prefers-reduced-motion: reduce) { .side-foot-dot { animation: none; } }

/* Correção da barra recolhida: os textos ocultos precisam SAIR do fluxo
   (opacity:0 continuava ocupando largura e empurrava o escudo pra fora). */
.nav-collapsed .side-brand-text,
.nav-collapsed .side-item-label,
.nav-collapsed .side-item-count,
.nav-collapsed .side-foot-text { display: none; }
.nav-collapsed .side-group-label { display: none; }
.nav-collapsed .side-brand { flex: 0 0 auto; }
.nav-collapsed .side-head { align-items: center; margin-bottom: 18px; }
.nav-collapsed .side-nav { padding-left: 10px; padding-right: 10px; }

/* ============================================================================
   ESTRUTURA DE SHELL (v13) — painel flutuante
   Barra lateral direto sobre o fundo escuro (sem painel próprio) e o CONTEÚDO
   dentro de um cartão arredondado, afastado do topo/direita/base.
   ============================================================================ */
:root {
  --shell-bg: #070b12;      /* fundo externo, mais escuro */
  --panel-bg: #0d1420;      /* superfície do painel de conteúdo */
  --panel-radius: 22px;
  --panel-gap: 14px;
}

body { background: var(--shell-bg); }

.app-shell {
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(227,30,37,0.07), transparent 62%),
    radial-gradient(760px 480px at 100% 108%, rgba(60,90,150,0.07), transparent 62%),
    var(--shell-bg);
  padding: 0;
}

/* ---- barra lateral: parte do fundo, sem painel nem borda ---- */
.side-nav {
  background: transparent;
  border-right: none;
  box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 18px 14px 16px 16px;
}

/* ---- conteúdo: cartão flutuante ---- */
.app-main {
  margin: var(--panel-gap) var(--panel-gap) var(--panel-gap) 0;
  border-radius: var(--panel-radius);
  background: var(--panel-bg);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 24px 60px -30px rgba(0,0,0,0.9);
  padding: 0 26px;
  min-height: 0;
}
/* o respiro interno vem do próprio painel */
.app-main .pl-page { padding-top: 26px; padding-bottom: 34px; }
.app-main .tab-panel[data-panel="taticas"] { padding: 26px 0 34px; }

/* cantos do scroll acompanham o raio do painel */
.app-main::-webkit-scrollbar-thumb { border-radius: 999px; }

/* ---- mobile: painel encosta mais e a barra vira rodapé ---- */
@media (max-width: 720px) {
  .app-main {
    margin: 10px 10px 0; padding: 0 14px;
    border-radius: 18px;
  }
  .app-main .pl-page { padding-top: 18px; padding-bottom: 24px; }
  .side-nav { padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); }
}

/* Contraste do shell: o painel precisa LER como cartão flutuante.
   Fundo externo mais fundo, painel mais claro, borda e sombra mais presentes. */
:root {
  --shell-bg: #04070d;
  --panel-bg: #101827;
}
.app-main {
  border: 1px solid rgba(255,255,255,0.085);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 30px 70px -34px rgba(0,0,0,1),
    0 0 0 1px rgba(0,0,0,0.5);
}
/* a barra de rolagem fica dentro do painel, sem quebrar o canto arredondado */
.app-main { scrollbar-gutter: stable; }
.app-main::-webkit-scrollbar { width: 8px; }
.app-main::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border: 2px solid transparent; background-clip: content-box;
}
.app-main::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); background-clip: content-box; }

/* ---- Marca da barra: só o nome (sem escudo, sem subtítulo, sem rodapé) ---- */
.side-wordmark {
  font-size: 17px; font-weight: 900; letter-spacing: 3.4px;
  color: #fff; white-space: nowrap; line-height: 1;
  background: linear-gradient(100deg, #fff 30%, rgba(255,255,255,0.62));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.side-head { margin-bottom: 24px; min-height: 34px; }
/* recolhida: monograma no lugar do nome inteiro */
.nav-collapsed .side-wordmark {
  font-size: 15px; letter-spacing: 0;
  max-width: 1.1ch; overflow: hidden;
}
.nav-collapsed .side-head { flex-direction: column; gap: 12px; margin-bottom: 20px; }

/* ---- Marca "SUPER CLÁSSICO": duas linhas empilhadas; monograma quando recolhe ---- */
.side-wordmark {
  display: flex; flex-direction: column; gap: 1px;
  font-size: 0; letter-spacing: 0; line-height: 1;
}
.side-wordmark b, .side-wordmark i {
  display: block; font-style: normal; white-space: nowrap;
  background: linear-gradient(100deg, #fff 25%, rgba(255,255,255,0.58));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.side-wordmark b { font-size: 12px; font-weight: 700; letter-spacing: 4.2px; }
.side-wordmark i { font-size: 17px; font-weight: 900; letter-spacing: 1.6px; }

/* recolhida: só o monograma SC */
.nav-collapsed .side-wordmark { max-width: none; overflow: visible; }
.nav-collapsed .side-wordmark b,
.nav-collapsed .side-wordmark i { display: none; }
.nav-collapsed .side-wordmark::after {
  content: attr(data-mono);
  font-size: 16px; font-weight: 900; letter-spacing: 0.5px; color: #fff;
}

/* Ajuste da marca "EL DUELO": a linha de cima é curta, precisa de mais tracking
   pra alinhar opticamente com a palavra maior embaixo. */
.side-wordmark b { letter-spacing: 8px; }
.side-wordmark i { letter-spacing: 2.4px; }

/* ============================================================================
   LOGIN DA MESA TÁTICA (20/07/2026)
   Só este módulo é restrito — placar, estatísticas e histórico seguem abertos.
   ============================================================================ */
.tt-login {
  display: grid; place-items: center;
  min-height: 60vh; padding: 24px 16px;
}
.tt-login-card {
  width: 100%; max-width: 380px;
  padding: 30px 28px 26px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  text-align: center;
}
.tt-login-ic {
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: grid; place-items: center; border-radius: 16px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  color: var(--text-dim);
}
.tt-login-card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.2px; }
.tt-login-sub { margin: 0 0 20px; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.tt-login-form { display: flex; flex-direction: column; gap: 13px; text-align: left; }
.tt-field { display: flex; flex-direction: column; gap: 6px; }
.tt-field > span {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-faint);
}
.tt-field input {
  width: 100%; padding: 11px 12px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text); font-size: 14px;
  transition: border-color .15s ease, background .15s ease;
}
.tt-field input:focus {
  outline: none; background: rgba(255,255,255,0.08);
  border-color: rgba(227,30,37,0.55);
}
.tt-pass-wrap { position: relative; display: block; }
.tt-pass-wrap input { padding-right: 62px; }
.tt-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 5px 8px; border-radius: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  color: var(--text-faint); background: transparent; border: 0; cursor: pointer;
}
.tt-eye:hover { color: #fff; background: var(--glass-strong); }
.tt-erro {
  padding: 9px 11px; border-radius: var(--r-sm);
  background: rgba(227,30,37,0.12); border: 1px solid rgba(227,30,37,0.35);
  color: #ff9a9d; font-size: 12.5px;
}
.tt-entrar {
  margin-top: 4px; padding: 12px 14px;
  border-radius: var(--r-sm); border: 0; cursor: pointer;
  background: linear-gradient(180deg, #E31E25, #b8171d);
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .2px;
  transition: filter .15s ease, transform .12s ease;
}
.tt-entrar:hover:not(:disabled) { filter: brightness(1.1); }
.tt-entrar:active:not(:disabled) { transform: translateY(1px); }
.tt-entrar:disabled { opacity: .6; cursor: default; }
.tt-sair {
  margin-left: auto; padding: 7px 13px;
  border-radius: 999px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-dim); font-size: 12px; font-weight: 600;
}
.tt-sair:hover { color: #fff; background: var(--glass-strong); }

/* ============================================================================
   TIPOGRAFIA E-SPORTS (20/07/2026) — cara de HUD de campeonato de game.
   - ORBITRON na marca e nos números de placar: geométrica, futurista, é a letra
     de overlay de e-sports. Só nos números grandes, senão cansa.
   - CHAKRA PETCH nos títulos e rótulos: cantos chanfrados, ar de interface de
     jogo, mas ainda legível em caixa alta.
   - RAJDHANI no texto e na UI: angular, condensada, desenhada pra tela.
   - Números de estatística seguem tabulares, senão as colunas dançam.
   ============================================================================ */
:root {
  --font-ui: "Rajdhani", "Chakra Petch", "Inter", system-ui, sans-serif;
  --font-display: "Chakra Petch", "Rajdhani", Impact, sans-serif;
  /* Orbitron ficou só na marca: o zero dela é um bloco fechado, ilegível em placar.
     Chakra Petch mantém o ar chanfrado de HUD com dígitos que se leem de longe. */
  --font-num: "Chakra Petch", "Rajdhani", "Inter", sans-serif;
  --font-cond: "Rajdhani", "Chakra Petch", sans-serif;
}

html, body { font-family: var(--font-ui); }

/* --- display: títulos, rótulos e marca --- */
.brand-text h1, .boot-title,
.pl-hero-title, .pl-art-name, .pl-modal-title,
.pl-rec-kicker, .pl-hero-kicker, .pl-est-kpi-kicker,
.pl-section-label, .pl-rank-title, .pl-lg-kicker, .pl-champ-text b,
.pl-kpi-kicker, .pl-kpi-label, .pl-hl-head b, .pl-prev-head b,
.tt-login-card h2, .dashboard-header h1, .side-item {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .8px;
}
.pl-section-label, .pl-rank-title, .pl-lg-kicker,
.pl-kpi-kicker, .pl-rec-kicker, .pl-hero-kicker {
  text-transform: uppercase;
}
/* a marca leva a Orbitron: é a assinatura do produto */
.brand-text h1, .boot-title { font-family: var(--font-num); font-weight: 900; letter-spacing: 2px; }

/* --- números de placar: Orbitron, sempre tabular --- */
.pl-big-nums b, .pl-modal-score b, .pl-ms-nums b, .pl-rec-score b,
.pl-kpi-value, .pl-card-score, .pl-titles-score, .pl-hero-big b,
.pl-champcard-titles b, .pl-vs-a, .pl-vs-b, .pl-lg-score b,
.pl-rank-row b, .pl-est-kpi-val {
  font-family: var(--font-num);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.5px;
}

/* --- siglas de time --- */
.pl-ms-abbr, .pl-big-team span, .pl-team span, .pl-rec-side span,
.pl-lg-teams b, .pl-card-teams, .pl-rank-name i {
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: 1px;
}

/* Rajdhani tem altura-x baixa: sobe um pouco pra não parecer miúda */
body { font-size: 16px; }
.pl-rank-row, .pl-rank-name { font-size: 14px; }

/* A Orbitron em peso 900 fecha o contorno do zero e ele vira um bloco sólido
   nos tamanhos grandes do placar. 700 mantém o ar de HUD com o furo do zero. */
.pl-big-nums b, .pl-modal-score b, .pl-ms-nums b, .pl-rec-score b,
.pl-kpi-value, .pl-card-score, .pl-titles-score, .pl-hero-big b,
.pl-champcard-titles b, .pl-vs-a, .pl-vs-b, .pl-lg-score b,
.pl-rank-row b, .pl-est-kpi-val {
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}
/* a marca segue com a Orbitron — ali o peso fechado vira assinatura, não dado */
.brand-text h1, .boot-title { font-family: "Orbitron", "Chakra Petch", sans-serif; }

/* FEATURE tatica-em-breve — placeholder do módulo Táticas.
   Ocupa a altura útil do painel pra centralizar de verdade na vertical. */
.tt-embreve {
  display: grid; place-items: center;
  min-height: calc(100dvh - 84px);
  padding: 24px 16px;
}
.tt-embreve span {
  font-family: var(--font-display, inherit);
  font-size: 40px; font-weight: 800; letter-spacing: 0.5px;
  color: var(--text-faint);
  text-transform: uppercase;
}
@media (max-width: 900px) { .tt-embreve span { font-size: 30px; } }
