/* ================================
   Name the Parts Frontend
================================ */

.objectiva-ntp-game {
    background: #ffffff;
    border: 1px solid #d9e7ff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.objectiva-ntp-game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.objectiva-ntp-title {
    margin: 0 0 6px;
    color: #1f2a44;
    font-size: 22px;
    line-height: 1.3;
}

.objectiva-ntp-title p {
    margin: 0;
}

.objectiva-ntp-instruction {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.objectiva-ntp-score-box {
    background: #f5f7ff;
    border: 1px solid #d9e7ff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    color: #1f2a44;
    white-space: nowrap;
}

.objectiva-ntp-feedback {
    min-height: 28px;
    font-weight: 700;
    margin: 8px 0;
}

.objectiva-ntp-feedback.is-correct {
    color: #17803d;
}

.objectiva-ntp-feedback.is-wrong {
    color: #c62828;
}

.objectiva-ntp-stage-wrap {
    display: flex;
    justify-content: center;
    margin: 12px 0 16px;
}

.objectiva-ntp-front-stage {
    position: relative;
    width: 100%;
    background: #f6f8ff;
    border: 2px solid #d9e7ff;
    border-radius: 16px;
    overflow: hidden;
}

.objectiva-ntp-front-base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.objectiva-ntp-front-layer {
    position: absolute;
    z-index: 3;
    transition: opacity 0.35s ease, filter 0.25s ease;
    pointer-events: none;
}
.objectiva-ntp-front-layer.is-inactive {
    opacity: 0.12 !important;
    filter: grayscale(20%) brightness(0.85);
}

.objectiva-ntp-front-layer-inner {
    width: 100%;
    height: 100%;
    transform-origin: center center;
}

.objectiva-ntp-front-layer-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
@keyframes objectivaNtpFadePulse {
    0% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.55;
    }
}
.objectiva-ntp-front-layer.is-active {
    opacity: 1 !important;
    filter: brightness(1.12) saturate(1.08);
    animation: objectivaNtpFadePulse 1.4s ease-in-out infinite;
}

.objectiva-ntp-front-layer.is-solved,
.objectiva-ntp-front-layer.is-faded {
    opacity: 0.12 !important;
    filter: grayscale(20%) brightness(0.85) !important;
    animation: none !important;
}

.objectiva-ntp-front-layer.is-wrong-flash {
    filter:
        drop-shadow(0 0 8px #ff0000)
        drop-shadow(0 0 18px #ff0000);
}



.objectiva-ntp-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 12px 0;
}

.objectiva-ntp-start-btn,
.objectiva-ntp-hint-btn,
.objectiva-ntp-restart-btn  {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 700;
    background: #eef2ff;
    color: #27346b;
}

.objectiva-ntp-start-btn:hover,
.objectiva-ntp-hint-btn:hover,
.objectiva-ntp-restart-btn:hover {
    background: #dfe6ff;
}
.objectiva-ntp-start-btn {
    background: #1f5da8;
    color: #ffffff;
}

.objectiva-ntp-start-btn:hover {
    background: #174a88;
}

.objectiva-ntp-not-started .objectiva-ntp-front-layer {
    opacity: 1 !important;
    filter: none !important;
    animation: none !important;
}

.objectiva-ntp-not-started .objectiva-ntp-answer-btn.is-disabled {
    opacity: 0.55;
}

.objectiva-ntp-hint-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.objectiva-ntp-hint-box,
.objectiva-ntp-explanation-box {
    background: #fffdf2;
    border: 1px solid #f3df9b;
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0;
    color: #5d4a00;
}

.objectiva-ntp-explanation-box {
    background: #f3fff6;
    border-color: #a9e8ba;
    color: #155b2a;
}

.objectiva-ntp-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}

.objectiva-ntp-answer-btn {
    border: 1px solid #d9e7ff;
    background: #ffffff;
    color: #1f2a44;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.2s ease;
}

.objectiva-ntp-answer-btn:hover {
    transform: translateY(-1px);
    background: #f5f7ff;
}

.objectiva-ntp-answer-btn.is-disabled,
.objectiva-ntp-answer-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.objectiva-ntp-complete {
    text-align: center;
    background: #f3fff6;
    border: 1px solid #a9e8ba;
    border-radius: 16px;
    padding: 18px;
    margin-top: 16px;
}

