.app-install-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
  border: 2px solid var(--gold);
  background: #100c12;
  color: var(--paper);
  font: inherit;
  box-shadow: 0 12px 60px #000b;
  touch-action: manipulation;
}
.app-install-dialog::backdrop { background: #050406dd; }
.app-install-dialog h2 { color: var(--gold); margin: 0 0 12px; font-size: 20px; }
.app-install-dialog p, .app-install-dialog li { font-size: 14px; line-height: 1.6; }
.app-install-dialog ol { padding-left: 22px; }
.app-install-dialog button {
  min-height: 44px;
  padding: 10px 18px;
  background: var(--gold);
  border: 0;
  color: var(--ink);
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
.app-install-dialog:not([open]) { display: none; }
.app-install-dialog.install-fallback[open] {
  position: fixed; inset: 0; margin: auto; z-index: 1000;
  outline: 100vmax solid #050406dd;
}
.standalone-game .arcade-return { display: none; }
.touch-device .arcade-return,
.touch-device .arcade-celestial,
.touch-device .constellation,
.touch-device .constellation-bg,
.touch-device .constellation-focus-layer,
.touch-device [data-celestial-river],
.touch-device .starfield,
.touch-device #constellation,
.touch-device #constellationCanvas { display:none !important; }
@media (orientation: landscape) {
  html:has(.touch-device) { background:#050406; overflow:hidden; }
  .touch-device.standalone-game .shell { height:100dvh; }
}
