/* ============================================================
   Bolão NAMOSCA — guesses.css (scroll contínuo)
   ============================================================ */

/* ── Alertas ─────────────────────────────────────────────── */
.gp-alert { display:flex; align-items:center; gap:12px; padding:12px 16px;
  border-radius:10px; font-size:14px; }
.gp-alert-info  { background:rgba(30,197,150,.06); border:1px solid rgba(30,197,150,.2);
  border-left:3px solid var(--bolao-teal); }
.gp-alert-warn  { background:rgba(255,216,77,.06); border:1px solid rgba(255,216,77,.25); }
.gp-alert-error { background:rgba(220,53,69,.06);  border:1px solid rgba(220,53,69,.25); }

/* ── Âncora nav (sticky) ──────────────────────────────────── */
.gp-anchorbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
  background: rgba(10,14,26,.92);
  backdrop-filter: blur(12px);
  margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  border-bottom: 1px solid var(--bolao-line);
  scrollbar-width: none;
}
.gp-anchorbar::-webkit-scrollbar { display: none; }
.gp-anchor {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  text-decoration: none; font-size: 13px; font-weight: 600;
  color: var(--bolao-text-dim);
  border: 1.5px solid var(--bolao-line);
  background: var(--bolao-card);
  transition: all .15s; flex-shrink: 0;
}
.gp-anchor:hover:not(.locked) { color: var(--bolao-text); border-color: rgba(30,197,150,.4); }
.gp-anchor.active {
  color: var(--bolao-teal-bright);
  background: rgba(30,197,150,.1);
  border-color: rgba(30,197,150,.5);
}
.gp-anchor.locked { opacity: .4; cursor: not-allowed; }
.gp-anc-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--bolao-text-dim);
}
.gp-anc-badge.ready { background: rgba(30,197,150,.15); color: var(--bolao-teal-bright); }

/* ── Seções ──────────────────────────────────────────────── */
.gp-section { margin-top: 40px; scroll-margin-top: 72px; }
.gp-section-locked { opacity: .55; pointer-events: none; user-select: none; }
.gp-section-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.gp-section-title {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px;
  margin: 0 0 4px;
}
.gp-section-sub { font-size: 13px; color: var(--bolao-text-dim); margin: 0; }
.gp-section-rules {
  display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px;
  color: var(--bolao-text-dim); align-items: center;
}
.gp-section-rules strong { color: var(--bolao-teal-bright); }
.gp-locked-msg {
  background: rgba(255,216,77,.05); border: 1px solid rgba(255,216,77,.2);
  border-radius: 10px; padding: 16px 20px; font-size: 14px;
  color: var(--bolao-gold);
}

/* ── Pills de grupo ─────────────────────────────────────── */
.gp-pills {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
@media (max-width: 640px) { .gp-pills { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 400px) { .gp-pills { grid-template-columns: repeat(3, 1fr); } }
.gp-pill {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 10px; border-radius: 10px;
  background: var(--bolao-card); border: 1.5px solid var(--bolao-line);
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--bolao-text-dim); cursor: pointer; transition: all .15s;
  text-align: center; width: 100%;
}
.gp-pill:hover { border-color: rgba(30,197,150,.4); color: var(--bolao-text); }
.gp-pill.active { background: rgba(30,197,150,.12); border-color: rgba(30,197,150,.5); color: var(--bolao-teal-bright); }
.gp-pill.done::after { content: ' ✓'; font-size: 11px; color: var(--bolao-teal-bright); }
.gp-pill-n { font-size: 11px; opacity: .7; }

/* ── Card de grupo ──────────────────────────────────────── */
.gp-group-card {
  background: var(--bolao-card); border: 1px solid var(--bolao-line);
  border-radius: 14px; overflow: hidden; margin-bottom: 20px;
  animation: fadeIn .2s ease;
}
.gp-group-card.hidden { display: none; }
@keyframes fadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; } }

.gp-card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; background: rgba(0,0,0,.15);
  border-bottom: 1px solid var(--bolao-line); flex-wrap: wrap;
}
.gp-card-badge {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg,rgba(30,197,150,.3),rgba(30,197,150,.08));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 900; font-size: 17px;
  color: var(--bolao-teal-bright);
}
.gp-card-sub { font-size: 12px; color: var(--bolao-text-dim); margin-top: 2px; }
.gp-card-actions { margin-left: auto; display: flex; gap: 6px; }

