2:root {
    --bg-color: #050505;
    --panel-bg: #1a1a1a;
    --neon-blue: #00f2ff;
    --neon-purple: #bc13fe;
    --text-color: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;o
.game-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-box {
    background-color: var(--panel-bg);
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.panel-box h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #888;
    letter-spacing: 2px;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    background-color: var(--panel-bg);
    border: 2px solid #333;
    border-radius: 8px;
    padding: 10px 20px;
    text-align: center;
}

.stat-item label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.stat-item span {
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
}

.main-board {
    position: relative;
    background-color: var(--panel-bg);
    border: 4px solid #333;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    line-height: 0;
}

canvas {
    display: block;
}

#game-canvas {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s;
}

.overlay-content {
    text-align: center;
}

.overlay-content h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    background: linear-gradient(var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

#start-btn {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 12px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    text-shadow: 0 0 5px var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

#start-btn:hover {
    background: var(--neon-blue);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--neon-blue);
}

.controls-hint {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
}

.score-msg {
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    pointer-events: none;
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-msg.show {
    opacity: 1;
    transform: translateY(-20px);
}

.score-msg .points {
    font-size: 2rem;
    color: #fff;
}

.score-msg .explanation {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}
