/* Dice Game — Premium */

.dice-container {
    display: flex;
    flex-direction: row-reverse;
}

.dice-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 24px;
    background: rgba(15, 33, 46, 0.4);
    min-height: 420px;
}

.dice-display {
    width: 100%;
    max-width: 520px;
}

.dice-slider-container {
    position: relative;
    height: 44px;
    margin-bottom: 8px;
}

.dice-bar {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--red-bright);
    border-radius: 4px;
    transform: translateY(-50%);
    overflow: hidden;
}

.dice-bar-fill {
    height: 100%;
    width: 50%;
    background: var(--green);
    border-radius: 4px;
    transition: width 0.2s;
}

.dice-pointer {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.3s;
    z-index: 5;
    display: none;
}

.dice-pointer.visible {
    display: block;
    animation: popIn 0.3s ease;
}

.dice-slider {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    z-index: 10;
    cursor: pointer;
    height: 28px;
}

.dice-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: white;
    border: 3px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

.dice-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: white;
    border: 3px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

.dice-numbers {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    padding: 0 4px;
}

.dice-result-display {
    text-align: center;
    margin-top: 12px;
}

.dice-rolled {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 900;
    color: var(--text-tertiary);
    transition: color 0.3s;
}

.dice-rolled.win { color: var(--green); }
.dice-rolled.lose { color: var(--red-bright); }

.dice-info {
    display: flex;
    gap: 32px;
}

.dice-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.dice-stat span:first-child {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
}

.dice-stat span:last-child {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.dice-controls {
    width: 280px;
    min-width: 280px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(26, 44, 56, 0.5);
    border-right: 1px solid rgba(255,255,255,0.06);
}

.dice-mode-toggle {
    display: flex;
    background: rgba(15, 33, 46, 0.5);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}

.dice-mode {
    flex: 1;
    padding: 9px;
    background: transparent;
    border: none;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.dice-mode.active {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-dice {
    background: var(--blue);
    color: white;
}
