/* Google Font import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0f0f13;
    color: #ffffff;
    overflow: hidden;
}

/* Lobby Screen */
#lobby-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at top right, #1a1a2e, #0f0f13);
}

#lobby-screen h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ff4757, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

#lobby-screen p {
    color: #888;
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Input Fields */
input {
    width: 100%;
    max-width: 320px;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
}

/* Buttons */
button {
    width: 100%;
    max-width: 320px;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

#create-room-btn {
    background: #ff4757;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

#create-room-btn:hover {
    background: #ff6b81;
    transform: translateY(-2px);
}

#join-room-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#join-room-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.divider {
    color: #555;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Game Screen */
#game-screen {
    position: relative;
    height: 100vh;
    width: 100vw;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* HUD (Heads Up Display) */
#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(15, 15, 19, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    min-width: 200px;
}

#hud h3 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

#hud h3 span {
    color: #fff;
    font-weight: 600;
}

#role-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff4757;
    margin-bottom: 10px;
}

#catch-btn {
    background: #ff4757;
    color: white;
    padding: 12px;
    font-weight: 700;
    border-radius: 8px;
    display: none;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* Leaflet Map Dark Mode Override */
.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}