* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: #f0f2f5;
    color: #333;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.hidden {
    display: none !important;
}

#main-menu {
    margin-top: 100px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1, h2 {
    margin-top: 0;
}

button {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #4338ca;
}

button:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}

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

input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.game-container {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
}

canvas {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sidebar {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#players-list {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.player-card {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8fafc;
    border-left: 5px solid #ccc;
}

.player-card.active {
    background: #e0e7ff;
}

.player-card.red { border-left-color: #ef4444; }
.player-card.green { border-left-color: #22c55e; }
.player-card.yellow { border-left-color: #eab308; }
.player-card.blue { border-left-color: #3b82f6; }

#dice-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

#dice-result {
    margin-top: 15px;
    font-size: 32px;
    font-weight: bold;
}

#chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 300px;
}

#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
}

.chat-message {
    margin-bottom: 8px;
    font-size: 14px;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    gap: 10px;
}
