.snake-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom));
  background: #0d1117;
  color: #c9d1d9;
  font-family: "Menlo", "Meslo LG", "PingFang SC", monospace;
  font-size: 14px;
  line-height: 1.725;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.snake-stage {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #21262d;
  background:
    linear-gradient(180deg, rgba(88, 166, 255, 0.035), transparent 36%),
    #0d1117;
}

.snake-gate canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  image-rendering: auto;
  touch-action: none;
}

.snake-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.snake-meta {
  display: flex;
  justify-content: center;
  margin: 0.45rem 0 0;
  color: #8b949e;
  font-size: 15px;
  letter-spacing: 0.02em;
}
