/* P08: source-backed Big Baller details; no global layout selectors. */
.bbp{margin:24px 0;scroll-margin-top:90px;min-width:0;--bbp-gold:#eec36a;--bbp-muted:#b6bfce}
.bbp *, .bbp-round *{box-sizing:border-box}
.bbp h2{margin-bottom:10px}.bbp-note{color:var(--bbp-muted,#b6bfce);font-size:13px;line-height:1.6;overflow-wrap:anywhere}.bbp-note strong{color:#f0d89e}
.bbp-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.bbp-tabs button,.bbp-controls button,.bbp-path button{font:inherit;border:1px solid #536075;background:#202a3a;color:#eef2f8;border-radius:9px;padding:10px 14px;cursor:pointer}.bbp-tabs button{display:flex;align-items:center;gap:9px;font-weight:700;min-width:138px}.bbp-tabs img{width:34px;height:34px;object-fit:contain}.bbp-tabs button[aria-pressed=true]{border-color:var(--bbp-gold);background:#4a3b20;box-shadow:inset 0 0 0 1px #eec36a66}.bbp-tabs button:disabled{cursor:default}.bbp button:focus-visible,.bbp-round button:focus-visible,.bbp-round summary:focus-visible,.bbp-fold summary:focus-visible{outline:3px solid #f0bc50;outline-offset:4px}
.bbp-card{background:linear-gradient(145deg,#1a2433,#141a24);border:1px solid #46536a;border-radius:14px;padding:18px;margin:14px 0;min-width:0}.bbp-card[hidden]{display:none}.bbp-card h3{display:flex;align-items:center;gap:10px;margin:0 0 16px}.bbp-card h3 img{width:44px;height:44px;object-fit:contain}
.bbp-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:16px 0}.bbp-kpis div{border:1px solid #3c495d;border-radius:10px;padding:12px;background:#111a27;min-width:0}.bbp-kpis dt{font-size:12px;color:var(--bbp-muted);line-height:1.5}.bbp-kpis dd{margin:5px 0 0;font-size:24px;font-weight:750;color:var(--bbp-gold);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bbp-fold,.bbp-round{background:#151e2c;border:1px solid #445169;border-radius:11px;margin:14px 0;padding:0 12px;min-width:0;max-width:100%;color:#e5eaf2}.bbp-fold>summary,.bbp-round>summary{display:flex;align-items:center;gap:11px;min-height:62px;padding:13px 2px;cursor:pointer;list-style:none;font-weight:700}.bbp-fold>summary:after,.bbp-round>summary:after{content:'+';margin-left:auto;width:25px;height:25px;flex:0 0 25px;text-align:center;border:1px solid #63718a;border-radius:50%;line-height:21px;color:var(--bbp-gold);font-size:21px}.bbp-fold[open]>summary:after,.bbp-round[open]>summary:after{content:'−'}.bbp-round>summary::-webkit-details-marker,.bbp-fold>summary::-webkit-details-marker{display:none}.bbp-round>summary img{height:42px;width:42px;object-fit:contain}.bbp-round>summary span{min-width:0}.bbp-round>summary small{display:block;color:var(--bbp-muted);font-size:12px;font-weight:400;margin-top:5px}.bbp-round p{line-height:1.6}.bbp-round a{color:#f1cc83;text-underline-offset:3px}.bbp-round h4{margin:20px 0 10px}
.bbp-draw{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));list-style:none;margin:12px 0;padding:0;gap:8px}.bbp-draw li{text-align:center;min-width:0}.bbp-ball{display:flex;align-items:center;justify-content:center;width:36px;height:36px;max-width:100%;margin:0 auto;border-radius:50%;background:radial-gradient(circle at 29% 23%,#fff8cf,#f0c363 48%,#9d641e 92%);color:#2c200d;font-weight:800;font-size:16px;border:1px solid #e6bd69;box-shadow:inset -3px -3px 4px #44250c50,0 2px 4px #0007;font-variant-numeric:tabular-nums}.bbp-draw small{display:block;margin-bottom:4px;color:#a8b5c9;font-size:10px}
.bbp-qualifiers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.bbp-qualifier{padding:12px;border-radius:9px;border:1px solid #435067;background:#111a27}.bbp-qualifier h5{margin:0 0 9px;display:flex;align-items:center;gap:8px;font:inherit;font-size:14px;font-weight:700}.bbp-qualifier img{width:28px;height:28px}.bbp-number-set{display:flex;flex-wrap:wrap;gap:6px}.bbp-required{display:inline-flex;justify-content:center;align-items:center;min-width:34px;min-height:34px;border:1px dashed #7a879b;border-radius:8px;font-weight:750;background:#202a3a}.bbp-required[data-draw-hit=true]{border:1px solid #5ea998;color:#d7fff2;background:#21463e}.bbp-qualifier small{display:block;margin-top:9px;color:var(--bbp-muted);line-height:1.5}
.bbp-replay{padding:13px;border:1px solid #58657a;border-radius:12px;background:#101927;margin:14px 0;min-width:0}.bbp-step-card{border:1px solid #b2945c;border-radius:11px;padding:17px;background:linear-gradient(130deg,#46391f,#202739);display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center}.bbp-dice{display:flex;gap:7px}.bbp-die{width:44px;height:44px;border-radius:9px;background:linear-gradient(135deg,#fff7de,#d8c69d);color:#252a34;border:1px solid #fcecc5;display:flex;justify-content:center;align-items:center;font-size:36px;line-height:1;box-shadow:0 3px 0 #776340}.bbp-step-card strong{display:block;font-size:18px;line-height:1.4}.bbp-step-card small{display:block;line-height:1.5;color:#d7dce6;margin-top:4px;font-size:12px}.bbp-step-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.bbp-step-metrics div{padding:10px;border:1px solid #4b596e;border-radius:9px}.bbp-step-metrics span{display:block;font-size:11px;color:#bec9d9;line-height:1.4}.bbp-step-metrics strong{display:block;font-size:18px;color:#f0cd84;margin-top:6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bbp-path{display:flex;gap:7px;overflow-x:auto;max-width:100%;padding:10px 2px;margin:9px 0;scrollbar-width:thin}.bbp-path button{flex:0 0 115px;text-align:left;padding:9px;font-size:12px}.bbp-path button span{display:block;color:#b5c0d1;margin-top:4px;font-size:11px;overflow-wrap:anywhere}.bbp-path button[aria-current=step]{border-color:#f0c76e;background:#554326;color:#fff1d3}.bbp-path button:disabled{cursor:default;opacity:1}.bbp-controls{display:flex;justify-content:space-between;gap:10px;margin-top:10px}.bbp-controls button{font-size:13px}.bbp-controls button:disabled{opacity:.45;cursor:default}.bbp-step-status{font-size:12px;color:#d3dceb;line-height:1.6;min-height:2em;overflow-wrap:anywhere}
.bbp-scroll{max-width:100%;overflow-x:auto;margin:13px 0;scrollbar-width:thin}.bbp-scroll table{width:100%;border-collapse:collapse;font-size:13px}.bbp-scroll th,.bbp-scroll td{padding:10px 8px;text-align:left;vertical-align:top;border-bottom:1px solid #39485c;overflow-wrap:anywhere}.bbp-scroll th{font-weight:650}.bbp-scroll caption{text-align:left;color:#cbd4e2;font-size:12px;line-height:1.5;margin-bottom:10px}.bbp-scroll td small{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:#afbbce}.bbp-ledger{min-width:640px}.bbp-dice-dist{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:5px;margin:12px 0}.bbp-dice-bin{text-align:center;min-width:0;padding:8px 2px;border:1px solid #43516a;border-radius:7px;background:#111a27}.bbp-dice-bin b{display:block;color:#f2cc7a;font-size:16px}.bbp-dice-bin span{font-size:11px;color:#bec9d9}.bbp-history-row>.bbp-history-cell{padding:6px!important;width:100%;max-width:100%}
@media(max-width:640px){.bbp{scroll-margin-top:125px}.bbp-card{padding:13px}.bbp-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.bbp-kpis dd{font-size:21px}.bbp-draw{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.bbp-qualifiers{grid-template-columns:1fr}.bbp-step-card{grid-template-columns:1fr;padding:12px}.bbp-step-card .bbp-dice{justify-content:center}.bbp-step-card>div:nth-child(2){text-align:center}.bbp-step-metrics{grid-template-columns:1fr}.bbp-step-metrics div{display:flex;align-items:center;justify-content:space-between;gap:8px}.bbp-step-metrics strong{margin:0;font-size:17px}.bbp-dice-dist{grid-template-columns:repeat(6,minmax(0,1fr))}.bbp-controls button{padding:9px 10px}.bbp-round{padding:0 9px}.bbp-replay{padding:10px}.bbp-tabs button{min-width:120px;padding:9px 11px}.bbp-tabs{gap:7px}}
@media(prefers-reduced-motion:reduce){.bbp *, .bbp-round *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
#history-explorer .history-result-table tr.bbp-history-row{display:table-row}#history-explorer .history-result-table tr.bbp-history-row>td.bbp-history-cell{display:table-cell;padding:6px!important;width:auto;max-width:100%;background:transparent}#history-explorer .history-result-table tr.bbp-history-row>td.bbp-history-cell:before{content:none!important}
@media(max-width:700px){#history-explorer .history-result-table tr.bbp-history-row{display:block;width:100%;padding:0;gap:0;border:0}#history-explorer .history-result-table tr.bbp-history-row>td.bbp-history-cell{display:block;width:100%;padding:4px 0!important;max-width:100%;grid-column:1/-1}}

/* Legacy history styles target descendant tables: keep this nested ledger a table. */
#history-explorer .bbp-history-cell .bbp-round>summary{display:flex}
#history-explorer .bbp-history-cell .bbp-scroll table{display:table;width:100%;min-width:640px!important;border-collapse:collapse}
#history-explorer .bbp-history-cell .bbp-scroll caption{display:table-caption;width:auto;text-align:left;padding:0}
#history-explorer .bbp-history-cell .bbp-scroll thead{display:table-header-group;position:static;width:auto;height:auto;padding:0;overflow:visible;clip-path:none;white-space:normal}
#history-explorer .bbp-history-cell .bbp-scroll tbody{display:table-row-group;width:auto}
#history-explorer .bbp-history-cell .bbp-scroll tr{display:table-row;grid-template-columns:none;gap:0;margin:0;padding:0;border:0;border-radius:0}
#history-explorer .bbp-history-cell .bbp-scroll th,#history-explorer .bbp-history-cell .bbp-scroll td{display:table-cell;width:auto;min-width:0;padding:10px 8px;border:0;border-bottom:1px solid #39485c;text-align:left;white-space:normal}
#history-explorer .bbp-history-cell .bbp-path button[aria-current=step]{border-color:#f0c76e;background:#554326;color:#fff1d3}

/* Explicit bonus artwork already identifies these labels. */
.bbp-tabs button .bonus-mention>.result-mark,.bbp-card>h3 .bonus-mention>.result-mark,.bbp-qualifier>h5 .bonus-mention>.result-mark,.bbp-round>summary .bonus-mention>.result-mark{display:none}
