/* A compact, consistently placed exit tab, above canvas and in-game menus. */
#gamenow-exit-launcher {
  position: fixed; inset: auto max(8px, env(safe-area-inset-right)) 46% auto;
  width: auto; height: auto; margin: 0; padding: 0; border: 0; background: transparent;
  z-index: 2147483000; overflow: visible; color-scheme: dark;
}
#gamenow-exit-button {
  display: block; min-height: 44px; max-width: 132px; padding: 8px 12px;
  border: 1px solid #96a8ba; border-radius: 12px; background: #172333ee; color: #fff;
  font: 700 13px/1.3 system-ui, sans-serif; cursor: pointer; touch-action: manipulation;
  box-shadow: 0 3px 12px #0005; pointer-events: auto; white-space: normal;
}
#gamenow-exit-button:hover { background: #2c4058; border-color: #fff; }
#gamenow-exit-dialog {
  box-sizing: border-box; position: fixed; inset: 0; width: min(430px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px); margin: auto; padding: 24px; overflow-y: auto;
  border: 1px solid #65788d; border-radius: 20px; background: #142032; color: #f4f7fb;
  font: 16px/1.6 system-ui, sans-serif; box-shadow: 0 20px 80px #0008; color-scheme: dark;
  z-index: 2147483647; text-align: left; overscroll-behavior: contain;
}
#gamenow-exit-dialog:not([open]) { display: none; }
#gamenow-exit-dialog::backdrop { background: #000a; }
#gamenow-exit-dialog h2 { margin: 0 0 12px; font: 800 24px/1.3 system-ui, sans-serif; color: #fff; }
#gamenow-exit-dialog p { margin: 10px 0; color: #e0e8f3; }
#gamenow-exit-dialog .gamenow-exit-note { color: #ffd18c; }
#gamenow-exit-dialog .gamenow-exit-account { color: #b6c8da; font-size: 13px; }
#gamenow-exit-status:empty { display: none; }
#gamenow-exit-dialog .gamenow-exit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
#gamenow-exit-dialog button {
  box-sizing: border-box; flex: 1 1 140px; min-height: 48px; padding: 10px 14px;
  border: 1px solid #899caf; border-radius: 12px; background: #2c415a; color: #fff;
  font: 700 15px/1.4 system-ui, sans-serif; cursor: pointer; touch-action: manipulation; white-space: normal;
}
#gamenow-exit-dialog #gamenow-exit-confirm { background: #b73447; border-color: #ed8290; }
#gamenow-exit-dialog button:disabled { opacity: .65; cursor: wait; }
#gamenow-exit-dialog button:focus-visible, #gamenow-exit-button:focus-visible { outline: 3px solid #ffdc8a; outline-offset: 3px; }
@media (max-width: 480px) { #gamenow-exit-dialog { padding: 20px; } #gamenow-exit-button { padding-inline: 10px; max-width: 110px; } }
