body {
    margin: 0;
    overflow: hidden;
    background: #050505;
    font-family: 'Segoe UI', sans-serif;
    user-select: none;
}

canvas {
    display: block;
}

/* UI Layers */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    color: white;
}

#score-box {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    text-shadow: 2px 2px 4px black;
}

#leaderboard {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 180px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #00ffcc;
    font-size: 13px;
}

#leaderboard h3 {
    margin: 0 0 10px 0;
    text-align: center;
    color: #00ffcc;
    border-bottom: 1px solid #333;
}

#kill-feed {
    position: absolute;
    top: 70px;
    left: 20px;
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#classic-timer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 20px;
    color: #ff4444;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid #ff4444;
    display: none;
}

.kill-msg {
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    border-left: 3px solid #ff4444;
    animation: slideIn 0.3s forwards;
}

#hud {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    text-align: center;
}

#energy-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #444;
}

#energy-bar {
    width: 100%;
    height: 100%;
    background: #00ffcc;
    transition: width 0.1s;
}

/* Minimap */
#minimap {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 200px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ffcc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

/* Menus */
.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    color: white;
    border: 2px solid #00ffcc;
    pointer-events: auto;
    z-index: 1000;
    width: 350px;
}

#menu {
    display: block;
}

#shop-modal {
    display: none;
    border-color: #ffd700;
}

#game-over {
    display: none;
    border-color: #ff4444;
}

/* Buttons & Inputs */
input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    background: #222;
    color: #fff;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    border: none;
    margin: 5px;
    transition: 0.2s;
}

.btn-main {
    background: #00ffcc;
    color: black;
}

.btn-shop {
    background: none;
    border: 1px solid #ffd700;
    color: #ffd700;
}

.btn-vip {
    background: linear-gradient(45deg, #ffd700, #ff8800);
    color: black;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

.mode-btn {
    background: none;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    padding: 5px 10px;
}

.mode-btn.active {
    background: #00ffcc;
    color: black;
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    margin: 15px 0;
}

.shop-card {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
}

.shop-card:hover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

#daily-box {
    background: rgba(255, 215, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    display: none;
    border: 1px dashed #ffd700;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}