/*
═══════════════════════════════════════════════════════════════
   NIGHT MURMUR · QUIZ 02 原型測驗
   ——前台樣式。全部吃主題的 CSS 變數（--bone / --plum / --twilight…），
     所以後台 Options 換色、切淺色模式，測驗會跟著變，不用改這裡。
     沒有硬寫死任何顏色。
═══════════════════════════════════════════════════════════════
*/

.nmq02 {
    --q-gap: 28px;
    --q-radius: 2px;
    max-width: var(--max-narrow, 880px);
    margin: 0 auto;
    padding: 0 24px;
    color: var(--twilight);
    font-family: var(--ff-cn);
    font-weight: 300;
    line-height: 1.8;
}
.nmq02.lang-en { font-family: var(--ff-en); }

.nmq02 [hidden] { display: none !important; }


/* ─── 共用小元件 ──────────────────────────────── */
.nmq02-eyebrow {
    font-family: var(--ff-m);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--mist);
    margin: 0 0 12px;
}

.nmq02-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--ff-m);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 14px 28px;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    transition: all .25s ease;
}
.nmq02-btn:disabled { opacity: .3; cursor: not-allowed; }

.nmq02-btn-primary {
    background: var(--plum);
    color: var(--bone);
}
.nmq02-btn-primary:not(:disabled):hover {
    background: var(--plum-hi);
    transform: translateY(-1px);
}

.nmq02-btn-ghost {
    border: 1px solid var(--linen-2);
    color: var(--twilight);
}
.nmq02-btn-ghost:hover { border-color: var(--plum); color: var(--plum); }

.nmq02-btn-wide { width: 100%; }

.nmq02-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--plum);
    font: inherit;
    font-size: inherit;
    cursor: pointer;
    border-bottom: 1px solid var(--plum);
    transition: opacity .2s;
}
.nmq02-link:hover { opacity: .7; }


/* ─── 開場 ─────────────────────────────────── */
.nmq02-intro {
    padding: 80px 0 100px;
    text-align: center;
}
.nmq02-intro-inner { max-width: var(--max-prose, 680px); margin: 0 auto; }

.nmq02-title {
    font-family: var(--ff-d);
    font-weight: 200;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -.025em;
    margin: 0 0 8px;
    color: var(--twilight);
}
.lang-en .nmq02-title { font-style: italic; }

.nmq02-sub {
    font-family: var(--ff-d);
    font-size: clamp(17px, 2.4vw, 22px);
    font-weight: 300;
    color: var(--mist);
    margin: 0 0 40px;
}
.lang-en .nmq02-sub { font-style: italic; }

.nmq02-opening {
    text-align: left;
    margin: 0 0 32px;
}
.nmq02-opening p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--mist);
    margin: 0 0 14px;
}
.nmq02-opening p:last-child { margin-bottom: 0; }

.nmq02-meta {
    font-family: var(--ff-m);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mist-soft);
    margin: 0 0 28px;
}


/* ─── 進度 ─────────────────────────────────── */
.nmq02-quiz { padding: 60px 0 90px; }

.nmq02-progress { margin-bottom: 44px; }
.nmq02-progress-bar {
    height: 1px;
    background: var(--linen);
    position: relative;
    overflow: hidden;
}
.nmq02-progress-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, var(--mist), var(--plum));
    transition: width .5s var(--ease-moon, cubic-bezier(.22,1,.36,1));
}
.nmq02-progress-label {
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mist-soft);
    margin: 10px 0 0;
}


/* ─── 題目 ─────────────────────────────────── */
.nmq02-question { min-height: 340px; }

.nmq02-q-title {
    font-family: var(--ff-m);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--plum);
    margin: 0 0 14px;
}

.nmq02-q-text {
    font-family: var(--ff-d);
    font-weight: 300;
    font-size: clamp(20px, 3vw, 27px);
    line-height: 1.5;
    letter-spacing: -.01em;
    color: var(--twilight);
    margin: 0 0 10px;
}
.lang-en .nmq02-q-text { font-style: italic; }

.nmq02-q-image {
    margin: 18px 0 24px;
    border: 1px solid var(--linen);
}

