/*
 * Scorpion Arena — Real Dice Duel integration
 * This stylesheet affects only the Dice view.
 */

#ag2DiceView .ag4-real-dice-wrap {
    position: relative;
    width: 100%;
    margin: 14px 0 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(139, 92, 246, 0.17),
            transparent 48%
        ),
        rgba(5, 8, 18, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 48px rgba(0, 0, 0, 0.30);
}

#ag2DiceView #ag4DiceGame {
    width: 100%;
    min-height: 335px;
}

#ag2DiceView .ag2-dice-stage.ag4-old-stage-hidden {
    display: none !important;
}

#ag2DiceView.ag4-real-dice-busy
#ag2DiceAction {
    pointer-events: none;
    opacity: 0.68;
    cursor: wait;
}

#ag2DiceView .ag4-server-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: -5px 0 12px;
    color: rgba(220, 232, 255, 0.72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#ag2DiceView .ag4-server-badge::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38d996;
    box-shadow: 0 0 12px rgba(56, 217, 150, 0.85);
    content: "";
}

#ag2DiceView .ag4-game-code {
    margin-top: 8px;
    color: rgba(220, 232, 255, 0.52);
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    word-break: break-all;
}

@media (max-width: 520px) {
    #ag2DiceView #ag4DiceGame {
        min-height: 300px;
    }

    #ag2DiceView .ag4-real-dice-wrap {
        border-radius: 18px;
    }
}
