:root {
    --primary: #E84393;
    --secondary: #FD79A8;
    --bg-dark: #2d3436;
    --bg-light: #636e72;
    --text-color: #dfe6e9;
    --board-light: #f0d9b5;
    --board-dark: #b58863;
}

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

.container {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.2rem;
    color: var(--secondary);
}

.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

canvas {
    background-color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    cursor: grab;
    max-width: 100%;
    height: auto;
}

canvas:active {
    cursor: grabbing;
}

.controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

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

button:hover {
    background-color: var(--secondary);
}

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

button:disabled {
    background-color: var(--bg-light);
    cursor: not-allowed;
}

.status-message {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    min-height: 1.5em;
}

/* Animations */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake {
    animation: shake 0.5s;
    animation-iteration-count: 1;
}
