:root {
    --primary-color: #00ff88;
    --danger-color: #ff0055;
    --bg-color: #0a0a2a;
    --text-color: #ffffff;
}

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

.container {
    text-align: center;
    position: relative;
}

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

.game-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

canvas {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    background: radial-gradient(circle at bottom, #1a1a4a 0%, #000000 100%);
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 80vh;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    text-align: center;
    backdrop-filter: blur(5px);
    width: 300px;
}

.hidden {
    display: none;
}

button {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 10px 25px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: transform 0.1s, box-shadow 0.1s;
    margin-top: 15px;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary-color);
}

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