:root {
    --primary: #4f46e5;
    --secondary: #ec4899;
    --bg: #f3f4f6;
    --card: #ffffff;
}

body {
    font-family: 'Pretendard', sans-serif;
    background: var(--bg);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Lobby & Waiting Room */
input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    width: 80%;
    margin-bottom: 1rem;
    font-size: 1rem;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.player-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.player-item {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

/* Game UI */
#webcam-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    border-radius: 1rem;
    overflow: hidden;
    border: 4px solid var(--primary);
}

#webcam-container video {
    width: 100%;
    transform: rotateY(180deg);
}

.quiz-target {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 1rem 0;
}

.stats {
    display: flex;
    justify-content: space-around;
    font-weight: bold;
    margin-bottom: 1rem;
}

#score-board {
    margin-top: 1rem;
    padding: 1rem;
    background: #eff6ff;
    border-radius: 0.5rem;
}

/* Result */
.winner {
    font-size: 1.5rem;
    color: #059669;
    font-weight: bold;
    margin: 1rem 0;
}
