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

body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #fff;
    overflow: hidden;
}

#controls {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 30, 0.9);
    padding: 10px 20px;
    border-bottom: 2px solid #4a4a6a;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#controls h2 {
    margin: 0;
    color: #9a9aff;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(154, 154, 255, 0.5);
    white-space: nowrap;
}

.control-group {
    margin: 0;
}

.control-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}

.control-group label:hover {
    background: rgba(74, 74, 106, 0.3);
}

.control-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.info {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(20, 20, 30, 0.9);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #4a4a6a;
    z-index: 1000;
    font-size: 12px;
    color: #aaa;
}

#mapContainer {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    cursor: grab;
    position: relative;
}

#mapContainer.grabbing {
    cursor: grabbing;
}

#mapWrapper {
    position: absolute;
    transform-origin: 0 0;
}

#mapImage {
    display: block;
    image-rendering: pixelated;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.marker {
    position: absolute;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    pointer-events: all;
    cursor: pointer;
}

.boss-marker {
    width: 30px;
    height: 30px;
    background: rgba(255, 50, 50, 0.8);
    border: 3px solid #ff0000;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.orb-marker {
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #85d3ef, #5ebbeb);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(94, 187, 235, 0.9);
    animation: glow 1.5s infinite;
}

.orb-marker img {
    width: 225%;
    position: relative;
    top: -22px;
    left: -12px;
    image-rendering: pixelated;  /* important for Noita-style sprites */
}

.player-marker {
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.marker-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: none;
}

.marker:hover .marker-label {
    display: block;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.8); }
    50% { box-shadow: 0 0 35px rgba(255, 0, 0, 1); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 15px rgba(94, 187, 235, 0.9); }
    50% { box-shadow: 0 0 25px rgba(94, 187, 235, 1); }
}

#uploadSection {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #4a4a6a;
}

#uploadSection input[type="file"] {
    display: none;
}

#uploadButton {
    background: #4a4a6a;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

#uploadButton:hover {
    background: #5a5a7a;
}

.color-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.boss-color { background: rgba(255, 50, 50, 0.8); }
.orb-color { background: radial-gradient(circle, #ffff00, #ffa500); }
.player-color { background: rgba(0, 255, 0, 0.8); }