/* ─── Keyframes ─── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }
@keyframes shimmer { 0% { opacity:0.6; } 50% { opacity:1; } 100% { opacity:0.6; } }
.anim-spin { animation: spin 1s linear infinite; }

/* ─── Illustration ─── */
.q-illustration { font-size: 3.5rem; text-align: center; padding: var(--space-md) 0 var(--space-xs); line-height: 1; }

/* ═══════════════════════════════════════════
   1. SPECTRUM BAR (MH Q1-4)
   ═══════════════════════════════════════════ */
.mech-spectrum { padding: var(--space-md) 0; }
.spectrum-bar { width: 100%; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #4CAF82, #8BC34A, #FFC107, #F44336); margin-bottom: var(--space-lg); position: relative; }
.spectrum-fill { height: 100%; border-radius: 5px; width: 0; transition: width 0.3s var(--ease); position: absolute; top: 0; left: 0; }
.spectrum-markers { display: flex; justify-content: space-between; }
.spectrum-mark { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; padding: 8px 4px; border-radius: var(--radius-sm); transition: all 0.2s var(--ease); flex: 1; -webkit-tap-highlight-color: transparent; }
.spectrum-mark:active { transform: scale(0.93); }
.spectrum-dot { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--bg-card); box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease); }
.spectrum-mark.active .spectrum-dot { transform: scale(1.3); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.spectrum-lbl { font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.spectrum-mark.active .spectrum-lbl { color: var(--text-dark); font-weight: 700; }

/* ═══════════════════════════════════════════
   2. GRID CARDS (MH Q5-8)
   ═══════════════════════════════════════════ */
.mech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); padding: var(--space-sm) 0; }
.grid-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: var(--space-lg) var(--space-md); border-radius: var(--radius-xl); border: 2px solid var(--border); cursor: pointer; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; min-height: 100px; }
.grid-card:active { transform: scale(0.95); }
.grid-card.active { border-color: var(--accent); box-shadow: 0 4px 16px var(--accent-glow); }
.grid-icon { font-size: 2rem; }
.grid-lbl { font-size: 0.8125rem; font-weight: 600; color: var(--text-dark); text-align: center; }

/* ═══════════════════════════════════════════
   3. STACK SELECT (MH Q9-12)
   ═══════════════════════════════════════════ */
.mech-stack { display: flex; flex-direction: column; gap: 6px; }
.stack-bar { display: flex; align-items: center; gap: var(--space-md); padding: 14px var(--space-lg); border-radius: var(--radius-lg); background: var(--bg-card); border: 2px solid var(--border); border-left: 5px solid var(--bar-color); cursor: pointer; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; }
.stack-bar:active { transform: scale(0.97); }
.stack-bar.active { border-color: var(--accent); background: var(--accent-bg); box-shadow: 0 2px 12px var(--accent-glow); }
.stack-icon { font-size: 1.3rem; }
.stack-lbl { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }

/* ═══════════════════════════════════════════
   4. GAUGE DIAL (PH Q1)
   ═══════════════════════════════════════════ */
.mech-gauge { display: flex; justify-content: center; padding: var(--space-lg) 0; }
.gauge-arc { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.gauge-seg { padding: 12px 16px; border-radius: var(--radius-pill); color: white; font-weight: 700; font-size: 0.8125rem; cursor: pointer; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; opacity: 0.7; }
.gauge-seg:active { transform: scale(0.93); }
.gauge-seg.active { opacity: 1; transform: scale(1.1); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.gauge-seg span { font-size: 0.75rem; }

/* ═══════════════════════════════════════════
   5. PILL SELECT (PH Q2-3)
   ═══════════════════════════════════════════ */
.mech-pills { display: flex; flex-direction: column; gap: var(--space-sm); }
.pill-opt { padding: 16px var(--space-lg); border-radius: var(--radius-pill); background: var(--bg-card); border: 2px solid var(--border); font-size: 0.9375rem; font-weight: 600; color: var(--text-dark); text-align: center; cursor: pointer; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; box-shadow: var(--shadow-sm); }
.pill-opt:active { transform: scale(0.97); }
.pill-opt.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 4px 16px var(--accent-glow); }

/* ═══════════════════════════════════════════
   6. TOGGLE SWITCH (PH Q4-5, Q10-11)
   ═══════════════════════════════════════════ */
.mech-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); padding: var(--space-md) 0; }
.toggle-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); padding: var(--space-xl) var(--space-md); border-radius: var(--radius-xl); border: 2px solid var(--border); cursor: pointer; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; min-height: 150px; }
.toggle-card:active { transform: scale(0.95); }
.toggle-card.active { border-color: var(--accent); box-shadow: 0 6px 20px var(--accent-glow); }
.toggle-icon { font-size: 3rem; transition: transform 0.2s var(--ease); }
.toggle-card.active .toggle-icon { transform: scale(1.15); }
.toggle-lbl { font-size: 1.125rem; font-weight: 700; color: var(--text-dark); }

