.bgp-wrap,
.bgp-wrap * { box-sizing: border-box; }

.bgp-wrap {
  --bgp-gold: #d4af37;
  --bgp-gold-2: #f5d56a;
  --bgp-black: #080808;
  --bgp-panel: #111214;
  --bgp-panel-2: #17191c;
  --bgp-line: rgba(212,175,55,.25);
  --bgp-text: #f7f7f7;
  --bgp-muted: #9ea2a8;
  --bgp-danger: #ff6b6b;
  width: 100%;
  max-width: 760px;
  margin: 24px auto;
  color: var(--bgp-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bgp-card {
  overflow: hidden;
  border: 1px solid rgba(212,175,55,.38);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 0%, rgba(212,175,55,.12), transparent 32%),
    linear-gradient(180deg, #0b0c0e 0%, #070708 100%);
  box-shadow: 0 26px 70px rgba(0,0,0,.40), inset 0 1px rgba(255,255,255,.03);
}

.bgp-topline { height: 4px; background: linear-gradient(90deg, #7d6017, var(--bgp-gold-2), #7d6017); }

.bgp-header { display: flex; align-items: center; gap: 18px; padding: 26px 28px 18px; }
.bgp-logo { width: 150px; max-height: 66px; object-fit: contain; object-position: left center; }
.bgp-wordmark { min-width: 150px; font-weight: 900; letter-spacing: 1px; font-size: 23px; color: var(--bgp-gold-2); }
.bgp-wordmark span { color: #fff; }
.bgp-header-copy { min-width: 0; }
.bgp-header h2 { margin: 0 0 5px; color: #fff; font-size: clamp(21px, 4vw, 30px); line-height: 1.08; font-weight: 900; letter-spacing: .3px; }
.bgp-header p { margin: 0; color: var(--bgp-muted); font-size: 14px; }

.bgp-badge-row { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 28px 22px; }
.bgp-badge { padding: 7px 11px; border: 1px solid var(--bgp-line); border-radius: 999px; color: #e4c967; background: rgba(212,175,55,.06); font-size: 12px; font-weight: 700; }

.bgp-section { padding: 22px 28px; border-top: 1px solid rgba(255,255,255,.07); }
.bgp-section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.bgp-section-title span { color: #fff; font-size: 13px; font-weight: 900; letter-spacing: 1.4px; }
.bgp-section-title small { color: #777d85; font-size: 12px; }

.bgp-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bgp-pick { display: grid; grid-template-columns: 34px auto 1fr 34px; align-items: center; min-height: 58px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: #101114; overflow: hidden; transition: border-color .2s, transform .2s, background .2s; }
.bgp-pick:focus-within { border-color: rgba(212,175,55,.72); background: #141517; box-shadow: 0 0 0 3px rgba(212,175,55,.06); }
.bgp-pick-hidden { display: none; }
.bgp-pick-num { display: grid; place-items: center; align-self: stretch; border-right: 1px solid rgba(255,255,255,.06); color: #777d85; font-size: 12px; font-weight: 900; background: rgba(255,255,255,.02); }
.bgp-sign { display: flex; gap: 4px; padding: 0 7px; }
.bgp-sign-btn { width: 27px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: #1a1c20; color: #a3a7ad; font-size: 18px; line-height: 1; font-weight: 800; cursor: pointer; }
.bgp-sign-btn.is-active { color: #0b0b0b; border-color: var(--bgp-gold); background: linear-gradient(180deg, var(--bgp-gold-2), var(--bgp-gold)); box-shadow: 0 3px 12px rgba(212,175,55,.18); }
.bgp-odds-box { display: flex; align-items: center; min-width: 0; }
.bgp-current-sign { color: #e5c75c; font-weight: 900; font-size: 17px; margin-right: 2px; }
.bgp-odds { width: 100%; min-width: 0; height: 42px; padding: 0 5px; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: #fff !important; font-size: 18px !important; font-weight: 800; appearance: textfield; }
.bgp-odds::placeholder { color: #555a61; opacity: 1; }
.bgp-remove { height: 100%; width: 34px; padding: 0; border: 0; border-left: 1px solid rgba(255,255,255,.06); background: transparent; color: #646a72; font-size: 21px; cursor: pointer; transition: color .2s, background .2s; }
.bgp-remove:hover { color: #fff; background: rgba(255,255,255,.04); }

.bgp-add { width: 100%; margin-top: 12px; padding: 12px; border: 1px dashed rgba(212,175,55,.4); border-radius: 10px; background: rgba(212,175,55,.04); color: #d9bd59; font-size: 12px; font-weight: 900; letter-spacing: .7px; cursor: pointer; }
.bgp-add:hover { background: rgba(212,175,55,.08); border-color: rgba(212,175,55,.7); }
.bgp-add[disabled] { opacity: .4; cursor: default; }

.bgp-stake-panel { display: grid; grid-template-columns: 1fr 210px; gap: 16px; align-items: center; padding: 21px 28px; border-top: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.015); }
.bgp-stake-label { color: #ddd; font-size: 13px; font-weight: 900; letter-spacing: 1px; }
.bgp-stake-box { display: flex; align-items: center; height: 52px; padding: 0 15px; border: 1px solid rgba(212,175,55,.40); border-radius: 11px; background: #0e0f11; }
.bgp-currency { margin-right: 7px; color: var(--bgp-gold-2); font-weight: 900; font-size: 20px; }
.bgp-stake { width: 100%; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: #fff !important; font-size: 20px !important; font-weight: 800; text-align: right; }
.bgp-stake::placeholder { color: #51565d; opacity: 1; }

.bgp-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px 28px; border-top: 1px solid rgba(255,255,255,.07); }
.bgp-result-card { padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: linear-gradient(180deg, #121316, #0f1012); }
.bgp-result-card > span { display: block; color: #92979d; font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.bgp-result-card strong { display: block; margin: 4px 0 2px; color: #fff; font-size: clamp(25px, 5vw, 36px); line-height: 1.1; letter-spacing: -.5px; }
.bgp-result-card small { color: #686e75; font-size: 11px; }
.bgp-result-total { border-color: rgba(212,175,55,.33); background: linear-gradient(145deg, rgba(212,175,55,.13), rgba(212,175,55,.03)); }
.bgp-result-total strong { color: var(--bgp-gold-2); }

.bgp-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 0 28px 22px; }
.bgp-calc, .bgp-clear, .bgp-share { min-height: 50px; border-radius: 11px; font-weight: 900; letter-spacing: .6px; cursor: pointer; }
.bgp-calc { border: 1px solid #f1d365; background: linear-gradient(180deg, #f4d968, #c69b22); color: #090909; box-shadow: 0 10px 26px rgba(212,175,55,.18); }
.bgp-calc:hover { filter: brightness(1.07); }
.bgp-clear { padding: 0 22px; border: 1px solid rgba(255,255,255,.1); background: #15171a; color: #babec3; }
.bgp-clear:hover { color: #fff; border-color: rgba(255,255,255,.2); }

.bgp-share-wrap { padding: 0 28px 20px; }
.bgp-share { width: 100%; min-height: 44px; border: 1px solid rgba(255,255,255,.09); background: #131518; color: #d8d9db; }
.bgp-share:hover { color: #fff; border-color: rgba(212,175,55,.4); }

.bgp-message { min-height: 0; margin: 0 28px; color: #f2b1b1; font-size: 12px; font-weight: 700; }
.bgp-message:not(:empty) { margin-bottom: 18px; padding: 10px 12px; border: 1px solid rgba(255,107,107,.25); border-radius: 9px; background: rgba(255,107,107,.06); }

.bgp-footer { padding: 20px 28px 24px; border-top: 1px solid rgba(255,255,255,.07); color: #7f858c; font-size: 12px; line-height: 1.55; }
.bgp-footer p { margin: 0 0 8px; }
.bgp-footer strong { color: #c7c9cc; }
.bgp-note { opacity: .82; }
.bgp-18 { margin-top: 14px; color: #c3a847; font-size: 10px; font-weight: 900; letter-spacing: 1.3px; text-align: center; }

@media (max-width: 640px) {
  .bgp-wrap { margin: 12px auto; }
  .bgp-card { border-radius: 16px; }
  .bgp-header { align-items: flex-start; flex-direction: column; gap: 12px; padding: 22px 18px 14px; }
  .bgp-logo { width: 138px; max-height: 58px; }
  .bgp-wordmark { min-width: 0; }
  .bgp-badge-row { padding: 0 18px 17px; }
  .bgp-section { padding: 18px; }
  .bgp-section-title { align-items: flex-start; flex-direction: column; gap: 3px; }
  .bgp-picks { grid-template-columns: 1fr; }
  .bgp-pick { grid-template-columns: 32px auto 1fr 31px; min-height: 56px; }
  .bgp-sign { padding: 0 6px; }
  .bgp-sign-btn { width: 25px; }
  .bgp-stake-panel { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .bgp-stake-box { width: 100%; }
  .bgp-results { padding: 18px; gap: 8px; }
  .bgp-result-card { padding: 14px; }
  .bgp-result-card strong { font-size: 25px; }
  .bgp-actions { grid-template-columns: 1fr; padding: 0 18px 18px; }
  .bgp-clear { min-height: 44px; }
  .bgp-share-wrap { padding: 0 18px 18px; }
  .bgp-message { margin: 0 18px; }
  .bgp-footer { padding: 18px; }
}

@media (max-width: 380px) {
  .bgp-sign-btn { width: 23px; }
  .bgp-results { grid-template-columns: 1fr; }
}


/* v1.1: una sola selección inicial y eliminación clara de selecciones extra */
.bgp-pick .bgp-remove[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}

.bgp-add {
  min-height: 52px;
  font-size: 13px;
  border-color: rgba(212,175,55,.58);
  background: linear-gradient(180deg, rgba(212,175,55,.08), rgba(212,175,55,.025));
}

.bgp-add:hover {
  box-shadow: inset 0 0 22px rgba(212,175,55,.05);
}
