* {
    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;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.game-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
    border: 3px solid #f093fb;
}

.game-header {
    text-align: center;
    margin-bottom: 15px;
}

.game-header h1 {
    font-size: 28px;
    color: #f093fb;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(240, 147, 251, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #f093fb;
}

.stat-label {
    font-size: 12px;
    color: #b8c0ff;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #f093fb;
}

.game-area {
    position: relative;
    margin-bottom: 15px;
    border: 4px solid #f093fb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
    background: linear-gradient(to bottom, #1a1a2e 0%, #16213e 100%);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 30px;
}

.game-title {
    text-align: center;
    margin-bottom: 30px;
}

.hero-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out infinite;
}

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

.game-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #f093fb;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 14px;
    color: #b8c0ff;
    margin: 15px 0;
    font-weight: bold;
}

.motto {
    font-size: 12px;
    color: #b8c0ff;
    margin-top: 10px;
    font-style: italic;
}

.controls-info {
    background: rgba(102, 126, 234, 0.3);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid #f093fb;
}

.controls-info h3 {
    font-size: 20px;
    color: #f093fb;
    margin-bottom: 20px;
    text-align: center;
}

.control-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

kbd {
    background: #667eea;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    border: 2px solid #b8c0ff;
    min-width: 40px;
    text-align: center;
    display: inline-block;
}

.control-item span {
    font-size: 13px;
    color: #e0e0e0;
}

.start-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    border: 3px solid #d63384;
    font-family: inherit;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.start-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.game-over-title {
    text-align: center;
    margin-bottom: 30px;
}

.game-over-title h2 {
    font-size: 32px;
    color: #f5576c;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.final-stats {
    background: rgba(240, 147, 251, 0.3);
    padding: 25px 35px;
    border-radius: 10px;
    border: 3px solid #f5576c;
    margin-bottom: 30px;
}

.final-stats p {
    font-size: 16px;
    margin: 10px 0;
    color: #e0e0e0;
}

.final-stats span {
    font-size: 24px;
    color: #f093fb;
    font-weight: bold;
}

.game-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #667eea;
    text-align: center;
    color: #b8c0ff;
    font-size: 14px;
}

@media (max-width: 768px) {
    .game-container {
        padding: 15px;
    }

    .game-header h1 {
        font-size: 24px;
    }

    .game-stats {
        gap: 15px;
    }

    .stat-item {
        padding: 8px 12px;
    }

    .stat-value {
        font-size: 18px;
    }

    .controls-info {
        padding: 20px;
    }

    .control-item {
        flex-direction: column;
        gap: 5px;
    }
}
