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

body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    background: linear-gradient(to bottom, #fde2f3, #fff7fb);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-wrapper {
    width: 100%;
    max-width: 950px;
}

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

.game-header h1 {
    color: #c2185b;
    font-size: 34px;
    margin-bottom: 5px;
}

.game-header p {
    color: #6a1b4d;
    font-size: 17px;
}

.score-board {
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 12px;
    font-weight: bold;
    color: #7b1b55;
    box-shadow: 0 4px 14px rgba(194, 24, 91, 0.15);
}

.game-area {
    position: relative;
    height: 470px;
    border-radius: 22px;
    overflow: hidden;
    border: 5px solid #f48fb1;
    background:
        linear-gradient(rgba(255, 240, 248, 0.25), rgba(255, 240, 248, 0.25)),
        url("assets/stage1.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.ballerina {
    width: 180px;
    height: 260px;
    background-image: url("assets/balleraina.png");
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    transform-origin: center bottom;
}

.challenge-box {
    background: #ffffff;
    text-align: center;
    padding: 18px;
    border-radius: 16px;
    margin-top: 14px;
    box-shadow: 0 4px 14px rgba(194, 24, 91, 0.15);
}

.challenge-box h2 {
    color: #c2185b;
    margin-bottom: 8px;
}

.challenge-box p {
    color: #5f2750;
}

.step-text {
    margin-top: 12px;
    font-size: 20px;
    font-weight: bold;
    color: #7b1b55;
    background: #fff0f7;
    padding: 14px;
    border-radius: 12px;
}

.skill-buttons,
.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

button {
    border: none;
    background: #c2185b;
    color: #ffffff;
    padding: 13px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

button:hover {
    background: #ad1457;
}

#nextStepBtn {
    margin-top: 14px;
    background: #8e24aa;
}

.game-over {
    margin-top: 16px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(194, 24, 91, 0.15);
}

.game-over h2 {
    color: #c2185b;
    margin-bottom: 10px;
}

.game-over input {
    width: 100%;
    max-width: 320px;
    padding: 12px;
    margin: 14px 0;
    border: 2px solid #f8bbd0;
    border-radius: 10px;
    font-size: 16px;
}

.hidden {
    display: none;
}

.dance-move {
    animation: danceMove 1.2s ease-in-out;
}

.jump-move {
    animation: jumpMove 1.2s ease-in-out;
}

.spin-move {
    animation: spinMove 1.2s ease-in-out;
}

.pirouette-move {
    animation: pirouetteMove 1.2s ease-in-out;
}

.arabesque-move {
    animation: arabesqueMove 1.2s ease-in-out;
}

.jete-move {
    animation: jeteMove 1.2s ease-in-out;
}

@keyframes danceMove {
    0% { transform: translateX(0) rotate(0deg) scale(1); }
    25% { transform: translateX(-45px) rotate(-8deg) scale(1.04); }
    50% { transform: translateX(45px) rotate(8deg) scale(1.05); }
    75% { transform: translateX(-20px) rotate(-5deg) scale(1.03); }
    100% { transform: translateX(0) rotate(0deg) scale(1); }
}

@keyframes jumpMove {
    0% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-125px) scale(1.05); }
    70% { transform: translateY(-20px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes spinMove {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(360deg) scale(1.07); }
    100% { transform: rotate(720deg) scale(1); }
}

@keyframes pirouetteMove {
    0% { transform: rotate(0deg) translateX(0) scale(1); }
    35% { transform: rotate(360deg) translateX(18px) scale(1.06); }
    70% { transform: rotate(720deg) translateX(-18px) scale(1.06); }
    100% { transform: rotate(1080deg) translateX(0) scale(1); }
}

@keyframes arabesqueMove {
    0% { transform: rotate(0deg) translateX(0) scale(1); }
    40% { transform: rotate(-16deg) translateX(45px) scale(1.06); }
    75% { transform: rotate(-10deg) translateX(-20px) scale(1.03); }
    100% { transform: rotate(0deg) translateX(0) scale(1); }
}

@keyframes jeteMove {
    0% { transform: translateX(-110px) translateY(0) rotate(0deg); }
    45% { transform: translateX(35px) translateY(-130px) rotate(8deg) scale(1.05); }
    75% { transform: translateX(120px) translateY(-20px) rotate(0deg); }
    100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

.leaderboard-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px;
    border-bottom: 1px solid #f8bbd0;
    text-align: center;
}

.leaderboard-table th {
    color: #c2185b;
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

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

    .game-area {
        height: 390px;
    }

    .ballerina {
        width: 140px;
        height: 220px;
    }

    button {
        width: 46%;
        padding: 12px 10px;
        font-size: 14px;
    }

    .score-board {
        font-size: 15px;
    }

    .step-text {
        font-size: 17px;
    }
}