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

body {
    background: #0a0a0f;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sidebar-left,
.sidebar-right {
    width: 150px;
}

h1 {
    font-size: 1.8rem;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #ff00cc, #3333ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-align: center;
}

.info-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-box {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #333;
}

.score-box .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 4px;
}

.score-box span:last-child {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00e5ff;
}

.canvas-wrapper {
    position: relative;
    border: 3px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

#board {
    display: block;
}

.next-box {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid #333;
}

.next-box canvas {
    margin-top: 8px;
}

.controls {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #333;
}

.label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.control-row {
    font-size: 0.75rem;
    margin-bottom: 6px;
    color: #ccc;
}

kbd {
    background: #333;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-right: 4px;
    font-family: monospace;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.overlay.hidden {
    display: none;
}

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

.overlay-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #00e5ff;
}

.overlay-content p {
    color: #ccc;
}