.objectiva-ntp-complete h3 {
    margin: 0 0 6px;
    color: #17803d;
}

.objectiva-ntp-complete p {
    margin: 0;
    color: #155b2a;
}

@media (max-width: 768px) {
    .objectiva-ntp-game {
        padding: 12px;
        border-radius: 14px;
    }

    .objectiva-ntp-game-header {
        flex-direction: column;
    }

    .objectiva-ntp-title {
        font-size: 19px;
    }

    .objectiva-ntp-score-box {
        align-self: flex-start;
    }

    .objectiva-ntp-answer-btn {
        width: 100%;
        border-radius: 12px;
    }
}
.objectiva-ntp-completed .objectiva-ntp-front-layer {
    opacity: 1 !important;
    filter: none !important;
    animation: none !important;
}

.objectiva-ntp-reveal-complete .objectiva-ntp-front-layer {
    animation: objectivaNtpRevealFull 1.6s ease-out both !important;
}

@keyframes objectivaNtpRevealFull {
    0% {
        opacity: 0.12;
        filter: grayscale(30%) brightness(0.85);
    }

    60% {
        opacity: 1;
        filter: grayscale(0%) brightness(1.08);
    }

    100% {
        opacity: 1;
        filter: none;
    }
}
.objectiva-ntp-score-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.objectiva-ntp-attempts-box {
    background: #fff8e6;
    border: 1px solid #ffd37a;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    color: #7a4a00;
    white-space: nowrap;
}

.objectiva-ntp-failed {
    text-align: center;
    background: #fff4f4;
    border: 1px solid #f0b3b3;
    border-radius: 16px;
    padding: 18px;
    margin-top: 16px;
}

.objectiva-ntp-failed h3 {
    margin: 0 0 6px;
    color: #b42318;
}

.objectiva-ntp-failed p {
    margin: 0 0 12px;
    color: #7a271a;
}

.objectiva-ntp-learn-more-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 700;
    background: #b42318;
    color: #ffffff;
}

.objectiva-ntp-learn-more-box {
    margin-top: 14px;
    text-align: left;
    background: #ffffff;
    border: 1px solid #f0b3b3;
    border-radius: 12px;
    padding: 14px;
    color: #333;
}

@media (max-width: 768px) {
    .objectiva-ntp-score-wrap {
        align-items: flex-start;
    }
}
.objectiva-ntp-timer-box {
    background: #f7fbff;
    border: 1px solid #cfe0ff;
    border-radius: 14px;
    padding: 8px 12px;
    font-weight: 700;
    color: #173b6d;
    min-width: 160px;
}

.objectiva-ntp-timer-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6b85;
    margin-bottom: 2px;
}

.objectiva-ntp-timer-track {
    width: 100%;
    height: 7px;
    background: #e6eefb;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}
.objectiva-ntp-timer-fill {
    height: 100%;
    width: 100%;
    background: #1f5da8;
    border-radius: 999px;
    transition: width 0.3s linear;
}

.objectiva-ntp-time-danger .objectiva-ntp-timer-fill {
    background: #d92d20;
}

.objectiva-ntp-time-danger .objectiva-ntp-timer-box {
    border-color: #f2b8b5;
    background: #fff5f5;
    color: #b42318;
}


.objectiva-ntp-score-box,
.objectiva-ntp-attempts-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.objectiva-ntp-score-box {
    border: 1px solid #d9e7ff;
    color: #1f2a44;
}

.objectiva-ntp-attempts-box {
    border: 1px solid #ffd37a;
    color: #7a4a00;
    background: rgba(255, 248, 230, 0.94);
}
@media (max-width: 768px) {


    .objectiva-ntp-score-box,
    .objectiva-ntp-attempts-box {
        font-size: 11px;
        padding: 6px 8px;
    }


    .objectiva-ntp-timer-label {
        font-size: 9px;
    }
}
.objectiva-ntp-status-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px auto 14px;
    max-width: 900px;
}

.objectiva-ntp-status-card {
    min-width: 130px;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}


.objectiva-ntp-score-box {
    border: 1px solid #d9e7ff;
    color: #1f2a44;
}
.objectiva-ntp-attempts-box {
    border: 1px solid #ffd37a;
    color: #7a4a00;
    background: #fff8e6;
}