/* ═══════════════════════════════════════════
   7. INTENSITY BUBBLES (PH Q6)
   ═══════════════════════════════════════════ */
.mech-bubbles { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: var(--space-xl) 0; min-height: 140px; }
.bubble { border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; opacity: 0.7; }
.bubble:active { transform: scale(0.9); }
.bubble.active { opacity: 1; box-shadow: 0 4px 16px rgba(0,0,0,0.2); transform: scale(1.1); }
.bubble-lbl { font-size: 0.5625rem; font-weight: 700; color: white; text-align: center; }

/* ═══════════════════════════════════════════
   8. TILE SCROLL (PH Q7)
   ═══════════════════════════════════════════ */
.mech-tiles { display: flex; gap: 6px; overflow-x: auto; padding: var(--space-md) 0; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.tile { flex: 0 0 auto; padding: 14px 18px; border-radius: var(--radius-lg); background: var(--bg-card); border: 2px solid var(--border); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all 0.2s var(--ease); scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
.tile:active { transform: scale(0.95); }
.tile.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ═══════════════════════════════════════════
   9. FREQUENCY BAR (PH Q8, Q12)
   ═══════════════════════════════════════════ */
.mech-freq { padding: var(--space-md) 0; }
.freq-track { display: flex; border-radius: var(--radius-pill); overflow: hidden; border: 2px solid var(--border); }
.freq-seg { flex: 1; padding: 16px 4px; text-align: center; cursor: pointer; transition: all 0.2s var(--ease); background: var(--bg-card); border-right: 1px solid var(--border); -webkit-tap-highlight-color: transparent; }
.freq-seg:last-child { border-right: none; }
.freq-seg:active { background: var(--bg-subtle); }
.freq-seg.active, .freq-seg.filled { background: var(--accent); }
.freq-seg.active .freq-lbl, .freq-seg.filled .freq-lbl { color: white; }
.freq-lbl { font-size: 0.625rem; font-weight: 600; color: var(--text-muted); display: block; }

/* ═══════════════════════════════════════════
   10. CONCENTRIC RINGS (PH Q9)
   ═══════════════════════════════════════════ */
.mech-rings { display: flex; align-items: center; justify-content: center; position: relative; min-height: 200px; padding: var(--space-md) 0; }
.ring { position: absolute; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s var(--ease); background: var(--bg-card); -webkit-tap-highlight-color: transparent; }
.ring:active { transform: scale(0.95); }
.ring.active { border-color: var(--accent); background: var(--accent-bg); box-shadow: 0 0 0 4px var(--accent-glow); }
.ring-lbl { font-size: 0.625rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.ring.active .ring-lbl { color: var(--accent); }

/* ═══════════════════════════════════════════
   11. SCROLL WHEEL (Career Q1-3)
   ═══════════════════════════════════════════ */
.mech-wheel { display: flex; gap: 6px; overflow-x: auto; padding: var(--space-md) 0; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.wheel-item { flex: 0 0 auto; min-width: 100px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--bg-card); border: 2px solid var(--border); font-size: 0.75rem; font-weight: 600; text-align: center; cursor: pointer; transition: all 0.2s var(--ease); scroll-snap-align: center; -webkit-tap-highlight-color: transparent; box-shadow: var(--shadow-sm); }
.wheel-item:active { transform: scale(0.95); }
.wheel-item.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 4px 12px var(--accent-glow); }

/* ═══════════════════════════════════════════
   12. STAR RATE (Career Q4-6)
   ═══════════════════════════════════════════ */
.mech-stars { display: flex; gap: 4px; overflow-x: auto; padding: var(--space-md) 0; justify-content: center; flex-wrap: wrap; }
.star-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; cursor: pointer; transition: all 0.2s var(--ease); border-radius: var(--radius-sm); -webkit-tap-highlight-color: transparent; min-width: 44px; }
.star-item:active { transform: scale(0.9); }
.star-icon { font-size: 1.5rem; opacity: 0.25; transition: all 0.2s var(--ease); }
.star-item.filled .star-icon { opacity: 1; transform: scale(1.2); }
.star-lbl { font-size: 0.5rem; font-weight: 600; color: var(--text-muted); text-align: center; max-width: 50px; line-height: 1.2; }

/* ═══════════════════════════════════════════
   13. THERMOMETER (Career Q7-9)
   ═══════════════════════════════════════════ */
.mech-thermo { display: flex; gap: var(--space-lg); padding: var(--space-md) 0; align-items: stretch; min-height: 220px; }
.thermo-track { width: 32px; border-radius: 16px; background: var(--border-light); position: relative; overflow: hidden; flex-shrink: 0; }
.thermo-fill { position: absolute; bottom: 0; left: 0; width: 100%; height: 0; border-radius: 16px; transition: height 0.4s var(--ease); }
.thermo-marks { display: flex; flex-direction: column-reverse; justify-content: space-between; flex: 1; }
.thermo-mark { padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; }
.thermo-mark:active { background: var(--bg-subtle); }
.thermo-mark.active { background: var(--accent-bg); color: var(--accent); font-weight: 700; }

/* ═══════════════════════════════════════════
   14. HEART FILL (Rel Q1-3)
   ═══════════════════════════════════════════ */
.mech-hearts { text-align: center; padding: var(--space-md) 0; }
.heart-item { display: inline-block; font-size: 2rem; padding: 4px; cursor: pointer; transition: all 0.2s var(--ease); opacity: 0.2; filter: grayscale(1); -webkit-tap-highlight-color: transparent; }
.heart-item:active { transform: scale(0.85); }
.heart-item.filled { opacity: 1; filter: grayscale(0); transform: scale(1.1); }
.hearts-labels { display: flex; justify-content: space-between; margin-top: var(--space-sm); font-size: 0.6875rem; color: var(--text-muted); font-weight: 500; }

/* ═══════════════════════════════════════════
   15. FLIP CARD (Rel Q4)
   ═══════════════════════════════════════════ */
.mech-flip { display: flex; flex-direction: column; gap: var(--space-sm); }
.flip-opt { padding: 16px var(--space-lg); border-radius: var(--radius-lg); background: var(--bg-card); border: 2px solid var(--border); font-size: 0.9375rem; font-weight: 600; text-align: center; cursor: pointer; transition: all 0.3s var(--ease); -webkit-tap-highlight-color: transparent; box-shadow: var(--shadow-sm); }
.flip-opt:active { transform: perspective(400px) rotateY(8deg) scale(0.97); }
.flip-opt.active { background: var(--accent); color: white; border-color: var(--accent); transform: perspective(400px) rotateY(0deg); box-shadow: 0 4px 16px var(--accent-glow); }

/* ═══════════════════════════════════════════
   16. EMOJI SPECTRUM (Rel Q5-7)
   ═══════════════════════════════════════════ */
.mech-emoji-spec { display: flex; justify-content: space-around; padding: var(--space-lg) 0; }
.emoji-spec-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; }
.emoji-spec-item:active { transform: scale(0.9); }
.es-emoji { font-size: 2rem; transition: transform 0.2s var(--ease); }
.emoji-spec-item.active .es-emoji { transform: scale(1.4); }
.emoji-spec-item.active { background: var(--accent-bg); }
.es-lbl { font-size: 0.5625rem; font-weight: 600; color: var(--text-muted); text-align: center; max-width: 60px; }
.emoji-spec-item.active .es-lbl { color: var(--accent); }