.gp-btn-sm {
  padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: rgba(30,197,150,.08); border: 1px solid rgba(30,197,150,.25);
  color: var(--bolao-teal-bright); cursor: pointer; transition: all .12s;
}
.gp-btn-sm:hover { background: rgba(30,197,150,.15); }
.gp-btn-sm:disabled { opacity: .35; cursor: not-allowed; }
.gp-btn-ghost { background: rgba(255,255,255,.04); border-color: var(--bolao-line); color: var(--bolao-text-dim); }

/* ── Linha de jogo ──────────────────────────────────────── */
.gp-matches { padding: 6px 0; }
.gp-match {
  display: flex; align-items: center; gap: 8px; padding: 9px 20px;
  border-bottom: 1px solid rgba(255,255,255,.025); transition: background .12s;
}
.gp-match:last-child { border-bottom: none; }
.gp-match.filled { background: rgba(30,197,150,.02); }
.gp-match.saving { opacity: .6; }
.gp-match-date {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px; font-weight: 700;
  color: var(--bolao-text-dim); white-space: nowrap; min-width: 34px;
}
/* Wrapper central: nome | placar | nome */
.gp-match-center {
  flex: 1; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 8px; min-width: 0;
}
.gp-match-side {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; font-size: 11px; font-weight: 500;
  min-width: 0; text-align: center;
}
.gp-team-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 110px; font-size: 11px; line-height: 1.2; text-align: center;
}
.gp-flag { font-size: 22px; flex-shrink: 0; line-height: 1; }
.gp-scores { display: flex; align-items: center; gap: 5px; justify-content: center; }
.gp-score {
  width: 40px; height: 38px; text-align: center;
  background: rgba(255,255,255,.05); border: 1.5px solid var(--bolao-line);
  border-radius: 8px; color: var(--bolao-text);
  font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700;
  transition: all .15s;
}
.gp-score:focus { outline: none; border-color: var(--bolao-teal); background: rgba(30,197,150,.08); box-shadow: 0 0 0 2px rgba(30,197,150,.15); }
.gp-score.has-val { border-color: rgba(30,197,150,.35); color: var(--bolao-teal-bright); }
.gp-score:disabled { opacity: .4; cursor: not-allowed; }
.gp-x { color: var(--bolao-text-dim); font-weight: 700; }
.gp-pts {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--bolao-teal-bright); background: rgba(30,197,150,.1);
  padding: 2px 7px; border-radius: 999px; text-align: center;
}
.gp-pts.gp-pts-green {
  background: rgba(45,212,169,.15) !important;
  color: #2dd4a9 !important;
}
.gp-pts.gp-pts-blue {
  background: rgba(59,130,246,.15) !important;
  color: #3b82f6 !important;
}
.gp-pts.gp-pts-yellow {
  background: rgba(250,204,21,.15) !important;
  color: #facc15 !important;
}
.gp-pts.gp-pts-orange {
  background: rgba(251,146,60,.15) !important;
  color: #fb923c !important;
}
.gp-pts.gp-pts-red {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
}

/* ── Projeção ───────────────────────────────────────────── */
.gp-proj { padding: 14px 20px; background: rgba(0,0,0,.12); border-top: 1px solid var(--bolao-line); }
.gp-proj-label { font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--bolao-text-dim); margin-bottom: 8px; }
.gp-proj-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gp-proj-table th { text-align: left; color: var(--bolao-text-dim); padding: 3px 6px; font-weight: 600; }
.gp-proj-table td { padding: 4px 6px; }
.gp-proj-table tr.qualify td:first-child { color: var(--bolao-teal-bright); font-weight: 700; }