.nmq02-q-hint {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 0 0 10px;
    flex-wrap: wrap;
}
.nmq02-step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--ff-m);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mist-soft);
    transition: color .3s;
}
.nmq02-step-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid currentColor;
    position: relative;
}
.nmq02-step-most.is-active,
.nmq02-step-most.is-done  { color: var(--plum); }
.nmq02-step-least.is-active,
.nmq02-step-least.is-done { color: var(--bronze); }

.nmq02-step.is-active .nmq02-step-dot {
    box-shadow: 0 0 0 3px rgba(138,122,170,.18);
}
.nmq02-step-least.is-active .nmq02-step-dot {
    box-shadow: 0 0 0 3px rgba(168,181,201,.20);
}
.nmq02-step.is-done .nmq02-step-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: currentColor;
}

.nmq02-q-hint-msg {
    font-size: 13.5px;
    color: var(--twilight-2);
    margin: 0 0 22px;
    min-height: 1.4em;
}

/* 選項 */
.nmq02-options { display: flex; flex-direction: column; gap: 10px; }

.nmq02-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 16px 18px;
    background: transparent;
    border: 1px solid var(--linen);
    color: var(--twilight);
    font-family: inherit;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease, opacity .25s ease;
}
.nmq02-option:hover { border-color: var(--mist); }

.nmq02-option-badge {
    margin-left: auto;
    flex: none;
    align-self: center;
    font-family: var(--ff-m);
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 10px;
    white-space: nowrap;
}
.nmq02-option.is-most .nmq02-option-badge {
    background: var(--plum);
    color: var(--bone);
}
.nmq02-option.is-least .nmq02-option-badge {
    background: transparent;
    color: var(--bronze);
    border: 1px solid var(--bronze);
}

.nmq02-option-mark {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border: 1px solid var(--linen-2);
    border-radius: 50%;
    position: relative;
    transition: all .25s ease;
}

/* 最像我 */
.nmq02-option.is-most {
    border-color: var(--plum);
    background: rgba(138,122,170,.07);
}
.nmq02-option.is-most .nmq02-option-mark {
    border-color: var(--plum);
    background: var(--plum);
}
.nmq02-option.is-most .nmq02-option-mark::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--bone);
}

/* 最不像我 */
.nmq02-option.is-least {
    border-color: var(--bronze);
    opacity: .55;
}
.nmq02-option.is-least .nmq02-option-mark {
    border-color: var(--bronze);
}
.nmq02-option.is-least .nmq02-option-mark::after {
    content: '';
    position: absolute;
    left: 4px; right: 4px; top: 50%;
    height: 1px;
    background: var(--bronze);
}

/* 排序題（投射模組） */
.nmq02-option.is-ranked { border-color: var(--plum); }
.nmq02-option-rank {
    flex: none;
    width: 20px; height: 20px;
    margin-top: 3px;
    border: 1px solid var(--plum);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-m);
    font-size: 10px;
    color: var(--plum);
}
.nmq02-option.is-ranked .nmq02-option-rank {
    background: var(--plum);
    color: var(--bone);
}

.nmq02-rank-progress {
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mist-soft);
    margin: 16px 0 0;
}

.nmq02-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--linen);
}


/* ─── Email Gate ───────────────────────────── */
.nmq02-gate { padding: 70px 0 90px; }
.nmq02-gate-inner { max-width: 480px; margin: 0 auto; }

.nmq02-gate-lede {
    font-size: 15px;
    color: var(--mist);
    line-height: 1.85;
    margin: 0 0 32px;
}

.nmq02-field { margin-bottom: 22px; }
.nmq02-field label {
    display: block;
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 8px;
}
.nmq02-field input,
.nmq02-field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--linen-2);
    padding: 10px 0;
    font-family: var(--ff-d);
    font-style: italic;
    font-weight: 300;
    font-size: 16px;
    color: var(--twilight);
    transition: border-color .25s ease;
}
.nmq02-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4 L6 8 L9 4' stroke='%238A92A2' fill='none' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 12px;
    padding-right: 20px;
}
.nmq02-field input:focus,
.nmq02-field select:focus {
    outline: none;
    border-bottom-color: var(--plum);
}
.nmq02-field.has-error input,
.nmq02-field.has-error select { border-bottom-color: var(--clay, #C4704A); }

.nmq02-err {
    display: block;
    font-size: 12px;
    color: var(--bronze);
    margin-top: 6px;
    min-height: 1em;
}

.nmq02-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--mist);
    cursor: pointer;
}
.nmq02-check input[type="checkbox"] {
    flex: none;
    width: 16px; height: 16px;
    margin-top: 3px;
    accent-color: var(--plum);
    cursor: pointer;
}
.nmq02-check-optional { color: var(--mist-soft); }

