/* GAME & ASD FRIENDLY ELEMENTS */

:root {
    --game-bg: #F4F6F8;
    --card-surface: #ffffff;

    /* Friendly Colors (Pastels but distinct) */
    --clr-orange: #FFAB73;
    --clr-teal: #4FD1C5;
    --clr-purple: #9F7AEA;
    --clr-red: #FC8181;
    --clr-blue: #63B3ED;

    --text-game: #2D3748;
}

body {
    background: var(--game-bg);
}

/* Container */
.game-container {
    max-width: 900px;
    margin: 6rem auto 3rem;
    padding: 0 1.5rem;
}

.game-header {
    text-align: center;
    margin-bottom: 3rem;
}

.game-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Progress Bar - Soft & Chunky */
.progress-container {
    width: 100%;
    height: 16px;
    background: #E2E8F0;
    border-radius: 20px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0%;
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Game Card Area */
.mission-card {
    background: var(--card-surface);
    border-radius: 40px;
    /* Super rounded */
    padding: 3rem;
    box-shadow:
        0 20px 50px -12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    /* Subtle outline */
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: height 0.3s ease;
}

/* Buttons - "Clay" Effect (Soft 3D) */
.game-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.game-btn {
    background: #F7FAFC;
    border: none;
    border-radius: 25px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Claymorphism Shadow */
    box-shadow:
        inset 10px 10px 20px #e6e9ef,
        inset -10px -10px 20px #ffffff,
        5px 5px 15px rgba(0, 0, 0, 0.05);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-game);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.game-btn:hover {
    transform: translateY(-5px);
    box-shadow:
        inset 5px 5px 10px #e6e9ef,
        inset -5px -5px 10px #ffffff,
        10px 10px 25px rgba(0, 0, 0, 0.1);
}

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

.game-btn img,
.game-btn span:first-child {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* States */
.game-btn.selected,
.game-btn.submit-btn {
    background: var(--primary);
    color: white;
    box-shadow:
        inset 5px 5px 20px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(108, 93, 211, 0.4);
}

.game-btn.correct {
    background: var(--clr-teal);
    color: white;
    animation: bounce 0.6s;
    box-shadow: 0 10px 20px rgba(79, 209, 197, 0.4);
}

.game-btn.wrong {
    background: var(--clr-red);
    color: white;
    animation: shake 0.4s;
}

/* Animations */
@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Feedback Modal - Soft & Rounded */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 55, 72, 0.6);
    /* Softer dark overlay */
    backdrop-filter: blur(10px);
    z-index: 9999;
    /* Above everything */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 40px;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 450px;
    border: 4px solid #F7FAFC;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-size: 2.2rem;
    margin-top: 1rem;
    font-weight: 800;
}

.modal-btn {
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(108, 93, 211, 0.3);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 93, 211, 0.4);
}

.badge {
    font-size: 4rem;
    line-height: 1;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* Inputs / Textareas */
input,
textarea {
    border: 2px solid #E2E8F0 !important;
    border-radius: 15px !important;
    padding: 1rem !important;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background: #F8FAFC !important;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(108, 93, 211, 0.1);
}