/* ── Seção Gerar ────────────────────────────────────────── */
.gp-generate-box {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 48px 24px; text-align: center;
  background: var(--bolao-card); border: 2px dashed var(--bolao-line);
  border-radius: 16px; transition: all .3s;
}
.gp-generate-box.ready {
  border-style: solid; border-color: rgba(30,197,150,.4);
  background: linear-gradient(135deg,rgba(30,197,150,.06),rgba(30,197,150,.02));
}
.gp-generate-icon { font-size: 56px; line-height: 1; }
.gp-generate-title { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px; margin: 0; }
.gp-generate-desc { font-size: 15px; color: var(--bolao-text-dim); max-width: 480px; margin: 0; }
.gp-gen-btn { padding: 16px 40px !important; font-size: 16px !important; border-radius: 12px !important; }
.gp-gen-locked {
  padding: 16px 40px; font-size: 16px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 2px dashed var(--bolao-line);
  color: var(--bolao-text-dim); cursor: not-allowed; opacity: .45;
  font-family: 'Inter', sans-serif; font-weight: 600;
}
.bolao-btn-primary.gp-gen-btn { animation: pulse-glow 2s ease-in-out infinite; }
@keyframes pulse-glow { 0%,100%{box-shadow:0 0 0 0 rgba(30,197,150,0);}50%{box-shadow:0 0 20px 5px rgba(30,197,150,.25);} }

/* ── Stage pills ────────────────────────────────────────── */
.gp-stage-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.gp-stage-pill {
  padding: 7px 14px; border-radius: 999px;
  background: var(--bolao-card); border: 1.5px solid var(--bolao-line);
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--bolao-text-dim); cursor: pointer; transition: all .15s;
}
.gp-stage-pill:hover { border-color: rgba(30,197,150,.4); color: var(--bolao-text); }
.gp-stage-pill.active { background: rgba(30,197,150,.1); border-color: rgba(30,197,150,.5); color: var(--bolao-teal-bright); }
.gp-stage-pane { display: none; }
.gp-stage-pane.active { display: block; }

/* ── Grid de confrontos bmc ─────────────────────────────── */
.bmc-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 12px; }
.bmc { background: var(--bolao-card); border: 1px solid var(--bolao-line); border-radius: 12px; overflow: hidden; }
.bmc-head {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: rgba(0,0,0,.2); border-bottom: 1px solid var(--bolao-line);
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--bolao-text-dim);
}
.bmc-winner-badge { margin-left: auto; color: var(--bolao-teal-bright); font-size: 11px; }
.bmc-body { display: flex; min-height: 130px; }
.bmc-vs {
  display: flex; align-items: center; padding: 0 10px;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--bolao-text-dim); border-left: 1px solid var(--bolao-line); border-right: 1px solid var(--bolao-line);
  flex-shrink: 0;
}
.bmc-side {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; padding: 14px 10px 10px;
  position: relative; transition: background .2s;
}
.bmc-side.win { background: rgba(30,197,150,.07); }
.bmc-side.lose { opacity: .35; filter: grayscale(.5); }
.bmc-flag { font-size: 34px; line-height: 1; }
.bmc-name { font-size: 13px; font-weight: 600; text-align: center; max-width: 130px; line-height: 1.3; }
.bmc-adv {
  width: calc(100% - 12px); padding: 7px 8px; margin-top: 4px;
  background: rgba(30,197,150,.1); border: 1.5px solid rgba(30,197,150,.35);
  border-radius: 8px; color: var(--bolao-teal-bright);
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all .15s; text-align: center;
}
.bmc-adv:hover { background: rgba(30,197,150,.2); border-color: var(--bolao-teal); transform: translateY(-1px); }
.bmc-adv.active { background: rgba(30,197,150,.22); border-color: var(--bolao-teal); }
.bmc-pick {
  padding: 14px 10px; background: rgba(255,255,255,.03);
  border: 1.5px dashed var(--bolao-line-soft); border-radius: 10px;
  color: var(--bolao-text-dim); font-size: 13px; cursor: pointer; text-align: center;
  width: calc(100% - 12px); transition: all .15s;
}
.bmc-pick:hover:not(:disabled) { background: rgba(30,197,150,.06); color: var(--bolao-teal-bright); }
.bmc-pick:disabled { opacity: .35; cursor: not-allowed; }
.bmc-edit {
  position: absolute; top: 7px; right: 7px;
  width: 22px; height: 22px; border-radius: 5px;
  background: rgba(255,255,255,.05); border: 1px solid var(--bolao-line);
  color: var(--bolao-text-dim); font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: all .12s;
}
.bmc-edit:hover { background: rgba(255,255,255,.1); color: var(--bolao-text); }

