/* Dice */

.balance-chip { font-size: 0.95rem; font-weight: 600; color: #2c3e50; }

/* ── Result bar (0–100) ── */
.dice-bar {
    position: relative;
    height: 46px;
    border-radius: 8px;
    background: #c0392b;          /* losing side */
    overflow: visible;
    margin-top: 8px;
}
.dice-bar-win {
    position: absolute;
    top: 0;
    height: 100%;
    background: #1e7a46;          /* winning side */
    border-radius: 8px;
}
.dice-target-line {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 0;
    border-left: 2px dashed #fff;
    z-index: 2;
}
.dice-marker {
    position: absolute;
    top: -10px;
    width: 0;
    transform: translateX(-50%);
    z-index: 3;
    display: none;
    transition: left 0.35s ease-out;
}
.dice-marker::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #fbdd11;
    top: 0;
}
.dice-marker-val {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
}
.dice-marker.win .dice-marker-val { color: #1e7a46; }
.dice-marker.lose .dice-marker-val { color: #c0392b; }

.dice-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #7a7a7a;
    margin-top: 6px;
}

/* ── Live stats ── */
.dice-stat { font-size: 1.05rem; font-weight: 700; color: #2c3e50; }

/* ── Result banner ── */
.dice-result {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 16px;
    padding: 10px;
    border-radius: 8px;
}
.dice-result.win  { background: #e8f8ee; color: #1e7a46; border: 1px solid #b6e3c7; }
.dice-result.lose { background: #f4f5f7; color: #7a7a7a; border: 1px solid #e0e0e0; }
