/* ============================================
   MODE: PREP (出隊籌備任務地圖)
   ============================================ */
.prep-hero {
    padding: 28px 22px 22px;
    background: var(--ink);
    color: #fff;
    border: var(--border);
    box-shadow: 6px 6px 0 var(--neon);
    margin-bottom: 24px;
}
.prep-eyebrow {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--neon);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 700;
}
.prep-title {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}
.prep-sub {
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 16px;
}
.prep-counter {
    display: inline-block;
    padding: 6px 12px;
    background: var(--neon);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}
.prep-counter strong { font-size: 1.1rem; }

.quest-list { display: flex; flex-direction: column; gap: 12px; }
.quest-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border: var(--border);
    box-shadow: 4px 4px 0 var(--ink);
    cursor: pointer;
    transition: 0.18s;
}
.quest-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.quest-card.done { background: #f0fff4; border-color: var(--neon); box-shadow: 4px 4px 0 var(--neon); }
.quest-card.done .quest-name { text-decoration: line-through; opacity: 0.7; }
.quest-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 2px solid var(--ink);
    font-size: 1.5rem;
}
.quest-card.done .quest-icon { background: var(--neon); }
.quest-body { flex: 1; }
.quest-tag {
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 6px;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 3px;
}
.quest-tag.must { background: var(--alert); color: #fff; }
.quest-tag.conditional { background: var(--warn); color: var(--ink); }
.quest-tag.preview { background: #ddd; color: var(--ink); }
.quest-name { font-size: 1.05rem; font-weight: 900; margin-bottom: 4px; }
.quest-desc { font-size: 0.85rem; color: var(--sub-ink); line-height: 1.5; }
.quest-state {
    width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--sub-ink);
}
.quest-card.done .quest-state { color: var(--neon); }

.prep-warn {
    margin-top: 28px;
    padding: 18px 20px;
    background: #fff5f5;
    border: 2px solid var(--alert);
}
.prep-warn-title {
    font-weight: 900;
    color: var(--alert);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.prep-warn ul { margin: 0; padding-left: 22px; line-height: 1.8; font-size: 0.92rem; color: #5d2020; }

/* QUEST MODAL */
.quest-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.quest-modal.hidden { display: none; }
.quest-modal-box {
    background: var(--surface);
    border: var(--border);
    box-shadow: 8px 8px 0 var(--ink);
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 26px;
    position: relative;
}
.quest-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px; height: 36px;
    border: 2px solid var(--ink);
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.quest-modal-close:hover { background: var(--ink); color: #fff; }
.quest-modal-icon {
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: 8px;
}
.quest-modal-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.quest-modal-body { font-size: 0.95rem; line-height: 1.7; color: var(--ink); }
.quest-modal-body p { margin: 0 0 12px; }
.quest-points { padding-left: 20px; margin: 0 0 14px; }
.quest-points li { margin-bottom: 8px; line-height: 1.7; }
.quest-warn {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff5f5;
    border-left: 4px solid var(--alert);
    font-size: 0.9rem;
    color: #5d2020;
}
.quest-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed #ddd;
}
.quest-modal-actions .quiz-next { flex: 1; margin: 0; }