.bgd-trigger { display:inline; border:0; padding:0; background:transparent; color:#174e91; font:inherit; font-weight:700; text-align:left; text-decoration:underline; cursor:pointer; }
.bgd-trigger:focus-visible { outline:2px solid #174e91; outline-offset:2px; }
.bgd-dialog { width:min(1100px,calc(100vw - 24px)); max-width:none; max-height:calc(100vh - 24px); padding:0; border:1px solid #788da7; background:#fff; color:#111; font:14px/1.5 Arial,"Microsoft YaHei",sans-serif; box-shadow:0 8px 32px #0006; }
.bgd-dialog::backdrop { background:#0008; }
.bgd-header { display:flex; align-items:center; justify-content:center; position:relative; padding:5px 42px; background:#e2e9f3; color:#355d87; border-bottom:1px solid #d19d2a; text-align:center; }
.bgd-header button { position:absolute; right:8px; top:2px; border:0; background:transparent; font-size:24px; line-height:1; cursor:pointer; }
.bgd-summary { padding:10px 18px; background:#fffdf0; border-bottom:1px solid #b6a568; }
.bgd-summary p { margin:3px auto; max-width:520px; overflow-wrap:anywhere; }
.bgd-total { font-weight:700; }
.bgd-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); padding:0; margin:0; list-style:none; }
.bgd-grid li { min-width:0; padding:6px; border-right:1px solid #ccc; border-bottom:1px solid #ccc; background:#f1f1f1; text-align:center; overflow-wrap:anywhere; }
.bgd-grid li > strong,.bgd-grid li > span { display:block; }
.bgd-grid li > .bgd-odds { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.replica-bet-odds { max-width:260px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.bgd-amount { font-size:12px; color:#555; }
.bgd-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:4px; }
.bgd-actions button { cursor:pointer; }
.bgd-footer { padding:8px; text-align:center; }
.bgd-footer button { padding:4px 22px; cursor:pointer; }
@media(max-width:650px) { .bgd-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
