:root {
    --primary: #4a90e2;
    --secondary: #f39c12;
    --success: #27ae60;
    --bg: #f4f7f6;
    --text: #2c3e50;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 15px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card.highlight {
    border: 3px solid var(--secondary);
    text-align: center;
}

h2, h3 {
    margin-top: 0;
}

input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    width: calc(100% - 22px);
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #357abd;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.join-group {
    display: flex;
    gap: 10px;
}

.join-group input {
    margin-bottom: 0;
    width: 60%;
}

.game-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

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

.pose-box {
    font-size: 4rem;
    font-weight: bold;
    color: var(--secondary);
    margin: 10px 0;
}

#webcam-container canvas {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    background: #000;
}

.prediction-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
}

.prediction-bar .fill {
    height: 100%;
    background: var(--success);
    width: 0%;
    transition: width 0.1s;
}

#prediction-text {
    text-align: center;
    font-weight: bold;
}

.scores ul {
    list-style: none;
    padding: 0;
}

.scores li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f8f9fa;
}
