/* ===============================================
   BET PAGES - PHONE TUNING (Dice 1, Dice 2, Coin 3, Coin 6, Card 3, Card 6, Slot Letters, Slot Numbers)
   Loaded AFTER the page's own CSS. The race bet pages do not use it (their slips are different).
   =============================================== */

@media (max-width: 768px) {

  /* ===== 1. smaller text (2px less) ===== */

  .db-desc-p {
    font-size: 12px;
  }

  .db-slip-rule {
    font-size: 11px;
  }

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

  .cb-desc-rule {
    font-size: 12px;
  }

  /* ===== 2. lower bet guide boxes ===== */

  .db-guide-cell {
    min-height: 18px;
    padding-top: 2px;
    padding-bottom: 2px;
    line-height: 1.15;
  }

  /* ===== 3. Fix & Next: a little lower, as wide as its container ===== */

  .db-fix-btn-p,
  .cb-fix-btn {
    width: 100%;
    height: 30px;
    font-size: 15px;
  }

  /* Coin: the prediction box and the button share the row, each half of it. */
  .cb-footer-row {
    height: 30px;
    gap: 10px;
  }

  .cb-prediction {
    flex: 1 1 0;
    width: auto;
    height: 30px;
    font-size: 14px;
  }

  .cb-fix-btn {
    flex: 1 1 0;
  }

  /* ===== 4. bet slips: fill the container, two side by side ===== */

  .db-scroll-outer {
    width: 100%;
    margin: 0;
  }

  .cb-scroll-inner {
    width: 100%;
  }

  .cb-scroll-wrap {
    flex: 1 1 auto;
    width: auto;
  }

  .db-scroll-col,
  .cb-scroll-col {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .cb-scroll-col {
    padding: 4px 0;
  }

  .db-card-p {
    width: calc((100% - 10px) / 2);
    height: 116px;
    padding: 12px 22px;
  }

  /* The title row may use a little more width than the amount row (long names like High Low). */
  .db-row-head-p {
    width: calc(100% + 4px);
    margin: 0 -2px;
    box-sizing: border-box;
  }

  /* Two-name slips (High Low, Odd Even) need a smaller name to fit beside the odds. */
  .db-row-head-p .db-card-types:has(.db-type-btn:nth-child(2)) {
    font-size: 14px;
  }

  .db-row-head-p .db-card-types {
    gap: 0.8em;
    font-size: 17px;
  }

  .db-row-head-p .db-card-mult {
    font-size: 18px;
  }

  .db-row-indicator-p {
    gap: 8px;
  }

  .db-card-p .db-amount-value {
    font-size: 26px;
  }

  .db-card-p .db-sign {
    font-size: 28px;
  }

  /* The caption stays on one line: it may be a little wider than the slip's inner box. */
  .db-mbet-p {
    font-size: 9px;
    width: calc(100% + 44px);
    margin: 0 -22px;
  }
}
