/* -- Result --------------------------------------- */
.result {
    margin-top: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fbfaf9 100%);
    border: 1px solid #e6dfd6;
    border-left: 5px solid #9aa4b2;
    border-radius: 14px;
    padding: 0.95rem;
    min-height: 3rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #2d3436;
    box-shadow: 0 8px 24px rgba(96,72,46,0.1);
    overflow: hidden;
}
.result.animate-in {
    animation: slideUpFade 0.4s ease-out both;
}
.result.correct {
    border-color: #e6dfd6;
    border-left-color: #0d8f75;
    background: linear-gradient(135deg, #ffffff 0%, #f4fbf8 100%);
    animation: slideUpFade 0.35s ease-out both;
}
.result.incorrect {
    border-color: #e6dfd6;
    border-left-color: #c65f44;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f5 100%);
    animation: slideUpFade 0.35s ease-out both;
}

/* -- Action buttons (post-result) ---------------- */
.action-buttons {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 0.5rem;
    padding-top: 0.25rem;
    min-height: 126px;
    animation: slideUpFade 0.35s 0.15s ease-out both;
}
.action-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.action-btn:hover {
    transform: scale(1.12);
}
.action-btn:active {
    transform: scale(0.94);
}
.action-btn.try-again {
    background: linear-gradient(135deg, #e17055 0%, #fab1a0 100%);
    color: #fff;
    box-shadow: 0 6px 22px rgba(225,112,85,0.35);
}
.action-btn.try-again:hover {
    box-shadow: 0 8px 30px rgba(225,112,85,0.5);
}
.action-btn.next {
    background: linear-gradient(135deg, #6c5ce7 0%, #74b9ff 100%);
    color: #fff;
    box-shadow: 0 6px 22px rgba(108,92,231,0.32);
}
.action-btn.next:hover {
    box-shadow: 0 8px 30px rgba(108,92,231,0.45);
}
.action-btn.next.loading {
    pointer-events: none;
    opacity: 0.7;
}
.action-btn.next.loading svg {
    animation: spin 0.8s linear infinite;
}

/* -- Confetti burst (correct answer) ------------ */
.confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 0.9s ease-out forwards;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2.5px solid #e8ddd3;
    border-top: 2.5px solid #00b894;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.result .spinner { border-color: #e8ddd3; border-top-color: #00b894; }