/* ═══════════════════════════════════════════
   17. DEPTH LAYERS (Meaning Q1-5)
   ═══════════════════════════════════════════ */
.mech-layers { display: flex; flex-direction: column; gap: 4px; }
.layer { padding: 14px var(--space-lg); border-radius: var(--radius-lg); background: var(--bg-card); border: 2px solid var(--border); font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; text-align: center; color: var(--text-dark); }
.layer:active { transform: scale(0.97); }
.layer.active { opacity: 1 !important; border-color: var(--accent); background: var(--accent-bg); color: var(--accent); box-shadow: 0 2px 12px var(--accent-glow); }

/* ═══════════════════════════════════════════
   18. PATH SELECT (Meaning Q6-10)
   ═══════════════════════════════════════════ */
.mech-path { display: flex; flex-direction: column; gap: 2px; padding: var(--space-sm) 0; position: relative; padding-left: 24px; }
.path-node { display: flex; align-items: center; gap: var(--space-md); padding: 10px var(--space-md); cursor: pointer; transition: all 0.2s var(--ease); border-radius: var(--radius-sm); -webkit-tap-highlight-color: transparent; }
.path-node:active { background: var(--bg-subtle); }
.path-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--border); flex-shrink: 0; transition: all 0.2s var(--ease); box-shadow: var(--shadow-sm); }
.path-node.active .path-dot, .path-node.reached .path-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.path-lbl { font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); }
.path-node.active .path-lbl { color: var(--accent); font-weight: 700; }
.path-node.reached .path-lbl { color: var(--text-dark); }

