/* =========================================================
   LOCAL PASS & PLAY REVIEW SCENE
   Namespace: lppr
   ========================================================= */


/* =========================================================
   SCORE SUMMARY
   ========================================================= */

.lppr-summary {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 8px;

    margin-bottom: 10px;
}

.lppr-summary-box {
    text-align: center;

    padding: 8px;

    border-radius: 8px;

    font-weight: 700;

    font-size: 0.9rem;
}

.lppr-summary-number {
    display: block;

    font-family: "Chakra", sans-serif;

    font-size: 1.2rem;
}

.lppr-summary-label {
    font-family: "Inter", sans-serif;

    font-size: 0.8rem;

    opacity: 0.85;
}

.lppr-summary-box.lppr-correct {
    background: #e8f6ea;

    color: #0a6b2d;
}

.lppr-summary-box.lppr-wrong {
    background: #fdecea;

    color: #9d2a2a;
}

.lppr-summary-box.lppr-skipped {
    background: #fff4db;

    color: #8a5a00;
}

.lppr-summary-box.lppr-score {
    background: #eef6ff;

    color: #0b3f91;
}


/* =========================================================
   FULLSCREEN REVIEW SCREEN
   ========================================================= */

.lppr-screen {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: stretch;

    background-color: #09103f;

    background-image:
        url("/client/assets/images/bg/game_bg_portrait.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    box-sizing: border-box;

    overflow: hidden;
}


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

.lppr-container {
    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    padding: 10px;

    box-sizing: border-box;

    background: rgba(9, 16, 63, 0.25);

    animation: lppr-card-enter 420ms ease-out forwards;
}


/* =========================================================
   TITLE
   ========================================================= */

.lppr-title {
    flex-shrink: 0;

    margin: 0 0 10px 0;

    font-family: "Sora", sans-serif;

    font-size: 1.45rem;

    font-weight: 700;

    color: #ffffff;
}


/* =========================================================
   REVIEW LIST
   ========================================================= */

.lppr-list {
    flex: 1;

    overflow-y: auto;

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding-right: 4px;

    margin-bottom: 10px;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(255, 255, 255, 0.25)
        transparent;
}

.lppr-list::-webkit-scrollbar {
    width: 6px;
}

.lppr-list::-webkit-scrollbar-track {
    background: transparent;
}

.lppr-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);

    border-radius: 10px;
}


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

.lppr-card {
    background: #fbfbfb;

    border-radius: 8px;

    padding: 10px;

    border-left: 6px solid #0b6bd6;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08);

    color: #0b2a3a;
}


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

.lppr-card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 6px;
}

.lppr-card-heading {
    min-width: 0;
}

.lppr-question-number {
    font-family: "Inter", sans-serif;

    font-weight: 700;

    color: #0b2a3a;
}

.lppr-player {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 5px;

    color: #52677a;

    font-family: "Inter", sans-serif;

    font-size: 0.8rem;
}

.lppr-player-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 25px;
    height: 25px;

    padding: 0 6px;

    border-radius: 6px;

    background: #0b6bd6;

    color: #ffffff;

    font-family: "Chakra", sans-serif;

    font-size: 0.75rem;

    font-weight: 700;
}


/* =========================================================
   STATUS
   ========================================================= */

.lppr-status {
    flex-shrink: 0;

    padding: 6px 9px;

    border-radius: 6px;

    font-family: "Sora", sans-serif;

    font-size: 0.75rem;

    font-weight: 700;
}

.lppr-status-correct {
    background: #e8f6ea;

    color: #0a6b2d;
}

.lppr-status-wrong {
    background: #fdecea;

    color: #9d2a2a;
}

.lppr-status-timeout {
    background: #fff4db;

    color: #8a5a00;
}


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

.lppr-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 5px 12px;

    margin-bottom: 7px;

    padding: 6px 8px;

    border-radius: 6px;

    background: #f1f5f9;

    color: #536777;

    font-family: "Inter", sans-serif;

    font-size: 0.72rem;
}

.lppr-meta strong {
    color: #29475c;
}


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

.lppr-question {
    font-family: "Inter", sans-serif;

    font-weight: 700;

    line-height: 1.55;

    color: #0b2a3a;

    margin-bottom: 6px;
}


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

.lppr-question-image {
    width: 100%;

    max-width: 420px;

    margin: 8px 0 10px;

    border-radius: 8px;

    display: block;

    pointer-events: none;

    user-select: none;
}


