/*
 * Scorpion Arena — Dice Duel provable fairness panel styling.
 * Loaded after css/dice-duel-backend-v1.css; matches its color language.
 */

#ag2DiceView .ag5-fairness-panel {
    margin: 4px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(5, 8, 18, 0.5);
    overflow: hidden;
}

#ag2DiceView .ag5-fairness-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: rgba(220, 232, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

#ag2DiceView .ag5-fairness-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38d996;
    box-shadow: 0 0 10px rgba(56, 217, 150, 0.8);
}

#ag2DiceView .ag5-fairness-chevron {
    transition: transform 0.2s ease;
    opacity: 0.6;
}

#ag2DiceView .ag5-fairness-toggle.ag5-open .ag5-fairness-chevron {
    transform: rotate(180deg);
}

#ag2DiceView .ag5-fairness-body {
    padding: 4px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#ag2DiceView .ag5-fairness-row {
    margin: 10px 0;
}

#ag2DiceView .ag5-fairness-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(220, 232, 255, 0.5);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#ag2DiceView .ag5-fairness-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#ag2DiceView .ag5-fairness-value {
    flex: 1;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(220, 232, 255, 0.85);
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    word-break: break-all;
}

#ag2DiceView .ag5-icon-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(220, 232, 255, 0.75);
    font-size: 14px;
    cursor: pointer;
}

#ag2DiceView .ag5-icon-btn.ag5-copy-flash {
    background: rgba(56, 217, 150, 0.25);
    border-color: rgba(56, 217, 150, 0.5);
}

#ag2DiceView .ag5-fairness-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(220, 232, 255, 0.9);
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

#ag2DiceView .ag5-small-btn,
#ag2DiceView .ag5-rotate-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.15);
    color: rgba(232, 224, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

#ag2DiceView .ag5-rotate-btn {
    display: block;
    width: 100%;
    margin: 12px 0 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#ag2DiceView .ag5-rotate-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

#ag2DiceView .ag5-fairness-meta {
    color: rgba(220, 232, 255, 0.55);
    font-size: 11px;
}

#ag2DiceView .ag5-fairness-meta span {
    color: rgba(220, 232, 255, 0.85);
    font-weight: 700;
}

#ag2DiceView .ag5-reveal-box {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(56, 217, 150, 0.3);
    background: rgba(56, 217, 150, 0.08);
}

#ag2DiceView .ag5-reveal-title {
    margin-bottom: 6px;
    color: rgba(180, 255, 220, 0.9);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#ag2DiceView .ag5-reveal-seed {
    display: block;
    margin-bottom: 6px;
}

#ag2DiceView .ag5-reveal-note {
    color: rgba(220, 232, 255, 0.6);
    font-size: 10.5px;
    line-height: 1.5;
}

#ag2DiceView .ag5-fairness-help {
    margin: 12px 0 0;
    color: rgba(220, 232, 255, 0.42);
    font-size: 10px;
    line-height: 1.6;
}

#ag2DiceView .ag5-verify-link {
    display: inline-block;
    margin: 6px 0 0 8px;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(220, 232, 255, 0.6);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

#ag2DiceView .ag5-verify-link.ag5-verify-busy {
    opacity: 0.6;
    cursor: wait;
}

#ag2DiceView .ag5-verify-link.ag5-verify-ok {
    border-color: rgba(56, 217, 150, 0.5);
    background: rgba(56, 217, 150, 0.15);
    color: rgba(180, 255, 220, 0.95);
}

#ag2DiceView .ag5-verify-link.ag5-verify-fail {
    border-color: rgba(255, 90, 90, 0.5);
    background: rgba(255, 90, 90, 0.15);
    color: rgba(255, 200, 200, 0.95);
}

#ag2DiceView .ag5-verify-link.ag5-verify-pending {
    border-color: rgba(244, 197, 66, 0.4);
    background: rgba(244, 197, 66, 0.1);
    color: rgba(255, 225, 150, 0.9);
}

@media (max-width: 520px) {
    #ag2DiceView .ag5-fairness-toggle {
        font-size: 10px;
    }

    #ag2DiceView .ag5-fairness-value,
    #ag2DiceView .ag5-fairness-input {
        font-size: 10px;
    }
}