.nmq02-form-error {
    margin-top: 16px;
    font-size: 13px;
    color: var(--bronze);
}


/* ─── 送出過場 ─────────────────────────────── */
.nmq02-loading {
    padding: 140px 0;
    text-align: center;
}
.nmq02-moon {
    width: 44px; height: 44px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--plum);
    opacity: .5;
    animation: nmq02-breathe 2.6s ease-in-out infinite;
}
@keyframes nmq02-breathe {
    0%, 100% { transform: scale(1);    opacity: .35; }
    50%      { transform: scale(1.12); opacity: .7; }
}
.nmq02-loading p {
    font-family: var(--ff-m);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mist);
}


/* ═══════════════════════════════════════════════
   結果頁
   ═══════════════════════════════════════════════ */
.nmq02-result { padding: 70px 0 100px; }

.nmq02-result-head { margin-bottom: 56px; }

.nmq02-result-title {
    font-family: var(--ff-d);
    font-weight: 200;
    font-size: clamp(28px, 4.6vw, 46px);
    line-height: 1.18;
    letter-spacing: -.02em;
    margin: 0 0 18px;
    color: var(--twilight);
}
.lang-en .nmq02-result-title { font-style: italic; }

.nmq02-retake {
    font-size: 13.5px;
    color: var(--bronze);
    margin: 0 0 24px;
}

.nmq02-opening-result p { font-size: 14px; }


/* ─── 角色卡 ───────────────────────────────── */
.nmq02-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 56px;
}

.nmq02-card {
    border: 1px solid var(--linen);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    background: var(--bone);
    transition: box-shadow var(--t-hover, 600ms) var(--ease-moon, cubic-bezier(.22,1,.36,1));
}

/*
   三張卡的視覺層級要一眼分得出來，不能只靠標題文字：
     主要 → 最亮、有光暈、邊框最實
     次要 → 中等
     缺席 → 明顯退到後面（這是「你現在很少用的」，不該跟活躍的一樣搶眼）
*/
.nmq02-card-primary {
    border-color: var(--plum);
    box-shadow:
        inset 0 0 0 1px rgba(138,122,170, calc(.20 * var(--glow-strength, .6))),
        0 0 60px rgba(138,122,170, calc(.24 * var(--glow-strength, .6)));
}
.nmq02-card-primary:hover {
    box-shadow:
        inset 0 0 0 1px rgba(138,122,170, calc(.30 * var(--glow-strength, .6))),
        0 0 84px rgba(138,122,170, calc(.34 * var(--glow-strength, .6)));
}

.nmq02-card-secondary {
    border-color: var(--linen-2);
    box-shadow:
        inset 0 0 0 1px rgba(168,181,201, calc(.08 * var(--glow-strength, .6))),
        0 0 34px rgba(168,181,201, calc(.12 * var(--glow-strength, .6)));
}

.nmq02-card-absent {
    border-style: dashed;
    border-color: var(--linen);
    background: transparent;
    box-shadow: none;
    opacity: .74;
}
.nmq02-card-absent:hover { opacity: .92; }
.nmq02-card-absent .nmq02-card-name { font-size: clamp(22px, 3vw, 29px); }

/* v0.2.8：卡片左側的家族色標記線已移除。
   三色系統仍然存在（.nmq02-fam-ego / -soul / -self 這幾個 class
   還掛在卡片上），需要的話可以改成用別的方式表現，
   例如標題的顏色或角落的小點，不一定要靠一條直線。 */

.nmq02-card-name {
    font-family: var(--ff-d);
    font-weight: 300;
    font-size: clamp(26px, 3.6vw, 36px);
    line-height: 1.2;
    margin: 0 0 6px;
    color: var(--twilight);
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.nmq02-card-alt {
    font-family: var(--ff-d);
    font-style: italic;
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 300;
    color: var(--mist);
    letter-spacing: 0;
    text-transform: none;
}

.nmq02-card-meta {
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mist-soft);
    margin: 0 0 4px;
}

