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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.game-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 600px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1,
h2 {
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- NEW: Input Fields for Lobby --- */
input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border 0.3s;
}

input[type="text"]:focus {
    border: 1px solid #00d2ff;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* --- NEW: Lobby Player List --- */
#players-list li {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    border-left: 4px solid #38ef7d;
}

/* --- Original Game Styles --- */
.stats-board {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    color: #ccc;
    margin-bottom: 5px;
}

.stat-value-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    transition: color 0.3s;
}

.scenario-box {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.restart-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse-green {
    animation: pulseG 1s infinite alternate;
    color: #2ecc71;
}

@keyframes pulseG {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    }

    100% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(46, 204, 113, 0.9);
    }
}