/* =========================================================================
   8. NUEVO MENU PRINCIPAL ESTILIZADO, SUBVISTAS Y CUENTA ATRAS 3S
   ========================================================================= */

#menu-scene {
  width: 288px;
  height: 216px;
}

/* Subvistas Un Jugador y Parques sobre el mismo fondo vivo del menu */
#view-singleplayer,
#view-parques {
  flex-direction: column;
  padding: 18px 24px;
  gap: 14px;
  background: transparent;
}

.subview-title {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--gold-hi);
}

/* Vista Inversion Rápida: 5 Parqués */

/* Cuenta atrás 3..2..1..YA! */
.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(11, 16, 33, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-box {
  background: var(--shell-gold);
  border: 5px solid var(--ink);
  box-shadow: inset 4px 4px 0 var(--shell-hi), 8px 8px 0 var(--ink);
  padding: 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.countdown-sub {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--ink);
}

.countdown-num {
  font-family: var(--font-pixel);
  font-size: 48px;
  color: var(--red);
  text-shadow: 4px 4px 0 var(--ink);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Estudio Visual de Avatar Mii (7 pestanas + miniaturas pixel art) */
.modal-avatar-wide {
  max-width: 960px;
}

.avatar-studio-grid {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.avatar-top-actions {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 6px;
  width: 100%;
}

.avatar-top-actions .px-btn {
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  padding: 6px 4px;
}

.avatar-stage {
  position: relative;
  width: 176px;
  height: 198px;
  background: #ffffff;
  border: 4px solid #1a1026;
  box-shadow: 4px 4px 0 #1a1026;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-stage::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 8px;
  background: rgba(15, 13, 26, 0.16);
}

#avatar-preview-canvas {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 170px;
  image-rendering: pixelated;
}

.avatar-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.avatar-editor-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.avatar-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.av-tab-btn {
  font-family: 'Silkscreen', monospace;
  padding: 7px 10px;
  font-size: 10px;
  letter-spacing: 0;
}

.avatar-tab-content {
  background: var(--cream-hi);
  border: 3px solid var(--ink);
  padding: 14px;
  max-height: 365px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.av-sec-title {
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 8px;
}

.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.opt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 5px;
  background: var(--cream);
  border: 2px solid var(--ink);
  cursor: pointer;
}
.opt-card span {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
}
.opt-card:hover {
  background: #ffffff;
}
.opt-card.active {
  background: #dff4ff;
  border-color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
}
.opt-card canvas {
  width: 48px;
  height: 68px;
  background: #ffffff;
  border: 2px solid var(--ink);
  image-rendering: pixelated;
}
.opt-card span {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
  line-height: 1;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-swatch {
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  cursor: pointer;
}
.color-swatch.active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--blue);
}

.av-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.av-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  background: var(--cream);
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--ink);
  cursor: pointer;
}
.av-toggle-pill.active {
  background: #dff4ff;
  border-color: var(--blue);
}

@media (max-width: 850px) {
  .avatar-studio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  
}

.contract-card {
  background: var(--cream-hi);
  border: 3px solid var(--ink);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contract-card.done {
  background: #e2fbe8;
  border-color: var(--green-lo);
}

/* =========================================================================
   CLASES DE INVERSOR, BUILD DE 4 HUECOS, AGENCIA Y PARTE DE NOMINA
   ========================================================================= */

/* Barra TU EQUIPO (4 Huecos) en Inversion Rapida */

.synergy-pill {
  font-family: var(--font-pixel);
  font-size: 6.5px;
  padding: 2px 6px;
  border: 2px solid var(--ink);
  color: #ffffff;
  background: #252e42;
}

/* HUD Sinergias y Clase en Partida */
.hud-synergy-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-height: 18px;
}

/* Selector de Clases en Editor de Avatar */

/* Modal Agencia de Talento (Pool de 12 perfiles) */

/* Modal Agencia / Contratos y Parte de Nomina */

.payroll-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff9e2;
  border: 3px solid var(--ink);
  margin-bottom: 10px;
}

.payroll-card canvas {
  width: 48px;
  height: 68px;
  image-rendering: pixelated;
  background: #e7eaff;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

.payroll-text-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.payroll-headline {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--ink);
  line-height: 1.35;
}

.payroll-sub {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--blue-lo);
}

/* =========================================================================
   REWORK VISUAL LIMPIO (144x98 PIXEL ART + TEMAS + GUI SIMPLIFICADA)
   ========================================================================= */

#menu-scene {
  width: 100%;
  height: auto;
  aspect-ratio: 144 / 98;
  display: block;
  image-rendering: pixelated;
}

body[data-style="warm16"] .console-shell {
  background: #3d344f;
}

body[data-style="night"] .console-shell {
  background: #161e33;
}

/* =========================================================================
   MENU INICIAL: ESCENA COMPLETA DEL CUARTO 192x120 + DOCK MINIMALISTA
   ========================================================================= */
#view-menu {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #121929;
}

/* =========================================================================
   PANTALLA COMPLETA + ESTACION INTERACTIVA DE PANTALLAS DE TRADING
   ========================================================================= */

.term-led {
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}
.term-led.green { background: #2fb85b; box-shadow: 0 0 6px #2fb85b; }
.term-led.blue  { background: #1d8cf8; box-shadow: 0 0 6px #1d8cf8; }
.term-led.gold  { background: #feae34; box-shadow: 0 0 6px #feae34; }
.term-led.cyan  { background: #2ce8f5; box-shadow: 0 0 6px #2ce8f5; }

.share-slot.locked {
  background: #0d111f;
  border-color: #252e42;
  opacity: 0.45;
  position: relative;
}
.share-slot.locked::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: repeating-linear-gradient(
    -45deg,
    #1a2238 0px,
    #1a2238 2px,
    transparent 2px,
    transparent 4px
  );
}

/* =========================================================================
   MENU PRINCIPAL DIVIDIDO ESTILO DS (SIN GLOW · SIN SUPERPOSICION)
   ========================================================================= */
#view-menu.active {
  display: flex;
  flex-direction: column;
  background: #161e33;
  padding: 0;
  overflow: hidden;
}

/* Quitar cualquier glow residual en LEDs */
.term-led {
  box-shadow: none !important;
}