/* ── Bônus ──────────────────────────────────────────────── */
.gp-bonus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gp-bonus-card {
  background: var(--bolao-card); border: 1px solid var(--bolao-line);
  border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.gp-bonus-card.gold { border-color: rgba(255,216,77,.3); background: linear-gradient(135deg,rgba(255,216,77,.04),var(--bolao-card)); }
.gp-bonus-top { display: flex; gap: 12px; align-items: flex-start; }
.gp-bonus-icon { font-size: 32px; flex-shrink: 0; }
.gp-bonus-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; }
.gp-bonus-desc { font-size: 12px; color: var(--bolao-text-dim); margin-top: 2px; }
.gp-bonus-saved {
  font-size: 13px; font-weight: 600; color: var(--bolao-teal-bright);
  background: rgba(30,197,150,.1); border: 1px solid rgba(30,197,150,.2);
  border-radius: 8px; padding: 8px 12px; text-align: center;
}

/* ── Resumo ─────────────────────────────────────────────── */
.gp-summary-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; }
.gp-summary-card {
  background: var(--bolao-card); border: 1px solid var(--bolao-line);
  border-radius: 14px; padding: 20px; text-align: center;
}
.gp-sum-icon { font-size: 30px; margin-bottom: 8px; }
.gp-sum-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--bolao-text-dim); font-weight: 700; margin-bottom: 6px; }
.gp-sum-count { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800; color: var(--bolao-text); }
.gp-sum-count.done { color: var(--bolao-teal-bright); }
.gp-sum-status { font-size: 12px; margin-top: 6px; color: var(--bolao-gold); }
.gp-sum-status.done { color: var(--bolao-teal-bright); }

/* ── Barra de ações ─────────────────────────────────────── */
.gp-action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: rgba(10,14,26,.9); backdrop-filter: blur(12px);
  border-top: 1px solid var(--bolao-line);
  padding: 12px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
  transition: transform .3s ease;
}
.gp-save-status { font-size: 13px; color: var(--bolao-text-dim); }

/* ── Modal ──────────────────────────────────────────────── */
.gp-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.72); display: flex;
  align-items: center; justify-content: center; padding: 20px;
}
.gp-modal {
  background: var(--bolao-bg, #111827); border: 1px solid var(--bolao-line);
  border-radius: 16px; width: 100%; max-width: 480px;
  max-height: 80vh; display: flex; flex-direction: column; overflow: hidden;
}
.gp-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--bolao-line);
}
.gp-modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.gp-modal-head button {
  width: 30px; height: 30px; border-radius: 7px;
  background: rgba(255,255,255,.06); border: 1px solid var(--bolao-line);
  color: var(--bolao-text-dim); font-size: 18px; cursor: pointer; line-height: 1;
}
.gp-modal-list { overflow-y: auto; flex: 1; padding: 6px 10px 10px; }
.gp-team-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px; border-radius: 8px;
  background: transparent; border: none; color: var(--bolao-text);
  font-size: 14px; cursor: pointer; text-align: left; transition: background .1s;
}
.gp-team-opt:hover { background: rgba(30,197,150,.08); }
.gp-team-code { margin-left: auto; font-family: 'Space Grotesk', sans-serif; font-size: 11px; color: var(--bolao-text-dim); }

