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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.6), 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
    border: 2px solid #ff1493;
}

.game-title {
    text-align: center;
    color: white;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #ff4500, 0 0 40px #ff1493;
}

.game-info {
    margin-bottom: 20px;
}

.stats {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    color: white;
    border-radius: 10px;
    border: 2px solid #ff4500;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
    flex: 1;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
    opacity: 0.9;
}

.stat span:last-child {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
}

.game-wrapper {
    position: relative;
    margin: 0 auto;
    width: 800px;
    height: 600px;
}

#gameCanvas {
    display: block;
    border: 3px solid #302b63;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.start-screen,
.game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 10;
    width: 80%;
    max-width: 400px;
}

.start-screen h2,
.game-over-screen h2 {
    color: #302b63;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.instructions {
    text-align: left;
    margin: 20px auto;
    max-width: 250px;
}

.instructions p {
    font-size: 1.1em;
    color: #333;
    margin: 10px 0;
}

.instructions strong {
    color: #302b63;
}

.final-score,
.best-score {
    font-size: 1.5em;
    color: #333;
    margin: 15px 0;
    font-weight: bold;
}

.final-score span,
.best-score span {
    color: #302b63;
    font-size: 1.3em;
}

.hidden {
    display: none;
}

.controls {
    margin-top: 20px;
    text-align: center;
}

.control-hint {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 15px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid #ff1493;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    color: white;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8), 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: #ff4500;
}

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

.btn.secondary {
    background: rgba(0, 0, 0, 0.7);
    border-color: white;
}

/* Responsive */
@media (max-width: 850px) {
    .container {
        padding: 15px;
    }

    .game-title {
        font-size: 2em;
    }

    .game-wrapper {
        width: 100%;
        height: auto;
    }

    #gameCanvas {
        width: 100%;
        height: auto;
    }

    .start-screen,
    .game-over-screen {
        width: 90%;
        padding: 30px 20px;
    }

    .start-screen h2,
    .game-over-screen h2 {
        font-size: 2em;
    }
}

