/* ===============================================
   POLISH - BET PAGES (Dice 1, Dice 2, Coin 3, Coin 6, Card 3, Card 6, Slot Letters, Slot Numbers)
   The same look as the Race bet slips (Polish-Race-Bet.css): glass slips with a crimson light
   and a green top line, a green pill for the multiplier, round - / + buttons, a quiet limits line,
   a green Fix & Next button, and the same message and confirm boxes.
   Loaded AFTER the page's own CSS and Bet-Phone.css. Looks only: the slips, their sizes,
   the page scripts and the class names are not touched. To go back, remove this one <link> from the page.
   =============================================== */

:root {
  --bp-green: #00ff92;
  --bp-crimson: rgba(120, 0, 48, 0.5);
  --bp-line: rgba(205, 205, 205, 0.12);
  --bp-panel: linear-gradient(180deg, rgba(18, 18, 18, 0.94), rgba(6, 6, 6, 0.94));
}

/* ---------- 1. BET GUIDES (the small boxes with the rules) ---------- */
.db-guide-cell {
  border: 1px solid rgba(205, 205, 205, 0.08);
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.8);
  box-shadow: none;
}

.db-guide-item b {
  font-weight: 700;
  color: #e6e6e6;
}

/* ---------- 2. BET SLIPS (desktop and phone) ---------- */
.db-card,
.db-card-p {
  border: 1px solid var(--bp-line);
  border-top: 2px solid rgba(0, 255, 146, 0.5);
  border-radius: 10px;
  background:
    radial-gradient(ellipse 85% 38% at 50% 0%, var(--bp-crimson), rgba(0, 0, 0, 0) 72%),
    var(--bp-panel);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), inset 0 0 22px rgba(205, 205, 205, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* A slip that has a bet on it lights up. */
.db-card.db-card-active,
.db-card-p.db-card-active {
  border-color: rgba(0, 255, 146, 0.45);
  border-top-color: var(--bp-green);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 255, 146, 0.18), inset 0 0 22px rgba(0, 255, 146, 0.05);
}

@media (hover: hover) {
  .db-card:hover,
  .db-card-p:hover {
    border-color: rgba(205, 205, 205, 0.28);
    border-top-color: var(--bp-green);
  }

  .db-card.db-card-active:hover,
  .db-card-p.db-card-active:hover {
    border-color: rgba(0, 255, 146, 0.6);
  }
}

/* The multiplier: a green pill. */
.db-card-mult {
  display: inline-block;
  width: auto;
  align-self: center;
  padding: 2px 12px;
  border: 1px solid rgba(0, 255, 146, 0.4);
  border-radius: 8px;
  background: rgba(0, 255, 146, 0.09);
  font-size: 17px;
  line-height: 1.4;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(0, 255, 146, 0.5);
}

/* The bet name(s). A name you can pick (High / Low, Odd / Even ...) is a small pill button. */
.db-type-btn {
  letter-spacing: 0.02em;
  text-shadow: none;
}

button.db-type-btn {
  padding: 2px 10px;
  border: 1px solid rgba(205, 205, 205, 0.22);
  border-radius: 8px;
  background: rgba(205, 205, 205, 0.05);
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

button.db-type-btn:hover {
  filter: none;
  opacity: 0.9;
  border-color: rgba(205, 205, 205, 0.5);
}

button.db-type-btn.db-type-selected {
  -webkit-text-stroke: 0;
  opacity: 1;
  color: #ffffff;
  border-color: var(--bp-green);
  background: rgba(0, 255, 146, 0.12);
  box-shadow: 0 0 12px rgba(0, 255, 146, 0.3);
}

/* The amount. */
.db-amount-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  opacity: 0.55;
}

.db-amount-value.db-active {
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 255, 146, 0.4);
}

/* - and + become real round buttons. */
.db-sign {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(205, 205, 205, 0.3);
  border-radius: 8px;
  background: rgba(205, 205, 205, 0.05);
  font-size: 22px;
  line-height: 1;
  color: #e6e6e6;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.db-sign:hover {
  filter: none;
  border-color: var(--bp-green);
  color: var(--bp-green);
  background: rgba(0, 255, 146, 0.1);
  box-shadow: 0 0 12px rgba(0, 255, 146, 0.35);
}

.db-sign:active {
  transform: scale(0.92);
}

.db-sign-row {
  padding: 0 2px;
}

/* The limits line: small and quiet. (Race-Bet-Scroll.js is not used here, so it stays one line.) */
.db-mbet,
.db-mbet-p {
  font-size: 10px;
  letter-spacing: 0;
  color: rgba(205, 205, 205, 0.6);
  text-shadow: none;
}

/* ---------- 3. FIX & NEXT, PREDICTION ---------- */
.db-fix-btn,
.cb-fix-btn {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #22ffa6, #00c471);
  color: #03140c;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(0, 255, 146, 0.55), 0 8px 22px rgba(0, 255, 146, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.db-fix-btn:hover,
.cb-fix-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 255, 146, 0.8), 0 10px 28px rgba(0, 255, 146, 0.42);
}

.db-fix-btn:active,
.cb-fix-btn:active {
  transform: translateY(0);
}

