html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    overflow: hidden;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

canvas {
    touch-action: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

#game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #0a0a0f;
    position: relative;
    touch-action: none;
}

#game-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: #0a0a0f;
    touch-action: none;
}

#ad-container {
    width: 100%;
    min-height: 60px;
    max-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0f;
    padding: 4px 0;
    flex-shrink: 0;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

canvas {
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    image-rendering: auto;
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    touch-action: none !important;
}

/* Hide scrollbars */
::-webkit-scrollbar {
    display: none;
}
* {
    scrollbar-width: none;
    -webkit-tap-highlight-color: transparent;
}

/* Fullscreen styles */
:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    background: #0a0a0f !important;
}
:-moz-full-screen { width: 100% !important; height: 100% !important; background: #0a0a0f !important; }
:-ms-fullscreen { width: 100% !important; height: 100% !important; background: #0a0a0f !important; }
:fullscreen { width: 100% !important; height: 100% !important; background: #0a0a0f !important; }

:-webkit-full-screen #ad-container { display: flex !important; }
:-moz-full-screen #ad-container { display: flex !important; }
:-ms-fullscreen #ad-container { display: flex !important; }
:fullscreen #ad-container { display: flex !important; }