/* The <dialog> that hosts <energy-quiz> on /date. Loaded only on that page. */
#quiz-dialog {
    width: min(720px, 100vw - 2rem);
    max-height: 90dvh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #ece3f7; /* lavender, matches the quiz element */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: auto;
    overscroll-behavior: contain;
}
#quiz-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}
#quiz-dialog .quiz-dialog-body {
    padding: 1.25rem 1.5rem 1.5rem;
}
/* Override the theme's chunky global button styles for the little close X. */
#quiz-dialog .quiz-dialog-close {
    position: sticky;
    top: 0.5rem;
    float: right;
    margin: 0.5rem 0.5rem 0 0;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 0;
    padding: 0;
    line-height: 2.25rem;
    font-size: 1.25rem;
    text-align: center;
    border: 0;
    border-radius: 50%;
    background: #e3d7f5;
    color: #2e2e33;
    box-shadow: none;
    cursor: pointer;
    z-index: 1;
}
#quiz-dialog .quiz-dialog-close:hover { background: #d6c9ea; color: #000; }
body:has(#quiz-dialog[open]) { overflow: hidden; }

.quiz-cta { margin: 0 0 2em; }
.quiz-cta .button { font-size: 0.9em; }
.quiz-cta .quiz-fullscreen-link { font-size: 0.8em; margin-left: 0.5em; }
