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

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

.ad-banner {
    width: 728px;
    height: 90px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    border-radius: 8px;
}

.ad-placeholder {
    color: #4a4a6a;
    font-size: 14px;
    text-align: center;
}

.game-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#gameCanvas {
    display: block;
    background: #70c5ce;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    transition: opacity 0.3s;
}

.screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.screen h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.screen p {
    font-size: 20px;
    margin-bottom: 30px;
}

.screen button {
    padding: 15px 40px;
    font-size: 18px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.screen button:hover {
    transform: scale(1.05);
    background: #45a049;
}

.sidebar-ad {
    position: fixed;
    width: 160px;
    height: 600px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.left-ad {
    left: 20px;
}

.right-ad {
    right: 20px;
    width: 300px;
    height: 250px;
}

@media (max-width: 1200px) {
    .sidebar-ad {
        display: none;
    }
    
    .ad-banner {
        width: 320px;
        height: 50px;
    }
}