#quiz-app-root button {
    background-color: var(--button-color);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 12px;
}

/* simple-quiz/assets/quiz-app.css */
.sq-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sq-modal {
    max-width: 720px;
    width: 95%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
}

.sq-option:hover {
    background: rgba(0, 0, 0, 0.03);
}


#sq-quiz-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background:
        radial-gradient(circle at 50% 30%, rgba(202, 171, 114, 0.15), transparent 70%),
        radial-gradient(circle at 80% 80%, rgba(202, 171, 114, 0.1), transparent 60%),
        linear-gradient(180deg, #1a202c 0%, #232939 40%, #0d0f17 100%);
    background-blend-mode: overlay;
    color: #fff;
    overflow: hidden;
}

#sq-inner-stage {

    min-width: 480px;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    /* background: rgba(255, 255, 255, 0.05);
    border-radius: var(--sq-radius, 16px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); */
    transition: all 0.3s ease;
}

#sq-question-text {
    font-size: 2.5rem;
    /* Bigger headline */
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--sq-text, #000);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

#sq-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 1rem;
}

#sq-options .sq-answer {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sq-radius, 12px);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--sq-text, #fff);
    transition: all 0.2s ease;

    /* NEW: make all buttons uniform height */
    /* display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 70px; */
    /* tweak if needed */
}

#sq-options .sq-answer:hover {
    background-color: var(--sq-btn, #ff1744);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.5);
}

#sq-progress {
    text-align: right;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Main Stage --- */
#sq-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 16px;
    background:
        radial-gradient(circle at top center, rgba(202, 171, 114, 0.15), transparent 70%),
        linear-gradient(145deg, rgba(26, 32, 44, 0.95), rgba(17, 24, 39, 0.98));
    border: 1px solid rgba(202, 171, 114, 0.25);
    box-shadow:
        0 0 25px rgba(202, 171, 114, 0.15),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    color: #f9fafb;
    transition: all 0.3s ease;
    margin: 10px;
}

#sq-stage:hover {
    box-shadow:
        0 0 30px rgba(202, 171, 114, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* --- Quiz Result Section --- */
#sq-result {
    margin-top: 3rem;
    text-align: center;
    transition: all 0.5s ease;
    color: #f9fafb;
}

/* The inner result card */
#sq-result .sq-result-card {
    display: inline-block;
    width: 100%;
    max-width: 600px;
    padding: 3rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #fff;
    transition: all 0.3s ease;
}

/* Title */
#sq-result h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Score text */
#sq-result p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
#sq-result button {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    background-color: #a40e16;
    color: #fff;
    box-shadow: 0 4px 15px rgba(164, 14, 22, 0.4);
    transition: all 0.25s ease;
}

#sq-result button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(164, 14, 22, 0.6);
}

/* --- Slide Animations --- */
.slide-in-right {
    animation: slideInRight 0.4s ease forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.4s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* ============================
   MOBILE RESPONSIVE FIXES
   ============================ */
@media (max-width: 640px) {

    /* Main stage & inner container */
    #sq-stage {
        padding: 1rem;
        min-height: auto;
    }

    #sq-inner-stage {
        min-width: auto;
        /* REMOVE fixed 480px */
        padding: 1rem;
    }

    /* Question title */
    #sq-question-text {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    /* Options: force single column */
    #sq-options {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }

    #sq-options .sq-answer {
        font-size: 1rem;
        padding: 0.9rem;
    }

    /* Progress text */
    #sq-progress {
        font-size: 0.8rem;
    }

    /* Start screen adjustments */
    #sq-start-screen h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    #sq-start-btn {
        padding: 0.9rem 2rem !important;
        font-size: 1.1rem !important;
    }

    /* Result card */
    #sq-result .sq-result-card {
        padding: 1.5rem 1rem;
        max-width: 95%;
    }

    #sq-result h3 {
        font-size: 1.8rem;
    }

    #sq-result p {
        font-size: 1rem;
    }

    #sq-result button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Modal (confirmation / email input) */
    .sq-modal {
        width: 90%;
        padding: 1rem;
    }
}

/* ======================================
   ULTRA MOBILE FIX — MAX WIDTH 430px
   ====================================== */
@media (max-width: 430px) {

    /* Stage wrapper */
    #sq-stage {
        padding: 0.75rem;
        margin: 0;
        min-height: auto;
    }

    /* Inner container */
    #sq-inner-stage {
        padding: 0.75rem;
        min-width: auto;
        /* Force override */
        max-width: 100%;
    }

    /* Start screen */
    #sq-start-screen h2 {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }

    #sq-start-btn {
        font-size: 1rem !important;
        padding: 0.7rem 1.5rem !important;
    }

    /* Question text */
    #sq-question-text {
        font-size: 1.35rem !important;
        margin-bottom: 1rem;
        word-break: break-word;
    }

    /* Progress text */
    #sq-progress {
        font-size: 0.75rem;
    }

    /* Options */
    #sq-options {
        grid-template-columns: 1fr !important;
        /* Force single column */
        gap: 0.6rem !important;
    }

    #sq-options .sq-answer {
        padding: 0.8rem !important;
        font-size: 0.95rem !important;
        border-width: 1px !important;
    }

    /* Result card */
    #sq-result .sq-result-card {
        padding: 1.25rem !important;
        max-width: 100% !important;
    }

    #sq-result h3 {
        font-size: 1.6rem !important;
    }

    #sq-result p {
        font-size: 0.95rem !important;
    }

    #sq-result button {
        font-size: 0.95rem !important;
        padding: 0.75rem 1.25rem !important;
    }

    /* Email input field */
    #sq-email {
        max-width: 90% !important;
        font-size: 0.95rem !important;
        padding: 0.6rem !important;
    }

    /* Modal override */
    .sq-modal {
        width: 95% !important;
        padding: 0.75rem !important;
    }
}