/* 67BET bet board ("Latest bets") + bet card (miniapp/betview.js) */

/* ---------- board ---------- */
.bv-board { margin-top: 18px; background: var(--ps-panel, #12151B); border: 1px solid var(--ps-line, #222733); border-radius: 16px; padding: 12px; }
.bv-board__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 4px 10px; }
.bv-board__head strong { color: #fff; font-size: 15px; font-weight: 900; }
.bv-tabs { display: inline-flex; background: #0A0C10; border: 1px solid var(--ps-line, #222733); border-radius: 999px; padding: 3px; gap: 2px; }
.bv-tab { border: 0; background: transparent; color: var(--ps-dim, #8A93A6); font: inherit; font-size: 12.5px; font-weight: 800; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.bv-tab.active { background: var(--ps-panel-2, #1A1E26); color: #fff; box-shadow: inset 0 0 0 1px var(--ps-line, #222733); }
.bv-table { display: flex; flex-direction: column; gap: 4px; }
.bv-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #0E1116;
  color: var(--ps-text, #F3F5F9);
  font: inherit;
  font-size: 13px;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.bv-row:hover { background: #161A21; }
.bv-row--head { background: transparent; cursor: default; color: var(--ps-dim, #8A93A6); font-size: 11.5px; font-weight: 700; padding: 2px 12px 4px; }
.bv-row--head:hover { background: transparent; }
.bv-c { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bv-c--bet, .bv-c--mult, .bv-c--pay { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.bv-c--pay { font-weight: 800; }
.bv-gicon { flex: 0 0 auto; display: inline-flex; color: var(--ps-dim, #8A93A6); }
.bv-gname { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.bv-gname b, .bv-gname small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-gname b { font-weight: 800; }
.bv-gname small { color: var(--ps-dim, #8A93A6); font-size: 11px; }
.bv-rank { display: inline-flex; flex: 0 0 auto; }
.bv-name { overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.bv-private { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; font-size: 10.5px; font-weight: 800; color: var(--ps-gold, #F5B83D); background: rgba(255, 197, 61, 0.12); border: 1px solid rgba(255, 197, 61, 0.35); border-radius: 999px; padding: 1px 6px 1px 4px; }
.bv-private svg { width: 12px; height: 12px; }
.bv-hidden { display: inline-flex; align-items: center; gap: 4px; color: var(--ps-dim, #8A93A6); font-weight: 700; }
.bv-win { color: var(--ps-green, #3DD68C); }
.bv-lose { color: var(--ps-red, #FF5A5F); }
.bv-pending { color: var(--ps-gold, #F5B83D); font-weight: 700; }
.bv-empty { color: var(--ps-dim, #8A93A6); font-size: 13px; padding: 14px 12px; }

/* phones: Game · Player · Payout */
@media (max-width: 560px) {
  .bv-row { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.2fr) minmax(0, 0.9fr); padding: 10px; }
  .bv-c--bet, .bv-c--mult { display: none; }
  .bv-board { padding: 10px; }
}

/* ---------- bet card ---------- */
.bv-card { color: var(--ps-text, #F3F5F9); text-align: center; }
.bv-card__top { display: flex; align-items: center; justify-content: space-between; margin: -2px -2px 10px; }
.bv-card__top span { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 15px; color: #fff; }
.bv-x { border: 0; background: transparent; color: var(--ps-dim, #8A93A6); font-size: 18px; cursor: pointer; padding: 4px 6px; }
.bv-x:hover { color: #fff; }
.bv-card__game { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 20px; font-weight: 900; margin: 4px 0 8px; }
.bv-card__by, .bv-card__when, .bv-card__id { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; color: var(--ps-dim, #8A93A6); margin: 4px 0; }
.bv-card__by .bv-name { color: #fff; }
.bv-card__when { color: #C9CFDB; }
.bv-card__id { color: #C9CFDB; font-variant-numeric: tabular-nums; }
.bv-copy { border: 0; background: transparent; color: var(--ps-dim, #8A93A6); cursor: pointer; display: inline-flex; padding: 2px; }
.bv-copy:hover { color: #fff; }
.bv-brand { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: #fff; }
.bv-brand::before, .bv-brand::after { content: ''; flex: 1; height: 1px; background: var(--ps-line, #222733); }
.bv-brand span { font-style: italic; font-weight: 900; font-size: 22px; letter-spacing: -0.5px; }
.bv-brand b { color: var(--ps-blue, #2F6FEB); font-weight: 900; }
.bv-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #0E1116; border: 1px solid var(--ps-line, #222733); border-radius: 12px; padding: 12px 6px; margin: 4px 0 14px; }
.bv-stats > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bv-stats > div + div { border-left: 1px solid var(--ps-line, #222733); }
.bv-stats small { color: var(--ps-dim, #8A93A6); font-size: 12px; font-weight: 700; }
.bv-stats b { color: #fff; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.bv-stats b.bv-win { color: var(--ps-green, #3DD68C); }
.bv-stats b.bv-lose { color: var(--ps-red, #FF5A5F); }
.bv-visual { margin-bottom: 14px; }
.bv-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--ps-dim, #8A93A6); }
.bv-facts b { color: #fff; text-transform: capitalize; }
.bv-play { width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: var(--ps-blue, #2F6FEB); color: #fff; font: inherit; font-weight: 900; font-size: 14.5px; cursor: pointer; }
.bv-play:hover { filter: brightness(1.08); }
.bv-play--slip { background: var(--ps-green, #3DD68C); color: #052512; }
.bv-play--ghost { margin-top: 8px; background: var(--ps-panel-2, #1A1E26); border: 1px solid var(--ps-line, #222733); color: #fff; }
.bv-slipnote { font-size: 12px; color: var(--ps-dim, #8A93A6); margin: 7px 0 2px; }

/* Mines board */
.bv-mines { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; max-width: 300px; margin: 0 auto; }
.bv-tile { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: #0E1116; border: 1px solid var(--ps-line, #222733); font-size: 22px; }
.bv-tile.is-gem { background: radial-gradient(circle at 50% 40%, rgba(31, 220, 106, 0.28), #0E1116 70%); box-shadow: inset 0 0 0 1px rgba(31, 220, 106, 0.35); }
.bv-tile.is-dim, .bv-tile.is-mine { opacity: 0.32; filter: saturate(0.6); box-shadow: none; background: #0E1116; }
.bv-tile.is-hit { opacity: 1; filter: none; background: radial-gradient(circle at 50% 40%, rgba(255, 77, 94, 0.45), #2a0d16 75%); border-color: rgba(255, 77, 94, 0.7); }

/* Dice */
.bv-dice { padding: 22px 6px 0; }
.bv-dice__bar { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--ps-green, #3DD68C) 0 var(--t), var(--ps-red, #FF5A5F) var(--t) 100%); }
.bv-dice__bar.is-over { background: linear-gradient(90deg, var(--ps-red, #FF5A5F) 0 var(--t), var(--ps-green, #3DD68C) var(--t) 100%); }
.bv-dice__roll { position: absolute; bottom: 18px; transform: translateX(-50%); background: #fff; color: #0A0C10; font-weight: 900; font-size: 12.5px; padding: 3px 8px; border-radius: 8px; }
.bv-dice__roll.is-win { box-shadow: 0 0 0 2px var(--ps-green, #3DD68C); }
.bv-dice__roll.is-lose { box-shadow: 0 0 0 2px var(--ps-red, #FF5A5F); }
.bv-dice__scale { display: flex; justify-content: space-between; color: var(--ps-dim, #8A93A6); font-size: 11px; margin-top: 6px; }

/* Limbo / Crash */
.bv-big { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; padding: 10px 0 2px; }
.bv-big.is-win { color: var(--ps-green, #3DD68C); }
.bv-big.is-lose { color: var(--ps-red, #FF5A5F); }

/* Coin flip */
.bv-coin { width: 86px; height: 86px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: #3b2700; background: radial-gradient(circle at 35% 30%, #ffe48a, #f2b51d 60%, #b8800a); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 8px 24px rgba(242, 181, 29, 0.25); }
.bv-coin.is-tails { color: #1e2a4a; background: radial-gradient(circle at 35% 30%, #e6ecff, #a9b6dd 60%, #6c7aa6); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 8px 24px rgba(169, 182, 221, 0.25); }

/* Plinko slots */
.bv-plinko { display: flex; gap: 3px; justify-content: center; flex-wrap: nowrap; overflow-x: auto; padding: 4px 0; }
.bv-plinko span { flex: 1 1 0; min-width: 22px; padding: 7px 1px; border-radius: 6px; background: #0E1116; border: 1px solid var(--ps-line, #222733); font-size: 10.5px; font-weight: 800; color: var(--ps-dim, #8A93A6); }
.bv-plinko span.is-hit { background: var(--ps-gold, #F5B83D); border-color: var(--ps-gold, #F5B83D); color: #2a1a00; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(255, 197, 61, 0.35); }

/* Roulette */
.bv-roulette { width: 76px; height: 76px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #fff; border: 4px solid rgba(255, 255, 255, 0.85); }
.bv-roulette.is-red { background: #d62f45; }
.bv-roulette.is-black { background: #151a2b; }
.bv-roulette.is-green { background: #11a35a; }
.bv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.bv-chips span { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #0E1116; border: 1px solid var(--ps-line, #222733); color: var(--ps-dim, #8A93A6); }
.bv-chips span.is-win { color: var(--ps-green, #3DD68C); border-color: rgba(31, 220, 106, 0.5); }

/* Cards (Baccarat, Blackjack) */
.bv-hands { display: flex; flex-direction: column; gap: 10px; }
.bv-hand { background: #0E1116; border: 1px solid var(--ps-line, #222733); border-radius: 12px; padding: 8px 10px; }
.bv-hand.is-win { border-color: rgba(31, 220, 106, 0.55); box-shadow: inset 0 0 0 1px rgba(31, 220, 106, 0.2); }
.bv-hand small { display: block; color: var(--ps-dim, #8A93A6); font-size: 12px; font-weight: 700; margin-bottom: 6px; text-transform: capitalize; }
.bv-hand > div { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.bv-cardface { display: inline-grid; place-items: center; min-width: 38px; height: 52px; padding: 0 4px; border-radius: 7px; background: #f4f6ff; color: #111827; font-weight: 900; font-size: 15px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); }
.bv-cardface.is-red { color: #d62f45; }

/* Sports picks */
.bv-legs { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.bv-leg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #0E1116; border: 1px solid var(--ps-line, #222733); border-radius: 12px; padding: 10px 12px; }
.bv-leg__icon { color: var(--ps-dim, #8A93A6); display: inline-flex; }
.bv-leg__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bv-leg__body small { color: var(--ps-dim, #8A93A6); font-size: 11px; }
.bv-leg__body > b { color: #fff; font-size: 13.5px; }
.bv-leg__body span { color: #C9CFDB; font-size: 12.5px; }
.bv-leg__odds { display: flex; flex-direction: column; align-items: flex-end; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.bv-leg__odds small { font-size: 11px; font-weight: 800; color: var(--ps-dim, #8A93A6); }
.bv-leg.is-won { border-color: rgba(31, 220, 106, 0.5); }
.bv-leg.is-won .bv-leg__odds small { color: var(--ps-green, #3DD68C); }
.bv-leg.is-lost { border-color: rgba(255, 77, 94, 0.45); }
.bv-leg.is-lost .bv-leg__odds small { color: var(--ps-red, #FF5A5F); }
.bv-status { font-size: 11.5px; font-weight: 900; padding: 3px 9px; border-radius: 999px; background: var(--ps-panel-2, #1A1E26); color: var(--ps-dim, #8A93A6); }
.bv-status.is-won { background: rgba(31, 220, 106, 0.15); color: var(--ps-green, #3DD68C); }
.bv-status.is-lost { background: rgba(255, 77, 94, 0.15); color: var(--ps-red, #FF5A5F); }
.bv-status.is-open { background: rgba(255, 197, 61, 0.15); color: var(--ps-gold, #F5B83D); }

/* Provable fairness */
.bv-fair { margin-top: 12px; background: #0E1116; border: 1px solid var(--ps-line, #222733); border-radius: 12px; text-align: left; }
.bv-fair summary { cursor: pointer; padding: 12px 14px; font-weight: 800; color: #fff; list-style: none; display: flex; justify-content: space-between; }
.bv-fair summary::-webkit-details-marker { display: none; }
.bv-fair summary::after { content: '⌄'; color: var(--ps-dim, #8A93A6); }
.bv-fair[open] summary::after { content: '⌃'; }
.bv-fair__body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.bv-fair__body label { color: var(--ps-dim, #8A93A6); font-size: 11.5px; font-weight: 700; margin-top: 6px; }
.bv-fair__body code { display: block; background: #0A0C10; border: 1px solid var(--ps-line, #222733); border-radius: 8px; padding: 7px 9px; font-size: 11.5px; color: #C9CFDB; word-break: break-all; }
.bv-fair__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.bv-fair__row > div { display: flex; flex-direction: column; gap: 4px; }
.bv-verify { margin-top: 10px; min-height: 38px; border-radius: 10px; border: 1px solid var(--ps-line, #222733); background: var(--ps-panel-2, #1A1E26); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.bv-verify__out { font-size: 12.5px; color: #C9CFDB; margin-top: 6px; }

/* "My recent bets" and My Bets tickets open the bet card */
.cg-hrow.is-link, .ps-ticket.is-link { cursor: pointer; }
.cg-hrow.is-link:hover { filter: brightness(1.15); }
.ps-ticket.is-link:hover { border-color: #33427a; }
