#setup-screen {
  position: fixed;
  inset: 0;
  z-index: 8888888;
  background: #1a4b9c;
  font-family: Tahoma, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#setup-header {
  background: linear-gradient(180deg, #2060c0 0%, #0e3a8a 100%);
  border-bottom: 3px solid #f5a623;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

#setup-header-left h1 {
  color: white;
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,.5);
}

#setup-header-left p {
  color: rgba(255,255,255,.65);
  font-size: 11px;
  margin: 0;
}

#setup-header-right img {
  width: 48px; height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.4));
}

#setup-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ── Sidebar ── */
#setup-sidebar {
  width: 200px;
  background: rgba(0,0,0,.25);
  border-right: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.setup-step {
  padding: 10px 20px;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s;
}

.setup-step.active {
  color: white;
  background: rgba(255,255,255,.12);
  border-left-color: #f5a623;
  font-weight: bold;
}

.setup-step.done { color: rgba(255,255,255,.6); }

.setup-step .step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.setup-step.done  .step-num { background: #3a9e3a; }
.setup-step.active .step-num { background: #f5a623; color: #000; }

/* ── Contenido ── */
#setup-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 36px 48px;
  overflow-y: auto;
  gap: 20px;
}

.setup-panel {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: setup-fadein .3s ease;
}

.setup-panel.visible { display: flex; }

@keyframes setup-fadein {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.setup-panel h2 {
  color: white;
  font-size: 22px;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,.4);
}

.setup-panel p {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

.setup-panel .highlight { color: #f5c842; font-weight: bold; }

/* ── Inputs ── */
.setup-field { display: flex; flex-direction: column; gap: 6px; }

.setup-field label {
  color: rgba(255,255,255,.7);
  font-size: 11px;
  letter-spacing: .5px;
}

.setup-field input[type="text"] {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px;
  background: rgba(255,255,255,.1);
  color: white;
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  outline: none;
  max-width: 320px;
  transition: border .15s, background .15s;
}

.setup-field input[type="text"]:focus {
  border-color: #f5a623;
  background: rgba(255,255,255,.15);
}

.setup-field input[type="text"]::placeholder { color: rgba(255,255,255,.3); }

/* ── Opciones radio ── */
.setup-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}

.setup-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 4px;
  background: rgba(255,255,255,.07);
  cursor: pointer;
  color: white;
  font-size: 13px;
  user-select: none;
  transition: border .15s, background .15s;
  position: relative;
}

.setup-option:hover {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.12);
}

.setup-option.selected {
  border-color: #f5a623;
  background: rgba(245,166,35,.15);
}

.setup-option .opt-icon { font-size: 22px; flex-shrink: 0; }

.setup-option .opt-label { display: flex; flex-direction: column; gap: 2px; }
.setup-option .opt-label strong { font-size: 13px; }
.setup-option .opt-label span   { font-size: 10px; color: rgba(255,255,255,.5); }

/* Badge dificultad dentro de la opción */
.opt-dif-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.15);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Radio bullet */
.setup-option::after {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  flex-shrink: 0;
  transition: border .15s, background .15s;
}

.setup-option.selected::after {
  border-color: #f5a623;
  background: #f5a623;
}

/* Info de dificultad por género debajo de las opciones */
#genero-dif-info {
  margin-top: 4px;
  padding: 10px 14px;
  background: rgba(0,0,0,.2);
  border-radius: 4px;
  border-left: 3px solid #f5a623;
  font-size: 12px;
  color: rgba(255,255,255,.75);
  display: none;
}

#genero-dif-info.visible { display: block; }

#genero-dif-badge {
  font-size: 13px;
  font-weight: bold;
  display: none;
}

/* ── Error ── */
.setup-error {
  color: #ff8080;
  font-size: 11px;
  display: none;
}

.setup-error.visible { display: block; }

/* ── Footer ── */
#setup-footer {
  background: rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 14px 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.setup-btn {
  padding: 8px 24px;
  border-radius: 3px;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .15s, transform .1s;
}

.setup-btn:active { transform: scale(.97); }

.setup-btn-next {
  background: linear-gradient(180deg, #f5c842 0%, #e8950a 100%);
  color: #2a1800;
  border-color: #c07800;
}

.setup-btn-next:hover { opacity: .9; }

.setup-btn-skip {
  background: transparent;
  color: rgba(255,255,255,.5);
  border-color: rgba(255,255,255,.2);
  font-weight: normal;
}

.setup-btn-skip:hover {
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.4);
}

/* ── Pantalla final ── */
#setup-finish {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  color: white;
  text-align: center;
  padding: 40px;
}

#setup-finish .finish-avatar {
  font-size: 72px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}

#setup-finish h2 {
  font-size: 26px;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,.5);
}

#setup-finish p {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  margin: 0;
  max-width: 400px;
  line-height: 1.6;
}

#setup-finish .setup-btn-next {
  margin-top: 10px;
  padding: 12px 36px;
  font-size: 15px;
}

/* ── Animación salida ── */
#setup-screen.setup-exit {
  animation: setup-fade-out .5s ease forwards;
}

@keyframes setup-fade-out {
  0%   { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}