/* style.css */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background: #f4f6f8;
    color: #333;
    margin: 0;
    padding: 0;
    font-size: clamp(14px, 2.5vw, 18px);
}

header nav {
    background: #2c3e50;
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

header nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
}

header nav a:hover {
    text-decoration: underline;
}

main {
    width: 98%;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #34495e;
}

form label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

form input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    margin-top: 0.5rem !important;
    padding: 0.75rem 1.5rem;
    background: #2980b9;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #3498db;
}

ul {
    list-style: none;
    padding: 0 !important;
}

li.success {
    color: green;
}

li.info {
    color: #2980b9;
}

li.danger {
    color: red;
}

/* --- Map shared styles --- */
.user-pin { display: inline-flex; flex-direction: column; align-items: center; }
.user-pin-avatar { width: 28px !important; height: 28px !important; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.25); background: #fff; }
.user-pin-avatar-fallback { width: 28px; height: 28px; border-radius: 50%; display:flex; align-items:center; justify-content:center; background:#fff; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.25); font-size: 14px; }
.user-pin-name { margin-top: 2px; background: #ffffff; color: #222; border: 1px solid #2c7be5; padding: 1px 6px; border-radius: 10px; font-size: 11px; line-height: 1.2; white-space: nowrap; text-align: center; }

/* Start flag (green) - used on game map */
.start-flag { position: relative; width: 32px; height: 36px; }
.start-flag .pole { position: absolute; left: 4px; top: 0; width: 3px; height: 32px; background: #333; border-radius: 2px; }
.start-flag .flag { position: absolute; left: 8px; top: 4px; width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 20px solid #28a745; }