/*
   角色圖四周有一圈透明留白（光暈用），所以圖框看起來會比實際畫面大一圈。
   用負的上下外距把它往標題與金句「疊」進去，視覺距離才會正常——
   用 0 反而還是空一大塊。
*/
.nmq02-card-visual {
    margin: -26px 0 -30px;
    aspect-ratio: 1 / 1;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.nmq02-card-visual img,
.nmq02-card-visual video { width: 100%; height: 100%; object-fit: contain; }
.nmq02-card-visual iframe { width: 100%; height: 100%; border: none; }

.nmq02-audio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid var(--linen-2);
    color: var(--mist);
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 8px 16px;
    margin-bottom: 22px;
    cursor: pointer;
    transition: all .25s ease;
}
.nmq02-audio:hover { border-color: var(--plum); color: var(--plum); }
.nmq02-audio-icon {
    width: 0; height: 0;
    border-left: 7px solid currentColor;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}
.nmq02-audio.is-playing .nmq02-audio-icon {
    width: 8px; height: 9px;
    border: none;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.nmq02-quote {
    font-family: var(--ff-d);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(18px, 2.6vw, 23px);
    line-height: 1.5;
    color: var(--bronze);
    margin: 0 0 20px;
    padding: 0;
    border: none;
}

.nmq02-body-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--twilight-2);
    margin: 0 0 18px;
}

.nmq02-tags {
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--plum);
    margin: 0;
}

.nmq02-projection-merged {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--linen);
    font-size: 14px;
    line-height: 1.85;
    color: var(--mist);
    font-style: italic;
}

.nmq02-save-card {
    position: absolute;
    top: 28px; right: 28px;
    background: none;
    border: none;
    padding: 6px 0;
    font-family: var(--ff-m);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mist-soft);
    border-bottom: 1px solid var(--linen-2);
    cursor: pointer;
    transition: all .2s;
}
.nmq02-save-card:hover { color: var(--plum); border-bottom-color: var(--plum); }


/* ─── 人生課題 ─────────────────────────────── */
.nmq02-themes {
    border-top: 1px solid var(--linen);
    padding-top: 40px;
    margin-bottom: 48px;
}
.nmq02-theme { margin-bottom: 30px; }
.nmq02-theme:last-child { margin-bottom: 0; }

.nmq02-theme-label {
    font-family: var(--ff-d);
    font-weight: 300;
    font-size: 21px;
    margin: 0 0 10px;
    color: var(--twilight);
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.nmq02-theme-state {
    font-family: var(--ff-m);
    font-size: 9.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 3px 9px;
    border: 1px solid var(--linen-2);
    color: var(--mist-soft);
}
.nmq02-theme-high .nmq02-theme-state {
    border-color: var(--plum);
    color: var(--plum);
}
.nmq02-theme p {
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--twilight-2);
    margin: 0;
}


/* ─── 投射模組 ─────────────────────────────── */
.nmq02-projection {
    border-top: 1px solid var(--linen);
    padding-top: 40px;
    margin-bottom: 48px;
}
.nmq02-projection-line {
    font-family: var(--ff-d);
    font-style: italic;
    font-size: 16px;
    line-height: 1.85;
    color: var(--twilight-2);
    margin: 0 0 14px;
}


/* ─── 分享 / 寄信 ──────────────────────────── */
.nmq02-share {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.nmq02-emailed {
    font-size: 13px;
    color: var(--mist-soft);
    margin: 0 0 56px;
}


/* ─── CTA ──────────────────────────────────── */
.nmq02-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1px solid var(--linen);
    padding-top: 44px;
}

.nmq02-cta-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 24px;
    border: 1px solid var(--linen-2);
    border-radius: 14px;
    text-decoration: none;
    color: var(--twilight);
    transition: all .25s ease;
}
.nmq02-cta-box:hover {
    border-color: var(--plum);
    transform: translateY(-2px);
}
.nmq02-cta-primary { background: rgba(138,122,170,.08); }

.nmq02-cta-title {
    font-family: var(--ff-m);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--twilight);
}
.nmq02-cta-sub {
    font-size: 13px;
    line-height: 1.7;
    color: var(--mist);
}


