* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f2f 100%);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}



/* Game Container */
.game-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    min-height: 100vh;
}

.game-title {
    text-align: center;
    margin-bottom: 30px;
}

.game-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-title p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-top: 8px;
}

/* Space Panel */
.space-panel {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 3px solid #3b82f6;
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

/* Level Info */
.level-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.badge-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.badge-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.badge-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Altitude Display */
.altitude-container {
    text-align: center;
    margin-bottom: 30px;
}

.altitude-label {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 10px;
}

.current-altitude {
    font-size: 4rem;
    font-weight: 700;
    color: #60a5fa;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
    font-family: 'Courier New', monospace;
}

.target-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.target-box {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid #10b981;
    border-radius: 15px;
    padding: 15px 25px;
}

.target-label {
    color: #34d399;
    font-size: 0.9rem;
}

.target-value {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    font-family: 'Courier New', monospace;
}

/* Spaceship */
.spaceship-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.spaceship {
    font-size: 5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.5));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Control Buttons */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.control-btn {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 3px solid #475569;
    border-radius: 20px;
    padding: 20px 40px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Fredoka', sans-serif;
    min-width: 180px;
}

.control-btn:hover {
    transform: translateY(-3px);
}

.control-btn.up {
    border-color: #10b981;
}

.control-btn.up:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.control-btn.down {
    border-color: #ef4444;
}

.control-btn.down:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.control-btn.correct {
    animation: correctPulse 0.5s ease-out;
}

.control-btn.wrong {
    animation: shake 0.5s ease-out;
}

@keyframes correctPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Progress */
.progress-container {
    margin-top: 30px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.progress-bar {
    height: 12px;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

/* Menu Screen */
.menu-screen {
    text-align: center;
    padding: 40px 20px;
}

.menu-screen h2 {
    font-size: 2rem;
    color: #60a5fa;
    margin-bottom: 20px;
}

.menu-screen p {
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.start-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Fredoka', sans-serif;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Win Screen */
.win-screen {
    text-align: center;
    padding: 40px 20px;
}

.win-screen h2 {
    font-size: 2.5rem;
    color: #60a5fa;
    margin-bottom: 10px;
}

.win-screen .trophy {
    font-size: 5rem;
    margin: 20px 0;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 300px;
    margin: 20px auto;
}

.stat-box {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid #3b82f6;
    border-radius: 15px;
    padding: 15px;
}

.stat-box .value {
    font-size: 2rem;
    font-weight: 700;
    color: #60a5fa;
}

.stat-box .label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* Feedback */
.feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #60a5fa;
    padding: 20px 40px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 200;
    animation: fadeInOut 1.5s ease-out forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Article */
article {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 30px;
    padding: 40px;
    margin-top: 40px;
    border: 2px solid #334155;
}

article h2 {
    color: #60a5fa;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

article h3 {
    color: #3b82f6;
    font-size: 1.3rem;
    margin: 25px 0 15px;
}

article p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 15px;
}

article ul {
    color: #cbd5e1;
    margin-left: 20px;
    margin-bottom: 15px;
}

article li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.tip-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    padding: 15px 20px;
    border-radius: 0 15px 15px 0;
    margin: 20px 0;
}

.tip-box strong {
    color: #60a5fa;
}

/* High-quality claymation background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('clay_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}/* High-quality claymation background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('clay_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