/* ── Toasts ─────────────────────────────────────────────── */
.gp-toast {
  position: fixed; bottom: 76px; right: 20px; z-index: 99999;
  padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  max-width: 300px; background: #1e293b; border: 1px solid var(--bolao-line);
  color: var(--bolao-text); transform: translateX(120%); transition: transform .25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.gp-toast.show { transform: translateX(0); }
.gp-toast.success { border-color: rgba(30,197,150,.4); background: rgba(30,197,150,.1); color: var(--bolao-teal-bright); }
.gp-toast.error   { border-color: rgba(220,53,69,.4); background: rgba(220,53,69,.1); color: #f87171; }
.gp-toast.info,.gp-toast.warn { border-color: rgba(255,216,77,.3); background: rgba(255,216,77,.07); color: var(--bolao-gold); }

/* ── Spinner ────────────────────────────────────────────── */
.gp-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Mobile ─────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════
   MOBILE — tudo abaixo de 600px
   ═══════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ── Nav de âncoras ─────────────────────────────── */
  .gp-anchorbar { gap: 4px; padding: 8px 10px; }
  .gp-anchor { padding: 6px 10px; font-size: 11px; }
  .gp-anchor span:first-child { display: none; }
  .gp-anc-badge { display: none; }

  /* ── Pills de grupo ─────────────────────────────── */
  .gp-pills { grid-template-columns: repeat(6, 1fr); gap: 5px; }
  .gp-pill { padding: 7px 4px; font-size: 13px; border-radius: 8px; }
  .gp-pill-n { display: none; }

  /* ── Card de grupo ──────────────────────────────── */
  .gp-card-head { padding: 12px 14px; gap: 8px; }
  .gp-card-actions { width: 100%; margin-left: 0; margin-top: 4px; }

  /* ── Linha de jogo — layout mobile ──────────────── */
  .gp-match {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 8px !important;
    padding: 12px !important;
  }
  .gp-match-date {
    position: absolute !important;
    top: 6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: unset !important;
  }
  .gp-match-center {
    padding-top: 14px !important;
    width: 100% !important;
    gap: 0px !important;
  }
  .gp-match-side { gap: 3px; }
  .gp-team-name {
    max-width: 100%;
    white-space: nowrap;
    font-size: 10px;
  }
  .gp-flag { font-size: 20px; }
  .gp-score { width: 44px; height: 44px; font-size: 20px; }
  .gp-scores { gap: 0px !important; }
  .gp-pts { align-self: center !important; font-size: 10px; }

  /* ── Projeção ───────────────────────────────────── */
  .gp-proj { padding: 10px 12px; }
  .gp-proj-table { font-size: 11px; }
  .gp-proj-table th, .gp-proj-table td { padding: 3px 4px; }

  /* ── Seção gerar ────────────────────────────────── */
  .gp-generate-box { padding: 24px 14px; }
  .gp-generate-icon { font-size: 40px; }
  .gp-generate-title { font-size: 17px; }
  .gp-generate-desc { font-size: 13px; }
  .gp-gen-btn { padding: 12px 20px !important; font-size: 14px !important; }

  /* ── Grid bmc (confrontos mata-mata) ────────────── */
  .bmc-grid { grid-template-columns: 1fr; }
  .bmc-flag { font-size: 26px; }
  .bmc-name { font-size: 12px; }

  /* ── Fases ──────────────────────────────────────── */
  .gp-next-phase-wrap { padding: 16px 12px; }
  .gp-phase-title { font-size: 16px; }

  /* ── Bônus ──────────────────────────────────────── */
  .gp-bonus-grid { grid-template-columns: 1fr; }

  /* ── Resumo ─────────────────────────────────────── */
  .gp-summary-grid { grid-template-columns: repeat(3, 1fr); }
  .gp-sum-count { font-size: 20px; }

  /* ── Barra de ações ─────────────────────────────── */
  .gp-action-bar { padding: 10px 12px; gap: 8px; }
  .gp-action-bar .bolao-btn { padding: 9px 12px; font-size: 12px; }
  .gp-save-status { font-size: 11px; }

  /* ── Modal ──────────────────────────────────────── */
  .gp-modal { max-height: 90vh; }
}

/* ── Custom dropdown de bônus ───────────────────────────── */
.gp-bonus-drop-wrap { position: relative; }
.gp-bonus-drop-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 14px;
  background: var(--bolao-card);
  border: 1.5px solid var(--bolao-line);
  border-radius: 10px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--bolao-text); text-align: left;
  transition: border-color .15s;
}
.gp-bonus-drop-btn:hover:not(:disabled) { border-color: rgba(30,197,150,.4); }
.gp-bonus-drop-btn:focus { outline: none; border-color: var(--bolao-teal); box-shadow: 0 0 0 2px rgba(30,197,150,.15); }
.gp-bonus-drop-btn.disabled, .gp-bonus-drop-btn:disabled { opacity: .4; cursor: not-allowed; }
.gp-bonus-drop-btn.open { border-color: var(--bolao-teal); }
.gp-drop-flag { font-size: 20px; flex-shrink: 0; min-width: 24px; }
.gp-drop-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-drop-chevron { margin-left: auto; color: var(--bolao-text-dim); font-size: 11px; flex-shrink: 0; transition: transform .15s; }
.gp-bonus-drop-btn.open .gp-drop-chevron { transform: rotate(180deg); }

