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

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    background: #87CEEB;
}

#canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 10;
    padding: 20px;
}

.hud-top-left {
    position: absolute;
    top: 20px;
    left: 20px;
}

.hud-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
}

.score-display {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #2D3748;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon {
    font-size: 20px;
}

.high-score {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    color: #4A5568;
}

.wind-indicator {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.wind-arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.wind-strength {
    font-size: 14px;
    color: #4A5568;
    font-weight: bold;
}

.distance {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #2D3748;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 70%, #E0F6FF 100%);
    z-index: 100;
    padding: 20px;
}

.screen.hidden {
    display: none;
}

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

.game-title {
    font-size: 64px;
    font-weight: bold;
    color: #2D3748;
    text-shadow: 3px 3px 0 #FF6B9D, 6px 6px 0 #C44569;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

.subtitle {
    font-size: 20px;
    color: #4A5568;
    font-style: italic;
}

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

.kite-animation {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    transform: rotate(45deg);
    margin: 30px 0;
    animation: kiteFloat 3s ease-in-out infinite;
    position: relative;
}

.kite-animation::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 100px;
    background: #FF6B9D;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes kiteFloat {
    0%, 100% { transform: rotate(45deg) translateY(0) scale(1); }
    50% { transform: rotate(45deg) translateY(-15px) scale(1.05); }
}

.btn-primary, .btn-secondary {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: white;
    color: #4A5568;
}

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

.high-score-display {
    margin-top: 20px;
    font-size: 18px;
    color: #4A5568;
}

.instructions {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
}

.instructions p {
    margin: 8px 0;
    font-size: 16px;
    color: #2D3748;
}

.game-over-title {
    font-size: 48px;
    color: #2D3748;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 #FF6B9D;
}

.final-score {
    font-size: 36px;
    color: #FF6B9D;
    font-weight: bold;
    margin-bottom: 30px;
}

.stats {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 40px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.stat {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 18px;
    color: #2D3748;
    min-width: 300px;
}

.stat-label {
    font-weight: bold;
}

.fun-fact {
    background: #FFF9E6;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #4A5568;
    max-width: 500px;
    border-left: 4px solid #FFD700;
}

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

.controls-hint {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #4A5568;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 15px;
    font-size: 12px;
    color: #4A5568;
    z-index: 10;
    text-align: center;
}

.game-footer a {
    color: #FF6B9D;
    text-decoration: none;
    font-weight: bold;
}

.game-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .game-title {
        font-size: 48px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .stats {
        padding: 15px 20px;
    }
    
    .stat {
        font-size: 16px;
        min-width: 250px;
    }
    
    .controls-hint {
        font-size: 12px;
        bottom: 50px;
    }
    
    .hud-top-left, .hud-top-right {
        top: 10px;
    }
    
    .score-display {
        font-size: 20px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 36px;
        text-shadow: 2px 2px 0 #FF6B9D, 4px 4px 0 #C44569;
    }
    
    .game-over-title {
        font-size: 32px;
    }
    
    .final-score {
        font-size: 28px;
    }
}