/* ──────────────────────────────────────────────────────────────
   Quiz CTA — the emulated "answer a question" block used at the
   bottom of lead-magnet pages.

   Extracted from the inline <style> in seat-organiser.html so the
   rules are cacheable instead of re-sent on every page load.

   Other users of .checklist-quiz-cta still carry their own copies:
     - public/wedding-checklist.html (inline; its @media block is
       entangled with checklist-specific selectors and needs
       untangling before it can move here)
     - public/css/blog.css
     - public/css/wedding-game-questions.css
   Consolidate them onto this file when those pages are next touched.
   ────────────────────────────────────────────────────────────── */

.checklist-quiz-cta {
    max-width: var(--container-max-width);
    margin: 2.5rem auto 0;
    padding: 0 7rem;
    text-align: center;
}

.quiz-cta-title {
    font-family: 'SatsukiGendaiMincho', 'Noto Serif TC', '微軟正黑體', 'Microsoft JhengHei', serif;
    font-size: 1.8rem;
    color: var(--color-text-main);
    margin: 0 0 1.75rem;
    line-height: 1.35;
    letter-spacing: 0.04em;
}

.quiz-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
}

.quiz-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.6rem 1.25rem;
    min-height: 100px;
    font-family: 'SatsukiGendaiMincho', 'Noto Serif TC', '微軟正黑體', 'Microsoft JhengHei', serif;
    font-size: 1.15rem;
    color: #4a4a4a;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    z-index: 0;
    transition: transform 0.2s ease;
}

.quiz-option::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    -webkit-mask-image: url('/wedding_theme_elements/watercolor_option_select_box.png');
    mask-image: url('/wedding_theme_elements/watercolor_option_select_box.png');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: background-color 0.3s ease, opacity 0.2s ease;
}

.quiz-option.choice-1::before { background-color: rgba(240, 98, 146, 0.55); }
.quiz-option.choice-2::before { background-color: rgba(174, 213, 129, 0.55); transform: scaleX(-1); }
.quiz-option.choice-3::before { background-color: rgba(255, 183, 77, 0.55); transform: scaleY(-1); }
.quiz-option.choice-4::before { background-color: rgba(77, 182, 172, 0.55); transform: scaleX(-1) scaleY(-1); }

.quiz-option:hover { transform: translateY(-2px); }
.quiz-option:hover::before { opacity: 0.85; }
.quiz-option:active { transform: translateY(0); }

.quiz-option:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.quiz-cta-status {
    display: block;
    margin-top: 1rem;
    min-height: 1.1rem;
    font-family: 'Noto Serif TC', '微軟正黑體', 'Microsoft JhengHei', sans-serif;
    font-size: 0.85rem;
    color: var(--color-text-light);
    opacity: 0;
    transition: opacity 0.2s;
}
.quiz-cta-status.visible { opacity: 1; }
.quiz-cta-status.saved   { color: var(--color-primary); }

/* ── Emulated game elements (timer / answered counter) ── */
.cta-emulate-container {
    position: relative;
    width: 100%;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-side-element {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.cta-timer  { left: 0; align-items: flex-start; padding-left: 12px; }
.cta-counter{ right: 0; align-items: center; padding-right: 6px; }

.cta-emulate-value {
    font-family: 'SatsukiGendaiMincho', 'Noto Serif TC', '微軟正黑體', 'Microsoft JhengHei', serif;
    font-size: 2rem;
    color: #4a4a4a;
    line-height: 1;
}

.cta-emulate-label {
    font-family: 'SatsukiGendaiMincho', 'Noto Serif TC', '微軟正黑體', 'Microsoft JhengHei', serif;
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-top: 0.2rem;
}

/* ── Couple sprite animation ── */
.quiz-cta-animation {
    width: 180px;
    aspect-ratio: 4/3;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: block;
}

.animation-sprite {
    position: absolute;
    left: 0;
    width: 400%;
    height: 300%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.animation-sprite.animate {
    animation: sprite-slide 2.5s steps(4) infinite;
}

@keyframes sprite-slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .animation-sprite.animate { animation: none; }
}

.anim-blowing-kiss { top: 0; }
.anim-shy-glances  { top: -100%; }
.anim-cheers       { top: -200%; }

@media (max-width: 768px) {
    .checklist-quiz-cta { padding-left: 1.5rem; padding-right: 1.5rem; }
    .quiz-cta-title { font-size: 1.35rem; margin-bottom: 1.25rem; }
    .quiz-cta-grid  { gap: 12px; }
    .quiz-option    { font-size: 0.95rem; min-height: 82px; padding: 1.1rem 0.75rem; }
    .cta-emulate-value { font-size: 2rem; }
    .cta-emulate-label { font-size: 0.95rem; }
}