/* Painel da lista (compartilha estilo do modal de time) */
.gp-bonus-drop-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 500;
  background: var(--bolao-bg, #111827);
  border: 1px solid var(--bolao-line); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  overflow: hidden;
  max-height: 320px; display: flex; flex-direction: column;
}
.gp-drop-search-wrap { padding: 10px 12px; border-bottom: 1px solid var(--bolao-line); }
.gp-drop-search { font-size: 13px !important; padding: 8px 12px !important; }
.gp-drop-options { overflow-y: auto; flex: 1; padding: 6px 8px 8px; }
.gp-drop-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px; border-radius: 8px;
  background: transparent; border: none; color: var(--bolao-text);
  font-size: 13px; cursor: pointer; text-align: left; transition: background .1s;
}
.gp-drop-opt:hover { background: rgba(30,197,150,.08); }
.gp-drop-opt.selected { background: rgba(30,197,150,.12); color: var(--bolao-teal-bright); }

/* ── Fases sequenciais do mata-mata ─────────────────────── */
.gp-phase-block { margin-bottom: 8px; }
.gp-phase-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0 12px; flex-wrap: wrap;
}
.gp-phase-icon { font-size: 24px; flex-shrink: 0; }
.gp-phase-title { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 18px; }
.gp-phase-sub { font-size: 13px; color: var(--bolao-text-dim); margin-top: 2px; }
.gp-phase-done {
  margin-left: auto; font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 700; color: var(--bolao-teal-bright);
  background: rgba(30,197,150,.1); border: 1px solid rgba(30,197,150,.2);
  border-radius: 999px; padding: 4px 12px;
}
.gp-phase-divider {
  border: none; border-top: 1px solid var(--bolao-line);
  margin: 28px 0;
}

/* Botão "Gerar próxima fase" */
.gp-next-phase-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 20px; padding: 24px;
  background: var(--bolao-card); border: 1px solid var(--bolao-line);
  border-radius: 14px;
}
.gp-next-phase-hint { font-size: 14px; color: var(--bolao-text-dim); text-align: center; }
.gp-gen-next-ready { animation: pulse-glow 2.5s ease-in-out infinite; }

/* botão campeão especial */
.bmc-champion {
  background: linear-gradient(135deg, rgba(255,216,77,.15), rgba(255,216,77,.05)) !important;
  border-color: rgba(255,216,77,.4) !important;
  color: var(--bolao-gold) !important;
}
.bmc-champion:hover { background: rgba(255,216,77,.22) !important; transform: translateY(-1px); }

/* ── Final — botões de campeão exclusivos ─────────────── */
.bmc-final { border-color: rgba(255,216,77,.25); }
.bmc-champion-row {
  border-top: 1px solid var(--bolao-line);
  padding: 16px 14px 14px;
  background: rgba(255,216,77,.03);
}
.bmc-champion-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--bolao-text-dim); margin-bottom: 10px; text-align: center;
}
.bmc-champion-btns { display: flex; gap: 8px; }
.bmc-champion-btn {
  flex: 1; padding: 11px 10px;
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--bolao-line);
  border-radius: 10px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--bolao-text-dim); transition: all .2s; text-align: center;
  line-height: 1.4;
}
.bmc-champion-btn:hover {
  border-color: rgba(255,216,77,.45);
  color: var(--bolao-gold);
  background: rgba(255,216,77,.06);
}
.bmc-champion-btn.active {
  background: linear-gradient(135deg, rgba(255,216,77,.18), rgba(255,216,77,.06));
  border-color: rgba(255,216,77,.6);
  color: var(--bolao-gold);
  box-shadow: 0 0 0 2px rgba(255,216,77,.12);
}

/* ── Previne overflow horizontal global ──────────────────── */
.bolao-app { overflow-x: hidden; max-width: 100vw; }
.bolao-container { overflow-x: hidden; }
