/* ─── Finance Domain Custom Mechanics CSS ─── */

.fin-mech {
  padding: var(--space-sm) 0;
}

.fin-scene {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  overflow: hidden;
  margin-bottom: var(--space-md);
  touch-action: none;
}

/* ─── Label Chips Row ─── */
.fin-chips {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: var(--space-sm) 0;
}

.fin-chip {
  flex: 1;
  text-align: center;
  padding: 8px 2px;
  border-radius: var(--radius-pill);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.fin-chip.active {
  background: #C2185B;
  color: white;
  border-color: #C2185B;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(194, 24, 91, 0.25);
}

/* ─── Instruction Text ─── */
.fin-instruction {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #C2185B;
  padding: var(--space-sm) var(--space-md);
  background: rgba(194, 24, 91, 0.06);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

/* ─── Hint Text ─── */
.fin-hint {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--space-sm) 0;
  animation: finPulse 2s ease-in-out infinite;
}

@keyframes finPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ─── Check Mark ─── */
.fin-check {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #C2185B;
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(194, 24, 91, 0.3);
  pointer-events: none;
}

/* ─── Shared Slider ─── */
.fin-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #EF5350, #FFA726, #26A69A);
  outline: none;
  margin: var(--space-md) 0;
}

.fin-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  cursor: grab;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 3px solid #C2185B;
}

.fin-slider:active::-webkit-slider-thumb {
  transform: scale(1.1);
  cursor: grabbing;
}

/* ─── Safety Net (Q1) ─── */
.fin-safety-net .fin-drag-handle {
  cursor: grab;
}

.fin-safety-net svg {
  touch-action: none;
}

/* ─── Vault Dial (Q2) ─── */
.fin-vault-scene {
  background: linear-gradient(180deg, #ECEFF1, #CFD8DC);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fin-vault-scene svg {
  touch-action: none;
}

/* ─── Shopping Trolley (Q3) ─── */
.trolley-scene {
  background: #FAFAFA !important;
}

.trolley-scene svg {
  user-select: none;
  -webkit-user-select: none;
}

/* ─── Balance Scale (Q4) ─── */
.fin-balance svg {
  overflow: visible;
}

/* ─── Illustration Area (Q5, Q6, Q9, Q10) ─── */
.fin-illu-area {
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
}

/* ─── Gift Box (Q7) ─── */
.fin-gift .fin-scene {
  background: linear-gradient(180deg, #FAFAFA, #F0F0F0);
}

/* ─── Jar (Q8) ─── */
.fin-jar .fin-scene {
  background: transparent;
}

@keyframes finWave {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(3px) scaleY(1.5); }
}

.fin-jar .fin-scene div:first-child div:first-child div {
  animation: finWave 2.5s ease-in-out infinite;
}