/* ═══════════════════════════════════════════
   19. CIRCLE EXPAND (Community Q1-3)
   ═══════════════════════════════════════════ */
.mech-circles { display: flex; align-items: center; justify-content: space-around; padding: var(--space-xl) 0; min-height: 120px; }
.exp-circle { border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s var(--ease); background: var(--bg-card); -webkit-tap-highlight-color: transparent; font-size: 0.5625rem; font-weight: 600; color: var(--text-muted); text-align: center; padding: 4px; }
.exp-circle:active { transform: scale(0.9); }
.exp-circle.active { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }

/* ═══════════════════════════════════════════
   20. PEOPLE GATHER (Community Q4-5)
   ═══════════════════════════════════════════ */
.mech-people { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.people-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: var(--space-lg); border-radius: var(--radius-xl); border: 2px solid var(--border); background: var(--bg-card); cursor: pointer; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; }
.people-opt:active { transform: scale(0.95); }
.people-opt.active { border-color: var(--accent); background: var(--accent-bg); box-shadow: 0 4px 16px var(--accent-glow); }
.people-icons { font-size: 1.5rem; }
.people-lbl { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.people-opt.active .people-lbl { color: var(--accent); }

/* ═══════════════════════════════════════════
   21. CONNECTION WEB (Community Q6-8)
   ═══════════════════════════════════════════ */
.mech-web { display: flex; flex-direction: column; gap: var(--space-sm); }
.web-opt { display: flex; align-items: center; gap: var(--space-md); padding: 14px var(--space-lg); border-radius: var(--radius-lg); border: 2px solid var(--border); background: var(--bg-card); cursor: pointer; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; }
.web-opt:active { transform: scale(0.97); }
.web-opt.active { border-color: var(--accent); background: var(--accent-bg); box-shadow: 0 2px 12px var(--accent-glow); }
.web-dots { font-size: 1rem; color: var(--text-muted); letter-spacing: 2px; }
.web-opt.active .web-dots { color: var(--accent); }
.web-lbl { font-size: 0.875rem; font-weight: 600; color: var(--text-dark); }

/* ═══════════════════════════════════════════
   22. VAULT DIAL (Finance Q1-2)
   ═══════════════════════════════════════════ */
.mech-vault { display: flex; justify-content: center; padding: var(--space-lg) 0; }
.vault-dial { position: relative; width: 220px; height: 140px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.vault-notch { padding: 10px 14px; border-radius: var(--radius-pill); background: var(--bg-card); border: 2px solid var(--border); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; }
.vault-notch:active { transform: scale(0.93); }
.vault-notch.active { background: var(--accent); border-color: var(--accent); }
.vault-lbl { color: var(--text-dark); }
.vault-notch.active .vault-lbl { color: white; }
.vault-needle { display: none; }

/* ═══════════════════════════════════════════
   23. DIMMER (Finance Q3,5,6,9,10)
   ═══════════════════════════════════════════ */
.mech-dimmer { padding: var(--space-md) 0; }
.dimmer-track { display: flex; gap: 6px; align-items: flex-end; justify-content: center; min-height: 160px; }
.dimmer-level { width: 52px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--border-light); border: 2px solid var(--border); cursor: pointer; transition: all 0.2s var(--ease); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; -webkit-tap-highlight-color: transparent; }
.dimmer-level:active { transform: scale(0.95); }
.dimmer-level.active { background: var(--accent); border-color: var(--accent); }
.dimmer-lbl { font-size: 0.5rem; font-weight: 700; color: var(--text-muted); writing-mode: vertical-rl; text-orientation: mixed; max-height: 80px; overflow: hidden; }
.dimmer-level.active .dimmer-lbl { color: white; }

/* ═══════════════════════════════════════════
   24. SATISFACTION METER (Finance Q4)
   ═══════════════════════════════════════════ */
.mech-satmeter { padding: var(--space-lg) 0; }
.sat-track { width: 100%; height: 30px; border-radius: 15px; background: linear-gradient(90deg, #F44336, #FFC107, #4CAF82); position: relative; margin-bottom: var(--space-lg); }
.sat-fill { height: 100%; border-radius: 15px; background: rgba(255,255,255,0.3); transition: width 0.3s var(--ease); }
.sat-marks { display: flex; justify-content: space-between; }
.sat-mark { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; padding: 4px; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; }
.sat-mark:active { transform: scale(0.9); }
.sat-dot { font-size: 1.25rem; font-weight: 800; color: var(--text-muted); }
.sat-mark.active .sat-dot { color: var(--accent); transform: scale(1.3); }
.sat-lbl { font-size: 0.5625rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.sat-mark.active .sat-lbl { color: var(--accent); }

/* ═══════════════════════════════════════════
   25. COIN STACK (Finance Q7)
   ═══════════════════════════════════════════ */
.mech-coins { display: flex; flex-direction: column; gap: var(--space-sm); }
.coin-level { display: flex; align-items: center; gap: var(--space-md); padding: 12px var(--space-lg); border-radius: var(--radius-lg); border: 2px solid var(--border); background: var(--bg-card); cursor: pointer; transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; }
.coin-level:active { transform: scale(0.97); }
.coin-level.active { border-color: #D4A843; background: #FDF6E8; box-shadow: 0 2px 12px rgba(212,168,67,0.2); }
.coin-icons { font-size: 1.25rem; letter-spacing: -2px; }
.coin-lbl { font-size: 0.875rem; font-weight: 600; color: var(--text-dark); }

/* ═══════════════════════════════════════════
   26. JAR FILL (Finance Q8)
   ═══════════════════════════════════════════ */
.mech-jar { display: flex; gap: var(--space-lg); align-items: stretch; padding: var(--space-md) 0; min-height: 200px; }
.jar-vessel { width: 80px; border-radius: 8px 8px 20px 20px; border: 3px solid var(--border); position: relative; overflow: hidden; background: var(--bg-card); flex-shrink: 0; }
.jar-liquid { position: absolute; bottom: 0; left: 0; width: 100%; height: 0; background: linear-gradient(180deg, #3BBFA0, #2D9B7E); border-radius: 0 0 17px 17px; transition: height 0.5s var(--ease); }
.jar-levels { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.jar-lvl { padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); transition: all 0.2s var(--ease); -webkit-tap-highlight-color: transparent; }
.jar-lvl:active { background: var(--bg-subtle); }
.jar-lvl.active { background: var(--accent-bg); color: var(--accent); font-weight: 700; }