/* ─── 分享圖預覽彈窗 ───────────────────────── */
.nmq02-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}
.nmq02-modal-inner {
    max-width: 380px;
    width: 100%;
    text-align: center;
}
.nmq02-modal img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(255,255,255,.12);
    margin-bottom: 16px;
}
.nmq02-modal-hint {
    font-family: var(--ff-m);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin: 0 0 16px;
}
.nmq02-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nmq02-modal-actions .nmq02-btn { color: #fff; border-color: rgba(255,255,255,.3); }
.nmq02-modal-actions .nmq02-btn-primary { border-color: var(--plum); }

.nmq02-notfound {
    padding: 120px 0;
    text-align: center;
    color: var(--mist);
}


/* ─── 手機 ─────────────────────────────────── */
@media (max-width: 880px) {
    .nmq02 { padding: 0 20px; }
    .nmq02-intro { padding: 56px 0 72px; }
    .nmq02-card { padding: 26px 22px; }
    .nmq02-save-card {
        position: static;
        display: block;
        margin-top: 22px;
    }
    .nmq02-cta { grid-template-columns: 1fr; }
    .nmq02-nav { flex-direction: row; }
    .nmq02-nav .nmq02-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .nmq02-moon { animation: none; }
    .nmq02-progress-bar span { transition: none; }
}


/* ═══════════════════════════════════════════════
   疊卡：主要 + 次要
   ───────────────────────────────────────────────
   桌機：直接並列兩張，不做疊卡——空間夠，多一次點擊沒有意義。
   手機：疊在一起，露出下一張的一角，左右滑動切換。
   ═══════════════════════════════════════════════ */

.nmq02-stack { margin-bottom: 24px; }
.nmq02-stack-nav { display: none; }
.nmq02-stack-hint { display: none; }

.nmq02-stack-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nmq02-cards-absent { margin-bottom: 56px; }


@media (max-width: 880px) {

    .nmq02-stack.has-secondary { position: relative; }

    /* 分頁標籤 */
    .nmq02-stack.has-secondary .nmq02-stack-nav {
        display: flex;
        gap: 6px;
        margin-bottom: 14px;
    }
    .nmq02-stack-tab {
        flex: 1;
        background: none;
        border: 1px solid var(--linen);
        border-bottom-width: 2px;
        border-bottom-color: transparent;
        color: var(--mist-soft);
        font-family: var(--ff-m);
        font-size: 10px;
        letter-spacing: .12em;
        text-transform: uppercase;
        padding: 9px 6px;
        cursor: pointer;
        transition: all .25s ease;
    }
    .nmq02-stack-tab.is-active {
        color: var(--plum);
        border-color: var(--linen-2);
        border-bottom-color: var(--plum);
    }

    /* 橫向滑動軌道 */
    .nmq02-stack.has-secondary .nmq02-stack-track {
        flex-direction: row;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* 右邊留白 = 露出下一張的一角，讓人知道還有東西 */
        padding-right: 34px;
        margin-right: -20px;
    }
    .nmq02-stack.has-secondary .nmq02-stack-track::-webkit-scrollbar { display: none; }

    .nmq02-stack.has-secondary .nmq02-card.is-stackable {
        flex: 0 0 100%;
        scroll-snap-align: start;
        margin-right: 12px;
    }
    .nmq02-stack.has-secondary .nmq02-card.is-stackable:last-child { margin-right: 0; }

    /* 沒被選到的那張稍微退後，強化「疊在後面」的感覺 */
    .nmq02-stack.has-secondary .nmq02-card-secondary {
        transform: scale(.985);
        transition: transform .3s var(--ease-moon, cubic-bezier(.22,1,.36,1));
    }
    .nmq02-stack.has-secondary.on-secondary .nmq02-card-secondary { transform: scale(1); }
    .nmq02-stack.has-secondary.on-secondary .nmq02-card-primary   { transform: scale(.985); }

    .nmq02-stack.has-secondary .nmq02-stack-hint {
        display: block;
        margin: 12px 0 0;
        font-family: var(--ff-m);
        font-size: 10px;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--mist-soft);
        text-align: center;
        transition: opacity .4s;
    }
    .nmq02-stack.has-secondary.has-moved .nmq02-stack-hint { opacity: 0; }
}


/* ═══════════════════════════════════════════════
   目前的人生狀態
   ═══════════════════════════════════════════════ */
.nmq02-theme-text {
    font-family: var(--ff-d);
    font-weight: 300;
    font-size: clamp(17px, 2.4vw, 21px);
    line-height: 1.85;
    color: var(--twilight);
    margin: 0;
}
.lang-en .nmq02-theme-text { font-style: italic; }


