/* RESET */
* {
    box-sizing: border-box;
}

/* MAIN WRAPPER */
.qg-wrap {
    display: flex;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(135deg, #e0f7ff, #fde7ff);
    min-height: 100vh;
}

/* CARD */
.qg-card {
    position: relative;
    background: #ffffff;
    padding: 28px 22px 24px;
    border-radius: 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    font-family: 'Poppins', Arial, sans-serif;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

/* TITLE */
.qg-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
}

/* CATEGORY BADGE (OPTION 3) */
.qg-category {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 22px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a18, #ff3d81);
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    z-index: 10;
    animation: qgPop 0.35s ease;
}

/* LETTER BOX */
.qg-letter {
    width: 120px;
    height: 120px;
    margin: 28px auto 18px;
    font-size: 80px;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #6a5cff, #00c6ff);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* OPTIONS */
.qg-options {
    margin-top: 12px;
}

.qg-options button {
    width: 100%;
    margin: 10px 0;
    padding: 14px 18px;
    border-radius: 18px;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    background: #f3f3f3;
    transition: all 0.2s ease;
}

.qg-options button:hover {
    transform: scale(1.03);
    background: #ececec;
}

/* CORRECT / WRONG */
.qg-options button.correct {
    background: #4caf50 !important;
    color: #ffffff;
}

.qg-options button.wrong {
    background: #f44336 !important;
    color: #ffffff;
}

/* RESULT TEXT */
#qg-result {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
}

/* POP ANIMATION */
@keyframes qgPop {
    0% {
        transform: translateX(-50%) scale(0.85);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 480px) {
    .qg-card {
        padding: 24px 16px;
    }

    .qg-letter {
        width: 100px;
        height: 100px;
        font-size: 64px;
    }

    .qg-options button {
        font-size: 16px;
    }
}