.db-fix-btn:disabled,
.cb-fix-btn:disabled {
  background: #2b2b2b;
  color: rgba(205, 205, 205, 0.45);
  box-shadow: 0 0 0 1px rgba(205, 205, 205, 0.12);
  filter: none;
  transform: none;
  cursor: default;
}

/* Coin: the box that shows your pick. */
.cb-prediction {
  border: 1px solid var(--bp-line);
  border-left: 3px solid var(--bp-green);
  border-radius: 8px;
  background: var(--bp-panel);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  color: var(--bp-green);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-shadow: 0 0 12px rgba(0, 255, 146, 0.4);
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. MESSAGE AND CONFIRM BOX ---------- */
.db-toast,
.cb-toast {
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(6, 6, 6, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 255, 146, 0.3);
}

.db-confirm-overlay,
.cb-confirm-overlay {
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.db-confirm-box,
.cb-confirm-box {
  gap: 22px;
  padding: 30px 24px 24px;
  border: 1px solid rgba(205, 205, 205, 0.16);
  border-top: 2px solid var(--bp-green);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, var(--bp-crimson), rgba(0, 0, 0, 0) 75%),
    #090909;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 255, 146, 0.18);
}

.db-confirm-question,
.cb-confirm-question {
  font-size: 16px;
  font-weight: 700;
  color: #ececec;
}

.db-confirm-actions,
.cb-confirm-actions {
  gap: 12px;
}

.db-confirm-yes,
.db-confirm-no,
.cb-confirm-yes,
.cb-confirm-no {
  flex: 1 1 0;
  min-height: 42px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.db-confirm-yes,
.cb-confirm-yes {
  border: 0;
  background: linear-gradient(180deg, #22ffa6, #00c471);
  box-shadow: 0 0 0 1px rgba(0, 255, 146, 0.55), 0 6px 18px rgba(0, 255, 146, 0.25);
}

.db-confirm-no,
.cb-confirm-no {
  border: 1px solid rgba(205, 205, 205, 0.3);
  background: transparent;
  color: #cdcdcd;
}

.db-confirm-yes:hover,
.db-confirm-no:hover,
.cb-confirm-yes:hover,
.cb-confirm-no:hover {
  filter: none;
  transform: translateY(-1px);
}

.db-confirm-no:hover,
.cb-confirm-no:hover {
  border-color: rgba(205, 205, 205, 0.6);
}

/* ---------- 5. PHONE ---------- */
@media (max-width: 768px) {
  /* The scroll bar (the one that shows where you are in the list of slips). */
  .db-scrollbar-track,
  .cb-scrollbar-track {
    width: 5px;
    border-radius: 3px;
    background: rgba(205, 205, 205, 0.08);
  }

  .db-scrollbar-thumb,
  .cb-scrollbar-thumb {
    width: 3px;
    border-radius: 2px;
    filter: none;
    box-shadow: 0 0 8px rgba(0, 255, 146, 0.6);
  }

  /* Fix & Next (and the pick box of Coin): the same height, easy for a thumb. */
  .db-fix-btn-p,
  .cb-fix-btn,
  .cb-prediction,
  .cb-footer-row {
    height: 40px;
  }

  .db-fix-btn-p,
  .cb-fix-btn {
    font-size: 14px;
  }

  .cb-prediction {
    font-size: 14px;
  }

  /* The phone slip: the same parts as the race slip, in a compact grid.
       line 1   the bet name(s) and the multiplier
       line 2   [-]  amount  [+]
       line 3   [-]  limits  [+]                                                   */
  .db-card-p {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    grid-template-areas:
      "head head head"
      "adec amount ainc"
      "adec limits ainc";
    grid-template-rows: minmax(0, 1fr) auto auto;
    column-gap: 4px;
    row-gap: 4px;
    align-items: center;
    height: auto;
    min-height: 116px;
    padding: 9px 7px 8px;
    border-radius: 12px;
  }

  .db-card-p .db-row-head-p {
    grid-area: head;
    align-self: center;
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 6px;
  }

  .db-card-p .db-row-head-p .db-card-types,
  .db-card-p .db-row-head-p .db-card-types:has(.db-type-btn:nth-child(2)) {
    width: auto;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
  }

  .db-card-p .db-card-mult {
    padding: 1px 9px;
    font-size: 14px;
  }

  .db-card-p .db-row-indicator-p {
    display: contents;
  }

  .db-card-p .db-sign {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .db-card-p .db-sign[data-action="dec"] {
    grid-area: adec;
    justify-self: start;
  }

  .db-card-p .db-sign[data-action="inc"] {
    grid-area: ainc;
    justify-self: end;
  }

  .db-card-p .db-amount-value {
    grid-area: amount;
    align-self: end;
    text-align: center;
    font-size: 22px;
  }

  .db-card-p .db-mbet-p {
    grid-area: limits;
    align-self: start;
    width: 100%;
    margin: 0;
    font-size: 9px;
    line-height: 1.3;
  }

  .db-card-p .db-mbet-min,
  .db-card-p .db-mbet-max {
    display: block;
  }

  .db-card-p .db-mbet-sep {
    display: none;
  }

  .db-confirm-box,
  .cb-confirm-box {
    padding: 26px 18px 20px;
  }
}
