/* The line to the server, when it drops or the game is updated under an open
 * page (ui/connection.js). Fixed above everything, windows included: while it
 * shows, nothing pressed reaches the server, so it must not hide behind one.
 * Surface and buttons follow the shared window (windows.css). */
#connection-banner:not([hidden]) {
  position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(var(--safe-vw) - 32px); padding: 10px 14px;
  pointer-events: auto;
  background: url('../assets/ui/character-surface.svg') repeat, linear-gradient(135deg, #262821, #121a1b 70%);
  border: 1px solid #6e6047; border-radius: 9px;
  box-shadow: 0 6px 18px #0008, inset 0 0 0 3px #101612;
  color: #e8dcc5; font: 400 14px/1.35 "Segoe UI", system-ui, sans-serif;
}
#connection-text { margin: 0; }
#btn-connection-reload { flex: none; min-height: 44px; min-width: 96px; }
/* The shared button rule sets a display, which would beat [hidden]. */
#btn-connection-reload[hidden] { display: none; }
