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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

.maintenance-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.maintenance-header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.maintenance-header p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.game-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    background: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
}

#gameCanvas {
    border: 3px solid #667eea;
    background: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: block;
    cursor: none;
    image-rendering: pixelated;
}

.game-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.score-board {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    min-width: 150px;
}

.score-item label {
    color: #666;
    font-weight: 600;
    font-size: 0.9em;
}

.score-item span {
    color: #667eea;
    font-size: 2em;
    font-weight: bold;
}

.controls {
    text-align: center;
}

.controls p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.btn {
    padding: 12px 25px;
    margin: 0 8px 10px 8px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover:not(:disabled) {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-message {
    text-align: center;
    margin: 20px 0;
}

#statusText {
    color: #764ba2;
    font-weight: 600;
    font-size: 1.1em;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    border-left: 4px solid #764ba2;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    color: #999;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .maintenance-header h1 {
        font-size: 1.8em;
    }

    #gameCanvas {
        width: 100%;
        height: auto;
        max-width: 300px;
    }

    .btn {
        padding: 10px 15px;
        margin: 5px;
        font-size: 0.9em;
    }
}