/* =========================================================
   ANSWERS
   ========================================================= */

.lppr-answers {
    display: grid;

    grid-template-columns: 1fr;

    gap: 6px;

    font-family: "Inter", sans-serif;
}


/* =========================================================
   YOUR ANSWER
   ========================================================= */

.lppr-your-answer {
    padding: 8px;

    border-radius: 6px;

    line-height: 1.5;
}

.lppr-your-answer strong {
    display: block;

    margin-bottom: 3px;
}

.lppr-answer-correct {
    background: #e8f6ea;

    color: #0a6b2d;
}

.lppr-answer-wrong {
    background: #fdecea;

    color: #9d2a2a;
}

.lppr-timeout-answer {
    background: #fff4db;

    color: #8a5a00;
}


/* =========================================================
   CORRECT ANSWER
   ========================================================= */

.lppr-correct-answer {
    padding: 8px;

    border-radius: 6px;

    background: #eef6ff;

    color: #0b3f91;

    font-family: "Chakra", sans-serif;

    line-height: 1.5;
}

.lppr-correct-answer strong {
    display: block;

    margin-bottom: 3px;
}


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

.lppr-explanation {
    padding: 8px;

    border-radius: 6px;

    background: #f3f5f7;

    color: #34495e;

    font-family: "Chakra", sans-serif;

    font-size: 0.95rem;

    line-height: 1.55;
}

.lppr-explanation strong {
    display: block;

    margin-bottom: 3px;

    color: #0b2a3a;
}


/* =========================================================
   BUTTON BAR
   ========================================================= */

.lppr-buttons {
    position: sticky;

    bottom: 0;

    background: rgba(9, 16, 63, 0.95);

    padding: 12px 0 4px;

    display: flex;

    gap: 10px;

    justify-content: space-between;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    flex-shrink: 0;
}


/* =========================================================
   BUTTON
   ========================================================= */

.lppr-btn {
    font-family: "Sora", sans-serif;

    flex: 1;

    padding: 12px;

    border-radius: 10px;

    border: none;

    cursor: pointer;

    font-weight: 700;

    font-size: 1rem;
}

.lppr-btn.lppr-results {
    background: #0b6bd6;

    color: #ffffff;
}

.lppr-btn.lppr-results:active {
    transform: scale(0.98);
}


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

.lppr-empty {
    padding: 30px;

    border-radius: 8px;

    background: #fbfbfb;

    color: #52677a;

    text-align: center;

    font-family: "Inter", sans-serif;
}


/* =========================================================
   MATH / TEXT FORMATTING
   ========================================================= */

.lppr-question p,
.lppr-your-answer p,
.lppr-correct-answer p,
.lppr-explanation p {
    margin: 0 0 6px 0;
}

.lppr-question p:last-child,
.lppr-your-answer p:last-child,
.lppr-correct-answer p:last-child,
.lppr-explanation p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   LANDSCAPE BACKGROUND
   ========================================================= */

@media (orientation: landscape) {
    .lppr-screen {
        background-image:
            url("/client/assets/images/bg/game_bg_landscape.jpg");
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .lppr-container {
        padding: 8px;
    }

    .lppr-summary {
        gap: 6px;
    }

    .lppr-summary-box {
        padding: 7px 4px;
    }

    .lppr-summary-number {
        font-size: 1.05rem;
    }

    .lppr-summary-label {
        font-size: 0.68rem;
    }

    .lppr-title {
        font-size: 1.25rem;

        margin-bottom: 8px;
    }

    .lppr-card {
        padding: 9px;

        border-left-width: 5px;
    }

    .lppr-card-header {
        align-items: flex-start;
    }

    .lppr-status {
        font-size: 0.68rem;

        padding: 5px 7px;
    }

    .lppr-question {
        font-size: 0.92rem;
    }

    .lppr-buttons {
        padding-top: 10px;
    }

    .lppr-btn {
        padding: 10px;

        font-size: 0.9rem;
    }
}


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

@media (max-width: 360px) {
    .lppr-summary-number {
        font-size: 0.95rem;
    }

    .lppr-summary-label {
        font-size: 0.62rem;
    }

    .lppr-title {
        font-size: 1.15rem;
    }

    .lppr-player {
        font-size: 0.72rem;
    }

    .lppr-status {
        font-size: 0.62rem;
    }
}


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

@keyframes lppr-card-enter {
    from {
        opacity: 0;

        transform: translateY(20px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}