html, body {
  margin: 0;
  height: 100%;
  background: #0f1419;
  color: #f8fafc;
  font-family: system-ui, -apple-system, sans-serif;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
flt-glass-pane, flutter-view, body > flt-scene-host {
  height: 100%;
}
#app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
}
#app-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #243044;
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: pwa-spin 0.8s linear infinite;
}
@keyframes pwa-spin { to { transform: rotate(360deg); } }
#pwa-update-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  padding: 14px 20px;
  background: #1a2332;
  border-top: 2px solid #f59e0b;
  color: #f8fafc;
  font-size: 15px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
}
#pwa-update-banner.visible { display: flex; }
#pwa-update-banner button {
  background: #f59e0b;
  color: #0f1419;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
#pwa-update-banner button:hover { filter: brightness(1.08); }
