body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrollbars */
    font-family: Arial, sans-serif;
}

#gameContainer {
    width: 100%;
    height: 100%;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    background-color: #aadaff; /* Light blue, fallback if map tiles don't load */
}

#uiOverlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    pointer-events: none; /* Allow map interaction */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000; /* Ensure UI is on top of map */
}

#statusMessage {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
    max-width: 300px;
    margin: 0 auto; /* Center it */
    font-size: 0.9em;
}

#inventory {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    max-width: 200px;
    align-self: flex-start; /* Align to top-left or top-right */
    pointer-events: all;
}

#inventory h2 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.1em;
}

#crystalList {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
}

#crystalList li {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

#crystalList li .emoji-icon {
    font-size: 1.2em; /* Slightly larger emoji in inventory */
    margin-right: 8px;
    width: 20px; /* Ensure alignment */
    text-align: center;
}


#collectButton {
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    align-self: center; /* Center button at the bottom */
    pointer-events: all; /* Make button clickable */
    margin-bottom: 10px;
}

#collectButton:disabled {
    background-color: #grey;
    cursor: not-allowed;
}

/* Styles for emoji map icons (can be empty if inline styles are sufficient) */
.player-emoji-icon, .crystal-emoji-icon {
    /* Add global styles here if needed, e.g., text-align: center; */
}

/* Accuracy circle style (already handled by Leaflet options) */