/* Bulb icon (.auth-icon / .auth-spark), its halo/bob/flicker keyframes, and the
   headline/subtext (.auth-copy) all come from auth.css — reused as-is here.

   The result bulb itself (.bulb-wake, including its "waking up" sleeping->happy sequence) lives
   in mascot.css, shared with the home page grid card. This file only has what's genuinely
   specific to this page: overall layout, and gating this page's own headline/CTA/hint on the
   mascot's state (mascot.css doesn't know these elements exist). */

/* Soft white wash behind the bulb, for contrast against the page bg. */
.bulb-wake__wash {
    position: absolute;
    top: -125px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--color-surface-2) 0%, var(--color-surface-2) 25%, transparent 70%);
    pointer-events: none;
    transition: opacity .35s ease-in-out;
}

.bulb-wake.state-happy .bulb-wake__wash {
    opacity: 0;
}

/* Headline, CTA and hint stay hidden until the bulb actually lands on state-happy, then fade in
   - that payoff copy appears once the transition finishes, not immediately on load next to a
   still-sleeping bulb. .auth-copy and .quiz-result-actions are later siblings of .bulb-wake
   under .quiz-result-shell, so the general sibling combinator reaches them; scoped through
   .bulb-wake specifically (not just .auth-headline) so this never touches the login page's own
   headline, which reuses .auth-headline via the unrelated _bulb_hero.html.twig. */
.bulb-wake ~ .auth-copy .auth-headline,
.bulb-wake ~ .quiz-result-actions .quiz-result-cta,
.bulb-wake ~ .quiz-result-actions .quiz-result-hint {
    opacity: 0;
    transition: opacity .4s ease-out;
}

/* Invisible shouldn't mean silently clickable/focusable while still hidden. */
.bulb-wake ~ .quiz-result-actions .quiz-result-cta {
    pointer-events: none;
}

.bulb-wake.state-happy ~ .auth-copy .auth-headline,
.bulb-wake.state-happy ~ .quiz-result-actions .quiz-result-cta,
.bulb-wake.state-happy ~ .quiz-result-actions .quiz-result-hint {
    opacity: 1;
}

.bulb-wake.state-happy ~ .quiz-result-actions .quiz-result-cta {
    pointer-events: auto;
}

.quiz-result-page {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    padding: 1.5rem;
    background: var(--color-bg);
    font-family: var(--font-body);
}

.quiz-result-page *,
.quiz-result-page *::before,
.quiz-result-page *::after {
    box-sizing: border-box;
}

.quiz-result-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.75rem;
    width: 100%;
    text-align: center;
}

.quiz-result-pills {
    display: flex;
    gap: 10px;
}

.quiz-result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.quiz-result-cta {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    height: 56px;
    border: none;
    border-radius: 18px;
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease;
}

.quiz-result-cta:hover,
.quiz-result-cta:focus-visible {
    background: var(--color-accent-hover);
    color: var(--color-on-accent);
}

.quiz-result-hint {
    max-width: 260px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-text-subtle);
}

@media (min-width: 1024px) {
    .quiz-result-page {
        padding: 2.5rem;
    }

    .quiz-result-shell {
        max-width: 800px;
        gap: 3rem;
    }

    .quiz-result-cta {
        height: 60px;
        font-size: 18px;
    }
}