/* ═══════════════════════════════════════════════
   投射模組 — 跟人生狀態明顯區隔
   用一整塊帶底色的區域，跟其他章節的「線＋文字」不一樣
   ═══════════════════════════════════════════════ */
.nmq02-projection {
    border-top: none;
    padding-top: 0;
    margin-bottom: 48px;
}
.nmq02-projection-inner {
    background: linear-gradient(160deg,
        rgba(138,122,170, .10),
        rgba(138,122,170, .03));
    padding: 30px 28px;
}
.nmq02-projection-intro {
    font-size: 14px;
    line-height: 1.85;
    color: var(--mist);
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(168,181,201,.14);
}


/* ═══════════════════════════════════════════════
   分享
   ═══════════════════════════════════════════════ */
.nmq02-share {
    border-top: 1px solid var(--linen);
    padding-top: 36px;
    margin-bottom: 22px;
}
/*
   分享列。IG 那顆在 DOM 上是獨立元素（不在 .nmq02-share-social 裡），
   所以要另外對齊——不然桌機上它的高度會跟其他四顆對不齊。
*/
.nmq02-share-social {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    vertical-align: top;
}
.nmq02-share-social + .nmq02-social-instagram {
    margin-left: 8px;
    vertical-align: top;
}
.nmq02-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    /* 高度寫死，確保 <a> 與 <button> 在桌機上完全等高
       （button 有瀏覽器預設的 line-height，不統一會差一兩px） */
    height: 38px;
    line-height: 1;
    box-sizing: border-box;
    border: 1px solid var(--linen-2);
    background: transparent;
    color: var(--mist);
    font-family: var(--ff-m);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
}
.nmq02-social:hover {
    border-color: var(--plum);
    color: var(--plum);
    transform: translateY(-1px);
}
.nmq02-social svg { flex: none; }

.nmq02-share-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 原生分享按鈕（只在手機顯示，由 JS 解除 hidden） */
.nmq02-social-native {
    border-color: var(--plum);
    color: var(--plum);
}
.nmq02-social-native span { display: inline !important; }

@media (max-width: 880px) {
    .nmq02-social span { display: none; }
    /* 手機上只剩「分享」跟「存圖發限動」兩顆，可以放文字 */
    .nmq02-social-native,
    .nmq02-social-instagram {
        width: 100%;
        margin-left: 0;
        margin-bottom: 8px;
        padding: 13px;
        height: 46px;
    }
    .nmq02-share-social { display: flex; width: 100%; }
    .nmq02-social-instagram span { display: inline !important; }
    .nmq02-social {
        padding: 12px;
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    .nmq02-social svg { width: 18px; height: 18px; }
    .nmq02-share-tools .nmq02-btn { flex: 1; }
}


/* ─── 測驗首頁的開場圖（選填）────────────────
   放在標題與說明文字之間。後台沒上傳就整塊不輸出，
   所以這裡不需要處理「沒有圖」的情況。 */
.nmq02-intro-image {
    margin: 26px auto 30px;
    max-width: 420px;
}
.nmq02-intro-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}
@media (max-width: 600px) {
    .nmq02-intro-image { margin: 20px auto 24px; max-width: 100%; }
}


/* 開場媒體（影片與嵌入） */
.nmq02-intro-image video { display: block; width: 100%; border-radius: inherit; }
.nmq02-intro-embed { position: relative; aspect-ratio: 16 / 9; }
.nmq02-intro-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* 開場媒體比例（影片/嵌入外框；圖片不受影響） */
.nmq02-intro-image.nmq02-ratio-1-1  .nmq02-intro-embed,
.nmq02-intro-image.nmq02-ratio-1-1  video { aspect-ratio: 1 / 1;  max-width: 420px; margin: 0 auto; }
.nmq02-intro-image.nmq02-ratio-9-16 .nmq02-intro-embed,
.nmq02-intro-image.nmq02-ratio-9-16 video { aspect-ratio: 9 / 16; max-width: 320px; margin: 0 auto; }
.nmq02-intro-image video { object-fit: cover; }


/* v0.2.16：草稿還原提示 */
.nmq02-resume-note { font-family: var(--ff-m, monospace); font-size: 11px; letter-spacing: .14em; color: var(--plum-hi, #9C8CBC); text-align: center; margin: 0 0 18px; }
