* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    color: rgba(255, 255, 255, 0.87);
    background-color: #000000;
    font-family: Arial, Helvetica, sans-serif;
}

#app {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

#game-container canvas {
    display: block;
    touch-action: none;
    image-rendering: pixelated;
}

/* Tap-to-start overlay: hides behind the canvas once dismissed */
#start-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #6ab3f5;
    color: #ffffff;
    text-align: center;
    z-index: 10;
    cursor: pointer;
}

#start-overlay h1 {
    font-size: clamp(28px, 7vw, 56px);
    letter-spacing: 1px;
    text-shadow: 3px 3px 0 #222;
}

#start-overlay p {
    font-size: clamp(14px, 3.5vw, 22px);
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

#start-overlay.hidden {
    display: none;
}