/* =========================================================
   MULTIPLAYER REVIEW SCENE
   Namespace: mrv
========================================================= */

.mrv-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 18px 14px 30px;
    overflow-y: auto;
    font-family: "Poppins", sans-serif;
    color: #cfd8e7;

    background:
        linear-gradient(
            rgba(9, 16, 63, 0.84),
            rgba(9, 16, 63, 0.92)
        ),
        url("/client/assets/images/bg/game_bg_portrait.jpg")
        center / cover no-repeat;
}

/* =========================================================
   CONTAINER
========================================================= */

.mrv-container {
    width: min(850px, 100%);

    margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================= */

.mrv-header {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 16px;

    padding: 12px;

    border-radius: 14px;

    background: linear-gradient(135deg, #10284b, #0b1d3b);

    border: 1px solid rgba(120, 190, 230, 0.22);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.mrv-back-btn {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 9px;

    background: #123c5a;

    color: white;

    font-size: 19px;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.mrv-back-btn:hover {
    background: #1a4c70;
}

.mrv-back-btn:active {
    transform: scale(0.96);
}

.mrv-header-text {
    min-width: 0;
}

.mrv-title {
    margin: 0;

    color: white;

    font-size: 22px;
    font-weight: 800;
}

.mrv-progress {
    margin: 2px 0 0;

    color: #a3b8dc;

    font-size: 12px;
    font-weight: 600;
}

/* =========================================================
   QUESTION CARD
========================================================= */

.mrv-question-list {
    display: flex;

    flex-direction: column;

    gap: 16px;
}

.mrv-question-card {
    padding: 18px;

    border-radius: 16px;

    background: linear-gradient(145deg, #ffffff, #eef4fb);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);

    animation: mrv-card-in 0.35s ease-out both;
}

.mrv-question-number {
    color: #0a2a43;

    font-size: 16px;
    font-weight: 800;
}

.mrv-question-meta {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 7px;

    margin-top: 8px;
}

.mrv-player-badge,
.mrv-result-badge,
.mrv-points-badge {
    display: inline-flex;

    align-items: center;

    padding: 4px 8px;

    border-radius: 6px;

    font-size: 11px;
    font-weight: 700;
}

.mrv-player-badge {
    background: #e3edf7;

    color: #0a2a43;
}

.mrv-result-correct {
    background: #d4edda;

    color: #155724;
}

.mrv-result-wrong {
    background: #f8d7da;

    color: #721c24;
}

.mrv-result-timeout {
    background: #fff3cd;

    color: #856404;
}

.mrv-points-badge {
    background: #e8eef5;

    color: #123c5a;
}

/* =========================================================
   QUESTION
========================================================= */

.mrv-question-text {
    margin-top: 16px;

    color: #102a43;

    font-size: 18px;

    line-height: 1.55;
}

.mrv-question-text-b {
    margin-top: 10px;

    color: #102a43;

    font-size: 17px;

    line-height: 1.5;
}

.mrv-question-image-wrap {
    width: 100%;

    display: flex;

    justify-content: center;
}

.mrv-question-image {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 14px auto 4px;

    border-radius: 10px;
}

/* =========================================================
   OPTIONS
========================================================= */

.mrv-options {
    display: flex;

    flex-direction: column;

    gap: 9px;

    margin-top: 16px;
}

.mrv-option {
    position: relative;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px 12px;

    border: 2px solid rgba(10, 42, 67, 0.08);

    border-radius: 10px;

    background: #f8fafc;

    color: #102a43;

    font-size: 15px;

    line-height: 1.4;
}

.mrv-option-correct {
    border-color: #28a745;

    background: #d4edda;

    color: #155724;
}

.mrv-option-wrong {
    border-color: #dc3545;

    background: #f8d7da;

    color: #721c24;
}

.mrv-option-letter {
    width: 29px;
    height: 29px;

    min-width: 29px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e0e8f0;

    color: #0a2a43;

    font-size: 12px;
    font-weight: 800;
}

.mrv-option-correct .mrv-option-letter {
    background: #28a745;

    color: white;
}

.mrv-option-wrong .mrv-option-letter {
    background: #dc3545;

    color: white;
}

.mrv-option-content {
    flex: 1;

    min-width: 0;
}

.mrv-option-image {
    display: block;

    max-width: 130px;
    max-height: 85px;

    object-fit: contain;

    margin-left: auto;

    border-radius: 7px;
}

.mrv-option-label {
    flex-shrink: 0;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}

.mrv-option-correct .mrv-option-label {
    color: #155724;
}

.mrv-option-wrong .mrv-option-label {
    color: #721c24;
}

/* =========================================================
   ANSWER SUMMARY
========================================================= */

.mrv-answer-summary {
    margin-top: 14px;

    padding: 10px 12px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;
}

.mrv-answer-summary-correct {
    background: #d4edda;

    color: #155724;

    border: 1px solid #28a745;
}

.mrv-answer-summary-wrong {
    background: #f8d7da;

    color: #721c24;

    border: 1px solid #dc3545;
}

.mrv-answer-summary-timeout {
    background: #fff3cd;

    color: #856404;

    border: 1px solid #ffc107;
}

/* =========================================================
   EXPLANATION
========================================================= */

.mrv-explanation {
    margin-top: 14px;

    padding: 12px 14px;

    border-radius: 10px;

    background: #eaf2ff;

    border: 1px solid #a9c4e4;
}

.mrv-explanation-title {
    margin-bottom: 5px;

    color: #0a2a43;

    font-size: 13px;
    font-weight: 800;
}

.mrv-explanation-text {
    color: #243b53;

    font-size: 14px;

    line-height: 1.5;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.mrv-empty {
    padding: 35px 20px;

    border-radius: 14px;

    background: white;

    color: #52606d;

    text-align: center;

    font-size: 15px;
}

/* =========================================================
   BOTTOM ACTIONS
========================================================= */

.mrv-bottom-actions {
    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-top: 18px;
}

.mrv-result-btn,
.mrv-game-mode-btn {
    width: 100%;

    padding: 12px 16px;

    border: none;

    border-radius: 10px;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.mrv-result-btn {
    background: #00d590;

    color: #003b2c;
}

.mrv-game-mode-btn {
    background: #123c5a;

    color: white;
}

.mrv-result-btn:hover,
.mrv-game-mode-btn:hover {
    filter: brightness(1.08);

    transform: translateY(-1px);
}

.mrv-result-btn:active,
.mrv-game-mode-btn:active {
    transform: scale(0.98);
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes mrv-card-in {
    from {
        opacity: 0;

        transform: translateY(10px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

/* =========================================================
   SMALL SCREENS
========================================================= */

@media (max-width: 600px) {
    .mrv-screen {
        padding: 12px 8px 24px;
    }

    .mrv-question-card {
        padding: 14px;
    }

    .mrv-question-text {
        font-size: 17px;
    }

    .mrv-option {
        font-size: 14px;
    }

    .mrv-option-image {
        max-width: 90px;
        max-height: 65px;
    }
}

/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 380px) {
    .mrv-title {
        font-size: 19px;
    }

    .mrv-question-card {
        padding: 12px;
    }

    .mrv-question-meta {
        gap: 5px;
    }

    .mrv-player-badge,
    .mrv-result-badge,
    .mrv-points-badge {
        font-size: 10px;
    }

    .mrv-option {
        gap: 7px;

        padding: 9px;

        font-size: 13px;
    }

    .mrv-option-letter {
        width: 26px;
        height: 26px;

        min-width: 26px;
    }

    .mrv-option-label {
        font-size: 8px;
    }
}
