/* ------------------------------------------------------------
   MIEDO � Pantalla de juego
   ------------------------------------------------------------ */

/* -- Header del juego ---------------------------------------- */
.miedo-game-header {
  height: var(--miedo-header-h);
  background: var(--miedo-bg-2);
  border-bottom: 1px solid var(--miedo-border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  flex-shrink: 0;
  z-index: 100;
  position: relative;
}

.miedo-game-header__left  { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.miedo-game-header__right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.miedo-game-header__modules {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
  padding: 0 8px;
    justify-content: center;
  /* Los m�dulos inyectan sus widgets aqu� */
}

.miedo-world-info         { display: flex; flex-direction: column; }
.miedo-world-info__name   { font-size: 20px; /*font-size: .95rem; */font-weight: 700; line-height: 1.1; }
.miedo-world-info__level  { font-size: .72rem; color: var(--miedo-accent); letter-spacing: .06em; font-weight: 600; text-transform: uppercase; }

.miedo-player-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--miedo-bg-3);
  border: 2px solid var(--miedo-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.miedo-player-avatar svg { width: 20px; height: 20px; color: var(--miedo-text-muted); }

/* -- Cuerpo del juego ---------------------------------------- */
.miedo-game-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - var(--miedo-header-h));
}

/* -- Mapa ---------------------------------------------------- */
.miedo-game-map {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #111;
}

.miedo-map-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.miedo-map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--miedo-text-muted);
  font-size: .9rem;
}
.miedo-map-placeholder svg { width: 48px; height: 48px; opacity: .4; }

/* -- Sidebar ------------------------------------------------- */
.miedo-game-sidebar {
  width: var(--miedo-sidebar-w);
  background: var(--miedo-bg-2);
  border-left: 1px solid var(--miedo-border);
  display: flex;
  flex-shrink: 0;
  overflow: hidden;
}

.miedo-sidebar-nav {
  width: var(--miedo-nav-w);
  background: var(--miedo-bg-3);
  border-right: 1px solid var(--miedo-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 4px;
  overflow-y: auto;
}

.miedo-sidebar-nav__btn {
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  border-radius: var(--miedo-radius);
  color: var(--miedo-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--miedo-transition), color var(--miedo-transition);
  position: relative;
}
.miedo-sidebar-nav__btn svg            { width: 20px; height: 20px; }
.miedo-sidebar-nav__btn:hover          { background: var(--miedo-bg-2); color: var(--miedo-text); }
.miedo-sidebar-nav__btn--active        { background: var(--miedo-accent) !important; color: #fff !important; }

.miedo-sidebar-panels {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.miedo-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 14px;
}
.miedo-panel--active { display: flex; }

.miedo-panel__title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--miedo-text-muted);
 /* margin-bottom: 14px;*/
     margin-bottom: -4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.miedo-panel__title-icon { width: 14px; height: 14px; }

.miedo-panel__content { display: flex; flex-direction: column; gap: 8px; }

.miedo-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--miedo-bg-3);
  border-radius: var(--miedo-radius);
  font-size: .85rem;
}
.miedo-info-row__label { color: var(--miedo-text-muted); }
.miedo-info-row__value { font-weight: 600; color: var(--miedo-text); }

/* -- Panel de notificaciones --------------------------------- */
.miedo-notifications-panel {
  position: fixed;
  top: var(--miedo-header-h);
  right: 0;
  width: 320px;
  max-height: calc(100vh - var(--miedo-header-h));
  background: var(--miedo-bg-2);
  border-left: 1px solid var(--miedo-border);
  border-bottom: 1px solid var(--miedo-border);
  border-bottom-left-radius: 10px;
  display: flex;
  flex-direction: column;
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--miedo-transition);
  box-shadow: -4px 4px 20px rgba(0,0,0,.5);
}
.miedo-notifications-panel--open { transform: translateX(0); }

.miedo-notifications-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--miedo-border);
  font-size: .9rem;
  font-weight: 700;
}

.miedo-notifications-panel__list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.miedo-empty-state {
  text-align: center;
  color: var(--miedo-text-muted);
  font-size: .85rem;
  padding: 20px;
}

/* -- Scrollbar personalizado --------------------------------- */
::-webkit-scrollbar          { width: 5px; }
::-webkit-scrollbar-track    { background: transparent; }
::-webkit-scrollbar-thumb    { background: var(--miedo-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--miedo-accent); }

/* -- Responsive ---------------------------------------------- */
@media (max-width: 768px) {
  :root { --miedo-sidebar-w: 100%; --miedo-nav-w: 48px; }
  .miedo-game-body       { flex-direction: column; }
  .miedo-game-sidebar    { width: 100%; height: 240px; border-left: none; border-top: 1px solid var(--miedo-border); flex-shrink: 0; }
 /* .miedo-game-header__modules { display: none; }*/
    .miedo-game-header {padding: 0;gap: 0;height: 0;}
    .miedo-game-header__right{ display: none; }
  .miedo-notifications-panel  { width: 100%; border-radius: 0; }
   
.miedo-game-header__modules    
    {display: flex;
    flex-direction: column;
    margin-top: 118px;}
    
.civ-header-wrap{
    order: 1;
    
}
 .miedo-recursos-header   
    {
    order: 2;
}
    
    #miedo-world-info1 {display: none !important;}
    
}
@media (min-width: 769px) {
#miedo-world-info2 {display: none !important;}}

#miedo-game-screen  { height: 100vh; }
.miedo-game-body    { min-height: 0; }
.miedo-game-map     { min-height: 400px; }
.miedo-map-container { position: absolute; inset: 0; width: 100%; height: 100%; }