/* ====================================================================
   Swipe Game – Minimal Base Styles
   Mobile-first: full-viewport snap container, gesture-friendly
   ==================================================================== */

/* ---- Reset & Root Setup ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden; /* prevent body scroll; game container handles scrolling */
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    background: #111;
    color: #eee;
    -webkit-tap-highlight-color: transparent; /* remove ugly tap highlight on mobile */
    -webkit-user-select: none;
    user-select: none;
}

/* ---- Game Container (viewport) ---- */
.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none; /* Prevent all default browser scrolling/zooming */
    background: transparent;
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
        env(safe-area-inset-bottom) env(safe-area-inset-left);
    z-index: 10;
}

/* ---- Scroll Wrapper (translates via JS) ---- */
.scroll-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

/* ---- Level Screen (each full-viewport page) ---- */
.level-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Background Canvas for each screen */
.bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: #111;
}

/* ---- Content Styling (for dynamic content inside level-screen) ---- */
.level-screen h1,
.level-screen p {
    max-width: 90vw;
    word-break: break-word;
}

.level-screen button {
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    background: #eee;
    color: #111;
    cursor: pointer;
    touch-action: manipulation; /* reduces tap delay */
}


