/* Scrolly embed — Galaxy War (full viewport canvas) */

:root {
  --scrolly-bg: #050510;
  --scrolly-accent: #7c3aed;
  --scrolly-accent2: #a78bfa;
  --scrolly-text: #ffffff;
  --scrolly-safe-left: env(safe-area-inset-left, 0px);
  --scrolly-safe-right: env(safe-area-inset-right, 0px);
  --scrolly-safe-top: env(safe-area-inset-top, 0px);
  --scrolly-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--scrolly-bg) !important;
  color: var(--scrolly-text) !important;
  min-height: 100dvh !important;
  height: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: none;
  overscroll-behavior: none;
}

body {
  display: block !important;
  position: relative;
}

.container {
  width: 100% !important;
  max-width: none !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  position: relative;
  z-index: 1;
}

/* Match Planet Destroyer / Ball Jump: fixed 48px from top; native header uses safe-area */
#hud {
  position: fixed !important;
  top: 48px !important;
  left: calc(20px + var(--scrolly-safe-left)) !important;
  right: calc(20px + var(--scrolly-safe-right)) !important;
  transform: none !important;
  margin: 0 !important;
  line-height: 1.2;
}

.game-container {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: var(--scrolly-safe-top) var(--scrolly-safe-right) var(--scrolly-safe-bottom) var(--scrolly-safe-left) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#game-canvas {
  background: transparent !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
}
