/* === sicbo-shaker.css === */
.sicbo-shaker { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; padding: 20px 16px; background: #131A2E; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 16px; text-align: center; }
.sicbo-shaker .sicbo-shaker-title { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: #F97316; }
.sicbo-shaker h2.sicbo-shaker-title, .sicbo-shaker h3.sicbo-shaker-title, .sicbo-shaker h4.sicbo-shaker-title { font-size: 12px; letter-spacing: 0.14em; }
.sicbo-shaker .sicbo-shaker-dome { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 260px; aspect-ratio: 2 / 1; margin: 0; padding: 12px; background: radial-gradient(ellipse at 50% 85%, rgba(185, 28, 28, 0.55) 0%, rgba(127, 29, 29, 0.35) 45%, rgba(15, 23, 42, 0) 75%), radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 60%); border: 2px solid rgba(251, 191, 36, 0.55); border-bottom-width: 6px; border-radius: 999px 999px 24px 24px; box-shadow: inset 0 0 24px rgba(148, 163, 184, 0.18); }
.sicbo-shaker .sicbo-shaker-dome.is-shaking { animation: sicboShakerShake 0.18s ease-in-out 5; }
.sicbo-shaker .sicbo-shaker-dice { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; }
.sicbo-shaker .sicbo-shaker-die { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 3px; width: 52px; height: 52px; padding: 8px; background: #F8FAFC; border-radius: 12px; box-shadow: inset 0 -3px 0 rgba(148, 163, 184, 0.55), 0 6px 14px rgba(0, 0, 0, 0.45); }
.sicbo-shaker .sicbo-shaker-die:nth-child(2) { transform: rotate(-8deg); }
.sicbo-shaker .sicbo-shaker-die:nth-child(3) { transform: rotate(6deg); }
.sicbo-shaker .sicbo-shaker-dice.is-rolling .sicbo-shaker-die { animation: sicboShakerTumble 0.3s linear infinite; }
.sicbo-shaker .sicbo-shaker-dice.is-rolling .sicbo-shaker-die:nth-child(2) { animation-duration: 0.36s; animation-direction: reverse; }
.sicbo-shaker .sicbo-shaker-dice.is-rolling .sicbo-shaker-die:nth-child(3) { animation-duration: 0.42s; }
.sicbo-shaker .sicbo-shaker-pip { display: block; width: 100%; height: 100%; border-radius: 999px; background: #0F172A; opacity: 0; }
.sicbo-shaker .sicbo-shaker-die-face-1 .sicbo-shaker-pip-5 { opacity: 1; background: #B91C1C; transform: scale(1.35); }
.sicbo-shaker .sicbo-shaker-die-face-2 .sicbo-shaker-pip-1, .sicbo-shaker .sicbo-shaker-die-face-2 .sicbo-shaker-pip-9 { opacity: 1; }
.sicbo-shaker .sicbo-shaker-die-face-3 .sicbo-shaker-pip-1, .sicbo-shaker .sicbo-shaker-die-face-3 .sicbo-shaker-pip-5, .sicbo-shaker .sicbo-shaker-die-face-3 .sicbo-shaker-pip-9 { opacity: 1; }
.sicbo-shaker .sicbo-shaker-die-face-4 .sicbo-shaker-pip-1, .sicbo-shaker .sicbo-shaker-die-face-4 .sicbo-shaker-pip-3, .sicbo-shaker .sicbo-shaker-die-face-4 .sicbo-shaker-pip-7, .sicbo-shaker .sicbo-shaker-die-face-4 .sicbo-shaker-pip-9 { opacity: 1; background: #B91C1C; }
.sicbo-shaker .sicbo-shaker-die-face-5 .sicbo-shaker-pip-1, .sicbo-shaker .sicbo-shaker-die-face-5 .sicbo-shaker-pip-3, .sicbo-shaker .sicbo-shaker-die-face-5 .sicbo-shaker-pip-5, .sicbo-shaker .sicbo-shaker-die-face-5 .sicbo-shaker-pip-7, .sicbo-shaker .sicbo-shaker-die-face-5 .sicbo-shaker-pip-9 { opacity: 1; }
.sicbo-shaker .sicbo-shaker-die-face-6 .sicbo-shaker-pip-1, .sicbo-shaker .sicbo-shaker-die-face-6 .sicbo-shaker-pip-3, .sicbo-shaker .sicbo-shaker-die-face-6 .sicbo-shaker-pip-4, .sicbo-shaker .sicbo-shaker-die-face-6 .sicbo-shaker-pip-6, .sicbo-shaker .sicbo-shaker-die-face-6 .sicbo-shaker-pip-7, .sicbo-shaker .sicbo-shaker-die-face-6 .sicbo-shaker-pip-9 { opacity: 1; }
.sicbo-shaker .sicbo-shaker-summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; margin: 0; font-size: 15px; line-height: 1.4; color: #CBD5E1; text-align: left; }
.sicbo-shaker .sicbo-shaker-total { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; background: #273549; border-radius: 10px; font-size: 18px; font-weight: 800; color: #ffffff; font-variant-numeric: tabular-nums; }
.sicbo-shaker .sicbo-shaker-total.is-empty { display: none; }
.sicbo-shaker .sicbo-shaker-total-small { background: rgba(147, 197, 253, 0.18); border: 1px solid rgba(147, 197, 253, 0.55); }
.sicbo-shaker .sicbo-shaker-total-big { background: rgba(251, 191, 36, 0.16); border: 1px solid rgba(251, 191, 36, 0.55); }
.sicbo-shaker .sicbo-shaker-total-triple { background: rgba(239, 68, 68, 0.20); border: 1px solid rgba(239, 68, 68, 0.60); }
.sicbo-shaker .sicbo-shaker-board { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 0; padding: 12px; background: #0E2A22; border: 1px solid rgba(74, 222, 128, 0.22); border-radius: 12px; text-align: left; }
.sicbo-shaker .sicbo-shaker-row { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.sicbo-shaker .sicbo-shaker-row-label { font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #94A3B8; }
.sicbo-shaker .sicbo-shaker-cells { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.sicbo-shaker .sicbo-shaker-cell { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 26px; padding: 3px 7px; border: 1px solid rgba(203, 213, 225, 0.25); border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.2; color: #E2E8F0; font-variant-numeric: tabular-nums; transition: opacity 0.2s, background-color 0.2s, box-shadow 0.2s; }
.sicbo-shaker .sicbo-shaker-board.has-roll .sicbo-shaker-cell { opacity: 0.35; }
.sicbo-shaker .sicbo-shaker-board.has-roll .sicbo-shaker-cell.is-lit { opacity: 1; background: rgba(249, 115, 22, 0.22); border-color: #F97316; box-shadow: 0 0 10px rgba(249, 115, 22, 0.45); color: #ffffff; }
.sicbo-shaker .sicbo-shaker-actions { display: flex; justify-content: center; margin: 0; }
.sicbo-shaker .sicbo-shaker-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; background: transparent; border: 1px solid rgba(249, 115, 22, 0.55); border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.2; color: #ffffff; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.sicbo-shaker .sicbo-shaker-button:hover { background-color: rgba(249, 115, 22, 0.12); border-color: #F97316; }
.sicbo-shaker .sicbo-shaker-button:focus-visible { outline: 2px solid #93C5FD; outline-offset: 3px; }
.sicbo-shaker .sicbo-shaker-button:disabled { opacity: 0.5; cursor: wait; }
.sicbo-shaker .sicbo-shaker-note { margin: 0; max-width: 380px; font-size: 13px; line-height: 1.5; color: #94A3B8; }
@keyframes sicboShakerShake { 0% { transform: translateX(0) rotate(0deg); } 25% { transform: translateX(-5px) rotate(-3deg); } 75% { transform: translateX(5px) rotate(3deg); } 100% { transform: translateX(0) rotate(0deg); } }
@keyframes sicboShakerTumble { from { transform: rotate(0deg) scale(0.92); } to { transform: rotate(360deg) scale(0.92); } }
@media (prefers-reduced-motion: reduce) {
  .sicbo-shaker .sicbo-shaker-dome.is-shaking, .sicbo-shaker .sicbo-shaker-dice.is-rolling .sicbo-shaker-die { animation: none; }
}
@media (min-width: 768px) {
  .sicbo-shaker { gap: 18px; padding: 24px; }
  .sicbo-shaker .sicbo-shaker-dome { max-width: 300px; }
  .sicbo-shaker .sicbo-shaker-die { width: 60px; height: 60px; padding: 9px; }
  .sicbo-shaker .sicbo-shaker-board { padding: 14px; }
}

/* === sicbo-explorer.css === */
.sicbo-explorer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0 0 40px; padding: 16px; background: #131A2E; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 14px; }
.sicbo-explorer .sicbo-explorer-controls { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sicbo-explorer .sicbo-explorer-group-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; }
.sicbo-explorer .sicbo-explorer-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sicbo-explorer .sicbo-explorer-option { min-height: 40px; padding: 8px 14px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.18); border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.2; color: #CBD5E1; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.sicbo-explorer .sicbo-explorer-option:hover { border-color: rgba(249, 115, 22, 0.45); }
.sicbo-explorer .sicbo-explorer-option-atlantic.is-active { background: rgba(147, 197, 253, 0.12); border-color: #93C5FD; color: #ffffff; }
.sicbo-explorer .sicbo-explorer-option-macau.is-active { background: rgba(251, 191, 36, 0.12); border-color: #FBBF24; color: #ffffff; }
.sicbo-explorer .sicbo-explorer-option:focus-visible, .sicbo-explorer .sicbo-explorer-cell:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
.sicbo-explorer .sicbo-explorer-hint { margin: 0; font-size: 14px; line-height: 1.5; color: #94A3B8; }
.sicbo-explorer .sicbo-explorer-table { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: 10px; background: #0E2A22; border: 1px solid rgba(74, 222, 128, 0.22); border-radius: 12px; }
.sicbo-explorer .sicbo-explorer-area { min-width: 0; margin: 0; }
.sicbo-explorer .sicbo-explorer-area-label { margin: 0 0 6px; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: #94A3B8; }
.sicbo-explorer .sicbo-explorer-cells { display: grid; gap: 4px; margin: 0; }
.sicbo-explorer .sicbo-explorer-area-main .sicbo-explorer-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sicbo-explorer .sicbo-explorer-area-main .sicbo-explorer-cell-small { grid-column: 1; grid-row: 1; }
.sicbo-explorer .sicbo-explorer-area-main .sicbo-explorer-cell-big { grid-column: 2; grid-row: 1; }
.sicbo-explorer .sicbo-explorer-area-main .sicbo-explorer-cell-odd { grid-column: 1; grid-row: 2; }
.sicbo-explorer .sicbo-explorer-area-main .sicbo-explorer-cell-even { grid-column: 2; grid-row: 2; }
.sicbo-explorer .sicbo-explorer-area-main .sicbo-explorer-cell-anytriple { grid-column: 1 / -1; grid-row: 3; }
.sicbo-explorer .sicbo-explorer-area-doubles .sicbo-explorer-cells, .sicbo-explorer .sicbo-explorer-area-triples .sicbo-explorer-cells, .sicbo-explorer .sicbo-explorer-area-singles .sicbo-explorer-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sicbo-explorer .sicbo-explorer-area-totals .sicbo-explorer-cells { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sicbo-explorer .sicbo-explorer-area-combos .sicbo-explorer-cells { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sicbo-explorer .sicbo-explorer-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 44px; margin: 0; padding: 5px 2px; background: rgba(15, 23, 42, 0.55); border: 1px solid rgba(203, 213, 225, 0.25); border-radius: 6px; font-size: 14px; font-weight: 700; line-height: 1.15; color: #ffffff; text-align: center; font-variant-numeric: tabular-nums; cursor: pointer; transition: opacity 0.2s, box-shadow 0.2s, background-color 0.2s; }
.sicbo-explorer .sicbo-explorer-cell:hover { box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.70); }
.sicbo-explorer .sicbo-explorer-cell-main { min-height: 56px; }
.sicbo-explorer .sicbo-explorer-cell-small { background: rgba(30, 64, 175, 0.40); }
.sicbo-explorer .sicbo-explorer-cell-big { background: rgba(146, 64, 14, 0.45); }
.sicbo-explorer .sicbo-explorer-cell-anytriple { background: rgba(127, 29, 29, 0.50); }
.sicbo-explorer .sicbo-explorer-cell-name { display: block; font-size: 14px; font-weight: 800; letter-spacing: 0.02em; }
.sicbo-explorer .sicbo-explorer-cell-range { display: block; font-size: 11px; font-weight: 500; color: #CBD5E1; }
.sicbo-explorer .sicbo-explorer-cell-pay { display: block; font-size: 11px; font-weight: 600; color: #FBBF24; white-space: nowrap; }
.sicbo-explorer .sicbo-explorer-dice { display: flex; justify-content: center; gap: 2px; margin: 0; }
.sicbo-explorer .sicbo-explorer-die { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background: #F8FAFC; border-radius: 4px; font-size: 11px; font-weight: 800; line-height: 1; color: #0F172A; }
.sicbo-explorer .sicbo-explorer-die-red { color: #B91C1C; }
.sicbo-explorer .sicbo-explorer-cell:disabled { opacity: 0.3; cursor: not-allowed; }
.sicbo-explorer .sicbo-explorer-cell:disabled:hover { box-shadow: none; }
.sicbo-explorer .sicbo-explorer-cell.is-selected { position: relative; z-index: 1; background-color: rgba(249, 115, 22, 0.24); box-shadow: 0 0 0 2px #F97316, 0 0 14px rgba(249, 115, 22, 0.55); }
.sicbo-explorer .sicbo-explorer-result { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 18px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 12px; }
.sicbo-explorer .sicbo-explorer-result-title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: #ffffff; }
.sicbo-explorer h2.sicbo-explorer-result-title, .sicbo-explorer h3.sicbo-explorer-result-title, .sicbo-explorer h4.sicbo-explorer-result-title { font-size: 19px; }
.sicbo-explorer .sicbo-explorer-result-covers { margin: 0; font-size: 15px; line-height: 1.55; color: #CBD5E1; }
.sicbo-explorer .sicbo-explorer-payout { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.sicbo-explorer .sicbo-explorer-payout-value { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: #F97316; font-variant-numeric: tabular-nums; }
.sicbo-explorer .sicbo-explorer-payout-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; }
.sicbo-explorer .sicbo-explorer-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.sicbo-explorer .sicbo-explorer-stat { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px; background: #131A2E; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 10px; transition: border-color 0.2s; }
.sicbo-explorer .sicbo-explorer-stat-atlantic.is-current { border-color: rgba(147, 197, 253, 0.55); }
.sicbo-explorer .sicbo-explorer-stat-macau.is-current { border-color: rgba(251, 191, 36, 0.55); }
.sicbo-explorer .sicbo-explorer-stat-table { font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; }
.sicbo-explorer .sicbo-explorer-stat-atlantic .sicbo-explorer-stat-table { color: #93C5FD; }
.sicbo-explorer .sicbo-explorer-stat-macau .sicbo-explorer-stat-table { color: #FBBF24; }
.sicbo-explorer .sicbo-explorer-stat-row { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.sicbo-explorer .sicbo-explorer-stat-label { font-size: 12px; line-height: 1.3; color: #64748B; }
.sicbo-explorer .sicbo-explorer-stat-value { font-size: 15px; font-weight: 700; line-height: 1.35; color: #ffffff; font-variant-numeric: tabular-nums; }
.sicbo-explorer .sicbo-explorer-result-note { margin: 0; font-size: 14px; line-height: 1.6; color: #94A3B8; }
.sicbo-explorer .sicbo-explorer-result-note.is-alert { padding: 10px 12px; background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.20); border-radius: 8px; color: #E2E8F0; }
@media (min-width: 768px) {
  .sicbo-explorer { gap: 22px; margin: 0 0 56px; padding: 22px; }
  .sicbo-explorer .sicbo-explorer-controls { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; }
  .sicbo-explorer .sicbo-explorer-hint { max-width: 320px; text-align: right; }
  .sicbo-explorer .sicbo-explorer-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "main main" "doubles triples" "totals totals" "combos combos" "singles singles"; gap: 12px 14px; padding: 14px; }
  .sicbo-explorer .sicbo-explorer-area-main { grid-area: main; }
  .sicbo-explorer .sicbo-explorer-area-doubles { grid-area: doubles; }
  .sicbo-explorer .sicbo-explorer-area-triples { grid-area: triples; }
  .sicbo-explorer .sicbo-explorer-area-totals { grid-area: totals; }
  .sicbo-explorer .sicbo-explorer-area-combos { grid-area: combos; }
  .sicbo-explorer .sicbo-explorer-area-singles { grid-area: singles; }
  .sicbo-explorer .sicbo-explorer-area-main .sicbo-explorer-cells { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sicbo-explorer .sicbo-explorer-area-main .sicbo-explorer-cell-small { grid-column: 1; grid-row: 1; }
  .sicbo-explorer .sicbo-explorer-area-main .sicbo-explorer-cell-odd { grid-column: 2; grid-row: 1; }
  .sicbo-explorer .sicbo-explorer-area-main .sicbo-explorer-cell-anytriple { grid-column: 3; grid-row: 1; }
  .sicbo-explorer .sicbo-explorer-area-main .sicbo-explorer-cell-even { grid-column: 4; grid-row: 1; }
  .sicbo-explorer .sicbo-explorer-area-main .sicbo-explorer-cell-big { grid-column: 5; grid-row: 1; }
  .sicbo-explorer .sicbo-explorer-area-doubles .sicbo-explorer-cells, .sicbo-explorer .sicbo-explorer-area-triples .sicbo-explorer-cells, .sicbo-explorer .sicbo-explorer-area-singles .sicbo-explorer-cells { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sicbo-explorer .sicbo-explorer-area-totals .sicbo-explorer-cells { grid-template-columns: repeat(14, minmax(0, 1fr)); }
  .sicbo-explorer .sicbo-explorer-area-combos .sicbo-explorer-cells { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .sicbo-explorer .sicbo-explorer-cell-main { min-height: 64px; }
  .sicbo-explorer .sicbo-explorer-result { padding: 20px; }
  .sicbo-explorer .sicbo-explorer-result-title, .sicbo-explorer h2.sicbo-explorer-result-title, .sicbo-explorer h3.sicbo-explorer-result-title, .sicbo-explorer h4.sicbo-explorer-result-title { font-size: 21px; }
  .sicbo-explorer .sicbo-explorer-stat-value { font-size: 16px; }
}
@media (min-width: 1024px) {
  .sicbo-explorer { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "controls result" "table result"; align-items: start; gap: 22px 24px; padding: 24px; }
  .sicbo-explorer .sicbo-explorer-controls { grid-area: controls; }
  .sicbo-explorer .sicbo-explorer-table { grid-area: table; }
  .sicbo-explorer .sicbo-explorer-result { grid-area: result; position: sticky; top: 24px; }
  .sicbo-explorer .sicbo-explorer-area-combos .sicbo-explorer-cells { grid-template-columns: repeat(15, minmax(0, 1fr)); }
  .sicbo-explorer .sicbo-explorer-stats { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1200px) {
  .sicbo-explorer .sicbo-explorer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* === dice-totals.css === */
.dice-totals { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0 0 32px; padding: 16px; background: #131A2E; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 14px; }
.dice-totals .dice-totals-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: #ffffff; }
.dice-totals h2.dice-totals-title, .dice-totals h3.dice-totals-title, .dice-totals h4.dice-totals-title { font-size: 17px; }
.dice-totals .dice-totals-hint { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #94A3B8; }
.dice-totals .dice-totals-chart { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); align-items: end; gap: 3px; min-width: 0; margin: 0; padding: 12px 8px 8px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 12px; }
.dice-totals .dice-totals-bar { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 6px; font-family: inherit; color: #CBD5E1; cursor: pointer; }
.dice-totals .dice-totals-bar:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
.dice-totals .dice-totals-count { display: block; font-size: 10px; font-weight: 600; line-height: 1.2; color: #94A3B8; text-align: center; font-variant-numeric: tabular-nums; }
.dice-totals .dice-totals-column { display: flex; flex-direction: column; justify-content: flex-end; height: 150px; margin: 0; }
.dice-totals .dice-totals-fill { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; min-height: 3px; background: #93C5FD; border-radius: 4px 4px 2px 2px; overflow: hidden; transition: opacity 0.2s, box-shadow 0.2s; }
.dice-totals .dice-totals-bar-big .dice-totals-fill { background: #FBBF24; }
.dice-totals .dice-totals-bar-triple .dice-totals-fill { background: #EF4444; }
.dice-totals .dice-totals-fill-ways-1 { height: 3.7%; }
.dice-totals .dice-totals-fill-ways-3 { height: 11.1%; }
.dice-totals .dice-totals-fill-ways-6 { height: 22.2%; }
.dice-totals .dice-totals-fill-ways-10 { height: 37%; }
.dice-totals .dice-totals-fill-ways-15 { height: 55.6%; }
.dice-totals .dice-totals-fill-ways-21 { height: 77.8%; }
.dice-totals .dice-totals-fill-ways-25 { height: 92.6%; }
.dice-totals .dice-totals-fill-ways-27 { height: 100%; }
.dice-totals .dice-totals-triple { display: block; width: 100%; background: #EF4444; }
.dice-totals .dice-totals-triple-share-100 { height: 100%; }
.dice-totals .dice-totals-triple-share-10 { height: 10%; }
.dice-totals .dice-totals-triple-share-4 { height: 4%; }
.dice-totals .dice-totals-label { display: block; font-size: 12px; font-weight: 700; line-height: 1.2; color: #E2E8F0; text-align: center; font-variant-numeric: tabular-nums; }
.dice-totals .dice-totals-chart.has-selection .dice-totals-bar .dice-totals-fill { opacity: 0.45; }
.dice-totals .dice-totals-chart.has-selection .dice-totals-bar.is-selected .dice-totals-fill { opacity: 1; box-shadow: 0 0 0 2px #F97316, 0 0 12px rgba(249, 115, 22, 0.55); }
.dice-totals .dice-totals-bar.is-selected .dice-totals-label { color: #F97316; }
.dice-totals .dice-totals-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.dice-totals .dice-totals-legend-item { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 1.4; color: #CBD5E1; }
.dice-totals .dice-totals-legend-item::before { content: ""; display: block; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 3px; background: #93C5FD; }
.dice-totals .dice-totals-legend-item-big::before { background: #FBBF24; }
.dice-totals .dice-totals-legend-item-triple::before { background: #EF4444; }
.dice-totals .dice-totals-split { display: flex; height: 28px; margin: 0; border-radius: 8px; overflow: hidden; }
.dice-totals .dice-totals-split-part { display: flex; align-items: center; justify-content: center; min-width: 0; font-size: 12px; font-weight: 700; line-height: 1; color: #0F172A; white-space: nowrap; }
.dice-totals .dice-totals-split-small { width: 48.61%; background: #93C5FD; }
.dice-totals .dice-totals-split-triple { width: 2.78%; background: #EF4444; }
.dice-totals .dice-totals-split-big { width: 48.61%; background: #FBBF24; }
.dice-totals .dice-totals-split-caption { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: #94A3B8; }
.dice-totals .dice-totals-result { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 18px; background: #0F172A; border: 1px solid rgba(148, 163, 184, 0.10); border-radius: 12px; }
.dice-totals .dice-totals-result-title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; color: #ffffff; }
.dice-totals h2.dice-totals-result-title, .dice-totals h3.dice-totals-result-title, .dice-totals h4.dice-totals-result-title { font-size: 19px; }
.dice-totals .dice-totals-result-ways { margin: 0; font-size: 15px; line-height: 1.55; color: #CBD5E1; }
.dice-totals .dice-totals-result-combos { margin: 0; font-size: 14px; line-height: 1.6; color: #94A3B8; }
.dice-totals .dice-totals-result-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dice-totals .dice-totals-result-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0 0; border-top: 1px solid rgba(148, 163, 184, 0.10); font-size: 14px; line-height: 1.4; color: #94A3B8; }
.dice-totals .dice-totals-result-value { font-weight: 700; color: #ffffff; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .dice-totals { gap: 20px; padding: 22px; }
  .dice-totals .dice-totals-title, .dice-totals h2.dice-totals-title, .dice-totals h3.dice-totals-title, .dice-totals h4.dice-totals-title { font-size: 19px; }
  .dice-totals .dice-totals-chart { gap: 6px; padding: 16px 14px 12px; }
  .dice-totals .dice-totals-column { height: 200px; }
  .dice-totals .dice-totals-count { font-size: 12px; }
  .dice-totals .dice-totals-label { font-size: 14px; }
}
@media (min-width: 1024px) {
  .dice-totals { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "head result" "chart result" "legend result" "split result"; align-items: start; gap: 18px 24px; padding: 24px; }
  .dice-totals .dice-totals-head { grid-area: head; }
  .dice-totals .dice-totals-chart { grid-area: chart; }
  .dice-totals .dice-totals-legend { grid-area: legend; }
  .dice-totals .dice-totals-split-wrap { grid-area: split; }
  .dice-totals .dice-totals-result { grid-area: result; }
}
