/* Prevent all scrolling and bouncing on iOS Safari */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100dvh;
    min-height: 100vh; /* Ensure background extends beyond viewport */
    /* Gradient background that extends for overscroll */
    background: linear-gradient(180deg, #0a0a1e 0%, #1a0a3e 100%);
    background-color: #1a0a3e; /* Fallback for overscroll - bottom gradient color */
    background-attachment: fixed;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
    position: fixed;
    top: 0;
    left: 0;
    /* Extend into safe area to prevent white edges */
    padding-bottom: env(safe-area-inset-bottom);
}

#game-container {
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-container canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}
