============================================================
   style.css — Full-screen canvas, HUD overlay, pixel font
   ============================================================ */

/* Import a pixel/retro font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #5A5A5A;
    /* Prevent pull-to-refresh and bounce on mobile */
    overscroll-behavior: none;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* ---- UI Overlay (sits on top of canvas) ---- */
#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* ---- Score Display ---- */
#score-display {
    position: absolute;
    top: 40px;
    left: 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: #FFFFFF;
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0px -2px 0 #000,
         0px  2px 0 #000,
        -2px  0px 0 #000,
         2px  0px 0 #000;
    z-index: 11;
}

/* ---- Game Over Container ---- */
#game-over-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 12;
}

#game-over-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 28px;
    color: #FFFFFF;
    text-shadow:
        -3px -3px 0 #000,
         3px -3px 0 #000,
        -3px  3px 0 #000,
         3px  3px 0 #000,
         0px -3px 0 #000,
         0px  3px 0 #000,
        -3px  0px 0 #000,
         3px  0px 0 #000;
    margin-bottom: 20px;
}

#tap-restart-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: #CCCCCC;
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000;
    animation: blink 1s ease-in-out infinite;
}

/* ---- Start Screen ---- */
#start-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 12;
}

#start-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 20px;
    color: #FFFFFF;
    text-shadow:
        -3px -3px 0 #000,
         3px -3px 0 #000,
        -3px  3px 0 #000,
         3px  3px 0 #000;
    animation: blink 1s ease-in-out infinite;
}

/* ---- Utility Classes ---- */
.hidden {
    display: none !important;
}

/* ---- Animations ---- */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}