/* STARLANCE web-shell install/download banner — rendered in the HTML layer ABOVE the Godot
   canvas (Godot knows nothing about it). Dismissible; styled to match the game's HUD. */
#sl-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(6, 12, 20, 0.97), rgba(6, 12, 20, 0.88));
  border-bottom: 1px solid rgba(90, 200, 255, 0.55);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #cfe8ff;
  flex-wrap: wrap;
}
#sl-banner.hidden { display: none; }
#sl-banner .sl-title {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 14px;
  color: #8fd4ff;
  margin-right: 4px;
  white-space: nowrap;
}
#sl-banner .sl-spacer { flex: 1 1 auto; }
#sl-banner button {
  font-family: inherit;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid rgba(120, 200, 255, 0.5);
  background: rgba(20, 40, 60, 0.85);
  color: #dff0ff;
  padding: 9px 14px;
  font-size: 14px;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
#sl-banner button:hover { background: rgba(40, 80, 120, 0.95); border-color: rgba(150, 220, 255, 0.9); }
#sl-banner button:active { transform: translateY(1px); }
#sl-banner button.sl-primary {
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  color: #051018;
  background: linear-gradient(180deg, #7fe0ff, #36b6ee);
  border-color: #9fe9ff;
  box-shadow: 0 0 14px rgba(80, 200, 255, 0.45);
}
#sl-banner button.sl-primary:hover { background: linear-gradient(180deg, #9fe9ff, #54c6f6); }
#sl-banner .sl-close {
  padding: 8px 12px;
  font-size: 16px;
  color: #9fb6c8;
  border-color: rgba(120, 140, 160, 0.4);
  background: transparent;
}
/* instructions popup (iOS / Safari add-to-home) */
#sl-help {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#sl-help.show { display: flex; }
#sl-help .sl-card {
  max-width: 360px;
  margin: 16px;
  padding: 22px 22px 18px;
  border-radius: 12px;
  background: #0b1622;
  border: 1px solid rgba(120, 200, 255, 0.5);
  color: #d6ecff;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
#sl-help .sl-card h3 { margin: 0 0 12px; color: #8fd4ff; font-size: 18px; }
#sl-help .sl-card p { margin: 8px 0; font-size: 15px; line-height: 1.45; }
#sl-help .sl-card b { color: #aee6ff; }
#sl-help .sl-card button { margin-top: 14px; }
@media (max-width: 560px) {
  #sl-banner .sl-title { width: 100%; text-align: center; margin: 0 0 4px; }
  #sl-banner { gap: 8px; justify-content: center; }
  #sl-banner .sl-spacer { display: none; }
}
