* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    margin:0;
    background:#111;
    color:white;
    font-family:Arial;
    overflow:hidden;
    touch-action:none; 
}

canvas {
    display:block;
    background:#1b1b1b; 
}

#ui {
    position:fixed;
    top:10px; left:10px;
    font-size:16px;
    display:none;
}

#ui-right {
    position:fixed;
    top:10px; right:10px;
    text-align:right;
    display:none;
}
    
#pause-btn {
    position:fixed;
    top:10px; left:50%;
    transform:translateX(-50%);
    padding:10px 20px;
    font-size:18px;
    background:#333;
    color:white;
    border:2px solid #666;
    cursor:pointer;
    display:none;
    border-radius:5px;
}

#pause-btn:hover {
    background:#444;
}

#upgrade, #gameover, #menu, #settings, #help {
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:#222;
    padding:25px;
    border:2px solid #555;
    text-align:center;
}
    
#paused {
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:rgba(0,0,0,0.9);
    padding:40px; border:3px solid #666;
    text-align:center;
    display:none;
    border-radius:10px;
}

#paused h2 {
    font-size:48px;
    margin:0 0 20px 0;
    color:#FFD700;
}

#help {
    text-align:left;
    max-width:600px;
    max-height:80vh;
    overflow-y:auto;
}

#menu h1 {
    font-size:36px;
    margin-bottom:20px;
}
    
#highscores li:nth-child(1) {
    color: #FFD700; 
    font-weight: bold;
}

#highscores li:nth-child(2) {
    color: #C0C0C0;
    font-weight: bold;
}

#highscores li:nth-child(3) {
    color: #CD7F32; 
    font-weight: bold;
}

button {
    margin:10px;
    padding:12px 25px;
    font-size:18px;
    background:#333;
    color:white;
    border:1px solid #666;
    cursor:pointer;
}

#menu button {
    width: 220px;
    min-width: 220px;
    display: block;
    margin: 10px auto;
}

button:hover {
    background:#444; 
}

#upgrade, #gameover, #settings, #help {
    display:none;
}

#joystick {
    position:fixed; 
    bottom:40px; 
    left:50%; 
    transform:translateX(-50%);
    width:120px; 
    height:120px; 
    border-radius:50%;
    background:rgba(255,255,255,0.1);
    touch-action:none; 
    display:none;
}

#stick 
{
    position:absolute; 
    left:40px; 
    top:40px;
    width:40px; 
    height:40px; 
    border-radius:50%;
    background:rgba(255,255,255,0.4);
}
