/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  width: 100%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:active {
  transform: scale(0.97);
  background: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-ghost:active {
  background: var(--bg-subtle);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.8125rem;
}

.btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.card:active {
  transform: scale(0.98);
}

.card.selected {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
}

/* Selector cards (route selector) */
.selector-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.selector-card:active {
  transform: scale(0.97);
}

.selector-card.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
}

.selector-card .card-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border-radius: 50%;
}

.selector-card.selected .card-emoji {
  background: var(--accent-glow);
}

.selector-card .card-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Option cards (question answers) */
.option-card {
  display: flex;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.option-card:active {
  transform: scale(0.97);
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ─── Chip scale (tap-to-rate) ─── */
.chip-scale {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.chip-scale .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-sm);
}

.chip-scale .chip:active {
  transform: scale(0.93);
}

.chip-scale .chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* ─── Slider ─── */
.slider-container {
  width: 100%;
  padding: var(--space-lg) 0;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.slider-track {
  position: relative;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
}

.slider-track input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  outline: none;
  transition: background 0.2s ease;
}

.slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: transform 0.15s var(--ease);
}

.slider-track input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

.slider-value {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: var(--space-sm);
}

/* ─── Emoji scale ─── */
.emoji-scale {
  display: flex;
  justify-content: space-around;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
}

.emoji-scale .emoji-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.emoji-scale .emoji-option .emoji-icon {
  font-size: 2rem;
  transition: transform 0.2s var(--ease);
}

.emoji-scale .emoji-option .emoji-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.emoji-scale .emoji-option.selected {
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
}

.emoji-scale .emoji-option.selected .emoji-icon {
  transform: scale(1.3);
}

.emoji-scale .emoji-option.selected .emoji-label {
  color: var(--accent);
  font-weight: 700;
}

/* ─── Inputs ─── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group input {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px var(--space-md);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.input-group input::placeholder {
  color: var(--text-light);
}

.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ─── Score gauge ─── */
.score-gauge {
  position: relative;
  width: 120px;
  height: 120px;
}

.score-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-gauge .gauge-bg {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 8;
}

.score-gauge .gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s var(--ease);
}

.score-gauge .gauge-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-gauge .gauge-score {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-dark);
}

.score-gauge .gauge-max {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Result card ─── */
.result-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.result-card .result-band {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  color: #FFFFFF;
}

.result-card .result-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Question header ─── */
.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.question-kli {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.question-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.question-text {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: var(--space-xl);
}

.question-helper {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: calc(-1 * var(--space-md));
  margin-bottom: var(--space-lg);
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ─── Section transition ─── */
.section-transition {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-lg);
  flex: 1;
}

.section-transition .section-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.section-transition .section-progress-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ─── Instruction text ─── */
.q-instruction {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-bg);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

/* ─── Back button ─── */
.btn-back {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: var(--space-md) 0;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

.btn-back:active {
  color: var(--text-secondary);
}

/* ─── Locked section ─── */
.locked-section {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.locked-content {
  filter: blur(6px);
  pointer-events: none;
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
}

.locked-content h3 {
  color: var(--text-dark);
}

.locked-content p {
  color: var(--text-secondary);
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: rgba(246, 243, 245, 0.7);
  border-radius: var(--radius-lg);
}

.locked-overlay .lock-icon {
  font-size: 1.5rem;
}

.locked-overlay .lock-text {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
}
