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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #4CAF50;
    font-size: 2em;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.game-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

canvas {
    border: 3px solid #4CAF50;
    border-radius: 10px;
    background: #111;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.info {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 10px;
}

.score, .high-score {
    font-size: 1.2em;
    font-weight: bold;
}

.score {
    color: #4CAF50;
}

.high-score {
    color: #ff9800;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.btn {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-start {
    background: #4CAF50;
    color: white;
}

.btn-pause {
    background: #ff9800;
    color: white;
}

.btn-reset {
    background: #f44336;
    color: white;
}

.status {
    text-align: center;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 10px;
    margin: 20px 0;
}

.debug-info {
    margin-top: 20px;
    padding: 15px;
    background: #263238;
    color: #fff;
    border-radius: 10px;
    font-size: 0.85em;
    font-family: monospace;
}

.debug-info h3 {
    margin-bottom: 10px;
    color: #4CAF50;
}

.debug-info div {
    margin: 5px 0;
}

#swStatus, #pwaMode, #userAgent, #protocol {
    color: #ff9800;
    font-weight: bold;
}

@media (max-width: 500px) {
    canvas {
        width: 100%;
        height: auto;
    }
    
    .container {
        padding: 15px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}