
.snake-modal {
    position: absolute;
    width: 340px;
    background: #181c1b;
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px #000a;
    z-index: 1002;
    border: 3px solid #2196f3;
    font-family: 'Press Start 2P', 'VT323', 'Consolas', monospace;
    overflow: hidden;
}

.snake-header {
    background: repeating-linear-gradient(135deg, #222 0 12px, #2196f3 12px 24px);
    color: #2196f3;
    padding: 10px 12px;
    cursor: move;
    display: flex;
    align-items: center;
    border-radius: 0.5rem 0.5rem 0 0;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 2px solid #2196f3;
    box-shadow: 0 2px 0 #222;
    text-shadow: none;
}

.snake-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    image-rendering: pixelated;
}

.snake-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.3em;
    color: #2196f3;
    transition: color 0.2s;
    text-shadow: none;
    border: 2px solid #2196f3;
    border-radius: 4px;
    padding: 0 6px;
    background: #222;
}
.snake-close:hover {
    color: #fff;
    background: #2196f3;
}

.snake-body {
    padding: 14px 8px 16px 8px;
    background: #181c1b;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.snake-scoreboard {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    margin-bottom: 10px;
    background: #222;
    border-radius: 6px;
    padding: 7px 10px;
    box-shadow: 0 2px 0 #111;
    font-size: 1em;
    gap: 12px;
    border: 2px solid #2196f3;
}
.snake-score-label, .snake-record-label {
    color: #bdbdbd;
    font-size: 0.95em;
    margin-right: 2px;
    font-family: inherit;
}
.snake-score-value {
    color: #fff;
    background: #2196f3;
    font-size: 1.1em;
    font-weight: bold;
    min-width: 36px;
    text-align: right;
    border-radius: 2px;
    padding: 2px 6px;
    margin-right: 6px;
    font-family: inherit;
    border: 1.5px solid #222;
}
.snake-record-value {
    color: #222;
    background: #90caf9;
    font-size: 1em;
    font-weight: bold;
    min-width: 36px;
    text-align: right;
    border-radius: 2px;
    padding: 2px 6px;
    margin-left: 6px;
    font-family: inherit;
    border: 1.5px solid #2196f3;
}

#snakeCanvas {
    background: #111;
    border-radius: 4px;
    box-shadow: 0 2px 0 #222;
    margin-bottom: 10px;
    margin-top: 4px;
    border: 3px solid #2196f3;
    image-rendering: pixelated;
}

.snake-btn {
    background: #222;
    color: #2196f3;
    border: 2px solid #2196f3;
    border-radius: 4px;
    padding: 7px 18px;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 2px;
    cursor: pointer;
    box-shadow: 0 2px 0 #111;
    font-family: inherit;
    letter-spacing: 1px;
    text-shadow: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.snake-btn:hover {
    background: #2196f3;
    color: #222;
    transform: scale(1.04);
}

.snake-controls {
    width: 100%;
    max-width: 320px;
    background: #222;
    border-radius: 6px;
    padding: 7px 8px;
    margin-top: 6px;
    font-size: 0.98em;
    color: #bdbdbd;
    box-shadow: 0 1px 0 #111;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid #2196f3;
    box-sizing: border-box;
    overflow-x: auto;
}

.snake-controls-title {
    font-weight: bold;
    color: #2196f3;
    margin-bottom: 2px;
    font-size: 1em;
    letter-spacing: 1px;
}

.snake-controls-keys {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.snake-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    width: 100%;
}

.snake-controls-desc {
    color: #90caf9;
    font-size: 0.98em;
    margin-left: 6px;
    font-family: inherit;
    white-space: nowrap;
}

.snake-controls .slash {
    color: #2196f3;
    margin: 0 2px;
    font-weight: bold;
    font-size: 1.1em;
}

kbd {
    background: #181c1b;
    color: #2196f3;
    border: 2px solid #2196f3;
    border-radius: 2px;
    padding: 2px 7px;
    font-size: 1em;
    margin-right: 2px;
    font-family: inherit;
    box-shadow: none;
    text-shadow: none;
    letter-spacing: 1px;
    min-width: 28px;
    text-align: center;
}