.game-run-comparison {
    background: #fff;
    border: 1px solid rgba(26, 42, 76, 0.12);
    border-radius: 8px;
    box-shadow: 0 16px 32px rgba(26, 42, 76, 0.08);
    margin: 1.25rem 0;
    padding: 1.25rem;
}

.game-run-comparison[data-outcome-state="new_best"],
.game-run-comparison[data-outcome-state="first_result"] {
    border-color: rgba(45, 125, 89, 0.28);
}

.game-run-comparison[data-outcome-state="matched_best"] {
    border-color: rgba(34, 105, 166, 0.26);
}

.game-run-comparison[data-outcome-state="below_best"] {
    border-color: rgba(171, 116, 35, 0.24);
}

.game-run-comparison-header {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.game-run-comparison-eyebrow {
    color: #55657d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.game-run-comparison-title {
    color: #17223b;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.game-run-comparison-message {
    color: #536078;
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0;
}

.game-run-comparison-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.game-run-comparison-actions {
    margin: -0.25rem 0 1rem;
}

.game-run-comparison-item {
    align-items: flex-start;
    background: #f7f9fc;
    border: 1px solid rgba(26, 42, 76, 0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.85rem;
}

.game-run-comparison-label {
    color: #67748b;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.game-run-comparison-value {
    color: #17223b;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.game-run-comparison-note {
    color: #59677d;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.game-run-comparison-best-item {
    background: #eef6f2;
}

.game-run-comparison-previous-item {
    background: #f4f7fb;
}

.game-run-comparison[data-outcome-state="matched_best"] .game-run-comparison-best-item {
    background: #eef5fb;
}

.game-run-comparison[data-outcome-state="below_best"] .game-run-comparison-best-item {
    background: #fff8eb;
}

.guest-postgame-panel[data-result-state="new_best"] .guest-postgame-header,
.guest-postgame-panel[data-result-state="first_result"] .guest-postgame-header {
    background-color: rgba(131, 216, 153, 0.16);
    border-color: rgba(107, 184, 129, 0.34);
}

.guest-postgame-panel[data-result-state="matched_best"] .guest-postgame-header {
    background-color: rgba(17, 140, 204, 0.08);
    border-color: rgba(17, 140, 204, 0.2);
}

.guest-postgame-panel[data-result-state="below_best"] .guest-postgame-header {
    background-color: rgba(255, 218, 45, 0.18);
    border-color: rgba(232, 195, 39, 0.34);
}

@media (max-width: 991.98px) {
    .game-run-comparison-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-run-comparison-best-item {
        grid-column: auto;
    }

    .game-run-comparison-previous-item {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .game-run-comparison {
        margin: 1rem 0;
        padding: 1rem;
    }

    .game-run-comparison-grid {
        grid-template-columns: 1fr;
    }

    .game-run-comparison-title {
        font-size: 1rem;
    }

    .game-run-comparison-message {
        font-size: 0.9rem;
    }

    .game-run-comparison-value {
        font-size: 1.05rem;
    }

    .game-run-comparison-actions {
        margin: -0.125rem 0 0.875rem;
    }
}
