body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

#app {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.viewport #game-container {
    position: absolute;
    inset: 0;
    touch-action: none;
}

.viewport #game-container canvas {
    display: block;
    touch-action: none;
    transform-origin: top left;
}

@keyframes popup-bounce-in {
    0%   { transform: scale(3); opacity: 0; }
    50%  { transform: scale(0.92); opacity: 1; }
    70%  { transform: scale(1.05); }
    85%  { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.popup-bounce-in {
    animation: popup-bounce-in 0.7s ease-out forwards;
}

.level-grid-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.level-grid-scroll::-webkit-scrollbar {
    display: none;
}

