/*! © 2026 LogosVox. All rights reserved. Copying, modifying or redistributing this code is not permitted. https://games.logosvox.com/terms */
/* Serpent: the board fills what the controls leave; JS sizes the canvas to whole cells. LogosVox original code. */
.sp-main { gap: 10px; padding-top: 8px; padding-bottom: 4px; }
.sp-stage {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  overflow: hidden;
}
.sp-board { padding: 6px; line-height: 0; }
.sp-board.is-wrap { border-style: dashed; border-color: var(--lv-edge-strong); }
.sp-board canvas { display: block; }
.sp-ready {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lv-void);
  border: 1px solid var(--lv-edge);
  box-shadow: var(--lv-g-lift);
  color: var(--lv-ink-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}
.sp-ready[hidden] { display: none; }

/* Pause and New game; the d-pad only with "Show buttons" (the kit's game menu). */
.sp-tools .lv-tool { min-height: 44px; flex-direction: row; gap: 6px; font-size: 13px; padding: 0 14px; }
.sp-pad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: 52px 52px; gap: 6px; justify-content: center; flex: none; }
.sp-dir {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--lv-radius);
  border: 1px solid var(--lv-edge-strong);
  background: var(--lv-surface);
  color: var(--lv-ink);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.sp-dir svg { width: 24px; height: 24px; }
.sp-dir:active, .sp-dir.is-down { background: var(--lv-surface-active); transform: scale(0.96); }
.sp-dir[data-dir="up"] { grid-column: 2; grid-row: 1; }
.sp-dir[data-dir="left"] { grid-column: 1; grid-row: 2; }
.sp-dir[data-dir="down"] { grid-column: 2; grid-row: 2; }
.sp-dir[data-dir="right"] { grid-column: 3; grid-row: 2; }
@media (orientation: landscape) and (max-height: 540px) {
  .sp-tools { flex-direction: column; }
  .sp-tools .lv-tool { width: 136px; white-space: nowrap; }
}
.sp-side { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
.sp-side .lv-keys { max-width: 420px; }

/* The second choice on the start screen (walls or wrap), and its note. */
.lv-card .sp-note { margin: -8px 0 16px; font-size: 12px; color: var(--lv-ink-subtle); }
.lv-card .sp-note[hidden] { display: none; }
