/* ============================================
   MODE: INTRO (一題一頁的測驗)
   ============================================ */
.quiz-shell {
    padding: 24px 20px 30px;
    background: var(--surface);
    border: var(--border);
    box-shadow: 6px 6px 0 var(--ink);
    min-height: 70vh;
    position: relative;
}
.quiz-progress { margin-bottom: 28px; }
.quiz-progress::after { content: ''; display: block; clear: both; }
.quiz-progress-bar {
    height: 8px;
    width: 14%;
    background: var(--neon);
    border: 2px solid var(--ink);
    transition: width 0.4s cubic-bezier(.2,.9,.3,1);
}
.quiz-progress-text {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sub-ink);
    text-align: right;
}

.quiz-screen {
    display: none;
    animation: quizIn 0.35s ease-out;
}
.quiz-screen.active { display: block; }
@keyframes quizIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.quiz-eyebrow {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sub-ink);
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}
.quiz-q {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}
.quiz-hint {
    color: var(--sub-ink);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 24px;
}

.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-options.multi {
    flex-direction: row;
    flex-wrap: wrap;
}
.quiz-options.multi .quiz-opt {
    flex: 1 1 calc(50% - 5px);
    min-width: 130px;
    padding: 14px 12px;
    text-align: center;
    flex-direction: column;
    gap: 0;
}
.quiz-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--ink);
    background: #fff;
    border: 2px solid var(--ink);
    cursor: pointer;
    transition: 0.15s;
    font-family: var(--sans);
    text-align: left;
    width: 100%;
}
.quiz-opt span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--sub-ink);
}
.quiz-opt:hover {
    background: #f5f5f5;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ink);
}
.quiz-opt.selected {
    background: var(--ink);
    color: var(--neon);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--neon);
}
.quiz-opt.selected span { color: rgba(255,255,255,0.7); }

.quiz-date-input {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border: 2px solid var(--ink);
    background: #fff;
    margin-bottom: 16px;
    font-family: var(--mono);
}

.quiz-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    margin-top: 18px;
    font-size: 1rem;
    font-weight: 900;
    background: var(--neon);
    color: var(--ink);
    border: 2px solid var(--ink);
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--ink);
    transition: 0.15s;
    font-family: var(--sans);
}
.quiz-next:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.quiz-next:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.quiz-next.primary { background: var(--ink); color: var(--neon); }
.quiz-next.ghost { background: transparent; color: var(--sub-ink); box-shadow: none; border-color: #ccc; }
.quiz-next.ghost:hover { background: #f5f5f5; box-shadow: none; transform: none; border-color: var(--ink); color: var(--ink); }
.quiz-next.done { background: #ccc; color: #555; }

.quiz-nav {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px dashed #ddd;
}
.quiz-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--sub-ink);
    font-family: var(--mono);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 0;
}
.quiz-back:hover { color: var(--ink); }

/* QUIZ RESULT */
.result-badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 14px;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 900;
    background: var(--ink);
    color: var(--neon);
    letter-spacing: 1.5px;
}
.result-badge.pass { background: var(--neon); color: var(--ink); }
.result-badge.warn { background: var(--warn); color: var(--ink); }
.result-cards { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 8px; }
.result-card {
    padding: 16px 18px;
    background: #fff;
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
}
.result-card.primary {
    background: var(--ink);
    color: #fff;
}
.result-card.primary .result-card-title { color: var(--neon); }
.result-card.primary .result-card-body  { color: rgba(255,255,255,0.85); }
.result-card.light { background: #f7f7f7; box-shadow: 3px 3px 0 #ccc; border-color: #ccc; }
.result-card-title {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--sub-ink);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.result-card-amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon);
    margin-bottom: 6px;
    font-family: var(--mono);
}
.result-card-body { font-size: 0.95rem; line-height: 1.7; color: var(--ink); }
.result-card.primary .result-card-body strong { color: var(--neon); }
.result-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
