/* Phase-B on-demand install: download progress overlay + rail "needs install" badge. */
.emu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 13, 0.72);
  backdrop-filter: blur(4px);
}
.emu-overlay.show { display: flex; }
.emu-box {
  width: min(460px, 88vw);
  padding: 26px 26px 22px;
  border-radius: 16px;
  background: var(--dc-panel, #1b1d24);
  border: 1px solid var(--dc-line, #3a3d44);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.emu-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.emu-bar {
  height: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.emu-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, #5b6cff, #8a5bff);
  transition: width 0.25s ease;
}
.emu-bar-fill.error { background: #e5484d; }
.emu-note { margin-top: 14px; font-size: 13px; color: var(--dc-muted, #aeb2bd); min-height: 1.2em; }
.emu-close {
  margin-top: 16px;
  padding: 8px 20px;
  border-radius: 9px;
  border: 1px solid var(--dc-line, #3a3d44);
  background: var(--dc-panel-2, #23262e);
  color: var(--dc-text, #e8eaef);
  cursor: pointer;
}
.emu-close:hover { background: #2c303a; }

/* Little ⬇ badge on a rail button whose emulator isn't downloaded yet. */
.dc-rail-btn.emu-needs-install { position: relative; }
.dc-rail-btn.emu-needs-install::after {
  content: '⬇';
  position: absolute;
  right: 2px;
  bottom: 2px;
  font-size: 11px;
  line-height: 1;
  padding: 2px 3px;
  border-radius: 6px;
  background: #5b6cff;
  color: #fff;
}
