/* ===== WIZARD ===== */
.wizard-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto;
}

.wizard-welcome__icon {
  font-size: 48px;
  margin-bottom: var(--space-sm);
}

.wizard-welcome__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.wizard-welcome__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
}

.wizard-welcome__btn {
  margin-top: var(--space-md);
}

/* Question */
.wizard-question {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.wizard-question__progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.wizard-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}

.wizard-progress-bar__fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.wizard-question__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

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

.wizard-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}

.wizard-option:hover {
  background: var(--bg-hover);
  border-color: var(--accent-green);
}

.wizard-option__icon {
  font-size: 22px;
  flex-shrink: 0;
}

.wizard-option__label {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
}

.wizard-back-btn {
  margin-top: var(--space-lg);
  font-size: 13px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs) 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.wizard-back-btn:hover {
  color: var(--text-primary);
}

/* Result */
.wizard-result {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.wizard-result__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.wizard-result__ranking {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.wizard-rank-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.wizard-rank-item__medal {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.wizard-rank-item__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  width: 120px;
  flex-shrink: 0;
}

.wizard-rank-bar {
  flex: 1;
  height: 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.wizard-rank-bar__fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.6s ease;
}

.wizard-rank-item__score {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  width: 40px;
  text-align: right;
}

.wizard-result__explanation {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.wizard-explanation-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.wizard-loading {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

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

.wizard-action-btn {
  width: 100%;
  text-align: center;
}

/* Shared button styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent-green);
  color: #0D0F14;
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-green-dim);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  min-height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  min-height: 44px;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .wizard-rank-item__name {
    width: 80px;
    font-size: 12px;
  }
  .wizard-rank-item__score {
    font-size: 12px;
    width: 32px;
  }
}

@media (max-width: 375px) {
  .wizard-question {
    padding: var(--space-lg) var(--space-md);
  }
  .wizard-question__title {
    font-size: 18px;
  }
  .wizard-result {
    padding: var(--space-lg) var(--space-md);
  }
}
