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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    width: 800px;
    height: 600px;
    background: #0f3460;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header {
    background: #e94560;
    padding: 15px;
    text-align: center;
    border-bottom: 3px solid #533483;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.score-display {
    display: flex;
    justify-content: space-around;
    font-size: 1.2em;
    font-weight: bold;
}

.game-area {
    flex: 1;
    position: relative;
    background: #1b1b3a;
    overflow: hidden;
}

#gameMap {
    width: 100%;
    height: 100%;
    position: relative;
    background: 
        radial-gradient(circle at 20% 30%, rgba(83, 52, 131, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(233, 69, 96, 0.1) 0%, transparent 50%);
}

.player {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #4df0ff;
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #1a1a2e;
    text-shadow: 0 0 3px white;
    box-shadow: 0 0 10px #4df0ff;
    transition: transform 0.1s;
    z-index: 100;
}

.loot-box {
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    box-shadow: 0 0 10px currentColor;
    animation: pulse 2s infinite;
    z-index: 50;
}

.loot-box.weapon {
    background: rgba(255, 215, 0, 0.9);
    border: 2px solid gold;
    color: #b8860b;
}

.loot-box.powerup {
    background: rgba(50, 205, 50, 0.9);
    border: 2px solid limegreen;
    color: #006400;
}

.loot-box.special {
    background: rgba(148, 0, 211, 0.9);
    border: 2px solid purple;
    color: #ffffff;
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

.controls {
    background: #533483;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weapon-display {
    flex: 2;
}

.weapon-display h3 {
    margin-bottom: 5px;
    font-size: 1em;
}

.tutorial-hint {
    flex: 1;
    text-align: right;
    font-style: italic;
    opacity: 0.8;
}

.game-ui {
    background: #1a1a2e;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 10px 20px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #ff6b81;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.powerup-active {
    animation: glow 1s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px #4df0ff; }
    to { box-shadow: 0 0 20px #4df0ff, 0 0 30px #4df0ff; }
}

.loot-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.5em;
    z-index: 1000;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; display: none; }
}