.objectiva-ntp-timer-box {
    border: 1px solid #cfe0ff;
    color: #173b6d;
    min-width: 180px;
}

.objectiva-ntp-timer-track {
    width: 100%;
    height: 7px;
    background: #e6eefb;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}

.objectiva-ntp-timer-fill {
    height: 100%;
    width: 100%;
    background: #1f5da8;
    border-radius: 999px;
    transition: width 0.3s linear;
}

.objectiva-ntp-time-danger .objectiva-ntp-timer-fill {
    background: #d92d20;
}

.objectiva-ntp-time-danger .objectiva-ntp-timer-box {
    border-color: #f2b8b5;
    background: #fff5f5;
    color: #b42318;
}
@media (max-width: 768px) {
    .objectiva-ntp-status-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 10px 0 12px;
    }

    .objectiva-ntp-timer-box {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .objectiva-ntp-status-card {
        min-width: 0;
        font-size: 12px;
        padding: 7px 10px;
    }
}
.objectiva-ntp-feedback {
    min-height: auto;
    margin: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    padding: 8px 14px;
    border-radius: 12px;
}

.objectiva-ntp-feedback.is-correct,
.objectiva-ntp-feedback.is-wrong {
    display: flex;
}

.objectiva-ntp-feedback.is-correct {
    background: #17803d;
    border: 1px solid #17803d;
    color: #ffffff;
}

.objectiva-ntp-feedback.is-wrong {
    background: #c62828;
    border: 1px solid #c62828;
    color: #ffffff;
}
@media (max-width: 768px) {
    .objectiva-ntp-feedback {
        white-space: normal;
        line-height: 1.3;
    }
}
/*-----------*/
.objectiva-ntp-resume-box {
    background: #fff8e6;
    border: 1px solid #ffd37a;
    border-radius: 14px;
    padding: 12px;
    margin: 10px 0 14px;
    text-align: center;
    color: #7a4a00;
}

.objectiva-ntp-resume-box strong {
    display: block;
    margin-bottom: 4px;
}

.objectiva-ntp-resume-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.objectiva-ntp-resume-btn,
.objectiva-ntp-start-fresh-btn {
    border: 0;
    border-radius: 999px;
    padding: 8px 15px;
    font-weight: 700;
    cursor: pointer;
}

.objectiva-ntp-resume-btn {
    background: #1f5da8;
    color: #ffffff;
}

.objectiva-ntp-start-fresh-btn {
    background: #ffffff;
    color: #7a4a00;
    border: 1px solid #ffd37a;
}
/* ================================
   Objectiva Display Modes
================================ */

.objectiva-mode-standalone .objectiva-ntp-game {
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.objectiva-mode-standalone .objectiva-ntp-title {
    font-size: 20px;
}

/*
 * Standalone activity mode:
 * lighter activity feel, but we do not forcibly hide timer/attempts
 * because admin may still want them for a single challenge slide.
 */
.objectiva-mode-standalone .objectiva-ntp-instruction {
    color: #475467;
}

/*
 * Practice mode:
 * softer feedback and more learning-oriented.
 */
.objectiva-mode-practice .objectiva-ntp-failed {
    background: #fffdf2;
    border-color: #f3df9b;
}

.objectiva-mode-practice .objectiva-ntp-failed h3 {
    color: #7a4a00;
}

/*
 * Challenge mode:
 * stronger game feel.
 */
.objectiva-mode-challenge .objectiva-ntp-game {
    border-color: #b9d2ff;
    box-shadow: 0 10px 30px rgba(31, 93, 168, 0.12);
}

.objectiva-mode-challenge .objectiva-ntp-status-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.objectiva-mode-standalone .objectiva-ntp-resume-box {
    display: none !important;
}
.objectiva-test:fullscreen .objectiva-ntp-game {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
/* ================================
   Objectiva User Settings Panel
================================ */
.objectiva-status-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.2;
    color: inherit;
}

.objectiva-status-inline strong {
    font-weight: 700;
}
@media (max-width: 768px) {
    .objectiva-status-inline {
        font-size: 12px;
        gap: 4px;
    }
}

