body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior: none;
}

#app {
    width: 100vw;
    width: 100svw; /* Use small viewport width for iOS */
    height: 100vh;
    height: 100svh; /* Use small viewport height for iOS */
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

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

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

.spritePosition {
    margin: 10px 0 0 10px;
    font-size: 0.8em;
}

.button {
    width: 140px;
    margin: 10px;
    padding: 10px;
    background-color: #000000;
    color: rgba(255, 255, 255, 0.87);
    border: 1px solid rgba(255, 255, 255, 0.87);
    cursor: pointer;
    transition: all 0.3s;

    &:hover {
        border: 1px solid #0ec3c9;
        color: #0ec3c9;
    }

    &:active {
        background-color: #0ec3c9;
    }

    /* Disabled styles */
    &:disabled {
        cursor: not-allowed;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.3);
    }
}