.character-wizard-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

.cs-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cs-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--foreground);
}

.cs-subtitle {
  margin: 0.5rem 0 0 0;
  color: var(--steel);
  font-size: 0.95rem;
}

.cs-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cs-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.cs-control-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--steel);
}

.cs-select {
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  color: var(--foreground);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}

.cs-select:focus {
  outline: none;
  border-color: var(--arcane);
}

.character-wizard-root {
  display: flex;
  justify-content: center;
}

/* Uses canonical card style */
.character-wizard {
  max-width: 500px;
  margin: 0 auto;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(circle at top left, rgba(80,140,255,0.16), rgba(5,6,10,0.98));
  box-shadow: 0 8px 20px rgba(0,0,0,0.55);
}
[data-theme="light"] .character-wizard {
  background: radial-gradient(circle at top left, rgba(80,140,255,0.08), rgba(255,255,255,0.98));
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wizard-progress-bar {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--arcane), var(--teal));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.wizard-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.wizard-step-indicator {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--steel);
  background: var(--color-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin-bottom: 0.5rem;
}

.wizard-step-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--arcane);
}

.wizard-content {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wizard-welcome {
  text-align: center;
  padding: 1rem 0;
}

.wizard-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.wizard-welcome h4 {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-display);
  color: var(--foreground);
}

.wizard-welcome p {
  margin: 0 0 0.5rem 0;
  color: var(--steel);
}

.wizard-hint {
  font-size: 0.875rem;
  color: var(--steel);
  font-style: italic;
}

.wizard-input-group {
  margin-bottom: 1rem;
}

.wizard-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.wizard-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-bg);
  color: var(--foreground);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.wizard-input:focus {
  outline: none;
  border-color: var(--arcane);
}

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wizard-option {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-bg);
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-option:hover {
  border-color: var(--steel);
}

.wizard-option.selected {
  border-color: var(--arcane);
  background: rgba(139, 92, 246, 0.1);
}

.wizard-option input[type="radio"] {
  display: none;
}

.option-label {
  font-weight: 500;
  color: var(--foreground);
}

.option-desc {
  font-size: 0.75rem;
  color: var(--steel);
  margin-top: 0.25rem;
}

.wizard-stats-roll {
  text-align: center;
  padding: 1rem 0;
}

.wizard-stats-roll h4 {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-display);
}

.wizard-stats-roll p {
  margin: 0 0 0.5rem 0;
  color: var(--steel);
}

.wizard-stats-display {
  text-align: center;
}

.wizard-stats-display h4 {
  margin: 0 0 1rem 0;
  font-family: var(--font-display);
}

.wizard-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.wizard-stat-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.stat-name {
  font-size: 0.75rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--arcane);
  font-family: var(--font-display);
}

.wizard-summary {
  text-align: center;
}

.wizard-summary h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--arcane);
}

.summary-system {
  color: var(--steel);
  margin: 0.25rem 0 1rem 0;
}

.summary-answers {
  text-align: left;
  background: var(--color-bg);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--steel);
}

.summary-value {
  color: var(--foreground);
  font-weight: 500;
}

.summary-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.summary-stat {
  padding: 0.25rem 0.5rem;
  background: rgba(139, 92, 246, 0.1);
  color: var(--arcane);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.wizard-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.wizard-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.wizard-btn-primary {
  background: linear-gradient(135deg, var(--arcane), var(--teal));
  color: white;
}

.wizard-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.wizard-btn-secondary {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--foreground);
}

.wizard-btn-secondary:hover {
  border-color: var(--steel);
}

.wizard-btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.wizard-complete {
  text-align: center;
  padding: 1rem 0;
}

.wizard-complete h4 {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-display);
  color: var(--arcane);
}

@media (max-width: 480px) {
  .character-wizard {
    padding: 1rem;
    border-radius: 0.75rem;
  }
  
  .wizard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wizard-navigation {
    flex-direction: column;
  }
  
  .wizard-btn {
    width: 100%;
  }
}
