/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
@import './components/neon.css';
@import './components/menu.css';
@import './components/game-ui.css';
@import './components/game-over.css';
@import './components/shop.css';
@import './components/missions.css';
@import './components/settings.css';


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

body {
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
    font-family: 'Orbitron', monospace;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

#gameContainer {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: #000;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    background: radial-gradient(ellipse at center, #0f0f23 0%, #000000 100%);
    touch-action: none;
}

/* Coin display styles */
#coinDisplayMenu,
#coinDisplayGame,
#coinDisplayGlobal {
    position: absolute;
    font-size: 1.5rem;
    z-index: 200;
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

#coinDisplayMenu {
    top: 30px;
    right: 30px;
}

#coinDisplayGame {
    top: 10px;
    right: 20px;
    font-size: 1.2rem;
}

#coinDisplayGlobal {
    top: 30px;
    right: 30px;
}

.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

@keyframes titleFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #gameTitle {
        font-size: 3rem !important;
    }
    
    #highScore {
        font-size: 1.4rem !important;
        padding: 15px 30px !important;
    }
    
    #playButton {
        font-size: 1.2rem !important;
        padding: 20px 40px !important;
    }
    
    #shopIcon, #missionIcon {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
        bottom: 30px !important;
    }
    
    #shopIcon {
        right: 30px !important;
    }
    
    #missionIcon {
        left: 30px !important;
    }
    
    #scoreDisplay {
        font-size: 1.8rem !important;
    }
    
    #gameOver h2 {
        font-size: 2.8rem !important;
    }
    
    #gameOver .score-result {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 480px) {
    #gameTitle {
        font-size: 2.5rem !important;
    }
    
    #highScore {
        font-size: 1.2rem !important;
        padding: 12px 25px !important;
    }
    
    #playButton {
        font-size: 1rem !important;
        padding: 18px 35px !important;
    }
    
    #shopIcon, #missionIcon {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
        bottom: 20px !important;
    }
    
    #shopIcon {
        right: 20px !important;
    }
    
    #missionIcon {
        left: 20px !important;
    }
    
    #scoreDisplay {
        font-size: 1.5rem !important;
    }
    
    #gameOver h2 {
        font-size: 2.2rem !important;
    }
    
    #gameOver .score-result {
        font-size: 1.3rem !important;
    }
}
