body {
    margin: 0;
    padding: 20px;
    background: linear-gradient(180deg, #87CEEB 0%, #4682B4 100%);
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
}

.room-info {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #e6f3ff;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #2F4F4F;
}

.game-area {
    position: relative;
}

#gameCanvas {
    border: 3px solid #2F4F4F;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    background: linear-gradient(180deg, #87CEEB 0%, #4682B4 30%, #1e3a5f 100%);
}

.players-panel {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.players-panel h3 {
    margin: 0 0 10px 0;
    color: #2F4F4F;
    font-size: 16px;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 5px 0;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #4682B4;
}

.player-item.current-player {
    border-left-color: #FFD700;
    background: #fffbf0;
}

.player-name {
    font-weight: bold;
    color: #2F4F4F;
}

.player-stats {
    font-size: 12px;
    color: #666;
}

.chat-panel {
    margin-top: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    max-height: 200px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    max-height: 150px;
    min-height: 100px;
}

.chat-message {
    margin-bottom: 8px;
    padding: 6px;
    border-radius: 4px;
    font-size: 14px;
}

.chat-message.system {
    background: #f0f0f0;
    color: #666;
    font-style: italic;
}

.chat-message.player {
    background: #e6f3ff;
}

.chat-message.current-player {
    background: #fff3cd;
}

.chat-sender {
    font-weight: bold;
    color: #2F4F4F;
}

.chat-input-container {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-input-container input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 0 0 0 6px;
}

.chat-input-container button {
    padding: 10px 15px;
    background: #4682B4;
    color: white;
    border: none;
    border-radius: 0 0 6px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input-container button:hover {
    background: #2F4F4F;
}

.ui-panel {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #2F4F4F;
}

.instructions {
    margin-top: 10px;
    padding: 10px;
    background: #e6f3ff;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    color: #2F4F4F;
}

.bite-alert {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff6b6b;
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    display: none;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.ripple {
    position: absolute;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: ripple 1s ease-out;
    pointer-events: none;
}
