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

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1a1a2e;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 20px;
    background: #1a1a2e;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    touch-action: none; /* Prevents default touch behaviors */
}

.game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: #48BF91;
    text-shadow: 0 0 10px rgba(72, 191, 145, 0.5);
}

.game-instructions {
    font-size: 1.2em;
    color: #a0a0a0;
    margin-bottom: 20px;
    text-align: center;
    max-width: 600px;
}

#gameCanvas {
    border: 2px solid #48BF91;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(72, 191, 145, 0.3);
    display: block;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.score-container {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(26, 26, 46, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #48BF91;
    font-size: min(1em, 3.5vw);
    z-index: 1000;
}

.score-text {
    font-size: 1.2em;
    margin: 5px 0;
    color: #fff;
}

.high-score {
    color: #48BF91;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .score-container {
        top: 10px;
        right: 10px;
        padding: 10px;
    }
    
    .game-instructions {
        margin-bottom: 10px;
    }
}
