body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

#lobby, #game {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    width: 90%;
    max-width: 800px;
}

h1 { color: #e91e63; margin-bottom: 1.5rem; }

.input-group {
    margin-bottom: 1rem;
    display: flex;
    gap: 10px;
    justify-content: center;
}

input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus { border-color: #e91e63; }

button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

button:active { transform: scale(0.95); }

.btn-primary { background-color: #e91e63; color: white; }
.btn-secondary { background-color: #607d8b; color: white; }
.btn-success { background-color: #4caf50; color: white; }
.btn-danger { background-color: #f44336; color: white; }

#status { margin-top: 1rem; font-style: italic; color: #666; }

/* Game Styles */
.game-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .game-container { grid-template-columns: 1fr; }
}

.webcam-box {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

#canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#pose-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(233, 30, 99, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.scores-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
}

#scoreBoard {
    list-style: none;
    padding: 0;
}

#scoreBoard li {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

#game-message {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #e91e63;
    text-align: center;
}

.header {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#playerList {
    font-size: 0.9rem;
    color: #666;
}
