/* Snake Arena — what only Snake needs on top of Kit/kit.css. */

/* The arena picker: chips and a note beside a small map of the board. */

.snake-arena-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 230px);
    gap: 12px 18px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.snake-arena-pick .arcade-row-label {
    display: block;
    margin-bottom: 8px;
}

.snake-arena-view {
    border: 2px solid var(--line);
    background: var(--bg);
    line-height: 0;
}

.snake-arena {
    display: block;
    width: 100%;
    height: auto;
    shape-rendering: crispEdges;
}

.snake-arena-floor {
    fill: var(--panel);
    stroke: var(--dim);
    stroke-width: 0.3;
}

.snake-arena-walls {
    fill: var(--dim);
}

.snake-arena rect[class^="is-p"] {
    filter: drop-shadow(0 0 0.6px currentColor);
}

/* Player slots: a swatch that also shows the pattern. */

.snake-slot .arcade-row-label {
    display: flex;
    align-items: center;
}

.arcade-swatch.snake-pattern-hollow {
    background: transparent;
    box-shadow: inset 0 0 0 3px currentColor, 0 0 6px currentColor;
}

.arcade-swatch.snake-pattern-striped {
    background-image: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.5) 60%, transparent 60%);
}

.arcade-swatch.snake-pattern-dotted {
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.55) 0 2px, transparent 2.5px);
}

.snake-slot .arcade-row-hint kbd {
    margin-right: 2px;
}

/* Pause: who is where. */

.snake-pause-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.snake-pause-list li {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    border-bottom: 1px solid var(--line);
}

.snake-pause-list li span:last-child {
    margin-left: auto;
    color: var(--dim);
}

/* Results */

.snake-final {
    color: var(--fg);
}

.snake-new-best {
    text-align: center;
    color: var(--wild);
    font-family: var(--pixel);
    font-size: 12px;
    animation: arcade-blink 1s steps(1) infinite;
}

.snake-standings td.is-name {
    white-space: nowrap;
}

.snake-standings thead th:nth-child(2) {
    text-align: left;
}

@media (max-width: 560px) {
    .snake-arena-block {
        grid-template-columns: minmax(0, 1fr);
    }

    .snake-arena-view {
        max-width: 260px;
    }
}
