
/* 萌萌象棋 1~6：棋盘右侧版本切换。独立文件，避免改动六套已有样式。 */
.game-rail > .version-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  flex: 0 0 auto;
  width: 100%;
  margin: 0 0 5px;
  padding: 0;
}
.game-rail > .version-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 25px;
  padding: 2px 1px;
  border: 1px solid rgba(216, 180, 106, 0.38);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: #d8b46a;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.game-rail > .version-switch a:hover {
  border-color: #f0d59b;
  color: #f0d59b;
  background: rgba(216, 180, 106, 0.12);
}
.game-rail > .version-switch a.active {
  border-color: #f0d59b;
  background: #d8b46a;
  color: #1a1208;
}

@media (max-width: 760px), (pointer: coarse) and (max-width: 1024px) {
  .game-rail > .version-switch {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 5px;
  }
  .game-rail > .version-switch a {
    min-height: 26px;
    font-size: 10px;
  }
}
