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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif;
}

#gameCanvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Mobile touch controls overlay */
.touch-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    pointer-events: none;
    z-index: 10;
}

.touch-btn {
    position: absolute;
    pointer-events: all;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    font-weight: bold;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: background 0.1s;
}

.touch-btn:active {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

.touch-btn-left {
    width: 72px;
    height: 72px;
    bottom: 20px;
    left: 15px;
}

.touch-btn-right {
    width: 72px;
    height: 72px;
    bottom: 20px;
    left: 105px;
}

.touch-btn-down {
    width: 60px;
    height: 60px;
    bottom: 100px;
    left: 55px;
    font-size: 22px;
}

.touch-btn-jump {
    width: 90px;
    height: 90px;
    bottom: 15px;
    right: 15px;
}

.touch-btn-ability {
    width: 70px;
    height: 70px;
    bottom: 115px;
    right: 25px;
    display: none;
}

.touch-btn-ability.visible {
    display: flex;
}
