:root {
    --primary: #10b981;
    --background: #f0fdf4;
    --text: #064e3b;
    --glow-color: transparent;
    --glow-size: 0px;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
}

#map {
    width: 100%;
    height: 100%;
    background-color: #eafaf4;
    z-index: 1;
}

/* --- Edge Glow System --- */
#edge-glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1000;
    box-shadow: inset 0 0 var(--glow-size) var(--glow-size) var(--glow-color);
    transition: box-shadow 0.7s ease-out;
}

/* --- Modals and UI Panels --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
}

.modal-content h1, .modal-content h2 {
    color: var(--text);
    margin-top: 0;
}

.modal-content p {
    line-height: 1.6;
    margin-bottom: 20px;
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 5px;
}

button:hover {
    background-color: #0f9a6c;
}

#close-task-btn {
    background-color: #777;
}

#task-input-area input, #task-input-area textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

#task-feedback {
    margin-top: 15px;
    font-weight: bold;
    min-height: 20px;
}

/* --- HUD (Heads-Up Display) --- */
.hud {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 1001;
    pointer-events: none;
}

.hud > div {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    font-weight: bold;
}

/* --- Toast Notifications --- */
#summary-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    z-index: 3000;
    transition: bottom 0.5s ease-in-out;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#summary-toast.show {
    bottom: 30px;
}

/* --- Custom Marker Icons --- */
.legend-marker-icon {
    background-color: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 30px;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.player-marker {
    font-size: 30px;
}