html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #131722;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#install-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(19, 23, 34, 0.97);
  border-bottom: 1px solid #2a3242;
  color: #e6e9f0;
  font-size: 0.8rem;
}
#install-bar[hidden] { display: none; }
#install-msg { flex: 1; }
#install-btn {
  background: #b45309;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.8rem;
}
#install-btn[hidden] { display: none; }
#install-dismiss {
  background: transparent;
  color: #8b93a7;
  border: none;
  font-size: 0.9rem;
  padding: 4px 8px;
}

iframe#app {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* shift iframe down when the install bar is visible */
body:has(#install-bar:not([hidden])) iframe#app {
  top: 44px;
  height: calc(100% - 44px);
}
